/* ==========================================================================
   RunCodes Apps Portal - Modern Production Stylesheet
   Domain: apps.runcodes.tech
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --nav-bg: rgba(11, 15, 25, 0.85);
  --card-bg: rgba(17, 24, 39, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(56, 189, 248, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #38bdf8;
  --accent-secondary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --success: #10b981;
  --warning: #f59e0b;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-border-hover: rgba(2, 132, 199, 0.45);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent-primary: #0284c7;
  --accent-secondary: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.15);
}

/* 1. Global Reset & Anti-Copy Protection */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  
  /* Prevent text highlighting and copying across protected UI */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Allow normal text selection within input boxes and form areas */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none; /* Disables image dragging */
}

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

/* 2. Top Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #000;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-accent {
  color: var(--accent-primary);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-top: 2px;
}

[data-theme="light"] .brand-tagline {
  color: #0284c7;
}

[data-theme="light"] .brand-logo-img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn-playstore:hover {
  background: #0b1120;
  color: #ffffff;
  border-color: rgba(66, 133, 244, 0.6);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.35), 0 0 12px rgba(52, 168, 83, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.theme-toggle-btn svg {
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* 3. Hero Section (MacClip Spotlight) */
.hero-section {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item svg {
  color: var(--success);
}

/* App Hero Mockup / Card */
.hero-mockup-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease;
}

.hero-mockup-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

.app-identity-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.app-identity-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.version-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

/* Mockup Interface Preview */
.mockup-preview {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 20px;
}

.window-dots {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.preview-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip-sample-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
}

.clip-sample-item.active {
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.08);
}

.clip-sample-text {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-shortcut {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 4. Trust & Security Strip (Google Ads compliant) */
.trust-strip {
  padding: 30px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: rgba(17, 24, 39, 0.4);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 5. App Showcase & Catalog Section */
.catalog-section {
  padding: 80px 0;
}

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

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Filter Controls */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
}

.filter-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.search-wrap {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 9px 16px 9px 38px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-primary);
}

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

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-md);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-card-img-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.app-category-pill {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
}

.app-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.app-platform-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.badge-mac {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-android {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.app-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.app-tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.app-specs {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-specs span {
  display: block;
}

/* 6. Feature Detail Highlight Section (MacClip in-depth) */
.feature-showcase-section {
  padding: 80px 0;
  background: rgba(17, 24, 39, 0.3);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
}

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 7. Dedicated App Page (MacClip.html) Specifics */
.app-detail-hero {
  padding: 60px 0 40px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.detail-header-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.detail-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.detail-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.detail-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.detail-app-info h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.detail-app-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-meta-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Detail Content Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.detail-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-checklist li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--card-border);
}

.spec-table td {
  padding: 12px 0;
  font-size: 0.88rem;
}

.spec-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.spec-table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* 8. Policy & Legal Pages (Google Ads) */
.legal-page-header {
  padding: 60px 0 30px;
  text-align: center;
}

.legal-content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 60px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content-card h2 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 32px 0 14px;
}

.legal-content-card h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.legal-content-card p {
  margin-bottom: 18px;
}

.legal-content-card ul {
  margin: 0 0 20px 24px;
}

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

/* 9. Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0 80px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-primary);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Modal for Android Apps */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.2s ease;
}

.app-modal-overlay.open {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.app-modal-dialog {
  background: #111827;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  max-width: 940px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.app-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.app-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* 10. Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  font-size: 0.82rem;
}

.admin-link {
  color: var(--text-muted);
  font-size: 0.78rem;
  opacity: 0.6;
}

.admin-link:hover {
  opacity: 1;
  color: var(--accent-primary);
}

/* 11. Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .features-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .mobile-menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 24px;
    border-bottom: 1px solid var(--card-border);
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Light Mode Explicit Overrides & Polishes
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;
}

[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: var(--accent-primary);
}

[data-theme="light"] .btn-playstore {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-playstore:hover {
  background: #f8fafc;
  color: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.22), 0 1px 4px rgba(52, 168, 83, 0.15);
  transform: translateY(-2px);
}

[data-theme="light"] .hero-glow-1 {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

[data-theme="light"] .hero-glow-2 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
}

[data-theme="light"] .hero-mockup-card,
[data-theme="light"] .app-card,
[data-theme="light"] .detail-header-card,
[data-theme="light"] .detail-card,
[data-theme="light"] .feature-box,
[data-theme="light"] .shortcut-table-card,
[data-theme="light"] .legal-content-card,
[data-theme="light"] .trust-badge {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .app-tag,
[data-theme="light"] .detail-meta-pill,
[data-theme="light"] .app-category-pill {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

[data-theme="light"] .shortcut-table th {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}

[data-theme="light"] .shortcut-table td,
[data-theme="light"] .spec-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mockup-preview {
  background: #f1f5f9;
}

[data-theme="light"] .window-dots {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] code {
  background: rgba(0, 0, 0, 0.06);
  color: #0284c7;
}

[data-theme="light"] kbd {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

