/* CounterPerk portal v0.2.1. Color is never the only signal: every status has an icon and a word. */
:root {
  --ink: #10213A; --ink-2: #3A4A61; --bg: #F5F6F8; --card: #FFFFFF; --line: #D9DEE5;
  --accent: #C2410C; --accent-d: #9A3412; --ok: #1D4ED8; --warn: #B45309; --tint: #FFF4EC; --soft: #EEF1F5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Archivo, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.45; }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.topbar { background: #10213A; color: #fff; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand span { color: #FDBA74; }
.topnav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 15px; }
.topnav a, .topnav button { color: #fff; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; padding: 4px 0; }
.topnav a.on { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.chip { font-size: 12px; border: 1px solid #5B6B85; border-radius: 99px; padding: 2px 8px; color: #D6DEEA; }
h1 { font-size: 28px; margin: 22px 0 4px; line-height: 1.15; }
h2 { font-size: 21px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.muted { color: var(--ink-2); }
.fine { font-size: 13.5px; color: var(--ink-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi .n { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.kpi .l { font-size: 14px; color: var(--ink-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; border-bottom: 2px solid var(--line); }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tabs a.on { border-bottom-color: var(--accent); }
.btn { font: inherit; display: inline-block; border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 800; cursor: pointer; text-decoration: none; text-align: center; font-size: 15.5px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-dark { background: #10213A; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.btn-danger { background: #fff; color: #9A3412; border: 2px solid #9A3412; }
.btn-big { width: 100%; padding: 15px; font-size: 18px; }
.btn:disabled { opacity: .55; cursor: wait; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label.f { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14.5px; }
label.f input, label.f select, label.f textarea, input.in, select.in { font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1.5px solid #9AA6B8; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
label.f small { font-weight: 400; color: var(--ink-2); }
label.box { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
label.box input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: #10213A; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); }
.tablewrap { overflow-x: auto; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; border: 2px solid currentColor; white-space: nowrap; }
.b-live { color: #1D4ED8; } .b-draft { color: #3A4A61; } .b-hold { color: #B45309; } .b-ended { color: #6B7280; } .b-bad { color: #9A3412; }
.msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.msg.ok { border: 2px solid var(--ok); color: var(--ok); background: #EFF6FF; }
.msg.err { border: 2px dashed var(--warn); color: #7C2D12; background: var(--tint); }
.notice { border: 2px dashed var(--warn); background: var(--tint); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin-top: 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps .s { width: 28px; height: 28px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; border: 2px solid var(--ink-2); flex: 0 0 auto; }
.steps .done .s { background: #10213A; color: #fff; border-color: #10213A; }
.rules { border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; max-height: 420px; overflow: auto; background: #fff; font-size: 14.5px; }
.rules h4 { margin: 12px 0 4px; font-size: 15px; }
.rules p, .rules ul { margin: 0 0 6px; }
.login { max-width: 420px; margin: 40px auto; }
.code-in { font-size: 30px !important; letter-spacing: 10px; text-align: center; font-weight: 800 !important; }
.qrbox { background: #fff; padding: 10px; border-radius: 10px; display: inline-block; border: 1px solid var(--line); }
.qrbox svg { display: block; width: 220px; height: 220px; }
.right { text-align: right; }
:focus-visible { outline: 3px solid var(--ok); outline-offset: 2px; }
/* Printable sign */
.sign { width: 7.5in; margin: 0 auto; background: #fff; color: #10213A; text-align: center; font-family: Arial, sans-serif; }
.sign .top { background: #10213A; color: #fff; padding: 22px 10px 18px; }
.sign .top .store { font-size: 24px; font-weight: 700; }
.sign .top .big { font-size: 46px; font-weight: 900; line-height: 1.1; margin: 6px 0; }
.sign .top .es { font-size: 22px; }
.sign .qr svg { width: 4.4in; height: 4.4in; margin: 18px auto 6px; display: block; }
.sign .url { font-weight: 700; font-size: 20px; }
.sign .free { color: #C2410C; font-weight: 900; font-size: 28px; margin-top: 14px; }
.sign .free-es { color: #C2410C; font-weight: 800; font-size: 20px; }
.sign .rules-line { color: #3A4A61; font-size: 14px; margin-top: 4px; }
@media print { .noprint { display: none !important; } body { background: #fff; } }
@media (max-width: 600px) { h1 { font-size: 24px; } .kpi .n { font-size: 24px; } }
