/* ============================================
   KartaVert — Vert émeraude · Light theme
   ============================================ */

:root {
  --bg-0: #f6fbf8;
  --bg-1: #ffffff;
  --bg-2: #f0f7f3;
  --bg-3: #e6f4ec;
  --line:  rgba(16, 185, 129, 0.12);
  --line-2: rgba(16, 185, 129, 0.22);

  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --gold:  #b8860b;
  --text-1: #0b1f17;
  --text-2: #3b554a;
  --text-3: #6f8579;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-emerald: 0 18px 50px -22px rgba(16,185,129,0.55);
  --shadow-card: 0 12px 30px -18px rgba(11, 31, 23, 0.18);
}

* { -webkit-font-smoothing: antialiased; }

html, body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
}

body.public-layout {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(16,185,129,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(110,231,183,0.18), transparent 60%),
    var(--bg-0);
  min-height: 100vh;
}

::selection { background: var(--emerald-500); color: #ffffff; }

a { text-decoration: none; color: var(--emerald-700); }
a:hover { color: var(--emerald-600); }

.text-emerald { color: var(--emerald-600); }
.text-gold { color: var(--gold); }
.text-muted-soft { color: var(--text-3); }

.mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: -0.01em; transition: transform .2s ease, background-color .2s ease, box-shadow .25s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: #ffffff;
  border: 1px solid var(--emerald-600);
  box-shadow: var(--shadow-emerald);
  padding: .6rem 1.25rem;
}
.btn-emerald:hover { color: #ffffff; background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600)); box-shadow: 0 22px 56px -20px rgba(16,185,129,0.7); }

.btn-outline-emerald {
  background: #ffffff;
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
  padding: .55rem 1.15rem;
}
.btn-outline-emerald:hover { background: var(--emerald-50); color: var(--emerald-800); border-color: var(--emerald-400); }

.btn-ghost-emerald {
  background: transparent; color: var(--text-1);
  border: 1px solid transparent;
}
.btn-ghost-emerald:hover { background: var(--emerald-50); color: var(--emerald-700); }

.btn-dark-card {
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--line-2);
}
.btn-dark-card:hover { background: var(--bg-3); color: var(--emerald-700); }

/* ---------- Public navbar ---------- */
.public-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
}
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-700));
  color: #ffffff; font-size: 1.05rem;
  box-shadow: 0 8px 20px -8px rgba(16,185,129,0.7);
}
.brand-text { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text-1); }

.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo-sm { height: 30px; }

/* Flash toast */
.flash-toast {
  position: fixed; top: 90px; right: 20px; z-index: 2000;
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 1.15rem;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -10px rgba(11, 31, 23, 0.25);
  font-size: .92rem;
  max-width: 360px;
  animation: slideIn .3s ease both;
}
.flash-success { border-left: 4px solid var(--emerald-500); color: var(--emerald-800); }
.flash-error   { border-left: 4px solid #ef4444; color: #991b1b; }
.flash-info    { border-left: 4px solid #3b82f6; color: #1e3a8a; }
.flash-close { background: none; border: none; color: var(--text-3); font-size: 1.4rem; line-height: 1; cursor: pointer; margin-left: .5rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

.public-nav .nav-link {
  color: var(--text-2);
  padding: .45rem .9rem !important;
  border-radius: 999px;
  font-size: .92rem;
  transition: color .2s, background .2s;
}
.public-nav .nav-link:hover { color: var(--emerald-700); }
.public-nav .nav-link.active { color: var(--emerald-700); background: var(--emerald-50); }
.public-nav .navbar-toggler i { color: var(--text-1) !important; }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
.section-tight { padding: 3.5rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: .78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
}

h1, h2, h3, h4 { letter-spacing: -0.025em; font-weight: 700; color: var(--text-1); }
h1.display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; font-weight: 800; }
h2.display { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; }

/* ---------- Hero ---------- */
.hero { padding-top: 9rem; padding-bottom: 4rem; position: relative; overflow: hidden; }
.hero-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-lead { color: var(--text-2); font-size: 1.1rem; line-height: 1.65; max-width: 540px; }

/* ---------- Virtual card visual ---------- */
.vcard {
  position: relative;
  border-radius: 22px;
  padding: 1.5rem;
  color: #04130b;
  aspect-ratio: 1.586 / 1;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.5) inset;
  isolation: isolate;
}
.vcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}
.vcard::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.10) 0%, transparent 35%),
    linear-gradient(155deg, transparent 40%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.card-gradient-emerald { background: linear-gradient(140deg, #34d399 0%, #059669 55%, #064e3b 100%); }
.card-gradient-forest  { background: linear-gradient(140deg, #6ee7b7 0%, #047857 55%, #022c1f 100%); }
.card-gradient-mint    { background: linear-gradient(140deg, #a7f3d0 0%, #10b981 60%, #065f46 100%); }
.card-gradient-frozen  { background: linear-gradient(140deg, #d6e4dd 0%, #a8bcb1 100%); color: #2c3a33; }

.vcard .v-brand { font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem; }
.vcard .v-chip {
  width: 38px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #f6d488, #c79b4a);
  position: relative;
}
.vcard .v-chip::before {
  content:""; position:absolute; inset: 4px;
  background-image: linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 6px 6px; border-radius: 3px;
}
.vcard .v-number { font-family: 'JetBrains Mono', monospace; font-size: 1.18rem; letter-spacing: .1em; }
.vcard .v-label { text-transform: uppercase; letter-spacing: .14em; font-size: .65rem; opacity: .85; }
.vcard .v-visa { font-family: 'Sora', sans-serif; font-weight: 800; font-style: italic; font-size: 1.5rem; letter-spacing: .02em; }

.vcard.tilt {
  transform: perspective(1200px) rotateY(-12deg) rotateX(8deg) translateY(-6px);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.vcard.tilt:hover { transform: perspective(1200px) rotateY(-6deg) rotateX(4deg) translateY(-10px); }

/* ---------- Glass card ---------- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}
.glass-soft {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 20px 50px -22px rgba(16, 185, 129, 0.3); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line-2);
}

/* ---------- Logos / stats ---------- */
.logo-strip { color: var(--text-3); }
.logo-strip .logo-item { font-weight: 600; font-size: 1.05rem; opacity: .75; letter-spacing: -0.02em; }
.logo-strip .logo-item:hover { opacity: 1; color: var(--emerald-700); }

.stat-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.stat-pill .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--emerald-700); }
.stat-pill .stat-label { font-size: .78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- How it works steps ---------- */
.step-row { counter-reset: step; }
.step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--emerald-50); color: var(--emerald-700);
  font-weight: 700; margin-bottom: 1rem;
  border: 1px solid var(--line-2);
}

/* ---------- Pricing ---------- */
.price-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-card);
}
.price-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.price-card.featured {
  background: linear-gradient(180deg, var(--emerald-50), #ffffff);
  border: 1px solid var(--emerald-300);
  box-shadow: 0 20px 50px -22px rgba(16, 185, 129, 0.35);
}
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--emerald-700); letter-spacing: -0.03em; }

/* ---------- Footer ---------- */
.public-footer {
  background: linear-gradient(180deg, transparent, var(--emerald-50));
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}
.footer-heading { color: var(--text-1); font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; color: var(--text-3); }
.footer-list a { color: var(--text-3); font-size: .92rem; transition: color .2s; }
.footer-list a:hover { color: var(--emerald-700); }
.social-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #ffffff; color: var(--text-2);
  border: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--emerald-600); color: #ffffff; border-color: var(--emerald-600); }

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-0);
}
@media (min-width: 992px) {
  .auth-shell { grid-template-columns: 1.05fr 1fr; }
}
.auth-side {
  display: none;
  background: linear-gradient(160deg, var(--emerald-700) 0%, var(--emerald-900) 75%);
  position: relative; overflow: hidden;
  padding: 3rem 3rem 2rem;
  color: #ecfdf5;
}
.auth-side h2, .auth-side .brand-text { color: #ffffff; }
.auth-side .text-emerald { color: var(--emerald-200); }
.auth-side .text-muted-soft { color: rgba(236,253,245,0.7); }
.auth-side .eyebrow { background: rgba(255,255,255,0.08); color: var(--emerald-200); border-color: rgba(110,231,183,0.35); }
.auth-side .avatar-circle { background: linear-gradient(135deg, var(--emerald-300), var(--emerald-600)); color: #04130b; }
@media (min-width: 992px) { .auth-side { display: flex; flex-direction: column; } }
.auth-side::after {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(110,231,183,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,231,183,0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
}
.auth-side .auth-side-inner { position: relative; z-index: 1; }
.auth-form-wrap { padding: 2.5rem 1.5rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .auth-form-wrap { padding: 3rem; } }
.auth-form { width: 100%; max-width: 440px; }
.auth-form .form-control,
.auth-form .form-select {
  background: #ffffff;
  border: 1px solid var(--line-2);
  color: var(--text-1);
  padding: .75rem 1rem;
  border-radius: 12px;
}
.auth-form .form-control::placeholder { color: var(--text-3); }
.auth-form .form-control:focus,
.auth-form .form-select:focus {
  background: #ffffff;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  color: var(--text-1);
}
.auth-form .form-label { color: var(--text-2); font-size: .87rem; margin-bottom: .35rem; font-weight: 500; }
.auth-form .input-group-text {
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text-3); border-radius: 12px 0 0 12px;
  border-right: 0;
}
.auth-form .input-group .form-control { border-radius: 0 12px 12px 0; border-left: 0; }
.divider {
  display: flex; align-items: center; gap: .75rem; color: var(--text-3); font-size: .8rem;
}
.divider::before, .divider::after { content:""; flex:1; height:1px; background: var(--line-2); }

/* ---------- App layout ---------- */
body.app-layout {
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(16,185,129,0.10), transparent 60%),
    var(--bg-0);
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}
.app-sidebar {
  grid-row: 1 / span 2;
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 1.5rem 1rem;
  position: sticky; top: 0; height: 100vh;
  box-shadow: 1px 0 0 var(--line);
}
.sidebar-inner { display: flex; flex-direction: column; height: 100%; }
.sidebar-user {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 14px;
}
.sidebar-user .fw-semibold { color: var(--text-1) !important; }
.avatar-circle {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-700));
  color: #ffffff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-sm { width: 34px; height: 34px; font-size: .85rem; border-radius: 10px; }

.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .8rem;
  color: var(--text-2);
  padding: .7rem .85rem;
  border-radius: 12px;
  transition: background .2s, color .2s, transform .15s;
  font-size: .95rem;
  text-decoration: none;
}
.sidebar-link i { width: 20px; }
.sidebar-link:hover { background: var(--emerald-50); color: var(--emerald-700); }
.sidebar-link.active { background: linear-gradient(135deg, var(--emerald-50), #ffffff); color: var(--emerald-700); border: 1px solid var(--line-2); }

.sidebar-promo {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.sidebar-promo .fw-semibold { color: var(--text-1) !important; }

.app-topbar {
  grid-column: 2;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.app-topbar .fw-semibold { color: var(--text-1) !important; }
.app-main {
  grid-column: 2;
  padding: 2rem;
}
@media (max-width: 991.98px) {
  body.app-layout { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; top: 0; left: -300px; width: 280px; z-index: 1050; transition: left .3s; }
  .app-sidebar.show { left: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.25); }
  .app-topbar, .app-main { grid-column: 1; }
  .app-main { padding: 1.25rem; }
}

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; color: var(--text-2);
  border: 1px solid var(--line); position: relative;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--emerald-50); color: var(--emerald-700); }
.notif-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; background: var(--emerald-500); border-radius: 50%; box-shadow: 0 0 0 3px #ffffff; }

/* ---------- Balance card / stat ---------- */
.balance-card {
  background: linear-gradient(140deg, var(--emerald-600) 0%, var(--emerald-900) 100%);
  border: 1px solid var(--emerald-700);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #ecfdf5;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(16,185,129,0.45);
}
.balance-card::after {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 90% -10%, rgba(110,231,183,0.30), transparent 50%);
  pointer-events: none;
}
.balance-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: #ffffff; }

.kpi {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.kpi .kpi-label { text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; color: var(--text-3); }
.kpi .kpi-value { font-size: 1.4rem; font-weight: 700; color: var(--text-1); }
.kpi .kpi-delta { font-size: .8rem; color: var(--emerald-700); }

.table-dark-soft {
  --bs-table-bg: #ffffff;
  --bs-table-color: var(--text-1);
  --bs-table-border-color: var(--line);
  --bs-table-hover-bg: var(--bg-2);
  --bs-table-hover-color: var(--text-1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table-dark-soft thead th {
  background: var(--bg-2); color: var(--text-3);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; border-bottom: 1px solid var(--line-2);
}
.table-dark-soft td { vertical-align: middle; color: var(--text-1); }
.table-dark-soft .text-muted-soft { color: var(--text-3) !important; }
.table-dark-soft .fw-semibold { color: var(--text-1) !important; }

.badge-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 500;
  border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text-2);
}
.badge-success { background: var(--emerald-50); color: var(--emerald-700); border-color: var(--emerald-200); }
.badge-pending { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-failed  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.badge-frozen  { background: #e2e8f0; color: #475569; border-color: #cbd5e1; }

.tx-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line-2);
}
.tx-in  { color: var(--emerald-700); background: var(--emerald-50); }
.tx-out { color: #b91c1c; background: #fef2f2; }

/* ---------- Modal light ---------- */
.modal-content {
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  color: var(--text-1);
  box-shadow: 0 40px 80px -20px rgba(11,31,23,0.30);
}
.modal-header, .modal-footer { border-color: var(--line); }
.modal .btn-close { filter: none; }
.modal .form-control, .modal .form-select {
  background: #ffffff; border: 1px solid var(--line-2); color: var(--text-1);
}
.modal .form-control:focus, .modal .form-select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}
.modal .input-group-text { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); }
.form-check-input { background-color: #ffffff; border-color: var(--line-2); }
.form-check-input:checked { background-color: var(--emerald-500); border-color: var(--emerald-500); }

/* ---------- Tabs ---------- */
.nav-pills .nav-link {
  color: var(--text-2);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .9rem;
  cursor: pointer;
}
.nav-pills .nav-link.active {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--line-2);
}

/* ---------- Legal pages ---------- */
.legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 2rem; }
.legal-content h2 { font-size: 1.4rem; color: var(--emerald-700); }
.legal-content h3 { font-size: 1.1rem; color: var(--text-1); }
.legal-content p, .legal-content li { color: var(--text-2); line-height: 1.75; }
.legal-content ul, .legal-content ol { padding-left: 1.25rem; }

/* ---------- Misc helpers ---------- */
.bg-dark-1 { background: var(--bg-1) !important; }
.bg-dark-2 { background: var(--bg-2) !important; }
.border-soft { border: 1px solid var(--line) !important; }
.copy-input {
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  color: var(--emerald-700);
  font-family: 'JetBrains Mono', monospace;
  font-size: .9rem;
  padding: .6rem .85rem;
  border-radius: 12px;
}
.text-light { color: var(--text-1) !important; }
.border-secondary { border-color: var(--line) !important; }
hr { border-color: var(--line); opacity: 1; }

.fade-in { animation: fadeIn .6s ease both; }
.fade-up { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes fadeUp { from { opacity:0; transform: translateY(20px) } to { opacity:1; transform: translateY(0) } }

.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .48s; }

/* Specific overrides for inverted contexts inside vcard */
.vcard .text-muted-soft { color: rgba(4,19,11,0.65) !important; }
.vcard.card-gradient-frozen .text-muted-soft { color: rgba(44,58,51,0.7) !important; }



/***************************************** VIRTUAL CARD ************************************/
.virtual-card{
    position:relative;
    overflow:hidden;
    min-height:250px;
    border-radius:24px;
    padding:24px;
    color:#fff;
    backdrop-filter:blur(20px);
    box-shadow:
        0 15px 40px rgba(0,0,0,.25),
        inset 0 1px rgba(255,255,255,.15);
}

.virtual-card::before{
    content:'';
    position:absolute;
    width:250px;
    height:250px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    top:-80px;
    right:-80px;
}

.virtual-card::after{
    content:'';
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(255,255,255,.05);
    bottom:-70px;
    left:-70px;
}

.card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

.chip{
    width:55px;
    height:40px;
    border-radius:10px;
    background:linear-gradient(
        135deg,
        #f5d67b,
        #c99b2b
    );
}

.visa-logo{
    font-size:28px;
    font-weight:900;
    letter-spacing:2px;
}

.card-number{
    font-size:1.35rem;
    letter-spacing:3px;
    font-weight:700;
    margin-bottom:10px;
}

.card-actions{
    display:flex;
    gap:8px;
}

.card-actions .btn{
    width:40px;
    height:40px;
    border-radius:50%;
    padding:0;
}

.virtual-card small{
    color:rgba(255,255,255,.7);
}

.card-balance{
    border-top:1px solid rgba(255,255,255,.15);
    padding-top:12px;
}

.virtual-card {
    position: relative;
}

.virtual-card .btn {
    position: relative;
    z-index: 10;
}

.virtual-card::before,
.virtual-card::after {
    pointer-events: none !important;
}