/* Pro-Alert — consumer security palette (trust blue + protection teal) */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --card: #ffffff;
  --card-bg: #ffffff;
  --surface-alt: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #cbd5e1;

  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --accent: #0d9488;
  --accent-light: #5eead4;

  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.1);
  --ok: #059669;
  --ok-bg: rgba(5, 150, 105, 0.1);

  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, var(--primary) 40%, var(--accent) 100%);
  --glow-primary: rgba(37, 99, 235, 0.2);
  --glow-accent: rgba(13, 148, 136, 0.18);

  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 8px 30px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition: 0.2s var(--ease);
}

*{ box-sizing: border-box; }
html{ height: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  min-height: 100%;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1000px 500px at 0% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
              radial-gradient(800px 400px at 100% 20%, rgba(13, 148, 136, 0.06), transparent 50%),
              var(--bg);
  color: var(--text);
  position: relative;
}

/* Subtle watermark – minimal impact on paint */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 480px;
  height: 480px;
  background: url('/assets/logo-mark.png?v=4') center/contain no-repeat;
  opacity: 0.015;
  z-index: 0;
  pointer-events: none;
  background-size: 70%;
}

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

h1, h2, h3{
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1{ font-size: 1.75rem; }
h2{ font-size: 1.35rem; }
h3{ font-size: 1.1rem; }

/* Layout with sidebar */
.app-layout{
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

/* Sidebar — clean light panel */
.sidebar{
  width: 260px;
  min-width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header{
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Brand/logo text: always upright (no italics) */
.sidebar-logo,
.sidebar-logo .logo,
.brand,
.brand h1 {
  font-style: normal;
}

.sidebar-logo{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  text-decoration: none;
  color: inherit;
}

.sidebar-logo .logo,
.sidebar-logo .logo-mark{
  height: 44px;
  width: 44px;
  max-width: none;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: none;
  box-shadow: none;
  background: transparent;
}

.sidebar-logo h1{
  font-size: 16px;
  margin: 0;
  letter-spacing: .2px;
  color: var(--text);
}

.sidebar-user{
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0 0;
  line-height: 1.4;
}

.sidebar-nav{
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  overflow-y: auto;
  gap: 2px;
}

.sidebar-nav-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-nav-item:hover{
  background: rgba(0,0,0,.06);
  color: var(--text);
  border-left-color: var(--primary);
}

.sidebar-nav-item.active{
  background: var(--surface-alt);
  color: var(--primary-2);
  border-left-color: var(--primary);
  font-weight: 600;
  box-shadow: none;
}

.sidebar-nav-item .icon{
  width: 26px;
  text-align: center;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-footer{
  padding: 20px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.sidebar-footer .btn{
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: background .15s ease, transform .1s ease;
}

.sidebar-footer .btn:hover{
  transform: translateY(-1px);
}

/* Main content area */
.main-content{
  flex: 1;
  padding: 32px 40px;
  max-width: calc(100vw - 260px);
  min-width: 0;
  overflow-x: auto; /* Allow horizontal scroll so alerts section is never cut off */
  background: transparent;
}

.wrap{ max-width: 1100px; margin: 0 auto; padding: 28px 18px 44px; position: relative; z-index: 1; }
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Mobile responsive */
@media (max-width: 768px){
  .sidebar{
    position: fixed;
    left: -260px;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  .sidebar.open{
    left: 0;
  }
  .main-content{
    max-width: 100vw;
    padding: 16px;
  }
  .mobile-menu-toggle{
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 999;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
  }
}
.brand{ display:flex; align-items:center; gap:14px; }

.brand-lockup{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-lockup-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-lockup-name{
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-lockup-tag{
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-mark{
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.logo{
  height: auto;
  width: auto;
  max-height: 44px;
  max-width: 180px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: none;
  box-shadow: none;
  background: transparent;
}

.brand .logo,
.brand .logo-mark{
  height: 44px;
  width: 44px;
  max-width: none;
}

.logo-wordmark{
  height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
}

.auth-logo-stacked{
  display: block;
  height: 112px;
  width: auto;
  margin: 0 auto 28px;
}

.auth-brand-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto 28px;
  text-decoration: none;
  color: inherit;
}

.auth-brand-center .logo-mark{
  width: 56px;
  height: 56px;
}

.auth-brand-center .brand-lockup-name{
  font-size: 28px;
  text-align: center;
}

.auth-brand-center .brand-lockup-tag{
  text-align: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s var(--ease);
}
.btn:hover{
  background: rgba(0,0,0,.09);
  border-color: rgba(0,0,0,.05);
}
.btn:active{ transform: scale(0.98); }
.btn.primary{
  border-color: rgba(26, 111, 175, 0.45);
  background: var(--gradient-brand);
  color: #fff;
}
.btn.primary:hover{
  filter: brightness(1.06);
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 4px 16px var(--glow-primary);
}
.btn.primary:active{ transform: scale(0.98); }
.btn.danger{
  border-color: rgba(180, 35, 24, 0.35);
  background: var(--danger-bg);
  color: var(--danger);
}
.btn.danger:hover{ background: rgba(180, 35, 24, 0.16); }

.grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  margin-top: 18px;
}
/* Full-width stacked layout so Active Security Alerts is not squeezed or cut off */
.grid--stacked{
  grid-template-columns: 1fr;
}
.grid--stacked > * {
  min-width: 0; /* Allow content to shrink so inner scroll works if needed */
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,0,0,.05);
}

/* Sign-in page: single centered card */
.login-main{
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.login-card{
  max-width: 420px;
  width: 100%;
}
.login-card:hover{
  transform: none;
  box-shadow: var(--shadow);
}

.card h2{ 
  margin:0 0 8px; 
  font-size: 20px; 
  letter-spacing:.2px; 
  font-weight: 600;
  color: var(--text);
}
.sub{ 
  margin:0 0 16px; 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.6; 
}

.hero{
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 10% 0%, rgba(26, 111, 175, 0.14), transparent 60%),
    radial-gradient(520px 260px at 90% 10%, rgba(13, 148, 136, 0.1), transparent 60%),
    #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.hero h2{ margin: 0 0 8px; font-size: 1.6rem; font-weight: 600; }
.hero .sub{ font-size: 14px; color: var(--muted); }
.pillrow{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 4px; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.04);
  color: var(--muted);
  font-size: 12px;
}
.dot{ width:9px; height:9px; border-radius:999px; background: var(--accent); box-shadow: 0 0 0 4px var(--glow-accent); }

.field{ display:flex; flex-direction:column; gap:8px; margin: 12px 0; }
label{ font-size: 12px; color: var(--muted); }
input, select, textarea{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

.password-wrap{
  position: relative;
  display: block;
  width: 100%;
}
.password-wrap input{
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px;
}
.password-toggle{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover,
.password-toggle:focus-visible{
  color: var(--text);
  background: rgba(0,0,0,.06);
  outline: none;
}
.password-toggle svg{
  width: 20px;
  height: 20px;
  display: block;
}
.password-toggle .eye-off{ display: none; }
.help-article{ max-width: 760px; }
.help-article h1{ font-size: 28px; margin: 0 0 8px; }
.help-article h2{ font-size: 20px; margin: 28px 0 10px; }
.help-article h3{ font-size: 15px; margin: 16px 0 8px; }
.help-article p, .help-article li{ line-height: 1.55; color: var(--text); }
.help-article ol, .help-article ul{ padding-left: 22px; margin: 0 0 12px; }
.help-article code{
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.help-toc{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 20px 0 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.help-toc a{ font-size: 13px; color: var(--primary); text-decoration: none; }
.help-foot{ margin-top: 32px; color: var(--muted); font-size: 14px; }
.help-banner{
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.row{ display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.hint{ color: var(--muted); font-size: 12px; }
.msg{ margin-top:10px; font-size: 13px; color: var(--muted); }
.msg.bad{ color: var(--danger); }
.msg.ok{ color: var(--ok); }

table tbody tr{ transition: background var(--transition); }
table tbody tr:hover{ background: rgba(0,0,0,.04); }

.device-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 6px;
}
.device-filters input,
.device-filters select{
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: #f1f5f9;
  color: var(--text);
}
.device-filters input{ min-width: 220px; }

.device-filters select:focus,
.device-filters input:focus{
  border-color: rgba(91,188,255,.9);
  box-shadow: 0 0 0 3px rgba(91,188,255,.25);
  outline: none;
}

.device-filters select option{
  background: #ffffff;
  color: var(--text);
}

table{ 
  width:100%; 
  border-collapse: collapse; 
  border-radius: 8px;
  overflow: hidden;
}
th,td{ 
  text-align:left; 
  padding:14px 12px; 
  border-bottom: 1px solid rgba(0,0,0,.08); 
  font-size: 14px; 
}
th{ 
  color: var(--muted); 
  font-weight: 600; 
  background: rgba(0,0,0,.03);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
tbody tr{
  transition: background 0.15s ease;
}
tbody tr:hover{
  background: rgba(0,0,0,.05);
}
/* Active alerts table: horizontal scroll so full table is visible */
.alerts-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 2px 8px 0;
}
.alerts-table-scroll::-webkit-scrollbar {
  height: 10px;
}
.alerts-table-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
.alerts-table {
  min-width: 680px;
  width: 100%;
}
.alerts-table .alert-action {
  white-space: nowrap;
  min-width: 90px;
}
.alerts-table th:first-child,
.alerts-table td:first-child {
  width: 90px;
  min-width: 90px;
}
.alerts-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.alerts-pagination .pagination-buttons {
  display: flex;
  gap: 8px;
}
.resolved-alert{ opacity: 0.5; }
.btn-sm{
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(26, 111, 175, 0.12), rgba(13, 148, 136, 0.08));
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  transition: all 150ms ease;
}
.btn-sm:hover{
  background: linear-gradient(145deg, rgba(26, 111, 175, 0.2), rgba(13, 148, 136, 0.14));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.btn-sm.danger{
  border-color: rgba(239,68,68,.55);
  background: rgba(239,68,68,.12);
}
.btn-sm.danger:hover{
  background: rgba(239,68,68,.2);
}

.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.drawer-overlay.show{
  opacity: 1;
  pointer-events: auto;
}
.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 360px;
  max-width: 90vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform 0.25s ease;
  z-index: 45;
  display: flex;
  flex-direction: column;
}
.drawer.show{ transform: translateX(0); }
.drawer-header{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-title{ font-size: 16px; font-weight: 600; }
.drawer-sub{ font-size: 12px; color: var(--muted); }
.drawer-body{ padding: 16px; }
.detail-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-item{
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.03);
}
.detail-label{ font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.detail-value{ margin-top: 6px; font-size: 13px; }
.drawer-actions{
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.7);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.2s ease;
}
.modal-overlay.show{
  opacity: 1;
  pointer-events: auto;
}
.modal{
  width: 380px;
  max-width: 92vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.modal-title{ font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.modal-text{ font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.modal-device{ font-size: 13px; margin-bottom: 10px; }
.modal input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.05);
  color: var(--text);
  margin-bottom: 12px;
}
.modal-actions{
  display:flex;
  justify-content: flex-end;
  gap: 8px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px; border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.04);
  font-size: 12px;
}
.b-ok{ border-color: rgba(34,197,94,.35); }
.b-warn{ border-color: rgba(245,158,11,.35); }
.b-bad{ border-color: rgba(239,68,68,.35); }

.footer{ margin-top: 18px; color: var(--muted); font-size: 12px; }

/* WebSocket Connection Status */
.ws-status{
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.05);
  transition: all 0.3s ease;
}
.ws-status.connected{ color: var(--ok); }
.ws-status.disconnected{ color: var(--danger); }
.ws-status.reconnecting{ color: var(--warning); }/* Toast Notifications */
.toast{
  min-width: 280px;
  max-width: 400px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  font-size: 14px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast-container{
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}
.toast.show{
  opacity: 1;
  transform: translateX(0);
}
.toast-success{
  border-left: 4px solid var(--ok);
  background: linear-gradient(135deg, rgba(34,197,94,.15), var(--surface));
}
.toast-error{
  border-left: 4px solid var(--danger);
  background: linear-gradient(135deg, rgba(239,68,68,.15), var(--surface));
}
.toast-warning{
  border-left: 4px solid var(--warning);
  background: linear-gradient(135deg, rgba(245,158,11,.15), var(--surface));
}
.toast-info{
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(26, 111, 175, 0.12), var(--surface));
}

/* Resolved alert styling */
.resolved-alert{
  opacity: 0.7;
  color: var(--muted);
}
.resolved-alert:hover{
  opacity: 0.9;
  background: rgba(0,0,0,.02);
}

/* Tabbed Interface */
.tabs{
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 0;
}

.tab{
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  top: 2px;
}

.tab:hover{
  color: var(--text);
  background: rgba(0,0,0,.03);
}

.tab.active{
  color: var(--primary-2);
  border-bottom-color: var(--primary);
  background: rgba(26, 111, 175, 0.1);
}

.tab-content{
  display: none;
}

.tab-content.active{
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Mobile menu toggle */
.mobile-menu-toggle{
  display: none;
}

@media (max-width: 768px){
  .mobile-menu-toggle{
    display: block;
  }
}

/* Password security UX */
.password-security-banner{
  margin: 0 0 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.password-security-banner--warn{
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.45);
}
.password-security-banner--ok{
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
}
.password-status-options{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.password-status-option{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.password-status-option input{
  margin-top: 3px;
}
.badge-pw-muted{
  background: rgba(100, 116, 139, 0.15);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.password-detail-panel{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.password-guide-steps{
  margin: 0;
  padding-left: 1.25rem;
  font-size: 14px;
  line-height: 1.5;
}
.password-guide-steps li{
  margin-bottom: 8px;
}
.modal--wide{
  max-width: 520px;
}
