/* ═══════════════════════════════════════════
   SERVERVISOR — Global Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --navy:         #0f1c2e;
  --navy-mid:     #162540;
  --navy-card:    #1a2d47;
  --blue:         #2a5fa5;
  --ice:          #b8d4f0;
  --ice-light:    #e8f2fc;
  --orange:       #f59e2b;
  --white:        #ffffff;
  --ping-green:   #22c55e;
  --ping-red:     #ef4444;
  --ping-yellow:  #eab308;
  --ping-grey:    #64748b;
  --radius-sm:    10px;
  --radius-md:    14px;
  --radius-lg:    18px;
  --radius-xl:    24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
input, textarea, select { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── ANIMATED BACKGROUND ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #1e3a5f 0%, var(--navy) 70%);
  overflow: hidden;
  pointer-events: none;
}
.bg-circles { position: absolute; inset: 0; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184, 212, 240, 0.08);
  animation: expandRing 6s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.ring:nth-child(1) { width: 300px;  height: 300px;  animation-delay: 0s; }
.ring:nth-child(2) { width: 600px;  height: 600px;  animation-delay: 2s; }
.ring:nth-child(3) { width: 900px;  height: 900px;  animation-delay: 4s; }
.ring:nth-child(4) { width: 1200px; height: 1200px; animation-delay: 6s; }
.ring:nth-child(5) { width: 1600px; height: 1600px; animation-delay: 8s; }
@keyframes expandRing {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}
.dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(184, 212, 240, 0.15);
  animation: floatDot linear infinite;
}
@keyframes floatDot {
  0%   { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50%  { opacity: 0.7; }
  100% { transform: translateY(-80px) rotate(180deg); opacity: 0; }
}

/* ── SHARED LAYOUT ── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 62px;
  background: rgba(15, 28, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,212,240,0.1);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ping-green);
  box-shadow: 0 0 8px var(--ping-green);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}
.logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}
.logo-name span { color: var(--orange); }

/* ── SITE NAV ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.55;
  padding: 6px 11px;
  border-radius: 8px;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { opacity: 0.9; background: rgba(255,255,255,0.06); }
.site-nav a.active { opacity: 1; background: rgba(255,255,255,0.08); }

/* ── HEADER RIGHT / USER MENU ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.user-menu-wrap {
  position: relative;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,212,240,0.15);
  border-radius: 100px;
  padding: 5px 12px 5px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ice);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.user-pill:hover { background: rgba(255,255,255,0.1); border-color: rgba(184,212,240,0.28); }
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.user-name { color: var(--ice); }
.user-chevron { color: var(--ice); opacity: 0.5; transition: transform 0.2s; flex-shrink: 0; }
.user-pill[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }

/* ── USER DROPDOWN ── */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #1a2d47;
  border: 1px solid rgba(184,212,240,0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 200;
  animation: fadeIn 0.15s ease;
}
.user-dropdown.open { display: block; }

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
}
.user-dropdown-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.user-dropdown-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
}
.user-dropdown-email {
  font-size: 0.75rem;
  color: var(--ice);
  opacity: 0.5;
  margin-top: 1px;
}
.user-dropdown-divider {
  height: 1px;
  background: rgba(184,212,240,0.08);
  margin: 4px 0;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.75;
  transition: background 0.12s, opacity 0.12s;
  cursor: pointer;
}
.user-dropdown-item:hover { background: rgba(255,255,255,0.06); opacity: 1; }
.user-dropdown-item.active { opacity: 1; color: var(--white); }
.user-dropdown-item svg { opacity: 0.6; flex-shrink: 0; }
.user-dropdown-item-danger { color: #fca5a5; }
.user-dropdown-item-danger:hover { background: rgba(239,68,68,0.1); opacity: 1; }

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(184,212,240,0.08);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ice);
  opacity: 0.4;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ice);
  opacity: 0.35;
  transition: opacity 0.15s;
}
.footer-links a:hover { opacity: 0.7; }

/* ── SHARED FORM CONTROLS ── */
.sv-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(184,212,240,0.2);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.sv-input::placeholder { color: rgba(184,212,240,0.35); }
.sv-input:focus {
  border-color: rgba(184,212,240,0.5);
  background: rgba(255,255,255,0.1);
}
textarea.sv-input { resize: vertical; min-height: 100px; line-height: 1.6; }

.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.sv-btn:hover   { transform: translateY(-1px); }
.sv-btn:active  { transform: translateY(0); }
.sv-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.sv-btn-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(245,158,43,0.3);
}
.sv-btn-primary:hover { background: #fbbf24; box-shadow: 0 6px 20px rgba(245,158,43,0.45); }

.sv-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--ice);
  border: 1px solid rgba(184,212,240,0.2);
}
.sv-btn-secondary:hover { background: rgba(255,255,255,0.13); }

.sv-btn-danger {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
}
.sv-btn-danger:hover { background: rgba(239,68,68,0.25); }

.sv-btn-ghost {
  background: transparent;
  color: var(--ice);
  opacity: 0.5;
  padding: 8px 10px;
}
.sv-btn-ghost:hover { opacity: 1; background: rgba(255,255,255,0.07); }

/* ── CARDS ── */
.sv-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-xl);
  padding: 24px;
}

/* ── SECTION LABEL ── */
.sv-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.45;
  margin-bottom: 10px;
}

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-up    { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-up    .badge-dot { background: var(--ping-green); box-shadow: 0 0 5px var(--ping-green); }
.badge-down  { background: rgba(239,68,68,0.15);  color: #f87171; }
.badge-down  .badge-dot { background: var(--ping-red); }
.badge-warn  { background: rgba(234,179,8,0.15);  color: #fde047; }
.badge-warn  .badge-dot { background: var(--ping-yellow); }
.badge-off   { background: rgba(100,116,139,0.15); color: #94a3b8; }
.badge-off   .badge-dot { background: var(--ping-grey); }
.badge-pending { background: rgba(42,95,165,0.2); color: var(--ice); }
.badge-pending .badge-dot { background: var(--blue); animation: pulse 1.5s ease infinite; }

/* ── TOGGLE SWITCH ── */
.sv-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.sv-toggle input { opacity: 0; width: 0; height: 0; }
.sv-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(100,116,139,0.4);
  border-radius: 100px;
  transition: background 0.2s;
  cursor: pointer;
}
.sv-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}
.sv-toggle input:checked + .sv-toggle-slider { background: var(--ping-green); }
.sv-toggle input:checked + .sv-toggle-slider::before { transform: translateX(18px); }

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px currentColor; }
  50%       { box-shadow: 0 0 14px currentColor; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-up { animation: fadeUp 0.4s ease both; }

/* ── LOGO BADGE (landing page) ── */
.logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,212,240,0.2);
  border-radius: 100px;
  padding: 8px 20px 8px 12px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s ease both;
}
.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ping-green);
  box-shadow: 0 0 8px var(--ping-green);
  animation: pulse 2s ease infinite;
}
.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .site-header nav { display: none; }
  .site-footer { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   DASHBOARD STYLES
   ═══════════════════════════════════════════ */

.dash-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Top bar ── */
.dash-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.dash-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dash-subtitle {
  font-size: 0.85rem;
  color: var(--ice);
  opacity: 0.5;
  margin-top: 3px;
}
.dash-topbar-actions { display: flex; gap: 8px; }

/* ── Summary cards ── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.summary-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s;
}
.summary-card-up    { border-color: rgba(34,197,94,0.2);  background: rgba(34,197,94,0.05); }
.summary-card-alert { border-color: rgba(239,68,68,0.3);  background: rgba(239,68,68,0.07); }
.summary-card-warn  { border-color: rgba(234,179,8,0.3);  background: rgba(234,179,8,0.06); }
.summary-icon { font-size: 1.5rem; }
.summary-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}
.summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.5;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Add bar ── */
.add-bar { padding: 20px 24px; }
.add-bar-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}
.add-input-wrap { flex: 1; }
.add-hint {
  font-size: 0.75rem;
  color: var(--ice);
  opacity: 0.35;
  margin-top: 8px;
}
.sv-btn-active {
  background: rgba(42,95,165,0.25) !important;
  border-color: rgba(42,95,165,0.5) !important;
  color: var(--ice) !important;
}

/* ── Table controls ── */
.table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.table-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.table-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ice);
  opacity: 0.35;
  pointer-events: none;
}
.table-search { padding-left: 36px; }
.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,212,240,0.12);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ice);
  opacity: 0.55;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-pill:hover { opacity: 0.9; background: rgba(255,255,255,0.09); }
.filter-pill.active {
  background: rgba(42,95,165,0.25);
  border-color: rgba(42,95,165,0.5);
  color: var(--ice);
  opacity: 1;
}
.filter-count {
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: 0.7rem;
}

/* ── Domain table ── */
.domain-table-wrap {
  padding: 0;
  overflow: hidden;
}
.domain-table {
  width: 100%;
  border-collapse: collapse;
}
.domain-table thead th {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.35;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(184,212,240,0.08);
}
.domain-table tbody tr {
  border-bottom: 1px solid rgba(184,212,240,0.06);
  transition: background 0.15s;
}
.domain-table tbody tr:last-child { border-bottom: none; }
.domain-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.domain-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.domain-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.domain-favicon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.domain-name {
  font-weight: 800;
  color: var(--white);
  font-size: 0.9rem;
}
.domain-added {
  font-size: 0.72rem;
  color: var(--ice);
  opacity: 0.4;
  margin-top: 2px;
}

.response-ms   { font-weight: 800; font-size: 0.85rem; }
.response-fast { color: #4ade80; }
.response-ok   { color: #fde047; }
.response-slow { color: #f87171; }
.response-na   { color: var(--ice); opacity: 0.3; }

.monitor-toggles { display: flex; flex-direction: column; gap: 10px; }
.monitor-toggle-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: default;
}
.monitor-toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.5;
  width: 46px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.disable-monitor-btn {
  font-size: 0.72rem !important;
  padding: 3px 10px !important;
  margin-top: 4px;
  opacity: 0.45;
  color: #fca5a5 !important;
  border-color: rgba(239,68,68,0.2) !important;
}
.disable-monitor-btn:hover { opacity: 1 !important; background: rgba(239,68,68,0.1) !important; }

.checked-at {
  font-size: 0.8rem;
  color: var(--ice);
  opacity: 0.4;
}

.row-actions { display: flex; gap: 2px; align-items: center; }
.sv-btn-danger-ghost { color: #fca5a5 !important; opacity: 0.3 !important; }
.sv-btn-danger-ghost:hover { opacity: 1 !important; background: rgba(239,68,68,0.1) !important; }

/* ── Info popup (? button) ── */
.info-popup-wrap {
  position: relative;
  display: inline-flex;
}
.info-popup-btn {
  padding: 3px 5px !important;
  opacity: 0.4;
  line-height: 1;
}
.info-popup-btn:hover, .info-popup-btn.open { opacity: 1; }
.info-popup {
  min-width: 270px;
  white-space: normal;
  cursor: default;
  pointer-events: none;
}
.info-popup.open { pointer-events: auto; }
.info-popup-body {
  font-size: 0.80rem;
  font-weight: 400;
  color: var(--ice);
  opacity: 0.8;
  line-height: 1.55;
  padding: 2px 4px;
  text-transform: none;
  letter-spacing: 0;
}
.info-popup-body strong { color: var(--white); opacity: 1; font-weight: 700; }

/* ── Row gear menu ── */
tr.row-menu-active {
  position: relative;
  z-index: 100;
}
.row-menu-wrap {
  position: relative;
}
.row-menu-btn { opacity: 0.4; }
.row-menu-btn:hover, .row-menu-btn.open { opacity: 1; }
.row-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  min-width: 178px;
  background: var(--navy-card);
  border: 1px solid rgba(184,212,240,0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  padding: 5px;
}
.row-menu.open { display: block; }
.row-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  opacity: 0.85;
}
.row-menu-item:hover { background: rgba(255,255,255,0.08); opacity: 1; }
.row-menu-item svg { flex-shrink: 0; opacity: 0.7; }
.row-menu-item-danger { color: #fca5a5; }
.row-menu-item-danger:hover { background: rgba(239,68,68,0.1); }
.row-menu-divider {
  height: 1px;
  background: rgba(184,212,240,0.1);
  margin: 5px 0;
}

.table-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px;
  gap: 12px;
  color: var(--ice);
  opacity: 0.4;
  font-weight: 700;
}
.table-empty-icon { font-size: 2.5rem; }

/* ── Responsive dashboard ── */
@media (max-width: 900px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-wrap { padding: 20px 16px 48px; }
  .domain-table thead th:nth-child(3),
  .domain-table tbody td:nth-child(3),
  .domain-table thead th:nth-child(6),
  .domain-table tbody td:nth-child(6) { display: none; }
}
@media (max-width: 600px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .add-bar-row { flex-wrap: wrap; }
  .domain-table thead th:nth-child(5),
  .domain-table tbody td:nth-child(5) { display: none; }
}

/* ── Plan banner ── */
.plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(234,179,8,0.07);
  border: 1px solid rgba(234,179,8,0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  flex-wrap: wrap;
}
.plan-banner-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.plan-banner-icon { font-size: 1.4rem; flex-shrink: 0; }
.plan-banner-title { font-size: 0.88rem; font-weight: 700; color: var(--white); }
.plan-banner-title strong { color: #fde047; }
.plan-banner-sub { font-size: 0.78rem; color: var(--ice); opacity: 0.6; margin-top: 3px; }
.plan-banner-btn { flex-shrink: 0; }

/* ── Add bar header ── */
.add-bar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.add-bar-limit-note { font-size: 0.78rem; color: var(--ice); opacity: 0.5; }
.upgrade-link { color: var(--orange); opacity: 1; font-weight: 700; transition: opacity 0.15s; }
.upgrade-link:hover { opacity: 0.8; }

/* ── Unmonitored rows ── */
.row-unmonitored { opacity: 0.55; }
.row-unmonitored:hover { opacity: 0.8; }
.row-unmonitored .domain-name { color: var(--ice); }

.unmonitored-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.unmonitored-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ice);
  opacity: 0.4;
}
.unmonitored-enable-btn {
  font-size: 0.78rem !important;
  padding: 5px 12px !important;
}
.upgrade-link-small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.8;
  transition: opacity 0.15s;
}
.upgrade-link-small:hover { opacity: 1; }

/* ── Summary sub-value ── */
.summary-val-sub {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.45;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════════
   ALERTS PAGE STYLES
   ═══════════════════════════════════════════ */

/* ── Page tabs ── */
.page-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(184,212,240,0.1);
  margin-bottom: 28px;
}
.page-tab {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.45;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: opacity 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.page-tab:hover { opacity: 0.85; }
.page-tab.active { opacity: 1; border-bottom-color: var(--orange); color: var(--white); }

/* ── Tab panels ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Section header row ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.section-desc {
  font-size: 0.8rem;
  color: var(--ice);
  opacity: 0.5;
  margin-top: 3px;
}

/* ── Contact cards ── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.contact-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(184,212,240,0.2); }
.contact-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-size: 0.9rem; font-weight: 800; color: var(--white); }
.contact-channels {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(42,95,165,0.2);
  color: var(--ice);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.channel-chip-email  { background: rgba(34,197,94,0.12);  color: #86efac; }
.channel-chip-sms    { background: rgba(245,158,43,0.12); color: #fcd34d; }
.channel-chip-webhook{ background: rgba(139,92,246,0.15); color: #c4b5fd; }
.channel-chip-push   { background: rgba(14,165,233,0.15); color: #7dd3fc; }
.contact-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ── Add contact form ── */
.add-contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(184,212,240,0.18);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: none;
}
.add-contact-form.open { display: block; }
.add-contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 12px;
}
.add-contact-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.add-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid rgba(184,212,240,0.1);
}
.channel-checks-col {
  flex-direction: column;
  gap: 8px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.5;
}
.form-field-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ── Channel checkboxes ── */
.channel-checks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.channel-check {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,212,240,0.12);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.6;
  transition: all 0.15s;
  user-select: none;
}
.channel-check input { display: none; }
.channel-check:has(input:checked) {
  opacity: 1;
  border-color: rgba(184,212,240,0.35);
  background: rgba(255,255,255,0.09);
}
.channel-check-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.channel-check:has(input:checked) .channel-check-dot { opacity: 1; }

/* ── Small time selects (tier editor) ── */
.sv-select-sm {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(184,212,240,0.15);
  border-radius: 6px;
  color: var(--ice);
  font-size: 0.82rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 5px 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.sv-select-sm:focus { outline: none; border-color: rgba(184,212,240,0.4); }
.sv-select-sm option { background: var(--navy-card); color: var(--ice); }
.tier-time-row { display: flex; align-items: center; gap: 6px; }
.tier-time-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ice);
  opacity: 0.45;
  min-width: 30px;
}
.tier-time-sep { color: var(--ice); opacity: 0.4; font-size: 0.9rem; }

/* ── Priority tier table ── */
.priority-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}
/* Round the corners so the card border-radius shows without overflow:hidden */
.priority-table thead tr:first-child th:first-child { border-top-left-radius:  var(--radius-xl); }
.priority-table thead tr:first-child th:last-child  { border-top-right-radius: var(--radius-xl); }
.priority-table tbody tr:last-child  td:first-child { border-bottom-left-radius:  var(--radius-xl); }
.priority-table tbody tr:last-child  td:last-child  { border-bottom-right-radius: var(--radius-xl); }
.priority-table th {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.35;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(184,212,240,0.08);
}
.priority-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(184,212,240,0.05);
}
.priority-table tr:last-child td { border-bottom: none; }
.priority-table tr:hover td { background: rgba(255,255,255,0.02); }

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.priority-low      { background: rgba(100,116,139,0.2); color: #94a3b8; }
.priority-medium   { background: rgba(42,95,165,0.25);  color: #93c5fd; }
.priority-high     { background: rgba(234,179,8,0.2);   color: #fde047; }
.priority-critical { background: rgba(239,68,68,0.2);   color: #f87171; }

.priority-channels { display: flex; gap: 6px; flex-wrap: wrap; }

.priority-select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(184,212,240,0.2);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8d4f0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.priority-select:focus { border-color: rgba(184,212,240,0.45); }
.priority-select option { background: #1a2d47; }

/* ── Condition overrides ── */
.override-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.override-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.override-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.7;
  white-space: nowrap;
}
.override-label strong { color: var(--white); opacity: 1; }
.override-spacer { flex: 1; }
.override-actions { display: flex; gap: 6px; align-items: center; }

/* ── Domain-contact assignment ── */
.domain-assign-list { display: flex; flex-direction: column; gap: 10px; }
.domain-assign-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.domain-assign-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  min-width: 180px;
  flex-shrink: 0;
}
.domain-assign-priority { flex-shrink: 0; }
.domain-assign-contacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
}
.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,95,165,0.2);
  border: 1px solid rgba(42,95,165,0.3);
  border-radius: 100px;
  padding: 4px 10px 4px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ice);
  cursor: default;
}
.contact-tag-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  flex-shrink: 0;
}
.contact-tag-remove {
  background: none;
  border: none;
  color: var(--ice);
  opacity: 0;
  cursor: pointer;
  padding: 2px 5px;
  line-height: 1;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.contact-tag:hover .contact-tag-remove { opacity: 0.6; }
.contact-tag-remove:hover {
  opacity: 1 !important;
  color: #fca5a5;
  background: rgba(239,68,68,0.15);
}
.add-contact-tag-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.4;
  background: none;
  border: 1px dashed rgba(184,212,240,0.2);
  border-radius: 100px;
  padding: 4px 10px;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
}
.add-contact-tag-btn:hover { opacity: 0.9; border-color: rgba(184,212,240,0.4); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .add-contact-cols { grid-template-columns: 1fr; }
  .add-contact-channels { padding-left: 0; border-left: none; border-top: 1px solid rgba(184,212,240,0.1); padding-top: 16px; }
  .domain-assign-row { flex-direction: column; align-items: flex-start; }
  .domain-assign-name { min-width: unset; }
}

/* ═══════════════════════════════════════════
   INTEGRATIONS PAGE STYLES
   ═══════════════════════════════════════════ */

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.integration-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.15s, border-color 0.15s;
}
.integration-card:hover { background: rgba(255,255,255,0.06); }
.integration-card.connected {
  border-color: rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.03);
}
.integration-card.coming-soon {
  opacity: 0.45;
  pointer-events: none;
}

.integration-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.integration-identity { display: flex; align-items: center; gap: 14px; }
.integration-logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.integration-logo-slack   { background: #3c1a47; }
.integration-logo-webhook { background: rgba(139,92,246,0.2); }
.integration-logo-zapier  { background: rgba(255,80,0,0.15); }

.integration-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
}
.integration-tagline {
  font-size: 0.78rem;
  color: var(--ice);
  opacity: 0.5;
  margin-top: 3px;
  line-height: 1.4;
}

.integration-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.integration-status-connected {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}
.integration-status-disconnected {
  background: rgba(100,116,139,0.15);
  color: #94a3b8;
}
.integration-status-soon {
  background: rgba(42,95,165,0.15);
  color: var(--ice);
}

.integration-body {
  font-size: 0.82rem;
  color: var(--ice);
  opacity: 0.6;
  line-height: 1.6;
}

/* Connected details */
.integration-detail {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.integration-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.integration-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ice);
  opacity: 0.4;
}
.integration-detail-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

/* Webhook list */
.webhook-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.webhook-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.webhook-item-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.webhook-item-dot-active   { background: var(--ping-green); box-shadow: 0 0 5px var(--ping-green); }
.webhook-item-dot-inactive { background: var(--ping-grey); }
.webhook-item-url {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.webhook-item-events {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.35;
  white-space: nowrap;
}

/* Add webhook form */
.add-webhook-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.add-webhook-form.open { display: flex; }

.events-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.integration-footer {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(184,212,240,0.07);
}
.integration-footer .sv-btn {
  font-size: 0.78rem;
  padding: 8px 12px;
}

/* ═══════════════════════════════════════════
   BILLING PAGE STYLES
   ═══════════════════════════════════════════ */

.billing-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

/* ── Plan card ── */
.plan-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.plan-card-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(184,212,240,0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.plan-card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}
.plan-card-price {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price-amount {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.plan-price-period {
  font-size: 0.82rem;
  color: var(--ice);
  opacity: 0.5;
  font-weight: 600;
}
.plan-price-sub {
  font-size: 0.75rem;
  color: var(--ice);
  opacity: 0.4;
  margin-top: 5px;
}
.plan-card-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }

/* ── Usage meter ── */
.usage-meter { display: flex; flex-direction: column; gap: 8px; }
.usage-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.usage-meter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.usage-meter-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--white);
}
.usage-meter-val span { color: var(--ice); opacity: 0.4; font-weight: 600; }
.usage-bar-track {
  height: 7px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--ping-green);
  transition: width 0.4s ease;
}
.usage-bar-fill.usage-warn   { background: var(--ping-yellow); }
.usage-bar-fill.usage-danger { background: var(--ping-red); }
.usage-overage {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fde047;
  margin-top: 2px;
}

/* ── Plan features list ── */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(184,212,240,0.07);
}
.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--ice);
  opacity: 0.7;
}
.plan-feature-check {
  color: var(--ping-green);
  flex-shrink: 0;
  opacity: 1;
}

.plan-card-footer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Plan comparison tiles ── */
.plan-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.plan-tier-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,212,240,0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.plan-tier-tile:hover { background: rgba(255,255,255,0.07); border-color: rgba(184,212,240,0.2); }
.plan-tier-tile.current {
  border-color: var(--orange);
  background: rgba(245,158,43,0.06);
}
.plan-tier-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.plan-tier-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
}
.plan-tier-price span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ice);
  opacity: 0.5;
}
.plan-tier-domains {
  font-size: 0.72rem;
  color: var(--ice);
  opacity: 0.45;
  margin-top: 4px;
}
.plan-tier-overage {
  font-size: 0.68rem;
  color: var(--ice);
  opacity: 0.3;
  margin-top: 3px;
}
.plan-tier-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--orange);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 100px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Sidebar cards ── */
.billing-sidebar { display: flex; flex-direction: column; gap: 16px; }

.billing-meta-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.billing-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.billing-meta-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice);
  opacity: 0.4;
}
.billing-meta-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.billing-meta-val .edit-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.billing-meta-val .edit-link:hover { opacity: 1; }

.billing-meta-divider {
  height: 1px;
  background: rgba(184,212,240,0.07);
}

/* Inline edit field */
.billing-inline-edit { display: none; margin-top: 6px; }
.billing-inline-edit.open { display: flex; gap: 8px; }
.billing-inline-edit .sv-input { font-size: 0.85rem; padding: 8px 12px; }

/* Next invoice banner */
.next-invoice-banner {
  background: rgba(42,95,165,0.12);
  border: 1px solid rgba(42,95,165,0.25);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.next-invoice-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ice);
  opacity: 0.5;
  margin-bottom: 2px;
}
.next-invoice-amount {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.next-invoice-date {
  font-size: 0.75rem;
  color: var(--ice);
  opacity: 0.45;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .billing-wrap { grid-template-columns: 1fr; }
  .plan-tiers { grid-template-columns: 1fr; gap: 8px; }
}

/* ═══════════════════════════════════════════
   NOTIFICATIONS PAGE STYLES
   ═══════════════════════════════════════════ */

/* ── Nav badge ── */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--ping-red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1;
}

/* ── Notification list ── */
.notif-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.notif-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(184,212,240,0.06);
  background: rgba(255,255,255,0.025);
  transition: background 0.15s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.unread { background: rgba(42,95,165,0.08); }
.notif-item.unread:hover { background: rgba(42,95,165,0.13); }
.notif-item.archived { opacity: 0.35; }

/* Unread dot */
.notif-unread-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-item:not(.unread) .notif-unread-dot {
  background: transparent;
  box-shadow: none;
}

/* Icon */
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-icon-monitor    { background: rgba(239,68,68,0.12); }
.notif-icon-monitor-up { background: rgba(34,197,94,0.12); }
.notif-icon-billing    { background: rgba(245,158,43,0.12); }
.notif-icon-system     { background: rgba(42,95,165,0.15); }
.notif-icon-account    { background: rgba(100,116,139,0.15); }
.notif-icon-ticket     { background: rgba(139,92,246,0.15); }

/* Content */
.notif-content { flex: 1; min-width: 0; }
.notif-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}
.notif-item:not(.unread) .notif-title { font-weight: 700; opacity: 0.8; }
.notif-body {
  font-size: 0.8rem;
  color: var(--ice);
  opacity: 0.55;
  margin-top: 3px;
  line-height: 1.5;
}
.notif-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.notif-time {
  font-size: 0.72rem;
  color: var(--ice);
  opacity: 0.35;
  font-weight: 600;
}
.notif-tag {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 100px;
}
.notif-tag-monitor  { background: rgba(239,68,68,0.12);  color: #f87171; }
.notif-tag-monitor-up { background: rgba(34,197,94,0.12); color: #4ade80; }
.notif-tag-billing  { background: rgba(245,158,43,0.15); color: #fcd34d; }
.notif-tag-system   { background: rgba(42,95,165,0.2);   color: var(--ice); }
.notif-tag-account  { background: rgba(100,116,139,0.2); color: #94a3b8; }
.notif-tag-ticket   { background: rgba(139,92,246,0.15); color: #c4b5fd; }

/* Action buttons */
.notif-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.notif-item:hover .notif-actions { opacity: 1; }

/* Empty state */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  gap: 12px;
  color: var(--ice);
  opacity: 0.35;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.notif-empty-icon { font-size: 2.5rem; margin-bottom: 4px; }

@media (max-width: 600px) {
  .notif-item { padding: 14px 14px; gap: 10px; }
  .notif-actions { opacity: 1; }
}

/* ═══════════════════════════════════════════
   REUSABLE COMPONENTS — append to style.css
   ───────────────────────────────────────────
   MIGRATION: .plan-banner is superseded by .action-strip.
   Delete the .plan-banner block from style.css when adding
   this file. In dashboard.php (and anywhere else plan-banner
   is used), rename as follows:
     .plan-banner              → .action-strip .action-strip--warn
     .plan-banner-left         → .action-strip-body  (drop -left wrapper)
     .plan-banner-icon         → .action-strip-icon
     .plan-banner-title        → .action-strip-title
     .plan-banner-sub          → .action-strip-sub
     .plan-banner-btn          → .action-strip-btn
   ═══════════════════════════════════════════ */

/* ── Segmented control ─────────────────────────────────────
   Mutually exclusive options; replaces plan-interval-switch,
   annual-toggle. Use .seg-control--labeled when a text prefix
   sits left of the buttons (add .seg-control-label inside).      */
.seg-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,212,240,0.12);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.seg-control--labeled {
  padding: 3px 4px 3px 10px;
  gap: 6px;
}
.seg-control-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.45;
  white-space: nowrap;
}
.seg-control-btn {
  background: transparent;
  border: none;
  color: var(--ice);
  opacity: 0.5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, color 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}
.seg-control-btn:hover   { opacity: 0.85; background: rgba(255,255,255,0.07); }
.seg-control-btn.active  { background: rgba(255,255,255,0.1); color: var(--white); opacity: 1; }
.seg-control-btn:disabled { cursor: default; }

/* ── Savings badge ─────────────────────────────────────────
   Inline chip for positive callouts (discounts, savings).
   Sits inside a button or label via vertical-align: middle.    */
.badge-savings {
  display: inline-block;
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 100px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ── Badge color variants ──────────────────────────────────
   Extend the existing .badge + .badge-dot system.
   .badge-highlight  — featured / popular (orange)
   .badge-limited    — scarcity label (amber-tinted)           */
.badge-highlight {
  background: var(--orange);
  color: var(--navy);
}
.badge-limited {
  background: rgba(245,158,43,0.18);
  color: #fcd34d;
}

/* ── Tile grid ─────────────────────────────────────────────
   Auto-column card grid. Default: 4-up. Override column
   count with a modifier or inline style as needed.            */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .tile-grid     { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tile-grid,
                              .tile-grid--3,
                              .tile-grid--2  { grid-template-columns: 1fr; } }

/* ── Tile card ─────────────────────────────────────────────
   Individual card inside a .tile-grid.
   .tile-card.current  — highlighted as active selection.      */
.tile-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,212,240,0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.tile-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(184,212,240,0.2); }
.tile-card.current {
  border-color: var(--orange);
  background: rgba(245,158,43,0.06);
}

/* Tile typography helpers */
.tile-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.tile-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
.tile-price-note {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ice);
  opacity: 0.5;
}
.tile-sub-note {
  font-size: 0.68rem;
  color: var(--ice);
  opacity: 0.35;
  min-height: 14px;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Action strip ──────────────────────────────────────────
   Horizontal info + CTA bar. Replaces .plan-banner.
   Color variants mirror the existing badge/card semantics.
   Default: blue tint (informational).                         */
.action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(42,95,165,0.08);
  border: 1px solid rgba(42,95,165,0.2);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.action-strip--warn {
  background: rgba(234,179,8,0.07);
  border-color: rgba(234,179,8,0.25);
}
.action-strip--danger {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.25);
}
.action-strip--success {
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.2);
}
.action-strip-icon  { font-size: 1.4rem; flex-shrink: 0; }
.action-strip-body  { flex: 1; min-width: 0; }
.action-strip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}
.action-strip-title strong { color: #fde047; }
.action-strip-sub {
  font-size: 0.78rem;
  color: var(--ice);
  opacity: 0.6;
  margin-top: 3px;
  line-height: 1.5;
}
.action-strip-btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════
   REUSABLE COMPONENTS — append to style.css
   ───────────────────────────────────────────
   MIGRATION: .plan-banner is superseded by .action-strip.
   Delete the .plan-banner block from style.css when adding
   this file. In dashboard.php (and anywhere else plan-banner
   is used), rename as follows:
     .plan-banner              → .action-strip .action-strip--warn
     .plan-banner-left         → .action-strip-body  (drop -left wrapper)
     .plan-banner-icon         → .action-strip-icon
     .plan-banner-title        → .action-strip-title
     .plan-banner-sub          → .action-strip-sub
     .plan-banner-btn          → .action-strip-btn
   ═══════════════════════════════════════════ */

/* ── Segmented control ─────────────────────────────────────
   Mutually exclusive options; replaces plan-interval-switch,
   annual-toggle. Use .seg-control--labeled when a text prefix
   sits left of the buttons (add .seg-control-label inside).      */
.seg-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,212,240,0.12);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.seg-control--labeled {
  padding: 3px 4px 3px 10px;
  gap: 6px;
}
.seg-control-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ice);
  opacity: 0.45;
  white-space: nowrap;
}
.seg-control-btn {
  background: transparent;
  border: none;
  color: var(--ice);
  opacity: 0.5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, color 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}
.seg-control-btn:hover   { opacity: 0.85; background: rgba(255,255,255,0.07); }
.seg-control-btn.active  { background: rgba(255,255,255,0.1); color: var(--white); opacity: 1; }
.seg-control-btn:disabled { cursor: default; }

/* ── Savings badge ─────────────────────────────────────────
   Inline chip for positive callouts (discounts, savings).
   Sits inside a button or label via vertical-align: middle.    */
.badge-savings {
  display: inline-block;
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 100px;
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ── Badge color variants ──────────────────────────────────
   Extend the existing .badge + .badge-dot system.
   .badge-highlight  — featured / popular (orange)
   .badge-limited    — scarcity label (amber-tinted)           */
.badge-highlight {
  background: var(--orange);
  color: var(--navy);
}
.badge-limited {
  background: rgba(245,158,43,0.18);
  color: #fcd34d;
}

/* ── Tile grid ─────────────────────────────────────────────
   Auto-column card grid. Default: 4-up. Override column
   count with a modifier or inline style as needed.            */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .tile-grid     { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tile-grid,
                              .tile-grid--3,
                              .tile-grid--2  { grid-template-columns: 1fr; } }

/* ── Tile card ─────────────────────────────────────────────
   Individual card inside a .tile-grid.
   .tile-card.current  — highlighted as active selection.      */
.tile-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,212,240,0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.tile-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(184,212,240,0.2); }
.tile-card.current {
  border-color: var(--orange);
  background: rgba(245,158,43,0.06);
}

/* Tile typography helpers */
.tile-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.tile-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
.tile-price-note {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ice);
  opacity: 0.5;
}
.tile-sub-note {
  font-size: 0.68rem;
  color: var(--ice);
  opacity: 0.35;
  min-height: 14px;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Action strip ──────────────────────────────────────────
   Horizontal info + CTA bar. Replaces .plan-banner.
   Color variants mirror the existing badge/card semantics.
   Default: blue tint (informational).                         */
.action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(42,95,165,0.08);
  border: 1px solid rgba(42,95,165,0.2);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.action-strip--warn {
  background: rgba(234,179,8,0.07);
  border-color: rgba(234,179,8,0.25);
}
.action-strip--danger {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.25);
}
.action-strip--success {
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.2);
}
.action-strip-icon  { font-size: 1.4rem; flex-shrink: 0; }
.action-strip-body  { flex: 1; min-width: 0; }
.action-strip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}
.action-strip-title strong { color: #fde047; }
.action-strip-sub {
  font-size: 0.78rem;
  color: var(--ice);
  opacity: 0.6;
  margin-top: 3px;
  line-height: 1.5;
}
.action-strip-btn { flex-shrink: 0; }

/* ── Tile card: calculator-selected state ──────────────────
   Applied by JS when user clicks a tile to sync the
   calculator. Distinct from .current (their active plan).   */
.tile-card.calc-selected {
  border-color: rgba(184,212,240,0.4);
  background: rgba(184,212,240,0.06);
  box-shadow: inset 0 0 0 1px rgba(184,212,240,0.15);
}

/* ═══════════════════════════════════════════
   ADMIN PORTAL — Additions & Overrides
   ═══════════════════════════════════════════

   These extend the base ServerVisor stylesheet
   with admin-specific components.
   ═══════════════════════════════════════════ */

/* ── Admin identity strip ────────────────────
   A slim red bar at the very top of the page
   so it's immediately obvious this is internal.
   ────────────────────────────────────────── */
.admin-identity-bar {
  background: rgba(239,68,68,0.12);
  border-bottom: 1px solid rgba(239,68,68,0.25);
  padding: 5px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fca5a5;
  position: sticky;
  top: 0;
  z-index: 101; /* above the main header */
}
.admin-identity-bar svg { flex-shrink: 0; opacity: 0.7; }

/* Offset sticky header to sit below the identity bar */
.site-header { top: 29px; }

/* ── Admin role chip (shown in the user pill) ── */
.role-chip {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  flex-shrink: 0;
}
.role-chip-superadmin { background: rgba(239,68,68,0.2);  color: #fca5a5; }
.role-chip-admin      { background: rgba(245,158,43,0.2); color: #fcd34d; }
.role-chip-support    { background: rgba(42,95,165,0.2);  color: var(--ice); }

/* ── Account status badges ── */
.badge-active      { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-active      .badge-dot { background: var(--ping-green); box-shadow: 0 0 5px var(--ping-green); }
.badge-past-due    { background: rgba(234,179,8,0.15);  color: #fde047; }
.badge-past-due    .badge-dot { background: var(--ping-yellow); }
.badge-cancelled   { background: rgba(100,116,139,0.15); color: #94a3b8; }
.badge-cancelled   .badge-dot { background: var(--ping-grey); }
.badge-incomplete  { background: rgba(239,68,68,0.12);  color: #fca5a5; }
.badge-incomplete  .badge-dot { background: var(--ping-red); }

/* ── Worker status badges ── */
/* uses .badge-up / .badge-warn / .badge-down from base — no overrides needed */

/* ── Ticket priority badges ── */
.badge-priority-high   { background: rgba(239,68,68,0.15);  color: #f87171; }
.badge-priority-medium { background: rgba(234,179,8,0.12);  color: #fde047; }
.badge-priority-low    { background: rgba(100,116,139,0.12); color: #94a3b8; }

/* ── Ticket status badges ── */
.badge-open             { background: rgba(34,197,94,0.12);   color: #4ade80; }
.badge-waiting-on-us    { background: rgba(239,68,68,0.15);   color: #f87171; }
.badge-waiting-on-user  { background: rgba(234,179,8,0.12);   color: #fde047; }
.badge-closed           { background: rgba(100,116,139,0.12); color: #94a3b8; }

/* ── MRR / metric cards ── */
.metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,212,240,0.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.45;
  margin-bottom: 8px;
}
.metric-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}
.metric-change {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
}
.metric-change-up   { color: #4ade80; }
.metric-change-down { color: #f87171; }
.metric-change-flat { color: var(--ice); opacity: 0.4; }

/* ── Sortable table headers ── */
.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable-th:hover { opacity: 0.75 !important; }
.sort-indicator {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.35;
  font-size: 0.7em;
}
.sort-indicator.active { opacity: 1; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0 4px;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ice);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  opacity: 0.55;
}
.page-btn:hover { background: rgba(255,255,255,0.07); opacity: 1; }
.page-btn.active {
  background: rgba(42,95,165,0.3);
  border-color: rgba(42,95,165,0.5);
  color: var(--ice);
  opacity: 1;
}
.page-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.pagination-meta {
  font-size: 0.78rem;
  color: var(--ice);
  opacity: 0.4;
  font-weight: 600;
  padding: 0 8px;
}

/* ── Summary totals bar (above accounts table) ── */
.totals-bar {
  display: flex;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(184,212,240,0.08);
  flex-wrap: wrap;
}
.totals-bar-item { display: flex; flex-direction: column; gap: 2px; }
.totals-bar-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.totals-bar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice);
  opacity: 0.4;
}

/* ── Confirmation dialog (for destructive actions) ── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
.confirm-dialog {
  background: var(--navy-card);
  border: 1px solid rgba(184,212,240,0.15);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 420px;
  width: calc(100% - 32px);
  animation: fadeUp 0.2s ease;
}
.confirm-dialog-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.confirm-dialog-body {
  font-size: 0.85rem;
  color: var(--ice);
  opacity: 0.6;
  line-height: 1.6;
  margin-bottom: 20px;
}
.confirm-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Impersonate / reason input modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--navy-card);
  border: 1px solid rgba(184,212,240,0.15);
  border-radius: var(--radius-xl);
  padding: 28px 32px 24px;
  max-width: 460px;
  width: calc(100% - 32px);
  animation: fadeUp 0.2s ease;
}
.modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 0.82rem;
  color: var(--ice);
  opacity: 0.5;
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ── Inline alert banners ── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 16px;
}
.alert-banner-danger  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-banner-warn    { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.28); color: #fde047; }
.alert-banner-info    { background: rgba(42,95,165,0.15); border: 1px solid rgba(42,95,165,0.35); color: var(--ice); }
.alert-banner-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: #4ade80; }

/* ── Toast (sv-toast from scripts.js) ── */
.sv-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  z-index: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.sv-toast-show  { opacity: 1; transform: translateX(-50%) translateY(0); }
.sv-toast-info    { background: rgba(42,95,165,0.85);   border: 1px solid rgba(42,95,165,0.5); }
.sv-toast-success { background: rgba(34,197,94,0.85);   border: 1px solid rgba(34,197,94,0.5);  color: #0f1c2e; }
.sv-toast-error   { background: rgba(239,68,68,0.85);   border: 1px solid rgba(239,68,68,0.5); }
.sv-toast-warn    { background: rgba(234,179,8,0.85);   border: 1px solid rgba(234,179,8,0.5);  color: #0f1c2e; }

/* ── Relative-time tooltip ── */
[data-abs-time] { cursor: default; }
[data-abs-time]:hover::after {
  content: attr(data-abs-time);
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-card);
  border: 1px solid rgba(184,212,240,0.15);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ice);
  white-space: nowrap;
  z-index: 300;
  pointer-events: none;
}
[data-abs-time] { position: relative; }
