.modal-backdrop[hidden], .fullscreen-overlay[hidden], .sidebar-backdrop[hidden],
.master-only[hidden], .sidebar-nav-item[hidden], #btnShowAllLive[hidden],
.empty-state[hidden], #screenshotEmpty[hidden], #shotPager[hidden], #btnDeleteSelected[hidden], #btnSelectAll[hidden], #shotLoader[hidden] { display: none !important; }

/* DevExpress global API loader — above page/modals, under toasts */
.dx-overlay-wrapper.dx-loadpanel-wrapper,
#chameleonsGlobalLoader .dx-overlay-wrapper {
  z-index: 2200 !important;
}

.cm-page-notification {
  position: fixed;
  top: 1.15rem;
  right: 1.15rem;
  left: auto;
  z-index: 2300;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.cm-page-notification.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.cm-page-notification[hidden] {
  display: none !important;
}

.cm-page-notification.error {
  background: #ef4444;
}

.cm-page-notification.success {
    background: #16a34a;
}

.confirm-dialog-backdrop {
    z-index: 2200;
}

.confirm-dialog-box {
    max-width: 440px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.confirm-dialog-body {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.confirm-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 1.15rem;
    font-weight: 800;
}

.confirm-dialog-icon.is-danger {
    background: #fef2f2;
    color: #dc2626;
}

.confirm-dialog-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #334155;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.admin-autofill-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Change password modal */
.pw-modal {
    max-width: 440px;
    width: calc(100vw - 32px);
}

.pw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.pw-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.pw-input-wrap {
    position: relative;
    display: block;
}

.pw-input-wrap .form-input {
    padding-right: 64px;
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.pw-toggle:hover {
    color: var(--accent-color, #ff701f);
    background: rgba(15, 23, 42, 0.04);
}

.pw-hint {
    margin: -4px 0 0;
    font-size: 12px;
    color: #64748b;
}

.pw-alert {
    margin: 12px 0 0;
}

#shotSearch:-webkit-autofill,
#reportSearch:-webkit-autofill,
#devicesGridSearch:-webkit-autofill,
#usersGridSearch:-webkit-autofill {
    -webkit-text-fill-color: inherit;
    transition: background-color 99999s ease-out;
}

.cm-page-notification-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.cm-page-notification-text {
  flex: 1;
  text-align: left;
}

.cm-page-notification-close {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.cm-page-notification-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.admin-btn-secondary {
  background: #fff;
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
}
.admin-btn-danger {
  background: #fff;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.admin-btn-danger:hover {
  background: #fef2f2;
}
.shot-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.shot-retention-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.shot-retention-note svg { flex-shrink: 0; color: #ea580c; }
.shot-retention-note strong { font-weight: 700; }
.shot-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--admin-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.shot-icon-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #ea580c;
}
.shot-icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.shot-icon-btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
}
.shot-icon-btn-danger:hover {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}
.shot-icon-btn .shot-icon {
  display: block;
  flex-shrink: 0;
}
#btnRefreshShots.is-loading .shot-icon {
  display: none;
}
#btnRefreshShots.is-loading .shot-btn-spinner {
  display: inline-block;
}
#btnDownloadSelected.is-busy {
  opacity: 0.75;
  pointer-events: none;
}
body[data-admin-page="Screenshots"] .main-content {
  height: calc(100vh - var(--app-header-h));
  overflow: hidden;
  padding-bottom: 12px;
}
.shot-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.shot-page .admin-users-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.shot-page .admin-users-panel-head,
.shot-page .admin-users-tabs,
.shot-page .admin-users-panel-toolbar {
  flex-shrink: 0;
}
.shot-date-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
  padding: 8px 2px 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}
.shot-date-group:first-child {
  margin-top: 0;
  padding-top: 0;
}
.shot-gallery-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.shot-loader {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}
.shot-loader-spinner,
.shot-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 112, 31, 0.22);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
  flex-shrink: 0;
}
.shot-loader-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
}
#btnRefreshShots.is-loading .shot-btn-spinner {
  display: inline-block;
}
#btnRefreshShots.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.admin-users-search {
  min-width: 220px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--admin-text);
  background: #fff;
}

.admin-users-search:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.page-body .admin-users-page { padding: 0; }
.landing-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  background: #eef3fb;
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}
.landing-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-family-display); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); text-decoration: none; }
.landing-brand .sidebar-logo-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.landing-brand .sidebar-logo-icon img { width: 22px; height: 22px; }
.landing-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.landing-nav a:not(.btn) { color: var(--text-primary); font-weight: 600; font-size: 14px; text-decoration: none; }
.landing-nav a:not(.btn):hover { color: var(--accent-color); }
.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  padding: 32px 24px 36px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
}
.landing-hero h1,
.lp-head h2,
.lp-faq-head h2 {
  font-family: var(--font-family-display);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 4px 0 12px;
  color: var(--text-primary);
}
.landing-copy > p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; margin-bottom: 16px; max-width: 58ch; }
.landing-points { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.landing-points li { display: flex; align-items: center; gap: 8px; }
.landing-points li::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
}
.landing-visual { position: relative; min-height: 320px; }
.card-hub {
  width: 70%;
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
.card-top { width: 74%; margin-left: 22%; margin-top: -28px; animation: floatY 5.5s ease-in-out infinite reverse; }
.card-bottom { width: 68%; margin-left: 28%; margin-top: -18px; animation: floatY 6.4s ease-in-out infinite; }
.float-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.float-card header { font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.float-bars { display: grid; gap: 8px; }
.float-bars span { height: 10px; border-radius: 99px; background: linear-gradient(90deg, rgba(37,99,235,.28), rgba(249,115,22,.22)); }
.float-bars span:nth-child(2) { width: 78%; background: linear-gradient(90deg, rgba(249,115,22,.28), rgba(37,99,235,.22)); }
.float-bars span:nth-child(3) { width: 56%; }
.float-card p { margin: 12px 0 0; color: var(--text-muted); font-size: 12px; }
.float-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.float-tags em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.float-tags em:first-child { background: rgba(249,115,22,.12); color: #ea580c; }
.float-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.orb-a { width: 84px; height: 84px; right: 8%; top: 8%; background: rgba(249,115,22,.16); animation: floatY 7s ease-in-out infinite; }
.orb-b { width: 56px; height: 56px; left: 4%; bottom: 12%; background: rgba(37,99,235,.16); animation: floatY 5s ease-in-out infinite reverse; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.landing-footer { margin-top: auto; padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.landing-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 10px 11px;
}
.landing-menu span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text-primary);
  border-radius: 99px;
}
.lp-section { padding: 40px 24px; }
.lp-alt {
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.28) 0%, rgba(255, 255, 255, 0) 100%);
}
.lp-wrap { max-width: 1400px; margin: 0 auto; width: 100%; }
.lp-head { text-align: center; max-width: 1100px; margin: 0 auto 24px; }
.lp-title-one { white-space: nowrap; }
.lp-head p:not(.landing-kicker) { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.lp-feature-grid, .lp-price-grid, .lp-quote-grid {
  display: grid;
  gap: 14px;
}
.lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-price-grid, .lp-quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-feature h3, .lp-price h3, .lp-why h3, .landing-footer-grid h4, .float-card header {
  font-family: var(--font-family-display);
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0 8px;
  color: var(--text-primary);
}
.lp-feature p, .lp-price p, .lp-why p, .lp-quote p { color: var(--text-secondary); line-height: 1.7; margin: 0; }
.lp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1e3a8a;
}
.lp-icon svg { width: 22px; height: 22px; }
.lp-icon-blue { background: linear-gradient(135deg, #bfdbfe 0%, #e0f2fe 100%); }
.lp-icon-orange { background: linear-gradient(135deg, #fed7aa 0%, #ffedd5 100%); color: #c2410c; }
.lp-icon-mix { background: linear-gradient(135deg, #bfdbfe 0%, #fed7aa 100%); }
.lp-feature:hover, .lp-quote:hover, .lp-price:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-price { display: flex; flex-direction: column; padding: 20px 18px; }
.lp-price ul { list-style: none; padding: 0; margin: 12px 0 16px; color: var(--text-secondary); }
.lp-price li { padding: 6px 0 6px 22px; position: relative; }
.lp-price li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
}
.lp-price .btn { margin-top: auto; }
.lp-price-tag { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 6px !important; color: var(--text-primary) !important; }
.lp-price-tag strong { font-size: 32px; font-family: var(--font-family-display); }
.lp-price-tag span, .lp-price-note { color: var(--text-muted) !important; font-size: 14px; }
.lp-price-featured {
  border: 1px solid var(--admin-border);
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lp-badge {
  display: inline-flex;
  align-self: flex-start;
  background: #e8f0ff;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.lp-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-why {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.lp-why-num {
  display: inline-block;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 8px;
}
.lp-quote footer { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.lp-quote strong { color: var(--text-primary); font-size: 14px; }
.lp-quote span { color: var(--text-muted); font-size: 12px; }
.lp-faq-board {
  background: #eef3fb;
  border: 1px solid var(--admin-border);
  border-radius: 24px;
  padding: 36px 40px 28px;
}
.lp-faq-head { text-align: left; margin: 0 0 22px; }
.lp-faq-head .landing-kicker { margin-bottom: 10px; }
.lp-faq-head h2 { margin: 0; }
.lp-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 0;
  align-items: start;
}
.lp-faq-item {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(147, 197, 253, 0.5);
}
.lp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 0;
  color: var(--text-primary);
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: -3px;
  border-right: 2px solid #60a5fa;
  border-bottom: 2px solid #60a5fa;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.lp-faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.lp-faq-item p {
  padding: 0 28px 14px 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: lpReveal 0.7s ease forwards;
}
.lp-feature:nth-child(2), .lp-price:nth-child(2), .lp-quote:nth-child(2), .lp-why:nth-child(2) { animation-delay: 0.08s; }
.lp-feature:nth-child(3), .lp-price:nth-child(3), .lp-quote:nth-child(3), .lp-why:nth-child(3) { animation-delay: 0.16s; }
.lp-feature:nth-child(4), .lp-why:nth-child(4), .lp-faq-item:nth-child(4) { animation-delay: 0.24s; }
.lp-faq-item:nth-child(5) { animation-delay: 0.3s; }
@keyframes lpReveal {
  to { opacity: 1; transform: none; }
}
.landing-footer-pro {
  margin-top: auto;
  padding: 28px 24px 14px;
  background: #fff;
  border-top: 1px solid var(--admin-border);
}
.landing-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 20px;
  padding-bottom: 16px;
}
.landing-footer-grid p { color: var(--text-secondary); margin-top: 12px; max-width: 36ch; line-height: 1.6; font-size: 14px; }
.landing-footer-grid h4 { font-family: var(--font-family-display); font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.landing-footer-grid a:not(.btn):not(.landing-brand) {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
}
.landing-footer-grid a:not(.btn):not(.landing-brand):hover { color: var(--accent-color); }
.landing-footer-copy { text-align: center; color: var(--text-muted); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--border-color); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .card-hub, .card-top, .card-bottom, .float-orb, .landing-flow-arrow { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding: 24px 16px 28px; }
  .landing-header { padding: 10px 16px; }
  .landing-menu { display: block; }
  .landing-nav,
  .landing-nav-desktop { display: none !important; }
  .lp-section { padding: 28px 16px; }
  .lp-title-one { white-space: normal; }
  .lp-faq-board { padding: 24px 18px 16px; }
  .lp-faq { column-gap: 0; }
  .lp-feature-grid, .lp-price-grid, .lp-quote-grid, .lp-why-grid, .lp-faq, .landing-footer-grid { grid-template-columns: 1fr; }
  .lp-price-featured { transform: none; }
  .landing-footer-pro { padding: 24px 16px 12px; }
}
.sidebar-user-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg-tertiary); border-radius: var(--border-radius-md); }
.sidebar-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-color); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
#screenshotGrid.shot-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  #screenshotGrid.shot-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #screenshotGrid.shot-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #screenshotGrid.shot-page-grid { grid-template-columns: 1fr; }
}
.shot-pager {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 1.25rem 14px;
  border-top: 1px solid var(--admin-border);
  background: #fff;
}
.shot-pager-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.shot-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.shot-page-size select {
  min-width: 72px;
  padding: 0.4rem 0.55rem;
}
.shot-page-btn {
  min-width: 34px;
  height: 34px;
  border: 1.5px solid rgba(174, 205, 251, 0.9);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #1a1e26;
}
.shot-page-btn:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.shot-page-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}
.shot-pager .btn-ghost {
  min-height: 34px;
  border-radius: 8px;
}
.shot-pager .btn:disabled {
  background: #fff;
  color: #94a3b8;
  border-color: rgba(174, 205, 251, 0.7);
  opacity: 1;
}
.shot-pager-meta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
#deviceShotsBody { max-height: 70vh; overflow: auto; }
#deviceShotsBody .gallery-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
#deviceShotsBody .gallery-card img { height: 140px; object-fit: cover; }
@media (max-width: 1100px) {
  #deviceShotsBody .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #deviceShotsBody .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #deviceShotsBody .gallery-grid { grid-template-columns: 1fr !important; }
}
.gallery-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; cursor: pointer; }
.gallery-card img { width: 100%; height: 160px; object-fit: cover; background: #0f172a; display: block; }
.gallery-card-meta { padding: 12px 14px; font-size: 12px; color: var(--text-secondary); }
.shot-meta-top { margin-bottom: 6px; }
.shot-meta-time { margin-bottom: 8px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.shot-meta-download { display: flex; justify-content: flex-end; }
.shot-download-single span { font-size: 14px; line-height: 1; }
.live-frame { width: 100%; height: auto; max-height: min(58vh, 560px); display: block; border-radius: 8px; background: #0b1220; object-fit: contain; object-position: center; cursor: zoom-in; image-rendering: auto; }
#liveViewBody { min-height: 360px; background: #0b1220; display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; padding: 12px; }
#liveViewBody:has(> div:nth-child(2)) { grid-template-columns: 1fr 1fr; }
#liveViewBody > div { min-width: 0; display: flex; flex-direction: column; }
#liveViewBody:has(> .empty-state) { display: flex; align-items: center; justify-content: center; height: 48vh; }
#liveViewBody.is-full,
#liveViewBody:has(> .live-screen-full) { grid-template-columns: 1fr; height: auto; }
#liveViewBody .live-screen-full { grid-column: 1 / -1; width: 100%; }
#liveViewBody.is-full .live-frame,
#liveViewBody .live-frame-full { width: 100%; height: min(78vh, calc(100vh - 160px)); cursor: zoom-in; object-fit: contain; }
#liveViewBody > .empty-state { margin: 0; padding: 0; color: #94a3b8; font-size: 16px; }
#btnShowAllLive { display: none !important; }
#btnShowAllLive.is-visible { display: inline-flex !important; }
.live-screen-label { color: #94a3b8; font-size: 12px; margin-bottom: 6px; }
.live-fullscreen {
  z-index: 3200;
  flex-direction: column;
  padding: 0;
  background: #000;
  backdrop-filter: none;
  filter: none;
  animation: none;
}
.live-fullscreen-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.35), transparent);
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
}
.live-fullscreen-label {
  flex-shrink: 0;
  white-space: nowrap;
}
.live-fullscreen-bar .btn {
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
  text-shadow: none;
  flex-shrink: 0;
}
.live-fullscreen-bar .btn-ghost {
  color: #0f172a !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
}
.live-fullscreen-bar .btn-ghost:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
.live-fullscreen-bar .btn-primary {
  color: #fff !important;
  background: #ff701f !important;
  border: 1px solid #ff701f !important;
}
.live-fullscreen-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.live-fullscreen-bar .fullscreen-close-btn {
  position: static;
  margin-left: 0;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.live-fps {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-right: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.live-fps-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  flex-shrink: 0;
}
.live-fps-btn {
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}
.live-fps-btn:hover {
  border-color: #94a3b8;
}
.live-fps-btn.is-active {
  background: #ff701f;
  border-color: #ff701f;
  color: #fff;
}
.live-fps-btn-auto {
  min-width: 52px;
  padding: 0 10px;
}
.live-view-modal {
  width: min(1180px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(92vh, 92dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.live-view-modal .live-stage {
  flex: 1 1 auto;
  min-height: 280px;
  overflow: auto;
}
.live-view-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px !important;
  box-sizing: border-box;
  overflow: visible;
}
.live-view-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.live-fullscreen-bar .live-fps {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: auto !important;
  flex: 0 1 auto;
  margin-right: 0;
  min-width: 0;
}
.live-fullscreen-bar .live-fps-label {
  color: #fff;
  text-shadow: none;
}
.live-fullscreen-bar .live-fps-btn {
  background: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}
.live-fullscreen-bar .live-fps-btn.is-active {
  background: #ff701f;
  color: #fff;
}
.live-btn-short {
  display: none;
}
.live-fullscreen-image {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  object-position: center;
  background: #000;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  filter: none;
}

@media (max-width: 768px) {
  .live-fullscreen-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label actions"
      "fps fps";
    align-items: center;
    gap: 10px 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px));
    overflow: visible;
    background: rgba(2, 6, 23, 0.96);
  }
  .live-fullscreen-label {
    grid-area: label;
    font-size: 13px;
  }
  .live-fullscreen-bar .live-fps {
    grid-area: fps;
    width: 100% !important;
    flex: 1 1 auto !important;
    flex-wrap: wrap !important;
    gap: 6px;
  }
  .live-fullscreen-actions {
    grid-area: actions;
    margin-left: 0;
    gap: 6px;
  }
  .live-fullscreen-bar .btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .live-fullscreen-bar .live-btn-full {
    display: none;
  }
  .live-fullscreen-bar .live-btn-short {
    display: inline;
  }
  .live-fullscreen-bar .live-fps-btn {
    min-width: 32px;
    height: 32px;
  }
  .live-fullscreen-bar .fullscreen-close-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .live-fullscreen-image {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
}
.live-stage {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
}
.live-buffering {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(11, 18, 32, 0.88);
  color: #e2e8f0;
  text-align: center;
  padding: 24px;
}
.live-buffering[hidden] { display: none !important; }
.live-buffering.is-reconnect {
  background: rgba(11, 18, 32, 0.48);
}
.live-buffering strong {
  font-size: 1rem;
  font-weight: 800;
}
.live-buffering span:last-child {
  font-size: 0.85rem;
  color: #94a3b8;
}
.live-buffering-spin {
  width: 36px;
  height: 36px;
  border: 3px solid #334155;
  border-top-color: #fdba74;
  border-radius: 50%;
  animation: live-buffer-spin 0.8s linear infinite;
}
@keyframes live-buffer-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 900px) {
  #liveViewBody { grid-template-columns: 1fr; }
}
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--text-secondary); }
.action-row { display: flex; gap: 6px; flex-wrap: wrap; }
.action-row .btn { width: auto; padding: 6px 10px; font-size: 12px; }
.mobile-menu-btn { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-primary); }
.sidebar.open { transform: translateX(0); }
@media (max-width: 900px) {
  .app-header-menu { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; top: var(--app-header-h); height: calc(100vh - var(--app-header-h)); }
  .main-content { margin-left: 0; }
  .stats-row, .overview-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   AUTH — one board on a scanning backdrop
   ================================================================ */
.auth-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #eef3fb;
}

.auth-scan-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 38%, transparent 82%);
}

.auth-scan-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.auth-scan-glow-a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -40px;
  background: rgba(37, 99, 235, 0.16);
  animation: authPulse 7s ease-in-out infinite;
}

.auth-scan-glow-b {
  width: 380px;
  height: 380px;
  left: -60px;
  bottom: -90px;
  background: rgba(249, 115, 22, 0.14);
  animation: authPulse 8s ease-in-out infinite reverse;
}

.auth-scan-radar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140vmax;
  height: 140vmax;
  margin: -70vmax 0 0 -70vmax;
  background: conic-gradient(from 180deg, transparent 0 78%, rgba(37, 99, 235, 0.10) 88%, transparent 100%);
  animation: authRadar 10s linear infinite;
}

.auth-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.12), transparent);
  animation: authScan 4.8s linear infinite;
}

.auth-scan-beam-delay {
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.10), transparent);
  animation-duration: 7.2s;
  animation-delay: 1.6s;
}

.auth-scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb, #f97316, transparent);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
  animation: authScan 4.8s linear infinite;
  opacity: 0.7;
}

.auth-viewport {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  box-sizing: border-box;
}

.auth-board {
  width: min(960px, 92vw);
  min-height: min(540px, 78vh);
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.auth-stage,
.auth-panel {
  position: relative;
  min-width: 0;
  min-height: 0; /* critical: allow grid children to shrink so overflow-y can scroll */
  color: #1a1e26;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-stage {
  overflow: hidden;
  border-right: 1px solid #e5e7eb;
}

.auth-panel {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  align-items: stretch;
  justify-content: flex-start;
  padding-bottom: 32px;
}

/* Subscribe / tall activate form: lock board height and force panel scroll */
.auth-board--subscribe {
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  min-height: 0;
}

.auth-panel--scroll {
  overflow-y: scroll;
  height: 100%;
  max-height: 100%;
}

.auth-panel--scroll .subscribe-card,
.auth-panel--scroll .auth-card {
  margin-block: 0;
  flex: 0 0 auto;
}

.auth-stage-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1e3a8a;
  background: linear-gradient(135deg, #bfdbfe 0%, #fed7aa 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: none;
}

.auth-stage-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
}
.auth-stage-brand:hover {
  color: inherit;
}
.auth-stage-brand:hover strong { color: var(--accent-color); }

.auth-eye {
  transform-origin: 12px 12px;
  animation: authBlink 4.8s ease-in-out infinite;
}

.auth-stage-brand strong {
  display: block;
  font-family: var(--font-family-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1e26;
}

.auth-stage-brand span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.monitor-wall {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 0.72fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.monitor-screen {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  display: flex;
  flex-direction: column;
}

.monitor-screen.is-live { grid-row: 1 / 3; }

.monitor-screen header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  font-size: 11px;
  color: #6b7280;
}

.monitor-screen .chrome {
  width: 28px;
  height: 8px;
  border-radius: 99px;
  background: radial-gradient(circle at 4px 50%, #f97316 3px, transparent 4px),
              radial-gradient(circle at 14px 50%, #fb923c 3px, transparent 4px),
              radial-gradient(circle at 24px 50%, #2563eb 3px, transparent 4px);
}

.monitor-screen em { font-style: normal; flex: 1; }

.monitor-screen b {
  font-size: 9px;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 99px;
}

.monitor-screen.is-live b {
  color: #fff;
  background: #f97316;
  animation: authPulse 1.6s ease-in-out infinite;
}

.monitor-screen.is-capture b { color: #1e3a8a; background: #93c5fd; }
.monitor-screen.is-idle b { color: #5c6470; background: #e8e4e6; }

.monitor-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #f5f8ff;
}

.desk-bar {
  height: 22px;
  margin: 14px 14px 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #dbeafe, #ffedd5 50%, #dbeafe);
}

.desk-windows {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  padding: 0 14px;
}

.desk-windows span {
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(180deg, #bfdbfe, #93c5fd);
  opacity: 0.95;
}

.desk-windows span:first-child { grid-row: span 2; height: 118px; }
.desk-windows span:nth-child(2) { background: linear-gradient(180deg, #fdba74, #fb923c); }
.desk-windows span:nth-child(3) { height: 56px; }

.cursor-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px 10px 10px 10px;
  background: #1a1e26;
  box-shadow: 0 0 0 1px #fff;
  animation: authCursor 7s ease-in-out infinite;
}

.capture-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: authFlash 5.2s ease-in-out infinite;
}

.capture-flash.delay { animation-delay: 2.4s; }

.sheet-lines {
  margin: 18px 14px;
  height: 70%;
  background: repeating-linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.16) 0 8px,
    transparent 8px 18px
  );
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  animation: authLines 3.2s ease-in-out infinite;
}

.idle-wave {
  position: absolute;
  inset: 30% 18% auto;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  animation: authWave 2.4s ease-in-out infinite;
}

.auth-body .auth-card {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  margin-block: auto; /* vertically center short forms; scroll naturally when tall */
}

.auth-body .auth-card::before { display: none; }

.auth-body .form-group { margin-bottom: 16px; }

.auth-body .auth-header {
  text-align: left;
  margin-bottom: 20px;
}

.auth-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 8px;
}

.auth-body .auth-title {
  font-size: 26px;
  line-height: 1.18;
}

.auth-body .auth-subtitle {
  margin-top: 8px;
  max-width: 34ch;
}

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-forgot-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-teal);
  text-decoration: none;
  margin-bottom: 8px;
}

.auth-forgot-link:hover { text-decoration: underline; }

.auth-info-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

.auth-info-box[hidden] { display: none !important; }

.auth-info-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.auth-info-box p { margin: 0; color: var(--text-secondary); }

.auth-info-box.is-error {
  margin-top: 0;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.auth-info-box.is-error .btn { margin-top: 12px; }

#resetPasswordForm[hidden] { display: none !important; }

.verify-state[hidden] { display: none !important; }

.verify-state .auth-info-box { margin-top: 0; }

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.verify-actions .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.register-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.register-form-row .form-group {
  margin-bottom: 16px;
  min-width: 0;
}

.register-form-row-single {
  grid-template-columns: 1fr;
}

@media (max-width: 560px) {
  .register-form-row {
    grid-template-columns: 1fr;
  }
}

@keyframes authScan {
  0% { top: -140px; }
  100% { top: 110%; }
}

@keyframes authRadar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes authPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes authBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(0.12); }
}

@keyframes authCursor {
  0% { top: 38%; left: 22%; }
  30% { top: 58%; left: 48%; }
  58% { top: 28%; left: 62%; }
  100% { top: 38%; left: 22%; }
}

@keyframes authFlash {
  0%, 86%, 100% { opacity: 0; }
  88% { opacity: 0.55; }
  92% { opacity: 0; }
}

@keyframes authLines {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes authWave {
  0%, 100% { transform: scaleX(0.4); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 900px) {
  .auth-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: auto;
    max-height: none;
    height: auto;
    width: min(560px, 94vw);
  }
  .auth-board--subscribe {
    height: auto;
    max-height: none;
  }
  .auth-stage,
  .auth-panel {
    padding: 24px 20px;
  }
  .auth-panel,
  .auth-panel--scroll {
    max-height: none;
    height: auto;
    overflow: visible;
  }
  .auth-stage {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .monitor-wall { min-height: 200px; }
  .auth-viewport {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-scan-beam,
  .auth-scan-beam-delay,
  .auth-scan-line,
  .auth-scan-radar,
  .auth-scan-glow { animation: none; }
}

.overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.overview-updated {
  font-size: 12px;
  color: var(--admin-muted);
  white-space: nowrap;
}

.overview-stats {
  margin-bottom: 16px;
}

.overview-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.overview-chart-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(147, 197, 253, 0.16);
  padding: 1.1rem 1.25rem 1.2rem;
  min-width: 0;
}

.overview-chart-card:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(191, 219, 254, 0.35) 0%, #fff 42%);
}

.overview-chart-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(254, 215, 170, 0.38) 0%, #fff 42%);
}

.overview-chart-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(254, 215, 170, 0.28) 0%, #fff 42%);
}

.overview-chart-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(191, 219, 254, 0.28) 0%, #fff 42%);
}

.overview-chart-wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(191, 219, 254, 0.22) 0%, rgba(254, 215, 170, 0.18) 28%, #fff 48%);
}

.overview-chart-wrap-wide {
  height: 320px;
}

.overview-chart-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text);
}

.overview-chart-card > p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--admin-muted);
}

.overview-chart-wrap {
  height: 250px;
}

.overview-donut-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 12px;
  align-items: center;
}

.overview-donut-wrap {
  position: relative;
  height: 220px;
}

.overview-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.overview-donut-center strong {
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--admin-text);
}

.overview-donut-center span {
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.overview-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.overview-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--admin-muted);
}

.overview-legend strong {
  color: var(--admin-text);
  font-size: 0.95rem;
}

.overview-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.overview-insights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.overview-insights li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(191, 219, 254, 0.45) 0%, rgba(254, 215, 170, 0.35) 100%);
  border: 1px solid rgba(174, 205, 251, 0.6);
}

.overview-insight-icon {
  font-size: 1.1rem;
  line-height: 1.3;
}

.overview-insights strong {
  display: block;
  font-size: 0.9rem;
  color: var(--admin-text);
}

.overview-insights p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--admin-muted);
}

.plan-gate {
  position: relative;
  overflow: hidden;
}

.plan-gate.is-locked > :not(.plan-gate-lock) {
  filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.plan-gate-lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  color: #0f172a;
}

.plan-gate-lock[hidden] {
  display: none !important;
}

.plan-gate-lock strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.plan-gate-lock span {
  font-size: 0.8rem;
  color: #64748b;
  max-width: 16rem;
  line-height: 1.4;
}

.stat-card.plan-gate.is-locked .plan-gate-lock {
  background: rgba(255, 255, 255, 0.72);
}

.stat-card.plan-gate.is-locked .plan-gate-lock span {
  font-size: 0.72rem;
}

.device-interval-locked {
  position: relative;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.device-interval-locked .device-interval-blur {
  filter: blur(4px);
  opacity: 0.5;
  pointer-events: none;
}

.device-interval-locked .device-interval-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.72);
}

.device-interval-locked .device-interval-lock strong {
  font-size: 10px;
  line-height: 1.1;
}

.device-interval-locked .device-interval-lock span {
  font-size: 9px;
  color: #64748b;
}

@media (max-width: 1024px) {
  .overview-charts,
  .overview-donut-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .overview-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
