/* ============================================================
   FLAMING MONITOR - Ember Theme (matches FlamingTracker)
   ============================================================ */

/* Thin scrollbar identical to FlamingPanel so the centred 1280 layout doesn't shift. */
html {  scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: rgba(255,255,255,0.1) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-elevated: #1e1e1e;
  --bg-input: #151515;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-muted: #4b5563;

  --border-color: rgba(255,255,255,0.10);
  --border-light: rgba(255,255,255,0.06);

  --primary-color: #f97316;
  --primary-hover: #fb923c;
  --primary-light: rgba(249, 115, 22, 0.10);
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #ef4444 100%);

  --success-color: #22c55e;
  --success-light: rgba(34, 197, 94, 0.12);
  --warning-color: #eab308;
  --warning-light: rgba(234, 179, 8, 0.12);
  --danger-color: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.12);
  --info-color: #3b82f6;
  --info-light: rgba(59, 130, 246, 0.12);

  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.4);
  --flame-shadow: 0 0 20px rgba(249, 115, 22, 0.3);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Panel parity: glass surfaces */
  --glass-bg: rgba(255,255,255,0.03);
  --glass-bg-hover: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.06);
  --glass-border-hover: rgba(255,255,255,0.10);

  /* Panel fonts: Inter (body), Poppins (display/headings), JetBrains Mono */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* Panel parity: Poppins (display) is reserved for the wordmark only — every
   heading on Panel uses the body font (Inter) at a bold weight, NOT Poppins. */
.brand-text {
  font-family: var(--font-display);
}

/* ==================== TOP NAV ==================== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(40px);            /* Panel backdrop-blur-2xl = 40px */
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--glass-border);
}

.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* No glow on the logo icon — matches hosting (a drop-shadow on a stroke-only
   flame just traces the outline and reads as a patchy halo). */

.brand-text {
  font-size: 1.125rem;     /* Panel text-lg */
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.brand-highlight {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.nav-link:hover {
  color: #d1d5db;
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: var(--primary-color);
  background: var(--primary-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Devices status pill (top nav) — mirrors Panel's server / Tracker's price pill. */
.topnav .price-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  font-size: 0.75rem; line-height: 1; font-weight: 500;
  color: #9ca3af; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.topnav .price-pill:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255,255,255,.12); }
.topnav .price-pill .pp-seg { display: inline-flex; align-items: center; gap: 0.3rem; }
.topnav .price-pill .pp-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; display: inline-block; }
.topnav .price-pill .pp-div { color: #4b5563; }
.topnav .price-pill .pp-on { color: #34d399; } .topnav .price-pill .pp-on .pp-dot { background: #10b981; }
.topnav .price-pill .pp-warn { color: #eab308; } .topnav .price-pill .pp-warn .pp-dot { background: #eab308; }
.topnav .price-pill .pp-off { color: #f87171; } .topnav .price-pill .pp-off .pp-dot { background: #ef4444; }
@media (max-width: 640px) { .topnav .price-pill { display: none; } }

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.15s;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: var(--primary-light);
}

.plan-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--primary-color);
  color: white;
  letter-spacing: 0.05em;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  text-decoration: none;
}

/* ==================== CONTENT ==================== */
.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

/* ==================== CARDS ==================== */
/* Panel card recipe: bg-white/[0.03] backdrop-blur-xl rounded-2xl
   border-white/[0.06] p-6 */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(24px);            /* Panel backdrop-blur-xl = 24px */
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.3s;
}

.card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ==================== PAGE HEADERS ==================== */
.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;       /* Panel text-2xl */
  line-height: 2rem;
  font-weight: 700;        /* font-bold */
  color: #fff;
}

.page-subtitle {
  color: #9ca3af;          /* Panel text-gray-400 */
  font-size: 1rem;         /* Panel text-base (subtitle has no size class) */
  line-height: 1.5rem;
  margin-top: 0.25rem;     /* mt-1 */
}

/* ==================== GRID ==================== */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
}

.btn-primary:hover {
  box-shadow: var(--flame-shadow);
  transform: scale(1.02);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hover);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.15);
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid transparent;
}

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

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.375rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-main);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input::placeholder, .form-textarea::placeholder { color: #6b7280; }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.form-select {
  cursor: pointer;
  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='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

/* ==================== TABLES ==================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: transparent;
}

td {
  font-size: 0.875rem;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255,255,255,0.03); }

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success { background: var(--success-light); color: var(--success-color); }
.badge-warning { background: var(--warning-light); color: var(--warning-color); }
.badge-danger { background: var(--danger-light); color: var(--danger-color); }
.badge-info { background: var(--info-light); color: var(--info-color); }
.badge-neutral { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

.badge-golden {
  background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(249,115,22,0.15));
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.3);
}

/* ==================== STAT CARDS ==================== */
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(24px);            /* Panel backdrop-blur-xl = 24px */
  -webkit-backdrop-filter: blur(24px);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.stat-value.flame {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* ==================== FLASH MESSAGES ==================== */
.flash-messages {
  margin-bottom: 1rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.flash-success { background: var(--success-light); color: var(--success-color); border: 1px solid rgba(34,197,94,0.2); }
.flash-danger { background: var(--danger-light); color: var(--danger-color); border: 1px solid rgba(239,68,68,0.2); }
.flash-warning { background: var(--warning-light); color: var(--warning-color); border: 1px solid rgba(234,179,8,0.2); }

.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
}

/* ==================== CHECKLIST ==================== */
.checklist-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.checklist-step.completed .checklist-text {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.checklist-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.75rem 0 0.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-top: 0.5rem;
}

.checklist-note {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
  padding-left: 2rem;
}

.checklist-warning {
  font-size: 0.8rem;
  color: var(--danger-color);
  font-weight: 600;
  padding-left: 2rem;
}

.checklist-text {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.checklist-check {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-progress {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--warning-color);
}

.checklist-progress.complete {
  color: var(--success-color);
}

/* ==================== SOFTWARE KIT ==================== */
.software-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.software-item:last-child { border-bottom: none; }

.software-name {
  font-weight: 600;
  color: var(--text-primary);
}

.software-url {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.software-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-tertiary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ==================== MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
}

.modal-backdrop.show { display: flex; align-items: center; justify-content: center; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-main);
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ==================== NAV DROPDOWN ==================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: #1a1a1a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.35rem;
  min-width: 13rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.1s;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Profile (avatar) dropdown — click to open, matches FlamingPanel's user menu */
.profile-dd { position: relative; }
.profile-dd.open .nav-dropdown-menu { display: block; }
/* Trigger: avatar + name + chevron, like the panel */
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.profile-trigger:hover { background: rgba(255,255,255,0.05); }
.profile-name { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.profile-chevron { width: 16px; height: 16px; color: #6b7280; transition: transform 0.15s; flex-shrink: 0; }
.profile-dd.open .profile-chevron { transform: rotate(180deg); }
@media (max-width: 639px) { .profile-name { display: none; } }
/* Panel-standard dropdown header: name line + gray role line (no pill) */
.nav-dropdown-head { padding: 0.75rem 1rem; border-bottom: 1px solid var(--glass-border); }
.nav-dropdown-head .ud-name { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fff; }
.nav-dropdown-head .ud-role { margin: 0; font-size: 0.75rem; color: #6b7280; text-transform: capitalize; }
.nav-dropdown-sep { height: 1px; background: var(--glass-border); margin: 0.3rem 0; }
.nav-dropdown-menu a.nav-dropdown-danger { color: var(--danger-color); }
.nav-dropdown-menu a.nav-dropdown-danger:hover { background: rgba(255,255,255,0.05); color: var(--danger-color); }
/* Standard nav avatar = panel: 28px, flame gradient, weight 500 (scoped so it
   doesn't touch avatars elsewhere in the app) */
.profile-trigger .avatar {
  width: 28px; height: 28px;
  font-weight: 500; font-size: 0.75rem;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

/* ==================== MOBILE NAV ==================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: none;
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-main);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-item.active {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .mobile-nav { display: block; }
  .nav-links { display: none; }
  .content { padding-bottom: 80px; }
  .topnav-inner { padding: 0 1rem; gap: 0.75rem; }
  .nav-right { gap: 0.5rem; margin-left: auto; }
}
@media (max-width: 480px) {
  /* Add Device is reachable via the bottom nav / dashboard — drop it from the
     cramped top bar so brand + bell + avatar never overflow. */
  .nav-right .btn-primary { display: none; }
  html, body { overflow-x: hidden; }
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ==================== DEVICE CARD ==================== */
.device-card {
  position: relative;
}

.device-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.device-status.online {
  background: var(--success-color);
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

.device-status.offline {
  background: var(--text-muted);
}

/* ==================== UTILITIES ==================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-tertiary); }
.text-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none; }

/* ==================== NOTIFICATION BADGE ==================== */
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger-color);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-dot {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--danger-color);
  border-radius: 50%;
}

/* ==================== MORE SHEET (mobile) ==================== */
.more-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  display: none;
}
.more-sheet-backdrop.show { display: block; }

.more-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s;
  max-height: 70vh;
  overflow-y: auto;
  padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
}
.more-sheet.show { transform: translateY(0); }

.more-sheet-handle {
  width: 32px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 0.75rem auto;
}

.more-sheet-items { padding: 0 1rem; }

.more-sheet-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.more-sheet-item:hover { color: var(--primary-color); }

/* ==================== HEALTH CHECK ==================== */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.check-icon.pass { background: var(--success-light); color: var(--success-color); }
.check-icon.fail { background: var(--danger-light); color: var(--danger-color); }

/* ==================== NOTIFICATION LIST ==================== */
.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.1s;
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { border-left: 3px solid var(--primary-color); }
.notif-item .notif-time { font-size: 0.7rem; color: var(--text-tertiary); }
