/* ==========================================================================
   BIJOY ACADEMY — MASTER DESIGN SYSTEM 2026 (v6.5)
   Synthesized from 100 Benchmark Products & 20+ UI/UX Specialized Skills
   Aesthetic: Obsidian Midnight Space, Luminous Amber/Copper, Precision Glassmorphism
   Standards: WCAG 2.2 AAA Contrast, 60fps GPU Animations, Zero Layout Shifts (CLS 0.00)
   ========================================================================== */

/* ----------------------------------------------------
   1. ROOT DESIGN TOKENS & ELEVATION SCALE
   ---------------------------------------------------- */
:root {
  /* Obsidian Canvas & Elevation Surface Tiers */
  --obsidian-base: #080A0F;
  --obsidian-canvas: #0A0D14;
  --obsidian-surface-1: #0F131C;
  --obsidian-surface-2: #151A26;
  --obsidian-surface-3: #1C2333;
  --obsidian-surface-hover: #232B3E;

  /* Specular Highlights & Hairline Borders (Linear/Vercel standard) */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-hairline-hover: rgba(255, 255, 255, 0.18);
  --border-specular-top: inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
  --border-specular-glow: 0 0 0 1px rgba(249, 115, 22, 0.35), 0 0 24px -4px rgba(249, 115, 22, 0.25);

  /* Luminous Accent Hierarchy */
  --accent-amber-core: #F97316;
  --accent-amber-light: #FDBA74;
  --accent-amber-hover: #EA580C;
  --accent-amber-glow: rgba(249, 115, 22, 0.18);
  --accent-gold-gradient: linear-gradient(135deg, #F97316 0%, #F59E0B 50%, #FB7185 100%);
  --accent-text-shimmer: linear-gradient(135deg, #FFFFFF 25%, #FED7AA 60%, #FDE047 100%);

  /* Multi-Tiered Depth Shadows (Antigravity 4-layer stack) */
  --shadow-layer-sm: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-layer-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-layer-lg: 0 20px 48px -8px rgba(0, 0, 0, 0.6), 0 8px 16px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-floating: 0 28px 64px -12px rgba(0, 0, 0, 0.75), 0 0 32px rgba(249, 115, 22, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);

  /* Apple HIG & Kowalski Timing Curves */
  --ease-active-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic-return: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-micro: 120ms;
  --duration-ui: 240ms;
  --duration-flow: 380ms;

  /* Typography & Tabular Numerals */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Touch Target Standard */
  --min-touch-target: 48px;
  --android-accent: #03DAC5;
}

/* Light Mode Overrides with WCAG 2.2 AAA Contrast (7:1 ratio) */
[data-theme="light"] {
  --obsidian-base: #F8FAFC;
  --obsidian-canvas: #F1F5F9;
  --obsidian-surface-1: #FFFFFF;
  --obsidian-surface-2: #F8FAFC;
  --obsidian-surface-3: #EDF2F7;
  --obsidian-surface-hover: #E2E8F0;

  --border-hairline: rgba(15, 23, 42, 0.08);
  --border-hairline-hover: rgba(15, 23, 42, 0.18);
  --border-specular-top: inset 0 1px 0 0 rgba(255, 255, 255, 1);
  --border-specular-glow: 0 0 0 1px rgba(217, 119, 6, 0.4), 0 0 20px -2px rgba(217, 119, 6, 0.2);

  --accent-amber-core: #D97706;
  --accent-amber-light: #B45309;
  --accent-amber-hover: #92400E;
  --accent-amber-glow: rgba(217, 119, 6, 0.12);
  --accent-text-shimmer: linear-gradient(135deg, #0F172A 30%, #D97706 100%);

  --shadow-layer-sm: 0 2px 4px rgba(15, 23, 42, 0.04), inset 0 1px 0 #FFFFFF;
  --shadow-layer-md: 0 10px 25px -4px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03), inset 0 1px 0 #FFFFFF;
  --shadow-layer-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.08), inset 0 1px 0 #FFFFFF;
  --shadow-floating: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 25px rgba(217, 119, 6, 0.15), inset 0 1px 0 #FFFFFF;
}

@media (max-width: 480px) {
  .android-theme .apple-btn-primary {
    background-color: var(--android-accent, #03DAC5);
  }
}

/* ----------------------------------------------------
   2. GLOBAL RESET & TABULAR NUMERAL RULES
   ---------------------------------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Force Tabular Numerals on all metrics, badges, table cells & inputs */
input,
.metric-value,
.bento-stat,
.badge,
.card-badge,
.stat-number,
.result-val,
.currency-val,
.code-pill {
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ----------------------------------------------------
   3. HERO COMMAND CENTER & FLUID TYPOGRAPHY
   ---------------------------------------------------- */
.command-hero {
  position: relative;
  text-align: center;
  max-width: 960px;
  margin: 1.5rem auto 3.5rem auto;
  padding: 0 1.25rem;
  contain: layout;
}

/* Ambient Radial Aura behind Hero */
.command-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 92vw);
  height: 380px;
  background: radial-gradient(circle 240px at center, rgba(249, 115, 22, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

/* Live Version & Privacy Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: var(--accent-amber-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.1);
  transition: transform var(--duration-micro) var(--ease-active-spring);
}

.hero-status-pill:hover {
  transform: translateY(-1px);
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Master Hero Heading */
.command-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.3rem, 5.5vw + 0.5rem, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 auto 1.25rem auto;
  color: #FFFFFF;
}

[data-theme="light"] .command-hero-title {
  color: #0F172A;
}

.title-gradient-luminous {
  background: linear-gradient(135deg, #FFFFFF 15%, #FB923C 65%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .title-gradient-luminous {
  background: linear-gradient(135deg, #0F172A 15%, #EA580C 65%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Subtitle */
.command-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 2.25rem auto;
  font-weight: 400;
}

/* Quick Search & Command Row */
.command-search-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 2.5rem auto;
  padding: 8px 12px 8px 18px;
  background: rgba(15, 19, 28, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-layer-md);
  cursor: pointer;
  transition: border-color var(--duration-ui) var(--ease-active-spring), box-shadow var(--duration-ui) var(--ease-active-spring), transform var(--duration-micro) var(--ease-active-spring);
}

[data-theme="light"] .command-search-bar {
  background: rgba(255, 255, 255, 0.85);
}

.command-search-bar:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 0 16px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

.command-search-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-shortcut-kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

[data-theme="light"] .search-shortcut-kbd {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

/* ----------------------------------------------------
   4. INTERACTIVE CATEGORY FILTER BAR
   ---------------------------------------------------- */
.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2.5rem auto;
  contain: layout;
}

.filter-tabs-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--obsidian-surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-layer-sm);
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.filter-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  transition: color var(--duration-ui) ease, background var(--duration-ui) ease, transform var(--duration-micro) var(--ease-active-spring);
}

.filter-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .filter-tab-btn:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.04);
}

.filter-tab-btn.is-active {
  color: #FFFFFF;
  background: var(--obsidian-surface-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

[data-theme="light"] .filter-tab-btn.is-active {
  color: #0F172A;
  background: #FFFFFF;
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.filter-tab-btn.is-active .filter-tab-count {
  background: rgba(249, 115, 22, 0.2);
  color: var(--accent-amber-light);
}

/* ----------------------------------------------------
   5. 12-COLUMN ASYMMETRIC BENTO GRID (Linear/Godly style)
   ---------------------------------------------------- */
.bento-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Card Column Spans */
.col-span-12 { grid-column: span 12; }
.col-span-8  { grid-column: span 8; }
.col-span-6  { grid-column: span 6; }
.col-span-4  { grid-column: span 4; }

/* Bento Card Master Archetype with Cursor Spotlight Glow */
.bento-card-pro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--obsidian-surface-1);
  border-radius: 20px;
  padding: 1.85rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-layer-md);
  border: 1px solid var(--border-hairline);
  transition: transform var(--duration-ui) var(--ease-active-spring), box-shadow var(--duration-ui) var(--ease-active-spring), border-color var(--duration-ui) ease;
  contain: paint;
  will-change: transform;
}

/* Cursor-Tracking Spotlight Pseudo Element */
.bento-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(249, 115, 22, 0.18),
    transparent 80%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.bento-card-pro:hover::before {
  opacity: 1;
}

/* Top Specular Reflection Highlight */
.bento-card-pro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

/* Hover State */
.bento-card-pro:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-layer-lg), 0 0 28px -4px rgba(249, 115, 22, 0.2);
}

/* Emil Kowalski Active State: scale down to 0.98 over 120ms */
.bento-card-pro:active {
  transform: translateY(-2px) scale(0.985);
  transition-duration: var(--duration-micro);
}

/* Content Container above Spotlight Layer */
.bento-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Flagship 8-Column Executive Card Customizations */
.bento-card-flagship {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(15, 19, 28, 0.95) 55%, rgba(15, 19, 28, 0.98) 100%);
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.flagship-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent-amber-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.bento-card-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.85rem 0 0.5rem 0;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .bento-card-title {
  color: #0F172A;
}

.bento-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Feature Check Pills on Flagship Card */
.flagship-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #E2E8F0;
  font-weight: 500;
}

[data-theme="light"] .feature-pill {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

/* Card Bottom Action Row */
.bento-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .bento-card-footer {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-amber-light);
  transition: gap var(--duration-micro) ease;
}

.bento-card-pro:hover .card-action-link {
  gap: 10px;
  color: #FFFFFF;
}

[data-theme="light"] .bento-card-pro:hover .card-action-link {
  color: var(--accent-amber-hover);
}

/* ----------------------------------------------------
   6. EMIL KOWALSKI BUTTON SYSTEM & TACTILE CLICKS
   ---------------------------------------------------- */
.btn-primary-2026 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  color: #FFFFFF;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px -2px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  min-height: var(--min-touch-target);
  transition: transform var(--duration-micro) var(--ease-active-spring), box-shadow var(--duration-ui) ease, filter var(--duration-ui) ease;
  user-select: none;
  -webkit-user-select: none;
}

.btn-primary-2026:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(249, 115, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.05);
}

.btn-primary-2026:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transition-duration: var(--duration-micro);
}

.btn-secondary-2026 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-layer-sm);
  cursor: pointer;
  min-height: var(--min-touch-target);
  transition: transform var(--duration-micro) var(--ease-active-spring), background var(--duration-ui) ease, color var(--duration-ui) ease;
  user-select: none;
}

[data-theme="light"] .btn-secondary-2026 {
  color: #0F172A;
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.1);
}

.btn-secondary-2026:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary-2026:hover {
  background: #F1F5F9;
  color: #000000;
}

.btn-secondary-2026:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: var(--duration-micro);
}

/* ----------------------------------------------------
   7. COMMAND PALETTE (CTRL+K / CMD+K) MODAL
   ---------------------------------------------------- */
.cmd-palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-ui) ease;
}

.cmd-palette-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-dialog {
  width: 90%;
  max-width: 600px;
  background: var(--obsidian-surface-1);
  border: 1px solid var(--border-hairline-hover);
  border-radius: 18px;
  box-shadow: var(--shadow-floating);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: transform var(--duration-ui) var(--ease-active-spring);
}

.cmd-palette-backdrop.is-open .cmd-palette-dialog {
  transform: scale(1) translateY(0);
}

.cmd-input-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
  gap: 12px;
}

.cmd-search-field {
  width: 100%;
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  outline: none;
}

[data-theme="light"] .cmd-search-field {
  color: #0F172A;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  list-style: none;
  margin: 0;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  color: #CBD5E1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-micro) ease, color var(--duration-micro) ease;
}

.cmd-result-item:hover,
.cmd-result-item.is-selected {
  background: rgba(249, 115, 22, 0.12);
  color: #FFFFFF;
}

[data-theme="light"] .cmd-result-item {
  color: #334155;
}

[data-theme="light"] .cmd-result-item:hover,
[data-theme="light"] .cmd-result-item.is-selected {
  background: rgba(217, 119, 6, 0.1);
  color: #0F172A;
}

/* ----------------------------------------------------
   8. GLOBAL FLOATING TOAST SYSTEM
   ---------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--obsidian-surface-2);
  border: 1px solid var(--border-hairline-hover);
  border-radius: 12px;
  box-shadow: var(--shadow-layer-lg);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--duration-ui) var(--ease-active-spring), opacity var(--duration-ui) ease;
}

[data-theme="light"] .toast-pill {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.1);
}

.toast-pill.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon-check {
  color: #10B981;
}

/* ----------------------------------------------------
   9. MOBILE RESPONSIVE FORTRESS & COMPONENT REFLOW
   Devices Supported: 320px (Fold) -> 375px (iPhone) -> 768px (iPad) -> 1024px -> 4K
   ---------------------------------------------------- */

/* Desktop defaults for mobile drawer components & navigation buttons */
.cmd-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  min-height: 40px;
  transition: all var(--duration-micro) ease;
}

[data-theme="light"] .cmd-search-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
}

.cmd-search-btn:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--accent-amber-light);
}



/* ----------------------------------------------------
   BREAKPOINT: TABLET LANDSCAPE & SMALL LAPTOPS (<= 1024px)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .col-span-8 { grid-column: span 12; }
  .col-span-6 { grid-column: span 6; }
  .col-span-4 { grid-column: span 6; }
  
  .header {
    width: calc(100% - 2rem);
    padding: 0 1.25rem;
  }
}

/* ----------------------------------------------------
   BREAKPOINT: TABLETS & LARGE SMARTPHONES (<= 768px)
   ---------------------------------------------------- */
@media (max-width: 768px) {
  /* Navigation Reflow */
  .header {
    width: calc(100% - 1.25rem);
    height: 58px;
    padding: 0 0.85rem;
    top: 0.65rem;
  }

  .nav-links,
  .nav-cta-btn {
    display: none !important;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Bento Grid 1-Column Stack */
  .bento-grid-12 {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .col-span-12,
  .col-span-8,
  .col-span-6,
  .col-span-4 {
    grid-column: span 1;
  }

  /* Command Hero Reflow */
  .command-hero {
    margin: 1rem auto 2.25rem auto;
    padding: 0 0.5rem;
  }

  .command-hero-title {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .command-hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
  }

  .command-search-bar {
    max-width: 100%;
    margin-bottom: 1.75rem;
    padding: 10px 14px;
  }

  .btn-primary-2026,
  .btn-secondary-2026 {
    width: 100%;
    justify-content: center;
  }

  /* Bento Cards */
  .bento-card-pro {
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
  }

  .bento-card-title {
    font-size: 1.2rem;
  }

  /* Trust Proof Section */
  .trust-proof-section {
    margin-bottom: 2.5rem !important;
  }

  .trust-proof-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .trust-card {
    padding: 1.25rem;
  }

  /* Filter Tabs Scrollable Strip */
  .filter-tabs-wrapper {
    margin-bottom: 2rem;
  }

  .filter-tabs-container {
    width: 100%;
    justify-content: flex-start;
    padding: 4px;
    gap: 4px;
  }

  .filter-tab-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  /* Tool Card Pages Mobile Fixes */
  .container {
    padding-top: 80px !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .tool-card {
    padding: 1.5rem 1.15rem !important;
    margin-top: 1rem !important;
    border-radius: 18px !important;
  }

  .tool-header {
    margin-bottom: 1.75rem !important;
  }

  .tool-header h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.25rem) !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.75rem !important;
  }

  /* iOS Auto-Zoom Immunity (16px minimum on input font-size) */
  .input-control,
  .f-input,
  .f-select,
  .f-textarea,
  .items-table .in,
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .input-control {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
  }

  .input-wrapper .input-control {
    padding-left: 2.75rem !important;
  }

  /* Responsive Table Containment (Zero horizontal page breaks) */
  .benchmark-table,
  .items-table,
  .pdf-tbl {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Metric & Result Displays */
  .metric-card, .result-card, .results-grid {
    padding: 1.15rem !important;
  }

  /* FAQ Accordion */
  .faq-section {
    padding: 1.5rem 0 !important;
  }

  .faq-button {
    padding: 1rem 0.75rem !important;
    font-size: 0.95rem !important;
  }

  .faq-panel-content {
    padding: 0 0.75rem 1.25rem 0.75rem !important;
    font-size: 0.9rem !important;
  }

  /* Footer Reflow */
  .footer {
    padding: 3rem 1rem 2rem 1rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  .footer-bottom-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }

  /* Toast Container */
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: center;
  }

  .toast-pill {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------------------
   BREAKPOINT: STANDARD SMARTPHONES (<= 480px)
   ---------------------------------------------------- */
@media (max-width: 480px) {
  .cmd-btn-text {
    display: none !important;
  }

  #nav-cmd-search-btn {
    padding: 6px 9px !important;
  }

  .command-hero-title {
    font-size: 2.15rem;
  }

  .bento-card-pro {
    padding: 1.2rem 1rem;
  }

  .flagship-feature-row {
    gap: 6px;
  }

  .feature-pill {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

/* ----------------------------------------------------
   BREAKPOINT: ULTRA-NARROW / GALAXY FOLD (<= 360px)
   ---------------------------------------------------- */
@media (max-width: 360px) {
  .header {
    width: calc(100% - 0.75rem);
    padding: 0 0.5rem;
  }

  .logo-mark {
    width: 28px !important;
    height: 28px !important;
    margin-right: 6px !important;
  }

  .logo span {
    font-size: 1.05rem !important;
  }

  .command-hero-title {
    font-size: 1.85rem !important;
  }

  .hero-status-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .tool-card {
    padding: 1.25rem 0.75rem !important;
  }

  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ----------------------------------------------------
   BREAKPOINT: ULTRA-COMPACT / GALAXY FOLD FRONT (<= 320px)
   ---------------------------------------------------- */
@media (max-width: 320px) {
  .command-hero-title {
    font-size: 1.6rem !important;
  }
  .command-search-bar {
    padding: 8px 10px !important;
  }
  .search-shortcut-kbd {
    display: none !important;
  }
  .logo span {
    font-size: 0.95rem !important;
  }
  .bento-card-pro {
    padding: 1rem 0.75rem !important;
  }
  .tool-card {
    padding: 1rem 0.5rem !important;
  }
}

/* ----------------------------------------------------
   BREAKPOINT: WIDE SCREENS & 4K (>= 1536px)
   ---------------------------------------------------- */
@media (min-width: 1536px) {
  .container {
    max-width: 1380px;
  }

  .bento-grid-12 {
    gap: 1.75rem;
  }

  .command-hero {
    max-width: 1080px;
  }

  .command-hero-title {
    font-size: 4.6rem;
  }
}

/* ----------------------------------------------------
   10. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bento-card-pro:hover {
    transform: none !important;
  }
}

/* Clear Focus Rings for WCAG 2.2 */
:focus-visible {
  outline: 2px solid var(--accent-amber-core);
  outline-offset: 2px;
}
