/* Paper Checker – account pages (sign up, login, packages, payment, my account).
   Same colours as the app so it feels like one product. Mobile first. */
:root {
  --bg: #0e1014;
  --surface: #171a21;
  --surface-2: #20242e;
  --surface-3: #2a2f3b;
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --line: #2a2f3b;
  --accent: #4f8cff;
  --accent-2: #3b74e6;
  --good: #52c41a;
  --warn: #fb923c;
  --bad: #ff4d4f;
  --radius: 18px;
  /* package colours */
  --c1: #4f8cff; --c2: #8b5cf6;
  --grad: linear-gradient(135deg, #4f8cff 0%, #8b5cf6 55%, #ec4899 100%);
}
.p-trial { --c1: #22c55e; --c2: #14b8a6; }
.p-basic { --c1: #06b6d4; --c2: #3b82f6; }
.p-standard { --c1: #6366f1; --c2: #d946ef; }
.p-school { --c1: #f97316; --c2: #ec4899; }
.p-topup { --c1: #f59e0b; --c2: #ef4444; }
.p-pencil { --c1: #22c55e; --c2: #06b6d4; }
.p-pen { --c1: #6366f1; --c2: #d946ef; }
.p-marker { --c1: #f97316; --c2: #ec4899; }
.p-refill { --c1: #f59e0b; --c2: #ef4444; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; background:
  radial-gradient(600px 380px at 10% -5%, rgba(99,102,241,.35), transparent 70%),
  radial-gradient(520px 360px at 95% 5%, rgba(236,72,153,.25), transparent 70%),
  radial-gradient(700px 500px at 50% 110%, rgba(6,182,212,.18), transparent 70%), var(--bg); background-attachment: fixed; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* preview ribbon: nothing is saved or sent until the server part is connected */
.preview-bar { background: #3a2a10; color: #ffd28a; font-size: 13px; text-align: center; padding: 7px 16px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1040px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px rgba(99,102,241,.5); }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--muted); padding: 7px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.top nav a:hover, .top nav a.on { color: var(--text); background: var(--surface-2); text-decoration: none; }

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 48px; }

/* cards */
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow: hidden; }
.card.glow::before, .plan::before, .extra::before, .stats .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.auth { box-shadow: 0 20px 60px -20px rgba(99,102,241,.45); }
.auth::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.auth h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth { max-width: 420px; margin: 24px auto 0; }
.auth h1 { margin: 0 0 4px; font-size: 24px; }
.auth .lead { margin: 0 0 20px; color: var(--muted); }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; margin: 0 0 12px; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); outline: none; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.check input { margin-top: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 0 8px 22px -8px var(--c2); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: default; }

.msg { border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.msg.err { background: rgba(255, 77, 79, .12); color: #ff9b9c; border: 1px solid rgba(255, 77, 79, .3); }
.msg.ok { background: rgba(82, 196, 26, .12); color: #9be27a; border: 1px solid rgba(82, 196, 26, .3); }
.msg.info { background: rgba(79, 140, 255, .12); color: #a9c6ff; border: 1px solid rgba(79, 140, 255, .3); }
.msg.warn { background: rgba(251, 146, 60, .12); color: #ffc08f; border: 1px solid rgba(251, 146, 60, .3); }

/* steps (sign up) */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.steps i.on { background: var(--grad); }

/* OTP boxes */
.otp { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 16px; }
.otp input { width: 100%; max-width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 800; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); outline: none; }
.otp input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.25); }

/* packages */
.hero { text-align: center; margin: 18px auto 26px; max-width: 640px; }
.hero h1 { font-size: 32px; margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chips span { font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 20px; }
.chips .r { background: rgba(255,77,79,.15); color: #ff8a8b; } .chips .p { background: rgba(179,127,235,.16); color: #c9a5f5; }
.chips .b { background: rgba(64,169,255,.15); color: #7cc4ff; } .chips .g { background: rgba(82,196,26,.15); color: #8be36a; }
.chips .o { background: rgba(251,146,60,.16); color: #ffb57a; }
.hero p { color: var(--muted); margin: 0; }
.plans { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--c1) 35%, var(--line)); border-radius: var(--radius); padding: 24px 22px 22px; overflow: hidden; }
.plan.best { border-color: var(--c2); box-shadow: 0 18px 50px -18px var(--c2); }
.plan .tag { position: absolute; top: 16px; right: 16px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px -8px var(--c2); margin-bottom: 12px; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .who { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.price { font-size: 34px; font-weight: 900; background: linear-gradient(135deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price small { font-size: 14px; font-weight: 600; -webkit-text-fill-color: var(--muted); }
.pages { font-size: 15px; font-weight: 700; margin: 4px 0 2px; }
.per { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.plan .btn { margin-top: auto; }
.extras { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--c1) 35%, var(--line)); background: radial-gradient(360px 200px at 100% 0%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 70%), var(--surface); }
.extra .left { display: flex; gap: 14px; align-items: center; }
.extra .icon { margin: 0; }
.extra .price { font-size: 26px; }

table.cost { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cost td, table.cost th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.cost th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.cost td:last-child, table.cost th:last-child { text-align: right; white-space: nowrap; }
.section { margin-top: 28px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #8b5cf6; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq details:nth-of-type(3n) { border-left-color: #06b6d4; } .faq details:nth-of-type(3n+1) { border-left-color: #f97316; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* payment */
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary-line:last-child { border-bottom: 0; }
.summary-line b { font-size: 16px; }
.tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tabs button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button.on { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.tabs button[data-m="jazzcash"] { --c1: #ef4444; --c2: #f59e0b; } .tabs button[data-m="easypaisa"] { --c1: #16a34a; --c2: #22c55e; } .tabs button[data-m="bank"] { --c1: #3b82f6; --c2: #6366f1; }
.acct { background: var(--surface-2); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.acct div { display: flex; justify-content: space-between; gap: 10px; }
.acct span { color: var(--muted); font-size: 13px; }
.acct b { text-align: right; }
.copy { border: 0; background: var(--surface-3); color: var(--text); border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 700; cursor: pointer; margin-left: 6px; }
.drop { display: grid; place-items: center; gap: 6px; min-height: 130px; border: 2px dashed var(--surface-3); border-radius: 14px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; }
.drop:hover { border-color: var(--accent); }
.drop img { max-width: 100%; max-height: 220px; border-radius: 10px; }
.num { counter-reset: s; list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.num li { counter-increment: s; display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.num li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* account */
.stats { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .stats { grid-template-columns: 1.3fr 1fr 1fr; } }
.big { font-size: 48px; font-weight: 900; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-a { --c1: #6366f1; --c2: #ec4899; } .stat-b { --c1: #06b6d4; --c2: #3b82f6; } .stat-c { --c1: #f97316; --c2: #f59e0b; }
.stats .card { background: radial-gradient(380px 200px at 100% 0%, color-mix(in srgb, var(--c2) 20%, transparent), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--c1) 30%, var(--line)); }
.bar { height: 10px; border-radius: 10px; background: var(--surface-3); overflow: hidden; margin: 12px 0 8px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 10px; }
.split { display: grid; gap: 6px; font-size: 14px; }
.split div { display: flex; justify-content: space-between; }
.split span { color: var(--muted); }
.list { display: grid; gap: 0; }
.list .it { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list .it:last-child { border-bottom: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.pill.ok { background: rgba(82, 196, 26, .15); color: #9be27a; }
.pill.wait { background: rgba(251, 146, 60, .15); color: #ffc08f; }
.pill.no { background: rgba(255, 77, 79, .15); color: #ff9b9c; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

footer { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* phone: keep the top bar on one line */
.brand { white-space: nowrap; }
@media (max-width: 480px) {
  .top { padding: 12px 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .top nav { gap: 2px; flex-wrap: nowrap; }
  .top nav a { padding: 6px 7px; font-size: 12.5px; white-space: nowrap; }
}

/* "Where your checking goes" bars */
.usebar { display: flex; height: 18px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.usebar i { display: block; height: 100%; transition: width .4s; }
.uselegend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; font-size: 14px; }
@media (min-width: 720px) { .uselegend { grid-template-columns: repeat(4, 1fr); } }
.uselegend div { display: flex; align-items: center; gap: 8px; }
.uselegend b.dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.uselegend span { color: var(--muted); }
.uselegend strong { margin-left: auto; }
@media (max-width: 480px) { .uselegend { grid-template-columns: 1fr; gap: 8px; } }
