/* Google Fonts loaded via non-blocking <link> in HTML templates */


/* Global Reset & Base Variables */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --theme: dark;
  
  /* Shared typography & geometry */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --transition-smooth: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;
  /* Radius scale used by calculator and table components */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  /* Shadow scale */
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.22), 0 2px 8px -2px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 48px -10px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.25);
  
  /* Dark theme values */
  --bg-primary: #060813;
  --bg-secondary: #0c0f20;
  --bg-tertiary: #131934;
  --bg-blob-1: rgba(99, 102, 241, 0.15);
  --bg-blob-2: rgba(6, 182, 212, 0.15);
  --card-bg: rgba(12, 15, 32, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(168, 85, 247, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #818cf8;
  --accent-secondary: #c084fc;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
  --glow-color: rgba(99, 102, 241, 0.15);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(6, 8, 19, 0.85);
  --tab-bg: rgba(255, 255, 255, 0.05);
  --tab-border: rgba(255, 255, 255, 0.08);
  --tab-hover-bg: rgba(255, 255, 255, 0.1);
  --scrollbar-thumb: #334155;
  --scrollbar-track: #060813;

  /* Coming Soon Theme Variables - Dark */
  --cs-badge-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.16) 100%);
  --cs-badge-border: rgba(245, 158, 11, 0.45);
  --cs-badge-color: #fbbf24;
  --cs-badge-icon: #f59e0b;
  --cs-badge-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
  --cs-sub-bg: rgba(255, 255, 255, 0.05);
  --cs-sub-border: rgba(255, 255, 255, 0.1);
  --cs-sub-color: #94a3b8;
  --cs-status-bg: rgba(245, 158, 11, 0.15);
  --cs-status-border: rgba(245, 158, 11, 0.35);
}

html[data-theme="light"] {
  color-scheme: light;
  --theme: light;
  
  /* Soft Ambient Indigo-Slate Light Theme */
  --bg-primary: #f4f5fc;
  --bg-secondary: #ebedfa;
  --bg-tertiary: #e2e5f8;
  --bg-blob-1: rgba(99, 102, 241, 0.08);
  --bg-blob-2: rgba(6, 182, 212, 0.06);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(99, 102, 241, 0.12);
  --card-border-hover: rgba(99, 102, 241, 0.45);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --glow-color: rgba(99, 102, 241, 0.1);
  --shadow-sm: 0 4px 20px rgba(99, 102, 241, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(99, 102, 241, 0.14);
  --nav-bg: rgba(244, 245, 252, 0.97);
  --tab-bg: rgba(255, 255, 255, 0.8);
  --tab-border: rgba(99, 102, 241, 0.15);
  --tab-hover-bg: #ffffff;
  --scrollbar-thumb: #c7d2fe;
  --scrollbar-track: #f4f5fc;

  /* Coming Soon Theme Variables - Light (Crisp, High Contrast, Purple-Indigo Brand) */
  --cs-badge-bg: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --cs-badge-border: rgba(99, 102, 241, 0.32);
  --cs-badge-color: #4338ca;
  --cs-badge-icon: #6366f1;
  --cs-badge-shadow: 0 2px 10px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --cs-sub-bg: #ffffff;
  --cs-sub-border: rgba(99, 102, 241, 0.15);
  --cs-sub-color: #4b5563;
  --cs-status-bg: rgba(99, 102, 241, 0.08);
  --cs-status-border: rgba(99, 102, 241, 0.25);
}

/* Custom scrollbars */
:root {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.8;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background-color: var(--bg-blob-1);
  animation-duration: 25s;
  /* keep blobs away from the top area under the navbar */
  margin-top: 60px;
}

.blob-2 {
  top: 30%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  background-color: var(--bg-blob-2);
  animation-duration: 35s;
  animation-delay: -5s;
}

.blob-3 {
  bottom: -10%;
  right: 10%;
  width: 45vw;
  height: 45vw;
  background-color: var(--bg-blob-1);
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5%, 10%) scale(1.1);
  }
  100% {
    transform: translate(-5%, -5%) scale(0.95);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Navigation Drawer & Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1320px;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 28px;
}

.logo-flash {
  color: var(--accent-primary);
  font-weight: 800;
  animation: glow-pulse 3s infinite;
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px var(--accent-primary)); }
  50% { filter: drop-shadow(0 0 10px var(--accent-secondary)); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-menu li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

/* Theme Toggle & Language Dropdown */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.lang-dropdown-btn:hover,
.lang-dropdown.open .lang-dropdown-btn {
  background: var(--tab-hover-bg);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.lang-current-flag {
  width: 18px;
  height: 13.5px;
  border-radius: 2.5px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: block;
  flex-shrink: 0;
}

.lang-dropdown-btn .lang-icon {
  font-size: 13px;
  color: var(--accent-primary);
}

.lang-dropdown-btn .lang-current {
  letter-spacing: 0.5px;
}

.lang-dropdown-btn .lang-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.lang-dropdown.open .lang-dropdown-btn .lang-chevron {
  transform: rotate(180deg);
}

/* 2-Column Glassmorphic Dropdown Popover */
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: rgba(18, 20, 32, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .lang-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-dropdown.open .lang-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (hover: hover) {
  .lang-dropdown:hover .lang-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
}

/* Live Search Filter Field */
.lang-dropdown-search {
  position: relative;
  margin-bottom: 8px;
  width: 100%;
}

.lang-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.lang-search-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  color: var(--text-primary);
  border-radius: 10px;
  font-size: 12.5px;
  font-family: inherit;
  padding: 7px 28px 7px 30px;
  outline: none;
  transition: var(--transition-smooth);
}

.lang-search-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.lang-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}

.lang-search-clear:hover {
  color: var(--text-primary);
}

/* 2-Column Grid of Languages */
.lang-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.lang-dropdown-grid::-webkit-scrollbar {
  width: 4px;
}

.lang-dropdown-grid::-webkit-scrollbar-track {
  background: transparent;
}

.lang-dropdown-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.lang-dropdown-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Dropdown Items */
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--text-secondary);
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 500;
  transition: var(--transition-smooth);
  min-width: 0;
}

.lang-dropdown-item:hover {
  background: var(--tab-hover-bg);
  color: var(--text-primary);
  transform: translateX(1px);
}

.lang-dropdown-item.active {
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-primary);
  font-weight: 600;
}

.lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.lang-item-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.lang-check {
  font-size: 10px;
  color: var(--accent-primary);
  margin-left: auto;
  flex-shrink: 0;
}

.lang-no-results {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Mobile & RTL Support */
@media (max-width: 480px) {
  .lang-dropdown-menu {
    width: 320px;
    right: -20px;
  }
}

@media (max-width: 360px) {
  .lang-dropdown-menu {
    width: 290px;
    right: -10px;
  }
  .lang-dropdown-grid {
    grid-template-columns: 1fr;
  }
}

html[dir="rtl"] .lang-search-icon {
  left: auto;
  right: 10px;
}

html[dir="rtl"] .lang-search-input {
  padding: 7px 30px 7px 28px;
}

html[dir="rtl"] .lang-search-clear {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .lang-check {
  margin-left: 0;
  margin-right: auto;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition-smooth);
  margin: 0;
  padding: 0;
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: var(--tab-hover-bg);
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

.theme-toggle-btn i {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-icon-sun {
  display: inline-block !important;
  color: #fbbf24 !important;
}
[data-theme="dark"] .theme-icon-moon {
  display: none !important;
}

[data-theme="light"] .theme-icon-sun {
  display: none !important;
}
[data-theme="light"] .theme-icon-moon {
  display: inline-block !important;
  color: #6366f1 !important;
}

:root:not([data-theme="light"]) .theme-icon-sun {
  display: inline-block !important;
  color: #fbbf24 !important;
}
:root:not([data-theme="light"]) .theme-icon-moon {
  display: none !important;
}

/* Mobile menu toggle button */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero,
#header {
  padding: 160px 0 100px;
  position: relative;
  text-align: center;
  scroll-margin-top: 100px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(28px, 5.5vw, 68px);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-badges {
  margin: 18px 0 22px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero p {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
  font-weight: 300;
}

.btn-gradient {
  background: var(--accent-gradient);
  color: #fff !important;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #6366f1 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  border-radius: 99px;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
  padding: 13px 31px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image {
  max-width: 180px;
  height: auto;
  border-radius: 32px;
  filter: drop-shadow(0 0 35px rgba(124, 58, 237, 0.65));
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-image:hover {
  transform: translateY(-8px) scale(1.06);
  filter: drop-shadow(0 0 55px rgba(139, 92, 246, 0.9));
}

/* Glass Cards System */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
  background: var(--card-bg);
}

/* App Grid Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 300;
}

/* Category Tabs Filter */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.category-tab,
.pill-tab {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-family: inherit;
}

.category-tab:hover,
.pill-tab:hover {
  border-color: var(--card-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-tab.active,
.pill-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
}

.category-tab .tab-count,
.pill-tab .pill-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.category-tab:not(.active) .tab-count,
.pill-tab:not(.active) .pill-badge {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* Category Group Section Header */
.category-group,
.category-section {
  margin-bottom: 64px;
  transition: var(--transition-smooth);
}

.category-group-header,
.category-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.category-group-icon,
.category-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.category-group-title,
.category-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.category-group-count,
.category-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.app-grid,
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.app-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 18px; /* iOS Squircle approximation */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-tertiary);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.app-card:hover .app-icon-wrapper {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-meta {
  display: flex;
  flex-direction: column;
}

.app-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.app-card-title {
  font-size: 20px;
  font-weight: 700;
}

.app-card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.app-card-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.app-card-link:hover {
  color: var(--accent-primary);
}

.app-card-link svg {
  transition: transform 0.3s ease;
}

.app-card-link:hover svg {
  transform: translateX(4px);
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.app-card-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

[data-theme="light"] .app-card-badge-free {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.32);
}

.app-card:hover .app-card-badge-free {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

/* Testimonials / Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* App Detail Pages specific styles */
.app-detail-hero {
  padding: 140px 0 60px;
  position: relative;
}

.legal-card ul.breadcrumbs,
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  flex-wrap: wrap;
  font-size: 13px;
}

.legal-card ul.breadcrumbs li,
.breadcrumbs li {
  list-style: none !important;
  list-style-type: none !important;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumbs li.breadcrumb-separator {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumbs li.active span {
  color: var(--text-primary);
  font-weight: 500;
}

.app-detail-header-grid {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 700px) {
  .app-detail-header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.app-detail-icon {
  width: 144px;
  height: 144px;
  flex-shrink: 0;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
  object-fit: cover;
}

.app-hero-category-wrapper {
  margin-bottom: 12px;
  text-align: left;
}

.app-hero-category-wrapper .app-category-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin: 0;
  line-height: 1;
}

.app-detail-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}

.app-detail-title h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 6px 0;
  color: var(--text-primary);
  text-align: left;
}

.app-detail-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 14px 0;
  font-weight: 400;
  max-width: 760px;
  text-align: left;
}

.app-download-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  height: 36px;
  transition: var(--transition-smooth);
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.app-download-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: var(--shadow-lg);
}

.app-download-btn.secondary {
  background: var(--tab-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.app-download-btn.secondary:hover {
  background: var(--tab-hover-bg);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   Coming Soon Status & Badges (Theme Adaptive)
   ========================================================================== */
.coming-soon-btn {
  background: var(--cs-badge-bg) !important;
  border: 1px solid var(--cs-badge-border) !important;
  color: var(--cs-badge-color) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: default !important;
  padding: 12px 24px !important;
  border-radius: 99px !important;
  font-size: 15px !important;
  line-height: 1 !important;
  box-shadow: var(--cs-badge-shadow) !important;
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
}

.coming-soon-btn i {
  color: var(--cs-badge-icon) !important;
  font-size: 15px;
}

.coming-soon-badge-sub {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 11px 20px !important;
  border-radius: 99px !important;
  background: var(--cs-sub-bg) !important;
  color: var(--cs-sub-color) !important;
  border: 1px solid var(--cs-sub-border) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.coming-soon-badge-sub i {
  color: var(--accent-primary) !important;
  font-size: 13px;
}

/* App Store Coming Soon Badge (for Android-only live apps) */
.app-store-coming-soon {
  cursor: default !important;
  pointer-events: none !important;
  user-select: none;
  opacity: 0.88;
  border: 1px dashed var(--cs-badge-border) !important;
  background: var(--cs-sub-bg) !important;
  color: var(--text-secondary) !important;
  transition: var(--transition-smooth);
}

.app-store-coming-soon .app-store-icon {
  color: var(--text-primary);
  font-size: 16px;
}

.app-store-coming-soon .coming-soon-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--cs-status-bg);
  color: var(--cs-badge-color);
  border: 1px solid var(--cs-status-border);
  font-weight: 700;
  margin-left: 2px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-store-coming-soon .coming-soon-tag i {
  font-size: 9px;
  color: var(--cs-badge-icon);
}

.sticky-btn.app-store-coming-soon {
  padding: 7px 14px !important;
  font-size: 12px !important;
  border-radius: 99px !important;
  border: 1px dashed var(--cs-badge-border) !important;
  background: var(--cs-sub-bg) !important;
  color: var(--text-secondary) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.app-coming-soon-pill {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  inset-inline-end: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--cs-badge-color) !important;
  background: var(--cs-badge-bg) !important;
  border: 1px solid var(--cs-badge-border) !important;
  padding: 4px 10px !important;
  border-radius: 99px !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.01em;
  z-index: 2;
  pointer-events: none;
}

.app-coming-soon-pill i {
  color: var(--cs-badge-icon) !important;
  font-size: 10px;
}

.app-card:has(.app-coming-soon-pill) .app-card-header,
.app-card-coming-soon .app-card-header {
  padding-right: 95px;
  padding-inline-end: 95px;
}

html[dir="rtl"] .app-coming-soon-pill,
html[lang="ar"] .app-coming-soon-pill,
html[lang="he"] .app-coming-soon-pill {
  right: auto !important;
  left: 24px !important;
}

html[dir="rtl"] .app-card:has(.app-coming-soon-pill) .app-card-header,
html[dir="rtl"] .app-card-coming-soon .app-card-header,
html[lang="ar"] .app-card:has(.app-coming-soon-pill) .app-card-header,
html[lang="ar"] .app-card-coming-soon .app-card-header,
html[lang="he"] .app-card:has(.app-coming-soon-pill) .app-card-header,
html[lang="he"] .app-card-coming-soon .app-card-header {
  padding-right: 0;
  padding-left: 95px;
}

@media (max-width: 480px) {
  .app-coming-soon-pill {
    top: 18px !important;
    right: 18px !important;
    inset-inline-end: 18px !important;
  }
  html[dir="rtl"] .app-coming-soon-pill,
  html[lang="ar"] .app-coming-soon-pill,
  html[lang="he"] .app-coming-soon-pill {
    right: auto !important;
    left: 18px !important;
  }
}

.app-card-badge-status {
  background: var(--cs-status-bg) !important;
  color: var(--cs-badge-color) !important;
  border: 1px solid var(--cs-status-border) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 99px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  line-height: 1.2 !important;
}

.app-card-badge-status i {
  color: var(--cs-badge-icon) !important;
  font-size: 10px;
}

.sticky-app-btn.coming-soon,
.sticky-btn.coming-soon {
  background: var(--cs-badge-bg) !important;
  border: 1px solid var(--cs-badge-border) !important;
  color: var(--cs-badge-color) !important;
  padding: 8px 16px !important;
  border-radius: 99px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: default !important;
  box-shadow: var(--cs-badge-shadow) !important;
}

.sticky-app-btn.coming-soon i,
.sticky-btn.coming-soon i {
  color: var(--cs-badge-icon) !important;
}

.sticky-cta-btn.coming-soon {
  background: var(--cs-badge-bg) !important;
  border: 1px solid var(--cs-badge-border) !important;
  color: var(--cs-badge-color) !important;
  padding: 6px 14px !important;
  border-radius: 99px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: default !important;
}

.sticky-cta-btn.coming-soon i {
  color: var(--cs-badge-icon) !important;
}

.sticky-cta-rating.coming-soon,
.related-app-coming-soon {
  color: var(--cs-badge-color) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
}

.sticky-cta-rating.coming-soon i,
.related-app-coming-soon i {
  color: var(--cs-badge-icon) !important;
}


/* Features & Updates 2-Column Grid */
.features-updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 860px) {
  .features-updates-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.detail-section {
  margin-bottom: 48px;
}

.detail-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.detail-section h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.detail-features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
}

.detail-features-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.detail-features-list li svg,
.detail-features-list li i {
  color: var(--accent-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.detail-whatsnew-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
}

.detail-whatsnew-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.detail-whatsnew-list li svg,
.detail-whatsnew-list li i {
  color: var(--accent-cyan);
  font-size: 16px;
  flex-shrink: 0;
}

/* Full-Width App Screenshots Showcase */
.app-screenshots-showcase {
  margin: 56px 0 64px;
  width: 100%;
}

.screenshots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.screenshots-slider-wrapper {
  position: relative;
  width: 100%;
}

.screenshots-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 8px 4px 24px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--card-border);
}

.screenshots-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.screenshots-scroll-container::-webkit-scrollbar-track {
  background: var(--card-border);
  border-radius: 99px;
}
.screenshots-scroll-container::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 99px;
}

.screenshot-slide {
  flex: 0 0 224px;
  max-width: 224px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  aspect-ratio: 9 / 19.5;
  background: var(--bg-tertiary);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.screenshot-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-border-hover);
}

.screenshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .screenshot-slide {
    flex: 0 0 176px;
    max-width: 176px;
    border-radius: 16px;
  }
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

/* ==========================================================================
   macOS Desktop App Showcase & Authentic Terminal Styling
   ========================================================================== */

/* Mac Desktop App Screenshot Showcase */
.mac-desktop-showcase {
  margin: 48px 0 64px;
  width: 100%;
}

.mac-showcase-header {
  text-align: center;
  margin-bottom: 28px;
}

.mac-showcase-header h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.mac-showcase-subtitle {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.mac-window-frame {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0d111a;
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

html[data-theme="light"] .mac-window-frame {
  background: #f8fafc;
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.mac-window-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 75px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--card-border-hover);
}

html[data-theme="light"] .mac-window-frame:hover {
  box-shadow: 0 28px 55px -12px rgba(99, 102, 241, 0.22), 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mac-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] .mac-window-titlebar {
  background: rgba(241, 245, 249, 0.9);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.mac-window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 68px;
}

.mac-window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mac-dot-close {
  background-color: #ff5f56;
  border: 1px solid #e0443e;
}

.mac-dot-minimize {
  background-color: #ffbd2e;
  border: 1px solid #dea123;
}

.mac-dot-maximize {
  background-color: #27c93f;
  border: 1px solid #1aab29;
}

.mac-window-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  letter-spacing: -0.01em;
}

.mac-window-spacer {
  width: 68px;
}

.mac-window-canvas {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #000;
}

.mac-window-canvas img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Authentic macOS Terminal Window Component */
.mac-terminal-window {
  border-radius: 12px;
  overflow: hidden;
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  margin: 16px 0;
  text-align: left;
}

html[data-theme="light"] .mac-terminal-window {
  background: #0a0e18;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0,0,0,0.06);
}

.mac-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #131926;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mac-terminal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 50px;
}

.mac-t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mac-t-dot-red { background: #ff5f56; }
.mac-t-dot-yellow { background: #ffbd2e; }
.mac-t-dot-green { background: #27c93f; }

.mac-terminal-title {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
  flex: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  letter-spacing: 0.02em;
}

.mac-terminal-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.04em;
}

.mac-terminal-body {
  padding: 16px 18px;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
}

.mac-terminal-line {
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 13px;
  white-space: nowrap;
}

.mac-terminal-line:last-child {
  margin-bottom: 0;
}

.mac-path-tilde {
  color: #38bdf8;
  font-weight: 700;
}

.mac-path-slash {
  color: #64748b;
}

.mac-cmd-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-weight: 600;
}

.mac-cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13.5px;
}

.mac-prompt {
  color: #10b981;
  font-weight: 700;
  user-select: none;
}

.mac-cmd {
  color: #f8fafc;
  font-weight: 600;
}

.mac-cmd-param {
  color: #f59e0b;
  font-weight: 600;
}

/* Mac Storage Calculator Section */
.mac-calc-section {
  margin-top: 48px;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .mac-calc-section {
  background: linear-gradient(135deg, #ffffff 0%, #f4f6fd 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mac-calc-heading {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 800;
}

.mac-calc-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html[data-theme="light"] .mac-calc-select {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #111827;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mac-calc-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.mac-calc-results {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: center;
}

html[data-theme="light"] .mac-calc-results {
  background: rgba(243, 244, 251, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.06);
}

.mac-calc-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Mac Feature & Anomaly Cards */
.mac-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mac-feature-card:hover {
  border-color: var(--card-border-hover);
}

.mac-feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mac-anomaly-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.mac-anomaly-card h4 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Cheatsheet section */
.mac-cheatsheet-section {
  margin-top: 56px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}

.mac-cheatsheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mac-cheatsheet-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Global Inline Code Element */
code {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

html[data-theme="light"] code {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* App Full Description Section (App Store Style Expandable) */
.app-full-description-section {
  margin: 48px 0;
}

.app-description-container {
  padding: 28px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  position: relative;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.app-description-container.is-collapsible {
  max-height: 190px;
  overflow: hidden;
}

.app-description-container:not(.is-collapsible),
.app-description-container.is-collapsible.is-expanded {
  max-height: none !important;
  overflow: visible !important;
}

.desc-expand-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(180deg, rgba(235, 237, 250, 0) 0%, var(--bg-secondary) 70%, var(--bg-secondary) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  pointer-events: auto;
  transition: background 0.3s ease;
}

[data-theme="dark"] .desc-expand-actions {
  background: linear-gradient(180deg, rgba(12, 15, 32, 0) 0%, var(--bg-secondary) 70%, var(--bg-secondary) 100%);
}

.app-description-container.is-expanded .desc-expand-actions {
  position: relative;
  height: auto;
  background: transparent !important;
  padding: 24px 0 8px 0;
  border-top: 1px dashed var(--card-border);
  margin-top: 24px;
}

.desc-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border-hover);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.desc-expand-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.desc-expand-btn i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.app-description-container.is-expanded .desc-expand-btn i {
  transform: rotate(180deg);
}

.app-description-inner p {
  margin-bottom: 16px;
}
.app-description-inner p:last-child {
  margin-bottom: 0;
}

.app-description-inner h4.desc-subheading {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 24px 0 10px 0;
}
.app-description-inner h4.desc-subheading:first-child {
  margin-top: 0;
}

/* FAQ Accordion Layout */
.faq-list, .faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}

/* SEO LSI Topic Tags Widget */
.app-topic-tags-section {
  margin: 44px 0;
}

.app-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--tab-bg);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.tag-pill:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.tag-pill i {
  color: var(--accent-primary);
  font-size: 11px;
  transition: color 0.2s ease;
}

.tag-pill:hover i {
  color: #fff;
}

/* Related Apps / You Might Also Like */
.related-apps-section {
  margin: 52px 0 40px 0;
}

.related-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.related-app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.related-app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-hover);
}

.related-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.related-app-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.related-app-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.related-app-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.related-app-rating {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.related-app-rating i {
  color: #FFB800;
  font-size: 11px;
}

/* Hero & Apps Trust Bar */
.hero-trust-bar,
.apps-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--tab-bg);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-pill i {
  color: var(--accent-primary);
  font-size: 12px;
}

/* Homepage Apps Live Search */
.apps-search-wrapper {
  max-width: 580px;
  margin: 0 auto 28px auto;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.search-input-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.search-input-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
}

.search-input-box input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

/* Sticky Download Bar (App Detail Page) */
.sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  padding: 12px 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.sticky-download-bar.visible {
  transform: translateY(0);
}

.sticky-download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-app-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sticky-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

.sticky-app-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.sticky-app-category {
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.sticky-app-rating {
  color: var(--text-secondary);
}

.sticky-app-rating i {
  color: #FFB800;
  font-size: 11px;
}

.sticky-app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sticky-btn {
  padding: 10px 20px !important;
  font-size: 13px !important;
}

.sticky-qr-btn {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

/* Screenshot Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-smooth);
}

.lightbox-nav:hover {
  background: var(--accent-primary);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-height: 80vh;
  max-width: 85vw;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
}

/* QR Code Modal */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

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

.qr-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  max-width: 360px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal-backdrop.active .qr-modal-card {
  transform: scale(1);
}

.qr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.qr-modal-close:hover {
  background: var(--tab-bg);
  color: var(--text-primary);
}

.qr-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 20px;
}

.qr-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 18px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.qr-code-wrapper svg,
.qr-code-wrapper img {
  width: 180px;
  height: 180px;
  display: block;
}

.qr-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tab-bg);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* QR Modal Platform Switcher */
.qr-platform-switcher {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
  margin: 12px 0 16px 0;
  width: 100%;
}

.qr-platform-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qr-platform-btn:hover {
  color: var(--text-primary);
}

.qr-platform-btn.active {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border-hover);
}

.qr-platform-btn.active[data-platform="ios"] i {
  color: var(--accent-primary);
}

.qr-platform-btn.active[data-platform="android"] i {
  color: #34a853;
}

/* Blog Pagination & Load More */
.blog-pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  text-align: center;
  width: 100%;
}

.blog-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-load-more-btn:hover {
  background: var(--tab-hover-bg);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-load-more-btn i {
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.blog-load-more-btn:hover i {
  transform: translateY(2px);
}

.blog-pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Legal Pages Styling */
.legal-shell {
  max-width: 840px;
  margin: 180px auto 80px;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .legal-shell {
    margin-top: 100px;
  }
}

.legal-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  .legal-card {
    padding: 24px;
  }
}

.legal-card header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
}

.legal-card h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.legal-card h2 {
  font-size: 20px;
  margin: 32px 0 16px;
}

.legal-card h3 {
  font-size: 16px;
  margin: 24px 0 12px;
}

.legal-card p, .legal-card li {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* App Customer Reviews */
.reviews-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 2px;
}

.review-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.legal-card ul {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style-type: disc;
}

.legal-card li {
  margin-bottom: 12px;
}

/* Hide legacy icon squares inside legal lists */
.legal-card i.fas, 
.legal-card i.fa, 
.legal-card i.fa-square,
.legal-card .fa-square {
  display: none !important;
}

.legal-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border-radius: 99px;
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* About / Stats Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  align-items: center;
  gap: 64px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .about-grid {
    gap: 24px;
  }
}

/* Footer Section */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-about h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* Animations Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Blog & Article Showcase Design System
   ========================================================================== */

.blog-subnav-section {
  padding: 110px 0 20px;
  position: relative;
  width: 100%;
}

.blog-subnav-hub {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 4px 0;
}

.blog-subnav-hub .blog-category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  flex: 1;
}

.blog-subnav-hub .blog-search-wrapper {
  width: 240px;
  max-width: 280px;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.blog-subnav-hub .blog-search-input {
  width: 100%;
  height: 43px;
  padding: 0 16px 0 38px;
  border-radius: 99px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.blog-subnav-hub .blog-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.blog-subnav-hub .blog-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: var(--tab-hover-bg);
}

.blog-subnav-hub .blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 960px) {
  .blog-subnav-hub {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .blog-subnav-hub .blog-search-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .blog-subnav-hub .blog-category-tabs {
    justify-content: center;
  }
}

.blog-hero-section {
  padding: 24px 0 28px;
  position: relative;
  text-align: center;
}

.blog-hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.blog-hero-header {
  max-width: 960px;
  margin: 0 auto;
}

.blog-hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-hero-desc {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

/* Featured Hero Article */
.featured-blog-card {
  margin-bottom: 48px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(26, 29, 45, 0.9) 0%, rgba(15, 17, 23, 0.95) 100%);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.featured-blog-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.22);
  transform: translateY(-2px);
}

.featured-blog-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

@media (max-width: 860px) {
  .featured-blog-grid {
    grid-template-columns: 1fr;
  }
}

.featured-blog-thumb-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 280px;
  background: var(--bg-tertiary);
}

.featured-blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-blog-card:hover .featured-blog-thumb {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.featured-blog-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .featured-blog-content {
    padding: 20px;
  }
}

.featured-blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.featured-blog-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.featured-blog-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-blog-title a:hover {
  color: var(--accent-primary);
}

.featured-blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Wylsa.com Magazine Full-Bleed Grid System
   ========================================================================== */
.postsGrid,
.blog-grid,
.wylsa-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 20px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

/* Row 1: 2 wide cards (50% each) */
.wylsa-card:nth-child(5n + 1),
.wylsa-card:nth-child(5n + 2) {
  grid-column: span 3;
  height: 380px;
}

/* Row 2: 3 tall cards (33.3% each) */
.wylsa-card:nth-child(5n + 3),
.wylsa-card:nth-child(5n + 4),
.wylsa-card:nth-child(5n + 5) {
  grid-column: span 2;
  height: 480px;
}

@media (max-width: 1024px) {
  .postsGrid,
  .blog-grid,
  .wylsa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .wylsa-card:nth-child(5n + 1),
  .wylsa-card:nth-child(5n + 2),
  .wylsa-card:nth-child(5n + 3),
  .wylsa-card:nth-child(5n + 4),
  .wylsa-card:nth-child(5n + 5) {
    grid-column: span 1 !important;
    height: 340px !important;
  }
}

@media (max-width: 640px) {
  .postsGrid,
  .blog-grid,
  .wylsa-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wylsa-card:nth-child(5n + 1),
  .wylsa-card:nth-child(5n + 2),
  .wylsa-card:nth-child(5n + 3),
  .wylsa-card:nth-child(5n + 4),
  .wylsa-card:nth-child(5n + 5) {
    grid-column: span 1 !important;
    height: 280px !important;
  }
}

.wylsa-card.is-hidden {
  display: none !important;
}

.wylsa-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.wylsa-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.wylsa-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.wylsa-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wylsa-card:hover .wylsa-card-bg {
  transform: scale(1.06);
}

.wylsa-card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.75) 75%, rgba(0, 0, 0, 0.94) 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wylsa-card:hover .wylsa-card-gradient {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.82) 75%, rgba(0, 0, 0, 0.98) 100%);
}

.wylsa-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.wylsa-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.wylsa-card-category {
  color: #ffffff;
  font-weight: 600;
}

.wylsa-card-dot {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.wylsa-card-date {
  color: rgba(255, 255, 255, 0.75);
}

.wylsa-card-title {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff !important;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.wylsa-card:hover .wylsa-card-title {
  color: #38bdf8 !important;
}

/* Hero Badge, Buttons & Metrics Ribbon */
.hero-badge,
.hero-lightning-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 8px 20px;
  border-radius: 9999px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.hero-badge-icon,
.hero-lightning-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hero-badge-text {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 32px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.metrics-grid,
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 52px auto 0;
  max-width: 980px;
  width: 100%;
}

@media (max-width: 860px) {
  .metrics-grid,
  .metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .metrics-grid,
  .metrics-ribbon {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.metric-card,
.metric-box {
  padding: 22px 18px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover,
.metric-box:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.metric-num,
.metric-val {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.metric-num-green {
  color: #10b981 !important;
}

.metric-star {
  font-size: 18px;
  color: #f59e0b;
}

.metric-title,
.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Homepage Bento Engineering Pillars */
.bento-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.bento-pillar-card {
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.bento-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.bento-pillar-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.bento-pillar-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Homepage Reviews Testimonials Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.review-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 3px;
}

.review-quote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 18px;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}

.review-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.review-author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-app-name {
  font-size: 11px;
  color: var(--text-muted);
}


.no-results-box {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  display: none;
}

/* ==========================================================================
   Blog Article Layout & Sidebar
   ========================================================================== */

.blog-article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 120px;
  margin-bottom: 80px;
  padding-bottom: 60px;
}

@media (max-width: 960px) {
  .blog-article-layout {
    padding-top: 96px;
  }
}

@media (max-width: 600px) {
  .blog-article-layout {
    padding-top: 80px;
  }
}

.blog-content {
  min-width: 0;
}

@media (max-width: 960px) {
  .blog-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .blog-sidebar > * {
    flex: 1 1 240px;
  }
}

/* Table of Contents */
.toc-container {
  padding: 24px;
  background: var(--card-bg);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: calc(100vh - 350px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc-list::-webkit-scrollbar {
  width: 4px;
}
.toc-list::-webkit-scrollbar-thumb {
  background-color: var(--card-border);
  border-radius: 4px;
}

.toc-item {
  margin-bottom: 12px;
  line-height: 1.4;
}

.toc-item.level-3 {
  margin-left: 16px;
  font-size: 13px;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: block;
}

.toc-link:hover {
  color: var(--text-primary);
}

.toc-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Share Widget */
.share-widget {
  padding: 24px;
  background: var(--card-bg);
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Sticky Floating Download Bar (Mobile & Desktop) */
.glass-cta-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 32px);
  max-width: 680px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(99, 102, 241, 0.15);
  pointer-events: none;
  opacity: 0;
}

.glass-cta-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 32px);
  max-width: 540px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(99, 102, 241, 0.15);
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}

.mobile-sticky-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 961px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 14px;
}

.sticky-cta-left, .sticky-cta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sticky-cta-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.sticky-cta-text, .sticky-cta-info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-cta-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.sticky-cta-rating {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.sticky-cta-rating span {
  color: var(--text-muted);
  font-weight: 400;
}

.sticky-cta-actions, .sticky-cta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sticky-cta-btn {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 99px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.sticky-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.sticky-cta-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sticky-cta-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-secondary);
  padding: 12px 24px;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FAQ Accordion */
.faq-item {
  margin-bottom: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-toggle-icon, .faq-icon {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-question.active .faq-toggle-icon,
.faq-question.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 8px 24px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   Editorial Blog Article Typography & Media Presentation
   Based on Medium/Substack editorial standards:
   — Body 17px / line-height 1.75 / max 72ch per line
   — Clear 4-level hierarchy: title → subtitle → h2 → h3 → body
   — Paragraph spacing = 1.5× line-height
   ========================================================================== */

/* ── Blog Article Card ───────────────────────────────────────────────── */
.blog-content > article {
  overflow: hidden;
}

/* ── Article App Promo Widget ────────────────────────────────────────── */
.article-related-promo,
.article-app-promo {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border-hover);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
}

.promo-icon,
.article-related-promo img,
.article-app-promo img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* ── Article Header ──────────────────────────────────────────────────── */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--card-border);
}

[data-theme="light"] .article-header {
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

[data-theme="light"] .legal-eyebrow {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.article-main-title {
  font-family: var(--font-heading);
  margin: 0 0 16px;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

[data-theme="light"] .article-main-title {
  color: #0f172a;
}

.article-main-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 22px;
}

[data-theme="light"] .article-main-subtitle {
  color: #374151;
  font-size: 17.5px;
}

.article-meta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  padding-top: 2px;
}

[data-theme="light"] .article-meta-row {
  color: #6b7280;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-dot {
  opacity: 0.3;
  font-size: 10px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  font-size: 10px;
  opacity: 0.5;
}

.breadcrumbs .active span {
  color: var(--text-secondary);
  display: inline-block;
  vertical-align: middle;
}

/* ── Article Body ────────────────────────────────────────────────────── */
/* Uses max 72ch measure for optimal readability (Medium standard) */
.article-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.003em;
  overflow-wrap: break-word;
  word-break: break-word;
}

[data-theme="light"] .article-body {
  color: #1f2937;
}

/* ── Lead paragraph ─────────────────────────────────────────────────── */
.article-lead {
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}

[data-theme="light"] .article-lead {
  color: #111827;
  font-weight: 500;
  border-bottom-color: rgba(99, 102, 241, 0.12);
}

/* ── Body paragraph ─────────────────────────────────────────────────── */
.article-paragraph {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin: 0 0 26px;
}

[data-theme="light"] .article-paragraph {
  color: #1f2937;
}

/* ── Section headings ───────────────────────────────────────────────── */
.article-h2 {
  font-family: var(--font-heading);
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 52px 0 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: 110px;
}

[data-theme="light"] .article-h2 {
  color: #0f172a;
}

.article-h3 {
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  scroll-margin-top: 110px;
}

[data-theme="light"] .article-h3 {
  color: #111827;
}

/* ── Lists ───────────────────────────────────────────────────────────── */
.article-list {
  margin: 20px 0 28px 0;
  padding-left: 26px;
}

.article-list-item {
  font-size: 17px;
  line-height: 1.78;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

[data-theme="light"] .article-list-item {
  color: #1f2937;
}

.article-list-item:last-child {
  margin-bottom: 0;
}

/* ── Article Image / Figure ─────────────────────────────────────────── */
.article-figure {
  /* Strict containment — never wider than the content column */
  display: block;
  margin: 28px auto;
  width: 100%;
  max-width: 560px;      /* comfortable editorial width */
  text-align: center;
  box-sizing: border-box;
  /* Hard overflow guard */
  overflow: hidden;
}

.article-img {
  display: block;
  width: 100%;
  max-width: 100%;       /* never exceed figure width  */
  height: auto;
  max-height: 320px;     /* cap height so it's a banner, not a poster */
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  margin: 0 auto;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .article-img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.article-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.article-caption {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.article-table-container {
  overflow-x: auto;
  margin: 36px 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  -webkit-overflow-scrolling: touch;
}

[data-theme="light"] .article-table-container {
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1), 0 1px 4px rgba(0,0,0,0.05);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.article-table th {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99,102,241,0.08) 100%);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.article-table th:last-child {
  border-right: none;
}

[data-theme="light"] .article-table th {
  background: linear-gradient(135deg, #eef0ff 0%, #e4e6ff 100%);
  border-bottom-color: rgba(99, 102, 241, 0.4);
  border-right-color: rgba(99, 102, 241, 0.3);
  color: #1e1b4b;
}

.article-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-table td:last-child {
  border-right: none;
}

[data-theme="light"] .article-table td {
  border-bottom-color: rgba(99, 102, 241, 0.25);
  border-right-color: rgba(99, 102, 241, 0.25);
  color: #374151;
}

.article-table tbody tr {
  transition: background 0.15s ease;
}

.article-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.06);
  color: var(--text-primary);
}

[data-theme="light"] .article-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.05);
  color: #111827;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .article-table tbody tr:nth-child(even) {
  background: rgba(99, 102, 241, 0.03);
}

/* First column bold styling */
.article-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

[data-theme="light"] .article-table td:first-child {
  color: #111827;
  font-weight: 700;
}

/* ── Premium Callout Box ──────────────────────────────────────────────── */
.article-callout {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-left: 4px solid var(--accent-primary);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 40px 0;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.article-callout::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .article-callout {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.03) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.08);
}

.article-callout-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-callout-title i {
  color: var(--accent-primary);
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5));
}

.article-callout-text {
  font-size: 15.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.78;
}

/* ==========================================================================
   Interactive Calculator & Tool Widgets (SEO & Engagement)
   ========================================================================== */
/* ─────────────────────────────────────────────────────────────────────────
   Calculator Card
   ───────────────────────────────────────────────────────────────────────── */
.interactive-calc-card {
  margin: 44px 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 34, 53, 0.92) 0%, rgba(18, 20, 29, 0.96) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .interactive-calc-card {
  background: linear-gradient(160deg, #ffffff 0%, #f0f2ff 100%);
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,1);
}

.interactive-calc-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .interactive-calc-card::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.calc-header {
  margin-bottom: 26px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 20px;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-secondary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.calc-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.3;
}

.calc-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .interactive-calc-card {
    padding: 28px 20px;
  }
}

.calc-input-group {
  margin-bottom: 22px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.calc-val-display {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 14.5px;
  background: rgba(99, 102, 241, 0.12);
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ─── Inputs & Selects ─────────────────────────────────────────────────── */
.calc-input, .calc-select {
  width: 100%;
  padding: 13px 18px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

[data-theme="light"] .calc-input,
[data-theme="light"] .calc-select {
  background-color: #f5f6ff;
  border-color: rgba(99, 102, 241, 0.22);
  color: #111827;
}

.calc-input:hover,
.calc-select:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .calc-input:hover,
[data-theme="light"] .calc-select:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--accent-primary);
  background-color: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 2px 8px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .calc-input:focus,
[data-theme="light"] .calc-select:focus {
  background-color: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* custom select arrow */
.calc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23818cf8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
  line-height: 1;
}

[data-theme="light"] .calc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236366f1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ─── Slider ──────────────────────────────────────────────────────────── */
.calc-slider-wrapper {
  position: relative;
  padding: 4px 0 2px;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  margin: 12px 0 6px;
  position: relative;
}

[data-theme="light"] .calc-slider {
  background: rgba(99, 102, 241, 0.14);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  cursor: grab;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.6), 0 0 0 3px rgba(99, 102, 241, 0.15);
  border: 2.5px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.75), 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.calc-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.08);
}

.calc-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  cursor: grab;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.6);
  border: 2.5px solid #ffffff;
  transition: transform 0.15s ease;
}

/* ─── Results Panel ─────────────────────────────────────────────────────── */
.calc-results-panel {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .calc-results-panel {
  background: linear-gradient(145deg, #eef0ff 0%, #e6e8ff 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 20px rgba(99, 102, 241, 0.08);
}

.calc-result-metric {
  margin-bottom: 18px;
}

.calc-result-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.calc-result-value {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #c4b5fd 0%, #818cf8 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}

[data-theme="light"] .calc-result-value {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Value flip animation */
@keyframes calcValuePop {
  0% { transform: scale(0.93); opacity: 0.5; }
  55% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}

.calc-animated-value {
  animation: calcValuePop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-timeline-track {
  position: relative;
  background: var(--bg-tertiary);
  height: 8px;
  border-radius: 999px;
  margin: 20px 0 32px;
}

.calc-timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.calc-timeline-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.calc-marker {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  cursor: default;
}

.calc-marker.active {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Extended Calculator Enhancements: Units, Gauges, Citations, Macros */
.calc-unit-toggle {
  display: inline-flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 16px;
}

.calc-unit-btn {
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.calc-unit-btn:hover {
  color: var(--text-primary);
}

.calc-unit-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.45);
}

.calc-gauge-wrapper {
  margin: 18px 0;
}

.calc-gauge-spectrum {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8 0%, #38bdf8 18.5%, #10b981 18.5%, #10b981 25%, #f59e0b 25%, #f59e0b 30%, #ef4444 30%, #991b1b 100%);
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.calc-gauge-needle {
  position: absolute;
  top: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0,0,0,0.5);
  transform: translateX(-50%);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.calc-status-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

.status-underweight { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.status-normal { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-overweight { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-obese { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.calc-macros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.calc-macro-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.calc-macro-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}

[data-theme="light"] .calc-macro-card {
  background: #f8f9ff;
  border-color: rgba(99, 102, 241, 0.18);
}

[data-theme="light"] .calc-macro-card:hover {
  background: #eef0ff;
  border-color: rgba(99, 102, 241, 0.35);
}

.macro-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.macro-title.protein { color: #818cf8; }
.macro-title.fat { color: #f59e0b; }
.macro-title.carbs { color: #34d399; }

.macro-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.macro-kcal {
  font-size: 11px;
  color: var(--text-muted);
}

.calc-citation-box {
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px dashed rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.04);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

[data-theme="light"] .calc-citation-box {
  background: rgba(99, 102, 241, 0.03);
  border-color: rgba(99, 102, 241, 0.2);
}

.calc-citation-link {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calc-citation-link:hover {
  color: var(--accent-primary);
}

/* Checklist & Interactive Privacy Quiz Styles */
.calc-checklist-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.calc-checklist-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.06);
  transform: translateX(2px);
}

[data-theme="light"] .calc-checklist-item {
  background: #f8f9ff;
  border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .calc-checklist-item:hover {
  background: #eef0ff;
  border-color: rgba(99, 102, 241, 0.4);
}

/* Hide native checkbox, replace with custom indicator */
.calc-checklist-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom checkbox indicator using the label's ::before */
.calc-checklist-item .calc-check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(99, 102, 241, 0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
  font-size: 13px;
}

.calc-checklist-item:has(input:checked) .calc-check-indicator {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.calc-checklist-item:has(input:checked) .calc-check-indicator::after {
  content: '✓';
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.calc-checklist-item:has(input:checked) {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.07);
}

[data-theme="light"] .calc-checklist-item:has(input:checked) {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

.calc-checklist-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

[data-theme="light"] .calc-checklist-text {
  color: #374151;
}

.calc-checklist-text strong {
  color: var(--text-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

[data-theme="light"] .calc-checklist-text strong {
  color: #111827;
}

/* ─── Modern Segmented Controls & Pills ────────────────────────────────── */
.calc-segmented-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.calc-segmented-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

[data-theme="light"] .calc-segmented-btn {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.2);
  color: #4b5563;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calc-segmented-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .calc-segmented-btn:hover {
  background: #f5f6ff;
  color: #1e1b4b;
}

.calc-segmented-btn.active {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.18) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .calc-segmented-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.calc-seg-main {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.calc-seg-sub {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 500;
}

/* ─── Time Steppers & Presets ─────────────────────────────────────────── */
.calc-time-stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-step-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}

[data-theme="light"] .calc-step-btn {
  background: #eef0ff;
  border-color: rgba(99, 102, 241, 0.28);
  color: #4f46e5;
}

.calc-step-btn:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-primary);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .calc-step-btn:hover {
  background: #dde0ff;
  color: #3730a3;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
}

.calc-step-btn:active {
  transform: scale(0.94);
}

.calc-time-input-styled {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.calc-time-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.calc-preset-pill {
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .calc-preset-pill {
  background: #f5f6ff;
  border-color: rgba(99, 102, 241, 0.2);
  color: #4b5563;
}

.calc-preset-pill:hover {
  border-color: rgba(99, 102, 241, 0.5);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.calc-preset-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .calc-preset-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* ─── Primary Calculator CTA Button ─────────────────────────────────────── */
.calc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  background-size: 200% 200%;
  background-position: left center;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  letter-spacing: 0.01em;
  user-select: none;
  white-space: nowrap;
}

.calc-btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}

.calc-btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
}

.calc-btn-primary i {
  font-size: 14px;
}

/* ─── KPI Metrics Grid ─────────────────────────────────────────────────── */
.calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

@media (max-width: 500px) {
  .calc-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.calc-kpi-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: all 0.25s ease;
}

[data-theme="light"] .calc-kpi-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.calc-kpi-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.05);
}

.calc-kpi-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc-kpi-header i {
  color: var(--accent-secondary);
}

.calc-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.calc-kpi-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}

/* ─── Visual Daily Schedule Flow Timeline ──────────────────────────────── */
.calc-schedule-flow {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0 16px;
}

.calc-flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .calc-flow-item {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.calc-flow-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
  transform: translateX(3px);
}

[data-theme="light"] .calc-flow-item:hover {
  background: #f9faff;
}

.calc-flow-item.wake {
  border-left: 3.5px solid #f59e0b;
}

.calc-flow-item.nap {
  border-left: 3.5px solid #38bdf8;
}

.calc-flow-item.routine {
  border-left: 3.5px solid #a855f7;
}

.calc-flow-item.bedtime {
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-left: 4px solid #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .calc-flow-item.bedtime {
  background: linear-gradient(135deg, #eef0ff 0%, #f5f3ff 100%);
  border-color: rgba(99, 102, 241, 0.35);
  border-left: 4px solid #4f46e5;
}

.calc-flow-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-flow-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-primary);
  flex-shrink: 0;
}

[data-theme="light"] .calc-flow-icon {
  background: #f0f1ff;
  color: #4f46e5;
}

.calc-flow-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.calc-flow-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.calc-flow-right {
  text-align: right;
  flex-shrink: 0;
}

.calc-flow-time {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-primary);
  letter-spacing: -0.01em;
}

[data-theme="light"] .calc-flow-time {
  color: #4338ca;
}

.calc-flow-duration {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* ─── Actions & Clinical Insights ──────────────────────────────────────── */
.calc-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

[data-theme="light"] .calc-actions-bar {
  border-top-color: rgba(99, 102, 241, 0.12);
}

.calc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.38);
  font-family: inherit;
  user-select: none;
}

.calc-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
  filter: brightness(1.08);
}

.calc-copy-btn:active {
  transform: scale(0.96);
}

.calc-copy-btn.copied {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

.calc-insight-card {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 14px;
}

[data-theme="light"] .calc-insight-card {
  background: #fbf5ff;
  border-color: rgba(168, 85, 247, 0.3);
  color: #581c87;
}

.calc-insight-title {
  font-weight: 700;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="light"] .calc-insight-title {
  color: #7e22ce;
}

/* ─── Legacy Schedule Card Support ────────────────────────────────────── */
.calc-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0 6px;
}

.calc-schedule-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  transition: var(--transition-smooth);
}

[data-theme="light"] .calc-schedule-card {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.18);
}

.calc-schedule-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
}

.schedule-card-time {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.schedule-card-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-weight: 600;
}

/* 200+ Food Database & Searchable Table Styles */
.food-db-container {
  margin: 32px 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.food-db-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.food-db-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.food-db-search-box {
  position: relative;
  flex-grow: 1;
  min-width: 260px;
}

.food-db-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.food-db-search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.food-db-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.food-db-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.food-cat-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.food-cat-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.food-cat-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.food-db-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  max-height: 600px;
  overflow-y: auto;
}

.food-db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.food-db-table th {
  position: sticky;
  top: 0;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--card-border);
  z-index: 2;
  white-space: nowrap;
}

.food-db-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.food-db-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

.food-name-cell {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.food-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.food-badge-kcal {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.food-badge-steps {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.food-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Zone 2 & Heart Rate Zones */
.hr-zone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.hr-zone-card.active-zone {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.hr-zone-tag {
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.hr-zone-tag.z1 { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.hr-zone-tag.z2 { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.hr-zone-tag.z3 { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.hr-zone-tag.z4 { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.hr-zone-tag.z5 { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Sleep Cycle Time Cards */
.sleep-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sleep-time-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  transition: var(--transition-smooth);
}

.sleep-time-card.recommended {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.sleep-time-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.sleep-cycles-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-top: 4px;
}

.sleep-hours-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Protein & Leucine Meal Cards */
.protein-meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.protein-meal-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.protein-meal-val {
  font-size: 18px;
  font-weight: 800;
  color: #f59e0b;
}

.protein-meal-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Caffeine Half-Life & Timeline Styles */
.caffeine-decay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
}

.caffeine-time-badge {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.caffeine-amount-badge {
  font-weight: 800;
  font-size: 14px;
  color: #f59e0b;
}

.caffeine-status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.caffeine-status-tag.safe { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.caffeine-status-tag.warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.caffeine-status-tag.disruptive { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Vape Nicotine Tapering Grid */
.vape-taper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vape-taper-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.vape-taper-week {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.vape-taper-strength {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
}

.vape-taper-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Floating Back-to-Top Button with Circular Progress
   ========================================================================== */

.back-to-top-btn {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--card-bg, #161b22) !important;
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.15)) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(16px) scale(0.85) !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease !important;
}

.back-to-top-btn.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.back-to-top-btn:hover {
  border-color: var(--accent-primary, #6366f1) !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45) !important;
  transform: translateY(-3px) scale(1.06) !important;
}

.back-to-top-btn i {
  position: absolute;
  font-size: 15px;
  color: var(--text-primary, #ffffff);
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

[data-theme="light"] .back-to-top-btn {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .back-to-top-btn i {
  color: #0f172a !important;
}

.back-to-top-btn:hover i {
  transform: translateY(-2px);
  color: var(--accent-primary, #6366f1) !important;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 1;
}

.progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .progress-ring-bg {
  stroke: rgba(0, 0, 0, 0.1);
}

.progress-ring-circle {
  stroke: var(--accent-primary, #6366f1);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

/* Offset when sticky download bar is visible */
.sticky-download-bar.visible ~ .back-to-top-btn,
body.has-sticky-bar .back-to-top-btn {
  bottom: 90px !important;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .progress-ring {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Comprehensive Mobile & Touch Optimization
   ========================================================================== */

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

@media (max-width: 768px) {
  .navbar {
    padding: 14px 0;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-160%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s;
    z-index: 998;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 16px;
    padding: 10px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-link.active {
    background: var(--tab-hover-bg);
    color: var(--accent-primary);
    font-weight: 600;
  }

  /* Horizontal touch scrolling for category pills */
  .category-tabs,
  .blog-subnav-hub .blog-category-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 0 8px 0 !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .category-tabs::-webkit-scrollbar,
  .blog-subnav-hub .blog-category-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .category-tab,
  .pill-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
  }

  .hero {
    padding: 120px 0 60px !important;
  }

  .hero h1 {
    font-size: clamp(26px, 7vw, 38px) !important;
    line-height: 1.22 !important;
  }

  .hero-badges {
    gap: 10px !important;
    font-size: 13px !important;
  }

  .app-grid,
  .apps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* App Hero and Details on Mobile */
  .app-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center !important;
  }

  .app-hero-actions {
    justify-content: center !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .app-hero-actions .btn-gradient,
  .app-hero-actions .qr-modal-trigger {
    width: 100% !important;
  }

  /* Article and Description Typography */
  .article-title {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  .article-body {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  /* Mobile Screenshots Carousel */
  .screenshots-scroll-container {
    padding: 12px 16px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 16px !important;
  }

  .screenshot-nav-btn {
    display: none !important;
  }
}

.inline-toc {
  margin: 32px 0 40px;
  padding: 24px 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.inline-share {
  margin: 48px 0 32px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.inline-share h4 {
  margin-bottom: 0 !important;
}

@media (max-width: 600px) {
  .inline-share {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Auto-linked Article Keywords ─────────────────────────────────────── */
.article-internal-link {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.4);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

[data-theme="light"] .article-internal-link {
  color: #4338ca;
  text-decoration-color: rgba(67, 56, 202, 0.4);
}

.article-internal-link:hover {
  text-decoration-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
}

/* ── TOC ScrollSpy Active State ───────────────────────────────────────── */
.toc-list a {
  transition: all 0.25s ease;
  border-left: 2px solid transparent;
  padding-left: 10px;
  display: block;
}

.toc-list a:hover {
  color: var(--accent-primary);
}

.toc-list a.active {
  color: var(--accent-primary) !important;
  font-weight: 700;
  border-left-color: var(--accent-primary);
}


/* ==========================================================================
   Android Smart App Banner
   ========================================================================== */
.android-smart-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.android-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.android-banner-content img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.android-banner-text {
  display: flex;
  flex-direction: column;
}

.android-banner-text strong {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.2;
}

.android-banner-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.android-banner-actions {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   RTL (Right-to-Left) Styles for Arabic (ar) Localization
   ========================================================================== */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html[lang="he"] {
  font-family: 'Heebo', 'Rubik', 'Assistant', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .app-card-title,
html[dir="rtl"] .article-main-title {
  font-family: 'Cairo', 'Tajawal', 'Outfit', sans-serif;
}

html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] .hero-title,
html[lang="he"] .section-title,
html[lang="he"] .app-card-title,
html[lang="he"] .article-main-title {
  font-family: 'Heebo', 'Rubik', 'Outfit', sans-serif;
}

html[lang="hi"] {
  font-family: 'Noto Sans Devanagari', 'Poppins', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] .hero-title,
html[lang="hi"] .section-title,
html[lang="hi"] .app-card-title,
html[lang="hi"] .article-main-title {
  font-family: 'Noto Sans Devanagari', 'Outfit', sans-serif;
}

html[dir="rtl"] .navbar-links {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .nav-cta-btn {
  margin-right: 16px;
  margin-left: 0;
}

html[dir="rtl"] .app-card-link i,
html[dir="rtl"] .btn-primary i,
html[dir="rtl"] .hero-cta i {
  transform: scaleX(-1);
}

html[dir="rtl"] .hero-badge i,
html[dir="rtl"] .app-card-link i,
html[dir="rtl"] .feature-icon-bullet i {
  margin-left: 0;
  margin-right: 6px;
}

html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .footer-brand-desc,
html[dir="rtl"] .footer-text {
  text-align: right;
}

html[dir="rtl"] .article-sidebar {
  margin-right: 32px;
  margin-left: 0;
}

html[dir="rtl"] .calc-result-value {
  text-align: left;
  direction: ltr;
}

html[dir="rtl"] .pill-tabs {
  direction: rtl;
}

html[dir="rtl"] .pill-tab i {
  margin-right: 0;
  margin-left: 6px;
}

html[dir="rtl"] .app-hero-meta {
  text-align: right;
}

html[dir="rtl"] .faq-trigger {
  text-align: right;
}

html[dir="rtl"] .faq-icon {
  margin-left: 0;
  margin-right: auto;
}

/* Off-Screen Section Containment for Instant Main-Thread Layout */
.category-group:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.apps-trust-bar {
  content-visibility: auto;
  contain-intrinsic-size: 1px 80px;
}
#blog {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
#about {
  content-visibility: auto;
  contain-intrinsic-size: 1px 450px;
}
#faq {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 350px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Suggest Idea Page Styling
   ────────────────────────────────────────────────────────────────────────── */
.suggest-main {
  padding-top: 140px;
  padding-bottom: 90px;
  min-height: calc(100vh - 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.suggest-breadcrumbs {
  margin-bottom: 24px;
  width: 100%;
  max-width: 640px;
}

.form-container {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 44px;
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(129, 140, 248, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}



.form-title {
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.25;
}

.suggest-ambient-glow {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 720px);
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .suggest-ambient-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.06) 45%, transparent 70%);
}

.form-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 44px;
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
}

[data-theme="light"] .form-container {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 20px 50px -12px rgba(99, 102, 241, 0.16), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 34px;
  position: relative;
}

.form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(99, 102, 241, 0.22);
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-eyebrow:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.22);
  transform: translateY(-1px);
}

.eyebrow-icon-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
}

[data-theme="light"] .form-eyebrow {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08);
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 20px;
}

.form-trust-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

[data-theme="light"] .trust-pill {
  background: rgba(99, 102, 241, 0.05);
  color: var(--text-secondary);
  border-color: rgba(99, 102, 241, 0.12);
}

.trust-pill i {
  color: var(--accent-primary);
  font-size: 11px;
}

/* Form Group & Elements */
.form-group {
  margin-bottom: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.form-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 2px !important;
}

.form-label-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.form-label-left i {
  color: var(--accent-primary) !important;
  font-size: 13px !important;
}

.form-label-badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: var(--accent-primary) !important;
}

.form-label-badge.optional {
  background: rgba(148, 163, 184, 0.12) !important;
  color: var(--text-muted) !important;
}

.form-char-count {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
}

/* Platform Selector */
.platform-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.platform-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}

.platform-chip:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.06);
}

.platform-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 4px 12px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .platform-chip {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.18);
  color: var(--text-secondary);
}

[data-theme="light"] .platform-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: var(--accent-primary);
  color: #4338ca;
}

/* Category Quick Tag Chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}

.category-chip:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text-primary);
}

.category-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="light"] .category-chip {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.18);
}

[data-theme="light"] .category-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-color: var(--accent-primary);
  color: #4338ca;
}

/* Inputs & Textarea */
.form-input {
  display: block !important;
  width: 100% !important;
  height: 54px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-primary) !important;
  font-size: 15.5px !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  outline: none !important;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
  box-sizing: border-box !important;
}

.form-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 150px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-primary) !important;
  font-size: 15px !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  outline: none !important;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
  resize: vertical !important;
  box-sizing: border-box !important;
}

.form-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.75 !important;
}

.form-input:hover,
.form-textarea:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary) !important;
  background-color: rgba(99, 102, 241, 0.07) !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.22), 0 4px 16px rgba(99, 102, 241, 0.12) !important;
}

/* Light Theme Input Overrides */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background-color: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
  color: #111827 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .form-input:hover,
[data-theme="light"] .form-textarea:hover {
  border-color: rgba(99, 102, 241, 0.45) !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background-color: #ffffff !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.18), 0 4px 14px rgba(99, 102, 241, 0.08) !important;
}

/* Submit Button */
.submit-btn {
  width: 100% !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 12px !important;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 26px -4px rgba(99, 102, 241, 0.45) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  position: relative !important;
  overflow: hidden !important;
  font-family: inherit;
}

.submit-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: rotate(25deg) translateY(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.submit-btn:hover::after {
  transform: rotate(25deg) translateY(120%);
}

.submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px -4px rgba(99, 102, 241, 0.58) !important;
  filter: brightness(1.05) !important;
}

.submit-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4) !important;
}

.submit-btn .fa-paper-plane {
  transition: transform 0.25s ease;
}

.submit-btn:hover .fa-paper-plane {
  transform: translate(3px, -3px);
}

.submit-arrow {
  opacity: 0.7;
  font-size: 13px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover .submit-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Privacy Note */
.form-privacy-note {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center !important;
  margin-top: 24px !important;
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
}

.form-privacy-note i {
  color: var(--accent-cyan) !important;
  font-size: 14px !important;
}

/* Confirmation / Copy Toast */
.form-toast {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.form-toast.active {
  display: block;
  animation: fadeInToast 0.3s ease;
}

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

.form-toast-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent-cyan);
  color: #060813;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.form-toast-btn:hover {
  filter: brightness(1.1);
}

/* FAQ Mini Section below card */
.suggest-faq {
  max-width: 680px;
  width: 100%;
  margin: 48px auto 0;
  box-sizing: border-box;
}

.suggest-faq-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.suggest-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.suggest-faq-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

[data-theme="light"] .suggest-faq-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.suggest-faq-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
}

.suggest-faq-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggest-faq-card h4 i {
  color: var(--accent-primary);
  font-size: 13px;
}

.suggest-faq-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 768px) {
  .suggest-main {
    padding-top: 105px;
    padding-bottom: 60px;
  }
  .form-container {
    padding: 32px 20px;
    border-radius: 20px;
  }
  .platform-selector {
    grid-template-columns: 1fr;
  }
  .suggest-faq-grid {
    grid-template-columns: 1fr;
  }
  .form-eyebrow {
    font-size: 11px;
    padding: 5px 14px 5px 6px;
    gap: 8px;
  }
}

/* ==========================================================================
   E-E-A-T AUTHOR BOX & MINI AVATAR STYLES
   ========================================================================== */

.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
  vertical-align: middle;
  flex-shrink: 0;
}

.author-name-text {
  font-weight: 600;
  color: var(--text-primary);
}

.article-author-box {
  margin: 44px 0 32px;
  padding: 32px;
  border: 1px solid var(--card-border-hover);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12, 15, 32, 0.85) 0%, rgba(19, 25, 52, 0.7) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .article-author-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 242, 254, 0.85) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.article-author-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.author-box-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.author-box-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(129, 140, 248, 0.25);
  display: block;
}

html[data-theme="light"] .author-box-avatar {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.author-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.author-box-content {
  flex: 1;
}

.author-box-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.author-eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.author-expert-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-secondary);
}

html[data-theme="light"] .author-expert-pill {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
}

.author-box-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.3;
}

.author-box-role {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

html[data-theme="light"] .author-box-role {
  color: #0284c7;
}

.author-box-bio {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.author-box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}

.author-credentials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.credential-chip i {
  color: var(--accent-secondary);
  font-size: 11px;
}

html[data-theme="light"] .credential-chip {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.12);
  color: var(--text-secondary);
}

.author-about-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.author-about-link:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .article-author-box {
    padding: 24px 20px;
  }
  .author-box-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .author-box-eyebrow {
    justify-content: center;
  }
  .author-box-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .author-credentials {
    justify-content: center;
  }
}

/* ==========================================================================
   E-E-A-T Editorial Board & Fact-Checking Standards (About Page)
   ========================================================================== */
.editorial-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .editorial-board-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.editorial-member-card {
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.editorial-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0.8;
}

.editorial-member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.25);
}

.editorial-member-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.editorial-member-avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.editorial-member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(129, 140, 248, 0.3);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.25);
}

.editorial-member-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.editorial-member-role {
  font-size: 13.5px;
  color: var(--accent-primary);
  font-weight: 600;
  line-height: 1.4;
}

.editorial-member-bio {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.editorial-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  margin-bottom: 16px;
}

.editorial-cred-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.editorial-cred-item i {
  color: #10b981;
  font-size: 13px;
}

.editorial-focus-apps {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.editorial-focus-apps strong {
  color: var(--text-secondary);
}

/* Standards Grid */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .standards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.standard-card {
  padding: 32px;
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.standard-card:hover {
  transform: translateY(-6px);
}

.standard-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.standard-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.standard-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Dedicated Author Profile Page Styles
   ========================================================================== */
.author-profile-hero {
  padding: 140px 0 60px;
}

.author-profile-card {
  padding: 48px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.author-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.author-profile-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}

.author-profile-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.author-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.3);
}

.author-profile-verified {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #10b981;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.author-profile-name {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.author-profile-role {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.author-profile-bio {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 900px;
}

.author-profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}

.author-profile-meta-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.author-articles-section {
  padding: 40px 0 80px;
}

.author-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.author-article-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.author-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.author-article-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.author-article-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 12px;
  flex-grow: 1;
}

.author-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 768px) {
  .author-profile-header {
    flex-direction: column;
    text-align: center;
  }
  .author-profile-bio {
    text-align: center;
  }
  .author-profile-card {
    padding: 32px 20px;
  }
}

/* ==========================================================================
   Site Upgrade 2026: UI, Conversion & Performance Enhancements
   ========================================================================== */

/* 1. App Hero Rating & Social Proof */
.app-hero-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.app-hero-stars {
  color: #FFB800;
  font-size: 14px;
  display: inline-flex;
  gap: 3px;
}

.app-hero-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.app-hero-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* 2. Related Articles Section (Blog post footer) */
.related-articles-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--card-border);
}

.related-articles-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.related-article-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.related-article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.related-article-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.related-article-time {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.related-article-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 10px;
  flex-grow: 1;
}

.related-article-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.related-article-card:hover .related-article-link {
  gap: 10px;
}

/* 3. "From the Blog" Widget on App Pages */
.app-blog-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--card-border);
}

.app-blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.app-blog-header h2 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
}

.app-blog-all-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.app-blog-all-btn:hover {
  gap: 10px;
}

.app-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 4. Blog Progressive "Load More" Pagination */
.blog-load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 48px 0 24px;
  text-align: center;
}

.blog-load-more-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.blog-load-more-counter {
  font-size: 13px;
  color: var(--text-muted);
}

.card-deferred {
  display: none !important;
}

/* 5. Mobile TOC Collapsible Accordion */
.toc-mobile-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

}

@media (max-width: 768px) {
  .toc-mobile-toggle {
    display: flex;
  }
  .inline-toc .toc-list {
    display: none;
    margin-top: 10px;
  }
  .inline-toc.expanded .toc-list {
    display: block;
  }
  .inline-toc.expanded .toc-mobile-toggle i {
    transform: rotate(180deg);
  }
}

/* ==========================================================================
   6. Press Kit & Media System (press.html)
   ========================================================================== */
.press-hero {
  padding: 130px 20px 50px;
  text-align: center;
  position: relative;
}

.press-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.press-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.press-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.press-stat-card {
  padding: 24px;
  text-align: center;
  border-radius: var(--border-radius-lg);
}

.press-stat-number {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}

.press-stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.press-section {
  margin: 56px 0;
}

.press-section-header {
  margin-bottom: 28px;
  text-align: left;
}

.press-section-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
}

.press-section-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.brand-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.brand-asset-card {
  padding: 24px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.brand-asset-preview {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 1px dashed var(--card-border);
}

.brand-asset-preview img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
}

.brand-asset-preview.light-bg {
  background: #ffffff;
}

.brand-asset-info h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.brand-asset-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.brand-asset-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.asset-download-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.asset-download-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.color-swatch-card {
  padding: 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-swatch-card:hover {
  transform: translateY(-4px);
}

.color-swatch-box {
  height: 64px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-swatch-name {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.color-swatch-hex {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.press-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.press-app-card {
  padding: 24px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.press-app-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.press-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.press-app-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.press-app-category {
  font-size: 12.5px;
  color: var(--accent-primary);
  font-weight: 600;
}

.press-app-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.press-contact-card {
  padding: 44px 32px;
  border-radius: var(--border-radius-xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08) 0%, rgba(192, 132, 252, 0.05) 100%);
  margin: 50px 0 20px;
}

.press-contact-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.press-contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 99px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-top: 18px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.press-contact-email-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   7. Software Comparison Pages (comparison-template.html)
   ========================================================================== */
.comparison-hero {
  padding: 130px 20px 40px;
  text-align: center;
}

.comparison-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.comparison-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.22;
}

.comparison-subtitle {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.comparison-verdict-banner {
  padding: 28px;
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--accent-primary);
  background: rgba(129, 140, 248, 0.06);
  margin-bottom: 40px;
  text-align: left;
}

.verdict-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.verdict-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.verdict-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #10b981;
  color: #fff;
}

.comparison-matrix-wrapper {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.comparison-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  text-align: left;
}

.comparison-matrix-table th,
.comparison-matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  font-size: 14.5px;
}

.comparison-matrix-table th {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.matrix-th-flashsoft,
.matrix-td-flashsoft {
  background: rgba(129, 140, 248, 0.08) !important;
  font-weight: 600;
  color: var(--text-primary);
  border-left: 1px solid rgba(129, 140, 248, 0.25);
  border-right: 1px solid rgba(129, 140, 248, 0.25);
}

.matrix-icon-check {
  color: #10b981;
  font-size: 16px;
  margin-right: 6px;
}

.matrix-icon-cross {
  color: #ef4444;
  font-size: 16px;
  margin-right: 6px;
}

.matrix-icon-warn {
  color: #f59e0b;
  font-size: 16px;
  margin-right: 6px;
}

.comparison-deepdive {
  margin: 48px 0;
}

.comparison-deepdive h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 36px 0 16px;
}

.comparison-deepdive h3 {
  font-size: 19px;
  margin: 24px 0 12px;
}

.comparison-deepdive p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.comparison-cta-box {
  padding: 36px 28px;
  border-radius: var(--border-radius-xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(129, 140, 248, 0.25);
  margin: 50px 0 20px;
}

.comparison-cta-box h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.comparison-cta-box p {
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-size: 16px;
}

/* ==========================================================================
   Review Wall Component (A2)
   ========================================================================== */
.review-wall {
  margin-top: 56px;
  margin-bottom: 56px;
}

.review-wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.review-wall-header-left h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.review-wall-subtitle {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

.review-wall-score-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.review-wall-score-num {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.review-wall-score-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-verified-tag {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.review-wall-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.review-wall-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-wall-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.review-wall-card:hover::before {
  opacity: 1;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.review-author-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.review-author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.review-country-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-secondary);
}

.review-verified-badge {
  color: #10b981;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.review-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 8px 0;
  line-height: 1.4;
}

.review-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
}

.review-helpful-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.review-helpful-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.review-helpful-btn.voted {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
}

/* ==========================================================================
   Ecosystem Cross-App Deep Linking (E4)
   ========================================================================== */
.related-apps-section h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 6px;
}

.related-apps-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.related-app-suite-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-secondary);
  margin-bottom: 3px;
}

.related-app-companion-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-top: 4px;
}

/* ==========================================================================
   Interactive Calculators Component (C2)
   ========================================================================== */
.calc-shell {
  max-width: 1120px;
  margin: 120px auto 80px;
  padding: 0 24px;
}

.calc-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.calc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.calc-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.calc-hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.calc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
}

.calc-card-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.calc-field-group {
  margin-bottom: 24px;
}

.calc-field-group:last-child {
  margin-bottom: 0;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-val-preview {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  cursor: pointer;
  border: 2px solid #fff;
}

.calc-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.calc-number-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.calc-number-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.calc-select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.calc-select:focus {
  border-color: var(--accent-primary);
}

/* Results Card */
.calc-results-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.calc-primary-stat {
  text-align: center;
  padding: 24px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 18px;
  margin-bottom: 24px;
}

.calc-primary-label {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 8px;
}

.calc-primary-val {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-primary-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.calc-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
}

.calc-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.calc-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-highlight-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #34d399;
}

/* App CTA Card in Calculator */
.calc-app-solution-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 64px;
}

.calc-app-left {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 620px;
}

.calc-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.calc-app-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.calc-app-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.calc-app-cta-btn {
  background: var(--accent-gradient);
  color: #fff !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 99px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.calc-app-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.6);
}

/* Calculator Editorial Guide Section */
.calc-guide-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 44px 40px;
  margin-bottom: 56px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.calc-guide-section h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-top: 36px;
  margin-bottom: 16px;
}

.calc-guide-section h2:first-of-type {
  margin-top: 0;
}

.calc-guide-section h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.calc-guide-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.calc-guide-section ul, .calc-guide-section ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.calc-guide-section li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Calculator Top Back Navigation */
.calc-top-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.calc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 99px;
  background: var(--tab-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.calc-back-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateX(-3px);
}

/* Calculator Bottom Navigation (Dual CTAs) */
.calc-bottom-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 60px;
}

.btn-primary-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
  transition: var(--transition-smooth);
}

.btn-primary-glass:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.25) 100%);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

/* Breadcrumbs Styling */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  font-size: 10px;
  opacity: 0.6;
}

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

/* ==========================================================================
   Calculators & Interactive Tools — Light Mode System Overrides
   ========================================================================== */
html[data-theme="light"] .calc-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .calc-card-header {
  border-bottom-color: rgba(99, 102, 241, 0.12);
}

html[data-theme="light"] .calc-results-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 245, 255, 0.94) 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .calc-hero-badge {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.22);
  color: #4f46e5;
}

html[data-theme="light"] .calc-val-preview {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.22);
}

html[data-theme="light"] .calc-slider {
  background: #e2e8f0;
}

html[data-theme="light"] .calc-slider::-webkit-slider-thumb {
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

html[data-theme="light"] .calc-number-input {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.22);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .calc-number-input:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

html[data-theme="light"] .calc-select {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.22);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .calc-select:focus {
  border-color: var(--accent-primary);
}

html[data-theme="light"] .calc-primary-stat {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.18);
}

html[data-theme="light"] .calc-primary-label {
  color: #4338ca;
}

html[data-theme="light"] .calc-primary-desc {
  color: #64748b;
}

html[data-theme="light"] .calc-stat-box {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .calc-stat-label {
  color: #64748b;
}

html[data-theme="light"] .calc-stat-value {
  color: #0f172a;
}

html[data-theme="light"] .calc-highlight-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

html[data-theme="light"] .calc-progress-box {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .calc-app-solution-card,
html[data-theme="light"] .calc-app-solution {
  background: linear-gradient(135deg, rgba(240, 244, 255, 0.95) 0%, rgba(230, 247, 255, 0.9) 100%);
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08);
}

html[data-theme="light"] .calc-guide-section {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

html[data-theme="light"] .calc-guide-section h2,
html[data-theme="light"] .calc-guide-section h3 {
  color: #0f172a;
}

html[data-theme="light"] .calc-guide-section p,
html[data-theme="light"] .calc-guide-section li {
  color: #475569;
}

html[data-theme="light"] .calc-back-link {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.2);
  color: #4b5563;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .calc-back-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border-color: var(--accent-primary);
}

html[data-theme="light"] .btn-primary-glass {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.3);
  color: #4338ca;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

html[data-theme="light"] .btn-primary-glass:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(168, 85, 247, 0.18) 100%);
  border-color: var(--accent-primary);
  color: #312e81;
}

html[data-theme="light"] .breadcrumbs a {
  color: #475569;
}

html[data-theme="light"] .breadcrumbs a:hover {
  color: var(--accent-primary);
}

html[data-theme="light"] .breadcrumbs .active {
  color: #0f172a;
}

/* Tool specific elements in Light Mode */
html[data-theme="light"] .speedtest-gauge-container {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .speedtest-metric-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .speedtest-metric-card.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: #06b6d4;
}

html[data-theme="light"] .speedtest-info-box {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.14);
}

html[data-theme="light"] .speedtest-tier-item {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.14);
}

html[data-theme="light"] .speedtest-tier-title {
  color: #0f172a;
}

html[data-theme="light"] .speedtest-network-info {
  background: #f8fafc;
  border-color: rgba(99, 102, 241, 0.14);
}

html[data-theme="light"] .decibel-visualizer-container,
html[data-theme="light"] .decibel-meter-dial {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.16);
}

html[data-theme="light"] .hearing-freq-card,
html[data-theme="light"] .camera-preview-container,
html[data-theme="light"] .screen-test-grid,
html[data-theme="light"] .speaker-control-panel,
html[data-theme="light"] .vibe-pattern-btn,
html[data-theme="light"] .radar-stage,
html[data-theme="light"] .ratio-preview-box,
html[data-theme="light"] .dropzone-container,
html[data-theme="light"] .safezone-stage,
html[data-theme="light"] .audio-format-pill,
html[data-theme="light"] .video-speed-btn,
html[data-theme="light"] .sleep-wake-card,
html[data-theme="light"] .tdee-activity-card,
html[data-theme="light"] .due-trimester-card,
html[data-theme="light"] .wifi-card-preview,
html[data-theme="light"] .ambient-sound-card,
html[data-theme="light"] .pwd-checker-card,
html[data-theme="light"] .exif-meta-table {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.16);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .faq-item.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.14);
}

html[data-theme="light"] .faq-question {
  color: #0f172a;
}

html[data-theme="light"] .faq-answer {
  color: #475569;
}




/* ==========================================================================
   SPOTLIGHT SEARCH (Cmd+K / Live Search Modal)
   ========================================================================== */
.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 8px;
}
.search-trigger-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}
.search-kbd-hint {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.search-kbd-hint kbd,
.spotlight-dialog kbd {
  font-size: 10px;
  font-family: inherit;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  line-height: 1;
}
[data-theme="light"] .search-trigger-btn {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}
[data-theme="light"] .search-trigger-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-primary);
}
[data-theme="light"] .search-kbd-hint kbd {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .search-kbd-hint {
    display: none;
  }
  .search-trigger-btn {
    padding: 8px 10px;
    margin-right: 4px;
  }
}

/* Spotlight Overlay & Modal */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(40px, 12vh, 120px);
  padding-left: 16px;
  padding-right: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.spotlight-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.spotlight-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .spotlight-backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.spotlight-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-overlay.is-open .spotlight-dialog {
  transform: scale(1) translateY(0);
}
[data-theme="light"] .spotlight-dialog {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.25), 0 0 30px rgba(99, 102, 241, 0.15);
}

.spotlight-search-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
}
.spotlight-search-icon {
  font-size: 18px;
  color: var(--accent-primary);
}
.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
}
.spotlight-input::placeholder {
  color: var(--text-muted);
}
.spotlight-esc-hint {
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}
[data-theme="light"] .spotlight-esc-hint {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.spotlight-body {
  max-height: 52vh;
  overflow-y: auto;
  padding: 12px 14px;
  overscroll-behavior: contain;
}
.spotlight-body::-webkit-scrollbar {
  width: 6px;
}
.spotlight-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.spotlight-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 10px 4px;
}
.spotlight-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px 14px;
}
.spotlight-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.spotlight-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
}
[data-theme="light"] .spotlight-tag {
  background: rgba(0, 0, 0, 0.04);
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.18s ease;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.spotlight-item:hover,
.spotlight-item.is-selected {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(3px);
}
[data-theme="light"] .spotlight-item:hover,
[data-theme="light"] .spotlight-item.is-selected {
  background: rgba(99, 102, 241, 0.08);
}
.spotlight-item-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #818cf8;
  font-size: 16px;
  overflow: hidden;
}
.spotlight-item-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight-item-info {
  flex: 1;
  min-width: 0;
}
.spotlight-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.spotlight-item-title {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.spotlight-item-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.spotlight-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.spotlight-item mark {
  background: rgba(250, 204, 21, 0.3);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

.spotlight-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}
.spotlight-empty-state i {
  font-size: 32px;
  color: rgba(99, 102, 241, 0.4);
  margin-bottom: 12px;
}
.spotlight-empty-state p {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 600;
}
.spotlight-empty-state span {
  font-size: 13px;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--card-border);
  font-size: 11px;
  color: var(--text-muted);
}
.spotlight-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
[data-theme="light"] .spotlight-footer {
  background: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   MOBILE STICKY FLOATING DOWNLOAD BAR
   ========================================================================== */
.sticky-download-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(13, 18, 36, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(99, 102, 241, 0.3);
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.sticky-download-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
[data-theme="light"] .sticky-download-bar {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(99, 102, 241, 0.15);
}
.sticky-bar-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sticky-bar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.sticky-bar-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sticky-bar-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.sticky-bar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.sticky-bar-rating {
  color: #facc15;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.sticky-bar-badge {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.sticky-bar-actions {
  flex-shrink: 0;
}
.sticky-bar-btn {
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
  text-decoration: none !important;
}

/* ==========================================================================
   BUNDLES HERO & HEADER
   ========================================================================== */
.bundles-hero {
  padding: 130px 20px 24px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.bundles-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bundles-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   CUSTOM BUNDLE BUILDER ON bundles.html
   ========================================================================== */
.bundle-builder-section {
  margin: 36px 0 64px;
}
.bundle-builder-card {
  padding: 40px 36px;
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.08);
}
[data-theme="light"] .bundle-builder-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.03);
}
.builder-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}
.builder-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.builder-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
}
.builder-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Preset Goal Tabs */
.builder-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.builder-preset-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.builder-preset-pill:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.builder-preset-pill.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
}
[data-theme="light"] .builder-preset-pill {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #334155;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
}
[data-theme="light"] .builder-preset-pill:hover {
  background: #ffffff;
  border-color: #6366f1;
  color: #1e293b;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18);
  transform: translateY(-2px);
}
[data-theme="light"] .builder-preset-pill.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* App Select Grid */
.builder-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.builder-app-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.builder-app-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}
.builder-app-item.selected {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
[data-theme="light"] .builder-app-item {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .builder-app-item:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}
[data-theme="light"] .builder-app-item.selected {
  background: rgba(238, 242, 255, 0.95);
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18);
}
.builder-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.2);
  color: transparent;
  font-size: 11px;
}
[data-theme="light"] .builder-checkbox {
  background: #ffffff;
  border-color: #cbd5e1;
}
.builder-app-item.selected .builder-checkbox {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}
.builder-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.builder-app-details {
  flex: 1;
  min-width: 0;
}
.builder-app-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.builder-app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}
.builder-app-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

/* Builder Summary Dock */
.builder-summary-dock {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.25);
}
[data-theme="light"] .builder-summary-dock {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .builder-summary-count-badge {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #4338ca;
}
.builder-summary-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.builder-summary-count-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.builder-summary-icons-reel {
  display: flex;
  align-items: center;
}
.builder-summary-icons-reel img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
  margin-left: -10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.builder-summary-icons-reel img:first-child {
  margin-left: 0;
}
.builder-summary-icons-reel img:hover {
  transform: translateY(-4px) scale(1.15);
  z-index: 5;
}
.builder-summary-perks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.builder-summary-perks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.builder-summary-perks span i {
  color: #4ade80;
}
.builder-summary-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ARTICLE CALCULATOR INSET TEASER WIDGET
   ========================================================================== */
.article-calc-teaser {
  margin: 36px 0;
  padding: 26px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 24px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
[data-theme="light"] .article-calc-teaser {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.calc-teaser-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 8px;
}
.calc-teaser-header {
  flex: 1;
  min-width: 260px;
}
.calc-teaser-header h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}
.calc-teaser-header p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 !important;
}
.calc-teaser-cta {
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0;
  text-decoration: none !important;
}

/* ==========================================================================
   ROUNDUP / BEST APPS 2026 HUB STYLES
   ========================================================================== */
.roundup-matrix-container {
  overflow-x: auto;
  margin: 32px 0 44px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.roundup-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}
.roundup-matrix-table th {
  background: rgba(17, 24, 39, 0.9);
  padding: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-primary);
  white-space: nowrap;
}
[data-theme="light"] .roundup-matrix-table th {
  background: rgba(241, 245, 249, 0.95);
}
.roundup-matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
}
.roundup-matrix-table tr.highlight-row {
  background: rgba(99, 102, 241, 0.1);
}
.roundup-matrix-table tr.highlight-row td {
  color: var(--text-primary);
  font-weight: 600;
}
.roundup-app-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.roundup-app-cell img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.roundup-winner-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: #facc15;
  color: #0f172a;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Calculators Hub Page Styles (calculators.html)
   ========================================================================== */
.calc-hub-hero {
  text-align: center;
  padding: 140px 20px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.calc-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: #818cf8;
  margin-bottom: 20px;
}
.calc-hub-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.calc-hub-subtitle {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 32px;
}
.calc-hub-stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.calc-hub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.calc-hub-stat-val {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-hub-stat-lbl {
  font-size: 12.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.calc-hub-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.calc-hub-filter-btn {
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.calc-hub-filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-1px);
}
.calc-hub-filter-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.18) 100%);
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   HOMEPAGE FREE WEB TOOLS & DIAGNOSTICS SHOWCASE
   ========================================================================== */
.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 1024px) {
  .home-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .home-tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.home-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.18);
}

.home-tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.home-tool-card:hover::after {
  opacity: 1;
}

.home-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.home-tool-icon-squircle {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-tool-card:hover .home-tool-icon-squircle {
  transform: scale(1.08) rotate(-2deg);
}

.home-tool-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
}

.home-tool-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.home-tool-live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.45;
  animation: pulse-dot 2.2s infinite ease-out;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

.home-tool-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.home-tool-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.home-tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.home-tool-cat {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.home-tool-link-text {
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.home-tool-card:hover .home-tool-link-text {
  gap: 9px;
}

/* Homepage Tools CTA Banner */
.home-tools-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.45) 0%, rgba(12, 15, 32, 0.8) 100%);
  border: 1px solid rgba(129, 140, 248, 0.25);
  margin-top: 16px;
}
.home-tools-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}
.home-tools-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.home-tools-banner-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.home-tools-banner-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.home-tools-banner-btn {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .home-tools-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  .home-tools-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .home-tools-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Light mode support for tools showcase & calculators */
html[data-theme="light"] .home-tool-card,
html[data-theme="light"] .calc-hub-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 10px 28px -5px rgba(99, 102, 241, 0.08);
}
html[data-theme="light"] .home-tool-card:hover,
html[data-theme="light"] .calc-hub-card:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.18);
}
html[data-theme="light"] .home-tool-title,
html[data-theme="light"] .calc-hub-card-title {
  color: #0f172a;
}
html[data-theme="light"] .home-tool-desc,
html[data-theme="light"] .calc-hub-card-desc {
  color: #475569;
}
html[data-theme="light"] .home-tool-live-badge,
html[data-theme="light"] .calc-hub-time-badge {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.14);
}
html[data-theme="light"] .home-tool-footer,
html[data-theme="light"] .calc-hub-card-footer {
  border-top-color: rgba(99, 102, 241, 0.1);
}
html[data-theme="light"] .home-tools-banner {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(224, 231, 255, 0.7) 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}
html[data-theme="light"] .home-tools-banner-title {
  color: #0f172a;
}
html[data-theme="light"] .home-tools-banner-desc {
  color: #475569;
}
html[data-theme="light"] .home-tools-banner-icon {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #4f46e5;
}

.calc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  margin-bottom: 80px;
}
.calc-hub-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--border-radius-xl);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.calc-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.calc-hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(129, 140, 248, 0.15);
}
.calc-hub-card:hover::before {
  opacity: 1;
}
.calc-hub-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.calc-hub-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: #818cf8;
}
.calc-hub-time-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.calc-hub-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.35;
}
.calc-hub-card-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}
.calc-hub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
}
.calc-hub-card-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calc-hub-card-action {
  font-size: 13.5px;
  font-weight: 700;
  color: #818cf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.calc-hub-card:hover .calc-hub-card-action {
  gap: 10px;
  color: #38bdf8;
}

/* ==========================================================================
   Compare Hub Page Styles (compare.html)
   ========================================================================== */
.compare-hub-hero {
  text-align: center;
  padding: 140px 20px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.compare-section-header {
  margin: 56px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.compare-section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.compare-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}
.compare-card {
  padding: 30px 26px;
  border-radius: var(--border-radius-xl);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.compare-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.compare-card-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.compare-avatar-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.compare-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-vs-badge {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
}
.compare-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.35;
}
.compare-card-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  text-align: center;
  flex-grow: 1;
}
.compare-verdict-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #10b981;
  text-align: center;
}

/* ==========================================================================
   Article Key Takeaways / Google AI Overview Box
   ========================================================================== */
.article-quick-answer {
  margin: 32px 0 36px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}
.article-quick-answer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gradient);
}
.quick-answer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.quick-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(129, 140, 248, 0.2);
  color: #818cf8;
}
.quick-answer-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.quick-answer-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}
.quick-answer-body strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Trust Badges Bar & App Testimonials Component
   ========================================================================== */
.trust-badges-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0 24px;
  padding: 16px 20px;
  border-radius: 99px;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
}
.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-badge-item i {
  color: #10b981;
  font-size: 14px;
}

.app-testimonials-section {
  margin: 72px 0 48px;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 36px;
}
.testimonials-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.testimonials-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial-card {
  padding: 24px 22px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.testimonial-rating {
  color: #facc15;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 18px;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}
.testimonial-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.2);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.testimonial-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-badge-verified {
  font-size: 11px;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* ==========================================================================
   Desktop QR Code Modal Component
   ========================================================================== */
.qr-desktop-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.qr-desktop-modal.active {
  opacity: 1;
  visibility: visible;
}
.qr-desktop-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 30px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.qr-desktop-modal.active .qr-desktop-card {
  transform: translateY(0) scale(1);
}
.qr-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s ease;
}
.qr-modal-close:hover {
  color: var(--text-primary);
}
.qr-img-box {
  width: 180px;
  height: 180px;
  margin: 20px auto;
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-img-box img {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.qr-modal-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.qr-modal-app-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}
.qr-modal-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.qr-modal-app-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   28. Online Speaker Cleaner & Water Eject Tool
   ========================================================================== */
.speaker-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .speaker-modes-grid {
    grid-template-columns: 1fr;
  }
}

.speaker-mode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.speaker-mode-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.speaker-mode-card.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), inset 0 0 12px rgba(6, 182, 212, 0.08);
}

[data-theme="light"] .speaker-mode-card {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .speaker-mode-card.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: #0891b2;
}

.speaker-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.speaker-mode-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.speaker-mode-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
  letter-spacing: 0.3px;
}

.speaker-mode-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Duration selector segmented pills */
.speaker-duration-group {
  margin-bottom: 24px;
}

.speaker-segmented-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 4px;
}

.speaker-segmented-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.speaker-segmented-btn:hover {
  color: var(--text-primary);
}

.speaker-segmented-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Custom frequency accordion / box */
.speaker-custom-freq-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  margin-bottom: 24px;
}

.speaker-preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.speaker-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.speaker-preset-chip:hover,
.speaker-preset-chip.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #06b6d4;
}

/* Advisory & Warning Callout */
.speaker-volume-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--border-radius-lg);
  font-size: 13px;
  color: #f59e0b;
  line-height: 1.5;
}

.speaker-volume-alert i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Visualizer & Canvas Container */
.speaker-visualizer-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

[data-theme="light"] .speaker-visualizer-container {
  background: radial-gradient(circle at center, rgba(241, 245, 249, 0.9) 0%, rgba(226, 232, 240, 0.95) 100%);
  border-color: rgba(6, 182, 212, 0.35);
}

#speaker-cleaner-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.speaker-viz-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.speaker-viz-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.speaker-viz-status.active {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.speaker-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.speaker-viz-status.active .speaker-pulse-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: speaker-dot-pulse 1.2s infinite;
}

@keyframes speaker-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Giant Eject Button */
.speaker-eject-btn {
  width: 100%;
  min-height: 64px;
  border: none;
  border-radius: 99px;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.speaker-eject-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 38px rgba(6, 182, 212, 0.55);
}

.speaker-eject-btn:active {
  transform: translateY(1px);
}

.speaker-eject-btn.running {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.65);
  animation: speaker-btn-heartbeat 1.6s infinite ease-in-out;
}

@keyframes speaker-btn-heartbeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.02); box-shadow: 0 0 45px rgba(239, 68, 68, 0.8); }
}

.speaker-eject-icon {
  font-size: 22px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.speaker-eject-btn.running .speaker-eject-icon {
  animation: speaker-water-drop 1.4s infinite;
}

@keyframes speaker-water-drop {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Stats / Status Row */
.speaker-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 520px) {
  .speaker-stats-row {
    grid-template-columns: 1fr;
  }
}

.speaker-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  text-align: center;
}

.speaker-stat-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.speaker-stat-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Audio Clarity Test & Instructions */
.speaker-test-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .speaker-test-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.speaker-test-btn {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--text-primary);
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.speaker-test-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Protocol / Rescue Steps Card */
.speaker-protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .speaker-protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .speaker-protocol-grid {
    grid-template-columns: 1fr;
  }
}

.speaker-protocol-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.speaker-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.speaker-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.speaker-step-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   29. Online Screen Diagnostic & Burn-in Suite
   ========================================================================== */
.screen-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .screen-modes-grid {
    grid-template-columns: 1fr;
  }
}

.screen-mode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.screen-mode-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.screen-mode-card.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2), inset 0 0 12px rgba(99, 102, 241, 0.08);
}

.screen-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.screen-mode-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-mode-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.screen-mode-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.screen-swatches-wrap {
  margin: 18px 0;
}

.screen-swatches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.screen-swatch-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000000;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.screen-swatch-btn:hover {
  transform: scale(1.1);
  border-color: #ffffff;
  z-index: 2;
}

.screen-swatch-btn.active {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.08);
}

.screen-swatch-btn.active::after {
  content: '✓';
  font-size: 14px;
  font-weight: 900;
  color: var(--swatch-check, #000000);
}

.screen-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .screen-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.screen-telemetry-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.screen-telemetry-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.3);
}

.screen-telemetry-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}

.screen-telemetry-val {
  font-size: 15.5px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.screen-preview-container {
  width: 100%;
  height: 180px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
  background: #000000;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-preview-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.screen-fps-pill {
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}

.screen-fps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green 1.5s infinite;
}

.screen-launch-btn {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 20px;
}

.screen-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
  filter: brightness(1.08);
}

.screen-launch-btn:active {
  transform: translateY(0);
}

.screen-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.screen-quick-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.screen-quick-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Fullscreen Modal & Floating HUD */
.screen-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #000000;
  display: none;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.screen-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-modal-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screen-modal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.screen-modal-canvas.active {
  display: block;
}

.screen-hud-pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2);
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 95vw;
  overflow-x: auto;
}

.screen-hud-pill.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.screen-hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.screen-hud-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.screen-hud-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen-hud-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.screen-hud-swatch:hover,
.screen-hud-swatch.active {
  transform: scale(1.25);
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.screen-hud-info {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  padding: 0 6px;
  font-family: var(--font-heading);
}

.screen-hud-close {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.screen-hud-close:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

.screen-touch-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
  display: none;
  z-index: 100;
}

.screen-touch-counter.active {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   30. Online Internet Speed Test Suite (Speedometer, Ping, Jitter & Bandwidth)
   ========================================================================== */
.speedtest-gauge-container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.speedometer-canvas {
  width: 100%;
  max-width: 340px;
  height: 240px;
  display: block;
}

.speedometer-readout {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.speedometer-val {
  font-size: clamp(38px, 6vw, 48px);
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(6, 182, 212, 0.4);
}

.speedometer-unit {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.speedometer-phase {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.speedtest-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .speedtest-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.speedtest-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.speedtest-metric-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(6, 182, 212, 0.3);
}

.speedtest-metric-card.active {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.speedtest-metric-lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.speedtest-metric-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.speedtest-metric-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.speedtest-start-btn {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 22px;
}

.speedtest-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

.speedtest-start-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.speedtest-tier-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.speedtest-tier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  font-size: 13px;
}

.speedtest-tier-title {
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.speedtest-tier-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.speedtest-tier-badge.optimal {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.speedtest-tier-badge.good {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.speedtest-tier-badge.fair {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.speedtest-tier-badge.poor {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.speedtest-network-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .speedtest-network-info {
    grid-template-columns: 1fr;
  }
}

.speedtest-info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  text-align: left;
}

.speedtest-info-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.speedtest-info-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   31. Online Sound Level & Decibel Meter (Web Audio Analyser, SPL Gauge)
   ========================================================================== */
.db-gauge-container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.db-canvas {
  width: 100%;
  max-width: 340px;
  height: 240px;
  display: block;
}

.db-readout {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.db-val {
  font-size: clamp(38px, 6vw, 48px);
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
}

.db-unit {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10b981;
  margin-top: 4px;
}

.db-status-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.db-spectrum-wrap {
  width: 100%;
  height: 90px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
  background: #060913;
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}

.db-spectrum-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.db-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .db-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.db-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.db-metric-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.db-metric-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}

.db-metric-val {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.db-metric-unit {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.db-action-btn {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 20px;
}

.db-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
  filter: brightness(1.08);
}

.db-action-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.db-secondary-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.db-secondary-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.db-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(16, 185, 129, 0.4);
}

.db-scale-guide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.db-scale-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  font-size: 13px;
  transition: all 0.2s ease;
}

.db-scale-item.highlighted {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.db-scale-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
}

.db-scale-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-scale-range {
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-secondary);
}

.db-calibration-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
}

/* ==========================================================================
   32. EXIF VIEWER & METADATA STRIPPER COMPONENT
   ========================================================================== */

.exif-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.exif-dropzone {
  border: 2px dashed rgba(168, 85, 247, 0.45);
  border-radius: var(--border-radius-xl);
  padding: 50px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.exif-dropzone:hover,
.exif-dropzone.drag-over {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.22);
  transform: translateY(-2px);
}

.exif-drop-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #c084fc;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.25);
  transition: transform 0.3s ease;
}

.exif-dropzone:hover .exif-drop-icon {
  transform: scale(1.08) rotate(4deg);
}

.exif-drop-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.exif-drop-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.exif-drop-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.exif-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.exif-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.exif-pill i {
  color: #a855f7;
}

/* Results Section */
.exif-results {
  display: none;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exif-results.active {
  display: flex;
}

/* Privacy Alert Banner */
.exif-privacy-banner {
  border-radius: var(--border-radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.exif-privacy-banner.hazard {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.exif-privacy-banner.hazard .exif-banner-icon {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

.exif-privacy-banner.safe {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.exif-privacy-banner.safe .exif-banner-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.exif-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.exif-banner-text h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.exif-banner-text p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Image Overview Card */
.exif-overview-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
}

@media (max-width: 768px) {
  .exif-overview-grid {
    grid-template-columns: 1fr;
  }
}

.exif-thumb-box {
  width: 100%;
  height: 240px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.exif-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.exif-file-meta-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.exif-file-meta-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  margin-bottom: 8px;
}

.exif-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.exif-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.exif-chip strong {
  color: var(--text-primary);
}

/* Download Actions Bar */
.exif-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
}

.exif-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exif-action-icon {
  font-size: 24px;
  color: #c084fc;
}

.exif-action-desc h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.exif-action-desc p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
}

.exif-btn-clean {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
  transition: all 0.25s ease;
}

.exif-btn-clean:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.45);
}

/* Optics & Camera Grid */
.exif-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.exif-spec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.exif-spec-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

.exif-spec-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exif-spec-label i {
  color: #a855f7;
}

.exif-spec-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* GPS Map Card */
.exif-gps-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 22px;
}

.exif-gps-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.exif-gps-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.exif-gps-title i {
  color: #ef4444;
}

.exif-coords-text {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: 6px;
}

.exif-map-container {
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: relative;
  background: #111;
}

.exif-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.exif-gps-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.exif-gps-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.exif-gps-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

/* Full Metadata Table */
.exif-table-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
}

.exif-table-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.exif-table-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.exif-search-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s ease;
}

.exif-search-input:focus {
  border-color: #a855f7;
}

.exif-table-scroll {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
}

.exif-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.exif-data-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.exif-data-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.exif-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.exif-tag-id {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-tertiary);
}

.exif-tag-name {
  font-weight: 600;
  color: var(--text-primary);
}

.exif-tag-val {
  font-family: monospace;
  color: #c084fc;
  word-break: break-all;
}

/* ==========================================================================
   33. HEARING FREQUENCY TEST & AUDIOGRAM COMPONENT
   ========================================================================== */

.hearing-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Headphone Calibration Banner */
.hearing-alert-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hearing-alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #f59e0b;
  flex-shrink: 0;
}

.hearing-alert-text {
  font-size: 13.5px;
  color: #fde68a;
  line-height: 1.5;
  margin: 0;
}

.hearing-alert-text strong {
  color: #fff;
}

/* Mode Switcher Tabs */
.hearing-tabs {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.hearing-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.hearing-tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.hearing-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Audiogram View */
.hearing-audiogram-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

.hearing-audiogram-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hearing-audiogram-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.hearing-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hearing-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hearing-legend-dot.right {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.hearing-legend-dot.left {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.hearing-canvas-wrap {
  width: 100%;
  height: 320px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #090d16;
  position: relative;
}

.hearing-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Interactive Test Controller Box */
.hearing-control-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.hearing-step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hearing-ear-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hearing-ear-badge.right {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.hearing-ear-badge.left {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.hearing-freq-display {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.1;
}

.hearing-volume-display {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hearing-tone-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

.hearing-tone-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px rgba(99, 102, 241, 0.6);
}

.hearing-tone-btn.playing {
  animation: pulseNeon 1s infinite alternate;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
}

.hearing-responses-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.hearing-resp-btn {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.hearing-resp-btn.heard {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.hearing-resp-btn.heard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.hearing-resp-btn.unheard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.hearing-resp-btn.unheard:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Ear Age High Pitch Section */
.hearing-ear-age-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 32px 24px;
  text-align: center;
}

.hearing-age-slider-wrap {
  max-width: 540px;
  margin: 28px auto;
}

.hearing-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.hearing-ear-age-result {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  max-width: 520px;
  margin: 24px auto 0;
}

.hearing-age-num {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: #818cf8;
  line-height: 1;
  margin-bottom: 6px;
}

.hearing-age-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Metric Cards Grid */
.hearing-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.hearing-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  text-align: center;
}

.hearing-metric-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hearing-metric-lbl {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   34. CAMERA RESOLUTION, FPS & SENSOR TEST COMPONENT
   ========================================================================== */

.camera-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.camera-viewfinder-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.camera-viewfinder-wrap {
  width: 100%;
  height: 480px;
  max-height: 70vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #050811;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
}

@media (max-width: 600px) {
  .camera-viewfinder-wrap {
    height: 360px;
  }
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-hud-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 5;
}

.camera-hud-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 13px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.camera-hud-badge.fps {
  color: #10b981;
}

.camera-hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseNeon 1s infinite alternate;
}

/* Viewfinder Optical Reticle */
.camera-reticle {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-reticle::before,
.camera-reticle::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
}

.camera-reticle::before {
  width: 12px;
  height: 1.5px;
}

.camera-reticle::after {
  width: 1.5px;
  height: 12px;
}

/* Standby Screen */
.camera-standby-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  z-index: 4;
  text-align: center;
  padding: 24px;
}

.camera-standby-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #818cf8;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
}

/* Control Toolbar */
.camera-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.camera-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.camera-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.camera-tool-btn.primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.camera-tool-btn.primary:hover {
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}

.camera-tool-btn.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

/* Dead Pixel Dark Frame Overlay */
.camera-dead-pixel-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 6;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.camera-dead-pixel-overlay.active {
  display: flex;
}

.camera-dp-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Metrics Grid */
.camera-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.camera-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  transition: transform 0.2s ease;
}

.camera-metric-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.camera-metric-lbl {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.camera-metric-lbl i {
  color: #818cf8;
}

.camera-metric-val {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Live Histogram Card */
.camera-histogram-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.camera-histogram-wrap {
  width: 100%;
  height: 120px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: #090d16;
  border: 1px solid var(--card-border);
  position: relative;
  margin-top: 14px;
}

.camera-histogram-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   35. VIBRATION MOTOR & TAPTIC ENGINE DIAGNOSTIC SUITE
   ========================================================================== */

.vibe-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Status & Compatibility Banner */
.vibe-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.vibe-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.vibe-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vibe-status-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-lg);
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  flex-shrink: 0;
}

.vibe-status-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vibe-status-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.vibe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vibe-badge.supported {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.vibe-badge.restricted {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.vibe-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: vibe-pulse-dot 1.8s infinite;
}

@keyframes vibe-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Visual Phone Chassis Stage */
.vibe-stage-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 28px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.vibe-phone-wrap {
  width: 190px;
  height: 280px;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #0e1322, #070a12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease-out, border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

.vibe-phone-wrap.active-vibe {
  animation: vibe-shake-active 0.1s linear infinite;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.35), 0 16px 36px rgba(0, 0, 0, 0.6);
}

@keyframes vibe-shake-active {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3.5px, 2px) rotate(-0.8deg); }
  50% { transform: translate(3px, -2.5px) rotate(0.6deg); }
  75% { transform: translate(-2px, -2px) rotate(-0.5deg); }
  100% { transform: translate(3.5px, 1.5px) rotate(0.7deg); }
}

.vibe-phone-notch {
  position: absolute;
  top: 10px;
  width: 60px;
  height: 12px;
  background: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vibe-phone-speaker {
  width: 24px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.vibe-phone-lens {
  width: 4px;
  height: 4px;
  background: #1e293b;
  border-radius: 50%;
}

.vibe-motor-visual {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vibe-motor-core {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.15);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  font-size: 24px;
  position: relative;
  z-index: 2;
  transition: transform 0.2s, background 0.2s;
}

.active-vibe .vibe-motor-core {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
  transform: scale(1.08);
}

.vibe-motor-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 1px dashed rgba(168, 85, 247, 0.3);
  pointer-events: none;
}

.active-vibe .vibe-motor-rings {
  animation: vibe-rings-pulse 0.8s ease-out infinite;
}

@keyframes vibe-rings-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; border-color: rgba(168, 85, 247, 0.8); }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; border-color: rgba(168, 85, 247, 0); }
}

.vibe-phone-label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.active-vibe .vibe-phone-label {
  color: #c084fc;
}

/* Oscilloscope & Pulse Visualizer */
.vibe-oscilloscope-card {
  width: 100%;
  max-width: 620px;
  margin-top: 22px;
  background: #090d16;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  position: relative;
}

.vibe-oscilloscope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vibe-oscilloscope-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vibe-oscilloscope-status {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #34d399;
}

.vibe-oscilloscope-canvas {
  width: 100%;
  height: 56px;
  display: block;
}

/* Global Controls Row */
.vibe-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 100%;
}

.vibe-stop-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 10px 22px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.vibe-stop-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.vibe-sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.vibe-sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.vibe-sound-toggle-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* Preset Grids */
.vibe-section-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vibe-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.vibe-preset-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.vibe-preset-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.vibe-preset-card:active {
  transform: translateY(0);
}

.vibe-preset-card.playing {
  border-color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.vibe-preset-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vibe-preset-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.vibe-preset-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.vibe-preset-pattern-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.vibe-p-tag {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

/* Custom Pattern Sequencer */
.vibe-sequencer-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.vibe-sequencer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.vibe-seq-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .vibe-seq-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vibe-seq-step {
  height: 64px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--card-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.vibe-seq-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.vibe-seq-step.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.vibe-seq-step.playing {
  outline: 2px solid #34d399;
  outline-offset: 1px;
}

.vibe-step-num {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  color: var(--text-tertiary);
}

.vibe-seq-step.active .vibe-step-num {
  color: #c084fc;
}

.vibe-step-state {
  font-size: 11px;
  font-weight: 700;
}

.vibe-seq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.vibe-seq-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vibe-btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.vibe-btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.vibe-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.vibe-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Telemetry & Metrics (Right Card) */
.vibe-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .vibe-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.vibe-metric-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.vibe-metric-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

.vibe-metric-lbl {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vibe-metric-lbl i {
  color: #c084fc;
}

.vibe-metric-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Motor Health & Rattle Checklist */
.vibe-checklist-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.vibe-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vibe-check-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vibe-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.vibe-check-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.vibe-check-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   36. WEB BLUETOOTH BLE RADAR & PROXIMITY SCANNER
   ========================================================================== */

.ble-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Status & Compatibility Banner */
.ble-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.ble-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.ble-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ble-status-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-lg);
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  flex-shrink: 0;
}

.ble-status-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ble-status-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.ble-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ble-badge.supported {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.ble-badge.restricted {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.ble-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: ble-pulse-dot 1.8s infinite;
}

@keyframes ble-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Circular Radar Screen Stage */
.ble-radar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 28px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ble-radar-wrap {
  width: 340px;
  height: 340px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.35);
  background: radial-gradient(circle, #08101a 0%, #03060a 100%);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.15), inset 0 0 24px rgba(6, 182, 212, 0.1);
  position: relative;
  overflow: hidden;
}

.ble-radar-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ble-radar-hud {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #06b6d4;
  opacity: 0.85;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ble-radar-range-hud {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* Radar Controls Bar */
.ble-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  width: 100%;
}

.ble-scan-btn {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.ble-scan-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.ble-scan-btn.scanning {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: ble-btn-pulse 1.6s infinite;
}

@keyframes ble-btn-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 24px rgba(16, 185, 129, 0.7); }
}

.ble-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 11px 18px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ble-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* RSSI Calibration Card */
.ble-calibration-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.ble-calib-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .ble-calib-grid {
    grid-template-columns: 1fr;
  }
}

.ble-calib-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ble-calib-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.ble-calib-val {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #06b6d4;
  font-size: 12px;
}

/* Discovered Peripherals List */
.ble-list-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.ble-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.ble-devices-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ble-device-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ble-device-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.ble-device-row.tracked {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.ble-dev-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ble-dev-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.ble-dev-name {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.ble-dev-meta {
  font-size: 11.5px;
  font-family: var(--font-mono, monospace);
  color: var(--text-tertiary);
}

.ble-dev-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ble-signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
}

.ble-signal-bar {
  width: 3.5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

.ble-signal-bar:nth-child(1) { height: 25%; }
.ble-signal-bar:nth-child(2) { height: 50%; }
.ble-signal-bar:nth-child(3) { height: 75%; }
.ble-signal-bar:nth-child(4) { height: 100%; }

.ble-signal-bars.excellent .ble-signal-bar { background: #10b981; }
.ble-signal-bars.good .ble-signal-bar:nth-child(-n+3) { background: #06b6d4; }
.ble-signal-bars.fair .ble-signal-bar:nth-child(-n+2) { background: #f59e0b; }
.ble-signal-bars.poor .ble-signal-bar:nth-child(1) { background: #ef4444; }

.ble-dev-rssi-badge {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.ble-dev-dist-badge {
  font-size: 12px;
  font-weight: 600;
  color: #06b6d4;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.ble-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-tertiary);
  font-size: 13.5px;
}

.ble-empty-state i {
  font-size: 32px;
  color: var(--card-border);
  margin-bottom: 12px;
  display: block;
}

/* Telemetry & Metrics (Right Card) */
.ble-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .ble-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.ble-metric-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.ble-metric-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-2px);
}

.ble-metric-lbl {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ble-metric-lbl i {
  color: #06b6d4;
}

.ble-metric-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Physics & Path-Loss Guide Card */
.ble-guide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.ble-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ble-guide-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ble-guide-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ble-guide-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ble-guide-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   37. VIDEO ASPECT RATIO & BITRATE FILE SIZE CALCULATOR
   ========================================================================== */

.aspect-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Interactive Visual Aspect Preview Stage */
.aspect-stage-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.aspect-stage-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.aspect-badge-ratio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 6px 16px;
  border-radius: var(--border-radius-md);
}

.aspect-decimal-lbl {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--text-secondary);
}

.aspect-viewport-wrap {
  width: 100%;
  max-width: 600px;
  height: 320px;
  background: #060911;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  padding: 16px;
}

.aspect-screen-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.12));
  border: 2px solid #38bdf8;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Rule of Thirds Grid Overlay */
.aspect-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

.aspect-grid-lines::before,
.aspect-grid-lines::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
}

.aspect-grid-lines::before {
  top: 33.33%;
  bottom: 33.33%;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.aspect-grid-lines::after {
  left: 33.33%;
  right: 33.33%;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.4);
  border-right: 1px dashed rgba(255, 255, 255, 0.4);
}

.aspect-screen-dims {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.aspect-screen-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5f3fc;
  margin-top: 3px;
  position: relative;
  z-index: 2;
}

/* Quick Ratio Pills */
.aspect-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  width: 100%;
}

.aspect-pill-btn {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--border-radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aspect-pill-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.aspect-pill-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Dimension Inputs & Lock Link */
.aspect-calc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.aspect-inputs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.aspect-dim-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

.aspect-dim-lbl {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.aspect-input-wrap {
  display: flex;
  align-items: center;
  background: #090d16;
  border: 1.5px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 8px 14px;
  transition: border-color 0.2s;
}

.aspect-input-wrap:focus-within {
  border-color: #38bdf8;
}

.aspect-num-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  width: 100%;
}

.aspect-unit-badge {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--text-tertiary);
}

.aspect-lock-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 22px;
}

.aspect-lock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.aspect-lock-btn.locked {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Common Resolution Presets Grid */
.aspect-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.aspect-res-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.aspect-res-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.aspect-res-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.aspect-res-val {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--text-tertiary);
}

/* Video Bitrate & File Size Estimator */
.aspect-bitrate-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.aspect-codec-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.aspect-codec-btn {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--border-radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.aspect-codec-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.aspect-codec-btn.active {
  background: rgba(129, 140, 248, 0.15);
  border-color: #818cf8;
  color: #a5b4fc;
}

.aspect-bitrate-params {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .aspect-bitrate-params {
    grid-template-columns: 1fr;
  }
}

.aspect-param-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aspect-param-lbl {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.aspect-param-select,
.aspect-param-input {
  background: #090d16;
  border: 1.5px solid var(--card-border);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  width: 100%;
}

.aspect-param-select:focus,
.aspect-param-input:focus {
  border-color: #818cf8;
}

/* File Size Result Banner */
.aspect-filesize-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.aspect-filesize-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.aspect-filesize-val {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.aspect-filesize-unit {
  font-size: 16px;
  color: #38bdf8;
  font-weight: 600;
}

.aspect-data-rate {
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Telemetry & Metrics (Right Card) */
.aspect-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .aspect-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.aspect-metric-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.aspect-metric-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.aspect-metric-lbl {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aspect-metric-lbl i {
  color: #38bdf8;
}

.aspect-metric-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Crop & Letterbox Comparison Table */
.aspect-table-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.aspect-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.aspect-compare-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aspect-compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.aspect-compare-table tr:last-child td {
  border-bottom: none;
}

.aspect-compare-table td.highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   38. HEIC TO JPG & PNG BATCH CONVERTER
   ========================================================================== */

.heic-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Glassmorphic Dropzone */
.heic-dropzone {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--border-radius-xl);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  cursor: pointer;
}

.heic-dropzone:hover,
.heic-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.heic-drop-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #38bdf8;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
  animation: floatSlow 4s ease-in-out infinite;
}

.heic-drop-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.heic-drop-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.heic-drop-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.heic-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.heic-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heic-pill i {
  color: #38bdf8;
}

/* Conversion Settings Toolbar */
.heic-toolbar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 22px 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .heic-toolbar-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.heic-toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.heic-toolbar-lbl {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.heic-format-pills {
  display: flex;
  gap: 6px;
  background: #090d16;
  padding: 4px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
}

.heic-format-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.heic-format-btn:hover {
  color: var(--text-primary);
}

.heic-format-btn.active {
  background: #38bdf8;
  color: #04121e;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

.heic-quality-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heic-quality-slider {
  flex: 1;
  accent-color: #38bdf8;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.heic-quality-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  min-width: 44px;
  text-align: right;
}

/* File Queue Card */
.heic-queue-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.heic-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.heic-queue-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.heic-queue-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.heic-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.heic-queue-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  transition: all 0.2s;
}

@media (max-width: 600px) {
  .heic-queue-item {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
}

.heic-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #060911;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.heic-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heic-item-thumb i {
  font-size: 20px;
  color: #38bdf8;
}

.heic-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.heic-item-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heic-item-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.heic-item-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.heic-item-status.pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.heic-item-status.converting {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.heic-item-status.done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.heic-item-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.heic-item-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.heic-item-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  width: 0%;
  transition: width 0.2s linear;
}

.heic-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.heic-btn-download-single {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.heic-btn-download-single:hover {
  background: #38bdf8;
  color: #04121e;
}

.heic-btn-remove {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  font-size: 13px;
  transition: color 0.2s;
}

.heic-btn-remove:hover {
  color: #f87171;
}

/* Empty Queue State */
.heic-queue-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13.5px;
}

.heic-queue-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Real-Time Telemetry Counters */
.heic-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .heic-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.heic-metric-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.heic-metric-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.heic-metric-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.heic-metric-lbl i {
  color: #38bdf8;
}

.heic-metric-val {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

/* HEIC vs JPEG Format Breakdown Card */
.heic-compare-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.heic-tech-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .heic-tech-specs {
    grid-template-columns: 1fr;
  }
}

.heic-spec-box {
  background: #090d16;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
}

.heic-spec-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heic-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.heic-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.heic-spec-list li i {
  margin-top: 3px;
  font-size: 11px;
}

/* ==========================================================================
   39. SOCIAL MEDIA SAFE ZONE PREVIEWER & UI OVERLAY
   ========================================================================== */

.safe-zone-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Stage Card with Responsive Smartphone Frame */
.safe-zone-stage-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.safe-zone-phone-wrap {
  width: 100%;
  max-width: 320px;
  height: 568px;
  background: #000;
  border: 10px solid #1b2234;
  border-radius: 46px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
  user-select: none;
}

/* iPhone Dynamic Island */
.safe-zone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  background: #000;
  border-radius: 18px;
  z-index: 30;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Media Element (Video / Image / Canvas) */
.safe-zone-media-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060911;
  z-index: 1;
}

.safe-zone-media-viewport video,
.safe-zone-media-viewport img,
.safe-zone-media-viewport canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Safe Zone Wireframe Hazard Guide */
.safe-zone-wireframe-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  opacity: var(--safe-wireframe-opacity, 1);
  transition: opacity 0.25s ease;
}

.safe-zone-top-danger {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background: repeating-linear-gradient(45deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.15) 10px, rgba(239, 68, 68, 0.05) 10px, rgba(239, 68, 68, 0.05) 20px);
  border-bottom: 1.5px dashed #ef4444;
  display: flex;
  align-items: flex-end;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.safe-zone-right-danger {
  position: absolute;
  top: 15%;
  right: 0;
  width: 25%;
  height: 60%;
  background: repeating-linear-gradient(45deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.15) 10px, rgba(245, 158, 11, 0.05) 10px, rgba(245, 158, 11, 0.05) 20px);
  border-left: 1.5px dashed #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-size: 9.5px;
  font-weight: 700;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.safe-zone-bottom-danger {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: repeating-linear-gradient(45deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.15) 10px, rgba(239, 68, 68, 0.05) 10px, rgba(239, 68, 68, 0.05) 20px);
  border-top: 1.5px dashed #ef4444;
  display: flex;
  align-items: flex-start;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.safe-zone-center-box {
  position: absolute;
  top: 15%;
  left: 5%;
  width: 70%;
  height: 60%;
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Realistic Social Media UI Overlay */
.safe-zone-social-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  opacity: var(--safe-ui-opacity, 0.85);
  transition: opacity 0.2s ease;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px 14px;
}

/* Top Bar Mock */
.safe-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.safe-overlay-tabs {
  display: flex;
  gap: 12px;
  margin: 0 auto;
}

.safe-overlay-tab {
  opacity: 0.65;
}

.safe-overlay-tab.active {
  opacity: 1;
  font-weight: 800;
  position: relative;
}

.safe-overlay-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Right Stack Mock */
.safe-overlay-right-stack {
  position: absolute;
  right: 10px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.safe-overlay-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.safe-overlay-action-btn i {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.safe-overlay-action-btn span {
  font-size: 10px;
  font-weight: 700;
}

.safe-overlay-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  margin-bottom: 4px;
}

.safe-overlay-avatar-plus {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.safe-overlay-disc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  border: 6px solid #222;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  animation: spinSlow 6s linear infinite;
}

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

/* Bottom Caption & Nav Mock */
.safe-overlay-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 72%;
  padding-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.safe-overlay-username {
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.safe-overlay-caption {
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.safe-overlay-music {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

/* Platform Navigation Bar (TikTok Bottom Tabs) */
.safe-overlay-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 9.5px;
  font-weight: 600;
  padding: 0 4px;
}

.safe-overlay-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.7;
}

.safe-overlay-nav-item.active {
  opacity: 1;
}

.safe-overlay-plus-btn {
  width: 32px;
  height: 22px;
  background: #fff;
  border-radius: 6px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: -2px 0 0 #06b6d4, 2px 0 0 #ef4444;
}

/* Platform & Overlay Control Deck */
.safe-zone-controls-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.safe-zone-platform-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.safe-platform-btn {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.safe-platform-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.safe-platform-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.safe-zone-slider-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 600px) {
  .safe-zone-slider-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.safe-slider-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.safe-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.safe-range-input {
  accent-color: #38bdf8;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
}

/* Upload & Actions Bar */
.safe-zone-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}

/* Metrics & Telemetry Grid */
.safe-zone-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .safe-zone-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.safe-metric-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.safe-metric-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.safe-metric-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.safe-metric-lbl i {
  color: #38bdf8;
}

.safe-metric-val {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Platform Dimensions Matrix Table */
.safe-zone-table-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.safe-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.safe-matrix-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.safe-matrix-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.safe-matrix-table tr:last-child td {
  border-bottom: none;
}

.safe-matrix-table td.highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   40. VIDEO AUDIO EXTRACTOR STYLES (audio-extractor.html)
   ========================================================================== */

.audio-ext-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Privacy Guarantee Banner */
.audio-ext-privacy-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.85rem;
  line-height: 1.45;
}

.audio-ext-privacy-badge i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Dropzone */
.audio-ext-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.audio-ext-dropzone:hover,
.audio-ext-dropzone.drag-active {
  background: rgba(99, 102, 241, 0.06);
  border-color: #818cf8;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.audio-ext-dropzone-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #c084fc;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
  transition: transform 0.3s ease;
}

.audio-ext-dropzone:hover .audio-ext-dropzone-icon {
  transform: scale(1.08) translateY(-2px);
}

.audio-ext-dropzone-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.audio-ext-dropzone-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.audio-ext-dropzone-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.audio-ext-format-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
}

.audio-ext-dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.audio-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.audio-ext-btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.audio-ext-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.audio-ext-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.audio-ext-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* File Input Hidden */
.audio-ext-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

/* Editor Workspace (hidden until file loaded) */
.audio-ext-workspace {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeInAudio 0.35s ease forwards;
}

.audio-ext-workspace.active {
  display: flex;
}

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

/* Video Sync Card & Waveform Stage */
.audio-ext-media-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audio-ext-media-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.audio-ext-file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-ext-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 1.1rem;
}

.audio-ext-file-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audio-ext-file-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-ext-file-details {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.audio-ext-video-preview-wrap {
  width: 100%;
  max-height: 220px;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-ext-video-el {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

/* Waveform Canvas Viewport */
.audio-ext-waveform-shell {
  position: relative;
  width: 100%;
  height: 128px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
}

.audio-ext-waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.audio-ext-playhead-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  pointer-events: none;
  left: 0%;
  transition: transform 0.05s linear;
  z-index: 4;
}

.audio-ext-playhead-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  background: #f43f5e;
  border-radius: 50%;
}

.audio-ext-trim-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(99, 102, 241, 0.22);
  border-left: 2px solid #818cf8;
  border-right: 2px solid #818cf8;
  pointer-events: none;
  z-index: 3;
}

.audio-ext-waveform-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 10;
}

.audio-ext-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(99, 102, 241, 0.25);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spinAudio 0.8s linear infinite;
}

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

/* Playback & Scrub Bar */
.audio-ext-playback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.audio-ext-playback-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-ext-round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.audio-ext-round-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.audio-ext-round-btn.primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.audio-ext-round-btn.primary:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55);
}

.audio-ext-timecode {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.audio-ext-timecode-total {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Trimming Preset Pills */
.audio-ext-presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audio-ext-presets-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-right: 4px;
}

.audio-ext-pill-btn {
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-ext-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.audio-ext-pill-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #818cf8;
  color: #a5b4fc;
}

/* Trim Range Inputs Card */
.audio-ext-trim-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  .audio-ext-trim-card {
    grid-template-columns: 1fr;
  }
}

.audio-ext-range-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-ext-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.audio-ext-range-val {
  font-family: monospace;
  color: var(--text-primary);
}

.audio-ext-slider {
  width: 100%;
  accent-color: #818cf8;
  cursor: pointer;
}

/* Audio Output Configuration Matrix */
.audio-ext-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.audio-ext-option-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audio-ext-option-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-ext-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.audio-ext-select:focus {
  border-color: #818cf8;
}

.audio-ext-select option {
  background: #0f172a;
  color: #fff;
}

/* Volume Boost & Normalize */
.audio-ext-volume-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-ext-gain-slider {
  flex: 1;
  accent-color: #38bdf8;
  cursor: pointer;
}

.audio-ext-gain-val {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: #38bdf8;
  min-width: 48px;
  text-align: right;
}

/* Toggle Switch */
.audio-ext-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.audio-ext-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.audio-ext-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.audio-ext-slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 22px;
}

.audio-ext-slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.audio-ext-switch input:checked + .audio-ext-slider-round {
  background-color: #10b981;
}

.audio-ext-switch input:checked + .audio-ext-slider-round:before {
  transform: translateX(16px);
}

/* Telemetry & Summary Matrix */
.audio-ext-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .audio-ext-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audio-ext-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-ext-stat-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.audio-ext-stat-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

/* Action Execution Bar */
.audio-ext-action-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

.audio-ext-extract-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  font-family: inherit;
}

.audio-ext-extract-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.55);
}

.audio-ext-extract-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Progress Bar */
.audio-ext-progress-wrap {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.audio-ext-progress-wrap.active {
  display: flex;
}

.audio-ext-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.audio-ext-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.audio-ext-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #38bdf8);
  border-radius: 4px;
  transition: width 0.15s ease;
}

/* Success Download Card */
.audio-ext-success-box {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: fadeInAudio 0.3s ease forwards;
}

.audio-ext-success-box.active {
  display: flex;
}

.audio-ext-success-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-ext-success-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.audio-ext-success-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #a7f3d0;
}

.audio-ext-success-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.audio-ext-download-again-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #10b981;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-ext-download-again-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   41. VIDEO SPEED CONTROLLER STYLES (video-speed.html)
   ========================================================================== */

.vspeed-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Privacy Guarantee Banner */
.vspeed-privacy-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.85rem;
  line-height: 1.45;
}

.vspeed-privacy-badge i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Dropzone */
.vspeed-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.vspeed-dropzone:hover,
.vspeed-dropzone.drag-active {
  background: rgba(56, 189, 248, 0.06);
  border-color: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

.vspeed-dropzone-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #38bdf8;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
  transition: transform 0.3s ease;
}

.vspeed-dropzone:hover .vspeed-dropzone-icon {
  transform: scale(1.08) translateY(-2px);
}

.vspeed-dropzone-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.vspeed-dropzone-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.vspeed-dropzone-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.vspeed-format-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
}

.vspeed-dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.vspeed-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.vspeed-btn-primary {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.vspeed-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.vspeed-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.vspeed-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.vspeed-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

/* Workspace */
.vspeed-workspace {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeInSpeed 0.35s ease forwards;
}

.vspeed-workspace.active {
  display: flex;
}

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

/* Player Stage Card */
.vspeed-player-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vspeed-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.vspeed-file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vspeed-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.1rem;
}

.vspeed-file-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vspeed-file-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vspeed-file-details {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Video Stage Viewport */
.vspeed-viewport-shell {
  position: relative;
  width: 100%;
  max-height: 420px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vspeed-video-el {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

/* Floating Speed Indicator Badge */
.vspeed-overlay-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  z-index: 5;
}

/* Playback Control Bar */
.vspeed-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vspeed-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vspeed-round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.vspeed-round-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.vspeed-round-btn.primary {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border: none;
  color: #fff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.vspeed-round-btn.primary:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.55);
}

.vspeed-frame-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vspeed-frame-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.vspeed-timecode {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.vspeed-timecode-total {
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

/* Scrub Bar */
.vspeed-scrub-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vspeed-scrub-slider {
  flex: 1;
  accent-color: #38bdf8;
  cursor: pointer;
}

/* Speed Selection Section */
.vspeed-settings-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vspeed-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vspeed-speed-val-badge {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.vspeed-speed-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

/* Presets Row */
.vspeed-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vspeed-preset-btn {
  flex: 1;
  min-width: 60px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.vspeed-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.vspeed-preset-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* Toggles & Options Row */
.vspeed-toggles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vspeed-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vspeed-toggle-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vspeed-toggle-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Switch */
.vspeed-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.vspeed-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.vspeed-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 22px;
}

.vspeed-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.vspeed-switch input:checked + .vspeed-switch-slider {
  background-color: #0284c7;
}

.vspeed-switch input:checked + .vspeed-switch-slider:before {
  transform: translateX(16px);
}

/* Telemetry & Duration Math Matrix */
.vspeed-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .vspeed-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vspeed-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vspeed-stat-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.vspeed-stat-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

.vspeed-stat-val.highlight {
  color: #38bdf8;
}

/* Export Bar */
.vspeed-export-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

.vspeed-export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
  font-family: inherit;
}

.vspeed-export-btn:hover {
  background: linear-gradient(135deg, #0369a1, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(2, 132, 199, 0.55);
}

.vspeed-export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Export Progress */
.vspeed-progress-wrap {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.vspeed-progress-wrap.active {
  display: flex;
}

.vspeed-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.vspeed-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vspeed-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #a855f7);
  border-radius: 4px;
  transition: width 0.15s ease;
}

/* Export Success Box */
.vspeed-success-box {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: fadeInSpeed 0.3s ease forwards;
}

.vspeed-success-box.active {
  display: flex;
}

.vspeed-success-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vspeed-success-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.vspeed-success-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #a7f3d0;
}

.vspeed-success-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.vspeed-download-again-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #10b981;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vspeed-download-again-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   42. SLEEP CYCLE & REM CALCULATOR STYLES (sleep-cycle-calculator.html)
   ========================================================================== */

.sleep-calc-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Chronobiology Header Banner */
.sleep-bio-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.85rem;
  line-height: 1.45;
}

.sleep-bio-banner i {
  font-size: 1.15rem;
  color: #818cf8;
  flex-shrink: 0;
}

/* Calculation Mode Navigation Tabs */
.sleep-mode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sleep-mode-btn {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.sleep-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sleep-mode-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

/* Time Input Card */
.sleep-input-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sleep-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sleep-input-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
}

.sleep-time-picker-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sleep-time-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 16px;
}

.sleep-time-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.sleep-time-select option {
  background: #0f172a;
  color: #fff;
}

.sleep-time-colon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  color: var(--text-tertiary);
  font-weight: 700;
}

.sleep-ampm-btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c084fc;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sleep-ampm-btn:hover {
  background: rgba(99, 102, 241, 0.3);
}

.sleep-quick-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sleep-quick-now-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}

/* Secondary Parameters Row */
.sleep-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sleep-param-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sleep-param-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sleep-param-val {
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  font-weight: 700;
}

.sleep-param-slider {
  width: 100%;
  accent-color: #818cf8;
  cursor: pointer;
}

/* Results: Cycle Recommendations Grid */
.sleep-results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sleep-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sleep-results-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.sleep-cycle-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.sleep-cycle-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sleep-cycle-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.sleep-cycle-card.recommended {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.sleep-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
}

.sleep-cycle-card.recommended .sleep-card-badge {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.sleep-target-time {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
}

.sleep-cycle-card.recommended .sleep-target-time {
  color: #c084fc;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.sleep-cycle-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sleep Architecture Micro-Bar */
.sleep-arch-bar {
  display: flex;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.sleep-arch-seg {
  height: 100%;
}

.sleep-arch-seg.light { background: #38bdf8; }
.sleep-arch-seg.deep { background: #6366f1; }
.sleep-arch-seg.rem { background: #a855f7; }

.sleep-card-desc {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

/* Interactive Ultradian Hypnogram Visualizer */
.sleep-hypnogram-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sleep-hypno-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sleep-hypno-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sleep-hypno-legend {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sleep-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.sleep-hypno-canvas-wrap {
  width: 100%;
  height: 140px;
  background: rgba(10, 14, 26, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.sleep-hypno-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Power Nap Cards */
.sleep-nap-section {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.sleep-nap-section.active {
  display: flex;
}

.sleep-nap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.sleep-nap-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.sleep-nap-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sleep-nap-alarm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #38bdf8;
}

.sleep-nap-benefit {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Telemetry Matrix */
.sleep-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .sleep-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sleep-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sleep-stat-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.sleep-stat-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

/* ==========================================================================
   43. TDEE & MACRO NUTRIENT SPLIT CALCULATOR STYLES (tdee-calculator.html)
   ========================================================================== */

.tdee-calc-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Unit and Mode Selectors */
.tdee-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
}

.tdee-unit-pill-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.tdee-unit-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tdee-unit-btn:hover {
  color: var(--text-primary);
}

.tdee-unit-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.25));
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Biological Gender Selector */
.tdee-gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tdee-gender-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tdee-gender-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.tdee-gender-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
  border-color: rgba(129, 140, 248, 0.5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
}

.tdee-gender-btn.active i {
  color: #818cf8;
}

/* Numeric Parameters Grid */
.tdee-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .tdee-fields-grid {
    grid-template-columns: 1fr;
  }
}

.tdee-field-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tdee-field-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.tdee-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tdee-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 9px 34px 9px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  transition: all 0.2s ease;
}

.tdee-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.tdee-input-unit {
  position: absolute;
  right: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* Height Imperial Split (ft + in) */
.tdee-height-imperial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Body Fat Toggle & Slider */
.tdee-bodyfat-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.tdee-bodyfat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.tdee-bodyfat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tdee-checkbox-custom {
  position: relative;
  width: 18px;
  height: 18px;
  accent-color: #818cf8;
  cursor: pointer;
}

.tdee-bodyfat-slider-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tdee-bodyfat-slider-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.tdee-bodyfat-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #818cf8;
}

/* Activity Level Grid */
.tdee-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tdee-activity-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tdee-activity-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tdee-activity-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.tdee-activity-card.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
}

.tdee-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  font-size: 1rem;
  flex-shrink: 0;
}

.tdee-activity-card.active .tdee-activity-icon {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}

.tdee-activity-details {
  flex: 1;
  min-width: 0;
}

.tdee-activity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tdee-activity-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tdee-activity-mult {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.tdee-activity-card.active .tdee-activity-mult {
  background: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
}

.tdee-activity-sub {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fitness Goals Grid */
.tdee-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 600px) {
  .tdee-goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tdee-goal-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tdee-goal-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.tdee-goal-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.tdee-goal-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tdee-goal-tag {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}

.tdee-goal-tag.cut {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.tdee-goal-tag.maint {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.tdee-goal-tag.bulk {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

/* Macro Strategy Presets */
.tdee-macro-strategy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 4px;
}

.tdee-macro-tab {
  flex: 1;
  min-width: 90px;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tdee-macro-tab:hover {
  color: var(--text-primary);
}

.tdee-macro-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* Custom Macro Slider Section */
.tdee-custom-macros {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tdee-custom-slider-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tdee-custom-slider-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESULTS CARD STYLING (Right Column)
   ========================================================================== */

.tdee-results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Target Box */
.tdee-hero-stat-card {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.tdee-hero-stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.tdee-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tdee-hero-kcal-display {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 8px 0;
  text-shadow: 0 0 25px rgba(129, 140, 248, 0.35);
  letter-spacing: -0.02em;
}

.tdee-hero-kcal-display span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.tdee-hero-formula-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tdee-pill-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #c7d2fe;
}

/* Macro Segmented Glowing Bar */
.tdee-macro-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tdee-macro-bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.tdee-macro-bar-track {
  height: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tdee-macro-seg {
  height: 100%;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tdee-macro-seg.protein {
  background: linear-gradient(90deg, #06b6d4, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.tdee-macro-seg.fat {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.tdee-macro-seg.carbs {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* 3 Macro Cards Grid */
.tdee-macro-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 650px) {
  .tdee-macro-cards-grid {
    grid-template-columns: 1fr;
  }
}

.tdee-macro-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.tdee-macro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.tdee-macro-card.protein::before {
  background: linear-gradient(90deg, #06b6d4, #38bdf8);
}

.tdee-macro-card.fat::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tdee-macro-card.carbs::before {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.tdee-macro-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.tdee-macro-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tdee-macro-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tdee-macro-card.protein .tdee-macro-title { color: #38bdf8; }
.tdee-macro-card.fat .tdee-macro-title { color: #fbbf24; }
.tdee-macro-card.carbs .tdee-macro-title { color: #c084fc; }

.tdee-macro-percent-pill {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.tdee-macro-grams {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.tdee-macro-grams span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.tdee-macro-sub-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.tdee-macro-sub-stats div {
  display: flex;
  justify-content: space-between;
}

/* Energy Decomposition Matrix (BMR, NEAT, TEF, EAT) */
.tdee-decomp-section {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
}

.tdee-decomp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .tdee-decomp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tdee-decomp-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tdee-decomp-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.tdee-decomp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tdee-decomp-desc {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* Meal Distribution Planner */
.tdee-meal-planner-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
}

.tdee-meal-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tdee-meal-pills {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.tdee-meal-pill-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tdee-meal-pill-btn.active {
  background: rgba(129, 140, 248, 0.25);
  color: #fff;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.tdee-meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.tdee-meal-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tdee-meal-box-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.tdee-meal-kcal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #818cf8;
}

.tdee-meal-macros {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Zig-Zag Calorie Cycling */
.tdee-zigzag-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
}

.tdee-zigzag-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .tdee-zigzag-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tdee-zigzag-day {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tdee-zigzag-day.workout {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.05);
}

.tdee-zigzag-day.rest {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.04);
}

.tdee-zigzag-day-name {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.tdee-zigzag-day-type {
  font-size: 0.62rem;
  font-weight: 600;
}

.tdee-zigzag-day.workout .tdee-zigzag-day-type { color: #38bdf8; }
.tdee-zigzag-day.rest .tdee-zigzag-day-type { color: #c084fc; }

.tdee-zigzag-day-kcal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Copy Nutrition Plan Action */
.tdee-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tdee-copy-plan-btn {
  flex: 1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tdee-copy-plan-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.25));
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.tdee-copy-toast {
  display: none;
  font-size: 0.8rem;
  color: #4ade80;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ==========================================================================
   44. PREGNANCY DUE DATE & MILESTONES CALCULATOR (due-date-calculator.html)
   ========================================================================== */

.due-calc-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mode Selection Pills */
.due-mode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
}

.due-mode-btn {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.due-mode-btn:hover {
  color: var(--text-primary);
}

.due-mode-btn.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(168, 85, 247, 0.2));
  color: #fff;
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.2);
}

.due-mode-btn.active i {
  color: #fb7185;
}

/* Input Fields Card */
.due-input-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.due-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.due-input-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.due-date-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s ease;
  color-scheme: dark;
}

.due-date-input:focus {
  outline: none;
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* Parikh Cycle Length Slider */
.due-cycle-length-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
}

.due-cycle-lbl-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.due-cycle-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #fb7185;
}

/* Secondary Inputs: Ultrasound Gestational Age */
.due-ultrasound-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* IVF Transfer Selection */
.due-ivf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.due-ivf-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.due-ivf-btn.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fff;
}

/* ==========================================================================
   RESULTS CARD STYLING (Right Column)
   ========================================================================== */

.due-results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero EDD Stat Card */
.due-hero-stat-card {
  position: relative;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.due-hero-stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.due-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fb7185;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.due-hero-edd-display {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 8px 0;
  text-shadow: 0 0 25px rgba(244, 63, 94, 0.35);
}

.due-hero-countdown-tag {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.due-pill-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #fbcfe8;
}

/* Gestational Progress Bar */
.due-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
}

.due-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.due-progress-track {
  height: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.due-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #c084fc, #38bdf8);
  border-radius: 7px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.due-trimesters-row {
  display: grid;
  grid-template-columns: 12fr 15fr 13fr;
  gap: 4px;
  margin-top: 4px;
}

.due-tri-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  padding: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-tertiary);
}

.due-tri-label.current {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  font-weight: 700;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Fetal Size & Development Card */
.due-fetal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.due-fetal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(244, 63, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.due-fetal-info {
  flex: 1;
  min-width: 0;
}

.due-fetal-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fb7185;
  letter-spacing: 0.04em;
}

.due-fetal-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0 4px;
}

.due-fetal-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.due-fetal-dimensions span strong {
  color: var(--text-primary);
}

/* Clinical Telemetry Grid */
.due-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .due-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.due-telem-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.due-telem-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.due-telem-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.due-telem-sub {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

/* Milestones Timeline */
.due-timeline-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px;
}

.due-timeline-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.due-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.due-milestone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.due-milestone-item.passed {
  opacity: 0.6;
}

.due-milestone-item.current {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(168, 85, 247, 0.1));
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.15);
  opacity: 1;
}

.due-milestone-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.due-milestone-item.current .due-milestone-icon {
  background: #f43f5e;
  color: #fff;
}

.due-milestone-item.passed .due-milestone-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.due-milestone-body {
  flex: 1;
  min-width: 0;
}

.due-milestone-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}

.due-milestone-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.due-milestone-desc {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}

/* ==========================================================================
   45. WI-FI QR CODE GENERATOR & PRINTABLE GUEST CARD (wifi-qr-code.html)
   ========================================================================== */

.wifi-tool-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form Groups & Inputs */
.wifi-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wifi-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wifi-label-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.wifi-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wifi-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-tertiary);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.wifi-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.wifi-input:focus {
  outline: none;
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.wifi-input:focus ~ .wifi-input-icon {
  color: #00f2fe;
}

.wifi-toggle-pass-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.wifi-toggle-pass-btn:hover {
  color: var(--text-primary);
}

/* Security Selector Pills */
.wifi-pills {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wifi-pill-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wifi-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.wifi-pill-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.15));
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.15);
}

/* Password Strength Meter */
.wifi-strength-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.wifi-strength-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.wifi-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.wifi-strength-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.wifi-strength-score {
  font-weight: 600;
  text-transform: capitalize;
}

/* Checkbox Toggle Row */
.wifi-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.wifi-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wifi-toggle-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.wifi-toggle-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* Switch UI */
.wifi-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.wifi-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wifi-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s ease;
  border-radius: 22px;
}

.wifi-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s ease;
  border-radius: 50%;
}

.wifi-switch input:checked + .wifi-slider {
  background-color: #00f2fe;
}

.wifi-switch input:checked + .wifi-slider:before {
  transform: translateX(18px);
}

/* Section Divider */
.wifi-sub-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 700;
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wifi-sub-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Color Presets */
.wifi-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wifi-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.wifi-swatch-btn:hover {
  transform: scale(1.12);
}

.wifi-swatch-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.6);
  transform: scale(1.1);
}

.wifi-custom-color-input {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
}

.wifi-custom-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.wifi-custom-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

/* View Mode Switcher (Above Right Card) */
.wifi-view-nav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.wifi-view-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wifi-view-btn:hover {
  color: var(--text-primary);
}

.wifi-view-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card Theme Picker */
.wifi-theme-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.wifi-theme-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.wifi-theme-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.wifi-theme-btn.active {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
}

/* Stage Area: Live QR & Card Display */
.wifi-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  min-height: 380px;
}

/* Direct QR Mode Stage */
.wifi-qr-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wifi-qr-target {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wifi-qr-target.bg-dark {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wifi-qr-target.bg-white {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.wifi-qr-target.bg-transparent {
  background-image: linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
                    linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.06) 75%),
                    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.06) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

#wifi-qr-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Corner Viewfinder Guides */
.wifi-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #00f2fe;
  pointer-events: none;
}

.wifi-corner-tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.wifi-corner-tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
.wifi-corner-bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
.wifi-corner-br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

/* Table Tent / Guest Card Mockup */
.wifi-guest-card {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s ease;
}

/* Card Theme: Dark Glass */
.wifi-guest-card.theme-dark {
  background: linear-gradient(145deg, rgba(20, 27, 45, 0.85), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.12);
  color: #f1f5f9;
}

.wifi-guest-card.theme-dark .wcard-badge {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.wifi-guest-card.theme-dark .wcard-qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.wifi-guest-card.theme-dark .wcard-meta-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Card Theme: Modern Minimalist White */
.wifi-guest-card.theme-white {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

.wifi-guest-card.theme-white .wcard-badge {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.wifi-guest-card.theme-white .wcard-title {
  color: #0f172a;
}

.wifi-guest-card.theme-white .wcard-sub {
  color: #64748b;
}

.wifi-guest-card.theme-white .wcard-qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wifi-guest-card.theme-white .wcard-meta-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.wifi-guest-card.theme-white .wcard-footer-note {
  color: #94a3b8;
}

/* Card Theme: Boutique Hospitality (Sand / Gold) */
.wifi-guest-card.theme-hospitality {
  background: linear-gradient(145deg, #fdfbf7, #f7f2e7);
  border: 1px solid #e7dcce;
  box-shadow: 0 20px 45px rgba(60, 40, 20, 0.12);
  color: #292524;
}

.wifi-guest-card.theme-hospitality .wcard-badge {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.wifi-guest-card.theme-hospitality .wcard-title {
  color: #1c1917;
  font-family: 'Outfit', sans-serif;
}

.wifi-guest-card.theme-hospitality .wcard-sub {
  color: #78716c;
}

.wifi-guest-card.theme-hospitality .wcard-qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e7dcce;
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.08);
}

.wifi-guest-card.theme-hospitality .wcard-meta-pill {
  background: #ffffff;
  border: 1px solid #e7dcce;
  color: #44403c;
}

.wifi-guest-card.theme-hospitality .wcard-footer-note {
  color: #a8a29e;
}

/* Inside Card Elements */
.wcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wcard-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.wcard-sub {
  font-size: 0.78rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.wcard-qr-box {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcard-qr-box canvas {
  width: 170px !important;
  height: 170px !important;
  display: block;
}

.wcard-credentials {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.wcard-meta-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  text-align: left;
}

.wcard-meta-lbl {
  font-weight: 500;
  opacity: 0.75;
}

.wcard-meta-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.wcard-footer-note {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

/* Raw URI Drawer / Box */
.wifi-uri-box {
  width: 100%;
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wifi-uri-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.wifi-uri-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wifi-uri-copy-btn:hover {
  background: #00f2fe;
  color: #0b0f19;
}

/* Action Buttons Grid */
.wifi-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.wifi-btn-primary {
  grid-column: 1 / -1;
  padding: 14px 20px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #0b0f19;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.25);
}

.wifi-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.wifi-btn-secondary {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wifi-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Security & Scanning Telemetry Chips */
.wifi-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  width: 100%;
}

.wifi-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.wifi-chip i {
  font-size: 0.7rem;
}

.wifi-chip.green {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.wifi-chip.cyan {
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.2);
}

/* Printable Tent Layout (Hidden on screen, revealed in print mode) */
.wifi-print-tent-wrapper {
  display: none;
}

/* ==========================================================================
   PRINT MEDIA RULES (Clean Foldable Table Tent Card)
   ========================================================================== */
@media print {
  /* Hide all website chrome, hero, inputs, FAQs, footer */
  body * {
    visibility: hidden;
  }

  .wifi-print-tent-wrapper,
  .wifi-print-tent-wrapper * {
    visibility: visible;
  }

  .wifi-print-tent-wrapper {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 20mm;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  }

  .print-tent-container {
    max-width: 520px;
    margin: 0 auto;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
  }

  .print-tent-panel {
    padding: 30px 24px;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .print-tent-fold-line {
    border-top: 2px dashed #64748b;
    margin: 20px 0;
    position: relative;
    text-align: center;
  }

  .print-tent-fold-line span {
    position: relative;
    top: -10px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .print-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
  }

  .print-subtitle {
    font-size: 13px;
    color: #475569;
    margin-bottom: 18px;
  }

  .print-qr-img {
    width: 180px;
    height: 180px;
    margin-bottom: 18px;
  }

  .print-meta-box {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 12px;
    background: #f8fafc;
  }

  .print-meta-line {
    margin: 4px 0;
  }

  .print-instructions {
    font-size: 11px;
    color: #64748b;
  }

  .print-cut-guides {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    margin-top: 14px;
  }
}

/* ==========================================================================
   46. AMBIENT NOISE & SOUND GENERATOR (ambient-noise.html)
   ========================================================================== */

.ambient-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Master Hero Control Header */
.ambient-master-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.ambient-master-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe, #a855f7, #ec4899);
  opacity: 0.6;
}

.ambient-master-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Master Play/Pause Button */
.ambient-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #0b0f19;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  position: relative;
  flex-shrink: 0;
}

.ambient-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(0, 242, 254, 0.5);
}

.ambient-play-btn.playing {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
  animation: ambientPulse 2s infinite ease-in-out;
}

@keyframes ambientPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.ambient-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ambient-status-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ambient-status-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ambient-status-badge.stopped {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
}

.ambient-status-badge.playing {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.ambient-status-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Master Volume Slider */
.ambient-master-vol {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.ambient-vol-icon {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Presets Carousel / Grid */
.ambient-presets-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ambient-preset-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ambient-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.ambient-preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.1));
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.15);
}

/* Real-Time Spectrum Visualizer */
.ambient-visualizer-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ambient-visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ambient-vis-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ambient-vis-mode-pills {
  display: flex;
  gap: 4px;
}

.ambient-vis-mode-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ambient-vis-mode-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-weight: 600;
}

#ambient-spectrum-canvas {
  width: 100%;
  height: 120px;
  display: block;
  border-radius: 8px;
}

/* Sound Color Selector Cards */
.ambient-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ambient-color-card {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  text-align: left;
}

.ambient-color-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.ambient-color-card.active {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.15);
}

.ambient-color-card.active.color-white { border-color: #cbd5e1; background: rgba(255, 255, 255, 0.1); }
.ambient-color-card.active.color-pink { border-color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.ambient-color-card.active.color-brown { border-color: #d97706; background: rgba(217, 119, 6, 0.12); }
.ambient-color-card.active.color-green { border-color: #34d399; background: rgba(52, 211, 153, 0.1); }

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

.ambient-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ambient-color-slope {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.ambient-color-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ambient-color-desc {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

/* Multi-Track Mixer Grid */
.ambient-mixer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ambient-track-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.ambient-track-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

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

.ambient-track-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ambient-track-icon {
  font-size: 0.9rem;
  color: #00f2fe;
}

.ambient-track-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Sliders */
.ambient-slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ambient-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.ambient-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

.ambient-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00f2fe;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  transition: transform 0.15s ease;
}

.ambient-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.ambient-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00f2fe;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

/* Sleep Timer Bar */
.ambient-timer-wrap {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ambient-timer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ambient-timer-icon {
  font-size: 1.2rem;
  color: #a855f7;
}

.ambient-timer-info {
  display: flex;
  flex-direction: column;
}

.ambient-timer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ambient-timer-state {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.ambient-timer-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ambient-timer-btn {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ambient-timer-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.ambient-timer-btn.active {
  border-color: #a855f7;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
}

/* Binaural Wave Selector */
.ambient-binaural-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.ambient-bin-btn {
  padding: 6px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ambient-bin-btn.active {
  border-color: #ec4899;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ambient-color-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ambient-mixer-grid {
    grid-template-columns: 1fr;
  }
  .ambient-master-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .ambient-master-left {
    justify-content: flex-start;
  }
  .ambient-master-vol {
    width: 100%;
  }
}

/* ==========================================================================
   47. Password Strength Checker, Entropy Estimator & CSPRNG Generator
   ========================================================================== */

.pwd-checker-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Master Input Wrapper */
.pwd-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwd-input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pwd-label-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwd-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: 20px;
}

/* Input Field with Inline Action Buttons */
.pwd-field-container {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.pwd-field-container:focus-within {
  border-color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.pwd-input-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 105px 16px 18px;
  color: #ffffff;
  font-size: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.pwd-input-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: normal;
  font-size: 14px;
}

.pwd-field-actions {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pwd-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.pwd-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Segmented Strength Meter */
.pwd-gauge-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 14px;
}

.pwd-gauge-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.pwd-gauge-segment {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Colors for Segments */
.pwd-gauge-segment.seg-1-active { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.pwd-gauge-segment.seg-2-active { background: #f97316; box-shadow: 0 0 8px rgba(249, 115, 22, 0.5); }
.pwd-gauge-segment.seg-3-active { background: #eab308; box-shadow: 0 0 8px rgba(234, 179, 8, 0.5); }
.pwd-gauge-segment.seg-4-active { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.pwd-gauge-segment.seg-5-active { background: #06b6d4; box-shadow: 0 0 10px rgba(6, 182, 212, 0.6); }

.pwd-gauge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pwd-strength-badge {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.pwd-meta-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.pwd-stat-val {
  font-weight: 700;
  color: #ffffff;
}

/* Character Composition Pills */
.pwd-composition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pwd-comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.pwd-comp-pill i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.pwd-comp-pill.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.pwd-comp-pill.active i {
  transform: scale(1.15);
}

/* Heuristics Warning / Alert Box */
.pwd-heuristics-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  transition: all 0.3s ease;
}

.pwd-heuristics-banner.status-idle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.pwd-heuristics-banner.status-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.pwd-heuristics-banner.status-warning {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fdba74;
}

.pwd-heuristics-banner.status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Divider */
.pwd-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0;
}

.pwd-divider::before, .pwd-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pwd-divider span {
  padding: 0 14px;
}

/* Generator Panel */
.pwd-gen-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.pwd-tab-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 10px;
  gap: 6px;
}

.pwd-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pwd-tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

/* Slider Controls */
.pwd-slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwd-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.pwd-slider-val {
  font-weight: 700;
  font-family: monospace;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.pwd-range-input {
  width: 100%;
  accent-color: #00f2fe;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

/* Options Grid */
.pwd-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pwd-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.pwd-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.pwd-checkbox-label input[type="checkbox"] {
  accent-color: #00f2fe;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Select Box for Diceware Separator */
.pwd-select-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* Output & Actions */
.pwd-output-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
}

.pwd-output-string {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14.5px;
  color: #00f2fe;
  overflow-x: auto;
  white-space: nowrap;
  letter-spacing: 0.5px;
  max-width: 100%;
}

.pwd-output-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwd-btn-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pwd-btn-sm:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
  color: #00f2fe;
}

.pwd-btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0b0f19;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.pwd-btn-primary:hover {
  background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(17, 153, 142, 0.4);
}

/* ==========================================================================
   Right Column: Attack Resistance Matrix & Hardware Crack Estimators
   ========================================================================== */

.pwd-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 4-Tier Hardware Grid */
.pwd-hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pwd-hw-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pwd-hw-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pwd-hw-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pwd-hw-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.pwd-hw-icon.icon-web { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.pwd-hw-icon.icon-api { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.pwd-hw-icon.icon-gpu { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.pwd-hw-icon.icon-super { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.pwd-hw-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwd-hw-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.pwd-hw-speed {
  font-size: 11.5px;
  color: var(--text-muted);
}

.pwd-hw-estimate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pwd-estimate-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.pwd-time-badge {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  word-break: break-word;
}

/* Crack Time Status Colors */
.pwd-time-critical { color: #ef4444; }
.pwd-time-warning { color: #f97316; }
.pwd-time-fair { color: #eab308; }
.pwd-time-good { color: #10b981; }
.pwd-time-unbreakable { color: #00f2fe; text-shadow: 0 0 12px rgba(0, 242, 254, 0.4); }

/* Cryptographic Specs Table */
.pwd-specs-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.pwd-specs-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwd-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pwd-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.pwd-spec-key {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.pwd-spec-val {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  font-family: monospace;
}

/* NIST SP 800-63B Compliance List */
.pwd-nist-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
}

.pwd-nist-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwd-nist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.pwd-nist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pwd-nist-item i {
  font-size: 11px;
}

.pwd-nist-item.pass i { color: #10b981; }
.pwd-nist-item.fail i { color: #ef4444; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .pwd-options-grid {
    grid-template-columns: 1fr;
  }
  .pwd-hardware-grid {
    grid-template-columns: 1fr;
  }
  .pwd-specs-grid {
    grid-template-columns: 1fr;
  }
  .pwd-output-container {
    flex-direction: column;
    align-items: stretch;
  }
  .pwd-output-actions {
    justify-content: flex-end;
  }
}

