/* Pahina store and admin. Same world as the landing page: navy ground, coral-orange for action. */
:root {
  --bg: #0b1220; --paper: #121a2c; --field: #0e1526; --ink: #f2f4f8; --muted: #98a2b8; --line: #222c42;
  --accent: #ff6b4a; --accent-hover: #ff8466; --accent-soft: rgb(255 107 74 / .13); --on-accent: #0b1220;
  --ok: #5fd3a8; --ok-soft: rgb(95 211 168 / .13); --warn: #f5c35b; --warn-soft: rgb(245 195 91 / .13); --bad: #ff8a7a; --bad-soft: rgb(255 138 122 / .13);
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-hover); }
h1, h2 { margin: 0; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; }
h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
h2 { font-size: 17px; margin-bottom: 12px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 20px; }
.wrap.narrow { max-width: 720px; }
.wrap.login { max-width: 420px; padding-top: 12vh; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); max-width: 100%; }
.top nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.top nav form { margin: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { display: grid; gap: 3px; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand small { font-size: 11px; color: var(--muted); line-height: 1; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; }
.form { display: grid; gap: 22px; }
.form .brand { margin-bottom: 4px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
legend { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; }
.step { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font: 600 13px/1 var(--f-mono); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
input:not([type=radio]):not([type=checkbox]), select, textarea { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; width: 100%; min-width: 0; }
input[type=file] { padding: 9px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.plans, .methods { display: grid; gap: 10px; }
.plans { grid-template-columns: 1fr 1fr; }
.plan-opt, .method-opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--field); cursor: pointer; }
.plan-opt span { display: grid; gap: 2px; }
.plan-opt small { color: var(--muted); font-weight: 400; }
.plan-opt strong { font-size: 20px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.method-opt { grid-template-columns: auto 120px 1fr; }
.method-opt .m-name { font-weight: 600; }
.method-opt .m-to { font-family: var(--f-mono); font-size: 13px; color: var(--muted); word-break: break-word; }
.method-opt .qr { grid-column: 2 / -1; border-radius: 10px; display: none; width: 240px; max-width: 100%; height: auto; }
.method-opt:has(input:checked) .qr { display: block; }
.plan-opt:has(input:checked), .method-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px/1 var(--f-body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 9px; padding: 11px 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { border-color: rgb(255 138 122 / .5); color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.big { padding: 15px 20px; font-size: 16px; width: 100%; }

.alert { border: 1px solid rgb(255 138 122 / .45); background: var(--bad-soft); border-radius: 11px; padding: 12px 16px; }
.alert.ok { border-color: rgb(95 211 168 / .45); background: var(--ok-soft); }
.alert.warn { border-color: rgb(245 195 91 / .45); background: var(--warn-soft); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.intro { display: grid; gap: 10px; }
.done { display: grid; gap: 14px; justify-items: start; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: grid; gap: 4px; }
.stats span { color: var(--muted); font-size: 13px; }
.stats b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.tabs a span { font: 500 12px/1 var(--f-mono); background: var(--line); color: var(--ink); padding: 3px 6px; border-radius: 99px; margin-left: 4px; }
.tabs a.on { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a.on span { background: var(--accent); color: var(--on-accent); }
.search { flex: 1; max-width: 340px; min-width: 200px; }
.table-wrap { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 500; color: var(--muted); }
th.r, td.r { text-align: right; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: rgb(255 255 255 / .025); }
tbody tr:last-child td { border-bottom: 0; }
td small { color: var(--muted); }
td a { color: var(--ink); text-decoration: none; }
.empty { padding: 32px; color: var(--muted); text-align: center; }
.badge { font: 500 12px/1 var(--f-mono); padding: 5px 8px; border-radius: 99px; white-space: nowrap; }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.approved { background: var(--ok-soft); color: var(--ok); }
.badge.rejected { background: var(--bad-soft); color: var(--bad); }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.proof img { display: block; width: 100%; height: auto; border-radius: 9px; background: #fff; }
.info { display: grid; gap: 18px; }
.info-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.info-head h1 { font-size: 24px; }
dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; }
dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
dd { margin: 0; word-break: break-word; }
.check { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.row form { margin: 0; }
.reject { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.reject .btn { justify-self: start; }
.keybox { display: grid; gap: 10px; }
.keybox textarea { font: 12px/1.5 var(--f-mono); word-break: break-all; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; }
.narrow-card { max-width: 640px; }

@media (max-width: 760px) {
  .grid2, .plans, .detail, .stats { grid-template-columns: 1fr; }
  .method-opt { grid-template-columns: auto 1fr; }
  .method-opt .m-to { grid-column: 2; }
  .search { max-width: none; }
}
[hidden]{display:none!important}
