:root{
  --visa-blue:#0a66c2;
  --visa-dark:#053a7a;
  --mc-red:#eb0029;
  --mc-orange:#ff7a00;

  --bg:#0f1724;
  --surface:#0b1220;
  --muted:#9aa7bf;
  --ring:rgba(255,255,255,0.08);
  --glass:rgba(255,255,255,0.04);
  --accent-grad: linear-gradient(90deg,var(--visa-blue), #2a77d6, var(--mc-orange));
  --radius:14px;

  --text:#d9e6ff;
  --text-weak:#b9c7e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 400px at 10% 10%, rgba(10,102,194,0.12), transparent 6%),
    radial-gradient(800px 300px at 90% 90%, rgba(255,122,0,0.08), transparent 6%),
    var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a { color:#fff; text-decoration:none }
.muted{ color:var(--muted) }
.small{ font-size:12px }

/* Header / Navbar */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(15,23,36,0.6);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.navbar{
  max-width:1100px; margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand-left{font-weight:700; letter-spacing:0.3px}
.nav-links{display:flex; gap:16px; align-items:center}
.nav-links a{
  padding:8px 10px; border-radius:10px; color:var(--text-weak);
  border:1px solid transparent;
}
.nav-links a:hover, .nav-links a.active{ border-color:var(--ring); color:#fff }
.logo-right img{ width:40px; height:40px; border-radius:10px; display:block }
.right-box{ display:flex; gap:10px; align-items:center }
#langSwitch{
  background:transparent; color:#fff; border:1px solid var(--ring); border-radius:10px; padding:6px 8px;
}

/* Hero */
.hero{ padding:64px 20px 24px }
.hero-inner{ max-width:1100px; margin:0 auto }
.hero h1{ margin:0 0 10px 0; font-size:32px }
.hero p{ margin:0 0 16px 0; color:var(--text-weak); max-width:720px }
.hero-cta{ display:flex; gap:12px; margin:18px 0 10px 0 }
.btn{
  border:none; cursor:pointer; font-weight:700;
  padding:10px 14px; border-radius:10px;
}
.btn.primary{ background:var(--visa-blue); color:#fff }
.btn.ghost{ background:transparent; color:var(--text-weak); border:1px solid var(--ring) }
.btn.ghost:hover{ color:#fff; border-color:#fff }

.hero-stats{ display:flex; gap:16px; margin-top:20px; flex-wrap:wrap }
.stat{ background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border:1px solid rgba(255,255,255,0.04); border-radius:12px; padding:12px 16px; min-width:180px }
.stat-kpi{ font-size:22px; font-weight:700 }
.stat-label{ color:var(--muted); font-size:12px }

/* Sections */
.section{ max-width:1100px; margin:0 auto; padding:28px 20px }
.section h1, .section h2{ margin:0 0 12px 0 }

/* Accordion */
.accordion{ display:grid; gap:8px }
.acc-head{
  width:100%; text-align:left;
  background:rgba(255,255,255,0.02);
  color:#fff; border:1px solid rgba(255,255,255,0.06);
  border-radius:10px; padding:12px 14px; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
}
.acc-head:hover{ border-color:#fff }
.acc-icon{ opacity:0.7 }
.acc-body{
  display:none; background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:10px; padding:12px 14px; color:var(--text-weak)
}
.acc-head.active + .acc-body{ display:block }
.acc-head.active .acc-icon{ transform:rotate(45deg) }

/* Transactions (home) */
.tx-list{ display:grid; gap:10px }
.tx-item{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border:1px solid rgba(255,255,255,0.04);
  border-radius:12px; padding:12px 14px;
}
.tx-left{ display:flex; gap:10px; align-items:center }
.tx-avatar{
  width:36px; height:36px; border-radius:10px;
  background:linear-gradient(90deg,var(--mc-red), var(--mc-orange));
  display:flex; align-items:center; justify-content:center; font-weight:700;
}
.tx-name{ font-weight:600 }
.tx-amount{ font-weight:700 }
.tx-meta{ color:var(--muted); font-size:12px }

/* Toasts */
.toast-stack{
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display:flex; flex-direction:column; gap:10px; align-items:flex-end;
}
.toast{
  min-width:260px; max-width:360px;
  background:rgba(15,23,36,0.9);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px; padding:12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: slideIn .25s ease-out;
}
.toast strong{ display:block; margin-bottom:4px }
.toast small{ color:var(--muted) }
@keyframes slideIn{
  from{ opacity:0; transform: translateY(8px) scale(0.98) }
  to{ opacity:1; transform: translateY(0) scale(1) }
}

/* Footer */
.site-footer{
  max-width:1100px; margin:24px auto; padding:0 20px 40px 20px;
  color:var(--muted);
}

/* Responsive */
@media (max-width:900px){
  .nav-links{ display:none }
}