/* ============================================================
   SmartCash Loan — Premium Fintech Design System
   Deep luxury red · glassmorphism · glossy crimson & wine
   ============================================================ */
:root {
  --red-50:  #FEF2F2;
  --red-100: #FEE2E2;
  --red-200: #FECACA;
  --red-300: #FCA5A5;
  --red-500: #EF4444;
  --red-600: #DC2626;
  --red-700: #B91C1C;
  --red-800: #991B1B;
  --red-900: #7F1D1D;
  --wine:    #6C1220;
  --ruby:    #BE123C;
  --ink:     #1A1214;
  --muted:   #8A7F82;
  --line:    #F1E9E9;
  --bg:      #FBF8F7;
  --card:    #FFFFFF;
  --gold:    #E8C57C;
  --radius:  18px;
  --shadow-sm: 0 1px 2px rgba(26,18,20,.05), 0 2px 8px rgba(26,18,20,.04);
  --shadow-md: 0 2px 6px rgba(26,18,20,.05), 0 16px 40px -18px rgba(127,29,29,.18);
  --shadow-lg: 0 24px 70px -28px rgba(127,29,29,.35);
  --glow-red: 0 18px 50px -18px rgba(220,38,38,.55);
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Animated ambient red lighting */
body::before, body::after {
  content: ''; position: fixed; z-index: -1; border-radius: 50%;
  pointer-events: none; filter: blur(90px); opacity: .55;
}
body::before {
  width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(220,38,38,.16), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}
body::after {
  width: 640px; height: 640px; bottom: -240px; left: -180px;
  background: radial-gradient(circle, rgba(190,18,60,.12), transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px,60px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(80px,-70px) scale(1.08); } }
::selection { background: var(--red-200); color: var(--red-900); }
.hidden { display: none !important; }
h1, h2, h3 { letter-spacing: -.02em; }
.amount, .wallet-amount, .card-value, .tx-amount, .wallet-stat-value, .ad-amount {
  font-variant-numeric: tabular-nums;
}

/* ============ Page loader ============ */
.page-loader {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(251,248,247,.96); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity .55s ease, visibility .55s ease;
}
body.ready .page-loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--red-600), var(--red-800) 60%, var(--wine));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-red), inset 0 1px 0 rgba(255,255,255,.35);
  animation: pulse-mark 1.6s ease-in-out infinite;
}
@keyframes pulse-mark { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 285deg, var(--red-600) 285deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton shimmer */
.shimmer {
  background: linear-gradient(90deg, #F3EBEB 25%, #E9DCDC 37%, #F3EBEB 63%) !important;
  background-size: 400% 100% !important;
  animation: shimmer 1.4s ease infinite;
  color: transparent !important; border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 800; font-size: 15px; letter-spacing: .01em;
  border: 0; border-radius: 12px; cursor: pointer; padding: 13px 22px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-red, .btn-apply {
  color: #fff;
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 40%, var(--red-800) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 6px rgba(0,0,0,.14), var(--glow-red);
}
.btn-red:hover, .btn-apply:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 22px 55px -18px rgba(220,38,38,.65); }
.btn-apply { padding: 15px 28px; font-size: 15.5px; border-radius: 14px; }
.btn-white {
  background: #fff; color: var(--red-700);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(127,29,29,.06);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-verify {
  width: 330px; max-width: 100%; color: #fff;
  background: linear-gradient(135deg, var(--red-500), var(--red-700) 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--glow-red);
}
.btn-verify:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.btn-verify:disabled { background: #EFE7E7; color: #B9A9AC; box-shadow: none; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer; width: 38px; height: 38px; border-radius: 12px;
  transition: background .18s, transform .18s;
}
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }

/* ============ Auth screen ============ */
#authView {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(700px 500px at -10% 110%, rgba(255,190,190,.14), transparent 60%),
    linear-gradient(135deg, var(--red-700) 0%, var(--red-800) 45%, var(--wine) 100%);
}
#authView::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
  top: -120px; left: -100px; filter: blur(10px); animation: drift1 18s ease-in-out infinite alternate;
}
.auth-card {
  width: 100%; max-width: 420px; position: relative; z-index: 1;
  background: rgba(255,255,255,.96); backdrop-filter: blur(18px);
  border-radius: 24px; padding: 40px 36px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.6);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand .brand-mark { width: 42px; height: 42px; }
.auth-brand span:last-child {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink);
}
.auth-brand span:last-child em { color: var(--red-600); font-style: normal; }
#authTitle { font-size: 27px; font-weight: 800; margin-bottom: 5px; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6B5B5E; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 12px; background: #FDFBFB; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #E5D5D6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--red-600); font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.alert-err {
  margin-top: 16px; background: var(--red-50); border: 1px solid var(--red-200); color: var(--red-800);
  padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: linear-gradient(120deg, rgba(127,29,29,.94), rgba(153,27,27,.9) 55%, rgba(108,18,32,.94));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 34px -14px rgba(108,18,32,.55);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: 6px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red-500), var(--red-800) 60%, var(--wine));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px -8px rgba(0,0,0,.45);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 62%);
}
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff;
  letter-spacing: .01em; white-space: nowrap;
}
.brand-name em { font-style: italic; color: #F5C9C9; }
.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.nav-link {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 9px 18px; border-radius: 11px; transition: background .18s, color .18s;
  border: 1px solid transparent;
}
.nav-link:hover { background: rgba(255,255,255,.13); color: #fff; }
.nav-link.active {
  background: rgba(255,255,255,.16); color: #fff;
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
}
.icon-btn:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: #FFD9D9; color: var(--red-800);
  font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--red-800); box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute; right: 0; top: 50px; width: 330px; z-index: 90;
  background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(26,18,20,.35);
  overflow: hidden; animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.notif-head {
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-800); padding: 14px 18px 10px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--red-50), transparent);
}
.notif-list { max-height: 320px; overflow-y: auto; padding: 8px; }
.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 12px; border-radius: 11px; transition: background .15s;
}
.notif-item:hover { background: var(--red-50); }
.notif-dot {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.notif-dot.credit { background: #E9FBF0; color: #16A34A; }
.notif-dot.debit  { background: var(--red-100); color: var(--red-600); }
.notif-dot.warn   { background: #FEF3C7; color: #B45309; }
.notif-text { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.notif-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notif-empty { padding: 22px 14px; text-align: center; color: var(--muted); font-size: 13.5px; }
.avatar-wrap { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #F5C9C9, var(--red-500) 70%);
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px -4px rgba(0,0,0,.4);
  border: 2px solid rgba(255,255,255,.55);
}
.avatar-meta { display: flex; flex-direction: column; line-height: 1.25; }
.avatar-name { color: #fff; font-weight: 800; font-size: 13.5px; }
.avatar-mail { color: rgba(255,255,255,.72); font-size: 11.5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ Layout ============ */
.content { max-width: 1240px; margin: 0 auto; padding: 26px 28px 60px; position: relative; }

/* ============ Hero ============ */
.hero {
  max-width: 1240px; margin: 26px auto 0; padding: 0 28px;
}
.hero-inner {
  background: rgba(255,255,255,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(220,38,38,.1);
  border-radius: 22px; padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.hero-inner::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(220,38,38,.09), transparent 65%);
  pointer-events: none;
}
.hero-greeting {
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.hero-greeting::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red-600), transparent); }
.hero-name { font-size: 33px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.hero-member { font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-member span { color: var(--red-700); font-weight: 800; }
.hero-actions { display: flex; gap: 12px; }

/* ============ Cards grid ============ */
.cards { display: grid; gap: 18px; margin-bottom: 24px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.stats-cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(220,38,38,.07);
  box-shadow: var(--shadow-sm);
  padding: 20px; display: flex; gap: 15px; align-items: flex-start;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red-500), var(--wine)); opacity: 0; transition: opacity .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(220,38,38,.16); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px -4px rgba(26,18,20,.12);
}
.ic-green  { background: linear-gradient(135deg, #E3FBEA, #CFF5DC); color: #16A34A; }
.ic-amber  { background: linear-gradient(135deg, #FEF5DC, #FDE8B8); color: #B45309; }
.ic-red    { background: linear-gradient(135deg, var(--red-100), #FFD4D4); color: var(--red-600); }
.ic-orange { background: linear-gradient(135deg, #FFEDD5, #FFDDC2); color: #C2410C; }
.card-label { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card-value { font-size: 21px; font-weight: 800; line-height: 1.15; color: var(--ink); }
.card-sub   { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }

/* ============ Wallet card ============ */
.wallet-panel {
  border-radius: 22px; overflow: hidden; position: relative;
  background: transparent; box-shadow: none; border: 0; margin-bottom: 24px;
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wallet-panel::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, rgba(220,38,38,.55), rgba(255,255,255,.65) 30%, rgba(190,18,60,.4) 60%, rgba(255,255,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.wallet-grid {
  display: grid; grid-template-columns: 1.35fr .8fr; gap: 24px;
  border-radius: 22px; padding: 34px 36px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 88% -30%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(500px 300px at -10% 120%, rgba(255,140,140,.18), transparent 60%),
    linear-gradient(130deg, var(--red-600) 0%, var(--red-700) 42%, var(--red-900) 78%, var(--wine) 100%);
  box-shadow: var(--glow-red), 0 30px 80px -30px rgba(108,18,32,.7), inset 0 1px 0 rgba(255,255,255,.22);
}
.wallet-grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.13) 50%, transparent 60%);
}
.wallet-grid::after {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -60px; bottom: -90px; border: 1.5px solid rgba(255,255,255,.14); pointer-events: none;
}
.wallet-balance-box { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wallet-label { font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .92; }
.eye-btn {
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer; flex-shrink: 0;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
}
.eye-btn:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.wallet-amount { font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.22); }
.wallet-sub { font-size: 13.5px; opacity: .85; margin-top: 9px; font-weight: 600; }
.wallet-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn-fund {
  background: #fff; color: var(--red-700); padding: 12px 20px; font-size: 14.5px; border-radius: 12px;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.4), inset 0 -2px 5px rgba(127,29,29,.08);
}
.btn-fund:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(0,0,0,.5); }
.btn-withdraw {
  background: rgba(255,255,255,.14); color: #fff; padding: 12px 20px; font-size: 14.5px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-withdraw:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.wallet-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; z-index: 1; }
.wallet-chip {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: 13px 16px; backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.wallet-chip svg { flex-shrink: 0; opacity: .9; }

/* ============ Panels ============ */
.panel {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(220,38,38,.07);
  box-shadow: var(--shadow-sm); margin-bottom: 24px; overflow: hidden;
  transition: box-shadow .22s ease;
}
.panel:hover { box-shadow: var(--shadow-md); }
.panel-head {
  display: flex; align-items: center; gap: 15px; padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(254,242,242,.6), transparent 55%);
}
.panel-head .card-icon { width: 44px; height: 44px; border-radius: 13px; }
.panel-head h2 { font-size: 17.5px; font-weight: 800; }
.panel-head p { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.panel-body { padding: 30px 24px; display: flex; flex-direction: column; align-items: center; }
.panel-body-left { align-items: stretch; }

/* ============ Verification code ============ */
.code-hint {
  background: linear-gradient(90deg, #FEF5DC, #FDF0CE); border: 1px solid #F5DFA0; color: #8A5A0B;
  font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: 12px; margin-bottom: 24px;
  box-shadow: 0 6px 18px -8px rgba(180,83,9,.25);
}
.code-hint b { letter-spacing: 5px; font-weight: 800; color: #6d4406; }
.code-inputs { display: flex; gap: 11px; margin-bottom: 24px; }
.code-inputs input {
  width: 52px; height: 58px; text-align: center;
  font: inherit; font-size: 24px; font-weight: 800; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 14px; background: #FDFBFB;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.code-inputs input:hover { border-color: #E5D5D6; }
.code-inputs input:focus {
  outline: none; border-color: var(--red-500); background: #fff; transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12), 0 10px 22px -10px rgba(220,38,38,.35);
}
.code-inputs input.filled {
  border-color: var(--red-300); background: linear-gradient(180deg, #FFF, var(--red-50));
}
.code-resend { font-size: 13.5px; color: var(--muted); margin-top: 18px; font-weight: 600; }
.code-resend a { color: var(--red-600); font-weight: 800; text-decoration: none; }
.code-resend a:hover { text-decoration: underline; }
.verify-msg { margin-top: 16px; font-size: 14px; font-weight: 800; text-align: center; }
.verify-msg.ok  { color: #16A34A; }
.verify-msg.err { color: var(--red-600); }

/* ============ Transactions ============ */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #FDFBFB; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s;
}
.tx-row:hover {
  transform: translateX(3px); background: #fff; border-color: rgba(220,38,38,.18);
  box-shadow: 0 10px 26px -14px rgba(127,29,29,.25);
}
.tx-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tx-icon {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px -4px rgba(26,18,20,.14);
}
.tx-icon.credit { background: linear-gradient(135deg, #E3FBEA, #CFF5DC); color: #16A34A; }
.tx-icon.debit  { background: linear-gradient(135deg, var(--red-100), #FFD4D4); color: var(--red-600); }
.tx-desc { font-size: 14.5px; font-weight: 800; }
.tx-date { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.tx-amount { font-size: 15.5px; font-weight: 800; white-space: nowrap; }
.tx-amount.credit { color: #16A34A; }
.tx-amount.debit  { color: var(--red-600); }

/* ============ Applications (user) ============ */
.apps-list { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.app-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #FDFBFB; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; flex-wrap: wrap;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.app-row:hover { transform: translateY(-2px); border-color: rgba(220,38,38,.18); box-shadow: 0 12px 30px -16px rgba(127,29,29,.28); }
.app-amount { font-size: 18px; font-weight: 800; color: var(--red-700); }
.app-meta   { font-size: 13px; color: var(--muted); font-weight: 600; }
.app-status {
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #FFEDD5, #FFE3C2); color: #C2410C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.app-status.approved { background: linear-gradient(135deg, #E3FBEA, #CFF5DC); color: #15803D; }
.empty-line { color: var(--muted); font-size: 14.5px; text-align: center; padding: 10px 0; font-weight: 600; }

/* ============ Badges ============ */
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.badge.ok   { background: linear-gradient(135deg, #E3FBEA, #CFF5DC); color: #15803D; }
.badge.warn { background: linear-gradient(135deg, #FEF5DC, #FDE8B8); color: #92400E; }
.badge.bad  { background: linear-gradient(135deg, var(--red-100), #FFD4D4); color: var(--red-800); }
.badge.mut  { background: #F1EDEE; color: #6B5B5E; }

/* ============ Modals ============ */
.modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(26,12,14,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%; max-width: 430px; max-height: 90vh; overflow-y: auto;
  background: rgba(255,255,255,.98); backdrop-filter: blur(24px);
  border-radius: 22px; padding: 28px;
  box-shadow: 0 40px 100px -24px rgba(26,12,14,.55), inset 0 1px 0 rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.7);
  animation: rise .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-wide { max-width: 580px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { font-size: 19px; font-weight: 800; }
.btn-x {
  background: var(--red-50); border: 1px solid var(--red-100); color: var(--red-700);
  width: 34px; height: 34px; border-radius: 11px; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.btn-x:hover { background: var(--red-100); transform: rotate(90deg); }
.modal-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.form-section {
  font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--red-600); margin: 20px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--red-100);
  display: flex; align-items: center; gap: 8px;
}
.form-section::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--red-500), var(--wine)); box-shadow: 0 0 0 3px rgba(220,38,38,.14); }
.form-section:first-of-type { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.quick-amounts { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.quick-btn {
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-200);
  border-radius: 999px; padding: 8px 16px;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.quick-btn:hover { background: var(--red-100); transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(220,38,38,.4); }

/* ============ Transaction PIN ============ */
.pin-note {
  font-size: 13px; color: var(--muted); font-weight: 600; margin: -4px 0 12px;
  background: var(--red-50); border: 1px solid var(--red-100);
  border-radius: 10px; padding: 10px 14px;
}
.pin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pin-grid .field input {
  text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 10px;
  padding: 12px 10px 12px 20px;
}
#pinVerify .field input { grid-column: 1 / -1; }
#pinVerify { grid-template-columns: 1fr; }

/* ============ Admin ============ */
.admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
  background: rgba(255,255,255,.8); backdrop-filter: blur(12px);
  border: 1px solid rgba(220,38,38,.1); border-radius: 20px; padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.admin-title { font-size: 24px; font-weight: 800; }
.admin-sub { color: var(--muted); font-size: 14px; margin-top: 3px; font-weight: 600; }
.btn-ghost-dark {
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  font: inherit; font-weight: 800; font-size: 14px; padding: 11px 18px;
  border-radius: 12px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s;
}
.btn-ghost-dark:hover { border-color: var(--red-300); background: var(--red-50); transform: translateY(-1px); }
.admin-cards { margin-bottom: 24px; }
.table-wrap { overflow-x: auto; padding: 8px 14px 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 13px 13px 9px; border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 14px 13px; border-bottom: 1px solid #F7F1F1; vertical-align: middle; }
.admin-table tbody tr { transition: background .15s; }
.admin-table tbody tr:hover { background: var(--red-50); }
.admin-table tr:last-child td { border-bottom: 0; }
.ad-user { display: flex; flex-direction: column; }
.ad-name { font-weight: 800; }
.ad-email { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ad-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.ad-btn {
  font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
  border-radius: 10px; padding: 7px 13px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.ad-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(26,18,20,.3); }
.ad-btn.danger  { color: var(--red-700); border-color: var(--red-200); background: var(--red-50); }
.ad-btn.danger:hover  { background: var(--red-100); }
.ad-btn.success { color: #15803D; border-color: #BBF7D0; background: #F0FDF4; }
.ad-btn.success:hover { background: #DCFCE7; }
.ad-app {
  background: #FDFBFB; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.ad-app:hover { border-color: rgba(220,38,38,.2); box-shadow: 0 14px 34px -18px rgba(127,29,29,.28); }
.ad-app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ad-app-user { font-weight: 800; font-size: 15.5px; }
.ad-app-email { font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.ad-app-details {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.ad-app-details div { font-size: 13.5px; font-weight: 600; }
.ad-app-details span {
  display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: 3px;
}
.ad-app-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ============ Footer ============ */
.footer {
  text-align: center; color: var(--muted); font-size: 13px; padding: 10px 0 26px; font-weight: 600;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-cards { grid-template-columns: repeat(3, 1fr); }
  .avatar-meta { display: none; }
}
@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; gap: 12px; }
  .brand-name { font-size: 16px; }
  .main-nav { gap: 2px; }
  .nav-link { padding: 8px 12px; font-size: 13.5px; }
  .hero { padding: 0 16px; margin-top: 18px; }
  .hero-inner { padding: 24px 22px; }
  .hero-name { font-size: 26px; }
  .content { padding: 20px 16px 48px; }
}
@media (max-width: 640px) {
  .cards, .stats-cards { grid-template-columns: 1fr; }
  .form-grid, .pin-grid { grid-template-columns: 1fr; }
  .wallet-panel { animation: none; }
  .wallet-grid { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
  .wallet-amount { font-size: 36px; }
  .wallet-side { flex-direction: row; flex-wrap: wrap; }
  .wallet-chip { flex: 1 1 100%; }
  .code-inputs { gap: 8px; }
  .code-inputs input { width: 46px; height: 52px; font-size: 21px; }
  .btn-apply { width: 100%; }
  .avatar-wrap { display: none; }
  .tx-row { padding: 13px 14px; }
  .admin-head { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
