/* ============================================================
   NETGUARD AI — Design System
   Apple × Linear × Notion × premium cybersecurity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* ---- Light mode ---- */
  --bg:            #FAF7F2;
  --bg-elevated:   #FFFFFF;
  --bg-subtle:     #F3EEE5;
  --bg-inset:      #F6F2EA;
  --border:        #E8E1D3;
  --border-strong: #DDD3BF;

  --text-primary:   #211C14;
  --text-secondary: #6B6355;
  --text-tertiary:  #9B9384;
  --text-inverse:   #FAF7F2;

  --accent:        #A8672E;
  --accent-strong: #8A5320;
  --accent-soft:   #F0E0C8;
  --accent-soft-2: #F7EBD6;

  --amber:         #C98A3E;

  --danger:        #B5453A;
  --danger-soft:   #F5DFDB;
  --success:       #4C7A5B;
  --success-soft:  #DEEBE1;
  --info:          #6B7CA8;

  --shadow-sm: 0 1px 2px rgba(33,28,20,0.05);
  --shadow-md: 0 4px 16px rgba(33,28,20,0.06);
  --shadow-lg: 0 12px 32px rgba(33,28,20,0.10);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --sidebar-w: 264px;
  --topbar-h: 76px;

  color-scheme: light;
}

html[data-theme="dark"]{
  --bg:            #16130E;
  --bg-elevated:   #1E1A13;
  --bg-subtle:     #221D15;
  --bg-inset:      #1C1811;
  --border:        #322B1F;
  --border-strong: #3E3626;

  --text-primary:   #F3EEE4;
  --text-secondary: #A79D8A;
  --text-tertiary:  #766D5C;
  --text-inverse:   #16130E;

  --accent:        #D69B52;
  --accent-strong: #E8B36E;
  --accent-soft:   #372A16;
  --accent-soft-2: #2C2113;

  --amber:         #D9A25C;

  --danger:        #DE7C6E;
  --danger-soft:   #3A211D;
  --success:       #7FBB98;
  --success-soft:  #1E2E24;
  --info:          #93A2CC;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.45);

  color-scheme: dark;
}

*,*::before,*::after{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,p{ margin:0; }
::selection{ background: var(--accent-soft); color:var(--text-primary); }

::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius:99px; }
::-webkit-scrollbar-thumb:hover{ background: var(--text-tertiary); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono{ font-family: var(--font-mono); }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 20px;
  border-radius: var(--radius-pill);
  font-size:14.5px; font-weight:550; letter-spacing:-.01em;
  border:1px solid transparent; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn svg{ width:16px; height:16px; flex:none; }

.btn-primary{
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color:#fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ box-shadow: var(--shadow-md); }
html[data-theme="dark"] .btn-primary{ color:#1B140A; }

.btn-secondary{
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover{ border-color: var(--accent); background: var(--bg-subtle); }

.btn-ghost{
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover{ background: var(--bg-subtle); color: var(--text-primary); }

.btn-sm{ height:36px; padding:0 14px; font-size:13.5px; }
.btn-block{ width:100%; }
.btn-icon{
  width:40px; height:40px; padding:0; border-radius: var(--radius-pill);
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--bg-elevated); border:1px solid var(--border);
  color: var(--text-secondary); cursor:pointer; position:relative;
  transition: border-color .15s ease, color .15s ease;
}
.btn-icon:hover{ color: var(--text-primary); border-color: var(--border-strong); }
.btn-icon svg{ width:18px; height:18px; }

/* ============================================================
   App shell
   ============================================================ */
.app{
  display:flex;
  min-height:100vh;
}

/* ---- Sidebar ---- */
.sidebar{
  width: var(--sidebar-w);
  flex: none;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display:flex; flex-direction:column;
  padding: 24px 16px;
  position: sticky; top:0; height:100vh;
  transition: width .25s cubic-bezier(0.16, 1, 0.3, 1), padding .25s ease;
}
.sidebar.sidebar-collapsed {
  width: 72px;
  padding: 24px 10px;
}
.sidebar.sidebar-collapsed .brand-text,
.sidebar.sidebar-collapsed .nav-item span,
.sidebar.sidebar-collapsed .nav-group-head,
.sidebar.sidebar-collapsed .profile-chip .who,
.sidebar.sidebar-collapsed .sidebar-tagline,
.sidebar.sidebar-collapsed .sidebar-collapse-btn {
  display: none !important;
}
.sidebar.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 10px 0;
}
.sidebar.sidebar-collapsed .profile-chip {
  justify-content: center;
  padding: 10px 0;
}
.sidebar.sidebar-collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}
.brand{
  display:flex; align-items:center; gap:10px;
  padding: 4px 8px 20px 8px;
}
.brand img, .brand-logo, .logo-mark {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  flex: none;
  border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  transition: transform .2s ease;
}
.brand:hover img{ transform: scale(1.05); }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-size:17px; font-weight:700; letter-spacing:-.02em; }
.brand-tag{ font-size:9px; letter-spacing:.16em; color: var(--text-tertiary); font-weight:600; margin-top:3px; }

.nav-scroll{ flex:1; overflow-y:auto; margin: 0 -4px; padding: 0 4px; }

.nav-item{
  display:flex; align-items:center; gap:11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size:14.5px; font-weight:500;
  cursor:pointer; transition: background .15s ease, color .15s ease;
  margin-bottom:2px;
}
.nav-item svg{ width:18px; height:18px; flex:none; opacity:.9; }
.nav-item:hover{ background: var(--bg-subtle); color: var(--text-primary); }
.nav-item.active{ background: var(--accent-soft); color: var(--accent-strong); font-weight:600; }
html[data-theme="light"] .nav-item.active{ color: var(--accent-strong); }

.nav-group{ margin-top:14px; }
.nav-group-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  cursor:pointer; user-select:none;
}
.nav-group-head:hover{ background: var(--bg-subtle); }
.nav-group-label{
  font-size:10.5px; letter-spacing:.12em; font-weight:650; color: var(--text-tertiary);
}
.nav-group-head .chev{ width:14px; height:14px; color: var(--text-tertiary); transition: transform .2s ease; flex:none; }
.nav-group.collapsed .chev{ transform: rotate(-90deg); }
.nav-group-items{
  overflow:hidden; max-height:600px; opacity:1;
  transition: max-height .25s ease, opacity .2s ease;
}
.nav-group.collapsed .nav-group-items{ max-height:0; opacity:0; }
.nav-group-items .nav-item{ padding-left:12px; }

.sidebar-divider{ height:1px; background: var(--border); margin: 14px 4px; }

.sidebar-foot{ padding-top:6px; }
.profile-chip{
  display:flex; align-items:center; gap:10px; padding:10px 8px;
  border-radius: var(--radius-md); cursor:pointer;
  transition: background .15s ease;
}
.profile-chip:hover{ background: var(--bg-subtle); }
.avatar{
  width:36px; height:36px; border-radius:50%; flex:none;
  background: var(--accent-soft); color: var(--accent-strong);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px;
}
.profile-chip .who{ flex:1; min-width:0; }
.profile-chip .name{ font-size:14px; font-weight:600; }
.profile-chip .role{ font-size:12px; color: var(--text-tertiary); }
.profile-chip svg{ width:15px; height:15px; color: var(--text-tertiary); }
.sidebar-tagline{ font-size:11.5px; color: var(--text-tertiary); padding: 10px 8px 2px; }

/* ---- Main column ---- */
.main{
  flex:1; min-width:0;
  display:flex; flex-direction:column;
}
.topbar{
  height: var(--topbar-h);
  display:flex; align-items:center; gap:16px;
  padding: 0 32px;
  position: sticky; top:0; z-index:50;
  background: rgba(250, 247, 242, 0.76);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(33,28,20,0.03);
}
html[data-theme="dark"] .topbar{
  background: rgba(22, 19, 14, 0.80);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.30);
}
.glass-btn, .topbar .btn-icon{
  background: var(--bg-elevated);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.glass-btn:hover, .topbar .btn-icon:hover{
  border-color: var(--accent);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.search-box{
  flex:1; max-width:560px;
  display:flex; align-items:center; gap:10px;
  height:44px; padding:0 16px;
  background: var(--bg-elevated); border:1px solid var(--border);
  border-radius: var(--radius-pill); color: var(--text-tertiary);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.search-box svg{ width:17px; height:17px; flex:none; }
.search-box input{
  border:none; outline:none; background:transparent; flex:1;
  font-size:14px; color: var(--text-primary); font-family:inherit;
}
.search-box input::placeholder{ color: var(--text-tertiary); }
.kbd{
  font-size:11px; font-family: var(--font-mono); color: var(--text-tertiary);
  background: var(--bg-inset); border:1px solid var(--border);
  padding:2px 6px; border-radius:5px;
}
.topbar-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.dot-badge{
  position:absolute; top:8px; right:8px; width:8px; height:8px; border-radius:50%;
  background: var(--danger); border:2px solid var(--bg-elevated);
}

.content{ padding: 8px 32px 56px; flex:1; }

/* ============================================================
   Page header
   ============================================================ */
.page-header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:24px;
  padding: 24px 0 28px;
}
.eyebrow{ font-size:11px; letter-spacing:.14em; color: var(--text-tertiary); font-weight:650; margin-bottom:10px; }
.page-title{ font-size:34px; font-weight:700; letter-spacing:-.025em; line-height:1.15; }
.page-title .accentx{ color: var(--accent); }
.page-sub{ font-size:15px; color: var(--text-secondary); margin-top:10px; max-width:640px; line-height:1.5; }
.header-side{ text-align:right; font-size:11px; letter-spacing:.1em; color: var(--text-tertiary); font-weight:650; line-height:1.7; flex:none; padding-top:6px; }
.header-side .rule{ width:34px; height:2px; background: var(--accent); margin:6px 0 6px auto; }

/* ============================================================
   Cards / grids
   ============================================================ */
.card{
  background: var(--bg-elevated);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:22px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card-hover:hover{ box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-title{ font-size:16px; font-weight:650; letter-spacing:-.01em; }
.card-desc{ font-size:13px; color: var(--text-secondary); margin-top:4px; }
.card-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }

.metric-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.metric-card{
  background: var(--bg-elevated); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding:18px 20px; display:flex; flex-direction:column; gap:14px;
}
.metric-icon-row{ display:flex; align-items:center; justify-content:space-between; }
.metric-icon{
  width:38px; height:38px; border-radius:10px; background: var(--accent-soft);
  color: var(--accent-strong); display:flex; align-items:center; justify-content:center;
}
.metric-icon svg{ width:19px; height:19px; }
.metric-label{ font-size:13px; color: var(--text-secondary); font-weight:500; }
.metric-value{ font-size:26px; font-weight:700; letter-spacing:-.02em; }
.metric-delta{ font-size:12.5px; font-weight:600; display:flex; align-items:center; gap:4px; }
.up{ color: var(--success); }
.down{ color: var(--danger); }
.sparkline{ flex:none; }

.grid-2{ display:grid; grid-template-columns:2fr 1fr; gap:20px; }
.grid-main-side{ display:grid; grid-template-columns: 1fr 340px; gap:20px; align-items:start; }
.stack{ display:flex; flex-direction:column; gap:20px; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap{ overflow-x:auto; }
table.data-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.data-table thead th{
  text-align:left; font-size:11.5px; letter-spacing:.06em; color: var(--text-tertiary);
  font-weight:650; padding: 10px 14px; border-bottom:1px solid var(--border); white-space:nowrap;
}
.data-table tbody td{
  padding: 13px 14px; border-bottom:1px solid var(--border); color: var(--text-primary); white-space:nowrap;
}
.data-table tbody tr{ transition: background .15s ease; cursor:pointer; }
.data-table tbody tr:hover{ background: var(--bg-subtle); }
.data-table tbody tr:last-child td{ border-bottom:none; }
.cell-main{ display:flex; align-items:center; gap:10px; font-weight:600; }
.cell-icon{
  width:30px; height:30px; border-radius:8px; background: var(--bg-inset); color: var(--text-secondary);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.cell-icon svg{ width:15px; height:15px; }
.cell-sub{ font-size:12px; color: var(--text-tertiary); font-weight:400; }

.badge{
  display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius: var(--radius-pill);
  font-size:12px; font-weight:600;
}
.badge::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge-critical{ background: var(--danger-soft); color: var(--danger); }
.badge-high{ background: var(--accent-soft-2); color: var(--amber); }
.badge-medium{ background: var(--accent-soft); color: var(--accent-strong); }
.badge-low{ background: var(--info); color:#fff; opacity:.85 }
.badge-online, .badge-active, .badge-completed, .badge-success{ background: var(--success-soft); color: var(--success); }
.badge-offline, .badge-idle{ background: var(--bg-inset); color: var(--text-tertiary); }
.badge-risk{ background: var(--danger-soft); color: var(--danger); }
.badge-trusted{ background: var(--info); color:#fff; opacity:.85; }
.badge-failed{ background: var(--danger-soft); color: var(--danger); }

/* tabs (pill segmented) */
.tabs{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tab{
  height:38px; padding:0 16px; border-radius: var(--radius-pill);
  font-size:13.5px; font-weight:550; color: var(--text-secondary);
  background: var(--bg-elevated); border:1px solid var(--border); cursor:pointer;
  display:flex; align-items:center; gap:8px; transition: all .15s ease;
}
.tab:hover{ border-color: var(--border-strong); color: var(--text-primary); }
.tab.active{
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color:#fff; border-color:transparent;
}
html[data-theme="dark"] .tab.active{ color:#1B140A; }

.chip{
  display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius: var(--radius-pill);
  background: var(--bg-inset); font-size:12px; font-weight:600; color: var(--text-secondary);
}

/* ============================================================
   Forms
   ============================================================ */
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.field label{ font-size:13px; font-weight:600; color: var(--text-primary); }
.field .hint{ font-size:12px; color: var(--text-tertiary); font-weight:400; margin-top:-4px; }
.input, select.input, textarea.input{
  height:46px; padding:0 15px; border-radius: var(--radius-md);
  border:1px solid var(--border); background: var(--bg-inset); color: var(--text-primary);
  font-size:14px; font-family:inherit; outline:none; width:100%;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, select.input:focus, textarea.input:focus{ border-color: var(--accent); background: var(--bg-elevated); }
textarea.input{ height:auto; padding:12px 15px; resize:vertical; }
.input-icon-wrap{ position:relative; }
.input-icon-wrap svg{
  position:absolute; left:15px; top:50%; transform:translateY(-50%);
  width:17px; height:17px; color: var(--text-tertiary); pointer-events:none;
}
.input-icon-wrap .input{ padding-left:44px; }
.input-icon-wrap .toggle-eye{
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; color: var(--text-tertiary); cursor:pointer; background:none; border:none; padding:0;
}
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }

.switch{ position:relative; width:42px; height:24px; flex:none; }
.switch input{ opacity:0; width:0; height:0; }
.switch .track{
  position:absolute; inset:0; background: var(--border-strong); border-radius:99px; cursor:pointer;
  transition: background .2s ease;
}
.switch .track::after{
  content:''; position:absolute; width:18px; height:18px; border-radius:50%; background:#fff;
  top:3px; left:3px; transition: transform .2s ease; box-shadow: var(--shadow-sm);
}
.switch input:checked + .track{ background: var(--accent); }
.switch input:checked + .track::after{ transform: translateX(18px); }

.radio-row{ display:flex; align-items:flex-start; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); cursor:pointer; }
.radio-row:last-child{ border-bottom:none; }
.radio-dot{
  width:20px; height:20px; border-radius:50%; border:2px solid var(--border-strong); flex:none; margin-top:1px;
  display:flex; align-items:center; justify-content:center; transition: border-color .15s ease;
}
.radio-dot::after{ content:''; width:9px; height:9px; border-radius:50%; background: var(--accent); opacity:0; transition: opacity .15s ease; }
.radio-row.checked .radio-dot{ border-color: var(--accent); }
.radio-row.checked .radio-dot::after{ opacity:1; }
.radio-title{ font-size:14px; font-weight:600; }
.radio-desc{ font-size:12.5px; color: var(--text-tertiary); }

/* ============================================================
   Misc components
   ============================================================ */
.section-title-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.link-more{ font-size:13px; font-weight:600; color: var(--accent); display:flex; align-items:center; gap:4px; }
.link-more svg{ width:14px; height:14px; }

.activity-item{ display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.activity-item:last-child{ border-bottom:none; padding-bottom:0; }
.activity-dot{ width:9px; height:9px; border-radius:50%; margin-top:6px; flex:none; }
.activity-text{ font-size:13.5px; font-weight:600; }
.activity-sub{ font-size:12.5px; color: var(--text-tertiary); margin-top:2px; }
.activity-time{ font-size:12px; color: var(--text-tertiary); flex:none; margin-left:auto; white-space:nowrap; padding-top:1px; }

.insight-card{
  background: linear-gradient(155deg, var(--accent-soft) 0%, var(--bg-elevated) 65%);
  border:1px solid var(--border); border-radius: var(--radius-lg); padding:18px 20px;
  display:flex; gap:14px; align-items:flex-start;
}
.insight-icon{ width:34px; height:34px; border-radius:10px; background: var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; flex:none; }
html[data-theme="dark"] .insight-icon{ color:#1B140A; }
.insight-icon svg{ width:17px; height:17px; }
.insight-title{ font-size:13.5px; font-weight:700; margin-bottom:3px; }
.insight-body{ font-size:13px; color: var(--text-secondary); line-height:1.5; }
.insight-body b{ color: var(--text-primary); font-weight:650;}
.insight-arrow{ margin-left:auto; flex:none; color: var(--accent); }
.insight-arrow svg{ width:16px; height:16px; }

.donut-wrap{ display:flex; align-items:center; gap:22px; }
.donut-legend{ flex:1; display:flex; flex-direction:column; gap:9px; }
.donut-legend-item{ display:flex; align-items:center; gap:8px; font-size:13px; }
.donut-legend-item .sw{ width:9px; height:9px; border-radius:2px; flex:none; }
.donut-legend-item .lbl{ flex:1; color: var(--text-secondary); }
.donut-legend-item .val{ font-weight:650; }
.donut-center-label{ font-size:11px; color: var(--text-tertiary); font-weight:600; }
.donut-center-value{ font-size:20px; font-weight:700; }

.upload-zone{
  border:1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding:44px 28px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px;
  background: var(--bg-inset); position:relative; cursor:pointer; transition: border-color .2s ease, background .2s ease;
}
.upload-zone:hover{ border-color: var(--accent); background: var(--accent-soft-2); }
.upload-zone svg, .upload-cloud{
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  color: var(--accent);
  flex: none;
}
.upload-title{ font-size:17px; font-weight:650; }
.upload-sub{ font-size:13px; color: var(--text-tertiary); }

.progress-step{ display:flex; align-items:center; gap:12px; padding:10px 0; }
.progress-num{
  width:26px; height:26px; border-radius:50%; background: var(--bg-inset); color: var(--text-tertiary);
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex:none;
  border:1px solid var(--border);
}
.progress-step.done .progress-num{ background: var(--success-soft); color: var(--success); border-color:transparent; }
.progress-step.active .progress-num{ background: var(--accent); color:#fff; border-color:transparent; }
.progress-label{ font-size:13.5px; font-weight:550; flex:1; }
.progress-state{ font-size:12px; color: var(--text-tertiary); font-weight:600; }
.progress-step.done .progress-state{ color: var(--success); }
.progress-step.active .progress-state{ color: var(--accent); }

.integration-row{ display:flex; align-items:center; gap:12px; padding:11px 4px; border-bottom:1px solid var(--border); }
.integration-row:last-child{ border-bottom:none; }
.integration-logo{ width:34px; height:34px; border-radius:9px; background: var(--bg-inset); display:flex; align-items:center; justify-content:center; flex:none; font-weight:700; font-size:13px; }
.integration-name{ font-size:13.5px; font-weight:650; }
.integration-desc{ font-size:12px; color: var(--text-tertiary); }
.integration-add{
  margin-left:auto; width:30px; height:30px; border-radius:50%; border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; color: var(--text-secondary); cursor:pointer; flex:none; background:transparent;
}
.integration-add:hover{ border-color: var(--accent); color: var(--accent); }
.integration-add svg{ width:14px; height:14px; }

.code-box{
  background:#1B1712; color:#EADFC8; border-radius: var(--radius-md); padding:16px 18px;
  font-family: var(--font-mono); font-size:12.5px; line-height:1.9; overflow-x:auto; position:relative;
}
.code-box .ln{ color:#8A7F68; margin-right:14px; user-select:none; }
.code-box .str{ color:#E8B36E; }
.code-box .kw{ color:#93A2CC; }

.status-list{ display:flex; flex-direction:column; gap:12px; }
.status-row{ display:flex; align-items:center; justify-content:space-between; font-size:13.5px; }
.status-row .l{ display:flex; align-items:center; gap:9px; color: var(--text-secondary); font-weight:500; }
.status-row .l svg{ width:16px; height:16px; color: var(--success); }
.status-row .r{ font-weight:650; }

.pager{ display:flex; align-items:center; gap:6px; }
.pager .num{
  width:32px; height:32px; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:600; color: var(--text-secondary); cursor:pointer; border:1px solid transparent;
}
.pager .num.active{ background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }
.pager .nav{ width:32px; height:32px; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; color: var(--text-tertiary); cursor:pointer; }
.pager .nav svg{ width:16px; height:16px; }

.country-row{ display:flex; align-items:center; gap:10px; padding:9px 0; }
.country-row .flag{ font-size:16px; flex:none; }
.country-row .nm{ flex:none; width:88px; font-size:13px; font-weight:600; }
.country-row .bar-track{ flex:1; height:6px; background: var(--bg-inset); border-radius:99px; overflow:hidden; }
.country-row .bar-fill{ height:100%; background: linear-gradient(90deg, var(--accent), var(--amber)); border-radius:99px; }
.country-row .amt{ flex:none; font-size:12.5px; color: var(--text-tertiary); font-weight:600; width:56px; text-align:right; }

/* device grid (mobile card fallback for table) */
.device-card{
  border:1px solid var(--border); border-radius: var(--radius-md); padding:16px; display:flex; flex-direction:column; gap:10px;
}

/* ============================================================
   Page section spacing
   ============================================================ */
.section{ margin-bottom:24px; }
.hairline{ height:1px; background: var(--border); margin: 24px 0; }

/* Empty / placeholder page */
.placeholder-page{
  border:1px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding:64px 32px; text-align:center; color: var(--text-secondary);
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.placeholder-page svg{ width:40px; height:40px; color: var(--accent); }
.placeholder-page h3{ font-size:19px; font-weight:650; color: var(--text-primary); }
.placeholder-page p{ font-size:14px; max-width:440px; line-height:1.6; }

/* ============================================================
   Utility
   ============================================================ */
.flex{ display:flex; } .items-center{ align-items:center; } .justify-between{ justify-content:space-between; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; }
.w-full{ width:100%; }
.text-sec{ color: var(--text-secondary); }
.text-ter{ color: var(--text-tertiary); }
.mt-0{ margin-top:0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px){
  .metric-grid{ grid-template-columns: repeat(2,1fr); }
  .grid-2, .grid-main-side{ grid-template-columns:1fr; }
}
@media (max-width: 900px){
  .app{ display:block; }
  .sidebar{
    position:fixed; z-index:100; left:0; top:0; height:100vh;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open{ transform:translateX(0); }
  .sidebar-scrim{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:99; }
  .sidebar-scrim.show{ display:block; }
  .mobile-menu-btn{ display:flex !important; }
  .topbar{ padding: 0 16px; gap:10px; }
  .content{ padding: 8px 16px 100px; }
  .search-box{ height:42px; }
  .search-box .kbd{ display:none; }
  .page-title{ font-size:26px; }
  .header-side{ display:none; }
  .page-header{ flex-direction:column; padding: 18px 0 20px; }
  .metric-grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .card{ padding:16px; }
  .bottom-nav{ display:flex; }
}
.mobile-menu-btn{ display:none; }

/* Frosted Glass Bottom Mobile Nav */
.bottom-nav{
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:90;
  background: rgba(250, 247, 242, 0.84);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top:1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around; align-items:center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
html[data-theme="dark"] .bottom-nav{
  background: rgba(22, 19, 14, 0.86);
  border-top:1px solid var(--border);
}
.bottom-nav a{ display:flex; flex-direction:column; align-items:center; gap:4px; color: var(--text-tertiary); font-size:10.5px; font-weight:600; padding:4px 12px; border-radius: var(--radius-sm); transition: color .15s ease, background .15s ease; }
.bottom-nav a svg{ width:20px; height:20px; }
.bottom-nav a.active{ color: var(--accent); background: var(--accent-soft); }

@media (max-width: 600px){
  .hero-title{ font-size: 38px !important; }
  .hero-section{ padding: 36px 20px 24px !important; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
  .landing-header{ padding: 16px 20px !important; }
  .stat-item{ padding: 18px 16px !important; }
  .stat-num{ font-size: 20px !important; }
  .feature-section, .logos-row, .map-teaser, .landing-footer{ padding-left: 20px !important; padding-right: 20px !important; }
  .auth-form-side{ padding: 24px 16px !important; }
  .search-box{ max-width: 100%; }
  .exit-label{ display: none; }
}

/* ============================================================
   Auth / Landing shared
   ============================================================ */
.split-auth{ display:grid; grid-template-columns: 1.15fr 1fr; min-height:100vh; }
.auth-visual{
  position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end;
  padding:56px;
  background: url('assets/gold-bg.png') center/cover no-repeat !important;
  color: var(--text-primary);
  transition: background .25s ease;
}
html[data-theme="light"] .auth-visual {
  background: url('assets/gold-bg.png') center/cover no-repeat !important;
  color: var(--text-primary);
}
html[data-theme="dark"] .auth-visual {
  background: url('assets/gold-bg.png') center/cover no-repeat !important;
  filter: brightness(0.78) contrast(1.1);
  color: #F3EEE4;
}
.auth-visual .globe-wrap{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:.9; }
.auth-visual .globe-wrap svg{ width:100%; max-width:540px; }
.auth-visual .logo-mark{ position:absolute; top:48px; left:56px; width:44px; }
.auth-copy{ position:relative; z-index:2; color:#F3EEE4; }
html[data-theme="light"] .auth-copy{ color: var(--text-primary); }
.auth-copy .kicker{ font-size:15px; color:#C9BEA9; margin-bottom:4px; }
html[data-theme="light"] .auth-copy .kicker{ color: var(--text-secondary); }
.auth-copy h1{ font-size:42px; font-weight:750; letter-spacing:-.02em; line-height:1.08; }
.auth-copy h1 .hi{ color: var(--amber); }
.auth-copy p{ margin-top:14px; font-size:15px; color:#C9BEA9; max-width:420px; line-height:1.6; }
html[data-theme="light"] .auth-copy p{ color: var(--text-secondary); }
.auth-copy .tags{ margin-top:26px; font-size:12px; letter-spacing:.18em; color:#9A8F78; font-weight:650; }
html[data-theme="light"] .auth-copy .tags{ color: var(--text-tertiary); }
.auth-copy .free{ margin-top:10px; font-size:13px; color:#9A8F78; }
html[data-theme="light"] .auth-copy .free{ color: var(--text-tertiary); }

.auth-form-side{ display:flex; align-items:center; justify-content:center; padding:40px; background: var(--bg); }
.auth-form{ width:100%; max-width:420px; }
.auth-form-top{ display:flex; justify-content:flex-end; margin-bottom:20px; font-size:13.5px; color: var(--text-secondary); }
.auth-form-top a{ color: var(--accent); font-weight:650; }
.auth-title{ font-size:28px; font-weight:750; letter-spacing:-.02em; line-height:1.2; margin-bottom:24px; }
.auth-title .hi{ color: var(--accent); }
.check-row{ display:flex; align-items:flex-start; gap:9px; font-size:12.5px; color: var(--text-secondary); margin: 2px 0 20px; }
.check-row input{ margin-top:2px; }
.check-row a{ color: var(--accent); font-weight:600; }
.divider-row{ display:flex; align-items:center; gap:14px; margin:22px 0; color: var(--text-tertiary); font-size:12.5px; }
.divider-row::before, .divider-row::after{ content:''; flex:1; height:1px; background: var(--border); }
.oauth-row{ display:flex; flex-direction:column; gap:10px; }
.oauth-btn{
  display:flex; align-items:center; justify-content:center; gap:10px; height:46px; border-radius: var(--radius-md);
  border:1px solid var(--border-strong); background: var(--bg-elevated); font-size:13.5px; font-weight:600; cursor:pointer;
  color: var(--text-primary); transition: background .15s ease, border-color .15s ease;
}
.oauth-btn:hover{ background: var(--bg-subtle); border-color: var(--accent); }
.oauth-btn svg{
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex: none;
}
.oauth-two{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.auth-switch{ text-align:center; margin-top:22px; font-size:13.5px; color: var(--text-secondary); }
.auth-switch a{ color: var(--accent); font-weight:650; }

/* Unified Phone Input Wrap */
.phone-input-wrap{
  display:flex; align-items:center; height:46px; border-radius: var(--radius-md);
  border:1px solid var(--border); background: var(--bg-inset); padding:0 12px; gap:8px;
  transition: border-color .15s ease, background .15s ease;
}
.phone-input-wrap:focus-within{ border-color: var(--accent); background: var(--bg-elevated); }
.phone-flag{ font-size:16px; flex:none; }
.phone-code-select{ border:none; background:transparent; outline:none; font-size:13.5px; font-weight:600; color: var(--text-primary); cursor:pointer; padding:0 4px; }
.phone-v-divider{ width:1px; height:20px; background: var(--border-strong); flex:none; }
.phone-number-input{ border:none; outline:none; background:transparent; flex:1; font-size:14px; color: var(--text-primary); font-family:inherit; }
.phone-number-input::placeholder{ color: var(--text-tertiary); }

@media (max-width: 900px){
  .split-auth{ grid-template-columns:1fr; }
  .auth-visual{ display:none; }
}

/* ============================================================
   Landing page
   ============================================================ */
.landing-header{
  display:flex; align-items:center; padding: 22px 48px; gap:32px;
  position:sticky; top:0; z-index:30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px);
  border-bottom:1px solid transparent;
}
.landing-nav{ display:flex; gap:28px; margin-left:8px; }
.landing-nav a{ font-size:14px; font-weight:550; color: var(--text-secondary); }
.landing-nav a:hover{ color: var(--text-primary); }
.landing-header-actions{ margin-left:auto; display:flex; align-items:center; gap:12px; }

.hero-section{ padding: 64px 48px 40px; display:grid; grid-template-columns:1fr 480px; gap:32px; align-items:center; max-width:1320px; margin:0 auto; position:relative; overflow:hidden; }
.hero-eyebrow{ font-size:12px; letter-spacing:.16em; font-weight:650; color: var(--accent); margin-bottom:18px; }
.hero-title{ font-size:64px; font-weight:750; letter-spacing:-.03em; line-height:1.03; }
.hero-title .hi{ color: var(--accent); }
.hero-sub{ margin-top:20px; font-size:17px; color: var(--text-secondary); max-width:460px; line-height:1.6; }
.hero-actions{ margin-top:28px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.hero-free{ margin-top:20px; font-size:13px; color: var(--text-tertiary); }
.hero-art{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-side-note{ position:absolute; font-size:10.5px; letter-spacing:.1em; font-weight:650; color: var(--text-tertiary); line-height:1.5; z-index:2; pointer-events:none; }
.hero-side-note .rule{ width:26px; height:2px; background: var(--accent); margin-top:4px; margin-left:auto; }
.hero-side-note.top{ top:20px; right:10px; text-align:right; }
.hero-side-note.mid{ top:180px; right:10px; text-align:right; }
.hero-side-note.bot{ bottom:30px; right:10px; text-align:right; }

.stat-bar{
  max-width:1180px; margin: 20px auto 56px; padding: 0 48px;
  display:flex;
}
.stat-bar-inner{
  display:grid; grid-template-columns:repeat(4,1fr); width:100%;
  background: var(--bg-elevated); border:1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat-item{ padding:26px 30px; border-right:1px solid var(--border); }
.stat-item:last-child{ border-right:none; }
.stat-num{ font-size:26px; font-weight:750; letter-spacing:-.02em; }
.stat-label{ font-size:11px; letter-spacing:.1em; color: var(--text-tertiary); font-weight:650; margin-top:6px; }

.logos-row{ max-width:1180px; margin: 0 auto 64px; padding: 0 48px; }
.logos-row .lbl{ font-size:11px; letter-spacing:.12em; color: var(--text-tertiary); font-weight:650; margin-bottom:22px; }
.logos-strip{ display:flex; align-items:center; gap:44px; flex-wrap:wrap; color: var(--text-tertiary); font-weight:650; font-size:15px; }
.logos-strip span{ display:flex; align-items:center; gap:8px; opacity:.75; }

.feature-section{ max-width:1180px; margin: 0 auto 30px; padding: 0 48px; }
.feature-head{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:end; margin-bottom:30px; }
.feature-eyebrow{ font-size:11px; letter-spacing:.12em; color: var(--text-tertiary); font-weight:650; margin-bottom:12px; }
.feature-title{ font-size:32px; font-weight:700; letter-spacing:-.02em; line-height:1.15; }
.feature-title .hi{ color: var(--accent); }
.feature-desc{ font-size:14.5px; color: var(--text-secondary); line-height:1.6; }
.feature-desc .btn{ margin-top:16px; }
.feature-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:50px; }
.feature-card{ background: var(--bg-elevated); border:1px solid var(--border); border-radius: var(--radius-lg); padding:22px; }
.feature-icon{ width:42px; height:42px; border-radius:11px; background: var(--accent-soft); color: var(--accent-strong); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.feature-icon svg{ width:20px; height:20px; }
.feature-card h4{ font-size:15.5px; font-weight:650; margin-bottom:8px; }
.feature-card p{ font-size:13px; color: var(--text-secondary); line-height:1.55; }

.map-teaser{
  max-width:1180px; margin: 0 auto 70px; padding: 0 48px;
}
.map-teaser-inner{
  display:grid; grid-template-columns: 1.3fr 1fr; align-items:center; gap:0;
  background: radial-gradient(ellipse at 20% 50%, #2a2115 0%, #16130E 70%);
  border-radius: var(--radius-lg); overflow:hidden; min-height:340px;
}
.map-teaser-globe{ padding:20px; }
.map-teaser-globe svg{ width:100%; }
.map-teaser-copy{ padding: 20px 44px 20px 8px; color:#F3EEE4; }
.map-teaser-copy .lbl{ font-size:11px; letter-spacing:.14em; color:#9A8F78; font-weight:650; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.map-teaser-copy .lbl .live-dot{ width:7px; height:7px; border-radius:50%; background:#D9A25C; animation: pulse 1.8s infinite; }
.map-teaser-copy h3{ font-size:26px; font-weight:700; letter-spacing:-.02em; line-height:1.2; }
.map-teaser-copy h3 .hi{ color:#D9A25C; }
.map-teaser-copy p{ margin-top:10px; font-size:13.5px; color:#C9BEA9; line-height:1.6; max-width:340px; }
.map-teaser-copy .btn{ margin-top:18px; }

.landing-footer{
  max-width:1180px; margin:0 auto; padding: 30px 48px 40px; display:flex; align-items:center; gap:16px;
  border-top:1px solid var(--border);
}
.landing-footer .fbrand{ display:flex; align-items:center; gap:10px; }
.landing-footer .fbrand img{
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  border-radius: 6px;
}
.landing-footer .fbrand .n{ font-weight:700; font-size:14px; }
.landing-footer .fbrand .t{ font-size:11.5px; color: var(--text-tertiary); }
.landing-footer .flinks{ display:flex; gap:22px; margin: 0 auto; font-size:13px; color: var(--text-secondary); }
.landing-footer .fsocial{ display:flex; gap:14px; color: var(--text-tertiary); }
.landing-footer .fsocial svg{ width:17px; height:17px; }

@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

/* Globe Rotation & Flow Animations */
.animated-globe-svg {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.22));
}
.globe-rotating-grid {
  animation: globeSpin 36s linear infinite;
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.globe-orbit-ring {
  animation: globeOrbitReverse 22s linear infinite;
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.globe-arc {
  stroke-dasharray: 10 5;
  animation: globeArcFlow 3s linear infinite;
}

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

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

@keyframes globeArcFlow {
  0% { stroke-dashoffset: 30; }
  100% { stroke-dashoffset: 0; }
}

@media (max-width: 1100px){
  .hero-section{ grid-template-columns:1fr; text-align:center; }
  .hero-art{ display:flex; justify-content:center; align-items:center; max-width:380px; margin:20px auto 0; }
  .stat-bar-inner{ grid-template-columns:repeat(2,1fr); }
  .stat-item:nth-child(2){ border-right:none; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .feature-head{ grid-template-columns:1fr; }
  .map-teaser-inner{ grid-template-columns:1fr; }
  .map-teaser-globe{ display:flex; justify-content:center; align-items:center; max-width:360px; margin:0 auto; }
  .landing-nav{ display:none; }
}

/* ============================================================
   GLASS & ONBOARDING STYLES
   ============================================================ */
.glass-card-auth {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(168, 103, 46, 0.18);
  box-shadow: 0 16px 40px rgba(33, 28, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s ease;
}
html[data-theme="dark"] .glass-card-auth {
  background: rgba(26, 22, 16, 0.84);
  border-color: rgba(217, 162, 92, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.onboard-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .12em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(168, 103, 46, 0.25);
}

.pill-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ob-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 550;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.ob-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.ob-pill.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(168, 103, 46, 0.18);
  font-weight: 650;
}

.ob-option-card:hover {
  border-color: var(--accent) !important;
  background: var(--bg-subtle) !important;
}
.ob-option-card.active {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: 0 4px 14px rgba(168, 103, 46, 0.15);
}

/* Glass Profile Chip in Sidebar */
.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all .2s ease;
}
html[data-theme="dark"] .profile-chip {
  background: rgba(30, 25, 18, 0.70);
  border-color: rgba(255, 255, 255, 0.08);
}
.profile-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 103, 46, 0.15);
}
.profile-chip .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 8px rgba(168, 103, 46, 0.3);
}
.profile-chip .name {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.2;
}
.profile-chip .role {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--accent-strong);
  margin-top: 2px;
}

/* Onboarding Modal Inner */
.onboard-modal-inner {
  max-width: 480px;
}

/* ============================================================
   MOBILE RESPONSIVE COMPATIBILITY (Down to 320px)
   ============================================================ */
@media (max-width: 768px) {
  .split-auth {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .auth-visual {
    padding: 32px 20px 24px;
    min-height: 260px;
    text-align: center;
  }
  .auth-visual .globe-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 240px;
    max-height: 240px;
    margin: 0 auto 12px;
    opacity: 0.9;
  }
  .auth-visual .logo-mark {
    margin: 0 auto 12px;
  }
  .auth-copy h1 {
    font-size: 32px;
  }
  .auth-copy p {
    font-size: 14px;
  }
  .auth-form-side {
    padding: 20px 16px 36px;
  }
  .auth-form {
    padding: 24px 18px;
    max-width: 100%;
  }

  .main {
    width: 100%;
  }
  .content {
    padding: 16px 14px 84px;
  }
  .topbar {
    padding: 0 14px;
    height: 56px;
  }
  .topbar .search-box {
    max-width: 180px;
  }
  .topbar .kbd {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    background: var(--bg-elevated);
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim {
    position: fixed; inset: 0;
    z-index: 140;
    background: rgba(16, 13, 9, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .sidebar-scrim.show {
    opacity: 1; pointer-events: auto;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .grid-2, .grid-3, .grid-main-side {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-header .header-side {
    text-align: left;
  }
  .header-side .rule {
    margin-left: 0;
  }

  .landing-header {
    padding: 14px 18px;
  }
  .hero-section {
    padding: 32px 18px 40px;
  }
  .hero-title {
    font-size: 34px;
  }
  .stat-bar {
    padding: 0 16px;
  }
  .stat-bar-inner {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .feature-section, .map-teaser, .logos-row, .landing-footer {
    padding: 0 16px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .landing-footer .flinks {
    margin: 0;
    flex-wrap: wrap;
    gap: 14px;
  }
}

}

@media (max-width: 480px) {
  .pill-options-grid {
    flex-direction: column;
  }
  .ob-pill {
    width: 100%;
    text-align: center;
  }
  .phone-input-wrap {
    flex-wrap: wrap;
    gap: 6px;
  }
  .phone-v-divider {
    display: none;
  }
}

/* ============================================================
   NETGUARD AI — CSV Processing Animation & 24/7 Log Monitor
   ============================================================ */
.csv-scanner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

.radar-scanner-box {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.25;
  animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.radar-ring:nth-child(2) {
  animation-delay: 0.5s;
}

.radar-ring:nth-child(3) {
  animation-delay: 1s;
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(168, 103, 46, 0.4) 0deg, transparent 60deg, transparent 360deg);
  animation: radarRotate 1.8s linear infinite;
}

.radar-center-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(168, 103, 46, 0.25);
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

.scan-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-inset);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 14px 0 18px;
  border: 1px solid var(--border);
}

.scan-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--amber) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.2s linear;
}

.scan-telemetry-box {
  width: 100%;
  background: #11100D;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #A79D8A;
  text-align: left;
  height: 70px;
  overflow-y: auto;
  margin-top: 14px;
}

.scan-telemetry-line {
  line-height: 1.5;
  word-break: break-all;
}

.scan-telemetry-line.highlight {
  color: #F0C493;
  font-weight: 600;
}

.scan-steps-list {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.scan-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.scan-step-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.scan-step-item.completed {
  color: var(--success);
}

.scan-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.scan-step-item.active .scan-step-dot {
  border-color: var(--accent);
  color: var(--accent);
  animation: pulseDot 1s infinite alternate;
}

.scan-step-item.completed .scan-step-dot {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* --- 24/7 Live Monitoring Console --- */
.live-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(76, 122, 91, 0.12);
  border: 1px solid rgba(76, 122, 91, 0.3);
  color: var(--success);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: liveBlink 1.2s infinite ease-in-out;
}

.live-pulse-badge.paused {
  background: rgba(181, 69, 58, 0.12);
  border-color: rgba(181, 69, 58, 0.3);
  color: var(--danger);
}

.live-pulse-badge.paused .pulse-dot {
  background: var(--danger);
  box-shadow: none;
  animation: none;
}

@keyframes liveBlink {
  0% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.3; transform: scale(0.8); }
}

.terminal-console {
  background: #11100D;
  color: #E2D9C8;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border-strong);
  max-height: 480px;
  overflow-y: auto;
  padding: 14px;
}

.terminal-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
  word-break: break-all;
}

.terminal-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.terminal-row.new-entry {
  animation: highlightRow 1s ease-out;
}

@keyframes highlightRow {
  0% { background: rgba(168, 103, 46, 0.3); }
  100% { background: transparent; }
}

.terminal-time {
  color: #8C8273;
  flex-shrink: 0;
}

.terminal-badge {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-info { background: rgba(107, 124, 168, 0.25); color: #93A2CC; }
.badge-critical { background: rgba(181, 69, 58, 0.3); color: #FF8F83; }
.badge-high { background: rgba(201, 138, 62, 0.3); color: #FFC078; }
.badge-medium { background: rgba(201, 138, 62, 0.2); color: #E5B26E; }
.badge-ai { background: rgba(168, 103, 46, 0.35); color: #F0C493; border: 1px solid rgba(168, 103, 46, 0.5); }

.csv-model-card {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-inset) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(168, 103, 46, 0.12);
}

.csv-stat-pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.csv-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.csv-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

