/* ==========================================================================
   APPLE SUPER CLEAN DESIGN SYSTEM — CUPERTINO & MACOS DASHBOARD
   Pixel-perfect implementation inspired by macOS Sonoma & Apple Cupertino Aesthetics
   ========================================================================== */

:root {
  /* Canvas & Light Mode Palette (Default) */
  --canvas-bg: #e5e9f0;
  --window-bg: #fbfcfd;
  --card-bg: #ffffff;
  --card-bg-subtle: #f8fafc;
  --card-border: rgba(0, 0, 0, 0.05);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  --card-hover-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);

  /* Typography Colors */
  --text-main: #111827;
  --text-sub: #4b5563;
  --text-muted: #9ca3af;
  --text-light: #6b7280;

  /* Apple Vibrant Accents */
  --apple-blue: #0071e3;
  --apple-purple: #7c3aed;
  --apple-indigo: #6366f1;
  --apple-green: #10b981;
  --apple-green-bg: #ecfdf5;
  --apple-green-text: #059669;
  --apple-red: #ef4444;
  --apple-red-bg: #fef2f2;
  --apple-red-text: #dc2626;
  --apple-yellow: #f59e0b;
  --apple-coral: #ff453a;

  /* UI Tokens */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-window: 32px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-apple: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Text', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --canvas-bg: #090a0f;
  --window-bg: #13151b;
  --card-bg: #1c1e27;
  --card-bg-subtle: #171922;
  --card-border: rgba(255, 255, 255, 0.07);
  --card-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --card-hover-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);

  --text-main: #f9fafb;
  --text-sub: #d1d5db;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --apple-green-bg: rgba(16, 185, 129, 0.15);
  --apple-green-text: #34d399;
  --apple-red-bg: rgba(239, 68, 68, 0.15);
  --apple-red-text: #f87171;
}

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

html {
  font-size: 14.5px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-apple);
  background: var(--canvas-bg);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Colorful Abstract Pastel Mesh Background (Just like the reference screenshot!) */
.macos-desktop-canvas {
  min-height: 100vh;
  padding: 2.5rem 1.75rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background-color: #dbe4ee;
  background-image: 
    radial-gradient(at 10% 20%, rgba(244, 114, 182, 0.45) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(251, 191, 36, 0.5) 0px, transparent 50%),
    radial-gradient(at 5% 85%, rgba(52, 211, 153, 0.45) 0px, transparent 50%),
    radial-gradient(at 95% 85%, rgba(129, 140, 248, 0.5) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(147, 197, 253, 0.35) 0px, transparent 60%);
  background-attachment: fixed;
  background-size: cover;
}

[data-theme="dark"] .macos-desktop-canvas {
  background-color: #07080c;
  background-image: 
    radial-gradient(at 10% 20%, rgba(190, 24, 93, 0.25) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(180, 83, 9, 0.25) 0px, transparent 50%),
    radial-gradient(at 5% 85%, rgba(5, 150, 105, 0.25) 0px, transparent 50%),
    radial-gradient(at 95% 85%, rgba(79, 70, 229, 0.3) 0px, transparent 50%);
}

/* ================= 1. MACOS WINDOW FRAME ================= */
.macos-window-frame {
  width: 100%;
  max-width: 1320px;
  background: var(--window-bg);
  border-radius: var(--radius-window);
  box-shadow: 0 35px 100px -15px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: background var(--transition);
}

[data-theme="dark"] .macos-window-frame {
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* ================= 2. SAFARI TITLE BAR ================= */
.safari-titlebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  user-select: none;
}

[data-theme="dark"] .safari-titlebar {
  background: rgba(26, 29, 38, 0.85);
}

.titlebar-left, .titlebar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Traffic Lights (macOS Close, Minimize, Expand dots) */
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.traffic-dot:hover {
  filter: brightness(0.85);
  transform: scale(1.08);
}
.close-dot { background: #ff5f56; border: 1px solid #e0443e; }
.minimize-dot { background: #ffbd2e; border: 1px solid #dea123; }
.zoom-dot { background: #27c93f; border: 1px solid #1aab29; }

.safari-nav-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.safari-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.safari-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}
[data-theme="dark"] .safari-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.safari-btn svg {
  width: 15px;
  height: 15px;
}

/* Safari URL Capsule */
.safari-url-capsule {
  flex: 1;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
}
[data-theme="dark"] .safari-url-capsule {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
}
.safari-url-capsule:hover {
  background: rgba(0, 0, 0, 0.07);
}
.url-shield-icon {
  width: 13px;
  height: 13px;
  color: var(--apple-green);
}
.url-reload-icon {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.url-text b {
  color: var(--text-main);
  font-weight: 600;
}

/* ================= 3. APPLE APP NAV BAR & SEGMENTED CONTROLS ================= */
.apple-app-nav {
  padding: 1.25rem 2rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Apple Brand Avatar / Glyph */
.apple-brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.apple-brand-avatar:hover {
  transform: scale(1.05);
}
.brand-monogram {
  font-weight: 900;
  font-size: 1.15rem;
  color: #4f46e5;
  letter-spacing: -0.05em;
  font-family: var(--font-apple);
}

/* Segmented Control Pills (Exact Apple Cupertino Look) */
.segmented-control-bar {
  display: inline-flex;
  align-items: center;
  background: #eef1f6;
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}
[data-theme="dark"] .segmented-control-bar {
  background: #202430;
}

.segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.segment-btn svg {
  width: 14px;
  height: 14px;
}
.segment-btn:hover {
  color: var(--text-main);
}
.segment-btn.active {
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .segment-btn.active {
  background: #2d3345;
  color: #ffffff;
}

/* Nav Right Tools */
.nav-right-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.apple-dropdown-pill, .apple-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: var(--transition);
}
[data-theme="dark"] .apple-dropdown-pill, [data-theme="dark"] .apple-pill-btn {
  background: #1c1e27;
  border-color: var(--card-border);
}
.apple-dropdown-pill:hover, .apple-pill-btn:hover {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.apple-dropdown-pill svg, .apple-pill-btn svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

/* Apple Dual Theme Switcher (Dark & Light Segmented Pill) */
.apple-theme-dual-pill {
  display: inline-flex;
  align-items: center;
  background: #eef1f6;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .apple-theme-dual-pill {
  background: #202430;
}

.theme-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-mode-btn svg {
  width: 14px;
  height: 14px;
}
.theme-mode-btn:hover {
  color: var(--text-main);
}
.theme-mode-btn.active {
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .theme-mode-btn.active {
  background: #2d3345;
  color: #ffffff;
}
#btn-theme-light.active svg {
  color: #f59e0b;
}
#btn-theme-dark.active svg {
  color: #818cf8;
}

/* Notification Bell */
.apple-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .apple-icon-pill {
  background: #1c1e27;
}
.apple-icon-pill svg {
  width: 16px;
  height: 16px;
  color: var(--text-sub);
}
.notif-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-red);
}

/* User Profile & Action Buttons */
.btn-apple-primary {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
  transition: var(--transition);
}
[data-theme="dark"] .btn-apple-primary {
  background: #ffffff;
  color: #111827;
}
.btn-apple-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.28);
}
.btn-apple-primary svg {
  width: 14px;
  height: 14px;
}

.apple-user-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .apple-user-badge {
  background: #1c1e27;
}
.apple-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apple-user-name {
  font-weight: 600;
  font-size: 0.84rem;
}
.badge-role-gold {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

/* ================= 4. APPLE BENTO CONTENT CANVAS ================= */
.apple-content-canvas {
  padding: 1.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Base Card Style */
.apple-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.6rem;
  transition: box-shadow var(--transition);
}
.apple-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-main-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-dots-btn {
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.card-dots-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}
.card-dots-btn svg {
  width: 16px;
  height: 16px;
}

/* Top Bento Grid (3 Columns) */
.bento-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.35fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1100px) and (min-width: 720px) {
  .bento-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .card-wallet-stack {
    grid-column: span 2;
  }
}

/* --- Card 1: Quick Whitelist / Contributors --- */
.card-quick-transfer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contributors-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.contributor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.contributor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.45rem;
  position: relative;
  transition: transform 0.2s ease;
}
.contributor-item:hover .contributor-avatar {
  transform: scale(1.08);
}

.avatar-owner { background: linear-gradient(135deg, #f59e0b, #d97706); }
.avatar-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar-coral { background: linear-gradient(135deg, #f43f5e, #be123c); }
.avatar-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.avatar-green { background: linear-gradient(135deg, #10b981, #047857); }

.active-badge-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--apple-green);
  border: 2px solid #fff;
}

.contributor-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.contributor-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.quick-auth-bar {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quick-input-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.quick-input-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.1rem 0;
}

.btn-apple-dark {
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
[data-theme="dark"] .btn-apple-dark {
  background: #374151;
}
.btn-apple-dark:hover {
  background: #111827;
}

/* --- Card 2: Monthly Activity & Method Trends --- */
.mini-period-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-sub);
}
.mini-period-pill svg {
  width: 11px;
  height: 11px;
}

.activity-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.activity-metric {
  display: flex;
  flex-direction: column;
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.metric-big {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.active-column-pill {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.1);
}
[data-theme="dark"] .active-column-pill {
  background: rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.4);
  color: #c4b5fd;
}

/* Minimalist Bar Chart */
.apple-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 96px;
  padding: 0 0.5rem;
  gap: 0.85rem;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  max-width: 26px;
  background: #ede9fe;
  border-radius: 6px;
  transition: height 0.3s ease;
}
[data-theme="dark"] .bar {
  background: #2e284a;
}

.bar-glow {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
  position: relative;
}

.bar-sparkle-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.col-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.active-col-label {
  color: var(--apple-purple);
  font-weight: 700;
}

/* --- Card 3: Apple VIP Digital Clearance Pass (3D Tilt & Metallic Titanium) --- */
.card-tilt-container {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.digital-vip-pass {
  background: linear-gradient(135deg, #1e2029 0%, #0f1015 60%, #1a1d26 100%);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  color: #ffffff;
  position: relative;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: hidden;
}

.digital-vip-pass::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.digital-vip-pass:hover {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.3) inset;
}

.pass-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pass-emv-chip {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
}
.pass-emv-chip::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 14px;
  border-top: 1px solid rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.pass-nfc-icon {
  color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}
.pass-nfc-icon svg {
  width: 16px;
  height: 16px;
}

.pass-tier-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.pass-body {
  margin-bottom: 1.25rem;
}

.pass-brand-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.pass-holder-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

.pass-role-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.pass-footer-barcode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
}

.barcode-lines {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 16px;
}
.barcode-lines span {
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}
.barcode-lines span:nth-child(even) {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.pass-id-hash {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.badge-green-text {
  color: var(--apple-green);
  font-weight: 600;
  margin-left: 0.35rem;
}

.balance-number {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ================= 5. BOTTOM BENTO ROW ================= */
.bento-bottom-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .bento-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Card 4: Method Feed & Transaction-Style Stream --- */
.feed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.feed-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feed-count-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.feed-tools-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.apple-search-box {
  display: flex;
  align-items: center;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  gap: 0.4rem;
}
.apple-search-box svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.apple-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.82rem;
  color: var(--text-main);
  width: 160px;
}

.btn-apple-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-apple-outline:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}
.btn-apple-outline svg {
  width: 12px;
  height: 12px;
}

/* Category Pills Slider */
.apple-category-pills-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.cat-pill svg {
  width: 12px;
  height: 12px;
}
.cat-pill:hover {
  background: #eef2f6;
  color: var(--text-main);
}
.cat-pill.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
[data-theme="dark"] .cat-pill.active {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
}

/* Methods List: Styled Like Apple Transaction Rows */
.apple-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apple-method-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.apple-method-row:hover {
  background: var(--card-bg-subtle);
  border-color: var(--card-border);
}

.method-app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.icon-meta { background: linear-gradient(135deg, #0081fb, #0064e0); }
.icon-youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.icon-google { background: linear-gradient(135deg, #ea4335, #fbbc05); }
.icon-apple { background: linear-gradient(135deg, #111827, #374151); }
.icon-adobe { background: linear-gradient(135deg, #ff0000, #ff6b6b); }

.method-info-col {
  display: flex;
  flex-direction: column;
}

.method-title-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.method-date-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.method-cat-badge {
  font-size: 0.74rem;
  color: var(--text-sub);
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.method-metrics-col {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.method-status-pill {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-verified {
  background: var(--apple-green-bg);
  color: var(--apple-green-text);
}
.status-locked {
  background: var(--apple-red-bg);
  color: var(--apple-red-text);
}

.method-caret {
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}

/* Skeletons */
.apple-row-skeleton {
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.03) 75%);
  background-size: 200% 100%;
  animation: appleShimmer 1.5s infinite;
}
@keyframes appleShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty State */
.apple-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.empty-icon-bubble svg {
  width: 22px;
  height: 22px;
}
.apple-empty-state h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.apple-empty-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Card 5: Siri / Apple Intelligence Assistant Hub --- */
.card-siri-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  padding: 2.25rem 1.75rem;
  position: relative;
  overflow: hidden;
}

/* Iridescent Animated Siri / Apple Intelligence Sphere */
.siri-orb-container {
  margin-bottom: 1.25rem;
}

.siri-orb-sphere {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #a5b4fc 25%, #6366f1 55%, #ec4899 75%, #f43f5e 95%);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35), 0 0 45px rgba(236, 72, 153, 0.25);
  animation: siriPulse 4s infinite ease-in-out;
}

@keyframes siriPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.06) rotate(180deg);
    filter: hue-rotate(45deg);
  }
}

.siri-greeting-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.siri-greeting-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Prompt Action Chips */
.siri-action-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  width: 100%;
}

.siri-chip {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}
.siri-chip:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}
[data-theme="dark"] .siri-chip:hover {
  background: #282c39;
}
.siri-chip svg {
  width: 12px;
  height: 12px;
  color: var(--apple-blue);
}

/* Apple Intelligence Input Capsule */
.siri-input-capsule {
  width: 100%;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.5rem 0.4rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.siri-input-capsule:focus-within {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.siri-input-capsule input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.82rem;
  color: var(--text-main);
}

.capsule-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.model-badge {
  background: #111827;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .model-badge {
  background: #374151;
}

.capsule-icon-btn {
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.capsule-icon-btn:hover {
  color: var(--text-main);
}
.capsule-icon-btn svg {
  width: 14px;
  height: 14px;
}

.capsule-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
[data-theme="dark"] .capsule-send-btn {
  background: #ffffff;
  color: #111827;
}
.capsule-send-btn:hover {
  transform: scale(1.08);
}
.capsule-send-btn svg {
  width: 13px;
  height: 13px;
}

/* ================= 6. SAFARI FOOTER BAR ================= */
.safari-footer-bar {
  border-top: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.5);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}
[data-theme="dark"] .safari-footer-bar {
  background: rgba(20, 22, 29, 0.7);
}

.footer-status-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.status-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apple-green);
  display: inline-block;
}

/* Apple Designer Signature Badge */
.footer-designer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-designer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .apple-designer-badge {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #f3f4f6;
}
.apple-designer-badge:hover {
  transform: translateY(-1px);
  background: rgba(0, 113, 227, 0.12);
  border-color: var(--apple-blue);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}
[data-theme="dark"] .apple-designer-badge:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #818cf8;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.apple-designer-badge strong {
  color: var(--apple-blue);
  font-weight: 700;
}
[data-theme="dark"] .apple-designer-badge strong {
  color: #a5b4fc;
}
.designer-tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #0088cc;
  color: #ffffff;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-left: 0.2rem;
  transition: background 0.2s ease;
}
.apple-designer-badge:hover .designer-tg-pill {
  background: #0099e6;
}
.designer-tg-pill svg {
  width: 10px;
  height: 10px;
}

/* ================= 7. MODALS ARCHITECTURE (APPLE SHEETS) ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.apple-modal-sheet {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .apple-modal-sheet {
  transform: scale(1);
}

.modal-compact {
  max-width: 420px;
  padding: 2.25rem 2rem;
}
.modal-reader {
  max-width: 880px;
}
.modal-admin-deck {
  max-width: 1080px;
  height: 85vh;
}

.apple-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
[data-theme="dark"] .apple-modal-close {
  background: rgba(255, 255, 255, 0.08);
}
.apple-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}
.apple-modal-close svg {
  width: 14px;
  height: 14px;
}

/* Sheet Header */
.sheet-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.sheet-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--apple-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.sheet-icon-circle svg {
  width: 26px;
  height: 26px;
}
.sheet-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.sheet-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Form Groups */
.apple-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  text-align: left;
}
.apple-form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
}

.apple-input-wrap {
  display: flex;
  align-items: center;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
  gap: 0.5rem;
}
.apple-input-wrap:focus-within {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}
.apple-input-wrap svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}
.apple-input-wrap input, .apple-form-group input, .apple-form-group select, .apple-form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.65rem 0;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: inherit;
}
.apple-form-group input, .apple-form-group select, .apple-form-group textarea {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}
.apple-form-group input:focus, .apple-form-group select:focus, .apple-form-group textarea:focus {
  border-color: var(--apple-blue);
}

.apple-input-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-block {
  width: 100%;
}
.btn-apple-subtle {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.5rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.btn-apple-subtle:hover {
  color: var(--text-main);
}
.btn-apple-subtle svg {
  width: 12px;
  height: 12px;
}

.sheet-footer-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
}

/* ================= 8. READER MODAL (APPLE SHEET) ================= */
.reader-sheet-bar {
  background: var(--card-bg-subtle);
  border-bottom: 1px solid var(--card-border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-bar-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.reader-sheet-body {
  overflow-y: auto;
  padding: 2rem 2.25rem;
}

.reader-header-meta {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.reader-pills-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.badge-apple-cat {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}
.badge-apple-pin {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-apple-pin svg { width: 11px; height: 11px; }

.reader-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.reader-author-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reader-author-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-circle-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name-bold {
  font-weight: 700;
  font-size: 0.92rem;
}
.badge-apple-role {
  font-size: 0.65rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.reader-meta-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.reader-views-box {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.reader-views-box svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* Markdown Rendering in Apple Style */
.markdown-body {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-sub);
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: var(--text-main);
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.markdown-body h2 {
  font-size: 1.3rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.35rem;
}
.markdown-body p { margin-bottom: 1rem; }
.markdown-body ul, .markdown-body ol { margin-left: 1.5rem; margin-bottom: 1rem; }

.markdown-body blockquote {
  border-left: 3px solid var(--apple-blue);
  background: rgba(0, 113, 227, 0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  color: var(--apple-blue);
}

.markdown-body code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.05);
  color: #b91c1c;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.86em;
}
[data-theme="dark"] .markdown-body code {
  background: rgba(255, 255, 255, 0.1);
  color: #fca5a5;
}

.markdown-body pre {
  position: relative;
  background: #1e1e24 !important;
  color: #f3f4f6;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}
.markdown-body pre code {
  background: transparent !important;
  color: inherit;
  padding: 0;
}

.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.copy-code-btn:hover { background: rgba(255, 255, 255, 0.25); }

.markdown-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  display: block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.markdown-body img:hover { transform: scale(1.01); }

/* Reader Action Toolbar */
.reader-action-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  margin: 2rem 0;
}
.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.active-like {
  color: var(--apple-red) !important;
  border-color: var(--apple-red) !important;
  background: var(--apple-red-bg) !important;
}
.active-bookmark {
  color: var(--apple-yellow) !important;
  border-color: var(--apple-yellow) !important;
  background: #fef3c7 !important;
}

/* Discussion / Comments */
.reader-discussion-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.discussion-heading {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.discussion-heading svg { width: 16px; height: 16px; color: var(--apple-blue); }

.apple-comment-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.apple-comment-input-wrap textarea {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  outline: none;
  font-size: 0.85rem;
  resize: vertical;
}
.apple-comment-input-wrap textarea:focus {
  border-color: var(--apple-blue);
}
.apple-comment-input-wrap button {
  align-self: flex-end;
}

/* ================= 9. ADMIN COMMAND DECK (APPLE SETTINGS) ================= */
.deck-top-bar {
  background: var(--card-bg-subtle);
  border-bottom: 1px solid var(--card-border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deck-title-wrap {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.text-blue { color: var(--apple-blue); }
.text-red { color: var(--apple-red); }

.admin-segmented-tabs {
  background: var(--card-bg-subtle);
  border-bottom: 1px solid var(--card-border);
  padding: 0.4rem 1.25rem;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.admin-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}
.admin-tab.active {
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .admin-tab.active {
  background: #2d3345;
  color: #fff;
}
.admin-tab svg { width: 13px; height: 13px; }

.apple-godmode-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.78rem;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
[data-theme="dark"] .apple-godmode-banner {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}
.apple-godmode-banner svg { width: 14px; height: 14px; flex-shrink: 0; }

.admin-deck-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.admin-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pane-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pane-search-box {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.pane-search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.pane-search-box input {
  width: 100%;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem 0.45rem 2.1rem;
  font-size: 0.82rem;
  outline: none;
}
.pane-search-box input:focus { border-color: var(--apple-blue); }

.apple-drawer-form {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

.form-actions-right {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Apple Data Table */
.apple-table-wrap {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--card-bg);
}

.apple-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}
.apple-data-table th {
  background: var(--card-bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}
.apple-data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}
.apple-data-table tr:hover td {
  background: var(--card-bg-subtle);
}

.table-count-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Tulis Metode & Photo Dropzone */
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.markdown-quick-tools {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.markdown-quick-tools button {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  color: var(--text-sub);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.markdown-quick-tools button:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-apple-photo {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}
.btn-apple-photo:hover { background: #d1fae5 !important; }

.apple-photo-dropzone {
  border: 2px dashed #cbd5e1;
  background: var(--card-bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.apple-photo-dropzone:hover, .apple-photo-dropzone.drag-over {
  border-color: var(--apple-blue);
  background: #f0f9ff;
}

.dropzone-idle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.dropzone-icon {
  width: 26px;
  height: 26px;
  color: var(--apple-blue);
}
.dropzone-text {
  font-size: 0.82rem;
  color: var(--text-sub);
}
.dropzone-text strong {
  color: var(--apple-blue);
}
.dropzone-subtext {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dropzone-loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--apple-blue);
  font-size: 0.82rem;
}
.apple-spinner-mini {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 113, 227, 0.2);
  border-top-color: var(--apple-blue);
  border-radius: 50%;
  animation: appleSpin 0.8s linear infinite;
}
@keyframes appleSpin {
  to { transform: rotate(360deg); }
}

.form-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Telegram Broadcast Preview */
.apple-preview-card {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.preview-title-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.tg-message-bubble {
  background: #2481cc;
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(36, 129, 204, 0.25);
}

/* System Cards */
.apple-backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.apple-sys-card {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.sys-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.sys-card-icon svg { width: 20px; height: 20px; }
.apple-sys-card h4 { font-size: 1.05rem; font-weight: 700; }
.apple-sys-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; }

/* Apple macOS Security Logs & System Telemetry UI */
.apple-security-status-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

.security-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main);
}

.badge-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-green);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
  display: inline-block;
}

.apple-system-telemetry-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.telemetry-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telemetry-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}

.telemetry-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono, monospace);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.apple-spinner-mini {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(0, 122, 255, 0.25);
  border-top-color: var(--apple-blue);
  border-radius: 50%;
  animation: appleSpin 0.75s linear infinite;
  display: inline-block;
}

@keyframes appleSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .apple-backup-grid {
    grid-template-columns: 1fr !important;
  }
  .apple-system-telemetry-banner {
    grid-template-columns: 1fr 1fr;
  }
  .apple-security-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
}
.toast {
  background: #111827;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: appleToastIn 0.25s ease;
}
[data-theme="dark"] .toast {
  background: #ffffff;
  color: #111827;
}
.toast svg { width: 15px; height: 15px; }
.toast-success svg { color: var(--apple-green); }
.toast-error svg { color: var(--apple-red); }
.toast-info svg { color: var(--apple-blue); }

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

/* ================= 12. EVOLVED FEATURES & PRO STUDIO ADDITIONS ================= */
.url-shortcut-badge {
  display: flex;
  align-items: center;
}
.url-shortcut-badge kbd {
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
[data-theme="dark"] .url-shortcut-badge kbd {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-sub);
}

.card-sub-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.badge-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-green);
  display: inline-block;
}

/* View Switcher (Grid vs Compact List) */
.apple-view-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}
.view-toggle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.view-toggle-btn svg { width: 13px; height: 13px; }
.view-toggle-btn:hover { color: var(--text-main); }
.view-toggle-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .view-toggle-btn.active {
  background: #2d3345;
  color: #fff;
}

/* Grid Layout Mode */
.apple-methods-list.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.apple-methods-list.view-grid .apple-method-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.apple-methods-list.view-grid .apple-method-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 113, 227, 0.3);
}
.apple-methods-list.view-grid .method-caret {
  display: none;
}
.apple-methods-list.view-grid .method-status-pill {
  margin-top: auto;
}

/* Working Status Pills */
.badge-status-work {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}
.badge-status-exclusive {
  background: #fdf4ff;
  color: #c026d3;
  border: 1px solid #f5d0fe;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* ================= 13. SPOTLIGHT COMMAND PALETTE (CMD + K) ================= */
.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.spotlight-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spotlight-palette {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  transform: scale(0.97);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-overlay.active .spotlight-palette {
  transform: scale(1);
}

.spotlight-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--card-border);
  gap: 0.85rem;
}
.spotlight-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.spotlight-header input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  font-family: inherit;
}
.spotlight-esc-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.spotlight-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.65rem 0.2rem;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.spotlight-item:hover, .spotlight-item.selected {
  background: #f1f5f9;
  color: var(--text-main);
}
[data-theme="dark"] .spotlight-item:hover {
  background: #272b38;
}
.spotlight-item svg { width: 16px; height: 16px; color: var(--apple-blue); }
.spotlight-key-hint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Toolbelt Actions */
.toolbelt-actions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ================= 14. COMPREHENSIVE MOBILE & TABLET RESPONSIVE SYSTEM ================= */

/* Base container classes for clean alignment */
.nav-system-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- A. TABLET & MEDIUM SCREENS (720px to 1080px) --- */
@media (max-width: 1080px) and (min-width: 720px) {
  .macos-desktop-canvas {
    padding: 1rem;
    align-items: center;
  }
  .macos-window-frame {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
  }

  /* Safari Titlebar Tablet */
  .safari-titlebar {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }
  .safari-url-capsule {
    max-width: 360px;
    font-size: 0.76rem;
  }
  .titlebar-right button:nth-child(4) {
    display: none;
  }

  /* Apple Navigation Tablet */
  .apple-app-nav {
    padding: 0.85rem 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-left-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .segmented-control-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px;
    width: 100%;
  }
  .segmented-control-bar::-webkit-scrollbar {
    display: none;
  }
  .segment-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  /* Nav Right Tools Tablet */
  .nav-right-tools {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .apple-dropdown-pill {
    display: none; /* Hide edge server pill to save space */
  }
  .nav-system-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  .header-auth {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  .apple-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Bento Grid Tablet */
  .apple-content-canvas {
    padding: 1.25rem 1.25rem 2rem;
    gap: 1.25rem;
  }
  .bento-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .card-wallet-stack {
    grid-column: span 2;
  }
  .bento-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Admin Modal Tablet */
  .modal-admin-deck {
    width: 95vw;
    max-width: 940px;
    height: 88vh;
    max-height: 88vh;
    border-radius: 20px;
  }
  .deck-top-bar {
    padding: 0.85rem 1.25rem;
  }
  .admin-segmented-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg-subtle);
    border-bottom: 1px solid var(--card-border);
  }
  .admin-segmented-tabs::-webkit-scrollbar {
    display: none;
  }
  .admin-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }
  .apple-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  .apple-data-table {
    min-width: 640px;
  }
  /* Sticky actions column on tablet so it never cuts off */
  .apple-data-table th:last-child,
  .apple-data-table td:last-child {
    position: sticky;
    right: 0;
    background: var(--card-bg);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.04);
    z-index: 2;
    min-width: 85px;
    text-align: right;
  }
  [data-theme="dark"] .apple-data-table th:last-child,
  [data-theme="dark"] .apple-data-table td:last-child {
    background: var(--card-bg);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.25);
  }

  .apple-backup-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .categories-split-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- B. MOBILE SCREENS & SMARTPHONES (max-width: 719px) --- */
@media (max-width: 719px) {
  /* Edge-to-edge mobile app experience */
  .macos-desktop-canvas {
    padding: 0;
    align-items: flex-start;
  }
  .macos-window-frame {
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-height: 100vh;
    width: 100%;
  }

  /* Safari Titlebar Mobile */
  .safari-titlebar {
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
  }
  .titlebar-left {
    gap: 0.35rem;
  }
  .traffic-lights {
    gap: 4px;
  }
  .traffic-dot {
    width: 8px;
    height: 8px;
  }
  .safari-nav-buttons {
    display: none; /* Hide back/forward on mobile to maximize URL bar space */
  }
  .safari-url-capsule {
    flex: 1;
    max-width: none;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    gap: 0.3rem;
  }
  .url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
  }
  .url-shortcut-badge {
    display: none;
  }
  .titlebar-right button:nth-child(4),
  .titlebar-right button:nth-child(3),
  .titlebar-right button:nth-child(2) {
    display: none; /* Keep only wrench tool button on mobile */
  }

  /* Header & Navigation Mobile */
  .apple-app-nav {
    padding: 0.65rem 0.75rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .nav-left-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .apple-brand-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* Swipeable Segmented Tabs Ribbon on iOS */
  .segmented-control-bar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
    gap: 2px;
  }
  .segmented-control-bar::-webkit-scrollbar {
    display: none;
  }
  .segment-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.74rem;
    flex-shrink: 0;
    gap: 0.35rem;
  }
  .segment-btn svg {
    width: 12px;
    height: 12px;
  }

  /* Nav Right Tools Mobile: Cohesive 2-Group Bar */
  .nav-right-tools {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
  }
  .apple-dropdown-pill {
    display: none;
  }

  /* Left Group: Theme Toggle & Bell */
  .nav-system-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .apple-theme-dual-pill {
    padding: 2px;
    gap: 1px;
  }
  .theme-mode-btn {
    padding: 0.28rem 0.5rem;
    font-size: 0.68rem;
    gap: 0.25rem;
  }
  .theme-mode-btn svg {
    width: 12px;
    height: 12px;
  }
  .apple-icon-pill {
    width: 32px;
    height: 32px;
  }
  .apple-icon-pill svg {
    width: 14px;
    height: 14px;
  }

  /* Right Group: User Badge, Admin Button, Logout */
  .header-auth {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .apple-user-badge {
    padding: 0.2rem 0.5rem 0.2rem 0.25rem;
    gap: 0.35rem;
  }
  .apple-avatar-circle {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }
  .apple-user-name {
    font-size: 0.74rem;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .badge-role-gold, .badge-apple-role {
    font-size: 0.58rem;
    padding: 0.08rem 0.35rem;
  }
  #btn-open-admin {
    padding: 0.3rem 0.55rem;
    font-size: 0.7rem;
    gap: 0.25rem;
    white-space: nowrap;
  }
  #btn-open-admin svg {
    width: 12px;
    height: 12px;
  }
  .safari-btn[title="Keluar"] {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .safari-btn[title="Keluar"] svg {
    width: 13px;
    height: 13px;
  }

  /* Bento Grid Canvas on Mobile */
  .apple-content-canvas {
    padding: 0.65rem 0.75rem 2rem;
    gap: 0.85rem;
  }
  .bento-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .card-wallet-stack {
    grid-column: auto;
  }
  .bento-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .apple-card {
    padding: 1rem;
    border-radius: 14px;
  }
  .card-title-row {
    margin-bottom: 0.75rem;
  }
  .card-main-title {
    font-size: 0.95rem;
  }

  /* Card 1: Whitelist Contributors Stack Mobile */
  .contributors-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.4rem;
    margin-bottom: 0.85rem;
    scrollbar-width: none;
  }
  .contributors-row::-webkit-scrollbar {
    display: none;
  }
  .contributor-item {
    flex-shrink: 0;
    width: 54px;
  }
  .contributor-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }
  .contributor-name {
    font-size: 0.65rem;
  }
  .contributor-role {
    font-size: 0.55rem;
  }

  /* Quick Auth Bar Mobile */
  .quick-auth-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }
  .quick-input-wrap input {
    font-size: 16px !important;
  }
  .btn-apple-dark {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  /* Card 2: Method Activity & Chart Mobile */
  .activity-stats-row {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .metric-big {
    font-size: 1.05rem;
  }
  .active-column-pill {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.45rem;
  }
  .apple-bar-chart {
    height: 75px;
    gap: 5px;
  }
  .col-label {
    font-size: 0.56rem;
  }

  /* Card 3: Digital VIP Pass Mobile */
  .digital-vip-pass {
    padding: 0.95rem;
    border-radius: 14px;
  }
  .pass-holder-name {
    font-size: 0.95rem;
  }
  .pass-brand-title {
    font-size: 0.6rem;
  }
  .pass-tier-badge {
    font-size: 0.56rem;
    padding: 0.1rem 0.35rem;
  }

  /* Card 4: Methods Feed Mobile */
  .feed-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .feed-title-wrap {
    justify-content: space-between;
  }
  .feed-tools-right {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .apple-search-box {
    flex: 1;
    min-width: 130px;
    padding: 0.3rem 0.6rem;
  }
  .apple-search-box input {
    width: 100%;
    font-size: 16px !important;
  }
  .apple-category-pills-row {
    padding-bottom: 0.4rem;
    margin-bottom: 0.55rem;
    gap: 0.3rem;
    scrollbar-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .apple-category-pills-row::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  /* Method Row Mobile */
  .apple-method-row {
    padding: 0.65rem 0.7rem;
    gap: 0.55rem;
  }
  .method-app-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .method-title-text {
    font-size: 0.82rem;
    line-height: 1.3;
  }
  .method-date-sub {
    font-size: 0.66rem;
  }
  .method-cat-badge {
    display: none;
  }
  .method-metrics-col {
    font-size: 0.7rem;
  }
  .method-status-pill {
    font-size: 0.6rem;
    padding: 0.12rem 0.4rem;
  }

  /* Grid Mode on Mobile stays 1 column */
  .apple-methods-list.view-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Card 5: Siri Hub Mobile */
  .card-siri-hub {
    padding: 1.15rem 0.9rem;
  }
  .siri-orb-container {
    height: 70px;
  }
  .siri-orb-sphere {
    width: 60px;
    height: 60px;
  }
  .siri-greeting-text h3 {
    font-size: 1.1rem;
  }
  .siri-greeting-text p {
    font-size: 0.74rem;
  }
  .siri-action-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .siri-chip {
    width: 100%;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.35rem 0.45rem;
  }
  .siri-input-capsule {
    padding: 0.3rem 0.6rem;
  }
  .model-badge {
    display: none;
  }
  .siri-input-capsule input {
    font-size: 16px !important;
  }

  /* Footer Mobile */
  .safari-footer-bar {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding: 0.75rem 0.85rem;
    font-size: 0.66rem;
  }

  /* --- MODALS ON MOBILE (Native Apple Sheet Style) --- */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .apple-modal-sheet {
    width: 100%;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    max-height: 94vh;
    padding: 1rem 0.85rem 1.75rem;
    margin: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  }
  .modal-reader, .modal-admin-deck {
    max-height: 94vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Prevent auto-zoom on iOS Safari: All inputs MUST be >= 16px */
  .apple-form-group input,
  .apple-form-group textarea,
  .apple-form-group select,
  .pane-search-box input,
  #comment-input,
  #siri-query-input,
  #global-search-input {
    font-size: 16px !important;
  }

  /* Admin Deck Header Mobile */
  .deck-top-bar {
    padding: 0.75rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .deck-title-wrap {
    font-size: 0.84rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .deck-title-wrap span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .apple-modal-close {
    width: 32px;
    height: 32px;
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
  }

  /* Admin Tabs on Mobile: Smooth Native Swipe Ribbon */
  .admin-segmented-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    background: var(--card-bg-subtle);
    border-bottom: 1px solid var(--card-border);
    flex-shrink: 0;
  }
  .admin-segmented-tabs::-webkit-scrollbar {
    display: none;
  }
  .admin-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    border-radius: var(--radius-pill);
    gap: 0.3rem;
  }
  .admin-tab svg {
    width: 12px;
    height: 12px;
  }

  /* Admin Deck Scrollable Content */
  .admin-deck-scrollable {
    padding: 0.85rem 0.85rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  /* Admin Whitelist Action Bar Mobile */
  .pane-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
  }
  .pane-search-box {
    width: 100%;
  }
  #btn-toggle-add-user {
    width: 100%;
    justify-content: center;
  }

  /* Form Grids Mobile */
  .form-grid-3, .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }

  /* Apple Data Table Mobile: Horizontal scroll with sticky actions */
  .apple-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--card-border);
  }
  .apple-data-table {
    min-width: 500px;
    font-size: 0.78rem;
  }
  .apple-data-table th,
  .apple-data-table td {
    padding: 0.65rem 0.6rem;
    white-space: nowrap;
  }
  .apple-data-table th:last-child,
  .apple-data-table td:last-child {
    position: sticky;
    right: 0;
    background: var(--card-bg);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.04);
    z-index: 2;
    min-width: 80px;
    text-align: right;
  }
  [data-theme="dark"] .apple-data-table th:last-child,
  [data-theme="dark"] .apple-data-table td:last-child {
    background: var(--card-bg);
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.25);
  }

  /* Hide Catatan column on mobile to keep table uncluttered */
  .apple-data-table th:nth-child(5),
  .apple-data-table td:nth-child(5) {
    display: none;
  }

  /* Backup & Telemetry Mobile */
  .apple-backup-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .apple-system-telemetry-banner {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
  }
  .apple-security-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .apple-audit-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .audit-search-wrap {
    width: 100%;
  }

  /* Method Reader Sheet Mobile */
  .reader-sheet-body {
    padding: 1rem 0.85rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .reader-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  .reader-author-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .reader-action-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .toolbar-left, .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar-left button, .toolbar-right button {
    flex: 1;
    justify-content: center;
  }
  .reader-markdown-content pre {
    padding: 0.75rem;
    font-size: 0.76rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Spotlight on Mobile */
  .spotlight-overlay {
    padding-top: 5vh;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .spotlight-palette {
    max-width: 100%;
    border-radius: 16px;
  }
  .spotlight-header {
    padding: 0.75rem 0.85rem;
  }
}

/* --- C. SMALL SMARTPHONES (max-width: 480px) --- */
@media (max-width: 480px) {
  .siri-action-chips {
    grid-template-columns: 1fr;
  }
  .apple-user-name {
    display: none; /* Icon avatar + role badge only on ultra-compact phones */
  }
  .apple-system-telemetry-banner {
    grid-template-columns: 1fr;
  }
  .quick-auth-bar {
    padding: 0.5rem 0.65rem;
  }
}

/* --- D. TOUCH ERGONOMICS (@media hover: none) --- */
@media (hover: none) and (pointer: coarse) {
  /* Disable extreme 3D tilt jumps on touch */
  .digital-vip-pass {
    transform: none !important;
  }
  /* Minimum tap target heights for Apple HIG */
  .btn-apple-primary,
  .btn-apple-outline,
  .segment-btn,
  .safari-btn,
  .theme-mode-btn {
    min-height: 38px;
  }
}




/* === APPLE MACOS PRO STUDIO EXTENSIONS === */

/* ============================================================================
   Apple macOS Pro Studio — Universal Design System & UI/UX Specification
   1:1 CSS Blueprint for ONI ROUTER Commercial AI Gateway
   ============================================================================ */

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

:root {
  /* Canvas Wallpaper (Sonoma Pastel Mesh) */
  --mesh-bg-light: radial-gradient(at 15% 15%, #dbeafe 0px, transparent 50%),
                   radial-gradient(at 85% 15%, #fce7f3 0px, transparent 50%),
                   radial-gradient(at 50% 85%, #ede9fe 0px, transparent 50%),
                   #f1f5f9;

  /* Window Glass Surfaces (Light Mode) */
  --window-bg: rgba(251, 252, 253, 0.92);
  --card-bg: #ffffff;
  --card-bg-subtle: #f8fafc;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --card-hover-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.1);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;

  /* Apple Accent Colors */
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-green: #34c759;
  --apple-green-bg: #ecfdf5;
  --apple-green-text: #059669;
  --apple-purple: #8b5cf6;
  --apple-purple-bg: #f5f3ff;
  --apple-amber: #f59e0b;
  --apple-red: #ff3b30;
  --apple-cyan: #38bdf8;

  /* Radii */
  --radius-window: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens (Obsidian Titanium) */
[data-theme="dark"] {
  --mesh-bg-light: radial-gradient(at 20% 20%, #1e1b4b 0px, transparent 55%),
                   radial-gradient(at 80% 20%, #311042 0px, transparent 50%),
                   radial-gradient(at 50% 80%, #0f172a 0px, transparent 60%),
                   #0a0b0e;

  --window-bg: rgba(18, 20, 27, 0.94);
  --card-bg: #1c1e27;
  --card-bg-subtle: #151720;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --card-hover-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);

  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  --apple-green-bg: rgba(52, 199, 89, 0.15);
  --apple-green-text: #4ade80;
  --apple-purple-bg: rgba(139, 92, 246, 0.15);
}

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

html, body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--mesh-bg-light);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* macOS Floating Canvas */
.macos-desktop-canvas {
  min-height: 100vh;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* macOS Window Frame */
.macos-window-frame {
  width: 100%;
  max-width: 1420px;
  background: var(--window-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-window);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .macos-window-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Safari Titlebar */
.safari-titlebar {
  height: 52px;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  align-items: center;
  padding: 0 1.25rem;
  user-select: none;
}

[data-theme="dark"] .safari-titlebar {
  background: rgba(25, 27, 36, 0.6);
}

/* Traffic Lights */
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}

.traffic-light:hover {
  transform: scale(1.08);
}

.traffic-light.close {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.traffic-light.minimize {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.traffic-light.zoom {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.traffic-light span {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.traffic-lights:hover .traffic-light span {
  opacity: 1;
}

/* Safari URL Capsule */
.safari-url-capsule {
  max-width: 540px;
  height: 32px;
  margin: 0 auto;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition-smooth);
}

[data-theme="dark"] .safari-url-capsule {
  background: rgba(255, 255, 255, 0.06);
}

.safari-url-capsule:hover {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15);
}

.url-text-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.url-lock-icon {
  width: 13px;
  height: 13px;
  color: var(--apple-green);
}

.url-badge-kbd {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Top Right Actions (Theme Switcher) */
.titlebar-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Dual Theme Switcher Pill */
.apple-theme-dual-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

[data-theme="dark"] .apple-theme-dual-pill {
  background: rgba(255, 255, 255, 0.08);
}

.theme-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-mode-btn.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Segmented Navigation Bar */
.segmented-navbar {
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-theme="dark"] .segmented-navbar {
  background: rgba(20, 22, 30, 0.4);
}

.nav-tabs-segmented {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

[data-theme="dark"] .nav-tabs-segmented {
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-tab-item.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-tab-item:hover:not(.active) {
  color: var(--text-main);
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-apple {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-apple-primary {
  background: var(--apple-blue);
  color: #ffffff;
}

.btn-apple-primary:hover {
  background: var(--apple-blue-hover);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-apple-subtle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

[data-theme="dark"] .btn-apple-subtle {
  background: rgba(255, 255, 255, 0.07);
}

.btn-apple-subtle:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Main Studio Content Area */
.studio-main-workspace {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

/* Cupertino Bento Grid Hierarchy */
.bento-row-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

.bento-row-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Bento Card Base */
.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  box-shadow: var(--card-hover-shadow);
}

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

.card-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-header-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg-subtle);
  color: var(--apple-blue);
  border: 1px solid var(--card-border);
}

.card-title-studio {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-subtitle-studio {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Modul 1: Contributor Intel Radar */
.contributor-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contributor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.contributor-item:hover {
  border-color: rgba(0, 113, 227, 0.3);
  transform: translateX(3px);
}

.contributor-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.avatar-monogram {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid var(--card-bg);
  position: relative;
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--apple-green);
  border: 1.5px solid var(--card-bg);
  position: absolute;
  bottom: -1px;
  right: -1px;
  box-shadow: 0 0 6px var(--apple-green);
}

.contributor-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.contributor-email {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pill-tier {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-tier.enterprise {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pill-tier.vip {
  background: rgba(56, 189, 248, 0.15);
  color: #0284c7;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-tier.starter {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-sub);
  border: 1px solid var(--card-border);
}

/* Quick Verifier Input Bar */
.quick-verifier-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 3px 3px 3px 0.85rem;
}

.quick-verifier-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-main);
  outline: none;
}

.quick-verifier-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--apple-blue);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-verifier-btn:hover {
  background: var(--apple-blue-hover);
}

/* Modul 2: Activity & Reliability Radar */
.metrics-row-radar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.metric-radar-box {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.metric-value-emerald {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--apple-green-text);
  font-feature-settings: "tnum";
}

.metric-value-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  font-feature-settings: "tnum";
}

/* Apple Pro Bar Chart */
.apple-pro-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  padding: 0 0.5rem 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
}

.chart-bar-wrapper {
  width: 24px;
  height: 85px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: rgba(0, 0, 0, 0.08);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

[data-theme="dark"] .chart-bar {
  background: rgba(255, 255, 255, 0.1);
}

.chart-bar.peak-activity {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.sparkle-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #c084fc;
}

.chart-day-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chart-bar.peak-activity + .chart-day-label {
  color: var(--apple-purple);
  font-weight: 700;
}

/* Modul 3: Apple VIP Digital Clearance Pass */
.digital-vip-pass-card {
  background: linear-gradient(135deg, #1e2029 0%, #0f1015 50%, #1a1d26 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.digital-vip-pass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.pass-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gold EMV Chip */
.emv-gold-chip {
  width: 38px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa7c11 100%);
  border: 1px solid #ffec8b;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.emv-circuit-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.25);
}

.emv-circuit-line.horizontal {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.emv-circuit-line.vertical {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.nfc-symbol-box {
  color: rgba(255, 255, 255, 0.6);
}

.pass-tier-badge {
  background: linear-gradient(90deg, #ffd700, #ffae00);
  color: #000000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.pass-card-middle {
  margin: 1rem 0;
}

.pass-holder-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pass-holder-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.pass-level-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--apple-cyan);
  margin-top: 0.2rem;
  font-family: var(--font-mono);
}

.pass-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

.barcode-svg {
  height: 24px;
  opacity: 0.75;
}

.pass-token-hash {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Modul 4: Activity Stream */
.stream-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stream-search-input {
  flex: 1;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  color: var(--text-main);
  outline: none;
}

.view-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.view-btn {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.view-btn.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stream-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 380px;
  overflow-y: auto;
}

.stream-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.stream-row-item:hover {
  border-color: rgba(0, 113, 227, 0.25);
  background: var(--card-bg);
}

.stream-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #ffffff;
}

.brand-icon-box.openai {
  background: #10a37f;
}

.brand-icon-box.claude {
  background: #d97706;
}

.brand-icon-box.gemini {
  background: #2563eb;
}

.brand-icon-box.grok {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stream-info-model {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.stream-info-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.stream-item-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-badge-verified {
  background: var(--apple-green-bg);
  color: var(--apple-green-text);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.status-badge-stream {
  background: var(--apple-purple-bg);
  color: var(--apple-purple);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Modul 5: Siri Apple Intelligence Copilot Hub */
.siri-hub-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 0;
  height: 100%;
}

/* 3D Hologram Siri Orb */
.siri-orb-sphere {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #38bdf8 25%, #c084fc 60%, #ec4899 90%);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.5), inset -5px -5px 15px rgba(0, 0, 0, 0.2);
  animation: siriOrbRotate 8s infinite linear, siriOrbPulse 3s infinite ease-in-out;
  margin-bottom: 1.1rem;
  cursor: pointer;
}

@keyframes siriOrbRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes siriOrbPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.4));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.6));
  }
}

.siri-greeting {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.siri-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 1.1rem;
}

.siri-action-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.siri-chip {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.siri-chip:hover {
  background: var(--card-bg);
  color: var(--apple-blue);
  border-color: var(--apple-blue);
  transform: translateY(-1px);
}

.siri-input-capsule {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 3px 4px 3px 0.85rem;
}

.siri-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  color: var(--text-main);
  outline: none;
}

.siri-model-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.siri-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--apple-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.siri-send-btn:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.05);
}

/* Spotlight Command Palette (Ctrl+K / Cmd+K) */
.spotlight-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}

.spotlight-modal-overlay.active {
  display: flex;
}

.spotlight-box {
  width: 100%;
  max-width: 620px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-window);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: spotlightPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightPop {
  0% { transform: scale(0.96) translateY(-10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.spotlight-search-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spotlight-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
}

.spotlight-results-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 0.5rem;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.spotlight-item:hover, .spotlight-item.selected {
  background: var(--card-bg-subtle);
  color: var(--apple-blue);
}

.spotlight-footer {
  padding: 0.65rem 1.25rem;
  background: var(--card-bg-subtle);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Modal Form Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: var(--text-main);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15);
}

/* Responsive Stack */
@media (max-width: 1024px) {
  .macos-desktop-canvas {
    padding: 1rem;
  }
  .bento-row-top, .bento-row-bottom {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIVE TRAFFIC REALTIME STREAM COMPONENT
   ========================================================================== */
.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--apple-green);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-green);
  box-shadow: 0 0 8px var(--apple-green);
  animation: livePulse 1.4s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.traffic-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  font-size: 11px;
  color: var(--text-sub);
}

@keyframes rowFlash {
  0% { background-color: rgba(16, 185, 129, 0.22); }
  100% { background-color: transparent; }
}

.traffic-live-table tbody tr {
  border-bottom: 1px solid var(--card-border);
  transition: background 0.15s ease;
}

.traffic-live-table tbody tr:hover {
  background: var(--card-bg-subtle);
}

.new-stream-row {
  animation: rowFlash 2.5s ease-out;
}

/* ==========================================================================
   Apple macOS Pro Studio — Private Client Hub & Telegram Auth Styles
   ========================================================================== */

.btn-apple-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--apple-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-apple-auth:hover {
  background: #0066d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
}

.btn-apple-auth:active {
  transform: translateY(0);
}

.client-pill-auth {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: var(--apple-green);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.client-guest-card {
  transition: all 0.25s ease;
}

.client-guest-card:hover {
  border-color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.02);
}

.client-active-hub-card {
  animation: hubSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hubSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  background: var(--apple-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--apple-green);
  animation: livePulse 1.6s infinite ease-in-out;
}

