/* ============================================================
   wallet.css — extrait de styles.css le 2026-05-07
   Phase 3 (extraction CSS module-par-module).
   120 règles, ~203 lignes.
   Cut & paste pur — aucune simplification ni reformat.
   ============================================================ */

.credit-item { display:flex; justify-content:space-between; align-items:center; padding:9px 14px; background:rgba(201,169,110,0.04); border-radius:8px; border:1px solid rgba(201,169,110,0.08); }

.credit-item a { color:#c9a96e; text-decoration:none; font-size:0.88rem; text-align:left; }

.credit-item a:hover { text-decoration:underline; }

.credit-author { color:#7a7090; font-size:0.8rem; text-align:right; margin-left:16px; white-space:nowrap; min-width:140px; }

#walletView {
  position: fixed; inset: 0; z-index: 4000;
  background: #080612;
  overflow-y: auto;
  overflow-x: hidden;
}

#walletView *, #walletView *::before, #walletView *::after {
  box-sizing: border-box;
}

.wallet-inner {
  max-width: 560px; margin: 0 auto; padding: 24px 16px 40px;
  width: 100%; box-sizing: border-box;
}

.wallet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1e1530;
  position: sticky; top: 0; background: #080612; z-index: 10;
}

.wallet-header-title {
  font-size: 1.1rem; font-weight: 700; color: #c9a96e; letter-spacing: 0.05em;
}

.wallet-close-btn {
  background: none; border: none; color: #7a6a9a; font-size: 1.4rem;
  cursor: pointer; padding: 4px 8px; line-height: 1; border-radius: 6px;
}

.wallet-close-btn:hover { color: #e0d8f0; background: #1a1628; }

.wallet-loading { padding: 40px; text-align: center; color: #7a6a9a; font-size: 0.9rem; }

.wallet-error { padding: 20px; text-align: center; color: #e07070; }

.wallet-section {
  margin-top: 20px;
  background: #0f0c1a;
  border: 1px solid #1e1530;
  border-radius: 14px;
  padding: 18px 16px;
}

.wallet-section-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  color: #7a6a9a; text-transform: uppercase; margin-bottom: 14px;
}

.wallet-plan-badge {
  display: inline-block; padding: 4px 14px;
  border-radius: 50px; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 12px;
}

.wallet-plan-badge.freemium { background: #1e1530; color: #9d8ec0; border: 1px solid #3a2a5a; }

.wallet-plan-badge.monthly  { background: #1a2040; color: #7090e0; border: 1px solid #2a4080; }

.wallet-plan-badge.biannual { background: #1a2a1a; color: #70c070; border: 1px solid #2a5a2a; }

.wallet-plan-badge.annual   { background: #2a1a10; color: #c9a96e; border: 1px solid #5a3a10; }

.wallet-benefit { font-size: 0.85rem; color: #b0a0d0; margin: 5px 0; line-height: 1.4; }

.wallet-benefit.muted { color: #5a5070; }

.wallet-benefit.cosmic { color: #a78bfa; }

.wallet-sub-info { margin-top: 14px; border-top: 1px solid #1e1530; padding-top: 14px; }

.wallet-sub-row { display: flex; justify-content: space-between; align-items: flex-start; margin: 6px 0; gap: 8px; flex-wrap: wrap; }

.wallet-sub-label { font-size: 0.82rem; color: #7a6a9a; }

.wallet-sub-value { font-size: 0.88rem; color: #e0d8f0; text-align: right; word-break: break-word; }

.wallet-upsell {
  margin-top: 12px; padding: 10px 12px;
  background: #1a1040; border: 1px solid #3a2060; border-radius: 8px;
  font-size: 0.79rem; color: #9d8ec0; line-height: 1.4;
}

.wallet-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.wallet-balance-card {
  border-radius: 12px; padding: 14px 12px;
  display: flex; align-items: flex-start; gap: 10px;
}

.wallet-balance-card.daily    { background: #0d1424; border: 1px solid #1a2a4a; }

.wallet-balance-card.purchased{ background: #141020; border: 1px solid #2a1a4a; }

.wallet-balance-icon { font-size: 1.3rem; margin-top: 2px; }

.wallet-balance-info { flex: 1; min-width: 0; }

.wallet-balance-label { font-size: 0.74rem; color: #6a6080; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

.wallet-balance-amount { font-size: 1.6rem; font-weight: 800; color: #e0d8f0; line-height: 1; }

.wallet-balance-amount.zero { color: #3a3050; }

.wallet-balance-sub { font-size: 0.72rem; color: #5a5070; margin-top: 4px; line-height: 1.3; }

.wallet-progress-track {
  height: 4px; background: #1a1530; border-radius: 4px; margin-top: 8px; overflow: hidden;
}

.wallet-progress-fill {
  height: 100%; background: linear-gradient(90deg, #4a6aaa, #7090e0); border-radius: 4px;
  transition: width 0.5s ease;
}

.wallet-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #1e1530;
  font-size: 0.88rem; color: #7a6a9a;
}

.wallet-total-row strong { color: #c9a96e; font-size: 1rem; }

.wallet-grant-section { }

.wallet-grant-done, .wallet-grant-pending { font-size: 0.88rem; color: #b0a0d0; margin-bottom: 6px; }

.wallet-countdown { font-family: monospace; color: #a78bfa; font-weight: 700; }

.wallet-grant-detail { font-size: 0.78rem; color: #5a5070; }

.wallet-cosmic-card {
  background: linear-gradient(135deg, #1a1040 0%, #0e0820 100%);
  border: 1px solid #5a3a9a; border-radius: 12px; padding: 16px;
}

.wallet-cosmic-name { font-size: 1rem; font-weight: 700; color: #c9b0f0; margin-bottom: 4px; }

.wallet-cosmic-date { font-size: 0.8rem; color: #9d8ec0; margin-bottom: 8px; }

.wallet-cosmic-desc { font-size: 0.82rem; color: #7a6a9a; margin-bottom: 10px; line-height: 1.4; }

.wallet-cosmic-amount { font-size: 0.9rem; color: #e0d8f0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.wallet-cosmic-amount strong { color: #a78bfa; font-size: 1.05rem; }

.wallet-cosmic-mult {
  background: #2a1060; color: #a78bfa; border-radius: 50px;
  padding: 2px 10px; font-size: 0.75rem; font-weight: 600;
}

.wallet-cosmic-hint { font-size: 0.72rem; color: #5a5070; display: block; width: 100%; margin-top: 4px; }

.wallet-cosmic-empty { font-size: 0.85rem; color: #5a5070; line-height: 1.6; }

/* BUG_5_FIX 2026-05-24 : version "locked" du bonus cosmique pour freemium */
.wallet-cosmic-locked {
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(167, 139, 250, 0.03));
  border-color: rgba(167, 139, 250, 0.18);
}
.wallet-cosmic-locked-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.wallet-cosmic-amount-locked {
  font-size: 0.85rem;
  color: #b0a8d0;
  margin: 8px 0 14px;
  line-height: 1.5;
}
.wallet-cosmic-amount-locked strong {
  color: #e6d282;
  font-weight: 700;
}
.wallet-cosmic-upsell-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wallet-cosmic-upsell-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
}

.wallet-cosmic-empty .muted { color: #3a3050; }

.wallet-grace-banner { background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(167,139,250,.1)); border: 1px solid rgba(245,158,11,.5); border-radius: 14px; padding: 14px 16px; margin: 8px 0 14px; }

.wallet-grace-title { font-weight: 700; color: #f59e0b; font-size: .92rem; margin-bottom: 6px; }

.wallet-grace-msg { color: #d4ccea; font-size: .82rem; line-height: 1.55; margin-bottom: 12px; }

.wallet-grace-msg strong { color: #fbbf24; }

.wallet-grace-cta { width: 100%; padding: 10px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #1a0e00; border: none; border-radius: 10px; font-weight: 700; font-size: .82rem; cursor: pointer; }

.wallet-grace-cta:hover { background: linear-gradient(135deg,#fbbf24,#f59e0b); }

.wallet-faq { display: flex; flex-direction: column; gap: 6px; }

.wallet-faq-item { border: 1px solid #1e1530; border-radius: 10px; overflow: hidden; }

.wallet-faq-q {
  width: 100%; background: #0f0c1a; border: none; color: #b0a0d0;
  padding: 12px 14px; text-align: left; cursor: pointer; font-size: 0.85rem;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: background 0.2s;
}

.wallet-faq-q:hover { background: #14101e; }

.wallet-faq-icon { flex-shrink: 0; font-size: 1.1rem; color: #a78bfa; font-weight: 700; }

.wallet-faq-a {
  display: none; padding: 0 14px; font-size: 0.82rem; color: #7a6a9a;
  line-height: 1.6; background: #0a0815;
}

.wallet-faq-a.open { display: block; padding: 10px 14px 14px; }

.wallet-faq-section { padding: 0; }

.wallet-faq-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; cursor: pointer; user-select: none;
  border-radius: 12px; transition: background 0.2s;
}

.wallet-faq-header:hover { background: #14101e; }

.wallet-faq-toggle-icon { font-size: 1rem; color: #a78bfa; }

.wallet-loss-warning {
  margin: 0 0 12px; padding: 12px 16px;
  background: rgba(220,100,40,0.12); border: 1px solid rgba(220,100,40,0.35);
  border-radius: 12px; font-size: 0.84rem; color: #e8a870; line-height: 1.5;
}

.wallet-loss-sub { font-size: 0.78rem; color: #9a7050; }

.wallet-sub-credit .wallet-sub-value.credit-soon { color: #a78bfa; font-weight: 600; }

.wallet-sub-status-ok .wallet-sub-value { color: #4ade80; }

.wallet-sub-status-ok .wallet-sub-label { color: #86efac; }

.wallet-sub-status-warn .wallet-sub-value { color: #fbbf24; }

.wallet-sub-status-warn .wallet-sub-label { color: #fcd34d; }

.wallet-sub-status-error .wallet-sub-value { color: #f87171; }

.wallet-sub-status-error .wallet-sub-label { color: #fca5a5; }

.wallet-sub-status-muted .wallet-sub-value { color: #9ca3af; }

.wallet-sub-status-muted .wallet-sub-label { color: #9ca3af; }

.wallet-sub-note { font-size: 0.78rem; color: #9ca3af; margin: 4px 0 8px 0; line-height: 1.4; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.03); }

.wallet-sub-note.warn { color: #fbbf24; background: rgba(251,191,36,0.06); }

.wallet-sub-note.error { color: #f87171; background: rgba(248,113,113,0.06); }

.wallet-cta-section { margin-top: 24px; text-align: center; }

.wallet-cta-btn {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff; border: none; border-radius: 50px;
  padding: 14px 36px; font-size: 1rem; font-weight: 700;
  cursor: pointer; width: 100%; max-width: 320px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wallet-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,0.4); }

.wallet-promo-banner {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  margin: 0 0 12px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(124,58,237,0.12));
  border: 1px solid rgba(167,139,250,0.35); border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}

.wallet-promo-banner:hover { transform: scale(1.01); box-shadow: 0 4px 20px rgba(167,139,250,0.25); }

.wallet-promo-icon { font-size: 2rem; flex-shrink: 0; }

.wallet-promo-text { font-size: 0.88rem; color: #d0c8e8; line-height: 1.5; }

.wallet-promo-text strong { color: #a78bfa; }

.wallet-promo-cta { margin-top: 4px; font-size: 0.82rem; font-weight: 600; color: #a78bfa; }

.wallet-grant-partial { font-size: 0.78rem; color: #7a6a9a; }

.wallet-grant-capped { font-size: 0.84rem; color: #e8a870; }

.wallet-grant-capped-icon { font-size: 0.9rem; }

.wallet-grant-countdown-line { font-size: 0.82rem; color: #7a6a9a; margin-top: 8px; }

.wallet-grant-partial-warn { font-size: 0.82rem; color: #9a7050; margin-top: 4px; }

.wallet-referral-loading,.wallet-referral-error{padding:12px 0;color:#7a6a9a;font-size:0.84rem;text-align:center}

.wallet-referral-counter{font-size:0.95rem;color:#e0d8f0;text-align:center;padding:8px 0 14px;border-bottom:1px solid rgba(167,139,250,0.12);margin-bottom:14px}

.wallet-referral-counter strong{color:#a78bfa;font-weight:700}

.wallet-referral-counter.wallet-referral-empty{color:#7a6a9a;font-style:italic;font-size:0.85rem}

.wallet-referral-link-label{font-size:0.84rem;color:#c0b8d8;margin-bottom:8px;font-weight:600}

.wallet-referral-link-row{display:flex;gap:8px;align-items:stretch}

.wallet-referral-link-input{flex:1;background:rgba(0,0,0,0.35);border:1px solid rgba(167,139,250,0.25);color:#e0d8f0;padding:10px 12px;border-radius:10px;font-size:0.82rem;font-family:monospace;outline:none;min-width:0}

.wallet-referral-link-input:focus{border-color:rgba(167,139,250,0.55)}

.wallet-referral-copy-btn{background:linear-gradient(135deg,#a78bfa,#7c3aed);color:#fff;border:none;padding:0 16px;border-radius:10px;font-size:0.82rem;font-weight:600;cursor:pointer;letter-spacing:0.02em;transition:all 0.2s;white-space:nowrap}

.wallet-referral-copy-btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(167,139,250,0.35)}

.wallet-referral-copy-btn.copied{background:linear-gradient(135deg,#34d399,#059669)}

.wallet-referral-copy-btn.failed{background:linear-gradient(135deg,#f87171,#dc2626)}

.wallet-referral-link-hint{font-size:0.74rem;color:#7a6a9a;line-height:1.5;margin-top:10px}

.wallet-referral-toggle-row{margin-top:18px;padding-top:14px;border-top:1px solid rgba(167,139,250,0.12)}

.wallet-referral-toggle-label{display:flex;align-items:center;gap:10px;font-size:0.84rem;color:#c0b8d8;cursor:pointer;user-select:none}

.wallet-referral-toggle-label input[type="checkbox"]{width:18px;height:18px;accent-color:#a78bfa;cursor:pointer;flex-shrink:0}

@media (max-width:480px) {
  .credit-item { flex-direction:column; align-items:flex-start; gap:2px; padding:8px 12px; }
  .credit-author { margin-left:0; text-align:left; min-width:auto; }
}

@media (max-width: 400px) {
  .wallet-balances { grid-template-columns: 1fr; }
}


/* ============================================================
   MON COFFRE — lifting premium gold + onglets
   2026-05-17
   ============================================================ */

/* Container */
.wallet-inner {
  background: transparent !important;
}
#walletContent {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === En-tête : titre serif or ◆ === */
.wallet-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}
.wallet-header-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem) !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.3) !important;
}
.wallet-close-btn {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  border-radius: 999px !important;
  color: #d4af37 !important;
  width: 36px;
  height: 36px;
}
.wallet-close-btn:hover {
  border-color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.08) !important;
  color: #f0d97a !important;
}

/* === Onglets : Coffre / Parrainage === */
.wallet-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 24px;
  max-width: 460px;
  padding: 0 16px;
}
.wallet-tab {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: rgba(212, 175, 55, 0.75) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  flex: 1;
}
.wallet-tab:hover {
  border-color: rgba(212, 175, 55, 0.65) !important;
  color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.05) !important;
}
.wallet-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.08)) !important;
  border-color: #d4af37 !important;
  color: #f0d97a !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}

/* === Sections : cadre or === */
.wallet-section,
.wallet-status-section,
.wallet-grant-section,
.wallet-faq-section {
  position: relative !important;
  background: rgba(2, 6, 23, 0.55) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  margin: 16px 0 !important;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.06) inset,
    0 6px 22px rgba(0, 0, 0, 0.4) !important;
}

.wallet-section-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 0.88rem !important;
  margin: 0 0 14px !important;
  font-weight: 500 !important;
}
.wallet-section-title::before {
  content: "◆";
  display: inline-block;
  margin-right: 0.5em;
  font-size: 0.7em;
  opacity: 0.75;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  vertical-align: middle;
}

/* === Status / Subscription rows === */
.wallet-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.wallet-sub-row:last-child {
  border-bottom: none;
}
.wallet-sub-label {
  color: rgba(212, 175, 55, 0.78) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em !important;
}
.wallet-sub-value {
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
}
.wallet-sub-status-ok .wallet-sub-value {
  color: #86efac !important;
}
.wallet-sub-status-warn .wallet-sub-value,
.wallet-sub-status-error .wallet-sub-value {
  color: #f0d97a !important;
}
.wallet-sub-note {
  color: rgba(212, 175, 55, 0.7) !important;
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 6px;
}
.wallet-sub-note.warn {
  color: rgba(240, 217, 122, 0.85) !important;
}

/* "Mensuel" badge */
.wallet-status-section > div:first-child[style*="purple"],
.wallet-plan-badge,
.wallet-plan-pill {
  background: rgba(212, 175, 55, 0.12) !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
}

/* === Benefits === */
.wallet-benefit {
  color: rgba(235, 220, 185, 0.92) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.02em !important;
  padding: 4px 0;
  font-size: 0.92rem !important;
}
.wallet-benefit.muted {
  color: rgba(212, 175, 55, 0.6) !important;
}
.wallet-benefit.cosmic {
  color: #f0d97a !important;
}

/* === Balance cards === */
.wallet-balances {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin: 16px 0 !important;
}
.wallet-balance-card {
  position: relative !important;
  background: rgba(2, 6, 23, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 12px !important;
  padding: 18px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.05) inset;
}
.wallet-balance-icon {
  font-size: 1.6rem !important;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}
.wallet-balance-label {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(212, 175, 55, 0.75) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  margin-bottom: 4px;
}
.wallet-balance-amount {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #f0d97a !important;
  font-size: 2rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}
.wallet-balance-amount.zero {
  color: rgba(212, 175, 55, 0.45) !important;
}
.wallet-balance-sub {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(212, 175, 55, 0.55) !important;
  font-style: italic !important;
  font-size: 0.75rem !important;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.wallet-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}
.wallet-total-row > span:first-child {
  color: rgba(212, 175, 55, 0.75) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.04em !important;
}
.wallet-total-row strong {
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

/* Progress bar */
.wallet-progress-track {
  height: 4px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.wallet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8923a, #d4af37, #f0d97a);
  transition: width 0.5s ease;
}

/* === Cosmic card === */
.wallet-cosmic-card {
  background: rgba(2, 6, 23, 0.5) !important;
  border-left: 2px solid rgba(212, 175, 55, 0.55) !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 14px 16px !important;
}
.wallet-cosmic-name {
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.1em !important;
}
.wallet-cosmic-date {
  color: rgba(212, 175, 55, 0.65) !important;
  font-style: italic !important;
  font-size: 0.85rem;
}

/* === FAQ === */
.wallet-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.wallet-faq-toggle-icon {
  color: #d4af37 !important;
}
.wallet-faq-q {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
  padding: 10px 0 !important;
  text-align: left !important;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.wallet-faq-icon {
  color: #d4af37 !important;
  font-size: 1rem;
}
.wallet-faq-a {
  color: rgba(235, 220, 185, 0.85) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  padding: 8px 0 12px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

/* === Référral === */
.wallet-referral-counter {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-size: 1.05rem !important;
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.wallet-referral-link-block {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 12px 0;
}
.wallet-referral-link-block input {
  flex: 1;
  background: rgba(2, 6, 23, 0.6) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: #e5e7eb !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 0.92rem !important;
}
.wallet-referral-link-block button {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10)) !important;
  border: 1px solid rgba(212, 175, 55, 0.65) !important;
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  cursor: pointer;
}
.wallet-referral-link-block button:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.16)) !important;
  border-color: #d4af37 !important;
}

/* === CTA Recharger === */
.wallet-cta-section {
  text-align: center;
  margin: 32px 0 24px;
}
.wallet-cta-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10)) !important;
  border: 1px solid rgba(212, 175, 55, 0.65) !important;
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.wallet-cta-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.16)) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.35) !important;
}

/* === Grant section === */
.wallet-grant-done,
.wallet-grant-pending,
.wallet-grant-detail,
.wallet-grant-countdown-line,
.wallet-grant-partial-warn,
.wallet-grant-capped {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(235, 220, 185, 0.85) !important;
  font-size: 0.92rem !important;
  padding: 4px 0 !important;
}
.wallet-countdown {
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}

/* === Grace + Loss warnings === */
.wallet-grace-banner,
.wallet-loss-warning {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
}
.wallet-grace-title {
  color: #d4af37 !important;
  letter-spacing: 0.12em !important;
  font-weight: 600 !important;
}
.wallet-grace-cta {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.12)) !important;
  border: 1px solid #d4af37 !important;
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  margin-top: 12px !important;
  cursor: pointer;
}

/* === Onglets : afficher seulement la section active === */
.wallet-tab-content {
  display: none;
}
.wallet-tab-content.active {
  display: block;
}

/* Sur mobile : grilles 1 colonne */
@media (max-width: 600px) {
  .wallet-balances {
    grid-template-columns: 1fr !important;
  }
}

/* === Fix layout parrainage === */
.wallet-referral-link-block {
  display: block !important;
}
.wallet-referral-link-label {
  display: block !important;
  text-align: center !important;
  color: rgba(212, 175, 55, 0.8) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.1em !important;
  margin: 14px 0 10px !important;
  font-size: 0.85rem !important;
}
.wallet-referral-link-row {
  display: flex !important;
  gap: 8px !important;
  align-items: stretch !important;
  margin: 10px 0 !important;
}
.wallet-referral-link-row .wallet-referral-link-input,
.wallet-referral-link-row input[type="text"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  background: rgba(2, 6, 23, 0.6) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: #e5e7eb !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 0.92rem !important;
}
.wallet-referral-link-row .wallet-referral-copy-btn {
  flex: 0 0 auto !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10)) !important;
  border: 1px solid rgba(212, 175, 55, 0.65) !important;
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  cursor: pointer;
  white-space: nowrap;
}
.wallet-referral-link-row .wallet-referral-copy-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.16)) !important;
  border-color: #d4af37 !important;
}
.wallet-referral-link-hint {
  color: rgba(212, 175, 55, 0.65) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-style: italic !important;
  font-size: 0.85rem !important;
  text-align: center !important;
  margin-top: 12px !important;
  line-height: 1.5;
}
.wallet-referral-toggle-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.wallet-referral-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(212, 175, 55, 0.7) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 0.88rem !important;
  cursor: pointer;
}
