/* ============================================================================
   AdaWang.my — Modern Design System  (smooth · modern · responsive)
   ============================================================================ */
:root {
  /* PayPal-inspired palette */
  --navy: #003087;
  --navy-2: #001C64;
  --ink: #001C64;
  --blue: #0070BA;
  --blue-2: #009CDE;
  --blue-d: #005EA6;
  --indigo: #003087;
  --teal: #009CDE;
  --orange: #FFC43A;
  --orange-2: #FFB81C;
  --green: #00A76F;
  --green-d: #008557;
  --violet: #142C8E;
  --pink: #E8537A;
  --sky: #E8F4FC;
  --mint: #E6F7F1;
  --cream: #FFF8E8;

  --bg: #F5F7FA;
  --bg-2: #E8EEF5;
  --card: #FFFFFF;
  --card-2: #F7FAFC;
  --border: #D4DCE8;
  --border-2: #E8EEF5;

  --text: #001C64;
  --muted: #6B7C93;
  --muted-2: #8B9BB0;

  --ok: #00A76F;
  --warn: #FFB81C;
  --danger: #D20000;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --pill: 999px;

  --shadow-xs: 0 1px 2px rgba(0, 48, 135, .06);
  --shadow-sm: 0 4px 12px rgba(0, 48, 135, .08);
  --shadow: 0 8px 24px -8px rgba(0, 48, 135, .14), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-lg: 0 20px 40px -16px rgba(0, 48, 135, .18);
  --shadow-blue: 0 10px 24px -8px rgba(0, 112, 186, .35);
  --shadow-orange: 0 10px 24px -8px rgba(255, 196, 58, .3);
  --shadow-green: 0 10px 24px -8px rgba(0, 167, 111, .3);

  --font-display: "Josefin Sans", system-ui, sans-serif;
  --font: "Josefin Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .3s;
  --touch: 46px;

  /* aliases used by gold overrides */
  --gold: #0070BA;
  --gold-2: #009CDE;
  --gold-3: #005EA6;
  --gold-soft: rgba(0, 112, 186, .12);
  --ink-black: #003087;
  --ink-2: #001C64;
  --line-gold: rgba(0, 112, 186, .35);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: pageIn .5s var(--ease) both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-d); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(37, 99, 235, .18); color: var(--ink); }

/* Custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: #C7D2E3 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #C7D2E3; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #A9B8D1; background-clip: content-box; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; border-radius: 6px; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); } 50% { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal utility */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.on { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.animate-in { animation: fadeUp .6s var(--ease) both; }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 18px 56px; }

/* ---------- Header / nav ---------- */
.nav, .aw-nav {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(230, 234, 242, .9);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .03);
}
.nav-inner, .aw-nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; gap: 12px; min-height: 64px;
}
.brand, .aw-logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.brand img, .aw-logo img { height: 44px; width: auto; max-width: 170px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 500; }

.nav-links, .aw-nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a.nav-txt, .aw-nav-links a.nav-txt {
  color: #334155; font-weight: 600; font-size: 14px;
  padding: 10px 13px; border-radius: 12px; text-decoration: none !important;
  min-height: var(--touch); display: inline-flex; align-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav-links a.nav-txt:hover, .aw-nav-links a.nav-txt:hover { background: #EEF3FB; color: var(--blue-d); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.nav-toggle:hover { box-shadow: var(--shadow-sm); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s var(--ease); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .aw-nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 16px 16px; gap: 6px;
    box-shadow: var(--shadow-lg); animation: fadeUp .3s var(--ease);
  }
  .nav-links.open, .aw-nav-links.open { display: flex; }
  .nav-links a.nav-txt, .aw-nav-links a.nav-txt,
  .nav-links .btn, .aw-nav-links .btn,
  .nav-links .btn-blue, .aw-nav-links .btn-blue { width: 100%; justify-content: center; }
  .brand-text { display: none; }
  .brand img, .aw-logo img { height: 38px; }
}

/* ---------- Buttons ---------- */
.btn, .btn-blue, .btn-orange, .btn-green, .btn-ghost-light {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch); border: 1px solid transparent; border-radius: 14px;
  padding: 12px 20px; font-family: var(--font); font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none !important;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
  line-height: 1.2; -webkit-tap-highlight-color: transparent;
}
.btn::after, .btn-blue::after, .btn-orange::after, .btn-green::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none;
}
.btn:hover::after, .btn-blue:hover::after, .btn-orange:hover::after, .btn-green:hover::after { transform: translateX(120%); }
.btn:hover, .btn-blue:hover, .btn-orange:hover, .btn-green:hover { transform: translateY(-2px); }
.btn:active, .btn-blue:active, .btn-orange:active, .btn-green:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:disabled::after { display: none; }

.btn-primary, .btn-blue {
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff !important; box-shadow: var(--shadow-blue); border-radius: var(--pill);
}
.btn-primary:hover, .btn-blue:hover { box-shadow: 0 16px 32px -8px rgba(37, 99, 235, .5); }
.btn-orange {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff !important; border-radius: var(--pill); box-shadow: var(--shadow-orange);
}
.btn-orange:hover { box-shadow: 0 16px 32px -8px rgba(249, 115, 22, .5); }
.btn-green {
  background: linear-gradient(135deg, #34D399, var(--green));
  color: #fff !important; box-shadow: var(--shadow-green); border-radius: var(--pill);
}
.btn-dark { background: var(--navy); color: #fff !important; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--navy) !important; box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-d) !important; box-shadow: var(--shadow-sm); }
.btn-danger { background: linear-gradient(135deg, #EF4444, var(--danger)); color: #fff !important; }
.btn-danger:hover { box-shadow: 0 12px 26px -8px rgba(220, 38, 38, .45); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 9px 15px; font-size: 13px; border-radius: 12px; }
.btn-ghost-light {
  background: rgba(255, 255, 255, .14); color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: var(--pill);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Cards / layout ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow); }
.card-elevated { box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.22; color: var(--navy); font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(1.22rem, 3vw, 1.5rem); }
h3 { font-size: 1.08rem; }
h4 { font-size: .95rem; }
.muted { color: var(--muted); }
.text-sm { font-size: 14px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--navy); }
input, select, textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; font: inherit; font-size: 16px; background: #fff; color: var(--text);
  min-height: var(--touch);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, select:hover, textarea:hover { border-color: #D3DBE8; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { margin-bottom: 16px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #334155; }
.checkline input { width: auto; min-height: auto; margin-top: 3px; accent-color: var(--blue); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; animation: fadeUp .4s var(--ease); }
.alert-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-ok { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.alert-info { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.alert-warn { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--pill); padding: 5px 12px; font-size: 12px; font-weight: 700; }
.badge-ok { background: #D1FAE5; color: #065F46; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-bad { background: #FEE2E2; color: #991B1B; }
.badge-muted { background: #EEF2F9; color: #475569; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--border-2); font-size: 14px; }
.table tbody tr { transition: background .18s var(--ease); }
.table tbody tr:hover { background: #F8FAFD; }
.table th {
  color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; background: #F8FAFD; border-bottom: 1px solid var(--border);
}
.table th:first-child { border-top-left-radius: 12px; }
.table th:last-child { border-top-right-radius: 12px; }
@media (max-width: 640px) { .table { font-size: 13px; } .table th, .table td { padding: 10px 8px; } }

/* ---------- Auth ---------- */
.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 16px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(59, 130, 246, .22), transparent 60%),
    radial-gradient(50% 45% at 92% 88%, rgba(249, 115, 22, .16), transparent 60%),
    linear-gradient(160deg, #EEF3FB 0%, #F5F7FC 55%, #EDF1F9 100%);
}
.auth-shell::before {
  content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .3), transparent 65%);
  top: -160px; left: -120px; filter: blur(20px); animation: floatY 9s ease-in-out infinite; pointer-events: none;
}
.auth-shell::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, .22), transparent 65%);
  bottom: -140px; right: -100px; filter: blur(20px); animation: floatY 11s ease-in-out infinite reverse; pointer-events: none;
}
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px 28px;
  animation: fadeUp .6s var(--ease) both;
}
.auth-card h1 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-card .muted { margin-top: 0; }

/* ---------- Footer ---------- */
.footer, .aw-footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; padding: 22px 16px 44px; border-top: 1px solid var(--border); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* ---------- How-to strip ---------- */
.howto-strip { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 16px 0 20px; box-shadow: var(--shadow-xs); }
.howto-strip h3 { margin: 0 0 12px; font-size: 1rem; }
.howto-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .howto-steps { grid-template-columns: 1fr; } }
.howto-step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: #F8FAFD; border-radius: 14px; transition: background .2s var(--ease); }
.howto-step:hover { background: #EEF3FB; }
.howto-step b { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.howto-step span { font-size: 13px; color: #475569; line-height: 1.45; }

/* ---------- Dashboard ---------- */
.dash-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-d) 55%, var(--blue) 100%);
  background-size: 180% 180%; animation: gradientShift 12s ease infinite;
  border-radius: var(--radius-lg); padding: 28px 24px; color: #fff; margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}
.dash-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .2), transparent 40%);
}
.dash-hero h1 { color: #fff; }
.dash-hero p { color: rgba(255, 255, 255, .9); margin: 0 0 18px; }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
@media (max-width: 640px) { .dash-metrics { grid-template-columns: 1fr; } }
.dash-metric {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px; padding: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.dash-metric:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.dash-metric span { display: block; font-size: 12px; color: rgba(255, 255, 255, .78); margin-bottom: 5px; }
.dash-metric strong { font-size: 1.08rem; color: #fff; word-break: break-word; }

.action-tile {
  display: flex; align-items: center; gap: 12px; padding: 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  text-decoration: none !important; color: var(--text); min-height: var(--touch);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.action-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.action-tile .ico { width: 42px; height: 42px; border-radius: 12px; background: #DBEAFE; color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.action-tile strong { display: block; font-size: 14px; color: var(--navy); }
.action-tile span { font-size: 12px; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
  background: linear-gradient(180deg, var(--navy), #14264B 60%, var(--blue-d));
  color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side a {
  color: rgba(255, 255, 255, .88); display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; border-radius: 12px; text-decoration: none; margin-bottom: 4px;
  font-weight: 600; font-size: 14px; transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.admin-side a:hover, .admin-side a.active { background: rgba(255, 255, 255, .15); color: #fff; transform: translateX(2px); }
.admin-side a.active { box-shadow: inset 3px 0 0 #60A5FA; }
.admin-main { padding: 28px 22px; background: var(--bg); }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; }
}

/* ---------- Legacy hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: 30px 24px; margin: 12px 0 20px; box-shadow: var(--shadow-lg); }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .92); }

/* ---------- Shared widgets (used across portal) ---------- */
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border-2); font-size: 14px; }
.copy-row:last-child { border-bottom: 0; }
.copy-row span { color: var(--muted); }
.copy-row strong { color: var(--navy); word-break: break-all; text-align: right; }
.btn-copy {
  border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font); flex-shrink: 0; color: var(--navy);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.btn-copy:hover { border-color: var(--blue); color: var(--blue-d); background: #EFF6FF; transform: translateY(-1px); }
.jompay-box { background: #F8FAFD; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-top: 8px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   Verification page components
   ============================================================================ */
.why-pay {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-d) 55%, var(--blue-2) 100%);
  background-size: 180% 180%; animation: gradientShift 14s ease infinite;
  border-radius: var(--radius-lg); padding: 26px 24px; color: #fff; margin-bottom: 18px;
  box-shadow: var(--shadow-lg);
}
.why-pay::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .22), transparent 42%);
}
.why-pay h2 { color: #fff; margin: 0 0 10px; font-size: 1.25rem; position: relative; }
.why-pay p { margin: 0 0 16px; color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.6; position: relative; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px; padding: 14px 16px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.why-item:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.why-item strong { display: block; margin-bottom: 5px; font-size: 14px; color: #fff; }

.ref-banner {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #A7F3D0; border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 18px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: var(--shadow-xs);
}
.ref-banner .code { font-size: 1.5rem; font-weight: 800; color: #065F46; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.jompay-box .copy-row strong { max-width: none; white-space: normal; word-break: break-all; }

.pay-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-tab.active { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff !important; border-color: transparent; box-shadow: var(--shadow-blue); }
.pay-panel { display: none; animation: fadeIn .35s var(--ease); }
.pay-panel.active { display: block; }

.amount-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue-d));
  color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 16px;
  box-shadow: var(--shadow-blue);
}
.amount-hero .lbl { font-size: 12px; opacity: .85; }
.amount-hero .amt { font-size: 1.85rem; font-weight: 800; font-family: var(--font-display); letter-spacing: -.01em; }
.amount-hero .sub { font-size: 12px; opacity: .8; margin-top: 2px; }

/* ============================================================================
   Support / live chat components
   ============================================================================ */
.chat-shell {
  display: flex; flex-direction: column;
  height: min(72vh, 640px); min-height: 420px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.chat-head { padding: 15px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #F8FAFD, #EEF3FB); }
.chat-head .ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-2), var(--blue-d)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); box-shadow: var(--shadow-blue); }
.chat-head strong { display: block; font-size: 15px; color: var(--navy); }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: linear-gradient(180deg, #F5F7FB 0%, #EEF2F7 100%); display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: min(85%, 440px); padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-break: break-word; box-shadow: var(--shadow-xs); animation: fadeUp .35s var(--ease) both; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--blue-2), var(--blue-d)); color: #fff; border-bottom-right-radius: 6px; }
.bubble.admin { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble .time { display: block; margin-top: 6px; font-size: 11px; opacity: .7; }
.chat-foot { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 8px; background: #fff; align-items: flex-end; }
.chat-foot textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; }
.chat-foot textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.chat-foot button { min-width: 52px; height: 46px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--blue-2), var(--blue-d)); color: #fff; font-weight: 700; cursor: pointer; font-family: var(--font); box-shadow: var(--shadow-blue); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.chat-foot button:hover:not(:disabled) { transform: translateY(-2px); }
.chat-foot button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; }
.typing-hint { font-size: 12px; color: var(--muted-2); padding: 0 6px 6px; min-height: 18px; }

/* ============================================================================
   Virtual card + wallet hero
   ============================================================================ */
.vcard {
  position: relative; overflow: hidden; max-width: 420px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-d) 60%, var(--blue-2) 100%);
  background-size: 160% 160%; animation: gradientShift 14s ease infinite;
  color: #fff; border: 0; border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-lg);
}
.vcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .28), transparent 45%); }
.vcard .vc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; position: relative; }
.vcard .vc-brand { letter-spacing: .14em; font-size: 14px; font-weight: 800; font-family: var(--font-display); }
.vcard .vc-status { font-size: 11px; background: rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vcard .vc-num { font-size: clamp(1.15rem, 4vw, 1.4rem); letter-spacing: .14em; font-weight: 700; margin-bottom: 20px; font-variant-numeric: tabular-nums; position: relative; }
.vcard .vc-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; position: relative; }
.vcard .vc-foot .k { opacity: .7; font-size: 11px; letter-spacing: .06em; }
.vcard .vc-foot .v { font-weight: 600; }

.wallet-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-d) 60%, var(--blue-2) 100%);
  background-size: 160% 160%; animation: gradientShift 14s ease infinite;
  color: #fff; border: 0; border-radius: var(--radius-lg); padding: 26px 24px; margin-bottom: 18px;
  box-shadow: var(--shadow-lg);
}
.wallet-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .22), transparent 45%); }
.wallet-hero .lbl { margin: 0; color: rgba(255, 255, 255, .85); font-size: 13px; position: relative; }
.wallet-hero .amt { color: #fff; font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 8px 0 6px; position: relative; }
.wallet-hero .sub { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); position: relative; }

/* ============================================================================
   Transaction history + details modal
   ============================================================================ */
.wallet-hero-chips { display: flex; gap: 10px; margin-top: 16px; position: relative; flex-wrap: wrap; }
.wh-chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 9px 14px; min-width: 118px;
}
.wh-chip span { display: block; font-size: 10.5px; color: rgba(255,255,255,.75); letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
.wh-chip strong { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wh-chip strong.in { color: #86EFAC; }
.wh-chip strong.out { color: #FCA5A5; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.link-more { font-size: 13.5px; font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; transition: color .2s var(--ease), transform .2s var(--ease); }
.link-more:hover { color: var(--blue-d); transform: translateX(2px); }

.txn-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.txn-sum-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 6px;
}
.txn-sum-card .k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.txn-sum-card .v { font-size: 1.32rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.txn-sum-card .v.in { color: #059669; }
.txn-sum-card .v.out { color: #DC2626; }

.txn-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.txn-filters { display: inline-flex; gap: 6px; background: #EEF2F9; padding: 5px; border-radius: 999px; }
.txn-chip {
  border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.txn-chip:hover { color: var(--navy); }
.txn-chip.active { background: #fff; color: var(--blue-d); box-shadow: var(--shadow-xs); }
.txn-search input {
  width: 240px; max-width: 100%; height: 44px; border: 1.5px solid var(--border); border-radius: 13px;
  padding: 0 14px; font: inherit; font-size: 15px; background: #F8FAFD;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.txn-search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }

.txn-list { display: flex; flex-direction: column; gap: 8px; }
.txn-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 13px 15px;
  cursor: pointer; font: inherit; color: var(--text);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}
.txn-row:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); background: #FCFDFF; }
.txn-row:active { transform: translateY(0) scale(.995); }
.txn-ico { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.txn-ico.in { background: #E7F8F0; color: #059669; }
.txn-ico.out { background: #FDECEC; color: #DC2626; }
.txn-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.txn-title { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.txn-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-date { font-size: 11.5px; color: var(--muted-2); }
.txn-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.txn-amt { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.txn-amt.in { color: #059669; }
.txn-amt.out { color: #DC2626; }
.txn-chev { color: var(--muted-2); font-size: 22px; line-height: 1; flex-shrink: 0; transition: transform .22s var(--ease), color .22s var(--ease); }
.txn-row:hover .txn-chev { color: var(--blue); transform: translateX(3px); }
.txn-none { text-align: center; padding: 20px; }

.txn-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; }
.txn-modal[hidden] { display: none; }
.txn-modal-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s var(--ease); }
.txn-modal.open .txn-modal-backdrop { opacity: 1; }
.txn-modal-card {
  position: relative; width: 100%; max-width: 440px; max-height: 88vh; overflow: hidden;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateY(14px) scale(.97); opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.txn-modal.open .txn-modal-card { transform: translateY(0) scale(1); opacity: 1; }
.txn-modal-head { display: flex; align-items: center; gap: 13px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.txn-modal-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.txn-modal-ico.in { background: #E7F8F0; color: #059669; }
.txn-modal-ico.out { background: #FDECEC; color: #DC2626; }
.txn-modal-headtxt { min-width: 0; flex: 1; }
.txn-modal-headtxt h3 { margin: 0; font-size: 1.05rem; }
.txn-modal-headtxt p { margin: 2px 0 0; }
.txn-modal-x { border: 0; background: #F1F5FB; width: 36px; height: 36px; border-radius: 11px; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); flex-shrink: 0; transition: background .2s var(--ease), color .2s var(--ease); }
.txn-modal-x:hover { background: #E2E8F3; color: var(--navy); }
.txn-modal-body { padding: 18px; overflow-y: auto; }
.txn-modal-amt { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.txn-modal-amt.in { color: #059669; }
.txn-modal-amt.out { color: #DC2626; }
.txn-modal-status { margin-bottom: 16px; }
.txn-detail { margin: 0; display: flex; flex-direction: column; }
.txn-detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); }
.txn-detail-row:first-child { border-top: 0; }
.txn-detail-row dt { color: var(--muted); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.txn-detail-row dd { margin: 0; text-align: right; font-weight: 700; color: var(--navy); font-size: 13.5px; word-break: break-word; }
.txn-modal-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); }

@media (max-width: 720px) {
  .txn-summary { grid-template-columns: repeat(2, 1fr); }
  .txn-toolbar { flex-direction: column; align-items: stretch; }
  .txn-filters { justify-content: center; }
  .txn-search input { width: 100%; }
  .txn-row { gap: 11px; padding: 12px; }
  .txn-ico { width: 40px; height: 40px; font-size: 17px; }
  .txn-date { display: none; }
}
@media (max-width: 420px) {
  .txn-amt { font-size: 14px; }
  .txn-right .badge { font-size: 10px; }
}

/* ============================================================================
   Onboarding stepper + form sections + info list
   ============================================================================ */
.steps { list-style: none; display: flex; margin: 0 0 22px; padding: 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; min-width: 0; }
.step::before { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.current::before { background: var(--blue-2); }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; background: #fff; border: 2px solid var(--border); color: var(--muted);
  position: relative; z-index: 1; transition: all .3s var(--ease);
}
.step.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.current .step-dot { background: linear-gradient(135deg, var(--blue-2), var(--blue)); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -8px rgba(37,99,235,.7); }
.step-label { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.3; }
.step.done .step-label { color: var(--navy); }
.step.current .step-label { color: var(--blue-d); }
@media (max-width: 560px) {
  .step-dot { width: 30px; height: 30px; font-size: 12.5px; }
  .step::before { top: 14px; }
  .step-label { font-size: 10.5px; }
}

.form-sec { margin: 24px 0 14px; font-size: 1.02rem; color: var(--navy); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-sec:first-of-type { margin-top: 4px; }
.req { color: #DC2626; font-weight: 800; }
.hint { margin: 6px 0 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

.seg { display: inline-flex; gap: 6px; background: #EEF2F9; padding: 5px; border-radius: 14px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg-opt span { display: block; padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.seg-opt input:checked + span { background: #fff; color: var(--blue-d); box-shadow: var(--shadow-xs); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.info-list { margin: 0; display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.info-row:first-child { border-top: 0; }
.info-row dt { color: var(--muted); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.info-row dd { margin: 0; text-align: right; font-weight: 700; color: var(--navy); font-size: 13.5px; word-break: break-word; }

/* ============ Loan agreement + e-signature ============ */
.ag-doc-card { padding: 0; overflow: hidden; }
.ag-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; background: linear-gradient(135deg, #0B1220, #1D4ED8 70%, #3B82F6); color: #fff; }
.ag-doc-head h2 { color: #fff; }
.ag-doc-head .muted { color: rgba(255,255,255,.82) !important; }
.ag-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 5px 13px; border-radius: var(--pill); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ag-rate-chip { flex-shrink: 0; text-align: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); border-radius: 16px; padding: 12px 20px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ag-rate-chip span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.78); }
.ag-rate-chip strong { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.ag-rate-chip em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.78); }

.ag-doc { padding: 26px 30px 8px; max-height: 560px; overflow: auto; background: #fff; }
.ag-doc .ag-title { font-family: var(--font-display); font-size: 1.45rem; text-align: center; color: var(--navy); margin: 6px 0 4px; letter-spacing: .02em; }
.ag-doc .ag-title + p { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.ag-doc .ag-h { font-family: var(--font-display); font-size: 1.06rem; color: var(--navy); margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.ag-doc .ag-sub { font-size: .95rem; color: var(--navy); margin: 16px 0 6px; }
.ag-doc p { color: #334155; font-size: 14px; line-height: 1.75; margin: 0 0 12px; }
.ag-doc .ag-list { margin: 0 0 14px; padding-left: 22px; }
.ag-doc .ag-list li { color: #334155; font-size: 14px; line-height: 1.7; margin-bottom: 6px; }
.ag-doc .ag-note { background: #EFF5FF; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 14px; font-size: 13.5px; color: var(--blue-d); font-weight: 600; }
.ag-read-note { display: flex; gap: 10px; align-items: flex-start; padding: 16px 24px; background: #F8FAFC; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.ag-read-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); margin-top: 1px; }

.ag-sign-card { margin-top: 18px; }
.sig-tabs { display: inline-flex; gap: 6px; background: #EEF2F9; padding: 5px; border-radius: 14px; margin-bottom: 12px; }
.sig-tab { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: all .2s var(--ease); }
.sig-tab.active { background: #fff; color: var(--blue-d); box-shadow: var(--shadow-xs); }
.sig-pad-wrap { position: relative; border: 2px dashed #C7D3E8; border-radius: 16px; background: #FBFCFE; overflow: hidden; }
.sig-pad-wrap canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #A9B6CC; font-size: 13.5px; pointer-events: none; }
.sig-pane { margin-bottom: 12px; }
.sig-typed-input { width: 100%; height: 52px; border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; font: inherit; font-size: 16px; margin-bottom: 10px; }
.sig-typed-preview { min-height: 96px; display: flex; align-items: center; justify-content: center; border: 2px dashed #C7D3E8; border-radius: 16px; background: #FBFCFE; font-family: 'Josefin Sans', cursive; font-style: italic; font-size: 1.8rem; color: #0B1220; padding: 14px; text-align: center; }
.ag-consents { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 4px; padding: 16px; background: #F8FAFC; border: 1px solid var(--border); border-radius: 16px; }
.ag-consents .checkline { margin: 0; align-items: flex-start; }
.ag-consents .checkline span { font-size: 13.5px; line-height: 1.55; }

.ag-signed-card { border: 1px solid #BBF7D0; }
.ag-signed-head { display: flex; gap: 16px; align-items: center; }
.ag-seal { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #10B981, #059669); color: #fff; box-shadow: 0 12px 24px -12px rgba(16,185,129,.8); }
.ag-seal svg { width: 28px; height: 28px; }
.ag-sig-preview { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: #FBFCFE; }
.ag-sig-preview .muted { display: block; margin-bottom: 8px; }
.ag-sig-preview img { max-height: 90px; }
.ag-sig-typed { font-family: 'Josefin Sans', cursive; font-style: italic; font-size: 1.8rem; color: #0B1220; }

.loan-calc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 20px; }
.loan-calc-item { background: #F8FAFC; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.loan-calc-item span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.loan-calc-item strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
.loan-calc-item.total { background: linear-gradient(135deg, #0B1220, #1D4ED8); border-color: transparent; }
.loan-calc-item.total span { color: rgba(255,255,255,.78); }
.loan-calc-item.total strong { color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }

@media (max-width: 900px) { .loan-calc { grid-template-columns: repeat(2, 1fr); } .loan-calc-item.total { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .ag-doc-head { flex-direction: column; }
  .ag-rate-chip { align-self: stretch; }
  .ag-doc { padding: 20px 18px 4px; }
  .ag-doc .ag-title { font-size: 1.2rem; }
  .sig-pad-wrap canvas { height: 180px; }
  .loan-calc { grid-template-columns: 1fr; }
}


/* ========== Theme ceria & mesra ========== */
body {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(86,204,242,.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255,179,71,.12), transparent 45%),
    var(--bg) !important;
}
.card, .menu-card, .step-card, .feat-card {
  border-radius: var(--radius) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover, .menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow) !important;
}
.btn-primary, .btn-blue {
  background: linear-gradient(135deg, #009CDE, #0070BA) !important;
  border: none !important;
  box-shadow: var(--shadow-blue) !important;
}
.btn-orange, .btn-cta {
  background: linear-gradient(135deg, #FFB347, #FF8A3D) !important;
  box-shadow: var(--shadow-orange) !important;
}
.dash-hero, .wallet-hero, .hero {
  background: linear-gradient(135deg, #005EA6 0%, #0070BA 45%, #009CDE 100%) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.alert-info {
  background: linear-gradient(135deg, #E0F2FE, #F0F9FF) !important;
  border: 1px solid #BAE6FD !important;
  color: #0C4A6E !important;
  border-radius: 16px !important;
}
.alert-ok {
  background: linear-gradient(135deg, #D1FAE5, #ECFDF5) !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 16px !important;
}
.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.menu-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 18px 14px !important;
  text-align: center;
  text-decoration: none !important;
  color: var(--navy) !important;
}
.menu-card .mc-ico {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.txn-row {
  border-radius: 16px !important;
  border-color: var(--border) !important;
}
.txn-ico.in { background: #D1FAE5 !important; }
.txn-ico.out { background: #FFEDD5 !important; }
.badge-ok, .badge.badge-ok {
  background: #D1FAE5 !important; color: #166534 !important;
}
.badge-pending {
  background: #FEF3C7 !important; color: #92400E !important;
}
.steps {
  background: linear-gradient(180deg, #fff, #F8FBFF) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
}


/* ========== Smooth · Compact · User-friendly ========== */
:root {
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
}

/* Tighter global rhythm */
.u-body, .auth-card, .sec {
  --pad: 16px;
}
.card {
  padding: 16px 16px !important;
  margin-bottom: 12px;
  border-radius: 16px !important;
}
.card h3 { margin: 0 0 8px !important; font-size: 1.05rem !important; }
.card p { margin: 0 0 10px; }
.card .muted, .text-sm { font-size: 13px !important; line-height: 1.45; }

/* Forms compact */
label { margin-bottom: 5px !important; font-size: 13px !important; }
input, select, textarea {
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease) !important;
}
textarea { min-height: 88px !important; }
.btn, button.btn, a.btn {
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), opacity .2s !important;
}
.btn:active, button.btn:active { transform: scale(.97) !important; }
.btn-block { width: 100%; justify-content: center; }

/* Grid tighter */
.grid { gap: 12px !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Portal chrome compact */
.u-top {
  padding: 10px 14px !important;
  position: sticky; top: 0; z-index: 40;
}
.u-top h1 { font-size: 1.15rem !important; margin: 0 !important; }
.u-crumb { font-size: 11px !important; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.u-body { padding: 12px 14px 28px !important; max-width: 960px; }
.u-side { padding: 14px 10px !important; }
.u-side a.sitem {
  padding: 10px 12px !important;
  font-size: 13.5px !important;
  border-radius: 12px !important;
  margin-bottom: 2px !important;
}
.u-side .side-label { padding: 10px 12px 4px !important; font-size: 10px !important; }

/* Dashboard / wallet heroes compact */
.dash-hero, .wallet-hero {
  padding: 18px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 18px !important;
}
.dash-hero h1, .wallet-hero h2.amt { margin: 0 0 6px !important; }
.dash-metrics, .wallet-hero-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.dash-metric, .wh-chip {
  background: rgba(255,255,255,.16) !important;
  border-radius: 12px !important;
  padding: 10px !important;
}
.dash-metric span, .wh-chip span { font-size: 11px !important; opacity: .9; display: block; }
.dash-metric strong, .wh-chip strong { font-size: 14px !important; color: #fff; }

/* Menu cards compact */
.menu-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin: 12px 0 !important;
}
@media (max-width: 520px) {
  .menu-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
.menu-card {
  padding: 14px 10px !important;
  border-radius: 14px !important;
}
.menu-card .mc-ico { font-size: 22px !important; margin-bottom: 4px !important; }
.menu-card strong { font-size: 12px !important; line-height: 1.25; display: block; }

/* Steps compact */
.steps {
  padding: 10px 8px !important;
  margin-bottom: 12px !important;
  gap: 4px !important;
}
.steps .step-dot { width: 26px !important; height: 26px !important; font-size: 11px !important; }
.steps .step-label { font-size: 9.5px !important; }
.steps .step::before { top: 12px !important; }

/* Alerts compact */
.alert {
  padding: 12px 14px !important;
  border-radius: 14px !important;
  font-size: 13.5px !important;
  margin-bottom: 12px !important;
  line-height: 1.45;
}

/* Txn rows compact */
.txn-row {
  padding: 11px 12px !important;
  gap: 10px !important;
  border-radius: 14px !important;
}
.txn-ico { width: 38px !important; height: 38px !important; font-size: 16px !important; border-radius: 11px !important; }
.txn-title { font-size: 13.5px !important; }
.txn-sub, .txn-date { font-size: 11.5px !important; }
.txn-amt { font-size: 13.5px !important; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px !important; }

/* Smooth interactive */
a, button, .txn-row, .menu-card, .sitem {
  -webkit-tap-highlight-color: transparent;
}
.txn-row, .menu-card, .card, .sitem {
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease) !important;
}

/* Auth pages compact */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card {
  width: 100%; max-width: 420px;
  padding: 22px 18px !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow) !important;
}
.auth-card h1 { font-size: 1.45rem !important; margin-bottom: 4px !important; }

/* Footer less gap on mobile */
.site-footer { padding: 36px 16px 24px !important; }
.aw-footer, .site-footer-bottom { font-size: 12px !important; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .u-body { padding-bottom: max(28px, env(safe-area-inset-bottom)) !important; }
  .lc-fab { bottom: max(18px, env(safe-area-inset-bottom)) !important; }
}

/* ============================================================================
   AdaWang Design System — Professional 2026 Polish
   Smooth · Modern · Accessible · Mobile-first
   ============================================================================ */

:root {
  --navy: #0B1B33;
  --navy-2: #132A4A;
  --blue: #2563EB;
  --blue-d: #1D4ED8;
  --blue-2: #38BDF8;
  --bg: #F4F7FC;
  --bg-2: #EAF0F9;
  --card: #FFFFFF;
  --border: #E2EAF4;
  --text: #0F172A;
  --muted: #64748B;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, .05);
  --shadow: 0 10px 28px -8px rgba(15, 23, 42, .1), 0 4px 10px rgba(37, 99, 235, .04);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .28s;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, .07), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, .06), transparent 50%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* Selection */
::selection { background: rgba(37, 99, 235, .18); color: var(--navy); }

/* Focus rings — accessible */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text); }
.muted, .text-sm.muted { color: var(--muted); }
a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-d); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: #D0DCF0;
}

/* Buttons */
.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14.5px;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), opacity var(--dur) var(--ease);
  text-decoration: none !important;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(.98); }
.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #2563EB 55%, #1D4ED8);
  color: #fff !important;
  box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover {
  box-shadow: 0 14px 28px -8px rgba(37, 99, 235, .65);
  transform: translateY(-1px);
  color: #fff !important;
}
.btn-outline,
.btn.btn-outline {
  background: #fff;
  color: var(--navy) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: #BFDBFE;
  background: #F8FBFF;
  color: var(--blue) !important;
}
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-danger {
  background: linear-gradient(135deg, #F87171, #EF4444);
  color: #fff !important;
}

/* Forms */
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #C5D5EB; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #93C5FD;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
textarea { min-height: 100px; resize: vertical; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row { margin-bottom: 14px; }

/* Alerts */
.alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  font-size: 14.5px;
  line-height: 1.5;
  animation: awFadeUp .4s var(--ease) both;
}
.alert-ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.alert-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-ok { background: #DCFCE7; color: #166534; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-muted { background: #F1F5F9; color: #475569; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px 8px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 14px;
  vertical-align: middle;
}
.table tr:hover td { background: #F8FAFC; }

/* Grid helpers */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Dashboard hero */
.dash-hero {
  background: linear-gradient(135deg, #0B1B33 0%, #1E3A8A 48%, #2563EB 100%);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 16px 36px -14px rgba(37, 99, 235, .45);
  position: relative;
  overflow: hidden;
}
.dash-hero::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .25), transparent 70%);
  top: -80px; right: -40px;
  pointer-events: none;
}
.dash-hero h1 { color: #fff !important; margin: 0 0 6px; position: relative; z-index: 1; }
.dash-hero p { color: rgba(255,255,255,.85); margin: 0; position: relative; z-index: 1; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.dash-metric {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}
.dash-metric span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  margin-bottom: 4px;
}
.dash-metric strong { color: #fff; font-size: 1.05rem; }

/* Menu cards */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.menu-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
  text-decoration: none !important;
  color: var(--navy) !important;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #BFDBFE;
  color: var(--blue) !important;
}
.menu-card .mc-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.menu-card strong { font-size: 13.5px; }
.menu-card .mc-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* Onboarding steps */
.steps {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}
.steps .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  min-width: 70px;
  padding: 4px 6px;
}
.steps .step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  z-index: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.steps .step.done .step-dot { background: #22C55E; color: #fff; }
.steps .step.current .step-dot {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, .5);
  transform: scale(1.08);
}
.steps .step-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.steps .step.current .step-label { color: var(--blue); }
.steps .step.done .step-label { color: #166534; }

/* Empty state */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #F8FAFC;
}

/* Animations */
@keyframes awFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes awFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.u-body > * {
  animation: awFadeUp .45s var(--ease) both;
}
.u-body > *:nth-child(2) { animation-delay: .04s; }
.u-body > *:nth-child(3) { animation-delay: .08s; }
.u-body > *:nth-child(4) { animation-delay: .12s; }

/* Smooth page elements */
.u-top {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .82) !important;
  border-bottom: 1px solid rgba(226, 234, 244, .9);
  transition: box-shadow var(--dur) var(--ease);
}
.u-top.scrolled {
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, .12);
}

/* Mobile polish */
@media (max-width: 920px) {
  .menu-cards { grid-template-columns: 1fr 1fr; }
  .dash-metrics { grid-template-columns: 1fr 1fr; }
  .dash-metrics .dash-metric:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .menu-cards { gap: 10px; }
  .menu-card { min-height: 96px; padding: 14px 12px; }
  .card { padding: 16px; border-radius: 16px; }
  .dash-hero { padding: 18px 16px; border-radius: 18px; }
  .btn, button.btn, a.btn { min-height: 48px; }
  input, select, textarea { min-height: 48px; font-size: 16px; /* prevent iOS zoom */ }
}

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #94A3B8; background-clip: padding-box; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ===== Font & text safety (2026 fix) ===== */
html { font-family: var(--font); }
body {
  font-family: 'Josefin Sans', system-ui, sans-serif !important;
  font-weight: 400;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .brand-text strong, .amount-hero .amt {
  font-family: var(--font-display) !important;
  font-weight: 700;
  color: var(--navy);
}
button, input, select, textarea, .btn {
  font-family: 'Josefin Sans', system-ui, sans-serif !important;
}
/* Ensure text never invisible */
.muted, .text-sm.muted, .dn-amt-hint, .dn-note { color: #64748B !important; opacity: 1 !important; }
.u-side a, .u-side .side-label { color: inherit; }

/* Verification amount hero polish */
.amount-hero {
  background: linear-gradient(135deg, #0B1B33 0%, #1E3A8A 50%, #2563EB 100%) !important;
  border-radius: 18px !important;
  padding: 20px 18px !important;
  color: #fff !important;
  text-align: center !important;
  box-shadow: 0 14px 32px -12px rgba(37,99,235,.45) !important;
}
.amount-hero .lbl, .amount-hero .sub { color: rgba(255,255,255,.82) !important; }
.amount-hero .amt { color: #fff !important; font-size: clamp(1.6rem, 4vw, 2.1rem) !important; }

/* Pay tabs */
.pay-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.pay-tab.active {
  background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 18px -8px rgba(37,99,235,.55);
}

/* Card readability */
.card h2, .card h3 { color: var(--navy) !important; }

/* Fix: headings must not force navy on dark banners */
.pkg-hero h1, .pkg-hero h2, .pkg-hero p, .pkg-hero li, .pkg-hero .pkg-rate,
.dash-hero h1, .dash-hero h2, .dash-hero p, .amount-hero, .amount-hero * {
  color: #fff !important;
  opacity: 1 !important;
}

/* Readable text on dark hero banners */
.pkg-hero, .pkg-hero * { color: #FFFFFF !important; }
.pkg-hero p, .pkg-hero li, .pkg-hero .pkg-rate { opacity: 1 !important; color: #F1F5F9 !important; }
.pkg-hero h1 { color: #FFFFFF !important; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.pkg-hero .flow-steps li { background: rgba(255,255,255,.16) !important; border-color: rgba(255,255,255,.28) !important; }
.pkg-hero .pkg-rate { background: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.3) !important; }
.dash-hero h1, .dash-hero p { color: #fff !important; }

/* AMOUNT HERO FORCE VISIBLE */
.amount-hero {
  background: linear-gradient(135deg, #0B1B33 0%, #1E3A8A 50%, #2563EB 100%) !important;
  border-radius: 18px !important;
  padding: 22px 18px !important;
  text-align: center !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 32px -12px rgba(37,99,235,.45) !important;
}
.amount-hero .lbl,
.amount-hero .sub,
.amount-hero .amt {
  color: #FFFFFF !important;
  opacity: 1 !important;
}
.amount-hero .lbl {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #E2E8F0 !important;
}
.amount-hero .amt {
  font-size: clamp(1.8rem, 5vw, 2.25rem) !important;
  font-weight: 800 !important;
  margin: 8px 0 !important;
  color: #FFFFFF !important;
}
.amount-hero .sub {
  font-size: 13px !important;
  color: #CBD5E1 !important;
}
.why-verify h2 { color: #0F172A !important; }

/* ===== GOLD BLACK THEME 2026 ===== */
:root {
  --gold: #D4AF37;
  --gold-2: #F0D78C;
  --gold-3: #B8960F;
  --gold-soft: rgba(212,175,55,.14);
  --ink-black: #0B0B0B;
  --ink-2: #141414;
  --line-gold: rgba(212,175,55,.45);
}
.pkg-hero, .amount-hero, .dash-hero {
  background: linear-gradient(135deg, #0B0B0B 0%, #1A1508 45%, #3D2E0A 100%) !important;
  border: 1px solid var(--line-gold) !important;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.55), inset 0 1px 0 rgba(212,175,55,.2) !important;
}
.pkg-hero h1, .amount-hero .amt { color: #F5E6B8 !important; }
.pkg-rate, .pkg-hero .flow-steps li {
  background: rgba(212,175,55,.12) !important;
  border-color: rgba(212,175,55,.35) !important;
  color: #F5E6B8 !important;
}
.pkg-card.is-active {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, #FFFEF8, #FBF6E8) !important;
  box-shadow: 0 12px 28px -12px rgba(212,175,55,.45) !important;
}
.pkg-card.is-active .pkg-tag { background: var(--gold) !important; color: #0B0B0B !important; }
.pkg-card.is-active .pkg-check { border-color: var(--gold) !important; background: var(--gold) !important; color: #0B0B0B !important; }
.tenure-chip.is-active {
  border-color: var(--gold) !important;
  background: #FFFEF5 !important;
  color: #3D2E0A !important;
  box-shadow: 0 6px 14px -8px rgba(212,175,55,.5) !important;
}
.tenure-chip.is-active small { color: var(--gold-3) !important; }
.sum-item.hl {
  background: linear-gradient(135deg, #FFFEF5, #F8EFC8) !important;
  border-color: rgba(212,175,55,.5) !important;
}
.sum-item.hl strong { color: #3D2E0A !important; }
.btn-primary, button.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #B8960F 100%) !important;
  border-color: transparent !important;
  color: #0B0B0B !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px -10px rgba(212,175,55,.55) !important;
}
.btn-primary:hover, button.btn-primary:hover {
  filter: brightness(1.05);
}
.pay-tab.active {
  background: linear-gradient(135deg, #D4AF37, #B8960F) !important;
  color: #0B0B0B !important;
  border-color: transparent !important;
}
.card {
  border-color: rgba(212,175,55,.18) !important;
}
.steps .step.done .step-dot, .steps .step.active .step-dot {
  background: linear-gradient(135deg, #D4AF37, #B8960F) !important;
  color: #0B0B0B !important;
}
.u-side {
  background: linear-gradient(185deg, #0B0B0B 0%, #1A1508 55%, #2A220C 120%) !important;
  border-right: 1px solid rgba(212,175,55,.2);
}
.u-side a.active {
  background: rgba(212,175,55,.16) !important;
  border-color: rgba(212,175,55,.35) !important;
  color: #F5E6B8 !important;
}
.receive-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0B0B0B, #1A1508);
  border: 1px solid rgba(212,175,55,.4);
  color: #F5E6B8;
  text-align: center;
}
.receive-box span { display:block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:rgba(245,230,184,.75); }
.receive-box strong { display:block; margin-top:4px; font-size:1.35rem; font-weight:800; color:#F0D78C; }

/* Support chat image */
.chat-foot { display:flex; gap:8px; align-items:flex-end; }
.chat-foot .img-btn {
  flex-shrink:0; width:44px; height:44px; border-radius:12px;
  border:1px solid rgba(212,175,55,.35); background:#FFFEF8;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  font-size:18px; color:#3D2E0A;
}
.chat-foot .img-btn input { display:none; }
.bubble img.chat-img {
  display:block; max-width:min(240px,70vw); max-height:220px;
  border-radius:12px; margin-bottom:6px; object-fit:cover;
}
.chat-attach-preview {
  display:none; padding:8px 12px; gap:8px; align-items:center;
  background:#FFFEF8; border-top:1px solid rgba(212,175,55,.25);
  font-size:12px; color:#3D2E0A;
}
.chat-attach-preview.show { display:flex; }
.chat-attach-preview img { width:40px; height:40px; object-fit:cover; border-radius:8px; }

/* ===== COMPACT SMOOTH 2026 ===== */
:root {
  --radius: 14px;
  --space: 12px;
}
body { letter-spacing: -.01em; }
.card { padding: 16px !important; border-radius: 16px !important; margin-bottom: 12px; }
.card h2 { font-size: 1.05rem !important; margin-bottom: 8px !important; }
.u-main { padding: 14px 16px 28px !important; }
.u-side { padding: 14px 10px !important; }
.u-side .sitem { padding: 10px 12px !important; font-size: 13px !important; margin-bottom: 2px !important; border-radius: 11px !important; }
.u-top { padding: 10px 0 12px !important; }
.u-top h1 { font-size: 1.1rem !important; }
.menu-cards { gap: 10px !important; margin-bottom: 14px !important; }
.menu-card { min-height: 88px !important; padding: 12px 10px !important; border-radius: 14px !important; }
.btn, button.btn, a.btn { min-height: 44px; border-radius: 12px !important; font-size: 13.5px !important; }
.btn-sm { min-height: 34px !important; padding: 0 12px !important; font-size: 12px !important; }
input, select, textarea {
  border-radius: 12px !important; padding: 10px 12px !important;
  border: 1px solid #E7E5E4 !important; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: #D4AF37 !important;
  box-shadow: 0 0 0 3px rgba(212,175,55,.18) !important;
  outline: none !important;
}
.alert { border-radius: 12px !important; padding: 12px 14px !important; font-size: 13.5px !important; }
.steps { margin-bottom: 12px !important; padding: 10px 8px !important; }
.dash-hero, .pkg-hero, .amount-hero { padding: 16px !important; border-radius: 16px !important; margin-bottom: 12px !important; }
.dash-hero h1, .pkg-hero h1 { font-size: 1.2rem !important; }
/* Smooth transitions */
a, button, .btn, .menu-card, .pkg-card, .sitem, .tenure-chip, .mode-tab {
  transition: background .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease, color .15s ease !important;
}
.menu-card:active, .pkg-card:active, .btn:active { transform: scale(.98); }
/* Gold accents for next-card */
.next-card {
  border-color: rgba(212,175,55,.35) !important;
  background: linear-gradient(135deg, #FFFEF8, #fff) !important;
}
@media (max-width: 560px) {
  .u-main { padding: 10px 12px 24px !important; }
  .card { padding: 14px !important; }
}

/* JOSEFIN FORCE 2026 */
html, body, button, input, select, textarea, .btn, .card, .u-side, .u-main {
  font-family: "Josefin Sans", system-ui, -apple-system, sans-serif !important;
}
h1,h2,h3,h4,h5, .brand-text, .pkg-amt, .amount-hero .amt {
  font-family: "Josefin Sans", system-ui, sans-serif !important;
  letter-spacing: -.02em;
}
body { -webkit-font-smoothing: antialiased; }

/* ===== PAYPAL THEME 2026 ===== */
:root {
  --navy: #003087 !important;
  --navy-2: #001C64 !important;
  --blue: #0070BA !important;
  --blue-2: #009CDE !important;
  --blue-d: #005EA6 !important;
  --text: #001C64 !important;
  --bg: #F5F7FA !important;
  --gold: #0070BA;
  --gold-2: #009CDE;
  --gold-3: #005EA6;
  --ink-black: #003087;
}
.btn-primary, button.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, #0070BA 0%, #003087 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px -8px rgba(0, 112, 186, .45) !important;
}
.btn-primary:hover, button.btn-primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #009CDE 0%, #0070BA 100%) !important;
}
.pkg-hero, .amount-hero, .dash-hero {
  background: linear-gradient(135deg, #001C64 0%, #003087 45%, #0070BA 100%) !important;
  border: 1px solid rgba(0, 156, 222, .35) !important;
  box-shadow: 0 16px 40px -16px rgba(0, 48, 135, .45) !important;
  color: #fff !important;
}
.pkg-hero h1, .pkg-hero p, .pkg-hero li, .pkg-hero .pkg-rate,
.amount-hero .lbl, .amount-hero .sub, .amount-hero .amt,
.dash-hero h1, .dash-hero p {
  color: #FFFFFF !important;
  opacity: 1 !important;
}
.pkg-rate, .pkg-hero .flow-steps li {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.25) !important;
  color: #fff !important;
}
.pkg-card.is-active {
  border-color: #0070BA !important;
  background: linear-gradient(180deg, #F7FBFF, #E8F4FC) !important;
  box-shadow: 0 12px 28px -12px rgba(0, 112, 186, .35) !important;
}
.pkg-card.is-active .pkg-tag { background: #0070BA !important; color: #fff !important; }
.pkg-card.is-active .pkg-check { border-color: #0070BA !important; background: #0070BA !important; color: #fff !important; }
.tenure-chip.is-active, .mode-tab.is-active {
  border-color: #0070BA !important;
  background: #E8F4FC !important;
  color: #003087 !important;
}
.sum-item.hl {
  background: linear-gradient(135deg, #E8F4FC, #D6EBFA) !important;
  border-color: rgba(0, 112, 186, .35) !important;
}
.sum-item.hl strong { color: #003087 !important; }
.receive-box {
  background: linear-gradient(135deg, #001C64, #003087) !important;
  border: 1px solid rgba(0, 156, 222, .4) !important;
  color: #fff !important;
}
.receive-box span { color: rgba(255,255,255,.75) !important; }
.receive-box strong { color: #7FD4F5 !important; }
.pay-tab.active {
  background: linear-gradient(135deg, #0070BA, #003087) !important;
  color: #fff !important;
}
.u-side {
  background: linear-gradient(185deg, #001C64 0%, #003087 55%, #005EA6 120%) !important;
  border-right: 1px solid rgba(0, 156, 222, .2);
}
.u-side a.active, .u-side .sitem.active {
  background: rgba(0, 156, 222, .2) !important;
  border-color: rgba(0, 156, 222, .35) !important;
  color: #fff !important;
}
.chat-head {
  background: linear-gradient(135deg, #001C64, #003087) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(0, 156, 222, .3) !important;
}
.chat-head strong, .chat-head span { color: #fff !important; }
.chat-head .ava {
  background: linear-gradient(135deg, #009CDE, #0070BA) !important;
  color: #fff !important;
}
.bubble.user {
  background: linear-gradient(135deg, #0070BA, #003087) !important;
  color: #fff !important;
}
.ag-badge {
  background: linear-gradient(135deg, #0070BA, #003087) !important;
  color: #fff !important;
}
.ag-rate-chip {
  background: linear-gradient(135deg, #001C64, #003087) !important;
  color: #fff !important;
  border-color: rgba(0, 156, 222, .4) !important;
}
.ag-rate-chip span, .ag-rate-chip em { color: rgba(255,255,255,.8) !important; }
.ag-rate-chip strong { color: #7FD4F5 !important; }
.ag-doc-head h2, .ag-doc h1, .ag-doc h2, .ag-doc h3 { color: #003087 !important; }
.ag-doc, .ag-doc p, .ag-doc li { color: #1A2B3C !important; }
.ag-read-note {
  background: #E8F4FC !important;
  border-color: rgba(0, 112, 186, .3) !important;
  color: #003087 !important;
}
.next-card {
  border-color: rgba(0, 112, 186, .3) !important;
  background: linear-gradient(135deg, #F7FBFF, #fff) !important;
}
.steps .step.done .step-dot, .steps .step.active .step-dot {
  background: linear-gradient(135deg, #0070BA, #003087) !important;
  color: #fff !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #0070BA !important;
  box-shadow: 0 0 0 3px rgba(0, 112, 186, .18) !important;
}
.card { border-color: rgba(0, 48, 135, .1) !important; }

/* ===== ADAWANG PRO 2026 ===== */
.page-intro{
  background:linear-gradient(135deg,#F7FBFF 0%,#fff 100%);
  border:1px solid rgba(0,112,186,.18);
  border-radius:16px;padding:16px 18px;margin-bottom:16px;
}
.page-intro-title{margin:0 0 6px;font-size:1.1rem;color:#003087;font-weight:700}
.page-intro-body{margin:0;font-size:13.5px;color:#475569;line-height:1.55}
.page-intro-tip{margin:10px 0 0;font-size:12.5px;color:#005EA6;background:#E8F4FC;border-radius:10px;padding:8px 12px;line-height:1.45}

.aw-progress{margin-bottom:16px}
.steps{
  display:flex;flex-wrap:nowrap;gap:0;list-style:none;margin:0;padding:12px 8px;
  background:#fff;border:1px solid rgba(0,112,186,.15);border-radius:16px;overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.steps .step{
  flex:1;min-width:72px;display:flex;flex-direction:column;align-items:center;gap:6px;
  position:relative;padding:4px 2px;color:#64748B;font-size:11px;font-weight:600;
}
.steps .step:not(:last-child)::after{
  content:'';position:absolute;top:16px;left:calc(50% + 16px);right:calc(-50% + 16px);
  height:2px;background:#E2E8F0;z-index:0;
}
.steps .step.done:not(:last-child)::after{background:#0070BA}
.steps .step-dot{
  width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;background:#F1F5F9;color:#64748B;border:2px solid #E2E8F0;
  position:relative;z-index:1;transition:.2s;
}
.steps .step.done .step-dot{background:linear-gradient(135deg,#0070BA,#003087);color:#fff;border-color:transparent}
.steps .step.current .step-dot,.steps .step.active .step-dot{
  background:#fff;color:#003087;border-color:#0070BA;box-shadow:0 0 0 4px rgba(0,112,186,.15);
}
.steps .step.current .step-label,.steps .step.active .step-label{color:#003087;font-weight:700}
.steps .step-label{text-align:center;line-height:1.2}

.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:700;letter-spacing:.02em}
.badge-ok{background:#DCFCE7;color:#166534}
.badge-pending{background:#FEF3C7;color:#92400E}
.badge-bad{background:#FEE2E2;color:#991B1B}
.badge-warn{background:#FFEDD5;color:#9A3412}
.badge-muted{background:#F1F5F9;color:#475569}

/* Toast */
#aw-toasts{position:fixed;top:16px;right:16px;z-index:9999;display:flex;flex-direction:column;gap:8px;max-width:min(360px,calc(100vw - 32px));pointer-events:none}
.aw-toast{
  pointer-events:auto;padding:12px 16px;border-radius:12px;font-size:13.5px;font-weight:600;
  box-shadow:0 12px 28px -8px rgba(0,48,135,.25);animation:toastIn .35s cubic-bezier(.22,1,.36,1) both;
  display:flex;align-items:flex-start;gap:10px;line-height:1.4;
}
.aw-toast.ok{background:#003087;color:#fff}
.aw-toast.error{background:#B91C1C;color:#fff}
.aw-toast.info{background:#0070BA;color:#fff}
@keyframes toastIn{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(-8px)}}

/* Skeleton */
.skeleton{background:linear-gradient(90deg,#F1F5F9 25%,#E2E8F0 50%,#F1F5F9 75%);background-size:200% 100%;animation:sk 1.2s ease-in-out infinite;border-radius:8px}
@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* Empty state */
.empty-state{text-align:center;padding:36px 20px;color:#64748B}
.empty-state .es-ico{font-size:36px;margin-bottom:10px;opacity:.7}
.empty-state h3{margin:0 0 6px;color:#003087;font-size:1.05rem}
.empty-state p{margin:0 0 14px;font-size:13.5px;line-height:1.5;max-width:320px;margin-left:auto;margin-right:auto}

/* Stat cards dashboard */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.stat-card{
  background:#fff;border:1px solid rgba(0,112,186,.12);border-radius:14px;padding:14px 16px;
  box-shadow:0 2px 8px rgba(0,48,135,.04);
}
.stat-card .sc-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748B}
.stat-card .sc-value{font-size:1.35rem;font-weight:800;color:#003087;margin-top:4px}
.stat-card .sc-sub{font-size:12px;color:#64748B;margin-top:2px}

.next-action{
  border:1px solid rgba(0,112,186,.28);background:linear-gradient(135deg,#E8F4FC,#fff);
  border-radius:16px;padding:18px;margin-bottom:16px;
}
.next-action h3{margin:0 0 6px;font-size:1.05rem;color:#003087}
.next-action p{margin:0 0 12px;font-size:13.5px;color:#475569;line-height:1.5}

/* Table responsive */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}
.table{width:100%;border-collapse:collapse;font-size:13.5px}
.table th{text-align:left;padding:10px 12px;background:#F8FAFC;color:#475569;font-size:11px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #E2E8F0}
.table td{padding:12px;border-bottom:1px solid #F1F5F9;color:#0F172A;vertical-align:middle}
.table tr:hover td{background:#F8FAFC}

/* Modal base */
.aw-modal-backdrop{position:fixed;inset:0;background:rgba(0,28,100,.45);z-index:9000;display:flex;align-items:center;justify-content:center;padding:16px;animation:fadeIn .2s ease}
.aw-modal{background:#fff;border-radius:16px;max-width:420px;width:100%;padding:20px;box-shadow:0 24px 48px -12px rgba(0,0,0,.3)}
.aw-modal h3{margin:0 0 8px;color:#003087}
.aw-modal p{margin:0 0 16px;font-size:14px;color:#475569;line-height:1.5}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* Mobile polish */
@media(max-width:768px){
  .steps .step{min-width:64px}
  .steps .step-label{font-size:10px}
  .stat-grid{grid-template-columns:1fr 1fr}
  .u-body{padding:14px 12px 32px !important}
  .page-intro{padding:14px}
  #aw-toasts{left:12px;right:12px;max-width:none}
}
@media(max-width:420px){
  .stat-grid{grid-template-columns:1fr}
}

/* Form validation hint */
.field-error{font-size:12px;color:#B91C1C;margin-top:4px}
input.is-invalid,select.is-invalid,textarea.is-invalid{border-color:#F87171 !important;box-shadow:0 0 0 3px rgba(248,113,113,.15) !important}
input.is-valid{border-color:#4ADE80 !important}

/* Breadcrumb */
.aw-breadcrumb{font-size:12px;color:#64748B;margin-bottom:10px;font-weight:600}
.aw-breadcrumb a{color:#0070BA;text-decoration:none}
.aw-breadcrumb span{margin:0 6px;opacity:.5}

/* =========================================================
   AdaWang Mobile-First Polish v2026m
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg, video { max-width: 100%; height: auto; }

/* Touch targets */
button, .btn, a.btn, .btn-copy, .pay-tab, .side-toggle, .admin-toggle {
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm, .btn-copy { min-height: 36px; padding-left: 12px; padding-right: 12px; }
input, select, textarea {
  font-size: 16px !important; /* prevent iOS zoom */
  min-height: 46px;
  border-radius: 12px !important;
  width: 100%;
  max-width: 100%;
}
textarea { min-height: 110px; }
label { font-weight: 600; font-size: 13.5px; color: #334155; margin-bottom: 6px; display: block; }
.form-row { margin-bottom: 14px; }

/* Cards */
.card {
  border-radius: 16px !important;
  padding: 16px 16px !important;
  box-shadow: 0 2px 12px rgba(0, 48, 135, 0.05) !important;
}
.page-intro {
  border-radius: 16px !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
}
.page-intro-title { font-size: 1.15rem !important; line-height: 1.3 !important; }
.page-intro-body { font-size: 13.5px !important; line-height: 1.55 !important; }

/* Auth */
.auth-shell {
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 18px !important;
  padding: 22px 18px !important;
}

/* Tables always scroll on small screens */
.table-wrap {
  margin: 0 -4px;
  padding: 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table { min-width: 520px; }

/* Copy rows / payment boxes */
.jompay-box, .copy-row {
  border-radius: 14px;
}
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,112,186,.1);
}
.copy-row > span {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex: 1 1 100%;
}
.copy-row strong {
  font-size: 15px;
  word-break: break-all;
  color: #0F172A;
}

/* Alerts */
.alert {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

/* Steps onboard */
.steps {
  gap: 6px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.steps .step { flex: 0 0 auto; }

/* Sticky mobile bottom safe area for primary actions */
@media (max-width: 768px) {
  .u-body, .admin-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
  }
  .u-top, .admin-top {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  h1, .u-top h1, .admin-top h1 {
    font-size: 1.2rem !important;
    line-height: 1.25 !important;
  }
  .btn, button.btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
  }
  .btn-block { min-height: 48px; font-size: 15px !important; }
  .menu-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .menu-card {
    padding: 14px 10px !important;
    border-radius: 14px !important;
    min-height: 88px;
  }
  .grid-2, .grid-3, .loan-calc {
    grid-template-columns: 1fr !important;
  }
  .dash-metrics, .stat-grid, .why-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  /* Sidebar drawers */
  .u-side {
    width: min(300px, 88vw) !important;
    max-width: 300px !important;
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }
  .u-side a.sitem {
    padding: 13px 14px !important;
    min-height: 48px;
    font-size: 14.5px !important;
    border-radius: 12px !important;
  }
  /* Admin mobile drawer */
  .admin-layout {
    grid-template-columns: 1fr !important;
  }
  .admin-side {
    position: fixed !important;
    left: 0; top: 0; bottom: 0;
    width: min(300px, 88vw) !important;
    z-index: 200;
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.22,1,.36,1);
    box-shadow: 12px 0 40px rgba(0,0,0,.25);
  }
  .admin-side.open { transform: translateX(0); }
  .admin-toggle {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    padding: 0;
  }
  .admin-toggle span {
    display: block; width: 18px; height: 2px;
    background: #003087; border-radius: 2px; margin: 0 auto;
  }
  .admin-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(11,18,32,.5);
    z-index: 190;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .admin-backdrop.open { display: block; }
  .admin-top {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  /* Payment panels */
  .pay-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .pay-tab {
    flex: 1 1 auto;
    min-width: 120px;
    justify-content: center;
  }
  /* Agreement / long text */
  .ag-doc, .ag-doc-card { font-size: 14px !important; }
  .ag-doc-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  /* Hide decorative overflow */
  .hero, .landing, .section {
    overflow-x: hidden;
  }
}

@media (max-width: 420px) {
  .menu-cards {
    grid-template-columns: 1fr 1fr !important;
  }
  .card { padding: 14px 12px !important; }
  .copy-row strong { font-size: 14px; }
  .auth-card { padding: 18px 14px !important; }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .auth-shell { align-items: flex-start; padding-top: 20px; }
}

/* Admin desktop: hide toggle */
@media (min-width: 901px) {
  .admin-toggle, .admin-backdrop { display: none !important; }
  .admin-side { transform: none !important; position: sticky !important; }
}

/* Focus visible for a11y */
:focus-visible {
  outline: 3px solid rgba(0,112,186,.45);
  outline-offset: 2px;
}

/* Toast mobile */
#aw-toasts {
  left: 12px !important;
  right: 12px !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  max-width: none !important;
}


/* Hamburger fix mobile2026b */
.side-toggle, .admin-toggle {
  position: relative !important;
  z-index: 130 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.u-top, .admin-top {
  z-index: 100 !important;
  pointer-events: auto !important;
}
.side-backdrop:not(.open), .admin-backdrop:not(.open) {
  pointer-events: none !important;
}
@media (max-width: 920px) {
  .side-toggle { display: inline-flex !important; }
}
@media (max-width: 900px) {
  .admin-toggle { display: inline-flex !important; }
}

/* =========================================================
   Modern UX steps + explanations v2026ux
   ========================================================= */
.aw-progress {
  background: #fff;
  border: 1px solid rgba(0,112,186,.14);
  border-radius: 18px;
  padding: 16px 16px 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0,48,135,.05);
}
.aw-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.aw-progress-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0070BA;
}
.aw-progress-count {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
}
.aw-progress-bar {
  height: 6px;
  background: #E8F0FE;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.aw-progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0070BA, #003087);
  border-radius: 999px;
  transition: width .35s ease;
}
.aw-progress .steps {
  display: flex;
  gap: 4px;
  list-style: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  justify-content: space-between;
}
.aw-progress .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  min-width: 0;
  list-style: none !important;
}
.aw-progress .step::before,
.aw-progress .step::marker { display: none !important; content: none !important; }
.aw-progress .step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  background: #F1F5F9; border: 2px solid #E2E8F0; color: #64748B;
  transition: all .2s ease;
}
.aw-progress .step.done .step-dot {
  background: #16A34A; border-color: #16A34A; color: #fff;
}
.aw-progress .step.current .step-dot,
.aw-progress .step.active .step-dot {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px rgba(29,111,232,.35);
  transform: scale(1.06);
}
.aw-progress .step-label {
  font-size: 11px; font-weight: 700; color: #94A3B8;
  text-align: center; line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aw-progress .step.done .step-label { color: #0F1C3F; }
.aw-progress .step.current .step-label,
.aw-progress .step.active .step-label { color: #1D4ED8; }

.aw-step-explain {
  background: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 55%);
  border: 1px solid rgba(0,112,186,.18);
  border-radius: 14px;
  padding: 14px 14px 12px;
}
.aw-step-explain-title {
  font-size: 15px;
  font-weight: 800;
  color: #003087;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.aw-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #003087;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.aw-step-explain-body {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}
.aw-step-tips {
  margin: 0 0 8px;
  padding: 0 0 0 18px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
.aw-step-tips li { margin-bottom: 3px; }
.aw-step-next { margin: 8px 0 0 !important; }

.page-intro {
  background: linear-gradient(135deg, #E8F4FC 0%, #FFFFFF 70%) !important;
  border: 1px solid rgba(0,112,186,.16) !important;
  border-radius: 16px !important;
  padding: 16px 16px 14px !important;
  margin-bottom: 14px !important;
}
.page-intro-title {
  margin: 0 0 6px !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #003087 !important;
}
.page-intro-body {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #475569 !important;
}
.page-intro-tip {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #78350F;
}
.page-intro-tip-ico { flex-shrink: 0; }

.next-action {
  border-radius: 16px !important;
  padding: 18px !important;
  background: linear-gradient(135deg, #E0F2FE, #FFFFFF) !important;
  border: 1px solid rgba(0,112,186,.28) !important;
  box-shadow: 0 8px 24px rgba(0,112,186,.08) !important;
}
.next-action h3 { color: #003087 !important; font-weight: 800 !important; }
.next-action p { color: #475569 !important; line-height: 1.55 !important; }

@media (max-width: 640px) {
  .aw-progress { padding: 14px 12px; }
  .aw-progress .step-dot { width: 30px; height: 30px; font-size: 12px; }
  .aw-progress .step-label { font-size: 10px; }
  .aw-step-explain { padding: 12px; }
}

/* =========================================================
   AdaWang Premium Theme 2026p
   ========================================================= */
:root {
  --aw-navy: #0B1220;
  --aw-navy-2: #111B2E;
  --aw-blue: #1D4ED8;
  --aw-blue-b: #3B82F6;
  --aw-sky: #60A5FA;
  --aw-bg: #F4F7FC;
  --aw-surface: #FFFFFF;
  --aw-border: rgba(15, 23, 42, 0.08);
  --aw-muted: #64748B;
  --aw-text: #0F172A;
  --aw-radius: 18px;
  --aw-radius-sm: 12px;
  --aw-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --aw-shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.25), 0 8px 16px -8px rgba(29, 78, 216, 0.12);
  --aw-shadow-blue: 0 12px 28px -8px rgba(29, 78, 216, 0.45);
  --font: 'Josefin Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Josefin Sans', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--aw-bg) !important;
  color: var(--aw-text);
  font-family: 'Josefin Sans', system-ui, sans-serif !important;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .page-intro-title, .u-top h1, .admin-top h1 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
  color: var(--aw-navy);
}

/* Premium cards */
.card, .page-intro, .aw-progress, .next-action, .stat-card, .menu-card {
  background: var(--aw-surface) !important;
  border: 1px solid var(--aw-border) !important;
  border-radius: var(--aw-radius) !important;
  box-shadow: var(--aw-shadow) !important;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .menu-card:hover {
  box-shadow: var(--aw-shadow-lg) !important;
  border-color: rgba(29, 78, 216, 0.18) !important;
}
.menu-card:hover { transform: translateY(-3px); }

/* Premium buttons */
.btn, button.btn, a.btn {
  border-radius: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  padding: 12px 20px !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.btn-primary, button.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 50%, #1E3A8A 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--aw-shadow-blue) !important;
}
.btn-primary:hover, a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(29, 78, 216, 0.55) !important;
  filter: brightness(1.05);
}
.btn-outline, a.btn-outline {
  background: rgba(255,255,255,.9) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
  color: var(--aw-navy) !important;
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--aw-blue) !important;
  color: var(--aw-blue) !important;
  background: #EFF6FF !important;
}
.btn-danger {
  background: linear-gradient(135deg, #F87171, #DC2626) !important;
  border: none !important;
  color: #fff !important;
}

/* Inputs */
input, select, textarea {
  border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 14px !important;
  background: #FAFBFF !important;
  transition: border-color .2s, box-shadow .2s, background .2s !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #3B82F6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

/* User sidebar premium */
.u-side {
  background: linear-gradient(175deg, #0B1220 0%, #111B2E 40%, #1E3A8A 140%) !important;
  border-right: 1px solid rgba(255,255,255,.06);
}
.u-side a.sitem.active {
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(29,78,216,.25)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Top bar glass */
.u-top, .admin-top {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(1.4) blur(16px) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(16px) !important;
  border-bottom: 1px solid var(--aw-border) !important;
}

/* Badges */
.badge, .badge-ok, .badge-pending, .badge-bad, .badge-warn, .badge-muted {
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: .03em;
  padding: 4px 10px !important;
}
.badge-ok { background: #ECFDF5 !important; color: #047857 !important; }
.badge-pending { background: #EFF6FF !important; color: #1D4ED8 !important; }
.badge-bad { background: #FEF2F2 !important; color: #B91C1C !important; }
.badge-warn { background: #FFFBEB !important; color: #B45309 !important; }
.badge-muted { background: #F1F5F9 !important; color: #64748B !important; }

/* Alerts soft premium */
.alert {
  border-radius: 14px !important;
  border-width: 1px !important;
  font-weight: 500;
}
.alert-ok { background: #ECFDF5 !important; border-color: #A7F3D0 !important; color: #065F46 !important; }
.alert-error { background: #FEF2F2 !important; border-color: #FECACA !important; color: #991B1B !important; }
.alert-info { background: #EFF6FF !important; border-color: #BFDBFE !important; color: #1E40AF !important; }

/* Auth premium */
.auth-shell {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59,130,246,.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(30,58,138,.15), transparent 45%),
    linear-gradient(160deg, #F4F7FC, #E8EEF9) !important;
}
.auth-card {
  box-shadow: var(--aw-shadow-lg) !important;
  border: 1px solid rgba(255,255,255,.8) !important;
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(12px);
}

/* Tables */
.table th {
  background: #F8FAFC !important;
  font-weight: 700 !important;
  color: #64748B !important;
  border-bottom: 1px solid var(--aw-border) !important;
}
.table tr:hover td { background: #F8FAFF !important; }

/* Profile chip */
.profile-chip {
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.profile-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29,78,216,.15);
}
.profile-avatar {
  background: linear-gradient(135deg, #60A5FA, #1D4ED8) !important;
  box-shadow: 0 4px 12px rgba(29,78,216,.35);
}

/* Stat cards */
.stat-card .sc-value {
  background: linear-gradient(135deg, #0B1220, #1D4ED8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Jompay / payment boxes */
.jompay-box {
  border-radius: 16px !important;
  border: 1px solid rgba(29,78,216,.15) !important;
  background: linear-gradient(180deg, #F8FBFF, #FFFFFF) !important;
  overflow: hidden;
}

/* Landing overrides when using shared classes */
.lp-nav, .site-nav {
  backdrop-filter: blur(14px);
}

/* Soft section spacing */
.u-body > .card + .card,
.u-body > .page-intro + .card {
  margin-top: 14px;
}

/* Premium footer soft */
.site-footer, .lp-footer {
  border-top: 1px solid var(--aw-border);
}

@media (max-width: 768px) {
  .card, .page-intro, .aw-progress { border-radius: 16px !important; }
  .btn-primary:hover { transform: none; }
}


/* =========================================================
   Josefin lock 2026j — seluruh laman
   ========================================================= */
:root {
  --font: "Josefin Sans", system-ui, -apple-system, sans-serif !important;
  --font-display: "Josefin Sans", system-ui, -apple-system, sans-serif !important;
}
html, body,
button, input, select, textarea,
.btn, a.btn, .table, .card, .menu-card,
.u-side, .admin-side, .auth-shell, .auth-card,
.page-intro, .aw-progress, .next-action,
h1, h2, h3, h4, h5, h6, p, li, label, span, td, th, dt, dd {
  font-family: "Josefin Sans", system-ui, -apple-system, sans-serif !important;
}
body {
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .page-intro-title, .u-top h1, .admin-top h1 {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.btn, button, a.btn {
  font-weight: 600;
  letter-spacing: 0.03em;
}
.muted, .text-sm, small, .pf-label, .u-crumb, .crumb {
  letter-spacing: 0.02em;
}
input, select, textarea {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* =========================================================
   AdaWang Modern Smooth Theme 2026m
   ========================================================= */
:root {
  --aw-navy: #0B1220;
  --aw-navy-2: #111827;
  --aw-blue: #2563EB;
  --aw-blue-d: #1D4ED8;
  --aw-blue-b: #3B82F6;
  --aw-sky: #60A5FA;
  --aw-bg: #F1F5F9;
  --aw-surface: #FFFFFF;
  --aw-border: rgba(15, 23, 42, 0.07);
  --aw-muted: #64748B;
  --aw-text: #0F172A;
  --aw-radius: 20px;
  --aw-radius-sm: 14px;
  --aw-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --aw-shadow-lg: 0 12px 40px -12px rgba(15,23,42,.18), 0 4px 12px rgba(37,99,235,.08);
  --aw-shadow-blue: 0 10px 28px -6px rgba(37,99,235,.45);
  --aw-ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Josefin Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Josefin Sans", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(37,99,235,.09), transparent 55%),
    var(--aw-bg) !important;
  color: var(--aw-text);
  font-family: var(--font) !important;
  letter-spacing: 0.01em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .page-intro-title, .u-top h1, .admin-top h1 {
  font-family: var(--font-display) !important;
  letter-spacing: 0.015em;
  line-height: 1.28;
  color: var(--aw-navy);
  font-weight: 700;
}

/* Smooth cards */
.card, .page-intro, .aw-progress, .next-action, .stat-card, .menu-card, .auth-card {
  background: var(--aw-surface) !important;
  border: 1px solid var(--aw-border) !important;
  border-radius: var(--aw-radius) !important;
  box-shadow: var(--aw-shadow) !important;
  transition: transform .35s var(--aw-ease), box-shadow .35s var(--aw-ease), border-color .25s ease;
}
.card:hover, .menu-card:hover {
  box-shadow: var(--aw-shadow-lg) !important;
  border-color: rgba(37, 99, 235, 0.14) !important;
}
.menu-card:hover { transform: translateY(-4px); }

/* Buttons — smooth */
.btn, button.btn, a.btn {
  border-radius: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  padding: 12px 22px !important;
  transition: transform .25s var(--aw-ease), box-shadow .25s var(--aw-ease), filter .2s ease, background .2s ease !important;
}
.btn-primary, button.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 45%, #1D4ED8 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--aw-shadow-blue) !important;
}
.btn-primary:hover, a.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px -6px rgba(37,99,235,.55) !important;
}
.btn-primary:active, a.btn-primary:active { transform: translateY(0); }
.btn-outline, a.btn-outline {
  background: rgba(255,255,255,.92) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
  color: var(--aw-navy) !important;
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--aw-blue) !important;
  color: var(--aw-blue-d) !important;
  background: #EFF6FF !important;
  transform: translateY(-1px);
}
.btn-danger {
  background: linear-gradient(135deg, #F87171, #DC2626) !important;
  border: none !important;
  color: #fff !important;
}

/* Inputs */
input, select, textarea {
  border: 1.5px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 14px !important;
  background: #F8FAFC !important;
  transition: border-color .25s var(--aw-ease), box-shadow .25s var(--aw-ease), background .2s ease !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #3B82F6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14) !important;
  outline: none !important;
}

/* Glass top bars */
.u-top, .admin-top {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: saturate(1.5) blur(18px) !important;
  -webkit-backdrop-filter: saturate(1.5) blur(18px) !important;
  border-bottom: 1px solid var(--aw-border) !important;
  transition: box-shadow .3s ease;
}

/* Sidebars */
.u-side, .admin-side {
  background: linear-gradient(175deg, #0B1220 0%, #0F172A 42%, #1E3A8A 150%) !important;
  border-right: 1px solid rgba(255,255,255,.06);
}
.u-side a.sitem, .admin-side a {
  transition: background .25s var(--aw-ease), transform .2s ease, color .2s ease !important;
  border-radius: 12px !important;
}
.u-side a.sitem:hover, .admin-side a:hover {
  background: rgba(255,255,255,.08) !important;
}
.u-side a.sitem.active {
  background: linear-gradient(135deg, rgba(96,165,250,.4), rgba(37,99,235,.28)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

/* Badges */
.badge, .badge-ok, .badge-pending, .badge-bad, .badge-warn, .badge-muted {
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: .04em;
  padding: 5px 11px !important;
  transition: transform .2s ease;
}
.badge-ok { background: #ECFDF5 !important; color: #047857 !important; }
.badge-pending { background: #EFF6FF !important; color: #1D4ED8 !important; }
.badge-bad { background: #FEF2F2 !important; color: #B91C1C !important; }
.badge-warn { background: #FFFBEB !important; color: #B45309 !important; }
.badge-muted { background: #F1F5F9 !important; color: #64748B !important; }

/* Alerts */
.alert {
  border-radius: 14px !important;
  border-width: 1px !important;
  animation: awFadeIn .4s var(--aw-ease);
}
.alert-ok { background: #ECFDF5 !important; border-color: #A7F3D0 !important; color: #065F46 !important; }
.alert-error { background: #FEF2F2 !important; border-color: #FECACA !important; color: #991B1B !important; }
.alert-info { background: #EFF6FF !important; border-color: #BFDBFE !important; color: #1E40AF !important; }

@keyframes awFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Auth */
.auth-shell {
  background:
    radial-gradient(ellipse 80% 55% at 15% 5%, rgba(96,165,250,.2), transparent 50%),
    radial-gradient(ellipse 70% 50% at 95% 85%, rgba(30,58,138,.16), transparent 48%),
    linear-gradient(165deg, #F1F5F9, #E2E8F0) !important;
}
.auth-card {
  box-shadow: var(--aw-shadow-lg) !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(16px);
}

/* Tables */
.table { border-collapse: separate; border-spacing: 0; }
.table th {
  background: #F8FAFC !important;
  font-weight: 700 !important;
  color: #64748B !important;
  border-bottom: 1px solid var(--aw-border) !important;
  letter-spacing: .03em;
  font-size: 12px;
  text-transform: uppercase;
}
.table tr { transition: background .2s ease; }
.table tr:hover td { background: #F8FAFF !important; }

/* Profile chip */
.profile-chip {
  border-radius: 999px !important;
  transition: transform .25s var(--aw-ease), box-shadow .25s ease;
}
.profile-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.15);
}
.profile-avatar {
  background: linear-gradient(135deg, #93C5FD, #2563EB 55%, #1E3A8A) !important;
  box-shadow: 0 6px 16px rgba(37,99,235,.35);
}

/* Stat values */
.stat-card .sc-value {
  background: linear-gradient(135deg, #0B1220, #2563EB);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Payment / jompay */
.jompay-box {
  border-radius: 16px !important;
  border: 1px solid rgba(37,99,235,.12) !important;
  background: linear-gradient(180deg, #F8FBFF, #FFFFFF) !important;
}

/* Links */
a { transition: color .2s ease, opacity .2s ease; }

/* Mobile sheet / drawers smoother */
.u-side, .admin-side {
  transition: transform .4s var(--aw-ease), opacity .3s ease !important;
}

/* Page intro soft */
.page-intro {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%) !important;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media (max-width: 768px) {
  .card, .page-intro, .aw-progress, .auth-card { border-radius: 16px !important; }
  .btn-primary:hover, .btn-outline:hover { transform: none; }
}

/* Global font lock */
html, body, button, input, select, textarea, .btn, a.btn {
  font-family: "Josefin Sans", system-ui, sans-serif !important;
}
