/* ================= Voltron design system v2 — sidebar pro theme ================= */
:root {
    --bg: #070b12;
    --bg-soft: #0c1119;
    --card: #0f1520;
    --card-border: #1c2635;
    --card-border-hi: #2b3a50;
    --on: #22c55e;
    --on-soft: rgba(34, 197, 94, .12);
    --accent: #22c55e;
    --accent-2: #38bdf8;
    --fg: #e8ecf1;
    --dim: #8b96a5;
    --danger: #ef4444;
    --warn: #f59e0b;
    --radius: 16px;
    --sidebar-w: 240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Segoe UI", Tahoma, system-ui, sans-serif;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 55% 40% at 85% -5%, rgba(34, 197, 94, .08), transparent),
        radial-gradient(ellipse 45% 35% at 8% 8%, rgba(56, 189, 248, .06), transparent);
    background-attachment: fixed;
}

/* page entrance */
@media (prefers-reduced-motion: no-preference) {
    main, .shell-content > * { animation: page-in .5s cubic-bezier(.22,.9,.35,1) both; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* staggered card entrance (applies to any .card inside lists) */
.card, .strip-card {
    animation: rise .55s cubic-bezier(.22,.9,.35,1) both;
}
.card:nth-child(1), .strip-card:nth-child(1) { animation-delay: .02s; }
.card:nth-child(2), .strip-card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3), .strip-card:nth-child(3) { animation-delay: .14s; }
.card:nth-child(4), .strip-card:nth-child(4) { animation-delay: .2s; }
.card:nth-child(5), .strip-card:nth-child(5) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

a { color: var(--accent); }

/* ---------- legacy topbar (landing / login) ---------- */
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 22px;
    background: rgba(12, 17, 25, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    position: sticky; top: 0; z-index: 100;
}
.topbar > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a { color: var(--dim); text-decoration: none; font-size: 14px; white-space: nowrap; transition: color .2s; }
.topbar a:hover { color: var(--on); }

.topbar-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, .03);
    color: var(--fg) !important;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: all .25s cubic-bezier(.22,.9,.35,1);
}
.topbar-btn i { color: var(--accent); font-size: 13px; transition: transform .25s; }
.topbar-btn:hover { background: rgba(34,197,94,.08); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,.15); }
.topbar-btn:hover i { transform: scale(1.15); }
.topbar-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(34, 197, 94, .3);
}
.topbar-btn-primary i { color: #fff; }
.topbar-btn-primary:hover { background: linear-gradient(135deg, #34d877, #1cb559); box-shadow: 0 8px 28px rgba(34,197,94,.45); }

.brand {
    font-weight: 800; font-size: 20px; color: var(--on) !important;
    display: inline-flex; align-items: center; gap: 8px; letter-spacing: .5px;
}
.brand i { filter: drop-shadow(0 0 8px rgba(34,197,94,.6)); animation: brand-glow 3s ease-in-out infinite; }
@keyframes brand-glow { 0%,100% { filter: drop-shadow(0 0 6px rgba(34,197,94,.45)); } 50% { filter: drop-shadow(0 0 14px rgba(34,197,94,.8)); } }

/* ---------- layout ---------- */
main { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.hint { color: var(--dim); font-size: 14px; margin: 4px 0 18px; }
.muted { color: var(--dim); }

/* ---------- app shell (sidebar layout, dashboard) ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, #0b1018 0%, #0a0e16 100%);
    border-inline-start: 1px solid var(--card-border);
    padding: 22px 16px;
    display: flex; flex-direction: column; gap: 6px;
    position: sticky; top: 0; height: 100vh;
    z-index: 90;
}
.sidebar .brand { font-size: 22px; padding: 0 10px 18px; border-bottom: 1px solid var(--card-border); margin-bottom: 12px; }
.side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 600;
    border: 1px solid transparent;
    transition: all .22s cubic-bezier(.22,.9,.35,1);
}
.side-link i { width: 20px; text-align: center; font-size: 15px; transition: transform .22s; }
.side-link:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.side-link:hover i { transform: translateX(-3px); }
.side-link.active {
    background: var(--on-soft); color: var(--on) !important;
    border-color: rgba(34,197,94,.25);
}
.side-link.danger:hover { color: var(--danger); background: rgba(239,68,68,.08); }
.sidebar .spacer { flex: 1; }
.side-user { padding: 12px 10px 0; border-top: 1px solid var(--card-border); margin-top: 10px; }
.side-user .u-mail { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }

.shell-content { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1040px; }
.shell-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-bottom: 22px; flex-wrap: wrap;
}
.shell-topbar h1 { margin: 0; }
@media (max-width: 820px) {
    .shell { flex-direction: column; }
    .sidebar { position: static; height: auto; flex: none; border-inline-start: 0; border-bottom: 1px solid var(--card-border); padding: 12px; }
    .sidebar .side-user, .sidebar .spacer { display: none; }
    .sidebar .brand { padding-bottom: 10px; margin-bottom: 8px; }
    .side-link { padding: 10px 12px; }
    .shell-content { padding: 18px 14px 50px; }
}

/* ---------- search ---------- */
.searchbox { position: relative; flex: 1; max-width: 340px; }
.searchbox i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 13px; pointer-events: none; }
.searchbox input {
    width: 100%; padding: 12px 40px; border-radius: 12px; border: 1px solid var(--card-border);
    background: var(--card); color: var(--fg); font: inherit; font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.searchbox input:focus { outline: none; border-color: var(--on); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }

/* ---------- stat cards ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 820px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
    transition: transform .25s cubic-bezier(.22,.9,.35,1), border-color .25s, box-shadow .25s;
    animation: rise .55s cubic-bezier(.22,.9,.35,1) both;
}
.stat-card:nth-child(1) { animation-delay: .02s; }
.stat-card:nth-child(2) { animation-delay: .08s; }
.stat-card:nth-child(3) { animation-delay: .14s; }
.stat-card:nth-child(4) { animation-delay: .2s; }
.stat-card:hover { transform: translateY(-4px); border-color: rgba(34,197,94,.35); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.stat-icon {
    flex: 0 0 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.stat-icon.blue { background: rgba(56,189,248,.12); color: #38bdf8; }
.stat-icon.green { background: var(--on-soft); color: var(--on); }
.stat-icon.cyan { background: rgba(6,182,212,.12); color: #06b6d4; }
.stat-icon.red { background: rgba(239,68,68,.12); color: var(--danger); }
.stat-num { font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-label { color: var(--dim); font-size: 12.5px; margin-top: 2px; }

/* ---------- cards ---------- */
.card, .voltron-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .voltron-card:hover {
    border-color: rgba(34, 197, 94, .3);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
.card.off { opacity: .6; }

/* ---------- strip card (dashboard rows style) ---------- */
.strip-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.strip-card:hover { border-color: rgba(34,197,94,.3); box-shadow: 0 12px 36px rgba(0,0,0,.4); }
.strip-card.off-strip { opacity: .65; }
.strip-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
    flex-wrap: wrap;
}
.strip-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.strip-meta { color: var(--dim); font-size: 12.5px; margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.strip-actions { display: flex; gap: 8px; align-items: center; }

.outlet-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(28, 38, 53, .55);
    transition: background .2s;
    animation: rise .5s cubic-bezier(.22,.9,.35,1) both;
}
.outlet-row:last-child { border-bottom: 0; }
.outlet-row:hover { background: rgba(255,255,255,.025); }
.outlet-row.disabled { opacity: .5; pointer-events: none; }
.outlet-icon {
    flex: 0 0 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    background: rgba(255,255,255,.04); color: var(--dim);
    transition: all .3s cubic-bezier(.22,.9,.35,1);
}
.outlet-row.on .outlet-icon { background: var(--on-soft); color: var(--on); box-shadow: 0 0 14px rgba(34,197,94,.2); }
.outlet-row.locked .outlet-icon { background: rgba(245,158,11,.12); color: var(--warn); }
.outlet-info { flex: 1; min-width: 0; }
.outlet-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.outlet-name .lock { color: var(--warn); font-size: 12px; }
.outlet-sub { color: var(--dim); font-size: 12px; margin-top: 2px; }

/* iOS-style toggle switch */
.switch {
    flex: 0 0 52px; height: 30px; border-radius: 100px;
    background: #26303f; border: 0; cursor: pointer; position: relative;
    transition: background .3s cubic-bezier(.22,.9,.35,1);
    padding: 0;
}
.switch::after {
    content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #aab4c2;
    transition: transform .3s cubic-bezier(.34,1.4,.44,1), background .3s;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.switch.on { background: var(--on); box-shadow: 0 0 16px rgba(34,197,94,.35); }
.switch.on::after { transform: translateX(-22px); background: #fff; }
[dir="ltr"] .switch.on::after { transform: translateX(22px); }
.switch:disabled { opacity: .5; cursor: default; }
.switch:active:not(:disabled)::after { width: 28px; }

/* ---------- buttons ---------- */
button, .btn-v {
    border: 0; border-radius: 12px; padding: 13px 18px; font: inherit; font-weight: 600;
    color: var(--fg); background: #1d2735; width: 100%; cursor: pointer;
    transition: transform .15s ease, filter .2s ease, background .2s ease, box-shadow .2s;
}
button:hover:not(:disabled), .btn-v:hover { filter: brightness(1.15); transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0) scale(.98); }
button:disabled { opacity: .55; cursor: default; }
button.on { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; font-weight: 700; }
button small { display: block; opacity: .8; font-size: 12px; margin-top: 2px; }
.allbtn { width: auto; padding: 10px 18px; }
.btn-primary, button.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important; font-weight: 700; border: 0;
    box-shadow: 0 6px 22px rgba(34, 197, 94, .25);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(34,197,94,.4) !important; }
.btn-ghost { background: #1d2735 !important; color: var(--fg) !important; border: 1px solid var(--card-border) !important; }
.btn-danger { background: rgba(239,68,68,.12) !important; color: #ff6b6b !important; width: auto; }
.btn-link-v { background: transparent !important; color: var(--accent) !important; width: auto !important; box-shadow: none !important; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.field input, input[type=email], input[type=password], input[type=url] {
    width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid #2a323d;
    background: var(--bg-soft); color: var(--fg); font: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.field input:focus, input:focus {
    outline: none; border-color: var(--on);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
input::placeholder { color: #5a6675; }

.error { color: #ff6b6b; font-size: 14px; margin: 8px 0; }
.center { max-width: 420px; margin: 6vh auto 0; }
.center h1 { text-align: center; }
.center .hint { text-align: center; }
.center a { color: var(--accent); }

/* legacy tile grid kept for compatibility */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.grid button { text-align: start; }
.grid button.tile {
    background: var(--bg-soft); border: 1px solid var(--card-border); border-radius: 14px;
    padding: 14px 12px; display: block; width: 100%;
    transition: all .25s cubic-bezier(.22,.9,.35,1);
}
.grid button.tile .tile-icon { display: block; font-size: 20px; margin-bottom: 6px; }
.grid button.tile b { color: var(--fg); font-size: 14px; }
.grid button.tile.on { background: rgba(34,197,94,.08); border-color: var(--on); box-shadow: 0 0 18px rgba(34,197,94,.12); }
.grid button.tile.locked { border-color: var(--warn); }
.grid button.tile:disabled { opacity: .5; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--danger); margin-inline-start: 6px; animation: pulse-off 2s infinite; flex: none; }
.dot.on { background: var(--on); animation: pulse-on 2s infinite; }
@keyframes pulse-on { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
@keyframes pulse-off { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }

.stats { color: var(--dim); font-size: 13px; margin: 10px 0 14px; }

/* quick actions */
.qactions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 820px) { .qactions { flex-direction: row; flex-wrap: wrap; } }
.qbtn {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--card-border);
    color: var(--fg); font-weight: 600; font-size: 14px; cursor: pointer;
    width: 100%; text-align: start; text-decoration: none;
    transition: all .22s cubic-bezier(.22,.9,.35,1);
}
.qbtn i { color: var(--accent); width: 18px; text-align: center; transition: transform .22s; }
.qbtn:hover { border-color: var(--accent); background: rgba(34,197,94,.06); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,197,94,.12); }
.qbtn:hover i { transform: scale(1.2); }
.qbtn.warn i { color: var(--warn); }
.qbtn.danger i { color: var(--danger); }

/* empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .big-icon {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 24px;
    background: var(--on-soft); color: var(--on);
    display: flex; align-items: center; justify-content: center; font-size: 34px;
    animation: float-y 3.5s ease-in-out infinite;
}
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* toast banner */
.banner {
    position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%);
    background: #12202f; color: var(--accent-2); border: 1px solid rgba(56,189,248,.3);
    border-radius: 12px; padding: 13px 22px; font-weight: 600; font-size: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 200;
    animation: toast-in .4s cubic-bezier(.34,1.3,.44,1) both;
}
[dir="ltr"] .banner { transform: translateX(-50%); }
@keyframes toast-in { from { opacity: 0; transform: translateX(50%) translateY(20px); } }
[dir="ltr"] .banner { animation-name: toast-in-l; }
@keyframes toast-in-l { from { opacity: 0; transform: translateX(-50%) translateY(20px); } }

/* ---------- landing hero ---------- */
.hero { text-align: center; padding: 52px 0 30px; position: relative; }
.hero h1 {
    font-size: clamp(28px, 5vw, 46px); line-height: 1.25; margin: 0 0 16px; font-weight: 900;
    background: linear-gradient(120deg, #e8ecf1 30%, #22c55e 75%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: hero-shine 6s linear infinite;
}
@keyframes hero-shine { to { background-position: 200% center; } }
.hero .lede { color: var(--dim); font-size: 17px; max-width: 640px; margin: 0 auto 26px; line-height: 1.8; }
.badge-v {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--on-soft); color: var(--on); border: 1px solid rgba(34,197,94,.3);
    padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 14px; font-weight: 700; }

/* ---------- feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 30px 0; }
.feat { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 22px; transition: transform .3s cubic-bezier(.22,.9,.35,1), border-color .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(34,197,94,.4); box-shadow: 0 16px 38px rgba(0,0,0,.45); }
.feat .icon {
    width: 48px; height: 48px; border-radius: 14px; background: var(--on-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--on); font-size: 20px; margin-bottom: 14px;
    transition: transform .3s cubic-bezier(.34,1.4,.44,1);
}
.feat:hover .icon { transform: scale(1.12) rotate(-4deg); }
.feat h3 { margin: 0 0 8px; font-size: 16px; color: var(--fg); }
.feat p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.7; }

/* ---------- steps ---------- */
.how, .about { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 24px; margin: 20px 0; }
.how h2, .about h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.step { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.step:last-child { margin-bottom: 0; }
.step .num {
    flex: 0 0 30px; height: 30px; border-radius: 10px; background: var(--on); color: #04120a;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}

/* ---------- about / footer ---------- */
.contact { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.contact a { text-decoration: none; }
.foot { text-align: center; color: var(--dim); font-size: 13px; padding: 26px 0 10px; border-top: 1px solid var(--card-border); margin-top: 30px; }

/* ---------- misc ---------- */
.code-chip { display: inline-block; background: var(--bg-soft); border: 1px solid #2a323d; border-radius: 8px; padding: 4px 10px; font-family: ui-monospace, monospace; margin-top: 6px; }
.banner-ok { background: #12202f !important; color: var(--accent-2) !important; }

/* login button */
.btn-login {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
    color: #fff !important; font-weight: 700; border: 0;
    box-shadow: 0 6px 22px rgba(56, 189, 248, .25);
}

/* skeletons while loading */
.skeleton {
    height: 90px; border-radius: var(--radius); margin-bottom: 14px;
    background: linear-gradient(90deg, var(--card) 25%, #18202e 50%, var(--card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border: 1px solid var(--card-border);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- support team cards (landing) ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 18px; }
.team-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 22px 16px; text-decoration: none; text-align: center;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.team-card .t-icon {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(37, 211, 102, .12); color: #25d366; font-size: 22px; margin-bottom: 4px;
}
.team-card .t-name { color: var(--fg); font-weight: 700; font-size: 16px; }
.team-card .t-role { color: var(--dim); font-size: 12.5px; }
.team-card .t-phone { color: var(--accent-2); font-size: 13px; direction: ltr; }

/* ---------- outlet-row lock button (dashboard) ---------- */
.lockbtn { flex: 0 0 auto; padding: 8px 12px; }
.lockbtn.locked { border-color: #f59e0b; color: #f59e0b; }
.outlet-row.locked .outlet-name .lock { color: #f59e0b; font-size: 11.5px; font-weight: 700; margin-inline-start: 6px; }

/* ---------- admin page ---------- */
.adm-btn {
    background: var(--card); color: var(--fg);
    border: 1px solid var(--card-border-hi); border-radius: 10px;
    padding: 7px 14px; font-size: 13px; cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.adm-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.adm-btn.adm-plus { background: var(--on-soft); color: var(--on); border-color: rgba(34, 197, 94, .35); }
.adm-btn.adm-plus:hover { background: rgba(34, 197, 94, .2); }
.adm-btn.adm-minus { background: rgba(239, 68, 68, .08); color: #ff8787; border-color: rgba(239, 68, 68, .3); }
.adm-btn.adm-minus:hover { background: rgba(239, 68, 68, .16); }
.adm-btn.adm-danger { background: #3a2323; color: #ff6b6b; border-color: rgba(239, 68, 68, .35); }
.adm-btn.adm-danger:hover { background: #4a2626; }

/* ---------- admin gear + expandable detail rows ---------- */
.gear-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--card); color: var(--dim);
    border: 1px solid var(--card-border-hi); cursor: pointer; font-size: 15px;
    transition: transform .3s ease, color .2s, border-color .2s;
}
.gear-btn:hover { color: var(--on); border-color: var(--accent); }
.gear-btn.open { color: var(--on); border-color: var(--accent); transform: rotate(90deg); }
.detail-row > td { background: rgba(255,255,255,.02); padding: 0 !important; }
.detail-box { padding: 16px 20px; border-top: 1px dashed var(--card-border); animation: rise .35s ease both; }
.detail-title { color: var(--dim); font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.outlet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.outlet-chip {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--bg-soft); border: 1px solid var(--card-border); border-radius: 12px;
    padding: 8px 12px;
}
.outlet-chip.on { border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .06); }
.outlet-chip .o-label { font-size: 13px; color: var(--fg); }
.o-toggle { width: 40px; height: 22px; border-radius: 999px; border: 0; cursor: pointer; position: relative; background: #2a323d; transition: background .2s; flex: 0 0 auto; }
.o-toggle::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #aab3bf; transition: transform .2s, background .2s; }
.o-toggle.on { background: var(--on); }
.o-toggle.on::after { transform: translateX(-18px); background: #fff; }
.o-toggle:disabled { opacity: .55; cursor: wait; }
