@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  color-scheme: dark;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #090a12;
  color: #eef0ff;
  --ink: #eef0ff;
  --muted: #9ba1bb;
  --quiet: #6d728d;
  --panel: #121420;
  --panel-raised: #181a29;
  --line: rgba(164, 145, 255, .18);
  --line-strong: rgba(175, 153, 255, .36);
  --violet: #8b69ff;
  --violet-soft: #c7b7ff;
  --cyan: #62d9ff;
  --green: #42d995;
  --danger: #ff617d;
  --danger-deep: #c93758;
  --shadow: 0 24px 60px rgba(0, 0, 0, .32);
}

/* Material Symbols font setup */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 17px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  pointer-events: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: #090a12; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
h1, h2, p { margin-top: 0; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
h1, h2 { letter-spacing: -.03em; }
button, input, textarea, select { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 0; border-radius: 8px; padding: 0 15px; background: linear-gradient(135deg, #9a79ff, #6444ed); color: #fff; cursor: pointer; font-weight: 800; letter-spacing: .01em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
button:hover { box-shadow: 0 7px 20px rgba(113, 79, 241, .26); transform: translateY(-1px); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button.secondary { border: 1px solid rgba(182, 164, 255, .22); background: rgba(255, 255, 255, .035); color: #d8d1ff; }
button.secondary:hover { border-color: rgba(182, 164, 255, .5); background: rgba(141, 105, 255, .16); }
button.danger { border: 1px solid rgba(255, 97, 125, .35); background: rgba(255, 97, 125, .13); color: #ffc1cc; }
button.danger:hover { border-color: rgba(255, 97, 125, .75); background: rgba(255, 97, 125, .22); box-shadow: none; }
button:disabled, button[disabled] { opacity: .36 !important; cursor: not-allowed !important; pointer-events: none !important; transform: none !important; box-shadow: none !important; }

.eyebrow { margin-bottom: 8px; color: var(--violet-soft); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.muted, .command-copy { color: var(--muted); line-height: 1.55; }
.alert, .notice { margin: 18px 0; border: 1px solid; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.alert { border-color: rgba(255, 97, 125, .35); background: rgba(255, 97, 125, .11); color: #ffc4cf; }
.notice { border-color: rgba(66, 217, 149, .3); background: rgba(66, 217, 149, .1); color: #b8f5d7; }

/* Login */
.admin-auth { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 18% 18%, rgba(107, 70, 232, .28), transparent 30rem), radial-gradient(circle at 88% 88%, rgba(49, 192, 255, .11), transparent 28rem), #090a12; }
.auth-stage { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.auth-stage::before, .auth-stage::after { position: absolute; width: 38vw; height: 38vw; min-width: 320px; min-height: 320px; border: 1px solid rgba(157, 131, 255, .12); content: ""; transform: rotate(45deg); }
.auth-stage::before { top: -21vw; right: -15vw; }
.auth-stage::after { bottom: -24vw; left: -17vw; }
.auth-card { position: relative; z-index: 1; width: min(440px, 100%); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; padding: 36px; background: linear-gradient(145deg, rgba(29, 31, 47, .98), rgba(13, 14, 23, .98)); box-shadow: var(--shadow); }
.auth-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); content: ""; }
.auth-card h1 { margin-bottom: 11px; font-size: clamp(28px, 5vw, 35px); line-height: 1.04; }
.auth-card .muted { margin-bottom: 28px; font-size: 14px; }
.auth-brand { display: flex; align-items: center; margin-bottom: 22px; }
.auth-brand-logo { width: 68px; height: 68px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(182, 164, 255, .35); box-shadow: 0 8px 24px rgba(113, 79, 241, .3); }
.auth-form { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: #d9dcf0; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
input, textarea { width: 100%; border: 1px solid rgba(182, 164, 255, .23); border-radius: 8px; background: rgba(4, 5, 11, .46); color: var(--ink); outline: none; }
input { height: 44px; padding: 0 12px; }
textarea { min-height: 118px; padding: 11px 12px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 105, 255, .15); }
.auth-form button { margin-top: 4px; min-height: 48px; font-size: 15px; }

/* Dashboard frame */
.admin-dashboard { min-height: 100vh; background: radial-gradient(circle at 72% -15%, rgba(75, 55, 196, .21), transparent 31rem), radial-gradient(circle at 4% 60%, rgba(32, 146, 209, .09), transparent 30rem), #090a12; }
.admin-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; padding: 17px max(24px, calc((100% - 1560px) / 2)); border-bottom: 1px solid var(--line); background: rgba(11, 11, 21, .89); box-shadow: 0 10px 35px rgba(0, 0, 0, .18); }
.admin-header::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: linear-gradient(90deg, transparent 4%, var(--cyan), var(--violet), transparent 96%); content: ""; opacity: .75; }
.admin-brand, .admin-header-actions, .operator, .toolbar-group { display: flex; align-items: center; }
.admin-brand { gap: 14px; }
.admin-header h1 { margin: 0; font-size: 23px; line-height: 1.05; }
.admin-header .eyebrow { margin: 0 0 5px; }
.admin-brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; padding: 3px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(182, 164, 255, .28); box-shadow: 0 4px 14px rgba(113, 79, 241, .22); transition: transform .2s ease, box-shadow .2s ease; flex-shrink: 0; }
.admin-brand-logo:hover { transform: scale(1.05) rotate(-3deg); box-shadow: 0 6px 18px rgba(113, 79, 241, .35); }
.admin-header-actions { gap: 13px; position: relative; }
.user-dropdown-wrapper { position: relative; display: inline-block; }
.operator-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(182, 164, 255, .24); border-radius: 9px; background: rgba(255, 255, 255, .04); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13.5px; font-weight: 750; cursor: pointer; transition: all .18s ease; width: 100%; white-space: nowrap; }
.operator-btn:hover, .operator-btn.active { border-color: var(--violet); background: rgba(139, 105, 255, .15); box-shadow: 0 4px 16px rgba(113, 79, 241, .2); }
.operator-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px rgba(66, 217, 149, .9); flex-shrink: 0; }
.dropdown-chevron { font-size: 18px; color: var(--violet-soft); transition: transform .2s ease; margin-left: 2px; }
.operator-btn.active .dropdown-chevron { transform: rotate(180deg); }
.user-dropdown-menu { position: absolute; left: 0; right: 0; width: 100%; top: calc(100% + 6px); z-index: 100; padding: 0; border: 0; border-radius: 9px; background: transparent; box-shadow: none; display: none; }
.user-dropdown-menu.show { display: block; animation: dropdownFade .18s ease; }
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-logout-form { margin: 0; width: 100%; }
.dropdown-item { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 97, 125, .35); border-radius: 9px; background: #181120; color: #ffc1cc; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13.5px; font-weight: 750; text-align: center; cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.dropdown-item .material-symbols-outlined { font-size: 17px; }
.dropdown-item:hover { border-color: rgba(255, 97, 125, .75); background: rgba(255, 97, 125, .22); color: #fff; box-shadow: 0 8px 26px rgba(255, 97, 125, .2); }
.signout { min-height: 36px; padding: 0 12px; font-size: 12px; }
.refresh-btn { text-decoration: none; }

.admin-main { width: min(1560px, calc(100% - 48px)); margin: 20px auto 50px; }

/* Orders table */
.table-card { overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15, 16, 27, .92); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 24px 28px 21px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(125, 95, 242, .09), transparent 48%); }
.command-deck-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; padding: 20px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, rgba(25, 27, 43, .96), rgba(14, 15, 25, .93)); }
.command-deck-heading::before { position: absolute; top: -80px; right: 25%; width: 200px; height: 200px; border: 1px solid rgba(97, 217, 255, .14); border-radius: 50%; box-shadow: 0 0 0 22px rgba(97, 217, 255, .025), 0 0 0 44px rgba(97, 217, 255, .02); content: ""; }
.command-deck-heading::after { position: absolute; right: 0; bottom: 0; width: 40%; height: 100%; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(179, 155, 255, .025) 14px 15px); content: ""; }
.command-deck-heading > * { position: relative; z-index: 1; }
.command-deck-heading h2 { margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.15; font-weight: 800; }
.command-deck-heading .eyebrow { margin-bottom: 4px; font-size: 9.5px; }
.command-deck-heading .heading-title-group { margin-bottom: 5px; }
.command-copy { max-width: 650px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.capture-meter { display: grid; min-width: 150px; gap: 2px; border-left: 1px solid rgba(167, 144, 255, .34); padding: 2px 0 2px 20px; }
.capture-meter span, .capture-meter small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.capture-meter strong { color: #fff; font-size: 32px; line-height: 1; font-weight: 800; }
.capture-meter small { color: var(--cyan); font-size: 9.5px; letter-spacing: .05em; }

.heading-title-group { display: flex; align-items: center; gap: 12px; }
.heading-refresh-btn { min-height: 30px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(182, 164, 255, .25); background: rgba(255, 255, 255, .04); color: #d8d1ff; font-weight: 800; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.heading-refresh-btn:hover { border-color: rgba(182, 164, 255, .55); background: rgba(141, 105, 255, .18); color: #fff; transform: translateY(-1px); }
.heading-refresh-btn .material-symbols-outlined { font-size: 15px; }
.section-heading h2 { margin: 0; font-size: 23px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading .muted { max-width: 470px; margin: 0; font-size: 13px; text-align: right; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(5, 6, 13, .26); }
.toolbar-group { gap: 8px; }
.admin-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 7px; font-size: 12px; }
.admin-toolbar button .material-symbols-outlined { font-size: 16px; }
.toolbar-label { margin-right: 2px; color: var(--quiet); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
#orders-form { display: block; }
.table-scroll { overflow-x: auto; scrollbar-color: #655ca0 #0d0e18; scrollbar-width: thin; }
.orders-table { width: 100%; min-width: 1140px; border-collapse: separate; border-spacing: 0; }
.orders-table th { position: sticky; top: 0; z-index: 1; padding: 14px 13px; border-bottom: 1px solid var(--line); background: #141622; color: #b3b8d4; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
.orders-table td { position: relative; padding: 17px 13px; border-bottom: 1px solid rgba(164, 145, 255, .1); color: #e7e9f6; font-size: 13px; line-height: 1.42; vertical-align: top; transition: background .16s ease; }
.orders-table tbody tr { background: rgba(255, 255, 255, .008); transition: transform .18s ease, background .18s ease; }
.orders-table tbody tr:nth-child(even) { background: rgba(92, 78, 160, .045); }
.orders-table tbody tr:hover { background: linear-gradient(90deg, rgba(95, 72, 201, .18), rgba(71, 208, 255, .035)); }
.orders-table tbody tr:hover td:first-child::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); content: ""; }
.orders-table tbody tr:last-child td { border-bottom: 0; }
.orders-table code, .mono-value { color: #d6ccff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.select-cell { width: 40px; min-width: 40px; text-align: center !important; }
.select-cell input, .checkbox-field input { width: 16px; height: 16px; margin: 0; accent-color: var(--violet); cursor: pointer; }
.num-col { width: 36px; min-width: 36px; text-align: center !important; color: var(--quiet); font-size: 10px; font-weight: 900; }
.num-cell { width: 36px; min-width: 36px; text-align: center !important; color: #8e95b7; font-size: 12px; font-weight: 750; font-family: 'Plus Jakarta Sans', sans-serif; user-select: none; }
.sortable-th { cursor: pointer; user-select: none; transition: background .15s ease, color .15s ease; }
.sortable-th:hover { background: rgba(139, 105, 255, .1) !important; color: #fff !important; }
.th-content { display: inline-flex; align-items: center; gap: 5px; }
.sort-icon { font-size: 15px; opacity: .45; transition: opacity .15s ease, color .15s ease; vertical-align: middle; }
.sortable-th:hover .sort-icon { opacity: .85; }
.sortable-th.sort-asc .sort-icon, .sortable-th.sort-desc .sort-icon { opacity: 1; color: var(--cyan); }
.record-id, .cell-label, .ign-label { display: block; margin-bottom: 5px; color: var(--quiet); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ign-value + .ign-label, .ign-value + .cell-label, .main-value + .cell-label { margin-top: 9px; }
.contact-time-cell { min-width: 190px; }
.contact-time-cell .main-value { margin-bottom: 7px; }
.contact-time-cell time { display: block; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600; white-space: nowrap; }
.contact-time-cell time span { display: block; }
.bind-cell { min-width: 280px; max-width: 360px; }
.bind-card { display: flex; flex-direction: column; gap: 6px; }
.bind-list { display: flex; flex-direction: column; gap: 4px; }
.bind-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 6px; background: rgba(98, 217, 255, .06); border: 1px solid rgba(98, 217, 255, .22); }
.bind-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 850; color: #7de2ff; letter-spacing: .02em; white-space: nowrap; flex-shrink: 0; }
.bind-logo { display: inline-block; width: 15px; height: 15px; border-radius: 3px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.bind-logo--apple { border-radius: 50%; object-fit: cover; }
.bind-logo--tiktok { width: 17px; height: 17px; margin-left: -1px; transform: scale(1.12); transform-origin: center center; }
.bind-logo--whatsapp { width: 16px; height: 16px; margin-left: -2px; transform: scale(1.08); transform-origin: center center; }
.bind-value { font-size: 11.5px; font-weight: 750; color: #fff; text-align: right; overflow-wrap: anywhere; font-family: 'Plus Jakarta Sans', monospace; }
.bind-none { display: block; font-size: 11px; color: var(--quiet); font-style: italic; }
.bind-devices { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 1px; }
.bind-device-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; background: rgba(139, 105, 255, .12); border: 1px solid rgba(139, 105, 255, .24); color: #d8d1ff; font-size: 10.5px; font-weight: 750; }
.bind-device-tag .material-symbols-outlined { font-size: 13px; color: var(--cyan); }
.bind-device-tag strong { color: #fff; font-weight: 850; }
.bind-unlinked { font-size: 10px; line-height: 1.35; color: var(--quiet); overflow-wrap: anywhere; }
.bind-unlinked-title { color: var(--muted); font-weight: 800; }
.payload { margin-top: 2px; }
.payload summary { color: var(--violet-soft); cursor: pointer; font-size: 10px; font-weight: 800; transition: color .15s ease; }
.payload summary:hover { color: #fff; }
.payload pre { max-width: 100%; max-height: 160px; overflow: auto; margin: 6px 0 0; border: 1px solid rgba(164, 145, 255, .18); border-radius: 6px; padding: 8px 10px; background: rgba(4, 5, 12, .85); color: #cdd1ea; font: 10.5px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; max-width: 150px; overflow: hidden; border: 1px solid rgba(66, 217, 149, .27); border-radius: 999px; padding: 3px 7px; background: rgba(66, 217, 149, .09); color: #9af0c6; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.reference-cell code { display: block; margin-bottom: 8px; font-family: 'Plus Jakarta Sans', sans-serif; }
.reference-cell .cell-label + code { margin-bottom: 12px; }
.account-id { display: block; margin-bottom: 11px; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.account-id span { color: #fff; font-weight: 800; }
.ign-value { display: block; max-width: 180px; overflow: hidden; color: #7de2ff; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.region-value { display: inline-flex; align-items: center; gap: 6px; }
.region-flag { display: inline-block; width: 18px; height: 13px; object-fit: cover; border-radius: 2px; border: 0; outline: none; box-shadow: none; vertical-align: middle; flex-shrink: 0; }
.main-value { display: block; margin-bottom: 6px; color: #f2f3ff; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.detail-line { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.network-cell { min-width: 240px; max-width: 340px; }
.network-ip-row { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.network-ip { color: #8fdfff !important; font-size: 13px !important; font-weight: 800 !important; font-family: 'Plus Jakarta Sans', monospace !important; }
.network-location { color: #fff !important; font-weight: 750; font-size: 11.5px; margin-bottom: 3px; }
.network-asn { color: #cdd1ea; font-size: 10.5px; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.asn-tag { display: inline-block; padding: 1px 5px; border-radius: 4px; background: rgba(98, 217, 255, .12); border: 1px solid rgba(98, 217, 255, .25); color: #8fdfff; font-size: 9.5px; font-weight: 850; }
.network-coords { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--quiet); margin-bottom: 4px; }
.map-link { display: inline-flex; align-items: center; gap: 2px; color: #ff9d5c; font-size: 10px; font-weight: 800; text-decoration: none; padding: 1px 6px; border-radius: 4px; background: rgba(255, 157, 92, .1); border: 1px solid rgba(255, 157, 92, .25); transition: background .15s ease, color .15s ease; }
.map-link:hover { color: #fff; background: rgba(255, 157, 92, .22); text-decoration: none; }
.map-link .material-symbols-outlined { font-size: 11px; vertical-align: middle; }
.network-threat-badges { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.threat-pill { display: inline-flex; align-items: center; padding: 1.5px 5.5px; border-radius: 4px; font-size: 9.5px; font-weight: 850; letter-spacing: .02em; }
.threat-pill--safe { background: rgba(66, 217, 149, .09); border: 1px solid rgba(66, 217, 149, .24); color: #8eedbe; }
.threat-pill--warn { background: rgba(255, 184, 77, .12); border: 1px solid rgba(255, 184, 77, .3); color: #ffd188; }
.threat-pill--danger { background: rgba(255, 97, 125, .14); border: 1px solid rgba(255, 97, 125, .35); color: #ff9eb0; }
.threat-pill--score { background: rgba(139, 105, 255, .14); border: 1px solid rgba(139, 105, 255, .28); color: #d8d1ff; }
.actions-column { width: 96px; }
.row-actions { min-width: 82px; }
.row-actions .table-action { display: flex; }
.row-actions > * + * { margin-top: 6px; }
.table-action { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(182, 164, 255, .26); border-radius: 6px; padding: 0 9px; background: rgba(255, 255, 255, .025); color: #d8d1ff; font-size: 11px; font-weight: 850; text-decoration: none; transition: .16s ease; }
.table-action .material-symbols-outlined { font-size: 15px; }
.table-action:hover { border-color: var(--violet); background: rgba(139, 105, 255, .15); color: #fff; }
.row-actions button { min-height: 30px; padding: 0 9px; font: inherit; width: 100%; }
.danger-link { border-color: rgba(255, 97, 125, .31); color: #ffb4c3; }
.danger-link:hover { border-color: rgba(255, 97, 125, .72); background: rgba(255, 97, 125, .13); box-shadow: none; }
.empty { padding: 46px !important; color: var(--muted) !important; font-size: 14px !important; text-align: center; }
.empty-sigil { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border: 1px solid var(--violet); border-radius: 50%; box-shadow: 0 0 13px var(--violet); }

/* Delete confirmation */
.admin-confirm[hidden] { display: none; }
.admin-confirm { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 4, 10, .72); backdrop-filter: blur(7px); }
.admin-confirm__dialog { position: relative; width: min(460px, 100%); overflow: hidden; border: 1px solid rgba(255, 97, 125, .32); border-radius: 16px; padding: 25px; background: linear-gradient(145deg, rgba(29, 22, 34, .98), rgba(16, 17, 28, .99)); box-shadow: 0 28px 72px rgba(0, 0, 0, .55), 0 0 0 1px rgba(164, 145, 255, .08) inset; animation: admin-confirm-enter .18s ease-out; }
.admin-confirm__dialog::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--danger), #ff9aaf 48%, var(--violet)); content: ""; }
.admin-confirm__heading { display: flex; align-items: center; gap: 13px; }
.admin-confirm__heading .eyebrow { margin: 0 0 4px; color: #ff9caf; font-size: 9px; }
.admin-confirm__heading h2 { margin: 0; color: #fff; font-size: 21px; line-height: 1.12; }
.admin-confirm__icon { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(255, 97, 125, .36); border-radius: 12px; background: rgba(255, 97, 125, .11); color: #ff9caf; font-size: 20px; }
.admin-confirm__message { margin: 19px 0 23px; color: #c3c7dc; font-size: 13px; line-height: 1.6; }
.admin-confirm__actions { display: flex; justify-content: flex-end; gap: 9px; }
.admin-confirm__actions button { min-height: 38px; border-radius: 8px; padding: 0 14px; font-size: 12px; }
.admin-confirm__cancel { border: 1px solid rgba(182, 164, 255, .25); background: rgba(255, 255, 255, .035); color: #d8d1ff; }
.admin-confirm__cancel:hover { border-color: rgba(182, 164, 255, .55); background: rgba(141, 105, 255, .15); box-shadow: none; }
.admin-confirm__delete { border: 1px solid rgba(255, 97, 125, .54); background: linear-gradient(135deg, #dc4967, #b82f4d); color: #fff; box-shadow: 0 8px 20px rgba(201, 55, 88, .22); }
.admin-confirm__delete:hover { border-color: #ff9caf; background: linear-gradient(135deg, #ed5e7a, #c93758); box-shadow: 0 9px 24px rgba(201, 55, 88, .34); }
.admin-confirm__delete .material-symbols-outlined { font-size: 16px; }
@keyframes admin-confirm-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Record editor */
.edit-card { border-color: rgba(96, 214, 255, .28); }
.edit-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 23px 28px 28px; }
.edit-form__wide { grid-column: 1 / -1; }
.checkbox-field { display: flex; align-items: center; gap: 9px; }
.checkbox-field input { flex: 0 0 auto; }

@media (max-width: 900px) {
  .admin-header { align-items: flex-start; flex-direction: column; padding: 18px 20px; }
  .admin-header-actions { width: 100%; justify-content: space-between; }
  .admin-main { width: min(100% - 28px, 1560px); margin-top: 16px; }
  .command-deck-heading { align-items: flex-start; flex-direction: column; padding: 22px 20px; gap: 16px; }
  .capture-meter { min-width: 0; width: 100%; border-top: 1px solid rgba(167, 144, 255, .34); border-left: 0; padding: 14px 0 0; }
  .section-heading { align-items: flex-start; flex-direction: column; padding: 20px; }
  .section-heading .muted { text-align: left; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group { flex-wrap: wrap; }
  .edit-form { grid-template-columns: 1fr; padding: 20px; }
}

@media (max-width: 560px) {
  .auth-stage { padding: 14px; }
  .auth-card { border-radius: 14px; padding: 28px 23px; }
  .admin-header-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .admin-header-actions form { width: 100%; }
  .signout { width: 100%; }
  .command-deck-heading { padding: 18px 16px; }
  .section-heading { padding: 18px; }
  .toolbar-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-label { grid-column: 1 / -1; }
  .admin-toolbar button { width: 100%; }
}