/* ============================================
   ShowTV — Google Play / Material 3 Light Theme
   ============================================ */

:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-surface-variant: #f0f2f5;
  --color-text: #202124;
  --color-text-secondary: #5f6368;
  --color-outline: #dadce0;
  --color-accent: #01875f;
  --color-accent-dark: #006c4d;
  --color-accent-light: #e6f5ef;
  --color-star: #fbbc04;
  --color-live: #ea4335;
  --color-18: #b3261e;
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.08), 0 1px 3px 1px rgba(60, 64, 67, 0.06);
  --shadow-md: 0 1px 3px 0 rgba(60, 64, 67, 0.12), 0 4px 12px rgba(60, 64, 67, 0.12);
  --shadow-lg: 0 4px 12px rgba(60, 64, 67, 0.16), 0 1px 2px rgba(60, 64, 67, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-outline);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--color-surface-variant);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.header-btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.header-progress {
  height: 3px;
  background: var(--color-outline);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(to right, var(--color-accent), #34d399, var(--color-accent));
  animation: progress-slide 3s ease-in-out infinite;
}

@keyframes progress-slide {
  0%, 100% { width: 30%; }
  50% { width: 70%; }
}

/* Gradient text fallback */
.gradient-text {
  color: var(--color-accent);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

.btn-download:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 16px 24px;
  background: var(--color-surface);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(1, 135, 95, 0.06), transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(251, 188, 4, 0.04), transparent 40%);
}

.hero-content {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-light);
  border: 1px solid rgba(1, 135, 95, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 16px;
}

.badge span {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-title .subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hero-desc {
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 24px 16px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-outline);
  border-bottom: 1px solid var(--color-outline);
}

.features-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.feature-icon-new {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-new svg {
  width: 22px;
  height: 22px;
}

.feature-box span {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 500;
}

/* Install Card */
.install-card-section {
  padding: 24px 16px;
  background: var(--color-bg);
}

.install-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.install-header {
  text-align: center;
  padding: 32px 24px 24px;
}

.install-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--color-accent-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: var(--shadow-sm);
}

.install-header h2 {
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--color-text);
  font-weight: 800;
}

.install-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.install-divider {
  border-top: 1px solid var(--color-outline);
}

.install-divider-sm {
  border-top: 1px solid var(--color-outline);
  margin: 0 24px;
}

.install-features {
  padding: 16px 24px;
}

.install-feature {
  text-align: center;
  padding: 16px 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
}

.feature-icon.purple { background: #f3e8ff; }
.feature-icon.orange { background: #ffedd5; }
.feature-icon.indigo { background: #eef2ff; }
.feature-icon.pink { background: #fce7f3; }

.install-feature h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.install-feature p {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.install-cta {
  padding: 24px;
  text-align: center;
}

/* Share VIP Section */
.share-vip-section {
  padding: 24px 16px;
  background: var(--color-bg);
}

.share-vip-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.share-vip-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-star);
}

.share-vip-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.share-progress-box {
  background: var(--color-surface-variant);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.share-progress-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.share-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-outline);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.share-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-star);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.share-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-star);
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.telegram-btn {
  background: #0088cc;
}

.copy-btn {
  background: var(--color-surface-variant);
  color: var(--color-text);
  border: 1px solid var(--color-outline);
}

.copy-btn:hover {
  background: #e8eaed;
}

.share-link-box {
  background: var(--color-surface-variant);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.8rem;
  word-break: break-all;
}

.share-link-label {
  color: var(--color-text-secondary);
  margin-right: 0.25rem;
}

.share-link-url {
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .share-vip-card {
    padding: 1.25rem;
  }

  .share-vip-title {
    font-size: 1.2rem;
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }
}

/* Content Sections */
.content-section {
  padding: 28px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-outline);
}

.section-header {
  padding: 0 16px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

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

.scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-wrapper {
  overflow: hidden;
  position: relative;
  padding: 0 16px 8px;
}

.scroll-wrapper .scroll-row {
  padding: 0;
  width: max-content;
}

/* Cards */
.content-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  scroll-snap-align: start;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-image {
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image .emoji {
  font-size: 32px;
  opacity: 0.3;
}

/* Streaming platform logo cards */
.logo-card {
  cursor: pointer;
}

.logo-card .card-image {
  height: 100px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-card .card-info {
  text-align: center;
  padding: 10px;
}

.logo-card .card-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.bg-netflix { background: #000000; }
.bg-prime { background: #00A8E1; }
.bg-disney { background: #113CCF; }
.bg-hbo { background: #6B1090; }
.bg-apple { background: #000000; }
.bg-hulu { background: #1CE783; }
.bg-youtube { background: #FF0000; }
.bg-paramount { background: #0064FF; }

/* Filter invert for dark brand backgrounds */
.bg-hulu .card-image img,
.bg-youtube .card-image img {
  filter: none;
}

.card-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}

.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
}

.tag-hit { background: #f97316; }
.tag-4k { background: #4285f4; }
.tag-live { background: var(--color-live); }
.tag-hd { background: #34a853; }
.tag-new { background: #9c27b0; }
.tag-night { background: #5f6368; }
.tag-hot { background: #e91e63; }
.tag-noir { background: #3c4043; }
.tag-18 { background: var(--color-18); }
.tag-adult { background: var(--color-18); }
.tag-free { background: var(--color-accent); }

.card-info {
  padding: 10px;
}

.card-info h4 {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

.card-info p {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sport Card */
.sport-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  scroll-snap-align: start;
}

.sport-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sport-image {
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
}

.sport-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sport-image .emoji {
  font-size: 40px;
}

.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-live);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.sport-info {
  padding: 10px;
}

.sport-info h4 {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

.sport-info p {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Why Section */
.why-section {
  padding: 40px 16px;
  background: var(--color-bg);
}

.why-section h2 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-text);
}

.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-emoji {
  font-size: 26px;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Compare Section */
.compare-section {
  padding: 32px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-outline);
  border-bottom: 1px solid var(--color-outline);
}

.compare-section h2 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-text);
}

.table-wrapper {
  max-width: 600px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

th, td {
  padding: 12px 14px;
  text-align: left;
}

th {
  border-bottom: 1px solid var(--color-outline);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-variant);
}

th.purple {
  color: var(--color-accent);
  text-align: center;
  font-weight: 800;
}

th:last-child {
  text-align: center;
}

td:nth-child(2) {
  text-align: center;
  color: var(--color-accent);
  font-weight: 700;
}

td:last-child {
  text-align: center;
  color: var(--color-text-secondary);
}

tbody tr {
  border-bottom: 1px solid var(--color-outline);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--color-surface-variant);
}

/* CTA Section */
.cta-section {
  padding: 40px 16px;
  background: var(--color-bg);
}

.cta-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text);
}

.cta-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 22px;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.cta-stats > div {
  text-align: center;
}

.cta-stats .gradient-text {
  font-size: 24px;
  font-weight: 800;
}

.cta-stats > div > div:last-child {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Guide Section */
.guide-section {
  padding: 32px 16px;
  background: var(--color-bg);
}

.guide-section h2 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-text);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.guide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.guide-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.guide-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.guide-card p {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.app-info {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.app-info table {
  width: 100%;
  font-size: 14px;
}

.app-info td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-outline);
}

.app-info td:first-child {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.app-info td:last-child {
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
}

.app-info tr:last-child td {
  border-bottom: none;
}

/* FAQ Section */
.faq-section {
  padding: 32px 16px;
  background: var(--color-surface);
}

.faq-section h2 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-text);
}

.faq-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--color-surface-variant);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.faq-q:hover {
  background: #e8eaed;
}

.faq-q .arrow {
  color: var(--color-text-secondary);
  transition: transform 0.2s;
  font-size: 12px;
}

.faq-item.active .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s, padding 0.25s;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.faq-item.active .faq-a {
  padding: 0 16px 14px;
  max-height: 200px;
}

/* Footer */
footer {
  background: var(--color-surface-variant);
  border-top: 1px solid var(--color-outline);
  padding: 32px 16px;
  text-align: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.footer-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Next step bar */
.next-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-outline);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  min-height: 72px;
  box-shadow: 0 -2px 10px rgba(60, 64, 67, 0.08);
}

.next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  padding: 16px 28px;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.next-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.next-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.next-btn.secondary {
  background: var(--color-surface-variant);
  color: var(--color-text);
  border: 1px solid var(--color-outline);
  box-shadow: none;
}

.next-btn.secondary:hover {
  background: #e8eaed;
}

/* Download Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 33, 36, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-light);
  border: 1px solid rgba(1, 135, 95, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.modal-status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 20px;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-outline);
}

.modal-step:last-child {
  border-bottom: none;
}

.modal-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.modal-step-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.modal-step-text strong {
  color: var(--color-text);
}

.modal-close-btn {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: var(--color-accent-dark);
}

/* Video Tutorial Modal */
.video-modal-content {
  position: relative;
  width: min(860px, 94vw);
  max-height: 90vh;
}

.video-modal-content video {
  width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-md);
  background: #000;
  display: block;
  outline: none;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.video-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s;
}

.video-download-btn:hover {
  background: var(--color-accent-dark);
}

/* Tablet */
@media (min-width: 640px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-title .subtitle {
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid-new {
    grid-template-columns: repeat(4, 1fr);
  }

  .content-card, .sport-card {
    width: 170px;
  }

  .card-image, .sport-image {
    height: 115px;
  }

  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }

  .hero-title .subtitle {
    font-size: 22px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .content-card, .sport-card {
    width: 180px;
  }

  .card-image, .sport-image {
    height: 125px;
  }
}

/* RTL Support (Arabic) */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header-brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-desc,
html[dir="rtl"] .section-header h2,
html[dir="rtl"] .section-header p,
html[dir="rtl"] .why-section h2,
html[dir="rtl"] .compare-section h2,
html[dir="rtl"] .cta-card h2,
html[dir="rtl"] .cta-card p,
html[dir="rtl"] .guide-section h2,
html[dir="rtl"] .faq-section h2,
html[dir="rtl"] .share-vip-title,
html[dir="rtl"] .share-vip-desc,
html[dir="rtl"] .install-subtitle,
html[dir="rtl"] .install-feature h3,
html[dir="rtl"] .install-feature p {
  text-align: right;
}

html[dir="rtl"] .feature-box,
html[dir="rtl"] .feature-card,
html[dir="rtl"] .stat-card,
html[dir="rtl"] .guide-card {
  text-align: right;
}

html[dir="rtl"] .card-info h4,
html[dir="rtl"] .card-info p,
html[dir="rtl"] .sport-info h4,
html[dir="rtl"] .sport-info p {
  text-align: right;
}

html[dir="rtl"] .faq-q {
  text-align: right;
  flex-direction: row-reverse;
}

html[dir="rtl"] .faq-q .arrow {
  transform: rotate(-90deg);
}

html[dir="rtl"] .faq-item.active .faq-q .arrow {
  transform: rotate(0deg);
}

html[dir="rtl"] .modal-step {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .share-link-box {
  flex-direction: row-reverse;
}

html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-download,
html[dir="rtl"] .next-btn,
html[dir="rtl"] .header-btn {
  flex-direction: row-reverse;
}

html[dir="rtl"] table {
  direction: rtl;
}

html[dir="rtl"] .table-wrapper {
  direction: rtl;
}

html[dir="rtl"] .live-badge {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .card-tags {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .scroll-row {
  direction: ltr;
}

html[dir="rtl"] .scroll-row > * {
  direction: rtl;
}

/* ============================================
   Compact Hero & Conversion Elements
   ============================================ */
.hero-compact {
  padding: 24px 16px 28px;
}

.hero-compact .hero-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-compact .hero-desc {
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 520px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  min-width: 260px;
}

/* Steps indicator */
.steps-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px auto 18px;
  max-width: 400px;
  flex-wrap: wrap;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--color-surface-variant);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.step span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-outline);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.step.active {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.step.active span {
  background: var(--color-accent);
  color: #fff;
}

a.step:hover:not(.active) {
  background: #e8eaed;
  border-color: var(--color-outline);
}

/* Trust badges */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-item strong {
  color: var(--color-text);
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-star);
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.play-protect-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #e8f5e9;
  border-radius: var(--radius-pill);
  color: #1e8e3e;
  font-size: 12px;
  font-weight: 700;
}

.play-protect-badge svg {
  width: 14px;
  height: 14px;
}

/* Compact benefit list */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 24px auto 0;
}

.features-list .feature-box {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

/* Install page trust spacing */
.install-header .steps-bar {
  margin-top: 0;
  margin-bottom: 16px;
}

.install-header .trust-bar {
  margin-top: 10px;
  margin-bottom: 4px;
}
