/* Luma TV 2026 UI system. Loaded after the legacy sheet while the interface is
   incrementally componentized. This file is the single source of truth for
   layout, interaction states, accessibility and responsive behavior. */
:root {
  --bg: #080b10;
  --bg-elevated: #0c1118;
  --surface: #0f151e;
  --surface-2: #141c27;
  --surface-3: #192331;
  --surface-hover: #1d2937;
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(148, 163, 184, .28);
  --text: #f4f7fb;
  --text-2: #c5cfdd;
  --muted: #8492a6;
  --subtle: #59677a;
  --accent: #39d98a;
  --accent-strong: #20bd73;
  --accent-soft: rgba(57, 217, 138, .12);
  --blue: #6ea8fe;
  --warning: #f8c15c;
  --danger: #ff7181;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .18);
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
  --sidebar-expanded: 264px;
  --sidebar-collapsed: 80px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -10%, rgba(57,217,138,.07), transparent 30rem),
    radial-gradient(circle at 10% 100%, rgba(72,117,255,.05), transparent 28rem),
    var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.hidden, [hidden] { display: none !important; }
html:not([data-actor-role="super_admin"]) [data-super-admin-only] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
:focus-visible { outline: 2px solid #78e8b1 !important; outline-offset: 3px; }
::selection { color: #04110a; background: #76e9b2; }

/* Shell and sidebar */
.app-shell {
  min-height: 100dvh !important;
  display: grid !important;
  grid-template-columns: var(--sidebar-expanded) minmax(0, 1fr) !important;
  transition: grid-template-columns .22s cubic-bezier(.2,.75,.2,1);
}
.sidebar.premium-sidebar {
  position: sticky !important;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 100% !important;
  height: 100dvh;
  min-width: 0;
  padding: 14px 12px 12px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 10px;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  background: rgba(10, 14, 20, .96) !important;
  box-shadow: none !important;
  backdrop-filter: blur(24px);
}
.sidebar-head {
  min-width: 0;
  height: 52px;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0 !important;
}
.premium-sidebar .brand { min-width: 0; padding: 0 !important; gap: 10px !important; }
.brand-logo-sidebar { width: 36px !important; height: 36px !important; object-fit: contain; }
.premium-sidebar .brand-copy { min-width: 0; display: grid !important; line-height: 1.05; }
.premium-sidebar .brand strong { color: #f7d784 !important; font-size: 16px !important; letter-spacing: -.01em !important; }
.premium-sidebar .brand span { margin-top: 4px; color: #79879a !important; font-size: 9px !important; font-weight: 800; letter-spacing: .16em !important; }
.sidebar-collapse {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  color: var(--muted) !important;
  background: var(--surface) !important;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.sidebar-collapse:hover { color: var(--text) !important; border-color: var(--line-strong) !important; background: var(--surface-2) !important; }
.sidebar-collapse svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.premium-sidebar nav {
  min-height: 0;
  padding: 2px 1px 8px !important;
  display: block !important;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.premium-sidebar nav::-webkit-scrollbar { display: none; }
.nav-group { margin: 0 0 10px !important; padding: 0 0 9px !important; border-bottom: 1px solid rgba(148,163,184,.08) !important; }
.nav-group:last-child { margin-bottom: 0 !important; border: 0 !important; }
.nav-label { margin: 0 10px 5px !important; color: #566477 !important; font-size: 9px !important; font-weight: 850 !important; letter-spacing: .15em !important; }
.premium-sidebar .nav-item {
  width: 100%;
  min-height: 42px !important;
  margin: 2px 0;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: #a7b2c1 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 680 !important;
  text-align: left;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease !important;
}
.premium-sidebar .nav-item:hover { color: #f4f7fb !important; background: rgba(255,255,255,.045) !important; border-color: rgba(148,163,184,.08) !important; transform: translateX(2px) !important; }
.premium-sidebar .nav-item.active { color: #e9fff4 !important; border-color: rgba(57,217,138,.18) !important; background: linear-gradient(90deg, rgba(57,217,138,.15), rgba(57,217,138,.055)) !important; box-shadow: inset 2px 0 #39d98a !important; }
.premium-sidebar .nav-item span { width: 22px !important; min-width: 22px !important; display: grid !important; place-items: center; color: #79879a !important; }
.premium-sidebar .nav-item.active span { color: #64e6a5 !important; }
.premium-sidebar .nav-item svg, .sidebar-logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.premium-sidebar .nav-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit !important; }
.premium-sidebar .sidebar-footer {
  position: relative;
  z-index: 2;
  margin: 0 !important;
  padding: 10px 0 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  background: #0a0e14 !important;
  box-shadow: 0 -14px 32px #0a0e14 !important;
}
.sidebar-logout {
  min-height: 38px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #9ca8b8 !important;
  background: transparent !important;
  font-size: 11px !important;
  text-align: left;
  transition: .16s ease;
}
.sidebar-logout:hover { color: #ffd6da !important; border-color: rgba(255,113,129,.14) !important; background: rgba(255,113,129,.07) !important; }
.sidebar-logout span { width: 22px; display: grid; place-items: center; }
.sidebar-logout b { font: inherit; }

html.sidebar-collapsed .app-shell { grid-template-columns: var(--sidebar-collapsed) minmax(0,1fr) !important; }
html.sidebar-collapsed .premium-sidebar { padding-inline: 11px !important; }
html.sidebar-collapsed .brand-copy,
html.sidebar-collapsed .nav-label,
html.sidebar-collapsed .nav-item b,
html.sidebar-collapsed .sidebar-logout b { display: none !important; }
html.sidebar-collapsed .sidebar-head { justify-content: center; }
html.sidebar-collapsed .sidebar-collapse { position: absolute; top: 16px; right: -16px; z-index: 5; transform: rotate(180deg); box-shadow: var(--shadow-sm); }
html.sidebar-collapsed .premium-sidebar .nav-item { width: 44px; height: 42px; padding: 0 !important; justify-content: center; }
html.sidebar-collapsed .premium-sidebar .nav-item:hover { transform: none !important; }
html.sidebar-collapsed .sidebar-logout { padding: 0 !important; justify-content: center; }

/* Main area */
.main { min-width: 0; }
.topbar {
  position: sticky !important;
  top: 0;
  z-index: 35;
  min-height: 76px !important;
  padding: 14px clamp(18px, 2.3vw, 36px) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(8,11,16,.78) !important;
  backdrop-filter: blur(22px) saturate(140%);
}
.page-heading { min-width: 0; }
.page-heading .eyebrow { margin: 0 0 3px !important; color: #6d7b8e !important; font-size: 8px !important; font-weight: 850 !important; letter-spacing: .16em !important; }
.page-heading h2 { margin: 0 !important; color: var(--text) !important; font-size: clamp(20px, 2.2vw, 27px) !important; line-height: 1.1; letter-spacing: -.035em; }
.top-actions { min-width: 0; display: flex; align-items: center; gap: 8px !important; }
.content { width: 100%; max-width: 1760px !important; min-width: 0; margin: 0 auto !important; padding: clamp(18px,2.5vw,36px) clamp(16px,2.5vw,38px) 64px !important; }

/* Core component system */
.card, .panel, .admin-grid-panel, .settings-card, .dashboard-section {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(180deg, rgba(18,25,35,.96), rgba(13,19,27,.96)) !important;
  box-shadow: var(--shadow-sm) !important;
}
.button, .toolbar-btn, .icon-button, .mini-copy-button, .icon-action {
  min-height: 40px;
  border-radius: 10px !important;
  font-weight: 720 !important;
  transition: transform .14s ease, color .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, opacity .14s ease !important;
}
.button:hover:not(:disabled), .toolbar-btn:hover:not(:disabled), .mini-copy-button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled), .toolbar-btn:active:not(:disabled), .mini-copy-button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.button.primary, .toolbar-btn.primary {
  color: #02110a !important;
  border-color: rgba(122,240,180,.25) !important;
  background: linear-gradient(135deg,#68e5aa,#2ed17f) !important;
  box-shadow: 0 8px 22px rgba(57,217,138,.15) !important;
}
.button.primary:hover, .toolbar-btn.primary:hover { background: linear-gradient(135deg,#7cecb8,#3edb8e) !important; box-shadow: 0 10px 28px rgba(57,217,138,.22) !important; }
.button.secondary, .toolbar-btn { color: var(--text-2) !important; border: 1px solid var(--line) !important; background: var(--surface) !important; }
.button.secondary:hover, .toolbar-btn:hover { color: var(--text) !important; border-color: var(--line-strong) !important; background: var(--surface-2) !important; }
.button.ghost { color: var(--text-2) !important; border: 1px solid var(--line) !important; background: transparent !important; }
.button.danger { color: #ffb7c0 !important; border: 1px solid rgba(255,113,129,.2) !important; background: rgba(255,113,129,.08) !important; }
.icon-button { width: 40px; padding: 0 !important; display: grid !important; place-items: center; border: 1px solid var(--line) !important; color: var(--muted) !important; background: var(--surface) !important; font-size: 20px; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-button:hover { color: var(--text) !important; border-color: var(--line-strong) !important; background: var(--surface-2) !important; }
.mobile-menu { display: none !important; }

label { color: var(--text-2); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  background: #0b1119 !important;
  box-shadow: none !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease !important;
}
input:not([type="checkbox"]):not([type="radio"]), select { min-height: 42px; padding: 0 12px !important; }
textarea { padding: 11px 12px !important; line-height: 1.5; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong) !important; }
input:focus, select:focus, textarea:focus { outline: 0 !important; border-color: rgba(57,217,138,.5) !important; background: #0d151e !important; box-shadow: 0 0 0 3px rgba(57,217,138,.08) !important; }
input::placeholder, textarea::placeholder { color: #566477; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: rgba(255,113,129,.7) !important; box-shadow: 0 0 0 3px rgba(255,113,129,.08) !important; }

.metric-grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 14px !important; }
.metric { min-width: 0; padding: 19px !important; }
.metric strong { color: var(--text) !important; letter-spacing: -.04em; }
.metric span, .metric small, .muted { color: var(--muted) !important; }
.section-head { gap: 14px; }
.section-head h3 { color: var(--text) !important; letter-spacing: -.02em; }
.pill, .badge, .status-chip { border-radius: 999px !important; }
.pill.active, .status-chip.active, .badge.active { color: #8ff0be !important; border-color: rgba(57,217,138,.18) !important; background: var(--accent-soft) !important; }
.empty.card { min-height: 280px; display: grid; place-items: center; text-align: center; }
.empty.card strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 16px; }
.skeleton { overflow: hidden; position: relative; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.04),transparent); animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Tables and list performance */
.admin-grid-panel { min-width: 0; overflow: hidden !important; }
.table-wrap, .classic-table-wrap, .reseller-table-wrap, .support-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.table-wrap:hover, .classic-table-wrap:hover, .reseller-table-wrap:hover, .support-table-wrap:hover { scrollbar-color: rgba(148,163,184,.25) transparent; }
.table-wrap::-webkit-scrollbar, .classic-table-wrap::-webkit-scrollbar, .reseller-table-wrap::-webkit-scrollbar, .support-table-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
.table-wrap::-webkit-scrollbar-thumb, .classic-table-wrap::-webkit-scrollbar-thumb, .reseller-table-wrap::-webkit-scrollbar-thumb, .support-table-wrap::-webkit-scrollbar-thumb { border-radius: 99px; background: transparent; }
.table-wrap:hover::-webkit-scrollbar-thumb, .classic-table-wrap:hover::-webkit-scrollbar-thumb, .reseller-table-wrap:hover::-webkit-scrollbar-thumb, .support-table-wrap:hover::-webkit-scrollbar-thumb { background: rgba(148,163,184,.25); }
.scrollable-table { max-height: clamp(420px, 62vh, 760px); overflow-y: auto !important; scroll-behavior: smooth; }
table { width: 100%; border-collapse: separate !important; border-spacing: 0 !important; color: var(--text-2); }
thead { position: relative; z-index: 3; }
.scrollable-table thead { position: sticky !important; top: 0; z-index: 5; }
thead th { min-height: 42px; padding: 12px 14px !important; border-bottom: 1px solid var(--line) !important; color: #748297 !important; background: #101721 !important; font-size: 9px !important; font-weight: 850 !important; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
tbody td { padding: 13px 14px !important; border-bottom: 1px solid rgba(148,163,184,.08) !important; color: var(--text-2) !important; background: transparent !important; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0 !important; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: rgba(255,255,255,.022) !important; }
.classic-footer { border-top: 1px solid var(--line) !important; background: #0d131c !important; }
.users-pagination { min-width: 0; gap: 12px !important; padding: 11px 14px !important; }
.pager-page, .pager-arrow, .page-size-control select { border-color: var(--line) !important; color: var(--text-2) !important; background: var(--surface) !important; }
.pager-page.active { color: #08130d !important; border-color: var(--accent) !important; background: var(--accent) !important; }
.admin-grid-toolbar { min-width: 0; padding: 14px !important; gap: 12px !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: var(--bg-elevated) !important; box-shadow: var(--shadow-sm); }
.grid-field { min-width: 0; }
.grid-field label { color: var(--muted) !important; font-size: 10px !important; }
.grid-actions { flex-wrap: wrap; }
.mini-copy-button, .icon-action { border-color: var(--line) !important; color: var(--text-2) !important; background: var(--surface) !important; }
.classic-user strong { color: var(--text) !important; }
.classic-user small, .classic-user em { color: var(--muted) !important; }

/* Dialogs */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(0,3,8,.74); backdrop-filter: blur(8px); animation: backdrop-in .18s ease both; }
.modal {
  max-width: min(94vw, 760px) !important;
  max-height: min(92dvh, 900px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text) !important;
  background: #0d131b !important;
  box-shadow: var(--shadow) !important;
}
.modal[open], .access-create-dialog[open], .access-success-dialog[open] { animation: dialog-in .2s cubic-bezier(.2,.8,.2,1) both; }
.modal-head { padding: 19px 20px !important; border-bottom: 1px solid var(--line) !important; background: #101720 !important; }
.modal-head h3 { color: var(--text) !important; letter-spacing: -.025em; }
.modal-body { max-height: calc(92dvh - 150px); padding: 20px !important; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.22) transparent; }
.modal-actions { padding: 13px 20px !important; border-top: 1px solid var(--line) !important; background: #0b1017 !important; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* Unified M3U and MAG access creation */
.access-create-dialog {
  width: min(640px, calc(100vw - 28px));
  max-width: none;
  max-height: min(94dvh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--text);
  background: #0c1219;
  box-shadow: 0 34px 100px rgba(0,0,0,.56);
}
.access-create-form { min-width: 0; max-height: min(94dvh, 860px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; }
.access-create-header { min-width: 0; padding: 22px 24px 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #0f161f; }
.access-create-header > div:first-child { min-width: 0; }
.access-create-header > div:first-child > span { display: block; margin-bottom: 6px; color: #63e2a4; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.access-create-header h3 { margin: 0; color: var(--text); font-size: 25px; line-height: 1.08; letter-spacing: -.04em; }
.access-create-header p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.access-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; }
.access-mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #090e14; }
.access-mode-switch button { min-width: 52px; height: 31px; padding: 0 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 850; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.access-mode-switch button:hover { color: var(--text-2); }
.access-mode-switch button.active { color: #06130c; background: #55dda0; box-shadow: 0 6px 16px rgba(57,217,138,.16); }
.access-create-body { min-width: 0; min-height: 0; padding: 26px 24px 30px; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; background: #0c1219; }
.access-create-body::-webkit-scrollbar { display: none; }
.access-fields { width: 100%; max-width: 520px; margin: 0 auto; display: grid; gap: 9px; }
.access-field { min-width: 0; margin-top: 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.access-field:first-child { margin-top: 0; }
.access-field span { color: #d3dbe6; font-size: 10px; font-weight: 780; }
.access-field small { color: #66758a; font-size: 8px; font-weight: 620; text-align: right; }
.access-fields input,
.access-fields select,
.access-fields textarea { width: 100%; min-width: 0; border: 1px solid var(--line) !important; border-radius: 11px !important; color: var(--text) !important; background: #101822 !important; box-shadow: none !important; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.access-fields input,
.access-fields select { height: 47px !important; padding: 0 13px !important; }
.access-fields textarea { min-height: 68px; padding: 11px 13px !important; resize: vertical; }
.access-fields input:hover,
.access-fields select:hover,
.access-fields textarea:hover { border-color: var(--line-strong) !important; background: #121b26 !important; }
.access-fields input:focus,
.access-fields select:focus,
.access-fields textarea:focus { border-color: rgba(57,217,138,.55) !important; background: #111b25 !important; box-shadow: 0 0 0 3px rgba(57,217,138,.08) !important; }
.access-fields input[aria-invalid="true"] { border-color: rgba(255,113,129,.65) !important; box-shadow: 0 0 0 3px rgba(255,113,129,.08) !important; }
.access-input-action { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.access-input-action button { min-width: 84px; border: 1px solid rgba(57,217,138,.2); border-radius: 10px; color: #7debb5; background: rgba(57,217,138,.065); font-size: 9px; font-weight: 800; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.access-input-action button:hover { border-color: rgba(57,217,138,.4); background: rgba(57,217,138,.11); transform: translateY(-1px); }
.access-input-action button:active { transform: translateY(0); }
.access-select { position: relative; min-width: 0; }
.access-select::after { content: ""; position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border-right: 1.5px solid #7f8da0; border-bottom: 1.5px solid #7f8da0; transform: translateY(-70%) rotate(45deg); pointer-events: none; transition: transform .16s ease, border-color .16s ease; }
.access-select:focus-within::after { border-color: #71e8ae; transform: translateY(-35%) rotate(225deg); }
.access-select select { padding-right: 38px !important; appearance: none; cursor: pointer; }
.access-select option,
.access-select optgroup { color: #e7edf5; background: #111923; }
.access-device-field { min-width: 0; display: grid; gap: 9px; }
.access-create-footer { min-height: 70px; padding: 13px 24px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #090e14; }
.access-create-footer .button { min-width: 112px; }

.access-success-dialog { width: min(500px, calc(100vw - 28px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--text); background: #0d141d; box-shadow: 0 34px 100px rgba(0,0,0,.58); }
.access-success-shell { position: relative; padding: 34px 30px 28px; text-align: center; }
.access-success-close { position: absolute; top: 14px; right: 14px; }
.access-success-mark { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #06150d; background: linear-gradient(135deg,#78ebb5,#3bd78a); box-shadow: 0 0 0 9px rgba(57,217,138,.055); font-size: 20px; font-weight: 900; animation: success-pop .35s .06s cubic-bezier(.2,1.5,.3,1) both; }
@keyframes success-pop { from { opacity: 0; transform: scale(.55) rotate(-10deg); } to { opacity: 1; transform: none; } }
.access-success-kicker { color: #64e3a5; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.access-success-shell h3 { margin: 7px 0 0; color: var(--text); font-size: 24px; letter-spacing: -.04em; }
.access-success-shell > p { margin: 6px 0 20px; color: var(--muted); font-size: 10px; }
.access-success-details { margin: 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.access-success-details div { min-width: 0; padding: 10px 2px; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 14px; text-align: left; }
.access-success-details dt { color: var(--muted); font-size: 9px; }
.access-success-details dd { min-width: 0; margin: 0; overflow: hidden; color: var(--text-2); font: 650 10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.access-success-actions { margin-top: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.access-success-actions .button { min-width: 0; }
.access-success-actions .button:last-child { grid-column: 1/-1; }
.access-success-actions .button.is-copied { color: #06130c !important; border-color: rgba(122,240,180,.4) !important; background: #68e5aa !important; box-shadow: 0 8px 24px rgba(57,217,138,.2) !important; }
.access-success-shell > .access-copy-status { min-height: 16px; margin: 10px 0 0; color: #75e9ad; font-size: 9px; font-weight: 760; }

/* Unified full-width management pages */
.management-page { width: 100%; max-width: none; min-width: 0; display: grid; gap: 14px; }
.management-page .reseller-page-head { width: 100%; max-width: none; min-width: 0; margin: 0; display: grid; gap: 14px; }
.management-page .reseller-overview-cards,
.management-page .ticket-metrics { width: 100%; max-width: none; min-width: 0; margin: 0; gap: 14px; }
.management-page .reseller-overview-cards article,
.management-page .ticket-metrics article { min-width: 0; min-height: 112px; padding: 19px !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: linear-gradient(180deg,rgba(18,25,35,.96),rgba(13,19,27,.96)) !important; box-shadow: var(--shadow-sm) !important; }
.management-page .reseller-overview-cards strong,
.management-page .ticket-metrics strong { color: var(--text) !important; font-size: 28px; letter-spacing: -.04em; }
.management-page .reseller-overview-cards span,
.management-page .ticket-metrics span { color: var(--muted); font-size: 9px; }
.management-page .reseller-overview-cards small,
.management-page .ticket-metrics small { color: var(--muted); font-size: 10px; }
.management-page .reseller-toolbar { width: 100%; max-width: none; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.management-page .reseller-panel,
.management-page .support-panel,
.management-page .management-table-panel { width: 100%; max-width: none; min-width: 0; margin: 0; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: linear-gradient(180deg,rgba(18,25,35,.96),rgba(13,19,27,.96)) !important; box-shadow: var(--shadow-sm) !important; }
.management-page .reseller-table-wrap,
.management-page .support-table-wrap { width: 100%; max-width: 100%; min-width: 0; }
.management-page .reseller-table-capacity { position: relative; min-height: 724px; background: rgba(8,13,19,.28); }
.management-page .reseller-table-empty { position: absolute; inset: 45px 0 0; min-width: 0; display: grid; place-content: center; gap: 7px; padding: 28px; color: var(--muted); text-align: center; pointer-events: none; }
.management-page .reseller-table-empty strong { color: var(--text-2); font-size: 13px; }
.management-page .reseller-table-empty span { color: var(--muted); font-size: 10px; }

.user-management-table .status-toggle.disabled { min-width: 68px; color: #fff1f3; background: linear-gradient(135deg,#dc3f55,#f06476); box-shadow: 0 6px 18px rgba(220,63,85,.18); }
.user-management-table tbody tr.user-row-disabled,
.user-management-table tbody tr.user-row-disabled:nth-child(odd) { background: linear-gradient(90deg,rgba(220,63,85,.13),rgba(220,63,85,.035)) !important; box-shadow: inset 3px 0 #ef6475; }
.user-management-table tbody tr.user-row-disabled:hover { background: linear-gradient(90deg,rgba(220,63,85,.18),rgba(220,63,85,.055)) !important; }
.user-management-table tbody tr.user-row-disabled .classic-user strong { color: #ff9eaa !important; }
.user-management-table tbody tr.user-row-disabled td { border-bottom-color: rgba(239,100,117,.14); }

#toast { position: fixed !important; right: 18px !important; bottom: 18px !important; z-index: 300; display: grid; gap: 8px; pointer-events: none; }
.toast-item { max-width: min(390px,calc(100vw - 28px)); padding: 12px 14px 12px 39px !important; position: relative; border: 1px solid rgba(57,217,138,.24) !important; border-radius: 12px !important; color: #dff8ea !important; background: #102119 !important; box-shadow: var(--shadow) !important; font-size: 10px !important; animation: toast-in .2s ease both; }
.toast-item::before { content: "✓"; position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; color: #08130d; background: #58dfa0; font-size: 9px; font-weight: 900; }
.toast-item.error { color: #ffdce0 !important; border-color: rgba(255,113,129,.25) !important; background: #251217 !important; }
.toast-item.error::before { content: "!"; background: #ff8996; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Responsive layouts */
@media (min-width: 1920px) {
  :root { --sidebar-expanded: 280px; }
  .content { max-width: 1880px !important; }
  .metric-grid { gap: 18px !important; }
}
@media (min-width: 2560px) {
  body { font-size: 15px; }
  .content { max-width: 2200px !important; }
  .metric-grid { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
}
@media (max-width: 1279px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 1100px) {
  .app-shell, html.sidebar-collapsed .app-shell { display: block !important; }
  .sidebar.premium-sidebar, html.sidebar-collapsed .sidebar.premium-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(86vw, 288px) !important;
    height: 100dvh;
    padding: 14px 12px 12px !important;
    transform: translateX(-104%);
    transition: transform .22s cubic-bezier(.2,.8,.2,1) !important;
    box-shadow: 26px 0 80px rgba(0,0,0,.48) !important;
  }
  .sidebar.premium-sidebar.open { transform: translateX(0) !important; }
  html.sidebar-collapsed .brand-copy,
  html.sidebar-collapsed .nav-label,
  html.sidebar-collapsed .nav-item b,
  html.sidebar-collapsed .sidebar-logout b { display: revert !important; }
  html.sidebar-collapsed .sidebar-collapse { position: static; transform: none; }
  html.sidebar-collapsed .premium-sidebar .nav-item { width: 100%; height: auto; padding: 8px 10px !important; justify-content: flex-start; }
  html.sidebar-collapsed .sidebar-logout { padding: 8px 10px !important; justify-content: flex-start; }
  .mobile-menu { display: grid !important; }
  .mobile-backdrop:not(.hidden) { display: block !important; position: fixed; inset: 0; z-index: 55; background: rgba(0,3,8,.7); backdrop-filter: blur(5px); }
}
@media (max-width: 768px) {
  .topbar { min-height: 68px !important; padding: 11px 14px !important; }
  .content { padding: 16px 12px 46px !important; }
  .top-actions { gap: 6px !important; }
  .top-actions .button { min-width: 40px; padding-inline: 10px !important; }
  .top-actions .button > span:not(.button-icon) { display: none; }
  .metric-grid { grid-template-columns: 1fr !important; }
  .admin-grid-toolbar { grid-template-columns: 1fr !important; }
  .users-pagination { align-items: flex-start !important; flex-direction: column !important; }
  .pager { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 560px) {
  .access-create-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .access-create-form { height: 100dvh; max-height: 100dvh; }
  .access-create-header { padding: 16px 12px 14px; }
  .access-create-header h3 { font-size: 21px; }
  .access-create-header p { display: none; }
  .access-header-actions { gap: 6px; }
  .access-mode-switch button { min-width: 43px; padding: 0 8px; }
  .access-create-body { padding: 19px 12px 24px; }
  .access-create-footer { min-height: 64px; padding: 10px 12px; }
  .access-create-footer .button { flex: 1; min-width: 0; }
  .access-success-dialog { width: calc(100vw - 16px); }
  .access-success-shell { padding: 30px 18px 20px; }
  .access-success-shell h3 { font-size: 21px; }
  .access-success-details div { grid-template-columns: 88px minmax(0,1fr); gap: 9px; }
  .page-heading .eyebrow { display: none; }
  .page-heading h2 { font-size: 18px !important; }
  .top-actions #refreshButton { display: none; }
  #toast { left: 10px !important; right: 10px !important; bottom: 10px !important; }
  .toast-item { max-width: none; }
  .modal { width: 100vw !important; max-width: 100vw !important; max-height: 100dvh !important; border-radius: 0 !important; }
}
@media (max-width: 375px) {
  .access-field { align-items: flex-start; flex-direction: column; gap: 2px; }
  .access-field small { text-align: left; }
  .access-input-action { grid-template-columns: minmax(0,1fr) 78px; gap: 6px; }
  .access-input-action button { min-width: 0; }
  .access-success-actions { grid-template-columns: 1fr; }
  .access-success-actions .button:last-child { grid-column: auto; }
}
@media (max-height: 700px) and (min-width: 561px) {
  .access-create-dialog, .access-create-form { max-height: calc(100dvh - 12px); }
  .access-create-header { padding-block: 14px 12px; }
  .access-create-body { padding-block: 18px 22px; }
  .access-create-footer { min-height: 60px; padding-block: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v3.1.31 Super Admin subscription package manager */
.package-settings-section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border, #dfe6e2);
  border-radius: 24px;
  background: var(--surface, #fff);
  box-shadow: 0 18px 55px rgba(17, 34, 27, .06);
}
.package-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.package-settings-head > div > span,
.package-editor-head span {
  display: block;
  margin-bottom: 6px;
  color: #7a8a83;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.package-settings-head h3,
.package-editor-head h4,
.package-admin-title h4 {
  margin: 0;
  color: #14221c;
}
.package-settings-head h3 { font-size: 24px; }
.package-settings-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #66756f;
  line-height: 1.6;
}
.package-admin-list {
  display: grid;
  gap: 14px;
}
.package-admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e1e8e4;
  border-radius: 18px;
  background: #fbfdfc;
  transition: border-color .18s ease, transform .18s ease, opacity .18s ease;
}
.package-admin-card:hover {
  transform: translateY(-1px);
  border-color: #c9d8d0;
}
.package-admin-card.is-disabled {
  background: #f5f7f6;
  opacity: .72;
}
.package-admin-main { min-width: 0; flex: 1; }
.package-admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.package-admin-title h4 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-admin-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.package-state,
.package-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.package-state.enabled { background: #e5f7ed; color: #147442; }
.package-state.disabled { background: #ecefed; color: #69756f; }
.package-chip { background: #edf2ff; color: #4058a8; }
.package-chip.trial { background: #fff3dd; color: #956115; }
.package-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}
.package-admin-metrics > div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eeeb;
}
.package-admin-metrics span,
.package-admin-metrics small {
  display: block;
  color: #7b8983;
  font-size: 11px;
}
.package-admin-metrics strong {
  display: block;
  margin: 3px 0;
  color: #1b2a23;
  font-size: 15px;
}
.package-admin-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}
.package-editor {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid #ccd9d2;
  border-radius: 18px;
  background: #f8fbf9;
}
.package-editor.hidden { display: none !important; }
.package-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.package-editor-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(130px, 1fr));
  gap: 14px;
}
.package-editor-grid label,
.package-editor-switches label {
  display: grid;
  gap: 7px;
}
.package-editor-grid label > span {
  color: #53645c;
  font-size: 12px;
  font-weight: 750;
}
.package-editor-grid input {
  width: 100%;
  min-height: 44px;
}
.package-editor-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.package-editor-switches label {
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: 14px;
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.package-editor-switches input { margin-top: 3px; }
.package-editor-switches strong,
.package-editor-switches small { display: block; }
.package-editor-switches strong { color: #1b2a23; font-size: 13px; }
.package-editor-switches small { margin-top: 3px; color: #74827b; line-height: 1.4; }
.package-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .package-settings-head,
  .package-admin-card { align-items: stretch; flex-direction: column; }
  .package-settings-head .button { width: 100%; }
  .package-admin-actions .button { flex: 1; }
  .package-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-editor-switches { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .package-settings-section { padding: 18px; border-radius: 18px; }
  .package-admin-title { align-items: flex-start; flex-direction: column; }
  .package-admin-badges { justify-content: flex-start; }
  .package-admin-metrics,
  .package-editor-grid { grid-template-columns: 1fr; }
  .package-admin-actions { width: 100%; }
}

/* v3.1.33 Super Admin Multi-DNS manager */
.dns-settings-section { border-color: #d8e4df; }
.dns-domain-value {
  display: block;
  max-width: min(640px, 72vw);
  margin-top: 6px;
  overflow: hidden;
  color: #4e645a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dns-admin-metrics { grid-template-columns: repeat(4, minmax(115px, 1fr)); }
.dns-admin-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 360px; }
.package-chip.dns-m3u { background: #e8f7ef; color: #167247; }
.package-chip.dns-xtream { background: #edf2ff; color: #4058a8; }
.dns-editor-grid { grid-template-columns: minmax(170px, 1fr) minmax(260px, 2fr) minmax(120px, .65fr); }
.dns-editor-switches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dns-default-summary p { line-height: 1.8; overflow-wrap: anywhere; }
.dns-default-summary small { display: block; margin-top: 8px; color: #718078; }

@media (max-width: 1040px) {
  .dns-admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dns-admin-actions { max-width: none; justify-content: flex-start; }
  .dns-editor-grid { grid-template-columns: 1fr 1fr; }
  .dns-editor-grid label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 620px) {
  .dns-admin-metrics,
  .dns-editor-grid,
  .dns-editor-switches { grid-template-columns: 1fr; }
  .dns-editor-grid label:nth-child(2) { grid-column: auto; grid-row: auto; }
  .dns-admin-actions .button { flex: 1 1 calc(50% - 8px); }
  .dns-domain-value { max-width: 82vw; }
}

/* v3.1.35 — Unified Super Admin workspaces (Packages + Multi-DNS)
   Deliberately isolated from legacy light package/DNS rules. */
.ops-workspace,
.ops-workspace * { box-sizing: border-box; }

.ops-workspace {
  --ops-bg: #0b1119;
  --ops-panel: #0f1722;
  --ops-panel-2: #121c29;
  --ops-line: rgba(151, 172, 199, .13);
  --ops-line-strong: rgba(151, 172, 199, .22);
  --ops-text: #edf4fb;
  --ops-text-2: #c9d6e4;
  --ops-muted: #8394a8;
  --ops-subtle: #607287;
  --ops-green: #55d99a;
  --ops-green-soft: rgba(85, 217, 154, .10);
  --ops-blue: #75a9ff;
  --ops-blue-soft: rgba(117, 169, 255, .10);
  --ops-amber: #f2c36b;
  --ops-red: #ff8a91;
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: clamp(18px, 2vw, 26px);
  overflow: hidden;
  color: var(--ops-text);
  border: 1px solid var(--ops-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 120px),
    var(--ops-bg) !important;
  box-shadow: 0 20px 55px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.025);
}
.ops-workspace::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85,217,154,.45), transparent);
  pointer-events: none;
}
.ops-workspace-dns::after { background: linear-gradient(90deg, transparent, rgba(117,169,255,.48), transparent); }

.ops-workspace-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.ops-heading { min-width: 0; }
.ops-eyebrow,
.ops-editor-header > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--ops-green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ops-workspace-dns .ops-eyebrow,
.ops-workspace-dns .ops-editor-header > div > span { color: var(--ops-blue); }
.ops-heading h3,
.ops-editor-header h4 {
  margin: 0;
  color: var(--ops-text) !important;
  letter-spacing: -.025em;
}
.ops-heading h3 { font-size: clamp(21px, 2vw, 28px); }
.ops-heading p,
.ops-editor-header p {
  max-width: 780px;
  margin: 7px 0 0;
  color: var(--ops-muted) !important;
  font-size: 12px;
  line-height: 1.6;
}

.ops-add-button,
.ops-save-button,
.ops-button,
.ops-close-button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease, opacity .14s ease;
}
.ops-add-button,
.ops-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(85,217,154,.38);
  border-radius: 11px;
  color: #06130d;
  background: var(--ops-green);
  box-shadow: 0 9px 24px rgba(85,217,154,.15);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.ops-workspace-dns .ops-add-button,
.ops-workspace-dns .ops-save-button {
  border-color: rgba(117,169,255,.42);
  color: #07101d;
  background: var(--ops-blue);
  box-shadow: 0 9px 24px rgba(117,169,255,.15);
}
.ops-add-button:hover,
.ops-save-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.ops-add-button:active,
.ops-save-button:active { transform: translateY(0); }
.ops-add-button:disabled,
.ops-save-button:disabled,
.ops-button:disabled { opacity: .55; cursor: wait; }

.ops-overview-bar {
  display: grid;
  grid-template-columns: minmax(100px,.55fr) repeat(2,minmax(0,1.5fr));
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  background: #0d151f !important;
}
.ops-overview-packages { grid-template-columns: repeat(3,minmax(90px,.55fr)) minmax(0,1.7fr); }
.ops-overview-item {
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 15px;
  border-right: 1px solid var(--ops-line);
}
.ops-overview-item:last-child { border-right: 0; }
.ops-overview-item > span {
  color: var(--ops-subtle) !important;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ops-overview-item > strong {
  display: block;
  margin: 5px 0 2px;
  overflow: hidden;
  color: var(--ops-text) !important;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-overview-item:first-child > strong { font-size: 22px; }
.ops-overview-item > small {
  overflow: hidden;
  color: var(--ops-muted) !important;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-note {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(117,169,255,.16);
  border-radius: 12px;
  background: rgba(117,169,255,.045) !important;
}
.ops-note > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117,169,255,.23);
  border-radius: 8px;
  color: #9fc2ff;
  background: rgba(117,169,255,.08);
  font-size: 11px;
  font-weight: 900;
}
.ops-note p { margin: 0; color: var(--ops-muted) !important; font-size: 10px; line-height: 1.55; }
.ops-note strong { color: #d7e6fb !important; }

.ops-editor {
  display: grid;
  gap: 15px;
  padding: clamp(16px,1.8vw,22px);
  border: 1px solid rgba(85,217,154,.22);
  border-radius: 16px;
  background: var(--ops-panel) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 14px 35px rgba(0,0,0,.18);
}
.ops-workspace-dns .ops-editor { border-color: rgba(117,169,255,.23); }
.ops-editor.hidden { display: none !important; }
.ops-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ops-editor-header h4 { font-size: 18px; }
.ops-close-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ops-line);
  border-radius: 10px;
  color: var(--ops-muted);
  background: rgba(255,255,255,.02);
  font-size: 20px;
  line-height: 1;
}
.ops-close-button:hover { color: var(--ops-text); border-color: var(--ops-line-strong); background: rgba(255,255,255,.04); }

.ops-form-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 11px;
}
.dns-ops-form-grid { grid-template-columns: minmax(170px,.75fr) minmax(290px,1.65fr) minmax(120px,.5fr); }
.ops-field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.ops-field-wide { grid-column: span 1; }
.ops-field > span { color: var(--ops-text-2) !important; font-size: 10px; font-weight: 780; }
.ops-field > small { color: var(--ops-subtle) !important; font-size: 9px; line-height: 1.45; }
.ops-field input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--ops-line-strong) !important;
  border-radius: 10px !important;
  outline: none;
  color: var(--ops-text) !important;
  background: #090f17 !important;
  box-shadow: none !important;
}
.ops-field input::placeholder { color: #536579; }
.ops-field input:focus {
  border-color: rgba(85,217,154,.48) !important;
  box-shadow: 0 0 0 3px rgba(85,217,154,.08) !important;
}
.ops-workspace-dns .ops-field input:focus {
  border-color: rgba(117,169,255,.52) !important;
  box-shadow: 0 0 0 3px rgba(117,169,255,.08) !important;
}

.ops-name-preview {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border-left: 2px solid var(--ops-green);
  border-radius: 0 10px 10px 0;
  background: rgba(85,217,154,.045) !important;
}
.ops-name-preview > span { color: #75aa90 !important; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ops-name-preview > strong { color: #eafff4 !important; font-size: 15px; overflow-wrap: anywhere; }
.ops-name-preview > small { color: var(--ops-subtle) !important; font-size: 9px; }

.ops-switch-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}
.ops-switch-grid-four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ops-switch-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--ops-line);
  border-radius: 11px;
  background: rgba(255,255,255,.014) !important;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.ops-switch-card:hover { border-color: var(--ops-line-strong); background: rgba(255,255,255,.025) !important; }
.ops-switch-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ops-switch-ui {
  position: relative;
  width: 35px;
  height: 20px;
  border: 1px solid var(--ops-line-strong);
  border-radius: 999px;
  background: #080e15;
  transition: background .15s ease, border-color .15s ease;
}
.ops-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #66788c;
  transition: transform .15s ease, background .15s ease;
}
.ops-switch-card input:checked + .ops-switch-ui { border-color: rgba(85,217,154,.42); background: rgba(85,217,154,.13); }
.ops-switch-card input:checked + .ops-switch-ui::after { transform: translateX(15px); background: var(--ops-green); }
.ops-workspace-dns .ops-switch-card input:checked + .ops-switch-ui { border-color: rgba(117,169,255,.44); background: rgba(117,169,255,.13); }
.ops-workspace-dns .ops-switch-card input:checked + .ops-switch-ui::after { background: var(--ops-blue); }
.ops-switch-card input:focus-visible + .ops-switch-ui { outline: 2px solid var(--ops-green); outline-offset: 3px; }
.ops-switch-card strong { display: block; color: var(--ops-text-2) !important; font-size: 10px; }
.ops-switch-card small { display: block; margin-top: 2px; color: var(--ops-subtle) !important; font-size: 8px; line-height: 1.35; }

.ops-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ops-line);
}
.ops-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--ops-line) !important;
  border-radius: 9px;
  color: var(--ops-text-2) !important;
  background: rgba(255,255,255,.018) !important;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.ops-button:hover { color: var(--ops-text) !important; border-color: var(--ops-line-strong) !important; background: rgba(255,255,255,.04) !important; }
.ops-button.is-danger { color: #ffadb2 !important; border-color: rgba(255,138,145,.15) !important; background: rgba(255,138,145,.045) !important; }
.ops-button.is-danger:hover { border-color: rgba(255,138,145,.28) !important; background: rgba(255,138,145,.08) !important; }
.ops-button.is-success { color: #80e7b4 !important; border-color: rgba(85,217,154,.18) !important; background: rgba(85,217,154,.05) !important; }

.ops-table-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  background: #0c131c !important;
}
.ops-table { min-width: 0; }
.ops-table-head,
.ops-table-row {
  display: grid;
  align-items: center;
  gap: 12px;
}
.ops-table-dns .ops-table-head,
.ops-table-dns .ops-table-row { grid-template-columns: minmax(230px,2fr) minmax(80px,.65fr) minmax(72px,.55fr) minmax(72px,.55fr) 58px minmax(235px,1.45fr); }
.ops-table-packages .ops-table-head,
.ops-table-packages .ops-table-row { grid-template-columns: minmax(220px,2fr) minmax(80px,.65fr) minmax(90px,.7fr) minmax(95px,.75fr) 58px minmax(190px,1.25fr); }
.ops-table-head {
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ops-line);
  background: rgba(255,255,255,.018) !important;
}
.ops-table-head > span {
  color: var(--ops-subtle) !important;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ops-table-row {
  min-width: 0;
  min-height: 72px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(151,172,199,.085);
  background: transparent !important;
  transition: background .14s ease, opacity .14s ease;
}
.ops-table-row:last-child { border-bottom: 0; }
.ops-table-row:hover { background: rgba(255,255,255,.018) !important; }
.ops-table-row.is-disabled { opacity: .55; }
.ops-table-row.is-disabled:hover { opacity: .72; }

.ops-primary-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  align-items: center;
}
.ops-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85,217,154,.18);
  border-radius: 10px;
  color: #7de3b2;
  background: rgba(85,217,154,.06) !important;
  font-size: 10px;
  font-weight: 900;
}
.ops-avatar-dns { border-color: rgba(117,169,255,.2); color: #9cc0ff; background: rgba(117,169,255,.065) !important; font-size: 8px; letter-spacing: .05em; }
.ops-identity { min-width: 0; }
.ops-identity > strong {
  display: block;
  overflow: hidden;
  color: var(--ops-text) !important;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-identity > code {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ops-muted) !important;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-inline-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ops-mini-tag,
.ops-default-pill,
.ops-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 820;
  white-space: nowrap;
}
.ops-mini-tag { min-height: 18px; padding: 0 6px; }
.ops-mini-tag.is-default { color: #a9c6ff; border-color: rgba(117,169,255,.16); background: rgba(117,169,255,.055); }
.ops-mini-tag.is-trial { color: #f6cf88; border-color: rgba(242,195,107,.16); background: rgba(242,195,107,.055); }
.ops-mini-tag.is-free { color: #7be3b0; border-color: rgba(85,217,154,.16); background: rgba(85,217,154,.055); }
.ops-status { gap: 6px; color: var(--ops-muted); }
.ops-status i { width: 6px; height: 6px; border-radius: 50%; background: #6b7a8c; }
.ops-status.is-online { color: #7be3b0; border-color: rgba(85,217,154,.15); background: rgba(85,217,154,.045); }
.ops-status.is-online i { background: var(--ops-green); box-shadow: 0 0 0 3px rgba(85,217,154,.08); }
.ops-status.is-offline { color: #94a0ae; background: rgba(151,172,199,.035); }
.ops-default-pill { color: #8fe6bc; border-color: rgba(85,217,154,.15); background: rgba(85,217,154,.045); }
.ops-default-pill.is-xtream { color: #a8c7ff; border-color: rgba(117,169,255,.16); background: rgba(117,169,255,.05); }
.ops-muted-value { color: var(--ops-subtle) !important; font-size: 9px; }

.ops-cell { min-width: 0; }
.ops-cell > strong { display: block; color: var(--ops-text-2) !important; font-size: 10px; line-height: 1.3; }
.ops-cell > small { display: block; margin-top: 2px; color: var(--ops-subtle) !important; font-size: 8px; line-height: 1.3; }
.ops-order-cell > strong { font-variant-numeric: tabular-nums; }
.ops-actions-cell {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.ops-actions-cell .ops-button { min-height: 31px; padding: 0 9px; font-size: 8px; }

.ops-empty-state {
  min-height: 155px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 25px;
  text-align: center;
}
.ops-empty-state > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border: 1px solid var(--ops-line);
  border-radius: 11px;
  color: var(--ops-muted);
  background: rgba(255,255,255,.018);
  font-size: 9px;
  font-weight: 900;
}
.ops-empty-state > strong { color: var(--ops-text-2) !important; font-size: 12px; }
.ops-empty-state > p { margin: 0; color: var(--ops-muted) !important; font-size: 10px; }

@media (max-width: 1160px) {
  .ops-table-dns .ops-table-head,
  .ops-table-dns .ops-table-row { grid-template-columns: minmax(210px,1.7fr) minmax(78px,.6fr) minmax(65px,.5fr) minmax(65px,.5fr) 50px minmax(185px,1.2fr); }
  .ops-table-packages .ops-table-head,
  .ops-table-packages .ops-table-row { grid-template-columns: minmax(200px,1.7fr) minmax(78px,.6fr) minmax(85px,.65fr) minmax(90px,.7fr) 50px minmax(155px,1.05fr); }
  .ops-switch-grid-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 930px) {
  .ops-table-head { display: none; }
  .ops-table-row,
  .ops-table-dns .ops-table-row,
  .ops-table-packages .ops-table-row {
    grid-template-columns: minmax(0,1.8fr) repeat(4,minmax(75px,.55fr));
    gap: 10px;
    padding: 13px;
  }
  .ops-actions-cell { grid-column: 1 / -1; justify-content: flex-start; padding-top: 9px; border-top: 1px solid var(--ops-line); }
  .ops-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--ops-subtle);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .ops-form-grid,
  .dns-ops-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ops-field-wide { grid-column: 1 / -1; }
  .dns-ops-form-grid .ops-field-wide { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 720px) {
  .ops-workspace { padding: 15px; border-radius: 16px; gap: 13px; }
  .ops-workspace-header { flex-direction: column; gap: 13px; }
  .ops-add-button { width: 100%; }
  .ops-overview-bar,
  .ops-overview-packages { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ops-overview-item { min-height: 74px; border-bottom: 1px solid var(--ops-line); }
  .ops-overview-item:nth-child(2n) { border-right: 0; }
  .ops-overview-item:nth-last-child(-n+2) { border-bottom: 0; }
  .ops-table-row,
  .ops-table-dns .ops-table-row,
  .ops-table-packages .ops-table-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ops-primary-cell { grid-column: 1 / -1; }
  .ops-form-grid,
  .dns-ops-form-grid,
  .ops-switch-grid,
  .ops-switch-grid-four { grid-template-columns: 1fr; }
  .ops-field-wide,
  .dns-ops-form-grid .ops-field-wide { grid-column: auto; grid-row: auto; }
  .ops-editor-actions .ops-button,
  .ops-editor-actions .ops-save-button { flex: 1; }
}

@media (max-width: 430px) {
  .ops-overview-bar,
  .ops-overview-packages { grid-template-columns: 1fr; }
  .ops-overview-item { border-right: 0; border-bottom: 1px solid var(--ops-line) !important; }
  .ops-overview-item:last-child { border-bottom: 0 !important; }
  .ops-table-row,
  .ops-table-dns .ops-table-row,
  .ops-table-packages .ops-table-row { grid-template-columns: 1fr; }
  .ops-primary-cell { grid-column: auto; }
  .ops-actions-cell { grid-column: auto; }
  .ops-actions-cell .ops-button { flex: 1 1 calc(50% - 5px); }
  .ops-note { align-items: start; }
}


/* v3.1.39 authoritative authentication visibility.
   ID selectors deliberately outrank every responsive .app-shell display rule. */
#appView.hidden,
#appView[hidden],
html[data-auth-view="login"] #appView {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  content-visibility: hidden !important;
}

#loginView.hidden,
#loginView[hidden],
html[data-auth-view="app"] #loginView {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  content-visibility: hidden !important;
}

html[data-auth-view="login"],
html[data-auth-view="login"] body {
  width: 100%;
  min-height: 100%;
  overflow: hidden !important;
}

html[data-auth-view="login"] #loginView {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100% !important;
  min-height: 100dvh !important;
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -10%,rgba(102,230,165,.16),transparent 42%),
    radial-gradient(circle at 10% 90%,rgba(114,168,255,.08),transparent 35%),
    #080b11 !important;
}

html[data-auth-view="app"] #appView {
  visibility: visible !important;
  pointer-events: auto !important;
}


/* v3.1.41 neutral authentication bootstrap.
   Neither login nor protected dashboard content is exposed until /api/admin/me
   has authoritatively resolved the HttpOnly session cookie. */
#authBootstrapView.hidden,
#authBootstrapView[hidden],
html:not([data-auth-view="boot"]) #authBootstrapView {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-auth-view="boot"] #loginView,
html[data-auth-view="boot"] #appView {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  content-visibility: hidden !important;
}

html[data-auth-view="boot"],
html[data-auth-view="boot"] body {
  width: 100%;
  min-height: 100%;
  overflow: hidden !important;
  background: #080b11 !important;
}

html[data-auth-view="boot"] #authBootstrapView {
  position: fixed !important;
  inset: 0 !important;
  z-index: 11000 !important;
  display: grid !important;
  place-items: center !important;
  min-height: 100dvh !important;
  padding: 24px;
  visibility: visible !important;
  pointer-events: auto !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(102,230,165,.10), transparent 35%),
    #080b11 !important;
}

.auth-bootstrap-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #aeb8c8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.auth-bootstrap-logo { width: 112px; height: auto; opacity: .96; }
.auth-bootstrap-card p { margin: 0; }
.auth-bootstrap-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: #66e6a5;
  animation: luma-auth-spin .75s linear infinite;
}
@keyframes luma-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .auth-bootstrap-spinner { animation-duration: 1.8s; }
}

/* v3.1.42 — Cloudflare for SaaS reseller custom-domain workflow */
.domain-workspace,
.domain-workspace * { box-sizing: border-box; }

.domain-workspace {
  --domain-bg: #0b1119;
  --domain-panel: #0f1722;
  --domain-panel-2: #121c29;
  --domain-line: rgba(151, 172, 199, .13);
  --domain-text: #edf4fb;
  --domain-muted: #8394a8;
  --domain-green: #55d99a;
  --domain-blue: #75a9ff;
  --domain-amber: #f2c36b;
  --domain-red: #ff8a91;
  --ops-bg: var(--domain-bg);
  --ops-panel: var(--domain-panel);
  --ops-panel-2: var(--domain-panel-2);
  --ops-line: var(--domain-line);
  --ops-line-strong: rgba(151, 172, 199, .22);
  --ops-text: var(--domain-text);
  --ops-text-2: #c9d6e4;
  --ops-muted: var(--domain-muted);
  --ops-subtle: #607287;
  --ops-green: var(--domain-green);
  --ops-blue: var(--domain-blue);
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: clamp(18px, 2vw, 26px);
  color: var(--domain-text);
  border: 1px solid var(--domain-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 120px), var(--domain-bg);
  box-shadow: 0 20px 55px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.025);
}
.domain-workspace-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.domain-workspace-header h3 { margin:0; color:var(--domain-text); font-size:clamp(21px,2vw,28px); letter-spacing:-.025em; }
.domain-workspace-header p { max-width:760px; margin:7px 0 0; color:var(--domain-muted); font-size:12px; line-height:1.6; }
.domain-shield { min-height:34px; display:inline-flex; align-items:center; padding:0 11px; border:1px solid rgba(85,217,154,.24); border-radius:999px; color:var(--domain-green); background:rgba(85,217,154,.06); font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.domain-active-strip { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.5fr); gap:4px 18px; padding:14px 16px; border:1px solid rgba(85,217,154,.16); border-radius:13px; background:rgba(85,217,154,.045); }
.domain-active-strip.is-default { border-color:rgba(117,169,255,.15); background:rgba(117,169,255,.04); }
.domain-active-strip > span { color:var(--domain-muted); font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.domain-active-strip > strong { grid-column:2; grid-row:1; overflow:hidden; color:var(--domain-text); font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.domain-active-strip > small { grid-column:1 / -1; color:var(--domain-muted); font-size:10px; }
.domain-current-card { display:grid; gap:14px; padding:16px; border:1px solid var(--domain-line); border-radius:15px; background:var(--domain-panel); }
.domain-current-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.domain-current-head span { display:block; margin-bottom:4px; color:var(--domain-muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.domain-current-head h4 { margin:0; color:var(--domain-text); font-size:16px; word-break:break-word; }
.domain-status { display:inline-flex; align-items:center; gap:7px; min-height:28px; padding:0 9px; border:1px solid var(--domain-line); border-radius:999px; color:#cbd8e6; background:rgba(255,255,255,.025); font-size:9px; font-weight:800; white-space:nowrap; }
.domain-status i { width:6px; height:6px; border-radius:50%; background:#6f8195; box-shadow:0 0 0 3px rgba(111,129,149,.08); }
.domain-status.is-active,.domain-status.is-ready { color:var(--domain-green); border-color:rgba(85,217,154,.18); background:rgba(85,217,154,.055); }
.domain-status.is-active i,.domain-status.is-ready i { background:var(--domain-green); }
.domain-status.is-pending,.domain-status.is-waiting_dns { color:var(--domain-amber); border-color:rgba(242,195,107,.18); background:rgba(242,195,107,.05); }
.domain-status.is-pending i,.domain-status.is-waiting_dns i { background:var(--domain-amber); }
.domain-status.is-failed,.domain-status.is-rejected { color:var(--domain-red); border-color:rgba(255,138,145,.18); background:rgba(255,138,145,.05); }
.domain-status.is-failed i,.domain-status.is-rejected i { background:var(--domain-red); }
.domain-status.is-disabled { color:#9aaabd; }
.domain-dns-instruction { display:grid; grid-template-columns:110px minmax(140px,.8fr) minmax(200px,1.5fr); overflow:hidden; border:1px solid rgba(117,169,255,.15); border-radius:12px; background:#0c141e; }
.domain-dns-instruction > div { min-width:0; padding:12px 13px; border-right:1px solid var(--domain-line); }
.domain-dns-instruction > div:last-child { border-right:0; }
.domain-dns-instruction span { display:block; color:var(--domain-muted); font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.domain-dns-instruction strong { display:block; margin-top:5px; overflow:hidden; color:var(--domain-text); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.domain-safe-note,.domain-lock-note { margin:0; color:var(--domain-muted); font-size:10px; line-height:1.55; }
.domain-error-note { padding:10px 12px; border:1px solid rgba(255,138,145,.16); border-radius:10px; color:#ffc0c5; background:rgba(255,138,145,.045); font-size:10px; line-height:1.5; }
.domain-current-meta { display:flex; flex-wrap:wrap; gap:8px 18px; color:var(--domain-muted); font-size:10px; }
.domain-current-meta strong { color:#cdd9e6; }
.domain-current-actions { display:flex; flex-wrap:wrap; gap:8px; }
.domain-request-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; padding:16px; border:1px solid var(--domain-line); border-radius:15px; background:var(--domain-panel); }
.domain-request-form .ops-field { margin:0; }
.domain-request-form .ops-save-button { min-height:44px; }
.domain-lock-note { display:flex; flex-direction:column; gap:4px; padding:13px 15px; border:1px solid var(--domain-line); border-radius:12px; background:rgba(255,255,255,.018); }
.domain-lock-note strong { color:var(--domain-text); font-size:11px; }
.cloudflare-integration { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 15px; border:1px solid var(--domain-line); border-radius:13px; background:#0d151f; }
.cloudflare-integration > div { min-width:0; }
.cloudflare-integration > div > span { color:var(--domain-muted); font-size:8px; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.cloudflare-integration > div > strong { display:block; margin:4px 0 2px; color:var(--domain-text); font-size:13px; }
.cloudflare-integration > div > small { display:block; color:var(--domain-muted); font-size:10px; line-height:1.45; overflow-wrap:anywhere; }
.cloudflare-integration.is-ready { border-color:rgba(85,217,154,.14); }
.cloudflare-integration.is-missing { border-color:rgba(242,195,107,.16); }
.domain-admin-table { overflow:hidden; border:1px solid var(--domain-line); border-radius:14px; background:#0d151f; }
.domain-admin-head,.domain-admin-row { display:grid; grid-template-columns:minmax(190px,1.35fr) minmax(120px,.65fr) minmax(150px,.8fr) minmax(110px,.6fr) minmax(260px,1.4fr); align-items:center; gap:12px; }
.domain-admin-head { min-height:38px; padding:0 14px; border-bottom:1px solid var(--domain-line); color:#607287; font-size:8px; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
.domain-admin-row { min-height:72px; padding:11px 14px; border-bottom:1px solid var(--domain-line); }
.domain-admin-row:last-child { border-bottom:0; }
.domain-admin-main { min-width:0; }
.domain-admin-main strong { display:block; overflow:hidden; color:var(--domain-text); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.domain-admin-main small { display:block; margin-top:3px; color:var(--domain-muted); font-size:9px; }
.domain-admin-health { display:flex; flex-direction:column; gap:4px; color:var(--domain-muted); font-size:9px; }
.domain-admin-health b { color:#cad7e5; font-weight:750; }
.domain-admin-time span,.domain-admin-time small { display:block; color:var(--domain-muted); font-size:9px; }
.domain-admin-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:6px; }
.ops-button.is-primary { color:var(--domain-blue); border-color:rgba(117,169,255,.22); background:rgba(117,169,255,.06); }
.ops-button.is-success { color:var(--domain-green); border-color:rgba(85,217,154,.22); background:rgba(85,217,154,.06); }
.domain-thread-modal .modal-subtitle { margin:4px 0 0; color:var(--domain-muted); font-size:10px; }
.domain-thread-instruction { display:grid; gap:6px; padding:12px 14px; border:1px solid rgba(117,169,255,.16); border-radius:11px; background:rgba(117,169,255,.04); }
.domain-thread-instruction span { color:var(--domain-muted); font-size:8px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.domain-thread-instruction code { color:#dbe8f7; font-size:11px; overflow-wrap:anywhere; }
.domain-thread-diagnostics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.domain-thread-diagnostics > div { padding:10px 12px; border:1px solid var(--domain-line); border-radius:10px; background:#0d151f; }
.domain-thread-diagnostics span { display:block; color:var(--domain-muted); font-size:8px; text-transform:uppercase; letter-spacing:.06em; }
.domain-thread-diagnostics strong { display:block; margin-top:4px; color:var(--domain-text); font-size:11px; }
.ticket-message.system { border-color:rgba(117,169,255,.14); background:rgba(117,169,255,.035); }
.ticket-message.system strong { color:var(--domain-blue); }

@media (max-width: 1100px) {
  .domain-admin-head { display:none; }
  .domain-admin-row { grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; }
  .domain-admin-health,.domain-admin-time { grid-column:1 / -1; flex-direction:row; gap:14px; }
  .domain-admin-actions { grid-column:1 / -1; justify-content:flex-start; }
  .domain-dns-instruction { grid-template-columns:100px minmax(0,1fr); }
  .domain-dns-instruction > div:nth-child(3) { grid-column:1 / -1; border-top:1px solid var(--domain-line); border-right:0; }
}

@media (max-width: 720px) {
  .domain-workspace { padding:15px; border-radius:16px; }
  .domain-workspace-header,.cloudflare-integration,.domain-current-head { align-items:stretch; flex-direction:column; }
  .domain-shield,.cloudflare-integration .domain-status { align-self:flex-start; }
  .domain-active-strip { grid-template-columns:1fr; }
  .domain-active-strip > strong,.domain-active-strip > small { grid-column:1; grid-row:auto; }
  .domain-request-form { grid-template-columns:1fr; }
  .domain-dns-instruction { grid-template-columns:1fr; }
  .domain-dns-instruction > div,.domain-dns-instruction > div:nth-child(3) { grid-column:1; border-right:0; border-top:1px solid var(--domain-line); }
  .domain-dns-instruction > div:first-child { border-top:0; }
  .domain-admin-row { grid-template-columns:1fr; }
  .domain-admin-health,.domain-admin-time,.domain-admin-actions { grid-column:1; }
  .domain-thread-diagnostics { grid-template-columns:1fr; }
}

/* v3.1.42 — Cloudflare custom-domain operational note */
.domain-policy-note{display:flex;gap:14px;align-items:flex-start;margin:0 0 16px;padding:12px 14px;border:1px solid rgba(245,158,11,.18);border-radius:12px;background:rgba(245,158,11,.055);color:var(--ops-muted,#8ea0b7)}
.domain-policy-note strong{flex:0 0 auto;color:#e5edf7;font-size:12px;letter-spacing:.02em}
.domain-policy-note span{font-size:12px;line-height:1.55}
@media(max-width:720px){.domain-policy-note{display:block}.domain-policy-note strong{display:block;margin-bottom:5px}}

/* Authentication visibility safety rail — keep after all responsive additions. */
#loginView.hidden,
#loginView[hidden],
#appView.hidden,
#appView[hidden],
#authBootstrapView.hidden,
#authBootstrapView[hidden]{display:none!important}

/* v3.1.44 — DNS Requests moved from Settings into the Super Admin Support workspace */
.support-hub-page { display:grid; gap:16px; }
.support-hub-nav {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  width:min(720px,100%);
  padding:5px;
  border:1px solid rgba(148,163,184,.11);
  border-radius:14px;
  background:#0b1119;
  box-shadow:inset 0 1px rgba(255,255,255,.02);
}
.support-hub-tab {
  min-width:0;
  min-height:58px;
  padding:10px 13px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
  border:1px solid transparent;
  border-radius:10px;
  color:#97a6b8;
  background:transparent;
  text-align:left;
  transition:border-color .16s ease,background .16s ease,color .16s ease;
}
.support-hub-tab:hover { color:#e7eef7; border-color:rgba(148,163,184,.12); background:rgba(255,255,255,.025); }
.support-hub-tab.is-active { color:#eafff4; border-color:rgba(85,217,154,.18); background:rgba(85,217,154,.07); }
.support-hub-tab span { font-size:12px; font-weight:800; }
.support-hub-tab small { color:#66788d; font-size:9px; line-height:1.35; }
.support-hub-tab.is-active small { color:#85a698; }
.dns-requests-page .dns-requests-workspace {
  --domain-bg:#0b1119;
  --domain-panel:#0f1722;
  --domain-panel-2:#121c29;
  --domain-line:rgba(151,172,199,.13);
  --domain-text:#edf4fb;
  --domain-muted:#8394a8;
  --domain-green:#55d99a;
  --domain-blue:#75a9ff;
  --domain-amber:#f2c36b;
  --domain-red:#ff8a91;
  margin:0;
}
.dns-requests-page .domain-admin-table { margin-top:2px; }
@media(max-width:720px){
  .support-hub-nav{grid-template-columns:1fr;width:100%}
  .support-hub-tab{min-height:52px}
}

/* v3.1.45 — reseller DNS guidance and action notifications */
.premium-sidebar .nav-item { position: relative; }
.nav-notification-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: #e5484d;
  box-shadow: 0 0 0 3px rgba(229,72,77,.12), 0 6px 16px rgba(229,72,77,.18);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
html.sidebar-collapsed .premium-sidebar .nav-item .nav-notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 2px solid #0a0f16;
  font-size: 0;
  box-shadow: 0 0 0 2px rgba(229,72,77,.12);
}
.support-hub-tab > span { width: 100%; display: flex; align-items: center; gap: 8px; }
.support-tab-badge {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #e5484d;
  box-shadow: 0 0 0 3px rgba(229,72,77,.10);
  font-size: 9px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.domain-request-shell {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--domain-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(117,169,255,.035), transparent 72%), #0d151f;
}
.domain-request-guide {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(117,169,255,.16);
  border-radius: 12px;
  background: rgba(117,169,255,.045);
}
.domain-request-guide-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117,169,255,.20);
  border-radius: 10px;
  color: #bcd4ff;
  background: rgba(117,169,255,.07);
  font-size: 12px;
  font-weight: 900;
}
.domain-request-guide > div:last-child > span {
  color: #71849a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .11em;
}
.domain-request-guide h4 { margin: 3px 0 5px; color: #edf4fb; font-size: 15px; }
.domain-request-guide h4 code { color: #a9c6ff; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
.domain-request-guide p { margin: 0; color: #91a1b4; font-size: 10px; line-height: 1.55; }
.domain-example-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.domain-example-row span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 9px;
}
.domain-example-row .is-correct { color: #88e7b7; border: 1px solid rgba(85,217,154,.16); background: rgba(85,217,154,.045); }
.domain-example-row .is-wrong { color: #f2a7ac; border: 1px solid rgba(255,138,145,.14); background: rgba(255,138,145,.035); }
.domain-request-shell .domain-request-form { padding: 12px 0 0; border: 0; border-radius: 0; border-top: 1px solid var(--domain-line); background: transparent; }
.domain-request-shell .domain-request-form input { min-height: 46px; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .01em; }
.domain-review-promise {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid rgba(85,217,154,.15);
  border-radius: 11px;
  background: rgba(85,217,154,.04);
}
.domain-review-promise > i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #7be3b0;
  background: rgba(85,217,154,.09);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}
.domain-review-promise strong { display: block; color: #dce8f4; font-size: 10px; }
.domain-review-promise span { display: block; margin-top: 2px; color: #7e90a5; font-size: 9px; line-height: 1.5; }

.domain-stage-note {
  display: grid;
  grid-template-columns: minmax(120px,.28fr) minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(117,169,255,.14);
  border-radius: 11px;
  background: rgba(117,169,255,.035);
}
.domain-stage-note strong { color: #dce8f5; font-size: 10px; }
.domain-stage-note span { color: #8394a8; font-size: 9px; line-height: 1.5; }
.domain-stage-note.is-pending { border-color: rgba(242,195,107,.16); background: rgba(242,195,107,.04); }
.domain-stage-note.is-pending strong { color: #f2cf8c; }
.domain-stage-note.is-active,.domain-stage-note.is-ready { border-color: rgba(85,217,154,.15); background: rgba(85,217,154,.04); }
.domain-stage-note.is-active strong,.domain-stage-note.is-ready strong { color: #83e5b3; }
.domain-stage-note.is-failed,.domain-stage-note.is-rejected { border-color: rgba(255,138,145,.16); background: rgba(255,138,145,.04); }
.domain-stage-note.is-failed strong,.domain-stage-note.is-rejected strong { color: #ffb0b5; }

.domain-setup-guide {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(117,169,255,.17);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(117,169,255,.045), transparent 130px), #0b131d;
}
.domain-setup-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.domain-setup-guide-head span { color: #7693b5; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.domain-setup-guide-head h5 { margin: 3px 0 0; color: #edf4fb; font-size: 15px; }
.domain-setup-guide-head > b {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(117,169,255,.16);
  border-radius: 999px;
  color: #a9c6ff;
  background: rgba(117,169,255,.05);
  font-size: 8px;
  white-space: nowrap;
}
.domain-setup-intro { margin: 0; color: #8798ac; font-size: 10px; line-height: 1.6; }
.domain-setup-intro strong { color: #cbd8e5; }
.domain-setup-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  list-style: none;
}
.domain-setup-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--domain-line);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
}
.domain-setup-steps li > i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #a9c6ff;
  background: rgba(117,169,255,.07);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
}
.domain-setup-steps strong { display: block; color: #d6e2ee; font-size: 9px; }
.domain-setup-steps span { display: block; margin-top: 2px; color: #76889d; font-size: 8px; line-height: 1.45; }
.domain-record-card {
  display: grid;
  grid-template-columns: .6fr 1fr 1.7fr 1.5fr;
  overflow: hidden;
  border: 1px solid rgba(117,169,255,.16);
  border-radius: 11px;
  background: #0a111a;
}
.domain-record-card > div {
  position: relative;
  min-width: 0;
  padding: 11px 10px;
  border-right: 1px solid var(--domain-line);
}
.domain-record-card > div:last-child { border-right: 0; }
.domain-record-card span { display: block; color: #687b91; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.domain-record-card strong {
  display: block;
  margin-top: 5px;
  padding-right: 38px;
  overflow: hidden;
  color: #e0eaf4;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.domain-record-card > div:first-child strong,
.domain-record-card > div:last-child strong { padding-right: 0; }
.domain-copy-button {
  position: absolute;
  right: 7px;
  bottom: 8px;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(117,169,255,.16);
  border-radius: 7px;
  color: #a9c6ff;
  background: rgba(117,169,255,.05);
  font-size: 7px;
  font-weight: 850;
  cursor: pointer;
}
.domain-copy-button:hover { border-color: rgba(117,169,255,.28); background: rgba(117,169,255,.09); }
.domain-setup-guide .domain-safe-note strong { color: #cbd8e5; }

@media (max-width: 900px) {
  .domain-setup-steps { grid-template-columns: 1fr; }
  .domain-record-card { grid-template-columns: 1fr 1fr; }
  .domain-record-card > div { border-bottom: 1px solid var(--domain-line); }
  .domain-record-card > div:nth-child(2n) { border-right: 0; }
  .domain-record-card > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 720px) {
  .domain-request-guide { grid-template-columns: 1fr; }
  .domain-request-guide-icon { width: 30px; height: 30px; }
  .domain-stage-note { grid-template-columns: 1fr; gap: 4px; }
  .domain-setup-guide-head { flex-direction: column; }
  .domain-record-card { grid-template-columns: 1fr; }
  .domain-record-card > div,
  .domain-record-card > div:nth-child(2n),
  .domain-record-card > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--domain-line); }
  .domain-record-card > div:last-child { border-bottom: 0; }
}


/* v3.1.46 — unified table movement without visual redesign */
.smart-table-scroll {
  max-height: clamp(420px, 64dvh, 760px) !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.28) transparent;
  scroll-behavior: auto;
}
.smart-table-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.smart-table-scroll::-webkit-scrollbar-track { background: transparent; }
.smart-table-scroll::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(148,163,184,.28); background-clip: padding-box; }
.smart-table-scroll:hover::-webkit-scrollbar-thumb,
.smart-table-scroll:focus-visible::-webkit-scrollbar-thumb { background: rgba(148,163,184,.42); background-clip: padding-box; }
.smart-table-scroll:focus-visible { outline: 1px solid rgba(57,217,138,.38); outline-offset: 2px; }
.smart-table-scroll thead,
.smart-table-scroll thead th { position: sticky !important; top: 0 !important; z-index: 8 !important; }
.smart-table-scroll .ops-table-head,
.smart-table-scroll > .domain-admin-head { position: sticky; top: 0; z-index: 8; }
.smart-table-scroll > .domain-admin-head { background: #0d151f; }
.reseller-table-capacity.smart-table-scroll { min-height: 0 !important; }
.reseller-action-menu.open { max-height: min(340px,calc(100dvh - 84px)); overflow-y: auto; overscroll-behavior: contain; }

/* Keep the existing phone card layout and use normal page scrolling there. */
@media (max-width: 780px) {
  .smart-table-scroll { max-height: none !important; overflow: visible !important; scrollbar-gutter: auto; }
}
