/* Club34 · painel — tokens e componentes (portado de "Club34 Admin.dc.html") */
:root {
  --bg: #000; --side: #050505; --panel: #111; --input: #1A1A1A; --row: #161616;
  --line: #2A2A2A; --line-2: #1F1F1F; --line-3: #1A1A1A; --line-btn: #3A3A3A;
  --txt: #fff; --muted: #A3A3A3; --dim: #7A7A7A; --faint: #5A5A5A;
  --amber: #F5A300; --amber-h: #FFB627; --amber-bg: #2B1E03; --amber-line: #4A3405; --amber-txt: #F2D9A6;
  --green: #3FBF7F; --green-bg: #0F2A1C; --red: #F0554A; --red-bg: #2A1210; --red-line: #4A1E1A;
  --display: 'Big Shoulders Display', sans-serif; --mono: 'JetBrains Mono', monospace; --sans: Archivo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-decoration: none; } a:hover { color: var(--amber-h); }
button, input, select, textarea { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=date], input[type=time] { color-scheme: dark; }
form { margin: 0; }

/* ---- shell ---- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 248px; max-width: 100%; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; background: var(--side); box-shadow: 1px 0 0 var(--line-2); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-logo { width: 84px; height: 34px; overflow: hidden; } .brand-logo img { width: 84px; height: 34px; object-fit: cover; display: block; }
.brand-sep { width: 1px; height: 24px; background: var(--line); }
.wordmark { display: flex; align-items: flex-start; font-family: var(--display); font-weight: 800; line-height: .9; }
.wordmark b { font-size: 22px; letter-spacing: .04em; } .wordmark i { font-style: normal; font-size: 13px; color: var(--amber); }
.account-box { padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.account-box strong { font: 600 14px var(--sans); } .account-box small { font-size: 12px; color: var(--green); } .account-box small.warn { color: var(--amber); }
.eyebrow-mono { font: 600 10px var(--mono); letter-spacing: .12em; color: var(--dim); }
.nav-group { display: flex; flex-direction: column; gap: 6px; }
.nav-group > span { padding: 0 12px; font: 600 10px var(--mono); letter-spacing: .12em; color: var(--faint); }
.nav-item { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #8A8A8A; font: 600 14px var(--sans); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-item:hover { color: #fff; } .nav-item.on { background: var(--input); color: #fff; }
.nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #000; font: 700 11px/20px var(--sans); text-align: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); }
.side-foot a, .side-foot button { font: 600 13px var(--sans); background: none; border: 0; padding: 6px 0; min-height: 32px; text-align: left; cursor: pointer; }
.side-foot .muted { color: var(--dim); }
.main { flex: 999 1 640px; min-width: 0; padding: 32px clamp(16px, 3vw, 40px) 96px; display: flex; flex-direction: column; gap: 24px; }

/* ---- page header ---- */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ph-main { display: flex; flex-direction: column; gap: 8px; }
.ph-back { align-self: flex-start; color: var(--muted); font: 600 13px var(--sans); }
.ph-eyebrow { font: 600 11px var(--mono); color: var(--amber); letter-spacing: .14em; text-transform: uppercase; }
.ph h1 { margin: 0; font: 800 clamp(40px, 5vw, 60px)/.9 var(--display); text-transform: uppercase; }
.ph p { margin: 0; font-size: 15px; color: var(--muted); max-width: 640px; line-height: 1.5; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--amber); color: #000; font: 700 14px var(--sans); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; }
.btn:hover { background: var(--amber-h); color: #000; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--line-btn); font-weight: 600; padding: 0 20px; }
.btn-ghost:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; font-weight: 600; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 12px; font-weight: 600; }
.btn-link { height: 34px; padding: 0 14px; border: 0; background: transparent; color: var(--amber); font: 600 12px var(--sans); cursor: pointer; border-radius: 999px; }
.btn-amber-line { background: transparent; border: 1px solid var(--amber); color: var(--amber); font-weight: 600; }
.btn-amber-line:hover { background: transparent; color: var(--amber-h); }
.btn-danger { background: var(--red); } .btn-danger:hover { background: var(--red); }
.btn-ghost.danger { border-color: var(--red-line); color: var(--red); }
.btn-ghost.danger:hover { border-color: var(--red); color: var(--red); }

/* ---- chips / kpis / pills ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: #fff; font: 600 13px var(--sans); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.chip:hover { color: #fff; border-color: var(--line-btn); } .chip.on { background: #fff; color: #000; border-color: #fff; } .chip span { opacity: .6; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.kpi { padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.kpi .l { font-size: 13px; color: var(--muted); } .kpi .v { font: 800 38px/1 var(--display); } .kpi .n { font: 500 12px var(--mono); color: var(--dim); }
.pill { align-self: flex-start; height: 22px; padding: 0 9px; border-radius: 999px; font: 700 10px/22px var(--mono); letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; background: #1F1F1F; color: var(--muted); display: inline-block; }
.pill.ok { background: var(--green-bg); color: var(--green); } .pill.warn { background: var(--amber-bg); color: var(--amber); } .pill.bad { background: var(--red-bg); color: var(--red); }

/* ---- cards ---- */
.card { padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.card.hl { border-color: var(--amber); }
.card-title { font: 800 22px var(--display); text-transform: uppercase; } .card-title.lg { font-size: 24px; }
.panel { display: flex; flex-direction: column; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.panel-h { padding: 16px 20px; font: 800 22px var(--display); text-transform: uppercase; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.panel-h small { font: 500 12px var(--mono); color: var(--dim); text-transform: none; white-space: nowrap; }
.alert-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-3); flex-wrap: wrap; }
.alert-row .dot { width: 8px; height: 8px; border-radius: 99px; flex: none; background: var(--amber); } .alert-row .dot.red { background: var(--red); }
.alert-row .txt { flex: 1; min-width: 200px; font-size: 14px; }
.note { padding: 12px 14px; border-radius: 10px; background: var(--amber-bg); border: 1px solid var(--amber-line); font-size: 13px; color: var(--amber-txt); line-height: 1.5; }
.note-plain { padding: 12px 14px; border-radius: 10px; background: var(--input); font-size: 13px; color: var(--muted); }
.hint { font-size: 12px; color: var(--dim); line-height: 1.5; }
.ok-text { color: var(--green); font-size: 13px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.co-name { font: 800 26px/.95 var(--display); text-transform: uppercase; }
.co-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.co-stats b { display: block; font: 800 24px var(--display); } .co-stats b.m { font: 600 12px/24px var(--mono); color: var(--amber); } .co-stats small { font-size: 11px; color: var(--dim); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); } .kv + .kv { border: 0; padding-top: 0; }
.kv span:first-child { color: var(--dim); } .kv .mono { font: 13px var(--mono); }
.secret { padding: 18px 20px; border-radius: 16px; background: #0B1F15; border: 1px solid #1D4A33; display: flex; flex-direction: column; gap: 10px; }
.secret code { flex: 1; min-width: 240px; padding: 12px 14px; border-radius: 10px; background: #000; font: 600 14px var(--mono); letter-spacing: .04em; word-break: break-all; }
.endpoint { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.endpoint code { font: 600 12px var(--mono); color: var(--amber); word-break: break-all; } .endpoint span { font-size: 13px; color: var(--muted); line-height: 1.5; } .endpoint b { color: #fff; font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.diverge { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.diverge .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--red); flex: none; } .diverge .txt { flex: 1; min-width: 180px; font-size: 13px; line-height: 1.4; }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; } .field > span { font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } .fields.sm { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .fields.md { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.input, .select, .textarea { border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: #fff; font-size: 15px; outline: none; width: 100%; }
.input, .select { height: 46px; padding: 0 14px; } .select { padding: 0 12px; } .textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--amber); }
.input.mono { font: 500 15px var(--mono); }
.field-err { font-size: 12px; color: var(--red); }
.section-label { font: 600 11px var(--mono); letter-spacing: .1em; color: var(--dim); } .section-label.pt { padding-top: 6px; }
.seg { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.seg label { cursor: pointer; } .seg input { display: none; }
.seg span { display: block; height: 34px; padding: 0 16px; border-radius: 999px; font: 600 13px/34px var(--sans); color: var(--muted); }
.seg input:checked + span { background: #fff; color: #000; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.opt.sm { padding: 12px 14px; border-radius: 10px; gap: 10px; font-size: 14px; } .opt:has(input:checked) { border-color: var(--amber); }
.opt input { accent-color: var(--amber); } .opt input[type=checkbox] { width: 18px; height: 18px; }
.opt .t { display: flex; flex-direction: column; gap: 2px; font-weight: 600; } .opt .t small { font-size: 12px; color: var(--dim); font-weight: 400; }
.days { display: flex; gap: 6px; flex-wrap: wrap; } .days label { cursor: pointer; } .days input { display: none; }
.days span { display: block; width: 48px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font: 600 13px/38px var(--sans); text-align: center; }
.days input:checked + span { border-color: var(--amber); background: var(--amber-bg); color: var(--amber); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--input); font-size: 14px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; } .switch input { display: none; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-btn); cursor: pointer; transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--amber); } .switch input:checked + i::after { transform: translateX(20px); }
.drop { border-radius: 12px; border: 1px dashed var(--line-btn); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-2); }
.tab { height: 42px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dim); font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; }
.tab.on { border-bottom-color: var(--amber); color: #fff; }
.tab-pane { display: none; flex-direction: column; gap: 16px; } .tab-pane.on { display: flex; }
.editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.editor-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { cursor: pointer; } .swatch input { display: none; }
.swatch span { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--line); color: #fff; font: 600 13px var(--sans); }
.swatch input:checked + span { border-color: var(--amber); }
.swatch .c { display: flex; } .swatch .c b { width: 22px; height: 22px; border-radius: 99px; border: 1px solid var(--line-btn); } .swatch .c b + b { margin-left: -6px; }
.tpl-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.tpl-card { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: #fff; }
.tpl-card.on { border-color: var(--amber); } .tpl-card:hover { color: #fff; }
.tpl-chip { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font: 800 16px var(--display); }
.tpl-chip.sm { width: 36px; height: 36px; border-radius: 8px; font-size: 14px; }
.tpl-card .t { display: flex; flex-direction: column; gap: 2px; font: 600 14px var(--sans); } .tpl-card small { font-size: 12px; color: var(--dim); font-weight: 400; white-space: nowrap; }

/* ---- card preview ---- */
.pv-wrap { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.pv { max-width: 360px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.pv-top { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pv-top .hd { display: flex; justify-content: space-between; align-items: center; }
.pv .wm { display: flex; align-items: flex-start; font: 800 18px/.9 var(--display); } .pv .wm b { letter-spacing: .04em; } .pv .wm i { font-style: normal; font-size: 11px; }
.pv .kind { font: 700 10px var(--mono); letter-spacing: .12em; }
.pv .ttl { font: 800 40px/.9 var(--display); text-transform: uppercase; text-wrap: balance; } .pv .ben { font-size: 14px; opacity: .75; }
.pv .cut { margin: 0 22px; border-top: 2px dashed; }
.pv-mid { padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pv .qr { width: 150px; padding: 10px; background: #fff; border-radius: 10px; } .pv .qr svg { display: block; width: 100%; }
.pv .bar { width: 220px; height: 46px; }
.pv .code { font: 600 18px var(--mono); letter-spacing: .1em; }
.pv-bot { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.pv-bot div { display: flex; justify-content: space-between; gap: 12px; } .pv-bot span:first-child { opacity: .6; } .pv-bot span:last-child { text-align: right; }

/* ---- table ---- */
.tbl { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
.tr { display: grid; grid-template-columns: var(--cols); gap: 14px; padding: 13px 20px; align-items: center; border-bottom: 1px solid var(--line-3); }
.tr.th { padding: 12px 20px; border-bottom-color: var(--line-2); }
.tr.th span { font: 600 10px var(--mono); letter-spacing: .1em; color: var(--dim); }
a.tr, .tr.link { color: inherit; cursor: pointer; } a.tr:hover, .tr.link:hover { background: var(--row); color: inherit; } .tr.sel { background: var(--input); }
.td { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; } .td small { font-size: 12px; color: var(--dim); }
.td.r { text-align: right; align-items: flex-end; } .td .b { font-weight: 600; } .td .m { font-family: var(--mono); white-space: nowrap; } .td .mu { color: var(--muted); } .td .am { color: var(--amber); } .td small.m { white-space: nowrap; }
.td.acts { flex-direction: row; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.empty { padding: 32px; text-align: center; color: var(--dim); font-size: 14px; }

/* ---- order detail ---- */
.order { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.order h2 { margin: 0; font: 800 32px/.95 var(--display); text-transform: uppercase; }
.statuses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .statuses div { padding: 10px 12px; border-radius: 10px; background: var(--input); display: flex; flex-direction: column; gap: 6px; } .statuses small { font-size: 11px; color: var(--dim); }
.step { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.step .rail { display: flex; flex-direction: column; align-items: center; } .step .rail b { width: 12px; height: 12px; margin-top: 4px; border-radius: 99px; background: var(--line); flex: none; } .step .rail b.done { background: var(--amber); } .step .rail b.red { background: var(--red); } .step .rail i { flex: 1; width: 2px; background: var(--line); min-height: 18px; }
.step .body { padding-bottom: 14px; display: flex; flex-direction: column; gap: 2px; } .step .body span { font-size: 14px; } .step .body span.todo { color: var(--dim); } .step .body small { font: 500 11px var(--mono); color: var(--dim); }

/* ---- modal / toast ---- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.75); display: none; align-items: center; justify-content: center; padding: 24px; } .modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 460px; padding: 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.modal h3 { margin: 0; font: 800 30px/.95 var(--display); text-transform: uppercase; } .modal p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 999px; background: #fff; color: #000; font: 600 14px var(--sans); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.toast[hidden] { display: none; }

/* ---- login ---- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.login-box h1 { margin: 0; font: 800 56px/.9 var(--display); text-transform: uppercase; }
