/* ==========================================================================
   TEKAD77 — STORY GALLERY ANEKA GAME ONLINE BIKE RACING GAMEPLAY
   Modern Responsive Stylesheet (Mobile-First, Core Web Vitals & E-E-A-T Ready)
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-card: #121824;
  --bg-card-hover: #182030;
  --bg-glass: rgba(13, 17, 26, 0.88);
  --gold-primary: #d4af37;
  --gold-light: #f7d969;
  --gold-dark: #9e7a18;
  --crimson-primary: #e11d48;
  --crimson-dark: #9f1239;
  --crimson-glow: rgba(225, 29, 72, 0.35);
  --gold-glow: rgba(212, 175, 55, 0.28);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(212, 175, 55, 0.22);
  --border-strong: rgba(212, 175, 55, 0.48);
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 14px 34px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.06);
  --shadow-gold: 0 8px 26px rgba(212, 175, 55, 0.28);
  --shadow-crimson: 0 8px 26px rgba(225, 29, 72, 0.38);
  --container-max: 1240px;
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(225, 29, 72, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #07090e 0%, #0b0f19 100%);
  color: var(--text-primary);
  line-height: 1.68;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 72px; /* Space for mobile sticky CTA bar */
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

/* Modern Web Guidance: improve-text-layout-and-legibility */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', 'Orbitron', 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p, li, blockquote, dd {
  text-wrap: pretty;
  color: var(--text-secondary);
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffffff;
}

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

/* Modern Web Guidance: responsive-design fluid typography with clamp() */
.hero-title {
  font-size: clamp(1.85rem, 1.15rem + 3.1vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.45rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.subsection-title {
  font-size: clamp(1.2rem, 0.95rem + 1.1vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

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

.section {
  padding-block: clamp(3rem, 5vw, 5.25rem);
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-block: 1px solid var(--border-subtle);
}

/* Top Trust Bar */
.top-trust-bar {
  background: linear-gradient(90deg, #0b0e17 0%, #17121e 50%, #0b0e17 100%);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  padding-block: 0.45rem;
  color: var(--text-secondary);
}

.top-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Sticky Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

.brand-logo {
  height: 46px;
  width: auto;
  aspect-ratio: 300 / 118;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.3));
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: none;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
}

.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .header-actions {
    display: flex;
  }
}

/* Buttons (Login & Register CTAs) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}

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

.btn-login {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

.btn-login:hover {
  background: var(--gold-primary);
  color: #07090e;
  box-shadow: var(--shadow-gold);
}

.btn-register {
  background: linear-gradient(135deg, var(--crimson-primary) 0%, #be123c 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-crimson);
}

.btn-register:hover {
  background: linear-gradient(135deg, #f43f5e 0%, var(--crimson-primary) 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.55);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 55%, var(--gold-dark) 100%);
  color: #07090e;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  color: #000000;
  filter: brightness(1.08);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  cursor: pointer;
}

@media (min-width: 960px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--gold-primary);
  padding: 1.25rem 1rem;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-weight: 600;
}

.mobile-nav-list a.active {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  border-left: 3px solid var(--gold-primary);
}

.mobile-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* Hero Section */
.hero-section {
  padding-block: clamp(2rem, 4.5vw, 4rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.text-gradient-gold {
  background: linear-gradient(92deg, #ffffff 0%, var(--gold-light) 50%, #ff5a79 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-cta-group .btn {
  flex: 1 1 210px;
}

/* Portal Access Card inside Hero */
.portal-access-strip {
  background: rgba(18, 24, 36, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.stat-metric {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

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

/* Hero Banner Media Frame with CLS prevention (aspect-ratio) */
.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  background: #0c1018;
}

.hero-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.telemetry-hud-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, rgba(7, 9, 14, 0.96) 0%, rgba(24, 32, 48, 0.96) 100%);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-family: 'Rajdhani', monospace;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

.hud-pill strong {
  color: var(--gold-light);
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: rgba(18, 24, 36, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 0.65rem;
  font-size: 0.85rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--text-muted);
  margin-right: 0.45rem;
}

/* Story Gallery Container Query Cards (Modern Web Guidance: responsive-design & fluid-scaling) */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-block: 1.5rem 2rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold-primary);
  color: #07090e;
  border-color: var(--gold-light);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.65rem;
}

.story-card-wrap {
  container-type: inline-size;
  container-name: story-card;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.story-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #090d14;
}

.story-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.story-card:hover .story-thumb {
  transform: scale(1.04);
}

.story-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(7, 9, 14, 0.86);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-rating {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(225, 29, 72, 0.92);
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.story-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Modern Web Guidance: fluid-scaling fallback + container units */
.story-card-title {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

@supports (font-size: 1cqi) {
  .story-card-title {
    font-size: clamp(1.1rem, 4.8cqi, 1.45rem);
  }
}

.story-telemetry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-block: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.telemetry-kv span {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.telemetry-kv strong {
  color: var(--gold-light);
}

.story-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* Login & Registration Portal Spotlight Box */
.login-portal-box {
  background: linear-gradient(135deg, rgba(18, 24, 36, 0.96) 0%, rgba(34, 15, 28, 0.92) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-card);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .portal-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.portal-card-ui {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.step-badges {
  display: grid;
  gap: 0.85rem;
  margin-block: 1.25rem;
}

.step-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #07090e;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Tables (Telemetry & Technical Specs) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-block: 1.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--bg-card);
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.data-table th {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* E-E-A-T Cards & Team Grid */
.eeat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.eeat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.eeat-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

/* Jakarta Office Location Showcase */
.office-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .office-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.address-detail-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-block: 1.1rem;
}

.address-detail-list li {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

.address-detail-list strong {
  color: var(--gold-light);
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 920px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

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

.faq-item summary::after {
  content: "+";
  color: var(--gold-light);
  font-size: 1.35rem;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.9rem;
}

/* Forms (Contact Page) */
.form-group {
  margin-bottom: 1.1rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #080b12;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: 2px solid var(--gold-primary);
  border-color: transparent;
}

/* Article Content Formatting */
.prose-article {
  max-width: 920px;
  margin-inline: auto;
}

.prose-article h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  color: var(--gold-light);
}

.prose-article h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.prose-article p {
  margin-bottom: 1.1rem;
}

.prose-article ul,
.prose-article ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
}

.prose-article li {
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #05070b;
  border-top: 2px solid var(--border-strong);
  padding-block: 3.5rem 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  }
}

.footer-heading {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Sticky Mobile Bottom Bar for Login / Register */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(7, 9, 14, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-primary);
  padding: 0.55rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (min-width: 900px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* ==========================================================================
   FULL-PAGE PERSISTENT POPUP OVERLAY (NO CLOSE BUTTON)
   Modern Web Guidance: prevent-page-scroll-under-modal-dialog
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(4, 6, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tekad-full-popup {
  position: fixed;
  inset: 0;
  width: 100dvw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(0.85rem, 2.5vw, 2rem);
  border: none;
  background:
    radial-gradient(circle at 50% 15%, rgba(212, 175, 55, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(225, 29, 72, 0.16) 0%, transparent 50%),
    rgba(5, 7, 12, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text-primary);
}

.popup-modal-card {
  width: min(100%, 620px);
  background: linear-gradient(165deg, #111726 0%, #090d16 60%, #190d18 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 2rem);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(212, 175, 55, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-align: center;
  position: relative;
  margin: auto;
}

.popup-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.popup-logo-img {
  height: clamp(44px, 7vw, 62px);
  width: auto;
  aspect-ratio: 300 / 118;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.4));
}

.popup-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.popup-banner-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  margin-bottom: 1.1rem;
  background: #07090e;
}

.popup-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.popup-title {
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.65rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.popup-subtitle {
  font-size: clamp(0.84rem, 0.8rem + 0.25vw, 0.95rem);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.popup-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .popup-cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.popup-btn {
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 10px;
  width: 100%;
}

.popup-security-note {
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

