/* ============================================
   MY SMART DOOR - Premium Design System v1.0
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Core Colors */
  --primary-blue: #00A2E8;
  --primary-blue-hover: #00B8FF;
  --secondary-blue: #0078D7;
  --deep-blue: #004F9F;
  --electric-blue: #00D4FF;

  /* Background System */
  --dark-bg: #081321;
  --dark-bg-2: #0A1828;
  --dark-card: #0E1B2A;
  --dark-card-2: #112236;
  --dark-border: rgba(0, 162, 232, 0.15);
  --dark-border-hover: rgba(0, 162, 232, 0.4);

  /* Glass System */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(0, 162, 232, 0.25);

  /* Chrome/Metal Gradients */
  --chrome-silver: linear-gradient(135deg, #C8D6E0 0%, #A8B8C8 25%, #D8E8F0 50%, #90A8BC 75%, #B8C8D8 100%);
  --chrome-blue: linear-gradient(135deg, #00A2E8 0%, #0078D7 40%, #005BB5 70%, #0090D8 100%);
  --metallic-dark: linear-gradient(180deg, #1A2F45 0%, #0E1B2A 50%, #081321 100%);
  --hero-gradient: linear-gradient(135deg, #081321 0%, #0A1C35 40%, #081321 100%);
  --card-gradient: linear-gradient(145deg, #0E1B2A 0%, #112236 100%);
  --blue-glow-gradient: linear-gradient(135deg, rgba(0,162,232,0.15) 0%, rgba(0,120,215,0.05) 100%);

  /* Status Colors */
  --success: #22C55E;
  --success-dim: rgba(34, 197, 94, 0.15);
  --warning: #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.15);
  --danger: #EF4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --info: #00A2E8;
  --info-dim: rgba(0, 162, 232, 0.15);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-blue: 0 0 30px rgba(0, 162, 232, 0.3), 0 0 60px rgba(0, 162, 232, 0.1);
  --shadow-blue-sm: 0 0 15px rgba(0, 162, 232, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
  --shadow-glow-blue: 0 0 20px rgba(0, 162, 232, 0.5), 0 0 40px rgba(0, 162, 232, 0.2), 0 0 80px rgba(0, 162, 232, 0.05);
  --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.4);
  --shadow-glow-red: 0 0 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(239, 68, 68, 0.2);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Premium Accent (Phase 1 Owner OS redesign) ---
     Brass/gold ties to the physical branded gold-on-black QR plates
     owners already have on their door — used sparingly for "premium"
     signal (plan badges, profile ring, elevated moments only). The
     blue system above stays the primary "live/secure" language. */
  --brass: #C9A24B;
  --brass-bright: #E8C874;
  --brass-dim: rgba(201, 162, 75, 0.14);
  --brass-border: rgba(201, 162, 75, 0.4);
  --shadow-brass-sm: 0 0 16px rgba(201, 162, 75, 0.25);

  --shadow-elevate: 0 24px 60px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: #E2ECF4;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Typography Scale --- */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.text-chrome {
  background: var(--chrome-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-blue-gradient {
  background: linear-gradient(135deg, #00D4FF 0%, #00A2E8 40%, #0078D7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-hero-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #C8E8F8 30%, #00A2E8 60%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Utility Classes --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass-card-strong {
  background: rgba(14, 27, 42, 0.8);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
}

.dark-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.blue-glow-border {
  border: 1px solid rgba(0, 162, 232, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 162, 232, 0.1), var(--shadow-blue-sm);
}

/* --- Button System --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #00A2E8 0%, #0078D7 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 162, 232, 0.35), 0 1px 0 rgba(255,255,255,0.1) inset;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-blue), 0 8px 30px rgba(0,162,232,0.4);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: #00A2E8;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 162, 232, 0.4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0, 162, 232, 0.1);
  border-color: rgba(0, 162, 232, 0.7);
  box-shadow: var(--shadow-blue-sm);
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

/* --- Status Badge System --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-available {
  background: var(--success-dim);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-busy {
  background: var(--warning-dim);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-dnd {
  background: var(--danger-dim);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Animations --- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,162,232,0.3); }
  50% { box-shadow: 0 0 40px rgba(0,162,232,0.6), 0 0 80px rgba(0,162,232,0.2); }
}

@keyframes float-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  70% { transform: rotate(2deg); }
  80% { transform: rotate(0deg); }
}

@keyframes call-ring {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes scan-line {
  0% { top: 0%; }
  50% { top: 90%; }
  100% { top: 0%; }
}

@keyframes ai-processing {
  0% { width: 0%; }
  60% { width: 80%; }
  80% { width: 90%; }
  100% { width: 100%; }
}

@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { 
    text-shadow: 0 0 10px #00A2E8, 0 0 20px #00A2E8, 0 0 40px #00A2E8; 
  }
  20%, 24%, 55% { text-shadow: none; }
}

@keyframes loading-skeleton {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.animate-float { animation: float-up 0.6s ease forwards; }
.animate-glow { animation: glow-pulse 2s ease-in-out infinite; }
.animate-bell { animation: bell-ring 1s ease-in-out; }
.animate-slide-up { animation: slide-in-up 0.4s ease forwards; }
.animate-slide-right { animation: slide-in-right 0.4s ease forwards; }

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--dark-card-2) 25%, rgba(0,162,232,0.05) 50%, var(--dark-card-2) 75%);
  background-size: 200px 100%;
  animation: loading-skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* --- Toggle Switch --- */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  transition: var(--transition-base);
}

.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(135deg, #00A2E8, #0078D7);
  border-color: #00A2E8;
  box-shadow: 0 0 12px rgba(0,162,232,0.5);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition-base);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.toggle-switch input:checked ~ .toggle-thumb {
  left: 27px;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: rgba(0,162,232,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,162,232,0.6); }

/* --- Input System --- */
.input-field {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: #E2ECF4;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-base);
  outline: none;
}

.input-field:focus {
  border-color: rgba(0,162,232,0.6);
  background: rgba(0,162,232,0.05);
  box-shadow: 0 0 0 3px rgba(0,162,232,0.1);
}

.input-field::placeholder { color: rgba(255,255,255,0.5); }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(8, 19, 33, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(0,162,232,0.1);
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 19, 33, 0.95);
  border-bottom-color: rgba(0,162,232,0.2);
  padding: 12px 24px;
}

/* --- Logo Component --- */
.sd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sd-logo-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.sd-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #A8C8E8 40%, #00A2E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* --- Shield Logo SVG Icon --- */
.shield-icon {
  filter: drop-shadow(0 0 8px rgba(0,162,232,0.5));
}

/* --- Feature Cards --- */
.feature-card {
  padding: 24px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,162,232,0.4), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(0,162,232,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,162,232,0.1);
}

.feature-card:hover::before { opacity: 1; }

/* --- Product Cards --- */
.product-card {
  border-radius: var(--radius-xl);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: var(--transition-base);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.product-card.selected {
  border-color: rgba(0,162,232,0.6);
  box-shadow: 0 0 0 2px rgba(0,162,232,0.2), var(--shadow-blue-sm);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,162,232,0.15);
}

/* --- Mobile Phone Mockup --- */
.phone-mockup {
  width: 200px;
  height: 420px;
  background: linear-gradient(160deg, #1A2F45, #0A1828);
  border-radius: 32px;
  border: 2px solid rgba(0,162,232,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,162,232,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 20px;
  background: #0A1828;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Visitor Log Table --- */
.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
}

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

.log-time {
  color: rgba(255,255,255,0.4);
  min-width: 55px;
  font-size: 0.78rem;
  font-family: var(--font-display);
}

.log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Stat Cards --- */
.stat-card {
  padding: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
}

.stat-trend.up { color: #22C55E; }
.stat-trend.down { color: #EF4444; }

/* --- AI Processing Animation --- */
.ai-processing-bar {
  height: 3px;
  background: linear-gradient(90deg, #00A2E8, #00D4FF, #0078D7);
  border-radius: 2px;
  animation: ai-processing 2s ease forwards;
  background-size: 200% 100%;
}

.ai-thinking {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ai-dot {
  width: 8px;
  height: 8px;
  background: #00A2E8;
  border-radius: 50%;
  animation: ai-dot-bounce 1.2s ease-in-out infinite;
}

.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* --- Routing Animation --- */
.routing-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-path 2s ease forwards;
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

/* --- Call Ripple Effect --- */
.call-ripple {
  position: relative;
}

.call-ripple::before,
.call-ripple::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(0,162,232,0.4);
  animation: call-ring 2s ease-out infinite;
}

.call-ripple::after {
  animation-delay: 0.5s;
}

/* --- Night Mode Overlay --- */
.night-mode-overlay {
  background: linear-gradient(135deg, rgba(8,19,33,0.95) 0%, rgba(4,10,18,0.98) 100%);
  border: 1px solid rgba(239,68,68,0.2);
}

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00A2E8, #0078D7);
  border-radius: 2px;
  margin: 16px auto;
}

/* --- Tooltip --- */
.tooltip {
  position: relative;
}

.tooltip-text {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(14,27,42,0.95);
  border: 1px solid rgba(0,162,232,0.3);
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: 10;
}

.tooltip:hover .tooltip-text { opacity: 1; }

/* --- Modal Backdrop --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--dark-card-2);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-2xl);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-base);
  box-shadow: var(--shadow-card), 0 0 60px rgba(0,0,0,0.5);
}

.modal-backdrop.active .modal-box {
  transform: scale(1) translateY(0);
}

/* --- QR Scan Animation --- */
.qr-scan-container {
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00A2E8, transparent);
  box-shadow: 0 0 10px #00A2E8;
  animation: scan-line 2.5s linear infinite;
}

/* --- Responsive Utilities --- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: flex !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* --- PWA Install Banner --- */
.install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-card-2);
  border: 1px solid rgba(0,162,232,0.35);
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  box-shadow: var(--shadow-blue), var(--shadow-card);
  width: calc(100% - 40px);
  max-width: 400px;
  animation: slide-in-up 0.4s ease;
}

/* --- Print / No-JS fallbacks --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Selection Color --- */
::selection {
  background: rgba(0,162,232,0.3);
  color: #fff;
}

/* ============================================
   PHASE 3 — PWA / OWNER OS ADDITIONS
   ============================================ */

/* --- Loading Skeletons --- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-text {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.skeleton-card {
  height: 92px;
  border-radius: var(--radius-lg);
}

/* --- Animated Counter --- */
.counter-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* --- Metric Card v2 (Phase 3 dashboard) --- */
.metric-card {
  position: relative;
  padding: 16px;
  background: linear-gradient(145deg, #0E1B2A 0%, #0C1826 100%);
  border: 1px solid rgba(0,162,232,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--metric-glow, rgba(0,162,232,0.18)) 0%, transparent 70%);
  pointer-events: none;
}

.metric-card:hover {
  border-color: rgba(0,162,232,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.metric-icon-chip {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* --- Drag-style Priority Cards (Family Routing) --- */
.priority-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  transition: var(--transition-fast);
  cursor: grab;
}

.priority-card:active { cursor: grabbing; }

.priority-card.drag-over {
  border-color: rgba(0,162,232,0.5);
  background: rgba(0,162,232,0.06);
}

.priority-card.dragging {
  opacity: 0.4;
  border-style: dashed;
}

.drag-handle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: grab;
  flex-shrink: 0;
  padding: 4px 2px;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.priority-card:hover .drag-handle { opacity: 0.7; }

.drag-handle span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.priority-rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
  color: #fff;
}

.priority-rank.r1 { background: linear-gradient(135deg,#00D4FF,#0078D7); box-shadow: 0 0 12px rgba(0,162,232,0.4); }
.priority-rank.r2 { background: rgba(0,162,232,0.35); }
.priority-rank.r3 { background: rgba(255,255,255,0.12); }
.priority-rank.r4 { background: rgba(255,255,255,0.08); }

/* --- QR Heatmap (placeholder, future-ready) --- */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(0,162,232,var(--h-opacity, 0.06));
  transition: transform 0.15s;
}

.heatmap-cell:hover {
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(0,162,232,0.5);
}

/* --- Monthly Chart Bars --- */
.month-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.month-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #0078D7, #00D4FF);
  width: 0%;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* --- Intent Breakdown Ring Segments (Donut) --- */
.donut-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.donut-segment {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

/* --- Subscription Card --- */
.sub-feature-pill {
  font-size: 0.65rem;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(0,162,232,0.08);
  color: rgba(0,162,232,0.75);
  white-space: nowrap;
}

/* --- Bottom Nav badge dot --- */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.7);
}

/* --- Section eyebrow label (used across owner OS) --- */
.os-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* --- Confidence meter (AI receptionist) --- */
.confidence-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 6px;
}

.confidence-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================
   PREMIUM LANDING PAGE ADDITIONS
   ============================================ */

/* Syne font support (used in redesigned landing) */
.font-syne { font-family: 'Syne', sans-serif; }

/* Navbar refinement for landing page */
.lp-nav-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.lp-nav-link:hover { color: #fff; }

/* Responsive helper used on landing */
@media (max-width: 768px) {
  .resp-grid-1 { grid-template-columns: 1fr !important; }
  .features-grid { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   PHASE 1 — PREMIUM OWNER OS: Topbar, Notification
   Center & Profile Menu (additive, non-breaking)
   ============================================ */

@keyframes sd-dropdown-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sd-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #E2ECF4;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.sd-icon-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--dark-border-hover);
  transform: translateY(-1px);
}

.sd-icon-btn:active { transform: translateY(0) scale(0.95); }

.sd-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--dark-bg);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

.sd-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: #1A1206;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--brass-border);
  box-shadow: var(--shadow-brass-sm);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.sd-avatar-btn:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(201,162,75,0.4); }

/* Dropdown shell shared by notification center + profile menu */
.sd-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: rgba(10, 20, 34, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevate);
  z-index: 400;
  overflow: hidden;
  transform-origin: top right;
  animation: sd-dropdown-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.sd-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sd-dropdown-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.sd-dropdown-body { max-height: 340px; overflow-y: auto; padding: 8px; }
.sd-dropdown-body::-webkit-scrollbar { display: none; }

.sd-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: #E2ECF4;
  text-decoration: none;
}

.sd-dropdown-item:hover { background: rgba(255,255,255,0.05); }

.sd-dropdown-item.danger:hover { background: rgba(239,68,68,0.1); color: #F87171; }

.sd-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: var(--info-dim);
}

.sd-dropdown-empty {
  padding: 28px 16px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

.sd-dropdown-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Small gold "premium" seal — used sparingly on plan/owner-tier moments */
.premium-seal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232,200,116,0.18), rgba(201,162,75,0.08));
  border: 1px solid var(--brass-border);
  color: var(--brass-bright);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ============================================
   PHASE 4 — PREMIUM OWNER DASHBOARD
   Additive only. Does not modify/override any
   existing selector above. Safe to remove this
   block entirely to roll back Phase 4 styling.
   ============================================ */

/* --- Welcome Hero --- */
.premium-hero {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18,32,50,0.95) 0%, rgba(8,19,33,0.95) 100%);
  border: 1px solid rgba(0,162,232,0.14);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
}

.premium-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,162,232,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.home-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ADE80;
}

.home-status-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 2s infinite;
}

.home-status-chip.chip-info {
  background: rgba(0,162,232,0.1);
  border-color: rgba(0,162,232,0.28);
  color: #5FC8F5;
}

/* --- AI Insights card --- */
.ai-insight-card {
  position: relative;
  border-image: none;
  background: linear-gradient(160deg, rgba(18,32,50,0.95) 0%, rgba(11,21,34,0.95) 100%);
  border: 1px solid rgba(168,85,247,0.18);
}

.ai-insight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(0,162,232,0.15), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ai-insight-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(0,162,232,0.15));
  box-shadow: 0 0 16px rgba(168,85,247,0.25);
}

/* --- Quick Actions --- */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.quick-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  min-height: 84px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.22s;
  text-align: center;
}

.quick-action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0,162,232,0.3);
  background: rgba(0,162,232,0.06);
  box-shadow: 0 8px 20px rgba(0,162,232,0.12);
}

.quick-action-tile:active { transform: scale(0.97); }

.quick-action-tile.qa-danger:hover {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.08);
  box-shadow: 0 8px 20px rgba(239,68,68,0.15);
}

.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: rgba(0,162,232,0.1);
}

.quick-action-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  line-height: 1.2;
}

@media (min-width: 900px) {
  .quick-actions-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   Premium Owner Experience — additive styles only
   (Visitor Timeline / Notification Center / Share Access /
   Smart Analytics). Does not override any existing selector.
   ═══════════════════════════════════════════════════════ */

.op-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.op-chip:hover { background: rgba(255,255,255,0.08); }
.op-chip:active { transform: scale(0.96); }

.op-chip.op-chip-active {
  background: rgba(0,162,232,0.16);
  border-color: rgba(0,162,232,0.4);
  color: #00A2E8;
}

.op-mini-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.op-mini-stat:hover {
  border-color: rgba(0,162,232,0.25);
  transform: translateY(-1px);
}

.op-mini-stat-label {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-bottom: 4px;
}

.op-mini-stat-value {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

/* --- AI Insight Cards (Phase 7B) — additive, does not modify .op-mini-stat --- */
.op-insight-card {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.op-insight-card:last-child { margin-bottom: 0; }

.op-insight-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.op-insight-card-icon { font-size: 0.85rem; }

.op-insight-card-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.op-insight-card-text {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.62);
}

/* Full-screen panels (Visitor Timeline / Notifications / Share Access) —
   same layered z-index convention as #inbox-thread-overlay so they never
   collide with existing overlays. */
#op-timeline-overlay, #op-notif-overlay, #op-share-overlay {
  animation: op-fade-in 0.18s ease;
}

@keyframes op-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile-first: comfortable full-width panels */
@media (max-width: 899px) {
  #op-timeline-overlay, #op-notif-overlay, #op-share-overlay {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* General polish: smoother dash-card interaction feedback (additive,
   does not change layout/sizing of existing .dash-card rules) */
.dash-card { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.dash-card:hover { border-color: rgba(0,162,232,0.15); }

/* ═══════════════════════════════════════════════════════
   Owner Activity Center (Phase 2) — additive styles only.
   Reuses .op-chip / .op-mini-stat / .log-item / .btn-primary /
   .settings-input from the Premium Owner Experience block above;
   only new selectors are defined here.
   ═══════════════════════════════════════════════════════ */

#activity-center-overlay { animation: op-fade-in 0.18s ease; }

@media (max-width: 899px) {
  #activity-center-overlay { max-width: 480px; margin: 0 auto; }
}

.ac-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .ac-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.ac-chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ac-export-wrap { position: relative; }

.ac-export-btn {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(0,162,232,0.14);
  border: 1px solid rgba(0,162,232,0.35);
  color: #00A2E8;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.ac-export-btn:hover { background: rgba(0,162,232,0.22); }

.ac-export-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #0F2337;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  z-index: 10;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.ac-export-menu-item {
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  white-space: nowrap;
}

.ac-export-menu-item:hover { background: rgba(255,255,255,0.06); }

.ac-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.15s ease;
}

.ac-row:hover { background: rgba(255,255,255,0.03); }
.ac-row:last-child { border-bottom: none; }

.ac-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.ac-row-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.ac-row-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.ac-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.ac-network-chip {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.ac-label-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.ac-load-more-btn {
  padding: 9px 20px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
}

.ac-load-more-btn:hover { background: rgba(255,255,255,0.08); }

.ac-label-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ac-label-option {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
}

.ac-label-option-active { outline: 2px solid currentColor; outline-offset: -1px; }

/* Visitor Details Drawer — right-side slide-in on desktop, full-panel
   on mobile. Higher z-index than #activity-center-overlay so it stacks
   on top of it. */
.ac-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}

.ac-drawer-overlay.ac-drawer-open { display: block; }

.ac-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.ac-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 400px;
  background: #0A1828;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.ac-drawer-overlay.ac-drawer-open .ac-drawer-panel { transform: translateX(0); }

@media (max-width: 480px) {
  .ac-drawer-panel { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   Visitor Management Upgrade (Phase 9) — additive only.
   Avatars, favorites, smart badges, quick actions, blocked
   state, and the Visitor Insights dashboard card. Reuses
   .op-mini-stat / .op-chip / .ac-row / .skeleton — does not
   override any existing selector.
   ═══════════════════════════════════════════════════════ */

.ac-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-avatar-fallback {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}

.ac-avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00A2E8;
  border: 2px solid #0A1828;
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.ac-avatar-edit-btn:active { transform: scale(0.92); }

.ac-fav-star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.15s ease, transform 0.15s ease;
}

.ac-fav-star:active { transform: scale(0.85); }
.ac-fav-star-lg { font-size: 1.3rem; }
.ac-fav-star.ac-fav-star-active { color: #F5C518; }

.ac-mini-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid;
}

.ac-mini-badge-new       { background: rgba(0,162,232,0.12); border-color: rgba(0,162,232,0.35); color: #00A2E8; }
.ac-mini-badge-repeat    { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.3);  color: #4ADE80; }
.ac-mini-badge-regular   { background: rgba(201,162,75,0.14); border-color: rgba(201,162,75,0.4); color: #E8C874; }
.ac-mini-badge-blocked   { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #F87171; }

.ac-row-blocked { opacity: 0.55; }

.ac-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.ac-quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ac-quick-action-btn span {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(255,255,255,0.55);
}

.ac-quick-action-btn:active { transform: scale(0.95); }
.ac-quick-action-btn:hover:not(:disabled) { background: rgba(255,255,255,0.08); }
.ac-quick-action-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.ac-quick-action-danger span { color: rgba(248,113,113,0.7); }
.ac-quick-action-danger { color: #F87171; }
.ac-quick-action-danger-active { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #4ADE80; }
.ac-quick-action-danger-active span { color: rgba(74,222,128,0.8); }


/* ════════════════════════════════════════════════════════════════════
   PRODUCTION NOTIFICATION CENTER (js/notificationCenter.js)
   Additive only — reuses .btn-primary / .settings-input / .toggle-switch
   / .toggle-track / .toggle-thumb / .dash-card design tokens already
   defined above. New "nc-" prefixed classes do not collide with any
   existing selector.
   ════════════════════════════════════════════════════════════════════ */

.nc-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger, #EF4444);
  border: 2px solid var(--dark-bg, #081321);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

.nc-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  pointer-events: none;
}

.nc-overlay.nc-open { display: block; pointer-events: auto; }

.nc-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nc-overlay.nc-open .nc-scrim { opacity: 1; }

.nc-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: #081321;
  border-left: 1px solid var(--glass-border-strong, rgba(255,255,255,0.1));
  box-shadow: -14px 0 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.nc-overlay.nc-open .nc-drawer { transform: translateX(0); }

@media (max-width: 640px) {
  .nc-drawer { max-width: 100%; }
}

.nc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.nc-drawer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.nc-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.nc-icon-btn:hover { background: rgba(255,255,255,0.12); }

.nc-drawer-body { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
.nc-drawer-body::-webkit-scrollbar { display: none; }

.nc-tabs-row { position: sticky; top: 0; background: #081321; padding: 12px 0 8px; z-index: 2; }
.nc-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.nc-tabs::-webkit-scrollbar { display: none; }

.nc-chip {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nc-chip:hover { background: rgba(255,255,255,0.09); }
.nc-chip-active {
  background: rgba(0,162,232,0.16);
  border-color: rgba(0,162,232,0.4);
  color: #fff;
}
.nc-chip-count {
  display: inline-block;
  background: rgba(239,68,68,0.9);
  color: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 0.66rem;
  margin-left: 2px;
}

.nc-actions-row { display: flex; justify-content: flex-end; padding: 2px 0 8px; }

.nc-link-btn {
  background: none;
  border: none;
  color: #00A2E8;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}
.nc-link-btn:hover { color: #4DC4FF; }

.nc-list { display: flex; flex-direction: column; }

.nc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nc-row-unread { background: rgba(0,162,232,0.05); border-radius: 10px; }

.nc-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(0,162,232,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nc-row-main { flex: 1; min-width: 0; cursor: pointer; }
.nc-row-title { font-size: 0.84rem; font-weight: 700; color: #fff; }
.nc-row-unread .nc-row-title { font-weight: 800; }
.nc-row-body { font-size: 0.76rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.nc-row-meta { font-size: 0.68rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

.nc-row-delete {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nc-row-delete:hover { background: rgba(239,68,68,0.12); color: #F87171; }

.nc-empty, .nc-loading {
  text-align: center;
  padding: 40px 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.nc-list-footer { padding: 10px 0 4px; text-align: center; }
.nc-load-more-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.nc-load-more-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Preferences view ── */
.nc-prefs-back-row { padding: 12px 0 4px; }

.nc-pref-section { margin-bottom: 18px; }
.nc-pref-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.nc-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nc-pref-row-label { font-size: 0.82rem; color: #E2ECF4; }
.nc-pref-hint { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 6px; line-height: 1.5; }

.nc-mini-toggle { transform: scale(0.85); transform-origin: right center; }

.nc-quiet-times { display: flex; gap: 10px; padding: 8px 0 4px; }
.nc-quiet-time-field { flex: 1; }
.nc-quiet-time-field label { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-bottom: 4px; }

.nc-save-btn { margin-top: 4px; }
