/* ═══════════════════════════════════════════════════════════════
   NovaBanc — Web Banking Portal
   Dark Navy + Gold Fintech Theme
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deepest:     #04090F;
  --bg-main:        #070F1C;
  --bg-surface:     #0C1829;
  --bg-elevated:    #112035;
  --bg-high:        #182C47;
  --bg-overlay:     rgba(4, 9, 15, 0.85);

  /* Brand */
  --gold:           #C9A84C;
  --gold-light:     #E2C478;
  --gold-dim:       rgba(201, 168, 76, 0.14);
  --gold-glow:      rgba(201, 168, 76, 0.28);
  --gold-border:    rgba(201, 168, 76, 0.22);

  /* Text */
  --text-primary:   #E8EDF5;
  --text-secondary: #7A9ABF;
  --text-muted:     #3D5A7A;
  --text-inverse:   #07101E;

  /* Semantic */
  --success:        #27AE60;
  --success-dim:    rgba(39, 174, 96, 0.14);
  --error:          #E55353;
  --error-dim:      rgba(229, 83, 83, 0.14);
  --warning:        #F0A500;
  --warning-dim:    rgba(240, 165, 0, 0.14);
  --info:           #2E86DE;
  --info-dim:       rgba(46, 134, 222, 0.14);

  /* Borders */
  --border:         rgba(120, 155, 195, 0.10);
  --border-strong:  rgba(201, 168, 76, 0.20);

  /* Typography */
  --font-headline:  'Space Grotesk', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  /* Sizing */
  --sidebar-w:      240px;
  --topbar-h:       64px;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold:    0 4px 24px rgba(201, 168, 76, 0.18);

  /* Transitions */
  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Callback / spinner compatibility */
  --color-primary:           var(--gold);
  --color-background:        var(--bg-main);
  --color-on-background:     var(--text-primary);
  --color-surface-variant:   var(--bg-elevated);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Portal Shell (authenticated pages) ───────────────────────── */
.portal-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s var(--ease);
}

.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold), #8C6A1E);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-inverse);
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--gold-dim);
  color: var(--gold);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

/* Sidebar user footer */
.sidebar-user {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

#user-avatar, .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-elevated);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  overflow: hidden;
}

.user-online-dot {
  width: 9px;
  height: 9px;
  background: var(--success);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
}

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

#user-name, .user-display-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

#logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.18s;
  display: flex;
  align-items: center;
}

#logout-btn:hover { color: var(--error); }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.page-content {
  padding: 2rem;
  flex: 1;
  max-width: 1100px;
  width: 100%;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #A07A2A);
  color: var(--text-inverse);
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 20px rgba(201,168,76,0.45);
  transform: translateY(-1px);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-high);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--error-dim);
  color: var(--error);
  border: 1px solid rgba(229,83,83,0.25);
}

.btn-danger:hover:not(:disabled) {
  background: var(--error);
  color: #fff;
}

.btn-success {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(39,174,96,0.25);
}

.btn-success:hover:not(:disabled) {
  background: var(--success);
  color: #fff;
}

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-label .required { color: var(--gold); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-control:read-only {
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: default;
}

.form-control.verified {
  border-color: rgba(39,174,96,0.4);
  background: rgba(39,174,96,0.05);
}

select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A9ABF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.3rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-dim);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  float: right;
  margin-top: -1px;
}

.input-verified-wrap { position: relative; }
.input-verified-wrap .verified-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success);
  font-size: 1rem;
}

/* Checkbox / Radio */
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.6rem; cursor: pointer; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.form-check-label { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.4; }

/* Toggle */
.toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.toggle-wrap:last-child { border-bottom: none; }
.toggle-info { flex: 1; }
.toggle-label { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.toggle-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }
.toggle {
  position: relative; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer;
}
.toggle input { display: none; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--bg-high);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.toggle input:checked + .toggle-track {
  background: var(--gold-dim);
  border-color: var(--gold-border);
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s var(--ease-spring);
}
.toggle input:checked ~ .toggle-thumb {
  left: 21px;
  background: var(--gold);
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card-sm { padding: 1.1rem 1.25rem; border-radius: var(--radius-md); }
.card-elevated { background: var(--bg-elevated); }
.card-gold { border-color: var(--gold-border); }
.card-hover { transition: all 0.2s var(--ease); cursor: pointer; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold-border); }

.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.card-title { font-family: var(--font-headline); font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.card-body { }
.card-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── Account Card (bank card style) ────────────────────────────── */
.bank-card {
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bank-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.bank-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.bank-card-current { background: linear-gradient(135deg, #0D2547 0%, #1A3A6B 100%); box-shadow: 0 8px 32px rgba(26,58,107,0.4); }
.bank-card-savings { background: linear-gradient(135deg, #0D3D2A 0%, #165E40 100%); box-shadow: 0 8px 32px rgba(22,94,64,0.4); }
.bank-card-business { background: linear-gradient(135deg, #2B1A0D 0%, #4A2E0F 100%); box-shadow: 0 8px 32px rgba(74,46,15,0.4); }

.bank-card:hover { transform: translateY(-4px) rotate(0.5deg); box-shadow: var(--shadow-lg); }

.bank-card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.bank-card-type { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.bank-card-logo { font-family: var(--font-headline); font-weight: 700; font-size: 0.85rem; color: rgba(255,255,255,0.9); }

.bank-card-middle { position: relative; z-index: 1; }
.bank-card-balance { font-family: var(--font-headline); font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.bank-card-balance-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }

.bank-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.bank-card-number { font-family: 'Courier New', monospace; font-size: 0.85rem; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; }
.bank-card-chip { width: 32px; height: 24px; background: linear-gradient(135deg, var(--gold), #8C6A1E); border-radius: 4px; }

/* ── Stat Cards ────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

.stat-card { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--bg-surface); border: 1px solid var(--border); }
.stat-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 0.75rem; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 0.25rem; }
.stat-value { font-family: var(--font-headline); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.stat-change { font-size: 0.75rem; margin-top: 0.2rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* ── Tables ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.data-table td {
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-elevated); }
.data-table td.amount { font-family: var(--font-headline); font-weight: 600; }
.data-table td.amount.credit { color: var(--success); }
.data-table td.amount.debit { color: var(--text-primary); }

/* ── Badges / Status ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-error   { background: var(--error-dim);   color: var(--error); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-info    { background: var(--info-dim);    color: var(--info); }
.badge-gold    { background: var(--gold-dim);    color: var(--gold); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-muted); }

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.9rem 1.1rem; border-radius: var(--radius-md);
  font-size: 0.875rem; margin-bottom: 1rem;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-content { flex: 1; }
.alert-title { font-weight: 600; margin-bottom: 2px; }
.alert-info    { background: var(--info-dim);    border: 1px solid rgba(46,134,222,0.25); color: var(--info); }
.alert-success { background: var(--success-dim); border: 1px solid rgba(39,174,96,0.25); color: var(--success); }
.alert-warning { background: var(--warning-dim); border: 1px solid rgba(240,165,0,0.25); color: var(--warning); }
.alert-error   { background: var(--error-dim);   border: 1px solid rgba(229,83,83,0.25); color: var(--error); }

/* ── Dividers ──────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.divider-label {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.75rem; color: var(--text-muted);
  margin: 1.5rem 0;
}
.divider-label::before, .divider-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Transaction Item ──────────────────────────────────────────── */
.txn-list { }

.txn-date-group { padding: 0.5rem 0 0.25rem; }
.txn-date-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.txn-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.txn-item:last-child { border-bottom: none; }
.txn-item:hover { background: var(--bg-elevated); border-radius: var(--radius-md); padding-left: 0.5rem; }

.txn-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.txn-info { flex: 1; min-width: 0; }
.txn-name { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-meta { font-size: 0.75rem; color: var(--text-muted); }

.txn-amount { text-align: right; flex-shrink: 0; }
.txn-amount-value { font-family: var(--font-headline); font-weight: 600; font-size: 0.9rem; }
.txn-amount-value.credit { color: var(--success); }
.txn-amount-value.debit  { color: var(--text-primary); }
.txn-amount-status { font-size: 0.7rem; color: var(--text-muted); }

/* ── Wizard / Stepper ──────────────────────────────────────────── */
.wizard-stepper {
  display: flex; align-items: flex-start;
  gap: 0; margin-bottom: 2.5rem;
  overflow-x: auto; padding-bottom: 0.5rem;
}

.wizard-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 80px; position: relative;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.wizard-step.done:not(:last-child)::after { background: var(--gold-border); }

.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  position: relative; z-index: 1;
}

.wizard-step.active .step-circle {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.wizard-step.done .step-circle {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--text-inverse);
}

.step-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.4rem; text-align: center; font-weight: 500; }
.wizard-step.active .step-label { color: var(--gold); }
.wizard-step.done .step-label { color: var(--text-secondary); }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeSlideIn 0.3s var(--ease) both; }

.wizard-nav { display: flex; gap: 0.75rem; margin-top: 2rem; }

/* ── Eligibility Check ─────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }

.check-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--bg-elevated); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.check-item.pass { border-color: rgba(39,174,96,0.25); background: var(--success-dim); }
.check-item.fail { border-color: rgba(229,83,83,0.25); background: var(--error-dim); }
.check-item.running { border-color: var(--gold-border); background: var(--gold-dim); }

.check-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.check-text { flex: 1; font-size: 0.875rem; font-weight: 500; }
.check-status { font-size: 0.75rem; font-weight: 600; }
.check-item.pass .check-status  { color: var(--success); }
.check-item.fail .check-status  { color: var(--error); }
.check-item.running .check-status { color: var(--gold); }

/* ── Quick Actions ─────────────────────────────────────────────── */
.quick-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.quick-action {
  flex: 1; min-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all 0.2s var(--ease); text-decoration: none;
}

.quick-action:hover { background: var(--bg-high); border-color: var(--gold-border); transform: translateY(-2px); }
.quick-action-icon { font-size: 1.4rem; }
.quick-action-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-align: center; }
.quick-action:hover .quick-action-label { color: var(--gold); }

/* ── Account Selector ──────────────────────────────────────────── */
.account-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--bg-elevated);
}

.account-type-card:hover { border-color: var(--gold-border); background: var(--bg-high); }
.account-type-card.selected { border-color: var(--gold); background: var(--gold-dim); }
.account-type-card.selected .act-name { color: var(--gold); }

.act-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.act-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.act-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* ── Cards Management ──────────────────────────────────────────── */
.payment-card-visual {
  width: 100%; max-width: 340px;
  height: 200px;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}

.payment-card-visual::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.card-visa { background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%); }
.card-mastercard { background: linear-gradient(135deg, #1F1B2E 0%, #2D1B4E 50%, #3D1A3A 100%); }
.card-frozen { filter: saturate(0.3) brightness(0.7); }

.pc-chip { width: 38px; height: 28px; background: linear-gradient(135deg, #D4AF37, #8B6914); border-radius: 5px; }
.pc-network { font-size: 1.4rem; }
.pc-number { font-family: 'Courier New', monospace; font-size: 1rem; color: rgba(255,255,255,0.85); letter-spacing: 0.15em; }
.pc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.pc-holder { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.pc-expiry-label { font-size: 0.6rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.pc-expiry { font-size: 0.85rem; color: rgba(255,255,255,0.85); font-weight: 600; }

/* ── Support ───────────────────────────────────────────────────── */
.chat-window {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  height: 420px; overflow: hidden;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-msg { max-width: 72%; padding: 0.65rem 0.9rem; border-radius: var(--radius-md); font-size: 0.875rem; line-height: 1.45; }
.chat-msg.bot { background: var(--bg-high); color: var(--text-secondary); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--gold-dim); color: var(--text-primary); align-self: flex-end; border-bottom-right-radius: 4px; border: 1px solid var(--gold-border); }
.chat-msg-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.chat-input-wrap { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--border); }
.chat-input { flex: 1; background: var(--bg-high); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.6rem 0.9rem; font-family: var(--font-body); font-size: 0.875rem; color: var(--text-primary); outline: none; }
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { border-color: var(--gold-border); }

.ticket-item { display: flex; align-items: flex-start; gap: 0.875rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.ticket-item:last-child { border-bottom: none; }
.ticket-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.ticket-body { flex: 1; }
.ticket-subject { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.ticket-preview { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.ticket-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ── Login History ─────────────────────────────────────────────── */
.session-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.session-item:last-child { border-bottom: none; }
.session-device { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.session-info { flex: 1; min-width: 0; }
.session-name { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.session-detail { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.session-time { font-size: 0.78rem; color: var(--text-muted); text-align: right; }
.session-item.current .session-name::after { content: ' (Current)'; color: var(--success); font-size: 0.72rem; }

/* ── Profile ───────────────────────────────────────────────────── */
.profile-avatar-section { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: var(--radius-full);
  object-fit: cover; background: var(--bg-elevated);
  border: 3px solid var(--gold-border);
}
.profile-name { font-family: var(--font-headline); font-size: 1.3rem; font-weight: 700; }
.profile-sub { color: var(--text-muted); font-size: 0.85rem; margin-top: 3px; }

.field-verified { display: flex; align-items: center; gap: 0.5rem; }
.field-verified .form-control { flex: 1; }

.verification-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--radius-full); letter-spacing: 0.04em;
  background: var(--success-dim); color: var(--success);
  border: 1px solid rgba(39,174,96,0.2);
}

/* ── Landing Page ──────────────────────────────────────────────── */
.landing-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-deepest); }

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(4, 9, 15, 0.92);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.hero {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 5rem 2rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(26,58,107,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 60% 80%, rgba(14,35,65,0.3) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; inset: 0; opacity: 0.035;
  background-image:
    linear-gradient(var(--gold-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold-border) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  padding: 5px 14px; border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 0.6s var(--ease) 0.1s both;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  animation: fadeSlideIn 0.6s var(--ease) 0.2s both;
}

.hero-headline .accent { color: var(--gold); }
.hero-headline .underline-gold { position: relative; }
.hero-headline .underline-gold::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.1rem; color: var(--text-secondary); line-height: 1.65;
  margin-bottom: 2.5rem; max-width: 520px; margin-left: auto; margin-right: auto;
  animation: fadeSlideIn 0.6s var(--ease) 0.3s both;
}

.hero-cta { animation: fadeSlideIn 0.6s var(--ease) 0.4s both; }

.btn-hero {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--gold), #8C6A1E);
  color: var(--text-inverse);
  font-family: var(--font-headline); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius-xl); border: none; cursor: pointer;
  box-shadow: 0 4px 32px rgba(201,168,76,0.35);
  transition: all 0.25s var(--ease);
}

.btn-hero:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 40px rgba(201,168,76,0.5); color: var(--text-inverse); }
.btn-hero:active { transform: translateY(-1px) scale(0.99); }

.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 3rem; flex-wrap: wrap;
  animation: fadeSlideIn 0.6s var(--ease) 0.5s both;
}

.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); }
.trust-check { color: var(--gold); font-size: 0.9rem; }

.features-section { padding: 5rem 2.5rem; background: var(--bg-surface); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.feature-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--bg-elevated); border: 1px solid var(--border);
  animation: fadeSlideIn 0.5s var(--ease) both;
}
.feature-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.feature-title { font-family: var(--font-headline); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.35rem; }
.feature-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }

.landing-footer { padding: 1.5rem 2.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg-deepest); }
.footer-note { font-size: 0.75rem; color: var(--text-muted); }

/* ── Modals ────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: var(--bg-overlay); backdrop-filter: blur(4px);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.2s; }
.modal-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  max-width: 480px; width: calc(100% - 2rem);
  animation: fadeSlideIn 0.25s var(--ease-spring) both;
  box-shadow: var(--shadow-lg);
}
.modal-title { font-family: var(--font-headline); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal-body { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── Two-column layout ─────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

/* ── Utility ───────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.82rem; }
.font-bold { font-weight: 700; }
.font-headline { font-family: var(--font-headline); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Skeleton loaders */
.skeleton { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-high) 50%, var(--bg-elevated) 75%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes checkPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Staggered entry for grid items */
.stagger-1  { animation: fadeSlideIn 0.5s var(--ease) 0.05s both; }
.stagger-2  { animation: fadeSlideIn 0.5s var(--ease) 0.10s both; }
.stagger-3  { animation: fadeSlideIn 0.5s var(--ease) 0.15s both; }
.stagger-4  { animation: fadeSlideIn 0.5s var(--ease) 0.20s both; }
.stagger-5  { animation: fadeSlideIn 0.5s var(--ease) 0.25s both; }
.stagger-6  { animation: fadeSlideIn 0.5s var(--ease) 0.30s both; }

/* ── Spinner ───────────────────────────────────────────────────── */
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--color-surface-variant, var(--bg-elevated));
  border-top-color: var(--color-primary, var(--gold));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

.center-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
  background: var(--bg-main);
  font-family: var(--font-body);
  color: var(--text-primary);
}

.center-title {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Summary Row ───────────────────────────────────────────────── */
.summary-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row .key { color: var(--text-muted); }
.summary-row .val { color: var(--text-primary); font-weight: 500; }
.summary-row .val.verified { color: var(--success); }

/* ── IBAN Display ──────────────────────────────────────────────── */
.iban-display {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Success State ─────────────────────────────────────────────── */
.success-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--success-dim);
  border: 3px solid rgba(39,174,96,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.25rem;
  animation: scaleIn 0.4s var(--ease-spring) both;
}

/* ── Payment Form ──────────────────────────────────────────────── */
.amount-input-wrap { position: relative; }
.amount-currency {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: 1.1rem; color: var(--text-muted);
}
.amount-input { padding-left: 2.5rem !important; font-size: 1.15rem !important; font-weight: 700; }

/* ── Tabs ──────────────────────────────────────────────────────── */
.tab-nav {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s; white-space: nowrap;
  font-family: var(--font-body);
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeSlideIn 0.25s var(--ease) both; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-240px);
    width: 240px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }

  .main-content { margin-left: 0; }

  .topbar { padding: 0 1rem; }

  .page-content { padding: 1.25rem; }

  .two-col, .three-col { grid-template-columns: 1fr; }
  .col-span-2, .col-span-3 { grid-column: span 1; }

  .bank-card { min-height: 150px; }

  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    cursor: pointer; font-size: 1.1rem; color: var(--text-secondary);
    flex-shrink: 0;
  }
}

@media (min-width: 901px) { .menu-toggle { display: none; } }

@media (max-width: 600px) {
  .hero-trust { gap: 1rem; }
  .quick-actions { gap: 0.5rem; }
  .quick-action { min-width: 80px; padding: 0.75rem 0.5rem; }
  .wizard-stepper { gap: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
