/* ═══════════════════════════════════════════
   PinLayout Super Admin — Design Tokens
   Matches Sentinel/BiggerWide neumorphic system
   ═══════════════════════════════════════════ */

:root {
  --bg: #ecf0f3;
  --dark: #d1d9e6;
  --light: #ffffff;

  /* Shadows — exact Sentinel values */
  --shadow-sm: -2px -1px 2px 0 #fff, 2px 1px 4px 0 #d1d9e6;
  --shadow: -4px -2px 4px 0 #fff, 4px 2px 8px 0 #d1d9e6;
  --shadow-lg: -8px -4px 8px 0 #fff, 8px 4px 12px 0 #d1d9e6;
  --shadow-xl: -8px -4px 8px 0 #fff, 8px 4px 12px 0 #d1d9e6, rgba(0,0,0,0.15) 0 10px 40px;
  --shadow-inset: inset 4px 4px 4px #d1d9e6, inset -4px -4px 4px #fff;
  --shadow-pressed: inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #fff;

  /* Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --cyan: #06b6d4;
  --success: #22c55e;
  --success-dark: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --teal: #14b8a6;
  --orange: #f97316;
  --info: #3b82f6;

  /* Text */
  --t1: #394a56;
  --t2: #6b7c8a;
  --t3: #99a8b5;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1, #06b6d4);
  --grad-success: linear-gradient(135deg, #22c55e, #16a34a);
  --grad-warm: linear-gradient(135deg, #f59e0b, #f97316);
  --grad-pink: linear-gradient(135deg, #ec4899, #8b5cf6);
  --grad-purple: linear-gradient(135deg, #8b5cf6, #6366f1);
  --grad-danger: linear-gradient(135deg, #ef4444, #f97316);

  /* Radii — Sentinel uses 16-20px */
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-xs: 6px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
input, select, button { font-family: inherit; }
table { border-collapse: collapse; }

/* ═══════════════════════════════════════════
   LAYOUT — Top Nav + Sidebar + Main
   ═══════════════════════════════════════════ */

/* Top navigation bar */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(209,217,230,0.5);
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.topnav-brand {
  display: flex; align-items: center; gap: 10px;
}
.topnav-logo {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.topnav-title {
  font-size: 16px; font-weight: 700; color: var(--t1);
}
.topnav-badge {
  font-size: 9px; font-weight: 700; color: #fff;
  background: var(--primary); padding: 2px 8px; border-radius: 10px;
  margin-left: 4px;
}
.topnav-links {
  display: flex; gap: 2px; align-items: center;
}
.topnav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--t2);
  cursor: pointer; transition: all 0.2s;
}
.topnav-link:hover { color: var(--primary); background: rgba(99,102,241,0.06); }
.topnav-link.active {
  color: var(--primary); font-weight: 600;
  background: var(--bg); box-shadow: var(--shadow-sm);
  border-radius: var(--r-md);
}
.topnav-link i { font-size: 17px; }
.topnav-right {
  display: flex; align-items: center; gap: 12px;
}
.topnav-notif {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--bg); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--t2); cursor: pointer; position: relative;
}
.topnav-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg);
}
.topnav-avatar {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  cursor: pointer;
}
.topnav-user {
  font-size: 13px; font-weight: 600; color: var(--t1);
}
.topnav-user-role {
  font-size: 10px; color: var(--t3);
}

/* Sub-navigation tabs */
.subnav {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  background: var(--bg);
  padding: 0 24px;
  height: 44px;
  display: flex; align-items: center; gap: 4px;
  border-bottom: 1px solid rgba(209,217,230,0.5);
}
.subnav-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500; color: var(--t2);
  cursor: pointer; transition: all 0.2s;
}
.subnav-tab:hover { color: var(--primary); }
.subnav-tab.active {
  color: var(--primary); font-weight: 600;
  background: var(--bg); box-shadow: var(--shadow-sm);
}
.subnav-tab i { font-size: 14px; }
.subnav-right { margin-left: auto; display: flex; gap: 8px; }

/* Sidebar */
.sidebar {
  position: fixed; top: 100px; left: 0; bottom: 0;
  width: 210px; padding: 14px;
  overflow-y: auto;
}
.sidebar-profile {
  background: var(--grad-primary);
  border-radius: var(--r-xl);
  padding: 18px; color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}
.sidebar-profile-date {
  font-size: 9px; font-weight: 600;
  background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 10px;
  display: inline-block; margin-bottom: 8px;
}
.sidebar-profile-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.sidebar-profile-role { font-size: 11px; opacity: 0.8; margin-bottom: 12px; }
.sidebar-profile-stats { display: flex; gap: 10px; }
.sidebar-stat { text-align: center; }
.sidebar-stat-val { font-size: 14px; font-weight: 700; }
.sidebar-stat-label { font-size: 9px; opacity: 0.7; }

.sidebar-card {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 14px;
}
.sidebar-label {
  font-size: 10px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 0 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--dark);
  display: flex; align-items: center; gap: 6px;
}
.sidebar-label i { font-size: 14px; }
.sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500; color: var(--t2);
  cursor: pointer; margin-bottom: 2px; transition: all 0.15s;
}
.sidebar-item:hover { color: var(--primary); background: rgba(99,102,241,0.06); }
.sidebar-item.active {
  color: var(--primary); font-weight: 600;
  background: var(--bg); box-shadow: var(--shadow-sm);
}
.sidebar-item i { font-size: 16px; }
.sidebar-item-count {
  margin-left: auto; font-size: 10px; font-weight: 600;
  color: var(--primary);
}
.sidebar-item-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.sidebar-quick-stats { display: flex; flex-direction: column; gap: 6px; }
.sidebar-quick-stat {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.sidebar-quick-stat-label { color: var(--t2); }
.sidebar-quick-stat-val { font-weight: 600; }

/* Main content area */
.main {
  margin-left: 210px; margin-top: 100px;
  padding: 20px 28px 40px;
  min-height: calc(100vh - 100px);
}

/* ═══════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════ */

/* Page header */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.neo-container .page-header { margin-bottom: 0; }
.page-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; margin-right: 14px; flex-shrink: 0;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--t1); }
.page-desc { font-size: 12px; color: var(--t2); margin-top: 2px; }
.page-actions { display: flex; gap: 8px; }

/* Neumorphic card */
.card {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.card-sm {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.card-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
}
.card-title { font-size: 14px; font-weight: 600; color: var(--t1); }
.card-subtitle { font-size: 11px; color: var(--t2); }

/* Metric cards row */
.metrics { display: grid; gap: 14px; margin-bottom: 20px; }
.metrics-4 { grid-template-columns: repeat(4, 1fr); }
.metrics-5 { grid-template-columns: repeat(5, 1fr); }
.metrics-3 { grid-template-columns: repeat(3, 1fr); }

.metric {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
}
.metric-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.metric-val { font-size: 26px; font-weight: 700; color: var(--t1); }
.metric-label { font-size: 12px; color: var(--t2); }
.metric-sub { font-size: 10px; margin-top: 2px; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-wide { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: var(--r-sm);
  padding: 9px 16px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.btn i { font-size: 14px; }
.btn-neu {
  background: var(--bg); box-shadow: var(--shadow);
  color: var(--t1);
}
.btn-neu:hover { box-shadow: var(--shadow-lg); }
.btn-neu:active { box-shadow: var(--shadow-pressed); }
.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(99,102,241,0.4); }
.btn-danger-soft {
  background: rgba(239,68,68,0.1); color: var(--danger);
  border: 1px solid rgba(239,68,68,0.15);
}
.btn-success-soft {
  background: rgba(34,197,94,0.1); color: var(--success-dark);
  border: 1px solid rgba(34,197,94,0.15);
}

/* Search box */
.search-box {
  background: var(--bg); box-shadow: var(--shadow-inset);
  border-radius: var(--r-md); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
}
.search-box input {
  border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--t1); width: 100%;
}
.search-box i { font-size: 16px; color: var(--t3); }

/* Filter tabs (neumorphic segmented control) */
.filter-tabs {
  display: flex; gap: 3px; background: var(--bg); border-radius: var(--r-md);
  padding: 4px; box-shadow: var(--shadow-inset); width: fit-content;
}
.filter-tab {
  padding: 7px 14px; border-radius: 9px; text-align: center;
  font-size: 12px; font-weight: 500; color: var(--t2);
  cursor: pointer; transition: all 0.15s;
}
.filter-tab.active {
  background: var(--bg); color: var(--primary); font-weight: 600;
  box-shadow: var(--shadow);
}
.filter-tab .count {
  font-size: 10px; background: rgba(99,102,241,0.12);
  color: var(--primary); padding: 1px 6px; border-radius: 8px;
  margin-left: 4px; font-weight: 600;
}

/* Filter chips */
.filter-chips { display: flex; gap: 6px; }
.filter-chip {
  background: var(--bg); box-shadow: var(--shadow-sm);
  border-radius: var(--r-xs); padding: 6px 12px;
  font-size: 11px; font-weight: 500; color: var(--t2); cursor: pointer;
}
.filter-chip.active {
  box-shadow: var(--shadow-pressed); color: var(--primary); font-weight: 600;
}

/* Table */
.table-card {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.table-card table { width: 100%; }
.table-card th {
  font-size: 11px; font-weight: 700; color: var(--t3);
  text-align: left; padding: 12px 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(209,217,230,0.5);
}
.table-card th.sortable { cursor: pointer; }
.table-card td {
  font-size: 12px; padding: 12px 14px; color: var(--t1);
  border-bottom: 1px solid rgba(209,217,230,0.4);
}
.table-card tr:last-child td { border-bottom: none; }
.table-card tr:hover td { background: rgba(99,102,241,0.02); }

/* Pills / badges */
.pill {
  font-size: 9px; font-weight: 600; padding: 3px 10px;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 4px;
}
.pill i { font-size: 10px; }
.pill-active { background: rgba(34,197,94,0.12); color: #16a34a; }
.pill-trial { background: rgba(245,158,11,0.12); color: #d97706; }
.pill-failed { background: rgba(239,68,68,0.12); color: #dc2626; }
.pill-churned { background: rgba(153,168,181,0.15); color: var(--t2); }
.pill-free { background: rgba(153,168,181,0.12); color: var(--t2); }
.pill-pro { background: rgba(99,102,241,0.12); color: var(--primary); }
.pill-enterprise { background: rgba(6,182,212,0.12); color: #0891b2; }
.pill-pending { background: rgba(245,158,11,0.12); color: #d97706; }

/* User avatar */
.avatar {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 10px; border-radius: 8px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; border-radius: var(--r-md); }

/* User row (in cards) */
.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(209,217,230,0.35);
}
.user-row:last-child { border-bottom: none; }
.user-name { font-size: 13px; font-weight: 600; color: var(--t1); }
.user-email { font-size: 10px; color: var(--t3); }
.user-right { margin-left: auto; text-align: right; }

/* Activity feed */
.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(209,217,230,0.35);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; flex-shrink: 0;
}
.activity-text { font-size: 12px; color: var(--t1); line-height: 1.4; }
.activity-time { font-size: 10px; color: var(--t3); }

/* Alert rows */
.alert-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  margin-bottom: 6px;
}
.alert-row:last-child { margin-bottom: 0; }

/* Quick actions grid */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qa {
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 16px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: box-shadow 0.2s;
}
.qa:hover { box-shadow: var(--shadow-lg); }
.qa-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; flex-shrink: 0;
}
.qa-label { font-size: 12px; font-weight: 600; color: var(--t1); }
.qa-sub { font-size: 10px; color: var(--t3); }
.qa-arrow { margin-left: auto; font-size: 16px; color: var(--t3); }

/* Status inset card */
.status-inset {
  background: var(--bg); box-shadow: var(--shadow-inset);
  border-radius: var(--r-sm); padding: 12px; text-align: center;
  margin-top: 10px;
}

/* Detail view header */
.detail-header {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 24px; margin-bottom: 20px;
}
.detail-title { font-size: 22px; font-weight: 700; color: var(--t1); }
.detail-meta { font-size: 12px; color: var(--t2); margin-top: 4px; }
.detail-pills { display: flex; gap: 6px; margin-top: 10px; }
.detail-route {
  background: var(--bg); box-shadow: var(--shadow-inset);
  border-radius: var(--r-md); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.detail-route-point { text-align: center; }
.detail-route-label { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.5px; }
.detail-route-val { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 2px; }

/* Value highlight card */
.value-card {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px; text-align: center;
}
.value-card-amount { font-size: 28px; font-weight: 700; color: var(--primary); }
.value-card-label { font-size: 11px; color: var(--t3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Key-value pairs in detail cards */
.kv-table { width: 100%; }
.kv-table tr { border-bottom: 1px solid rgba(209,217,230,0.3); }
.kv-table tr:last-child { border-bottom: none; }
.kv-table td { padding: 10px 0; font-size: 13px; }
.kv-table td:first-child { color: var(--t2); width: 40%; }
.kv-table td:last-child { font-weight: 600; text-align: right; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; font-size: 11px; color: var(--t2);
}
.pagination-btns { display: flex; gap: 4px; }
.pagination-btn {
  background: var(--bg); box-shadow: var(--shadow-sm);
  border: none; border-radius: var(--r-xs);
  padding: 5px 10px; font-size: 11px; font-weight: 500;
  color: var(--t2); cursor: pointer; font-family: inherit;
}
.pagination-btn.active {
  box-shadow: var(--shadow-pressed); color: var(--primary); font-weight: 600;
}

/* License key mono */
.license-key {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 11px; background: var(--bg);
  box-shadow: var(--shadow-inset);
  padding: 4px 10px; border-radius: var(--r-xs);
  color: var(--t1); letter-spacing: 0.5px;
}

/* Device indicator dots */
.device-dots { display: flex; gap: 3px; align-items: center; }
.device-dot {
  width: 16px; height: 16px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.device-dot.active { background: rgba(34,197,94,0.15); color: var(--success); }
.device-dot.empty { background: rgba(209,217,230,0.5); color: var(--t3); }

/* Plan cards */
.plan-card {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px; position: relative;
}
.plan-card.featured {
  box-shadow: var(--shadow-xl);
  outline: 2px solid var(--primary);
}
.plan-featured-badge {
  position: absolute; top: -1px; right: 18px;
  background: var(--grad-primary); color: #fff;
  font-size: 9px; font-weight: 600; padding: 3px 12px;
  border-radius: 0 0 8px 8px;
}
.plan-name { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.plan-desc { font-size: 11px; color: var(--t2); line-height: 1.5; margin-bottom: 12px; }
.plan-price { font-size: 30px; font-weight: 700; color: var(--t1); }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--t2); }
.plan-annual { font-size: 10px; color: var(--t3); margin-top: 2px; margin-bottom: 12px; }
.plan-features { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.plan-feat {
  font-size: 12px; color: var(--t2);
  display: flex; align-items: center; gap: 6px;
}
.plan-feat i { font-size: 13px; color: var(--success); }

/* ═══════════════════════════════════════════
   NEO CONTAINER — Sentinel-style raised wrapper
   ═══════════════════════════════════════════ */
.neo-container {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}

/* Neo table — neumorphic row cards inside container */
.neo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.neo-table thead th {
  font-size: 11px; font-weight: 700; color: var(--t3);
  text-align: left; padding: 0 16px 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: transparent;
  border: none;
}
.neo-table tbody tr {
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
  transition: box-shadow 0.2s;
}
.neo-table tbody tr:hover {
  box-shadow: var(--shadow-lg);
}
.neo-table tbody td {
  font-size: 12px; padding: 16px; color: var(--t1);
  background: var(--bg);
  border: none;
}
.neo-table tbody td:first-child {
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.neo-table tbody td:last-child {
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

/* Neo table overflow wrapper — prevents shadow clipping */
.neo-table-wrap {
  overflow-x: auto;
  padding: 6px 8px;
  margin: -6px -8px;
}

/* Neo pill tabs — horizontal section switcher */
.neo-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--bg); padding: 6px;
  border-radius: var(--r-lg); box-shadow: var(--shadow-inset);
  margin-bottom: 24px;
}
.neo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px;
  font-size: 12px; font-weight: 500; color: var(--t2);
  background: transparent; box-shadow: none;
  cursor: pointer; transition: all 0.2s; border: none;
  font-family: inherit; white-space: nowrap;
}
.neo-pill:hover { color: var(--primary); }
.neo-pill.active {
  color: var(--primary); font-weight: 600;
  background: var(--bg); box-shadow: var(--shadow);
}
.neo-pill i { font-size: 16px; }

/* Neo search bar inside container */
.neo-search {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.neo-search-input {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); box-shadow: var(--shadow-inset);
  border-radius: var(--r-md); padding: 10px 16px;
  flex: 1; max-width: 400px;
}
.neo-search-input input {
  border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--t1); width: 100%;
}
.neo-search-input i { font-size: 18px; color: var(--t3); }

/* Neo count text */
.neo-count {
  font-size: 13px; color: var(--t2);
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(209,217,230,0.5);
}
.neo-count b { color: var(--t1); font-weight: 700; }

/* Neo pagination inside container */
.neo-pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(209,217,230,0.5);
  font-size: 12px; color: var(--t2);
}
.neo-pagination-btns { display: flex; gap: 4px; }
.neo-pagination-btn {
  background: var(--bg); box-shadow: var(--shadow-sm);
  border: none; border-radius: var(--r-xs);
  padding: 6px 12px; font-size: 11px; font-weight: 500;
  color: var(--t2); cursor: pointer; font-family: inherit;
}
.neo-pagination-btn.active {
  box-shadow: var(--shadow-pressed); color: var(--primary); font-weight: 600;
}

/* Utility */
.text-success { color: var(--success-dark); }
.text-danger { color: var(--danger); }
.text-warning { color: #d97706; }
.text-muted { color: var(--t3); }
.text-primary { color: var(--primary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 11px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 14px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 14px; }
.gap-sm { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ─── Neumorphic Checkbox ─── */
.neo-check { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
.neo-check input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.neo-check .neo-check-box { width: 20px; height: 20px; border-radius: 6px; background: var(--bg); box-shadow: inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #fff; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.neo-check input:checked + .neo-check-box { background: var(--grad-primary); box-shadow: -2px -1px 3px 0 #fff, 2px 1px 4px 0 #d1d9e6; }
.neo-check input:checked + .neo-check-box .neo-check-icon { opacity: 1; transform: scale(1); }
.neo-check .neo-check-icon { font-size: 14px; color: #fff; opacity: 0; transform: scale(0.5); transition: all 0.2s ease; }

/* ═══════════════════════════════════════════
   AUTH & SYSTEM PAGES (login, 2FA, reset, 404, profile)
   ═══════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.auth-bg-glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.10), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.auth-bg-glow.one { top: -160px; left: -120px; }
.auth-bg-glow.two { bottom: -180px; right: -120px; background: radial-gradient(circle, rgba(6,182,212,0.10), transparent 70%); }
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 410px;
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); padding: 38px 34px;
}
.auth-card-wide { max-width: 460px; }
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; }
.auth-logo {
  width: 46px; height: 46px; border-radius: var(--r-md); background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
  box-shadow: 0 6px 18px rgba(99,102,241,0.38);
}
.auth-brand-name { font-size: 18px; font-weight: 700; color: var(--t1); }
.auth-brand-badge { font-size: 9px; font-weight: 700; color: #fff; background: var(--primary); padding: 2px 7px; border-radius: 8px; }
.auth-title { font-size: 21px; font-weight: 700; color: var(--t1); text-align: center; margin-top: 22px; }
.auth-sub { font-size: 13px; color: var(--t2); text-align: center; margin-top: 6px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--t2); margin-bottom: 8px; }
.field-input {
  display: flex; align-items: center; gap: 10px; background: var(--bg);
  box-shadow: var(--shadow-inset); border-radius: var(--r-md); padding: 12px 14px;
  transition: box-shadow 0.2s;
}
.field-input:focus-within { box-shadow: var(--shadow-pressed); }
.field-input i { font-size: 18px; color: var(--t3); }
.field-input input { border: none; background: transparent; outline: none; font-size: 14px; color: var(--t1); width: 100%; }
.field-input .toggle-pw { cursor: pointer; }
.btn-block { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.auth-link { color: var(--primary); font-weight: 600; font-size: 12px; }
.auth-foot { text-align: center; font-size: 12px; color: var(--t2); margin-top: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--t3); font-size: 11px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--dark); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t2); cursor: pointer; }
/* 2FA code inputs */
.code-inputs { display: flex; gap: 10px; justify-content: center; margin: 4px 0 26px; }
.code-box {
  width: 50px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; color: var(--t1);
  background: var(--bg); box-shadow: var(--shadow-inset); border: none; border-radius: var(--r-md); outline: none;
  transition: box-shadow 0.2s;
}
.code-box:focus { box-shadow: var(--shadow-pressed); }
.code-box.filled { box-shadow: var(--shadow-sm); color: var(--primary); }
/* requirement checklist */
.req-list { list-style: none; margin: 4px 0 18px; display: grid; gap: 7px; }
.req-list li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--t3); }
.req-list li i { font-size: 14px; }
.req-list li.ok { color: var(--success-dark); }
/* 404 / system */
.sys-card { position: relative; z-index: 1; text-align: center; max-width: 460px; }
.sys-code { font-size: 86px; font-weight: 800; line-height: 1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sys-icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; box-shadow: var(--shadow-lg); }
