/* ============================================================
   OSCROP HOLDINGS LTD — design system
   ============================================================ */
:root {
  --green-950: #06251c;
  --green-900: #0a3327;
  --green-800: #0d4534;
  --green-700: #106b4f;
  --green-600: #12805e;
  --green-500: #16a373;
  --green-400: #34d399;
  --green-100: #d9f5ea;
  --green-50:  #eefaf4;

  --ink: #10201b;
  --ink-2: #38473f;
  --muted: #6b7c74;
  --line: #e3ebe7;
  --bg: #f4f7f5;
  --card: #ffffff;

  --danger: #c0392b;
  --danger-bg: #fdecea;
  --warn: #b7791f;
  --warn-bg: #fdf3e3;
  --ok: #12805e;
  --ok-bg: #e7f7f0;
  --info: #2563eb;
  --info-bg: #e8effd;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 32, 27, .05), 0 8px 24px -12px rgba(16, 32, 27, .18);
  --shadow-lg: 0 24px 60px -30px rgba(6, 37, 28, .55);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: .8rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.strong, .num.strong { font-weight: 700; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }
.accent { color: var(--green-400); }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.container-pad { padding: 1.4rem clamp(1rem, 3vw, 2rem); }
.bullets { margin: 0; padding-left: 1.1rem; }
.text-center { text-align: center; }

/* --------------------------- buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .62rem 1.15rem; font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 18px -10px rgba(16, 107, 79, .8); }
.btn-primary:hover { background: var(--green-800); }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green-500); background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #eef2f0; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #96281b; }
.btn-warning { background: var(--warn); color: #fff; }
.btn-warning:hover { background: #9c661a; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-sm { padding: .38rem .8rem; font-size: .82rem; }
.btn-lg { padding: .82rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1rem; position: relative; text-decoration: none !important;
}
.icon-btn:hover { background: var(--green-50); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; }

/* --------------------------- forms --------------------------- */
.form { display: flex; flex-direction: column; gap: .85rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; padding: .68rem .8rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(22, 163, 115, .16);
}
input:disabled { background: #f2f5f3; color: var(--muted); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.check input { margin-top: .22rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.inline-form { flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: .8rem; }
.inline-form .field { flex: 1 1 220px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-bottom: 1rem; }
.filter-bar .field { flex: 1 1 150px; }
.filter-actions { display: flex; gap: .5rem; }

/* --------------------------- flashes --------------------------- */
.flash-stack { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.flash {
  padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .92rem;
  border: 1px solid transparent; display: flex; gap: .5rem; align-items: center;
}
.flash-success, .flash-ok { background: var(--ok-bg); color: #0b5c44; border-color: #bfe9d9; }
.flash-error, .flash-danger { background: var(--danger-bg); color: #8f2b1f; border-color: #f5c8c2; }
.flash-warning { background: var(--warn-bg); color: #8a5b12; border-color: #f4dfba; }
.flash-info { background: var(--info-bg); color: #1d4fd7; border-color: #c9d9fb; }
.notice {
  background: var(--green-50); border: 1px dashed var(--green-500);
  color: var(--green-800); padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .88rem;
}

/* --------------------------- landing --------------------------- */
.page-landing { background: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--green-950); font-weight: 800; text-decoration: none !important; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff; font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 8px 18px -10px rgba(16,107,79,.9);
}
.brand-text { font-size: 1.02rem; letter-spacing: .04em; line-height: 1.1; }
.brand-text small { display: block; font-size: .6rem; font-weight: 600; color: var(--muted); letter-spacing: .22em; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.site-nav a:hover { color: var(--green-700); text-decoration: none; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; }

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(52, 211, 153, .35), transparent 60%),
    linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
  color: #eafff7; padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-block; background: rgba(52, 211, 153, .16); color: var(--green-400);
  border: 1px solid rgba(52, 211, 153, .4); border-radius: 999px;
  padding: .3rem .85rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 1rem 0; letter-spacing: -.02em; }
.hero p { color: #b9d9cd; font-size: 1.05rem; max-width: 54ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 1.6rem; margin-top: 2.4rem; }
.hero-stats strong { display: block; font-size: 1.25rem; color: #fff; }
.hero-stats span { color: #8fb8a9; font-size: .8rem; }
.hero-card-wrap { position: relative; padding: 1rem 0; }
.float-chip {
  position: absolute; background: #fff; color: var(--ink); border-radius: 12px;
  padding: .55rem .85rem; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-lg);
}
.float-chip-1 { top: 4%; left: -4%; animation: floaty 5s ease-in-out infinite; }
.float-chip-2 { bottom: 6%; right: -2%; animation: floaty 6.5s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.bank-card {
  position: relative; aspect-ratio: 1.62; border-radius: 20px; padding: 1.4rem;
  background: linear-gradient(135deg, #0f5c46 0%, #0a3327 60%, #06251c 100%);
  color: #eafff7; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg); overflow: hidden; min-height: 190px;
}
.bank-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(52,211,153,.35), transparent 70%);
}
.bank-card-top, .bank-card-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; letter-spacing: .12em; font-weight: 700; }
.bank-card-num { font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.45rem); letter-spacing: .14em; }
.bank-card-tag { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; }
.bank-card.is-frozen { filter: grayscale(.85); }

.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-sub { color: var(--muted); margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ico { font-size: 1.6rem; margin-bottom: .6rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.check-list li { padding: .42rem 0 .42rem 1.7rem; position: relative; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 800; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.mini-stat { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.mini-stat:last-child { border-bottom: 0; }
.mini-stat span { color: var(--muted); }
.cta-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff;
  border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.6rem); display: flex; flex-wrap: wrap;
  gap: 1.4rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdeee0; margin: 0; }
.site-footer { background: var(--green-950); color: #a9c9bd; padding: 3rem 0 1.4rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { display: block; color: #a9c9bd; padding: .22rem 0; font-size: .9rem; }
.site-footer a:hover { color: var(--green-400); }
.site-footer .brand { color: #fff; margin-bottom: .7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.1rem; font-size: .82rem; }

/* --------------------------- auth --------------------------- */
.page-auth { background: linear-gradient(140deg, var(--green-950), var(--green-900) 60%, var(--green-800)); min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-brand {
  color: #eafff7; padding: clamp(1.6rem, 4vw, 3.4rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.auth-brand .brand { color: #fff; }
.auth-brand h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.auth-brand p { color: #a9c9bd; }
.auth-points { list-style: none; padding: 0; margin: 1rem 0 0; }
.auth-points li { padding: .35rem 0 .35rem 1.6rem; position: relative; color: #d3f2e5; }
.auth-points li::before { content: "▸"; position: absolute; left: 0; color: var(--green-400); }
.auth-main { background: #fff; display: flex; align-items: center; justify-content: center; padding: clamp(1.2rem, 4vw, 3rem); }
.auth-card { width: min(430px, 100%); }
.auth-card-wide { width: min(520px, 100%); }
.auth-card h2 { font-size: 1.6rem; }
.auth-card .form { margin-top: 1.2rem; }
.auth-alt { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.auth-alt p { margin: .3rem 0; }

/* --------------------------- app shell --------------------------- */
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--green-950), var(--green-900));
  color: #cfe9df; display: flex; flex-direction: column; gap: 1.2rem;
  padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { color: #fff; padding: 0 .5rem; }
.sidebar .brand-text small { color: #7fae9d; }
.side-nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: #6f9e8d; margin: .9rem .6rem .3rem; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  color: #cfe9df; padding: .58rem .7rem; border-radius: 10px; font-size: .92rem; font-weight: 500;
  transition: background .13s ease, color .13s ease;
}
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side-nav a.active { background: var(--green-700); color: #fff; font-weight: 600; box-shadow: 0 10px 20px -14px rgba(0,0,0,.9); }
.badge {
  display: inline-block; padding: .16rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eef2f0; color: var(--ink-2); }
.side-nav .badge-danger { background: var(--danger); color: #fff; }
.side-foot { padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.09); }
.side-foot .btn-ghost { color: #cfe9df; border-color: rgba(255,255,255,.18); }
.side-foot .btn-ghost:hover { background: rgba(255,255,255,.08); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 1rem; padding: .85rem clamp(1rem, 3vw, 2rem);
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.page-title { font-size: 1.15rem; margin: 0; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.balance-chip {
  display: flex; flex-direction: column; align-items: flex-end;
  background: var(--green-50); border: 1px solid var(--green-100);
  padding: .3rem .8rem; border-radius: 10px; line-height: 1.25;
}
.balance-chip strong { color: var(--green-800); font-size: .98rem; }
.user-chip { display: flex; align-items: center; gap: .6rem; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: #fff;
  font-weight: 700; font-size: .85rem;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta strong { font-size: .9rem; }
.content { flex: 1; }
.app-footer { padding: 1rem clamp(1rem, 3vw, 2rem) 1.6rem; border-top: 1px solid var(--line); }
.sidebar-scrim { display: none; }

/* --------------------------- dashboard widgets --------------------------- */
.stats-row { margin-bottom: 1.2rem; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.15rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .15rem;
}
.stat-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.stat-value.pos { color: var(--ok); }
.stat-value.neg { color: var(--danger); }

.quick-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }
.qa {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: .6rem .95rem;
  font-weight: 600; font-size: .88rem; color: var(--ink-2); box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.qa:hover { transform: translateY(-2px); border-color: var(--green-500); text-decoration: none; color: var(--green-800); }

.panel { margin-bottom: 1.2rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-foot { margin-top: .9rem; }
.stack { display: flex; flex-direction: column; gap: .7rem; }

.acct-row, .note-row, .txn-row {
  display: flex; align-items: center; gap: .8rem; padding: .75rem .85rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none !important;
  color: inherit; transition: border-color .12s ease, transform .12s ease;
}
a.acct-row:hover, a.note-row:hover { border-color: var(--green-500); transform: translateY(-1px); }
.acct-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); font-size: 1.1rem; flex-shrink: 0;
}
.acct-meta, .txn-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.acct-meta strong, .txn-meta strong { font-size: .93rem; }
.acct-bal { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.acct-bal strong { font-size: 1.02rem; }
.row-actions { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }

.txn-list { display: flex; flex-direction: column; gap: .55rem; }
.txn-row { padding: .6rem .75rem; }
.txn-ico {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; flex-shrink: 0;
}
.txn-ico.in { background: var(--ok-bg); color: var(--ok); }
.txn-ico.out { background: var(--danger-bg); color: var(--danger); }
.txn-amt { font-weight: 700; font-family: var(--mono); font-size: .9rem; }

.announce { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; background: var(--green-50); }
.announce .panel-head { margin-bottom: .3rem; }
.announce p { margin: .25rem 0 .4rem; font-size: .9rem; }
.note-row { justify-content: space-between; }
.note-row.unread { background: var(--green-50); border-left: 4px solid var(--green-500); }
.note-row strong { display: block; font-size: .92rem; }

/* --------------------------- tables --------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); padding: .6rem .7rem; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.table td { padding: .7rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: #fafcfb; }
.table .num { text-align: right; }
.table-compact th, .table-compact td { padding: .48rem .6rem; font-size: .86rem; }
.pager { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1rem; }

/* --------------------------- misc --------------------------- */
.detail-head { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.1rem; }
.detail-bal { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.success-panel { text-align: center; padding: 2.2rem 1.5rem; }
.success-ico {
  width: 66px; height: 66px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok); display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; border: 2px solid var(--green-400);
}
.big-amount { font-size: 1.35rem; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 1.1rem auto; max-width: 460px; text-align: left; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin-bottom: 1.2rem; }
.card-actions { display: flex; gap: .5rem; margin: -0.6rem 0 1rem; flex-wrap: wrap; }
.code-block {
  background: var(--green-950); color: var(--green-400); border-radius: 10px;
  padding: .8rem 1rem; font-family: var(--mono); font-size: .84rem; overflow-x: auto;
}
.hero .btn-outline-light { color: #fff; }

/* --------------------------- responsive --------------------------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; position: absolute;
    top: 62px; left: 0; right: 0; background: #fff; padding: 1rem 4vw;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-toggle { display: inline-flex; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: 260px;
    transform: translateX(-100%); transition: transform .22s ease; height: 100dvh;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-scrim {
    display: block; position: fixed; inset: 0; background: rgba(6, 37, 28, .5); z-index: 50;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .balance-chip { display: none; }
}
@media (max-width: 620px) {
  .grid-4, .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .stat-value { font-size: 1.3rem; }
  .page-title { font-size: 1rem; }
  .detail-bal { align-items: flex-start; }
}

/* ============================================================
   Transfer verification tracker (halts at 50 / 70 / 85 / 98%)
   ============================================================ */
.track-summary { display: flex; flex-direction: column; gap: .15rem; margin: .3rem 0 1.9rem; }
.track-progress { position: relative; padding-top: 1.7rem; }
.track-bar { position: relative; height: 14px; background: #e7efeb; border-radius: 999px; }
.track-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  transition: width .18s linear;
}
.track-mark {
  position: absolute; top: -4px; width: 3px; height: 22px;
  background: #c6d3cd; transform: translateX(-50%); border-radius: 2px;
}
.track-mark.next { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.track-mark.done { background: var(--green-900); }
.track-pct {
  position: absolute; top: 0; right: 0;
  font-family: var(--mono); font-weight: 700; font-size: .95rem; color: var(--green-800);
}
.track-state { margin: .8rem 0 0; font-weight: 600; color: var(--ink); }
.track-steps {
  list-style: none; padding: 0; margin: 1.3rem 0 .4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem;
}
.track-steps li {
  display: flex; gap: .55rem; align-items: center;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .7rem;
}
.track-steps .step-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: #e3ebe7; color: var(--muted);
}
.track-steps .step-meta { display: flex; flex-direction: column; line-height: 1.25; }
.track-steps .step-meta strong { font-size: .84rem; }
.track-steps li.step-done { border-color: #b7e3d0; background: var(--green-50); }
.track-steps li.step-done .step-dot { background: var(--green-900); color: var(--green-400); }
.track-steps li.step-active { border-color: #f59e0b; background: var(--warn-bg); }
.track-steps li.step-active .step-dot { background: #f59e0b; color: #fff; }
.track-wait { display: flex; align-items: center; gap: .65rem; margin-top: 1.1rem; color: var(--muted); font-size: .92rem; }
.track-wait[hidden] { display: none; }
.spinner {
  width: 17px; height: 17px; flex-shrink: 0;
  border: 2px solid #cfded7; border-top-color: var(--green-700);
  border-radius: 50%; animation: track-spin .8s linear infinite;
}
@keyframes track-spin { to { transform: rotate(360deg); } }
.track-code {
  background: var(--green-50); border: 1px dashed var(--green-500);
  border-radius: 12px; padding: 1.1rem 1.2rem; margin-top: 1.1rem;
}
.track-code[hidden] { display: none; }
.track-code .form { max-width: 340px; margin: 0 auto; }
.track-code .field { text-align: center; }
.code-input {
  text-align: center; letter-spacing: .55em; text-indent: .55em;
  font-family: var(--mono); font-size: 1.35rem; font-weight: 700;
  max-width: 230px; margin: 0 auto; display: block; padding: .55rem;
}
.track-result { text-align: center; padding: 1.5rem 1.2rem; border-radius: 12px; margin-top: 1.1rem; }
.track-result[hidden] { display: none; }
.track-result-ok { background: var(--ok-bg); border: 1px solid #b7e3d0; }
.track-result-bad { background: var(--danger-bg); border: 1px solid #f0c4bd; }
.success-ico.danger { background: var(--danger); }
.track-foot { margin-top: 1.3rem; border-top: 1px dashed var(--line); padding-top: .8rem; }
.mini-progress { height: 8px; background: #e7efeb; border-radius: 99px; min-width: 96px; overflow: hidden; margin-bottom: .3rem; }
.mini-progress span { display: block; height: 100%; background: var(--green-700); border-radius: 99px; }
.pending-panel { border-left: 4px solid #f59e0b; }
.notice-info { background: var(--info-bg); border-color: #c3d6fb; }

/* ---- profile picture upload ---- */
.avatar-edit { display: flex; gap: 1.3rem; align-items: flex-start; flex-wrap: wrap; }
.avatar-edit-forms { flex: 1; min-width: 250px; }
.avatar-lg {
  width: 76px; height: 76px; font-size: 1.5rem; font-weight: 700;
  border-radius: 50%; overflow: hidden; background: #e3ebe7;
  display: grid; place-items: center; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
