:root {
  --bg: #070b14;
  --surface: #111827;
  --surface-elevated: #1a2332;
  --border: #2a3548;
  --accent: #d4af37;
  --accent-muted: #8b7a3e;
  --accent-glow: rgba(212, 175, 55, 0.2);
  --text: #f5f7fa;
  --text-secondary: #9ca8ba;
  --text-muted: #6b7a90;
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  --radius: 14px;
  --radius-lg: 16px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #0d1524 0%, var(--bg) 40%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #e0be4a;
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-muted);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent-muted);
  text-decoration: none;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  text-align: left;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: left;
}

.search-card label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.search-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.alert {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
}

.eligible-message {
  margin: 0;
}

.eligible-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(52, 211, 153, 0.25);
}

.eligible-cta-text {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.eligible-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.eligible-store-badges .store-badge img {
  height: 42px;
}

.alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--error);
}

.alert-info {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent);
}

.showcase-section {
  padding: 1rem 0 2rem;
}

.showcase-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.showcase-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.showcase-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.showcase-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.showcase-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.showcase-card:hover {
  border-color: var(--accent-muted);
  transform: translateY(-2px);
  text-decoration: none;
}

.showcase-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(160deg, #1a2332 0%, #0d1524 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-brand {
  position: absolute;
  width: 46%;
  max-width: 130px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22%;
  opacity: 0.16;
  filter: grayscale(0.2);
}

.showcase-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(7, 11, 20, 0.5);
  border: 2px solid var(--accent);
  transition: background 0.15s, transform 0.15s;
}

.showcase-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--accent);
}

.showcase-card:hover .showcase-play {
  background: rgba(7, 11, 20, 0.7);
  transform: translate(-50%, -50%) scale(1.08);
}

.showcase-info {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.showcase-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-location {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.store-section {
  text-align: center;
  padding: 2rem 0 3rem;
}

.store-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.store-section p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.store-badge {
  display: inline-block;
  transition: opacity 0.15s;
}

.store-badge:hover {
  opacity: 0.85;
  text-decoration: none;
}

.store-badge img {
  height: 44px;
  width: auto;
}

.store-badge[data-play-coming-soon] {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.coming-soon-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  transition: opacity 0.25s, transform 0.25s;
}

.coming-soon-toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(0.75rem);
  pointer-events: none;
}

.coming-soon-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.coming-soon-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.social-links a:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.page-main {
  padding: 2.5rem 0 3rem;
  min-height: calc(100vh - 180px);
}

.page-main h1 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
}

.prose {
  max-width: 48rem;
  color: var(--text-secondary);
}

.prose h2 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  line-height: 1.7;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.btn-block {
  width: 100%;
}

.btn-google {
  background: var(--surface-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-google:hover {
  border-color: var(--accent-muted);
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 1.65rem;
}

.dashboard-meta {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.video-grid {
  display: grid;
  gap: 1rem;
}

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

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

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.video-address {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-warn {
  color: var(--warning);
}

.stat-error {
  color: var(--error);
}

.progress-bar {
  height: 6px;
  background: var(--surface-elevated);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s;
}

.progress-fill.warn {
  background: var(--warning);
}

.progress-fill.danger {
  background: var(--error);
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-active {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.status-processing {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.status-limitReached {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error);
}

.link-row {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.link-row .input {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
}

.link-row .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-state h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.player-page {
  padding: 1.5rem 0 2.5rem;
}

.player-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.player-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(160deg, #1a2332 0%, #0d1524 100%);
}

.player-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
}

.player-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.player-info h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.player-address {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.player-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-loading,
.player-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--text-secondary);
  padding: 2rem;
  text-align: center;
}

.faq-list {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.15s;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0 0 0.85rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.faq-answer li {
  margin-bottom: 0.45rem;
}

.faq-answer li strong {
  color: var(--text-primary);
}

.faq-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--accent-glow);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
