:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-subtle: #f5f5f5;
  --text: #171717;
  --text-secondary: #525252;
  --text-muted: #737373;
  --text-faint: #a3a3a3;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --navbar-bg: rgba(255, 255, 255, 0.75);
  --tabbar-bg: rgba(255, 255, 255, 0.88);
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --indigo-600: #4f46e5;
  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #171717;
    --surface-subtle: #262626;
    --text: #fafafa;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --text-faint: #737373;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --navbar-bg: rgba(10, 10, 10, 0.75);
    --tabbar-bg: rgba(10, 10, 10, 0.88);
    --purple-50: rgba(147, 51, 234, 0.15);
    --purple-100: rgba(147, 51, 234, 0.25);
    --purple-600: #c084fc;
    --emerald-50: rgba(16, 185, 129, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Icons */
.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.icon-sm { width: 20px; height: 20px; flex-shrink: 0; }
.icon-md { width: 28px; height: 28px; flex-shrink: 0; }
.icon-lg { width: 38px; height: 38px; flex-shrink: 0; }
.icon-xl { width: 44px; height: 44px; flex-shrink: 0; }

/* Top Navbar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .navbar-container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .navbar-container { padding: 0 2rem; }
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(147, 51, 234, 0.2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.05);
}

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

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-gradient {
  background: linear-gradient(90deg, #9333ea, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-apple {
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 400;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

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

.nav-pill.active {
  background: var(--surface-subtle);
  color: var(--text);
  font-weight: 600;
}

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

.btn-suggest-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--purple-50);
  color: var(--purple-600);
  border: 1px solid var(--purple-100);
  transition: all 0.2s ease;
}

.btn-suggest-nav:hover {
  background: var(--purple-100);
}

.icon-btn {
  padding: 0.6rem;
  border-radius: 9999px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--purple-600);
  background: var(--purple-50);
}

/* Main Content Layout */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 6.5rem;
}

@media (min-width: 640px) {
  .main-container {
    padding: 2.5rem 1.5rem 6.5rem;
  }
}

@media (min-width: 768px) {
  .main-container {
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .main-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.view-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border);
  border-top-color: #9333ea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Featured Hero */
.featured-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #171717;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: transform 0.7s ease;
}

.featured-hero:hover .featured-hero-bg {
  transform: scale(1.05);
}

.featured-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 25%, rgba(0, 0, 0, 0.25) 0%, rgba(10, 10, 10, 0.85) 75%);
}

.featured-hero-symbol {
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.14;
  color: #ffffff;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.featured-hero:hover .featured-hero-symbol {
  transform: translateY(-50%) rotate(0deg) scale(1.06);
  opacity: 0.22;
}

.hero-watermark-svg {
  width: 14rem;
  height: 14rem;
}

@media (min-width: 768px) {
  .featured-hero-symbol {
    right: 2.5rem;
  }
  .hero-watermark-svg {
    width: 18rem;
    height: 18rem;
  }
}

.featured-hero-content {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .featured-hero-content { padding: 2.5rem; }
}

@media (min-width: 768px) {
  .featured-hero-content {
    flex-direction: row;
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  .featured-hero-content { padding: 3rem; }
}

.featured-hero-main {
  max-width: 36rem;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #93c5fd;
  margin-bottom: 1rem;
}

.featured-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.featured-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

@media (min-width: 640px) {
  .featured-name { font-size: 2.25rem; }
}

.featured-tagline {
  font-size: 0.875rem;
  color: #d4d4d4;
  font-weight: 500;
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .featured-tagline { font-size: 1rem; }
}

.featured-desc {
  font-size: 0.875rem;
  color: #d4d4d4;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .featured-desc { font-size: 1rem; }
}

.featured-hero-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .featured-hero-side {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
}

.featured-cat-label {
  font-size: 0.75rem;
  color: #a3a3a3;
  display: block;
}

.featured-cat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.btn-white-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-white-pill:hover {
  background: #f5f5f5;
  transform: scale(1.04);
}

/* Squircle Icon */
.squircle-icon {
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.squircle-sm { width: 3.5rem; height: 3.5rem; }
.squircle-md { width: 4rem; height: 4rem; }
.squircle-lg { width: 5rem; height: 5rem; }

@media (min-width: 640px) {
  .squircle-sm { width: 4rem; height: 4rem; }
  .squircle-md { width: 5rem; height: 5rem; }
  .squircle-lg { width: 6rem; height: 6rem; }
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

@media (min-width: 640px) {
  .section-title { font-size: 1.5rem; }
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .section-subtitle { font-size: 0.875rem; }
}

.section-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple-600);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.section-title-with-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.emoji-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Cards Grid */
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

.shortcut-card {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.shortcut-card:hover .squircle-icon {
  transform: scale(1.05);
}

.card-cat {
  display: block;
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.15rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shortcut-card:hover .card-title {
  color: var(--purple-600);
}

.card-tagline {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--amber-500);
  font-weight: 600;
}

.card-rating span {
  color: var(--text-secondary);
}

.btn-get-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--purple-50);
  color: var(--purple-600);
  transition: background-color 0.2s ease;
}

.btn-get-pill:hover {
  background: var(--purple-100);
}

/* Ecosystem Info Banner */
.ecosystem-banner {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #7e22ce, #4338ca, #86198f);
  color: #ffffff;
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .ecosystem-banner { padding: 2.5rem; }
}

.ecosystem-banner-inner {
  max-width: 42rem;
  position: relative;
  z-index: 10;
}

.ecosystem-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}

.ecosystem-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .ecosystem-title { font-size: 2.15rem; }
}

.ecosystem-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #f3e8ff;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .ecosystem-desc { font-size: 1rem; }
}

.ecosystem-checks {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.ecosystem-check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.text-emerald-light {
  color: #6ee7b7;
}

/* Explore View */
.explore-headerTitle {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .explore-headerTitle { font-size: 2.35rem; }
}

.search-bar-wrapper {
  position: relative;
}

.search-bar-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.9rem 5rem 0.9rem 3rem;
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

.category-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.category-pills-row::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.category-pill:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.category-pill.active {
  background: #9333ea;
  color: #ffffff;
  border-color: #9333ea;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.empty-box {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}

.empty-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.empty-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 24rem;
  margin: 0.35rem auto 0;
}

.btn-reset {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-subtle);
  color: var(--text);
}

/* Detail View */
.detail-container {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  align-self: flex-start;
}

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

.detail-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .detail-card { padding: 2rem; }
}

.detail-top-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .detail-top-row {
    flex-direction: row;
    align-items: center;
  }
}

.detail-identity {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.detail-cat-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--purple-600);
  display: block;
  margin-bottom: 0.25rem;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .detail-title { font-size: 1.875rem; }
}

.detail-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 32rem;
}

.detail-cta-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .detail-cta-col {
    align-items: flex-end;
  }
}

.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(90deg, #9333ea, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary-gradient:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.btn-secondary-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  transition: all 0.2s ease;
}

.btn-secondary-file:hover {
  background: var(--purple-50);
  color: var(--purple-600);
  border-color: var(--purple-100);
}

.icloud-verified {
  font-size: 0.6875rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  text-align: center;
}

.detail-stat-col + .detail-stat-col {
  border-left: 1px solid var(--border);
}

.stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-faint);
  display: block;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-sub {
  font-size: 0.625rem;
  color: var(--text-faint);
  display: block;
  margin-top: 0.1rem;
}

.stat-sub.emerald {
  color: var(--emerald-500);
  font-weight: 600;
}

.card-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.card-heading {
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.version-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.body-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

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

.highlight-item {
  padding: 0.9rem;
  border-radius: 1rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.step-number {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--purple-100);
  color: var(--purple-600);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Video Tutorial Card (YouTube Shorts / Embed) */
.video-tutorial-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .video-tutorial-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.video-shorts-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #000000;
  border: 4px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}

.video-widescreen-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Reviews Section */
.btn-outline-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--purple-50);
  color: var(--purple-600);
  border: 1px solid var(--purple-100);
}

.review-form-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
}

.star-picker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.star-btn {
  padding: 0.15rem;
  color: var(--text-faint);
  transition: transform 0.15s ease;
}

.star-btn.filled {
  color: var(--amber-400);
}

.star-btn:hover {
  transform: scale(1.15);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  margin-bottom: 0.75rem;
}

.form-input:focus, .form-textarea:focus {
  border-color: #9333ea;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-item {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.review-empty {
  margin-top: 1.25rem;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Footer & Mobile Tabbar */
/* Newsletter Capture Card */
.newsletter-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9333ea, #4f46e5, #ec4899);
}

@media (min-width: 768px) {
  .newsletter-card {
    flex-direction: row;
    align-items: center;
    padding: 2.25rem 2.5rem;
  }
}

.newsletter-info {
  max-width: 34rem;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--purple-50);
  color: var(--purple-600);
  margin-bottom: 0.75rem;
}

.newsletter-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

@media (min-width: 640px) {
  .newsletter-title {
    font-size: 1.65rem;
  }
}

.newsletter-desc {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.newsletter-form-col {
  width: 100%;
  max-width: 26rem;
  flex-shrink: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 9999px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.newsletter-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(90deg, #9333ea, #4f46e5);
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(147, 51, 234, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.newsletter-submit-btn:hover:not(:disabled) {
  transform: scale(1.02);
  opacity: 0.95;
}

.newsletter-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.newsletter-hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.newsletter-success {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--emerald-50);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* FAQ Section (SEO & GEO Structured Q&A) */
/* Suggest Shortcut Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: 100%;
  max-width: 30rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .modal-card {
    padding: 2rem;
  }
}

.modal-close-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text);
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.25rem 0 1rem;
  cursor: pointer;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-summary {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  display: none;
}

@media (min-width: 768px) {
  .site-footer { display: block; }
}

.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: var(--tabbar-bg);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .mobile-tabbar { display: none; }
}

.mobile-tabbar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 4rem;
  max-width: 28rem;
  margin: 0 auto;
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text-faint);
  font-size: 0.6875rem;
  transition: color 0.2s ease;
}

.mobile-tab.active {
  color: var(--purple-600);
  font-weight: 600;
}
