/* Luxe Picks — auth pages, member app and admin panel. Builds on styles.css tokens. */

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.pos { color: var(--green); } .neg { color: var(--red); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.btn-danger { background: rgba(255,93,98,.14); color: #ff8589; border: 1px solid rgba(255,93,98,.35); }
.btn-danger:hover { background: rgba(255,93,98,.22); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--muted); border: 1px solid var(--line-2); flex: none; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.icon-btn svg { width: 18px; height: 18px; }
.res.pend { background: rgba(245,197,52,.14); color: var(--gold); }
.tchip { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); }
.tchip.pro { background: rgba(34,226,123,.14); color: var(--green); }
.tchip.vip { background: rgba(245,197,52,.16); color: var(--gold); }
.empty { color: var(--dim); text-align: center; padding: 36px 0; font-size: 14px; }

/* ---------- form controls ---------- */
.fld { display: grid; gap: 7px; }
.fld > span, .fld > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.inp, .sel, .txt {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--text); font: inherit; font-size: 15px; padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.txt { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.sel { appearance: none; -webkit-appearance: none; padding-right: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9a92' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.sel option { background: #0e1411; }
.inp:focus, .sel:focus, .txt:focus { border-color: rgba(34,226,123,.6); box-shadow: 0 0 0 4px rgba(34,226,123,.1); }
.inp.bad { border-color: rgba(255,93,98,.6); }
.affix { position: relative; }
.affix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.affix .inp { padding-left: 32px; }
.pw { position: relative; }
.pw .inp { padding-right: 64px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.pw button:hover { color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.check a { color: var(--green); font-weight: 600; }
.form-err { display: none; font-size: 14px; color: #ff8589; background: rgba(255,93,98,.08); border: 1px solid rgba(255,93,98,.3); padding: 10px 12px; border-radius: 10px; }
.form-err.show { display: block; }
.form-ok { font-size: 14px; color: var(--green); background: rgba(34,226,123,.08); border: 1px solid rgba(34,226,123,.3); padding: 10px 12px; border-radius: 10px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--dim); }
.presets button { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.presets button:hover { color: var(--text); }
.presets button.on { background: rgba(34,226,123,.14); border-color: rgba(34,226,123,.5); color: var(--green); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.12); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .4; }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(34,226,123,.35); }

/* ---------- toast + modal ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 200; background: #111a15; border: 1px solid rgba(34,226,123,.4); color: var(--text); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255,93,98,.5); }
.modal-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal.wide { max-width: 640px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-head .icon-btn { width: 32px; height: 32px; }
.modal-body { padding: 20px; display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* =====================================================================
   AUTH PAGES
   ===================================================================== */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; background: #050806 url("assets/banner-green.webp") center / cover no-repeat; }
.auth-art.gold { background-image: url("assets/banner-vip.webp"); }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,7,.55) 0%, rgba(6,8,7,.25) 40%, rgba(6,8,7,.92) 100%); }
.auth-art > * { position: relative; }
.auth-art .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #dfe8e3; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); align-self: flex-start; }
.auth-art h2 { font-size: clamp(44px, 5vw, 68px); }
.auth-art ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; color: #dfe8e3; }
.auth-art li { display: flex; gap: 10px; }
.auth-art li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303140a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.auth-side { display: flex; flex-direction: column; justify-content: center; padding: 48px 24px; position: relative; }
.auth-side::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(34,226,123,.1), transparent 70%); }
.auth-box { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.auth-box .logo img { height: 52px; margin-bottom: 28px; }
.auth-box h1 { font-size: 46px; margin-bottom: 8px; }
.auth-box > p { color: var(--muted); margin-bottom: 28px; }
.auth-form { display: grid; gap: 16px; }
.auth-form .row2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.auth-form .row2 a { color: var(--green); font-weight: 600; }
.auth-form .btn { height: 50px; font-size: 16px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 15px; margin-top: 22px; }
.auth-switch a { color: var(--green); font-weight: 700; }
.plan-pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245,197,52,.4); background: rgba(245,197,52,.06); font-size: 14px; }
.plan-pick b { color: var(--gold); }
.plan-pick a { color: var(--muted); font-size: 13px; }
.meter { display: flex; gap: 4px; margin-top: 2px; }
.meter i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); }
.meter.s1 i:nth-child(1) { background: var(--red); }
.meter.s2 i:nth-child(-n+2) { background: var(--gold); }
.meter.s3 i:nth-child(-n+3) { background: var(--green); }
.meter.s4 i { background: var(--green); }
.hint { font-size: 12px; color: var(--dim); }
.demo-note { margin-top: 22px; font-size: 13px; color: var(--gold); border: 1px dashed rgba(245,197,52,.45); background: rgba(245,197,52,.06); padding: 10px 12px; border-radius: 10px; }
.sent { text-align: center; }
.sent .big-ico { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(34,226,123,.12); color: var(--green); }
.sent .big-ico svg { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-side { padding: 32px 16px 48px; justify-content: flex-start; }
}

/* =====================================================================
   MEMBER APP + ADMIN SHELL
   ===================================================================== */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; }
.sb-top { display: flex; align-items: center; justify-content: space-between; }
.sb-top img { height: 42px; }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.sb-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.sb-nav a.on { color: var(--green); background: rgba(34,226,123,.1); }
.sb-nav a svg { width: 18px; height: 18px; flex: none; }
.sb-nav .count { margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(34,226,123,.16); color: var(--green); }
.sb-sub { display: grid; gap: 1px; margin: 0 0 6px 30px; padding-left: 12px; border-left: 1px solid var(--line); }
.sb-sub a { padding: 7px 10px; font-size: 14px; font-weight: 500; }
.sb-sub a.on { background: none; color: var(--text); }
.sb-label { font-size: 11px; font-weight: 800; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; padding: 12px 12px 4px; }
.sb-bottom { margin-top: auto; display: grid; gap: 12px; }
.sb-up { padding: 14px; border-radius: 14px; border: 1px solid rgba(245,197,52,.35); background: linear-gradient(180deg, rgba(245,197,52,.1), rgba(245,197,52,.02)); font-size: 13px; color: var(--muted); }
.sb-up b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 20px; text-transform: uppercase; color: var(--gold); }
.sb-up .btn { margin-top: 10px; width: 100%; height: 36px; font-size: 13px; }
.sb-user { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); width: 100%; text-align: left; }
.sb-user:hover { background: rgba(255,255,255,.03); }
.sb-user .who { min-width: 0; flex: 1; }
.sb-user .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .who small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; display: none; box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 5; }
.user-menu.open { display: grid; }
.user-menu a, .user-menu button { text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.user-menu a:hover, .user-menu button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; color: #03140a; background: linear-gradient(135deg, #5bf5a2, var(--green-2)); }
.avatar.vip { background: linear-gradient(135deg, #ffe07a, var(--gold-2)); color: #1d1402; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; align-items: center; gap: 12px; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(6,8,7,.85); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; }
.topbar img { height: 34px; }
.topbar .avatar { margin-left: auto; width: 34px; height: 34px; font-size: 13px; }
.demo-bar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 16px; font-size: 13px; color: var(--gold); background: rgba(245,197,52,.07); border-bottom: 1px solid rgba(245,197,52,.2); text-align: center; }
.demo-bar button { color: var(--muted); text-decoration: underline; font-size: 13px; }
.view { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 32px 64px; }
.scrim { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 90; transform: translateX(-100%); transition: transform .25s ease; }
  .shell.menu-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); }
  .topbar { display: flex; }
  .view { padding: 22px 16px 56px; }
}

/* view header */
.vh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.vh .crumb { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.vh h1 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5vw, 52px); line-height: 1; margin: 6px 0 6px; }
.vh p { color: var(--muted); }
.vh .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* tiles + panels */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.tile span { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { font-size: 12px; color: var(--dim); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile b { font-size: 21px; } }
.cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .cols, .cols.even { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.pnl { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.pnl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pnl-head h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pnl-head p { font-size: 13px; color: var(--muted); }
.pnl-head .tabs button { font-size: 12px; padding: 5px 10px; }
.lc-wrap { position: relative; }
.lc { display: block; width: 100%; }
.lc text { fill: var(--dim); font-size: 11px; font-family: var(--body); }
.lc-tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .12s; }
.lc-tip span { color: var(--muted); display: block; }
.lc-tip b { font-size: 14px; }

/* plan card */
.plan-card { border-radius: 18px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.plan-card .top { display: flex; justify-content: space-between; align-items: center; }
.plan-card .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.plan-card h3 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 30px; margin: 8px 0 6px; }
.plan-card p { color: var(--muted); font-size: 14px; }
.plan-card .btn { margin-top: 16px; width: 100%; }
.plan-card.free h3 { color: var(--text); }
.plan-card.pro { border-color: rgba(34,226,123,.35); }
.plan-card.pro h3 { color: var(--green); }
.plan-card.vip { border-color: rgba(245,197,52,.45); background: linear-gradient(180deg, rgba(245,197,52,.1), var(--panel) 60%); }
.plan-card.vip h3 { color: var(--gold); }
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.link-card:hover { border-color: var(--line-2); }
.link-card i { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(34,226,123,.1); color: var(--green); font-style: normal; }
.link-card i svg { width: 20px; height: 20px; }
.link-card div { flex: 1; min-width: 0; }
.link-card b { display: block; font-size: 15px; }
.link-card small { color: var(--muted); font-size: 13px; }
.link-card .arr { color: var(--dim); }

/* pick cards */
.pc-list { display: grid; gap: 12px; }
.pc { position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 18px; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pc-top .tag { color: var(--green); font-weight: 800; letter-spacing: .05em; }
.pc h3 { font-size: 20px; font-weight: 700; margin: 8px 0 2px; }
.pc .ev { font-size: 14px; color: var(--muted); }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pc-stats div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.pc-stats span { display: block; font-size: 11px; color: var(--dim); }
.pc-stats b { font-size: 15px; white-space: nowrap; }
.pc .why { margin-top: 14px; font-size: 14px; color: var(--muted); border-left: 2px solid var(--green); padding-left: 12px; }
.pc-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.pc-acts small { color: var(--dim); font-size: 12px; }
.pc.locked { overflow: hidden; }
.pc.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; }
.pc.locked .lockover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(6,8,7,.4); }
.pc.locked .lockover b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--gold); }
.pc.locked .lockover.pro b { color: var(--green); }
.pc.locked .lockover span { display: block; font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
@media (max-width: 600px) { .pc-stats { grid-template-columns: repeat(2, 1fr); } }
.mini-pick { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-pick:first-child { border-top: 0; padding-top: 0; }
.mini-pick .sp { width: 44px; flex: none; text-align: center; font-size: 11px; font-weight: 800; padding: 5px 0; border-radius: 8px; background: rgba(34,226,123,.1); color: var(--green); }
.mini-pick .sp.lk { background: rgba(245,197,52,.12); color: var(--gold); }
.mini-pick .info { flex: 1; min-width: 0; }
.mini-pick .info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pick .info small { font-size: 12px; color: var(--muted); }
.mini-pick .end { text-align: right; font-weight: 700; font-size: 14px; }
.mini-pick .end small { display: block; font-size: 11px; color: var(--dim); font-weight: 500; }
.lock-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(245,197,52,.45); background: rgba(245,197,52,.05); font-size: 14px; color: var(--gold); flex-wrap: wrap; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-row button { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.chip-row button:hover { color: var(--text); }
.chip-row button.on { background: var(--green); border-color: var(--green); color: #03140a; }
.date-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 18px 0 10px; }
.date-h:first-child { margin-top: 0; }

/* tables */
.tbl { overflow-x: auto; }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--dim); font-size: 12px; }
.tbl .r { text-align: right; }
.tbl .sel.sm, .sel.sm { height: 34px; font-size: 13px; border-radius: 9px; padding: 0 30px 0 10px; background-position: right 8px center; width: auto; }
.tbl .inp.sm, .inp.sm { height: 34px; font-size: 13px; border-radius: 9px; padding: 0 10px; }
.src { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; margin-left: 6px; background: rgba(34,226,123,.14); color: var(--green); }

/* bankroll */
.br-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.br-bar .chip-row { margin: 0; }
.bet-form { display: grid; grid-template-columns: 130px 110px 1fr 110px 120px 130px auto; gap: 8px; align-items: end; }
.bet-form .fld > span { font-size: 12px; }
.bet-form .inp, .bet-form .sel { height: 40px; font-size: 14px; }
.bet-form .btn { height: 40px; }
@media (max-width: 1100px) { .bet-form { grid-template-columns: 1fr 1fr; } .bet-form .wide { grid-column: 1 / -1; } }

/* settings */
.set-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.set-tabs a { padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.set-tabs a.on { color: var(--text); border-color: var(--green); }
.srow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); margin-bottom: 12px; align-items: start; }
.srow h3 { font-size: 16px; margin-bottom: 4px; }
.srow > div:first-child p { font-size: 14px; color: var(--muted); }
.srow .ctl { display: grid; gap: 10px; min-width: 0; }
.srow .ctl .acts { display: flex; justify-content: flex-end; gap: 8px; }
.preview { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.preview b { color: var(--text); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; padding-top: 0; }
.toggle-row b { display: block; font-size: 15px; }
.toggle-row small { color: var(--dim); font-size: 13px; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(34,226,123,.4); background: rgba(14,20,17,.95); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.5); margin-top: 16px; }
.save-bar span { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .srow { grid-template-columns: 1fr; gap: 14px; padding: 18px; } }
.bill-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bill-plan { border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 18px; display: grid; gap: 6px; }
.bill-plan.pro { border-color: rgba(34,226,123,.35); }
.bill-plan.vip { border-color: rgba(245,197,52,.45); }
.bill-plan h4 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; }
.bill-plan.pro h4 { color: var(--green); } .bill-plan.vip h4 { color: var(--gold); }
.bill-plan .pr { font-size: 30px; font-weight: 700; }
.bill-plan .pr span { font-size: 14px; color: var(--muted); font-weight: 500; }
.bill-plan p { font-size: 13px; color: var(--muted); }
.bill-plan .btn { margin-top: 8px; }
.want { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(245,197,52,.45); background: rgba(245,197,52,.07); color: var(--gold); font-size: 14px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) { .bill-plans { grid-template-columns: 1fr; } }

/* admin */
.adm-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adm-form .span2 { grid-column: span 2; }
.adm-form .span4 { grid-column: 1 / -1; }
@media (max-width: 900px) { .adm-form { grid-template-columns: 1fr 1fr; } .adm-form .span2 { grid-column: 1 / -1; } }
.grade-btns { display: inline-flex; gap: 4px; }
.grade-btns button { font-size: 12px; font-weight: 800; width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.grade-btns button[data-r="W"]:hover, .grade-btns button[data-r="W"].on { background: rgba(34,226,123,.18); color: var(--green); border-color: rgba(34,226,123,.5); }
.grade-btns button[data-r="L"]:hover, .grade-btns button[data-r="L"].on { background: rgba(255,93,98,.18); color: #ff8589; border-color: rgba(255,93,98,.5); }
.grade-btns button[data-r="P"]:hover, .grade-btns button[data-r="P"].on { background: rgba(255,255,255,.1); color: var(--text); }
.row-acts { display: inline-flex; gap: 4px; }
.row-acts .icon-btn { width: 30px; height: 30px; }
.row-acts .icon-btn svg { width: 15px; height: 15px; }
.gate { max-width: 460px; margin: 12vh auto; text-align: center; padding: 0 16px; }
.gate h1 { font-size: 44px; margin: 10px 0; }
.gate p { color: var(--muted); margin-bottom: 20px; }
