/* Espace client — données SHERIN en temps réel */
.dj-account-page {
  background: var(--dj-bg, #f4f6f5);
  min-height: 100vh;
}

.dj-account-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.dj-account-hero {
  background: linear-gradient(135deg, #033f38, #04764e);
  color: #fff;
  border-radius: var(--dj-radius-lg, 24px);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: var(--dj-shadow-lg, 0 8px 32px rgba(4, 118, 78, 0.18));
}

.dj-account-hero h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #fff;
}

.dj-account-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.92rem;
}

.dj-account-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.dj-account-stat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.dj-account-stat-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
}

.dj-account-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
}

.dj-account-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dj-account-tabs::-webkit-scrollbar {
  display: none;
}

.dj-account-tab {
  flex: 0 0 auto;
  border: 1px solid var(--dj-border, #e5e7eb);
  background: #fff;
  color: var(--dj-text, #1a1a1a);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.dj-account-tab.is-active {
  background: var(--dj-green-dark, #033f38);
  border-color: var(--dj-green-dark, #033f38);
  color: #fff;
}

.dj-account-panel {
  animation: djFadeIn 0.25s ease;
}

.dj-account-panel.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.dj-account-card {
  display: block;
  background: #fff;
  border-radius: var(--dj-radius, 16px);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--dj-shadow, 0 4px 24px rgba(0, 0, 0, 0.08));
  text-decoration: none;
  color: inherit;
}

.dj-account-muted {
  color: var(--dj-muted, #6b7280);
  font-size: 0.88rem;
  margin: 4px 0 0;
}

.dj-profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dj-border, #e5e7eb);
}

.dj-profile-row:last-child {
  border-bottom: 0;
}

.dj-profile-label {
  color: var(--dj-muted, #6b7280);
  font-size: 0.88rem;
}

.dj-profile-value {
  font-weight: 600;
  text-align: right;
}

.dj-history-item,
.dj-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dj-history-points {
  font-weight: 700;
  color: var(--dj-green, #04764e);
  white-space: nowrap;
}

.dj-coupon-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dj-green-dark, #033f38);
}

.dj-coupon-meta,
.dj-reward-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.dj-reward-title {
  font-weight: 700;
  color: var(--dj-green-dark, #033f38);
}

.dj-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.dj-status-badge.is-success {
  background: #ecfdf5;
  color: #04764e;
}

.dj-status-badge.is-warning {
  background: #fff7ed;
  color: #c2410c;
}

.dj-status-badge.is-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.dj-status-badge.is-neutral {
  background: #f3f4f6;
  color: #374151;
}

.dj-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dj-border, #e5e7eb);
}

.dj-pref-row:last-child {
  border-bottom: 0;
}

.dj-pref-row input {
  width: 20px;
  height: 20px;
}

.dj-account-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--dj-muted, #6b7280);
}

.dj-account-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.dj-account-empty h3 {
  margin: 0 0 6px;
  color: var(--dj-text, #1a1a1a);
}

.dj-page-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.dj-page-btn {
  border: 1px solid var(--dj-border, #e5e7eb);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.dj-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dj-page-info {
  font-size: 0.88rem;
  color: var(--dj-muted, #6b7280);
}

.dj-skeleton {
  background: linear-gradient(90deg, #eceff1 25%, #f6f7f8 50%, #eceff1 75%);
  background-size: 200% 100%;
  animation: djSkeleton 1.2s ease-in-out infinite;
  border-radius: 8px;
}

.dj-skeleton-line.lg {
  height: 18px;
  width: 70%;
  margin-bottom: 10px;
}

.dj-skeleton-line.md {
  height: 14px;
  width: 50%;
  margin-bottom: 8px;
}

.dj-skeleton-line.sm {
  height: 12px;
  width: 35%;
}

.dj-order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dj-border, #e5e7eb);
}

.dj-order-item:last-child {
  border-bottom: 0;
}

.dj-order-item-meta {
  text-align: right;
  white-space: nowrap;
}

.dj-account-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dj-account-link-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  border: 1px solid var(--dj-border, #e5e7eb);
  background: #fff;
  color: var(--dj-green-dark, #033f38);
  font-weight: 600;
  text-decoration: none;
}

@keyframes djSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes djFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .dj-account-shell {
    padding-bottom: 64px;
  }
}
