:root {
    --bg: #0a0b09;
    --surface: #11120f;
    --surface-2: #171913;
    --surface-3: #202219;
    --gold: #d9b44a;
    --gold-light: #f2d98d;
    --text: #f5f2e9;
    --muted: #9d9e96;
    --line: rgba(255,255,255,.09);
    --success: #65d394;
    --danger: #f07878;
    --warning: #e9b95d;
    --info: #76a8ef;
    --sidebar: 260px;
    --shadow: 0 20px 60px rgba(0,0,0,.32);
}

/* Acarvia.id organizer console */
:root {
    --bg: #f5f7ff;
    --surface: #ffffff;
    --surface-2: #f8f9ff;
    --surface-3: #eef0ff;
    --gold: #4f46e5;
    --gold-light: #7c3aed;
    --text: #111827;
    --muted: #64748b;
    --line: rgba(70,64,180,.12);
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #2563eb;
    --shadow: 0 18px 50px rgba(44,50,110,.1);
}
body,.admin-body { color: var(--text); background: radial-gradient(circle at 95% 0,rgba(124,58,237,.08),transparent 28rem),var(--bg); }
.sidebar { border-color: rgba(255,255,255,.09); background: radial-gradient(circle at 20% 0,rgba(124,58,237,.25),transparent 18rem),#0a1033; }
.sidebar-brand,.sidebar-footer { border-color: rgba(255,255,255,.09); }
.admin-brand-mark { padding: 5px; background: #fff; box-shadow: 0 10px 30px rgba(37,99,235,.2); }
.admin-brand-mark img { width: 100%; height: 100%; }
.sidebar .admin-brand strong { color: #fff; }
.sidebar .admin-brand small,.sidebar-user small { color: #8f9abe; }
.nav-section { color: #69759e; }
.nav-item { color: #aeb7d4; }
.nav-item span { color: #7f8aad; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: linear-gradient(135deg,#2563eb,#7c3aed); box-shadow: 0 10px 24px rgba(79,70,229,.25); }
.nav-item.active span { color: #fff; }
.storefront-link { color: #cbd3ed; border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.04); }
.logout-button { color: #9aa4c6; }
.admin-topbar { background: rgba(255,255,255,.86); box-shadow: 0 8px 30px rgba(44,50,110,.05); }
.icon-button { color: #475569; background: #fff; }
.button.primary { color: #fff; background: linear-gradient(135deg,#2563eb,#7c3aed); box-shadow: 0 10px 22px rgba(79,70,229,.18); }
.button.secondary { color: #4338ca; background: #fff; }
.date-chip,.tag-pill { color: #4f46e5; background: #efefff; border-color: #dddafe; }
.metric-card,.panel,.ticket-row,.performance-card,.check-card { border-color: var(--line); background: rgba(255,255,255,.9); box-shadow: 0 10px 34px rgba(49,46,129,.055); }
.metric-card.featured { border-color: rgba(79,70,229,.22); background: linear-gradient(145deg,#eef2ff,#fff); }
.metric-card strong,.detail-total strong,.totals .grand strong,.text-link,.table-link { color: #4f46e5; }
th { color: #64748b; background: #f8f9ff; }
tbody tr:hover td { background: #fafaff; }
input,select,textarea { color: #111827; background: #fff; }
input:focus,select:focus,textarea:focus { border-color: rgba(79,70,229,.5); box-shadow: 0 0 0 3px rgba(79,70,229,.09); }
.login-body { background: #f5f7ff; }
.login-copy { color: #fff; background: radial-gradient(circle at 20% 15%,rgba(124,58,237,.45),transparent 25rem),linear-gradient(145deg,#081033,#14175e); }
.login-copy .admin-brand strong { color: #fff; }
.login-panel { background: radial-gradient(circle at 100% 0,rgba(79,70,229,.1),transparent 28rem),#f8f9ff; }
.login-card { border-color: rgba(79,70,229,.12); background: #fff; box-shadow: 0 28px 80px rgba(49,46,129,.13); }
.login-label { color: #6366f1; }
.progress i { background: linear-gradient(90deg,#2563eb,#7c3aed); }
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--text); background: var(--bg); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.admin-body { min-height: 100vh; background: radial-gradient(circle at 88% 0, rgba(217,180,74,.07), transparent 26rem), var(--bg); }
.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 60; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(13,14,11,.98); }
.sidebar-brand { min-height: 84px; padding: 19px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.admin-brand { display: inline-flex; gap: 11px; align-items: center; }
.admin-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #18160c; background: linear-gradient(135deg,var(--gold-light),var(--gold)); font: 800 1.15rem "Manrope", sans-serif; box-shadow: 0 10px 30px rgba(217,180,74,.15); }
.admin-brand span:last-child { display: grid; }
.admin-brand strong { font: 800 1rem "Manrope", sans-serif; letter-spacing: -.02em; }
.admin-brand small { margin-top: 1px; color: var(--muted); font-size: .68rem; }
.sidebar-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.nav-section { display: block; margin: 15px 10px 8px; color: #696b64; font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-section:first-child { margin-top: 0; }
.nav-item { min-height: 43px; margin-bottom: 4px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border-radius: 11px; color: #b8b9b2; font-size: .83rem; font-weight: 600; transition: .18s ease; }
.nav-item span { width: 20px; color: #83847c; text-align: center; font-size: 1rem; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-item.active { color: #1a180e; background: linear-gradient(135deg,var(--gold-light),var(--gold)); }
.nav-item.active span { color: #1a180e; }
.sidebar-footer { padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.storefront-link { min-height: 38px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; color: #babbB4; font-size: .75rem; }
.sidebar-user { margin-top: 14px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.sidebar-user > span:last-child, .user-cell > span:last-child { min-width: 0; display: grid; }
.sidebar-user strong, .user-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.sidebar-user small, .user-cell small { color: var(--muted); font-size: .65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--gold-light); background: rgba(217,180,74,.1); border: 1px solid rgba(217,180,74,.22); font-size: .75rem; font-weight: 800; }
.logout-button { width: 100%; margin-top: 12px; padding: 9px; border: 0; border-radius: 9px; color: #9d9e96; background: transparent; cursor: pointer; font-size: .72rem; }
.logout-button:hover { color: var(--danger); background: rgba(240,120,120,.06); }
.admin-main { min-height: 100vh; margin-left: var(--sidebar); }
.admin-topbar { min-height: 84px; padding: 16px 32px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(10,11,9,.88); backdrop-filter: blur(18px); }
.page-heading h1 { margin: 0; font: 800 clamp(1.25rem,2.5vw,1.7rem) "Manrope", sans-serif; letter-spacing: -.035em; }
.page-heading p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.topbar-actions { display: flex; gap: 9px; }
.admin-content { padding: 28px 32px 54px; }
.icon-button { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #c7c7c1; background: rgba(255,255,255,.025); cursor: pointer; }
.icon-button:hover { border-color: rgba(217,180,74,.35); color: var(--gold-light); }
.sidebar-open, .sidebar-close { display: none; }
.sidebar-backdrop { display: none; }
.button { min-height: 41px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: .76rem; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #1a180e; background: linear-gradient(135deg,var(--gold-light),var(--gold)); }
.button.secondary { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.04); }
.button.ghost { color: var(--muted); background: transparent; }
.button.danger { color: #ffd0d0; border-color: rgba(240,120,120,.25); background: rgba(240,120,120,.08); }
.button.full { width: 100%; }
.date-chip, .tag-pill { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid rgba(217,180,74,.18); border-radius: 999px; color: var(--gold-light); background: rgba(217,180,74,.06); font-size: .67rem; font-weight: 700; }
.alert { margin-bottom: 20px; padding: 13px 16px; border: 1px solid; border-radius: 11px; font-size: .76rem; }
.alert.success { color: #bcf2cf; border-color: rgba(101,211,148,.22); background: rgba(101,211,148,.08); }
.alert.error { color: #ffd0d0; border-color: rgba(240,120,120,.23); background: rgba(240,120,120,.08); }
.alert ul { margin: 7px 0 0; padding-left: 17px; }
.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.metric-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric-card { min-height: 138px; padding: 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.008)); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.metric-card.featured { border-color: rgba(217,180,74,.26); background: linear-gradient(145deg,rgba(217,180,74,.13),rgba(217,180,74,.025)); }
.metric-label { color: var(--muted); font-size: .69rem; }
.metric-card strong { margin-top: 9px; font: 800 clamp(1.45rem,2.5vw,2rem) "Manrope",sans-serif; letter-spacing: -.04em; }
.metric-card small { margin-top: 7px; color: #767870; font-size: .65rem; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: rgba(17,18,15,.86); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.content-grid { margin-top: 18px; display: grid; gap: 18px; }
.content-grid.two-one { grid-template-columns: minmax(0,2fr) minmax(280px,1fr); }
.stack { display: grid; gap: 18px; align-content: start; }
.panel-head { min-height: 72px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.panel-head h2 { width: 100%; margin: 0; font: 700 .93rem "Manrope",sans-serif; letter-spacing: -.02em; }
.panel-head p { width: 100%; margin: 0; color: var(--muted); font-size: .67rem; }
.text-link, .table-link { color: var(--gold-light); font-weight: 700; }
.text-link { font-size: .7rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: .72rem; }
th { color: #73756d; background: rgba(255,255,255,.012); font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.012); }
td > small, td > span > small { margin-top: 3px; display: block; color: var(--muted); font-size: .62rem; }
.empty-cell { padding: 40px; color: var(--muted); text-align: center; }
.empty-state { margin: 0; padding: 24px; color: var(--muted); font-size: .72rem; text-align: center; }
.status { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: .59rem; font-weight: 800; white-space: nowrap; }
.status.paid,.status.published,.status.valid,.status.verified,.status.active,.status.completed { color: #aef0c6; background: rgba(101,211,148,.1); border: 1px solid rgba(101,211,148,.2); }
.status.pending-payment,.status.pending,.status.draft,.status.scheduled,.status.on-sale { color: #f3d89e; background: rgba(233,185,93,.09); border: 1px solid rgba(233,185,93,.18); }
.status.cancelled,.status.expired,.status.refunded,.status.void,.status.rejected,.status.suspended,.status.inactive { color: #ffc0c0; background: rgba(240,120,120,.09); border: 1px solid rgba(240,120,120,.18); }
.status.paused,.status.rescheduled,.status.used,.status.ended,.status.sold-out { color: #bcd6ff; background: rgba(118,168,239,.09); border: 1px solid rgba(118,168,239,.18); }
.status-list { padding: 10px 20px 18px; }
.status-list > div { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: .7rem; }
.status-list > div:last-child { border: 0; }
.status-list span { display: inline-flex; align-items: center; gap: 8px; color: #c0c1ba; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.paid { background: var(--success); }.status-dot.pending-payment { background: var(--warning); }.status-dot.cancelled,.status-dot.expired,.status-dot.refunded { background: var(--danger); }
.performance-grid { padding: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.performance-card { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); }
.event-mini { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.event-mini img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.event-mini div { min-width: 0; display: grid; }
.event-mini strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.event-mini small { color: var(--muted); font-size: .6rem; }
.progress-meta { margin-top: 15px; display: flex; justify-content: space-between; color: var(--muted); font-size: .62rem; }
.progress-meta strong { color: var(--text); }
.progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--gold),var(--gold-light)); }
.gross { margin-top: 10px; display: block; color: #777970; font-size: .59rem; }
.filter-bar { padding: 14px 16px; display: flex; align-items: end; gap: 10px; border-bottom: 1px solid var(--line); }
.filter-bar select, .filter-bar > input { width: auto; min-width: 160px; }
.search-input { flex: 1; min-width: 220px; height: 41px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); }
.search-input input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.field { display: grid; gap: 7px; align-content: start; }
.field > span { color: #b5b6af; font-size: .67rem; font-weight: 700; }
.field > small { color: var(--muted); font-size: .6rem; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: #0e0f0d; transition: .16s ease; }
input, select { height: 42px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(217,180,74,.5); box-shadow: 0 0 0 3px rgba(217,180,74,.07); }
input:disabled { color: #777; background: #171813; }
.form-stack { display: grid; gap: 18px; }
.form-section { padding-bottom: 20px; }
.form-grid { padding: 20px; display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.step-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--gold-light); background: rgba(217,180,74,.08); border: 1px solid rgba(217,180,74,.18); font-size: .61rem; font-weight: 800; }
.check-card { min-height: 72px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); cursor: pointer; }
.check-card input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); }
.check-card span { display: grid; }
.check-card strong { font-size: .7rem; }.check-card small { margin-top: 3px; color: var(--muted); font-size: .6rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.ticket-editor { padding: 0 18px 18px; display: grid; gap: 12px; }
.ticket-row { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.014); }
.ticket-row .form-grid { padding-top: 8px; }
.ticket-row-head { padding: 10px 13px 0 19px; display: flex; align-items: center; justify-content: space-between; }
.ticket-row-head strong { color: var(--gold-light); font-size: .68rem; }
.danger-icon:hover { color: var(--danger); border-color: rgba(240,120,120,.25); }
.danger-zone { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(240,120,120,.18); border-radius: 14px; background: rgba(240,120,120,.04); }
.danger-zone strong { font-size: .8rem; }.danger-zone p { margin: 3px 0 0; color: var(--muted); font-size: .65rem; }
.event-cell { min-width: 230px; display: grid; grid-template-columns: 48px 1fr; gap: 11px; align-items: center; }
.event-cell img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.event-cell > span { min-width: 0; }
.event-cell .table-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.pagination-wrap { padding: 14px 16px; border-top: 1px solid var(--line); }
.pagination-wrap nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .66rem; }
.pagination-wrap nav > div:first-child { display: none; }
.pagination-wrap nav > div:last-child { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pagination-wrap nav span[aria-current="page"] span, .pagination-wrap nav a { min-width: 32px; height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; }
.pagination-wrap nav span[aria-current="page"] span { color: #18160c; border-color: var(--gold); background: var(--gold); }
.detail-hero { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(217,180,74,.2); border-radius: 16px; background: linear-gradient(135deg,rgba(217,180,74,.1),rgba(255,255,255,.015)); }
.detail-hero h2 { margin: 12px 0 3px; font: 800 1.45rem "Manrope",sans-serif; }.detail-hero p { margin: 0; color: var(--muted); font-size: .72rem; }
.detail-total { display: grid; text-align: right; }.detail-total span,.detail-total small { color: var(--muted); font-size: .65rem; }.detail-total strong { margin: 5px 0; font: 800 1.55rem "Manrope",sans-serif; color: var(--gold-light); }
.order-item { padding: 16px 20px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.order-item > div { display: grid; gap: 4px; }.order-item > div:last-child { text-align: right; }.order-item strong { font-size: .75rem; }.order-item span { color: var(--muted); font-size: .64rem; }
.totals { padding: 14px 20px 18px; }.totals > div { min-height: 30px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .66rem; }.totals .grand { margin-top: 7px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-size: .78rem; }.totals .grand strong { color: var(--gold-light); }
.ticket-list { padding: 12px 20px 18px; display: grid; gap: 8px; }.issued-ticket { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 10px; }.issued-ticket > div { display: grid; gap: 3px; }.issued-ticket > div:last-child { justify-items: end; }.issued-ticket strong { font-size: .7rem; }.issued-ticket span,.issued-ticket small { color: var(--muted); font-size: .59rem; }
.info-list { padding: 10px 20px 18px; }.info-list > div { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: .67rem; }.info-list > div:last-child { border: 0; }.info-list > div > span:first-child { color: var(--muted); }.info-list strong { text-align: right; }
.user-cell { min-width: 190px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }.muted { color: var(--muted); }
.role-select-list { padding: 16px 20px; display: grid; gap: 8px; }
.role-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }.role-card { padding: 19px; }.role-card-head { display: flex; justify-content: space-between; gap: 12px; }.role-card-head > div { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; }.role-card-head h2 { margin: 0; font: 700 .85rem "Manrope",sans-serif; }.role-card-head small { color: var(--muted); font-size: .6rem; }.role-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-light); background: rgba(217,180,74,.08); border: 1px solid rgba(217,180,74,.18); font-size: .68rem; font-weight: 800; }.role-card > p { min-height: 38px; margin: 17px 0; color: var(--muted); font-size: .66rem; }.role-stats { display: flex; gap: 18px; color: var(--muted); font-size: .62rem; }.role-stats strong { color: var(--text); }.role-actions { margin-top: 18px; padding-top: 15px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.permission-groups { padding: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.permission-group { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }.permission-group-head { min-height: 58px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.018); border-bottom: 1px solid var(--line); }.permission-group-head > div { display: grid; }.permission-group-head strong { font-size: .72rem; }.permission-group-head small { color: var(--muted); font-size: .58rem; }.switch-line { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .58rem; }.switch-line input { width: 14px; height: 14px; accent-color: var(--gold); }.permission-list { display: grid; }.permission-item { padding: 12px 14px; display: grid; grid-template-columns: 16px 1fr; gap: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }.permission-item:last-child { border: 0; }.permission-item:hover { background: rgba(255,255,255,.015); }.permission-item input { width: 15px; height: 15px; accent-color: var(--gold); }.permission-item span { min-width: 0; display: grid; }.permission-item strong { font-size: .66rem; }.permission-item small { margin-top: 2px; color: var(--muted); font-size: .57rem; }.permission-item code { margin-top: 5px; color: #777970; font-size: .54rem; }
.narrow-form { max-width: 760px; margin-inline: auto; }
.report-filter { align-items: end; }.report-filter .field { width: 190px; }.report-filter input { min-width: 0; }
.checkin-layout { max-width: 920px; margin-inline: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }.checkin-search { padding: 28px; }.scan-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: var(--gold-light); background: rgba(217,180,74,.08); border: 1px solid rgba(217,180,74,.2); font-size: 1.5rem; }.checkin-search h2 { margin: 20px 0 5px; font: 800 1.3rem "Manrope",sans-serif; }.checkin-search > p { margin: 0 0 24px; color: var(--muted); font-size: .7rem; }.checkin-search form { display: grid; gap: 13px; }.checkin-result { padding: 28px; }.result-state { min-height: 180px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed var(--line); border-radius: 13px; }.result-state > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; font-size: 1.45rem; font-weight: 800; }.result-state h2 { margin: 14px 0 3px; font: 800 1.15rem "Manrope",sans-serif; }.result-state p { margin: 0; color: var(--muted); font-size: .68rem; }.result-state.valid > span { color: #14251a; background: var(--success); }.result-state.invalid > span { color: #2d1111; background: var(--danger); }.result-state.neutral > span { color: var(--gold-light); background: rgba(217,180,74,.1); }
.compact-grid { padding: 0; }
.branding-grid { padding:20px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.branding-upload-card { padding:18px; display:grid; align-content:start; gap:16px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.015); }
.branding-upload-card h3 { margin:0 0 5px; font:700 .82rem "Manrope",sans-serif; }.branding-upload-card p { margin:0; color:var(--muted); font-size:.64rem; line-height:1.55; }
.branding-preview { min-height:150px; padding:24px; display:grid; place-items:center; overflow:hidden; border-radius:12px; }
.branding-preview.light { background:#fff; }.branding-preview.dark { background:radial-gradient(circle at 70% 0,rgba(124,58,237,.28),transparent 18rem),#080d2d; }
.branding-preview img { width:min(280px,100%); max-height:100px; object-fit:contain; }
.branding-preview.favicon { width:120px; min-height:120px; padding:25px; background:linear-gradient(145deg,#fff,#e9ecf8); }.branding-preview.favicon img { width:64px; height:64px; }
.favicon-card { grid-column:span 2; grid-template-columns:120px 1fr minmax(240px,.7fr); align-items:center; }
.camera-scanner { margin-bottom: 18px; overflow: hidden; }
.scanner-connection { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .62rem; font-weight: 700; }
.scanner-connection.active { color: #aef0c6; border-color: rgba(101,211,148,.24); background: rgba(101,211,148,.08); }
.scanner-grid { padding: 20px; display: grid; grid-template-columns: minmax(300px,1.3fr) minmax(260px,.7fr); gap: 20px; }
.scanner-viewport { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #050605; }
.scanner-viewport video { width: 100%; height: 100%; min-height: 360px; display: block; object-fit: cover; }
.scanner-frame { position: absolute; inset: 50% auto auto 50%; width: min(62%,280px); aspect-ratio: 1; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.34); pointer-events: none; }
.scanner-frame::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: var(--gold-light); box-shadow: 0 0 14px var(--gold); animation: scanner-line 1.8s ease-in-out infinite; }
@keyframes scanner-line { 0%,100% { transform: translateY(-85px); opacity:.5; } 50% { transform: translateY(85px); opacity:1; } }
.scanner-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; background: radial-gradient(circle,rgba(217,180,74,.07),transparent 55%); }
.scanner-placeholder strong { font: 700 .9rem "Manrope",sans-serif; }.scanner-placeholder span { color: var(--muted); font-size: .68rem; }
.scanner-placeholder.hidden { display: none; }
.scanner-controls { display: grid; align-content: start; gap: 15px; }
.scanner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.scanner-result { min-height: 105px; padding: 17px; display: grid; align-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.scanner-result strong { font: 800 1rem "Manrope",sans-serif; }.scanner-result span { color: var(--muted); font-size: .67rem; line-height: 1.5; }
.scanner-result.accepted { border-color: rgba(101,211,148,.34); background: rgba(101,211,148,.09); }.scanner-result.accepted strong { color: #aef0c6; }
.scanner-result.rejected { border-color: rgba(240,120,120,.34); background: rgba(240,120,120,.09); }.scanner-result.rejected strong { color: #ffc0c0; }
.scanner-note { margin: 0; color: var(--muted); font-size: .62rem; line-height: 1.55; }
.login-body { min-height: 100vh; background: #090a08; }.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }.login-copy { padding: clamp(35px,6vw,80px); display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 15% 30%,rgba(217,180,74,.14),transparent 28rem),linear-gradient(145deg,#0f100d,#090a08); border-right: 1px solid var(--line); }.login-copy > div:nth-child(2) { max-width: 650px; }.login-label { color: var(--gold-light); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }.login-copy h1 { margin: 16px 0 18px; font: 800 clamp(2.5rem,5vw,5.2rem)/1.01 "Manrope",sans-serif; letter-spacing: -.06em; }.login-copy p { max-width: 580px; margin: 0; color: #aaaBA4; font-size: .92rem; line-height: 1.75; }.login-copy > small { color: #666861; font-size: .65rem; }.login-panel { padding: 28px; display: grid; place-items: center; }.login-card { width: min(430px,100%); padding: 30px; display: grid; gap: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17,18,15,.92); box-shadow: var(--shadow); }.login-card h2 { margin: 9px 0 4px; font: 800 1.5rem "Manrope",sans-serif; }.login-card p { margin: 0; color: var(--muted); font-size: .7rem; }.check-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .66rem; }.check-line input { width: 15px; height: 15px; accent-color: var(--gold); }
@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .performance-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .form-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    body.sidebar-active .sidebar { transform: translateX(0); }
    .sidebar-close,.sidebar-open { display: inline-grid; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.58); }
    body.sidebar-active .sidebar-backdrop { display: block; }
    .admin-main { margin-left: 0; }
    .admin-topbar { padding-inline: 20px; justify-content: flex-start; }
    .topbar-actions { margin-left: auto; }
    .admin-content { padding: 22px 20px 44px; }
    .content-grid.two-one,.checkin-layout,.scanner-grid { grid-template-columns: 1fr; }
    .form-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .permission-groups { grid-template-columns: 1fr; }
    .branding-grid { grid-template-columns:1fr; }.favicon-card { grid-column:span 1; grid-template-columns:120px 1fr; }.favicon-card .field { grid-column:span 2; }
    .login-shell { grid-template-columns: 1fr; }.login-copy { min-height: 46vh; }.login-copy h1 { max-width: 700px; }.login-panel { padding-block: 45px; }
}
@media (max-width: 640px) {
    .admin-topbar { min-height: 72px; padding: 12px 14px; }.page-heading p { display: none; }.admin-content { padding: 16px 12px 38px; }
    .topbar-actions .date-chip { display: none; }.button { min-height: 39px; padding-inline: 12px; }
    .metric-grid,.metric-grid.four,.performance-grid,.role-grid { grid-template-columns: 1fr; }.metric-card { min-height: 120px; }
    .filter-bar { align-items: stretch; flex-direction: column; }.filter-bar select,.filter-bar > input,.search-input,.report-filter .field { width: 100%; min-width: 0; }
    .form-grid.two,.form-grid.three,.form-grid.four { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.form-grid { padding: 16px; }.panel-head { padding-inline: 16px; align-items: flex-start; flex-direction: column; }
    .ticket-row .form-grid { grid-template-columns: 1fr; }.form-actions { flex-direction: column-reverse; }.form-actions .button { width: 100%; }
    .danger-zone,.detail-hero,.order-item { align-items: stretch; flex-direction: column; }.detail-total,.order-item > div:last-child { text-align: left; }
    .permission-group-head { align-items: flex-start; flex-direction: column; }.role-actions { flex-wrap: wrap; }
    .login-copy { padding: 35px 24px; }.login-copy h1 { font-size: 2.5rem; }.login-panel { padding: 30px 14px; }.login-card { padding: 24px 20px; }
    .scanner-grid { padding: 12px; }.scanner-viewport,.scanner-viewport video { min-height: 310px; }.scanner-actions { grid-template-columns: 1fr; }
    .branding-grid { padding:14px; }.favicon-card { grid-template-columns:1fr; }.favicon-card .field { grid-column:span 1; }.branding-preview.favicon { width:100%; }
}
