:root {
    --primary: #10a88e;
    --primary-hover: #0d8a74;
    --primary-soft: #e6f7f3;
    --navy: #0b2230;
    --navy-2: #12344a;
    --bg-main: #ffffff;
    --bg-secondary: #f3f7f8;
    --bg-page: #f3f7f8;
    --text-dark: #10212e;
    --text-light: #5b6f80;
    --border-color: #e3e9ee;
    --shadow: 0 1px 2px rgba(16, 33, 46, 0.04), 0 6px 20px rgba(16, 33, 46, 0.06);
    --wait: #d97706; --wait-bg: #fef3c7;
    --info: #2563eb; --info-bg: #dbeafe;
    --move: #0891b2; --move-bg: #cffafe;
    --done: #059669; --done-bg: #d1fae5;
    --back: #dc2626; --back-bg: #fee2e2;
    --warn: #c2410c; --warn-bg: #ffedd5;
    --bad: #b91c1c;  --bad-bg: #fee2e2;
    --radius: 18px;
}

body.dark-theme {
    --bg-main: #0f2533;
    --bg-secondary: #0b1d29;
    --bg-page: #08161f;
    --text-dark: #eef4f8;
    --text-light: #9fb3c3;
    --border-color: #1d3a4e;
    --primary-soft: #0f3a37;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --wait-bg: #3b2a0c; --wait: #fbbf24;
    --info-bg: #142a52; --info: #93c5fd;
    --move-bg: #0b3540; --move: #67e8f9;
    --done-bg: #0c3a2c; --done: #6ee7b7;
    --back-bg: #3e1414; --back: #fca5a5;
    --warn-bg: #3d2010; --warn: #fdba74;
    --bad-bg: #3e1414;  --bad: #fca5a5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Cairo', sans-serif; background: var(--bg-page); color: var(--text-dark); min-height: 100vh; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--text-light); }

.p-side { position: fixed; top: 0; right: 0; bottom: 0; width: 260px; background: var(--navy); color: #cfe0ea; display: flex; flex-direction: column; padding: 22px 16px; z-index: 50; }
.p-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; }
.p-brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; border: 2px solid var(--primary); }
.p-brand b { display: block; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.p-brand span { font-size: 12px; color: var(--primary); font-weight: 700; }
.p-nav { display: flex; flex-direction: column; gap: 4px; }
.p-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; color: #b6cad7; transition: background .15s, color .15s; }
.p-nav a i { width: 20px; text-align: center; font-size: 16px; }
.p-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.p-nav a.on { background: var(--primary); color: #fff; }
.p-nav .p-new { margin-top: 10px; background: rgba(16, 168, 142, 0.15); color: #7ee2cf; border: 1px dashed rgba(16, 168, 142, 0.5); }
.p-nav .p-new:hover { background: var(--primary); color: #fff; }
.p-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.p-me .av { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.p-me > div:not(.av) { min-width: 0; flex: 1; }
.p-me b { display: block; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-me small { color: #8fa9ba; font-size: 12px; }
.p-me a { color: #8fa9ba; font-size: 16px; padding: 6px; }
.p-me a:hover { color: #fca5a5; }

.p-main { margin-right: 260px; min-height: 100vh; overflow-x: clip; }
.p-top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg-page) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.p-top-in { max-width: 1120px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; gap: 14px; }
.p-top .back { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-main); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-dark); flex-shrink: 0; }
.p-top h1 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.p-top p { font-size: 13px; color: var(--text-light); font-weight: 600; }
.p-top .sp { flex: 1; }
.p-top .mlogo { display: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); padding: 1px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-main); border: 1px solid var(--border-color); color: var(--text-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.p-wrap { max-width: 1120px; margin: 0 auto; padding: 6px 28px 40px; }

.p-tabbar { display: none; }

.card { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 2px 12px; }
.sec-title h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sec-title h2 i { color: var(--primary); font-size: 15px; }
.sec-title a { font-size: 13px; font-weight: 700; color: var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 800; font-size: 14px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--bg-main); color: var(--text-dark); border-color: var(--border-color); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-light:hover { background: rgba(255, 255, 255, 0.24); }
.btn-white { background: #fff; color: var(--navy); }
.btn-danger { background: var(--back-bg); color: var(--back); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }

.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #17b89b 0%, #0f8f7a 30%, #0b2230 75%); box-shadow: 0 18px 40px rgba(11, 34, 48, 0.25); }
.hero::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, 0.05); left: -80px; top: -110px; }
.hero::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); left: 60px; bottom: -90px; }
.hero > * { position: relative; z-index: 1; }
.hero .hi { font-size: 14px; font-weight: 700; opacity: .85; }
.hero .label { font-size: 13px; font-weight: 700; opacity: .8; margin-top: 18px; }
.hero .amount { font-size: 42px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.hero .amount small { font-size: 18px; font-weight: 700; opacity: .85; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero .chip { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.hero .chip b { font-size: 14px; }
.hero .acts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }

.side-cards { display: grid; gap: 12px; }
.mini { display: flex; align-items: center; gap: 14px; padding: 16px; }
.mini .ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mini small { display: block; font-size: 12px; font-weight: 700; color: var(--text-light); }
.mini b { font-size: 20px; font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s; }
.stat:hover { transform: translateY(-2px); border-color: var(--primary); }
.stat .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.stat .tx { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 26px; font-weight: 800; line-height: 1; }
.stat span { font-size: 13px; font-weight: 700; color: var(--text-light); }

.t-wait { color: var(--wait); background: var(--wait-bg); }
.t-info { color: var(--info); background: var(--info-bg); }
.t-move { color: var(--move); background: var(--move-bg); }
.t-done { color: var(--done); background: var(--done-bg); }
.t-back { color: var(--back); background: var(--back-bg); }
.t-warn { color: var(--warn); background: var(--warn-bg); }
.t-bad  { color: var(--bad);  background: var(--bad-bg); }
.t-teal { color: var(--primary); background: var(--primary-soft); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }

.olist { display: grid; gap: 10px; }
.oitem { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; transition: border-color .15s, transform .15s; }
.oitem:hover { border-color: var(--primary); }
.oitem .ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.oitem .who { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oitem .meta { font-size: 12px; font-weight: 700; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.oitem .meta .code { direction: ltr; color: var(--primary); }
.oitem .note { font-size: 12px; font-weight: 700; color: var(--warn); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oitem .end { text-align: left; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.oitem .amt { font-weight: 800; font-size: 16px; white-space: nowrap; }
.oitem .amt small { font-size: 12px; color: var(--text-light); }

.ftabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg-main); border: 1px solid var(--border-color); font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--text-light); }
.ftab b { background: var(--bg-secondary); color: var(--text-dark); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.ftab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ftab.on b { background: rgba(255, 255, 255, 0.18); color: #fff; }
body.dark-theme .ftab.on { background: var(--primary); border-color: var(--primary); }

.search { position: relative; flex: 1; }
.search i { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--text-light); }
.search input { width: 100%; padding: 12px 42px 12px 14px; border-radius: 14px; border: 1.5px solid var(--border-color); background: var(--bg-main); color: var(--text-dark); font-size: 15px; outline: none; }
.search input:focus { border-color: var(--primary); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }

.empty { text-align: center; padding: 44px 20px; }
.empty i { font-size: 40px; color: var(--primary); opacity: .6; margin-bottom: 12px; }
.empty b { display: block; font-size: 17px; margin-bottom: 4px; }
.empty p { color: var(--text-light); font-weight: 600; font-size: 14px; margin-bottom: 16px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--text-light); }

.f { margin-bottom: 14px; }
.f label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.f label em { color: var(--back); font-style: normal; }
.f label .opt { font-weight: 700; font-size: 11px; color: var(--text-light); background: var(--bg-secondary); border-radius: 6px; padding: 1px 6px; margin-inline-start: 4px; }
.f input, .f select, .f textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border-color); background: var(--bg-main); color: var(--text-dark); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 168, 142, 0.14); }
.f input[type="tel"], .f input[type="email"], .f .ltr-in { direction: ltr; text-align: right; }
.f .hint { font-size: 12px; color: var(--text-light); font-weight: 600; margin-top: 5px; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pw { position: relative; }
.pw button { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-light); width: 38px; height: 38px; cursor: pointer; font-size: 15px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; margin-bottom: 14px; line-height: 1.7; }
.alert i { margin-top: 4px; }
.alert-ok { background: var(--done-bg); color: var(--done); }
.alert-bad { background: var(--back-bg); color: var(--back); }
.alert-info { background: var(--primary-soft); color: var(--primary); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-light); font-weight: 700; }
.kv dd { font-weight: 800; overflow-wrap: anywhere; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }

.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 6px 0 4px; }
.step { text-align: center; position: relative; font-size: 12px; font-weight: 800; color: var(--text-light); }
.step .dot { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px; background: var(--bg-secondary); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 13px; position: relative; z-index: 1; }
.step::before { content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 3px; background: var(--border-color); }
.step:first-child::before { display: none; }
.step.on { color: var(--text-dark); }
.step.on .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.on::before { background: var(--primary); }
.step.bad .dot { background: var(--back); border-color: var(--back); color: #fff; }

.trail { list-style: none; position: relative; }
.trail li { position: relative; padding: 0 44px 20px 0; }
.trail li::before { content: ""; position: absolute; right: 15px; top: 30px; bottom: 0; width: 2px; background: var(--border-color); }
.trail li:last-child::before { display: none; }
.trail .pin { position: absolute; right: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-secondary); border: 2px solid var(--border-color); color: var(--text-light); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.trail li.latest .pin { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(16, 168, 142, 0.15); }
.trail li.problem .pin { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.trail li.back .pin { background: var(--back-bg); border-color: var(--back); color: var(--back); }
.trail b { display: block; font-size: 15px; font-weight: 800; }
.trail .where { font-size: 13px; color: var(--text-light); font-weight: 700; }
.trail time { font-size: 12px; color: var(--text-light); font-weight: 700; direction: ltr; display: inline-block; }
.trail .note-box { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 8px 12px; margin: 6px 0; font-size: 13px; font-weight: 800; line-height: 1.7; }
.trail .note-box i { margin-top: 4px; }
.courier { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: 12px; background: var(--bg-secondary); max-width: 360px; }
.courier i { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.courier span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.courier small { font-size: 11px; font-weight: 700; color: var(--text-light); }
.courier .num { margin-right: auto; direction: ltr; font-weight: 800; color: var(--primary); }

.money { display: grid; gap: 10px; }
.money .ln { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.money .ln span { color: var(--text-light); }
.money .ln.minus b { color: var(--back); }
.money .ln.total { border-top: 1px dashed var(--border-color); padding-top: 10px; font-size: 16px; }
.money .ln.total b { color: var(--primary); font-size: 18px; }

.ranges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ranges .ftab { cursor: pointer; }
.dates { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dates input { padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--border-color); background: var(--bg-main); color: var(--text-dark); font-size: 14px; font-family: inherit; }

.fin-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fin-tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fin-tile { padding: 16px; }
.fin-tile small { display: block; font-size: 12px; font-weight: 800; color: var(--text-light); margin-bottom: 6px; }
.fin-tile b { font-size: 22px; font-weight: 800; }
.fin-tile.minus b { color: var(--back); }
.fin-tile.plus b { color: var(--done); }
.fin-tile.main { background: var(--navy); color: #fff; border-color: var(--navy); }
.fin-tile.main small { color: #9fc4d6; }

.stmt { width: 100%; border-collapse: collapse; font-size: 14px; }
.stmt th { text-align: right; font-size: 12px; font-weight: 800; color: var(--text-light); padding: 12px 14px; border-bottom: 1px solid var(--border-color); white-space: nowrap; background: var(--bg-secondary); }
.stmt td { padding: 12px 14px; border-bottom: 1px solid var(--border-color); font-weight: 700; vertical-align: middle; }
.stmt tr:last-child td { border-bottom: 0; }
.stmt .num { white-space: nowrap; }
.stmt .minus { color: var(--back); }
.stmt .plus { color: var(--done); }
.stmt tr.payout td { background: color-mix(in srgb, var(--done-bg) 45%, transparent); }
.stmt tfoot td { font-weight: 800; background: var(--bg-secondary); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.payouts { display: grid; gap: 10px; }
.payout { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.payout .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.payout div { flex: 1; min-width: 0; }
.payout b { display: block; font-size: 15px; }
.payout small { font-size: 12px; font-weight: 700; color: var(--text-light); }
.payout .amt { color: var(--done); font-weight: 800; font-size: 17px; white-space: nowrap; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, #17b89b 0%, #0d7f6c 28%, #0b2230 70%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, 0.04); left: -200px; bottom: -220px; }
.auth-art > * { position: relative; }
.auth-art .brand { display: flex; align-items: center; gap: 12px; }
.auth-art .brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 2px; }
.auth-art .brand b { font-size: 20px; font-weight: 800; display: block; }
.auth-art .brand span { font-size: 12px; font-weight: 700; color: #7ee2cf; letter-spacing: 2px; }
.auth-art h2 { font-size: 36px; font-weight: 800; line-height: 1.4; max-width: 480px; }
.auth-art p.lead { font-size: 16px; opacity: .85; margin-top: 12px; max-width: 460px; line-height: 1.9; font-weight: 600; }
.feats { display: grid; gap: 12px; margin-top: 30px; max-width: 460px; }
.feat { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.feat i { width: 36px; height: 36px; border-radius: 10px; background: rgba(16, 168, 142, 0.25); color: #7ee2cf; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-form { background: var(--bg-main); display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 26px; font-weight: 800; }
.auth-box > p { color: var(--text-light); font-weight: 600; font-size: 14px; margin: 4px 0 22px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-secondary); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.auth-switch a { text-align: center; padding: 10px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--text-light); }
.auth-switch a.on { background: var(--bg-main); color: var(--text-dark); box-shadow: var(--shadow); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--text-light); }
.auth-alt a { color: var(--primary); }
.auth-home { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-light); margin-bottom: 18px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fin-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fin-tile.main { grid-column: span 3; }
    .grid-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .p-side { display: none; }
    .p-main { margin-right: 0; padding-bottom: 88px; }
    .p-top-in { padding: 12px 16px; }
    .p-top h1 { font-size: 19px; }
    .p-top .mlogo { display: block; }
    .p-wrap { padding: 4px 16px 24px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 22px 20px; border-radius: 22px; }
    .hero .amount { font-size: 36px; }
    .side-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mini { padding: 14px 12px; gap: 10px; }
    .mini .ic { width: 38px; height: 38px; font-size: 15px; }
    .mini b { font-size: 17px; }
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-art { padding: 26px 22px 34px; }
    .auth-art h2 { font-size: 24px; }
    .auth-art p.lead { font-size: 14px; }
    .feats { display: none; }
    .auth-form { padding: 0 16px 30px; background: transparent; margin-top: -18px; }
    .auth-box { background: var(--bg-main); border-radius: 22px; padding: 24px 20px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }

    .p-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; bottom: 0; right: 0; left: 0; z-index: 60; background: var(--bg-main); border-top: 1px solid var(--border-color); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(16, 33, 46, 0.08); }
    .p-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--text-light); padding: 6px 0; }
    .p-tabbar a i { font-size: 18px; }
    .p-tabbar a.on { color: var(--primary); }
    .p-tabbar a.plus { position: relative; }
    .p-tabbar a.plus i { width: 52px; height: 52px; border-radius: 18px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: -26px; box-shadow: 0 10px 24px rgba(16, 168, 142, 0.45); font-size: 20px; border: 4px solid var(--bg-main); }
    .toast { bottom: 100px; }
}

@media (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { flex-direction: row; align-items: center; padding: 14px 12px; gap: 10px; }
    .stat b { font-size: 22px; }
    .stat .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .stat span { font-size: 12px; }
    .fin-tiles, .fin-tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fin-tile.main { grid-column: span 2; }
    .fin-tile b { font-size: 19px; }
    .oitem { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
    .oitem .ic { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }
    .oitem .amt { font-size: 15px; }
    .f-row { grid-template-columns: minmax(0, 1fr); }
    .stmt-cards .stmt thead { display: none; }
    .stmt-cards .stmt, .stmt-cards .stmt tbody, .stmt-cards .stmt tr, .stmt-cards .stmt td { display: block; width: 100%; }
    .stmt-cards .stmt tr { border-bottom: 1px solid var(--border-color); padding: 10px 14px; }
    .stmt-cards .stmt td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 10px; }
    .stmt-cards .stmt td::before { content: attr(data-l); color: var(--text-light); font-size: 12px; font-weight: 700; }
    .stmt-cards .stmt td.first::before { display: none; }
    .stmt-cards .stmt td.z { display: none; }
    .stmt-cards .stmt td.first { font-size: 12px; color: var(--text-light); }
    .stmt-cards .stmt tfoot tr { display: block; }
    .step { font-size: 11px; }
    .step .dot { width: 30px; height: 30px; }
    .step::before { top: 14px; }
}

@media print {
    .p-side, .p-tabbar, .p-top .icon-btn, .p-top .back, .no-print, .toast { display: none !important; }
    .p-main { margin: 0; padding: 0; }
    body { background: #fff; color: #000; }
    .card { box-shadow: none; border-color: #ccc; }
    .fin-tile.main { background: #fff; color: #000; border: 2px solid #000; }
    .fin-tile.main small { color: #333; }
    .print-only { display: block !important; }
}
.print-only { display: none; }
