/* =========================================================
   FREE FIRE GIVEAWAY LANDING PAGE STYLES
   Visual Identity: Dark Gaming Theme (#0a0a0f → #1a1a2e)
   Accents: Orange (#ff6b00), Amber (#ffa500), Cyan (#00d4ff), Green (#00ff88)
========================================================= */

@font-face {
  font-family: 'GFF Latin W05 Thin';
  src: url('./fonts/GFFLatinW05-Thin.woff') format('woff');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121f;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(22, 22, 38, 0.75);
  --bg-card-hover: rgba(30, 30, 52, 0.85);

  --accent-orange: #ff6b00;
  --accent-amber: #ffa500;
  --accent-cyan: #00d4ff;
  --accent-green: #00ff88;
  --accent-red: #ff3366;

  --text-white: #ffffff;
  --text-muted: #a0a0b0;
  --text-dim: #6c6c80;

  --border-subtle: rgba(255, 107, 0, 0.18);
  --border-cyan: rgba(0, 212, 255, 0.25);
  --border-card: rgba(255, 255, 255, 0.08);

  --font-brand: 'GFF Latin W05 Thin', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

  --glow-orange: 0 0 25px rgba(255, 107, 0, 0.45);
  --glow-cyan: 0 0 25px rgba(0, 212, 255, 0.35);
  --glow-green: 0 0 20px rgba(0, 255, 136, 0.4);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-brand);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 90% 10%, rgba(255, 107, 0, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 212, 255, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #0a0a0f 0%, #121222 40%, #1a1a2e 100%);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Animated Cyber Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  color: var(--accent-amber);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* =========================================================
   3.1 STICKY HEADER BAR
========================================================= */
.header-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
  transition: background var(--transition-normal), border var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 0, 0.3));
  transition: transform var(--transition-fast);
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--accent-amber);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-settings-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-settings-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
}

/* =========================================================
   3.2 HERO SECTION
========================================================= */
.hero-section {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.hero-pill-icon {
  font-size: 0.95rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.gradient-text-orange {
  background: linear-gradient(135deg, #ffffff 15%, var(--accent-amber) 60%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255, 107, 0, 0.3));
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

/* CTA Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-amber) 100%);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 107, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
}

/* Trust Indicators */
.trust-indicators-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: rgba(18, 18, 34, 0.6);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  max-width: 880px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.trust-icon {
  color: var(--accent-green);
  font-size: 0.95rem;
}

.live-counter-item {
  color: var(--accent-amber);
  font-weight: 600;
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulse-dot 1.5s infinite;
}

/* =========================================================
   3.3 CODES SECTION (CORE FEATURE)
========================================================= */
.codes-section {
  padding: 3.5rem 0 4.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Filter Pills */
.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-white);
  border-color: rgba(255, 107, 0, 0.4);
  background: rgba(255, 107, 0, 0.08);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.25) 0%, rgba(255, 165, 0, 0.25) 100%);
  border-color: var(--accent-orange);
  color: var(--accent-amber);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.2);
}

/* Codes Grid */
.codes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* Code Card */
.code-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border var(--transition-normal);
}

.code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.code-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 0, 0.15);
}

.code-card:hover::before {
  opacity: 1;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.card-status.active {
  color: var(--accent-green);
}

.card-status.active .status-dot {
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.card-status.expired {
  color: var(--accent-red);
}

.card-status.expired .status-dot {
  background-color: var(--accent-red);
  box-shadow: 0 0 6px var(--accent-red);
}

.reward-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.1rem;
}

/* Code Display Box */
.code-box-wrapper {
  background: rgba(8, 8, 14, 0.85);
  border: 1px dashed rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast);
}

.code-box-wrapper:hover {
  border-color: var(--accent-cyan);
}

.code-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--accent-amber);
  user-select: all;
  transition: filter 0.4s ease;
}

/* Code Blur & Lock Overlay */
.code-box-wrapper.blurred {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.code-box-wrapper.blurred .code-text {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.code-lock-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 10, 18, 0.92);
  border: 1px solid var(--accent-orange);
  color: var(--accent-amber);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.btn-unlock-code {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 165, 0, 0.2)) !important;
  border-color: var(--accent-orange) !important;
  color: var(--accent-amber) !important;
}

.btn-unlock-code:hover {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber)) !important;
  color: #000 !important;
  box-shadow: var(--glow-orange) !important;
}

/* Location Required Modal */
.loc-modal-card {
  text-align: center;
  max-width: 440px;
}

.loc-modal-icon {
  font-size: 2.8rem;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.loc-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.65rem;
}

.loc-modal-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.loc-steps-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.loc-steps-box ol {
  padding-left: 1.25rem;
  margin-top: 0.4rem;
}

.loc-steps-box li {
  margin-bottom: 0.3rem;
}

/* Copy Button */
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1.5px solid var(--accent-cyan);
  background: transparent;
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: var(--glow-cyan);
}

.btn-copy.copied {
  background: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  color: #000 !important;
  box-shadow: var(--glow-green) !important;
}

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.expires-warning {
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

/* Empty / Loading State */
.loading-codes-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 107, 0, 0.2);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

/* =========================================================
   3.4 HOW TO REDEEM SECTION
========================================================= */
.how-to-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

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

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

.step-card {
  background: rgba(18, 18, 30, 0.65);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.35);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.step-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-desc a {
  word-break: break-all;
}

/* Warning Box */
.warning-box {
  background: rgba(255, 107, 0, 0.08);
  border: 1.5px solid var(--accent-orange);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.15);
}

.warning-icon {
  font-size: 1.75rem;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.warning-text {
  font-size: 0.95rem;
  color: var(--text-white);
  line-height: 1.5;
}

.warning-text strong {
  color: var(--accent-amber);
}

/* =========================================================
   3.5 FOOTER
========================================================= */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 2.5rem;
  background: rgba(8, 8, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-disclaimer {
  max-width: 780px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* =========================================================
   4.1 COOKIE CONSENT BANNER & MODAL
========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(13, 13, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  padding: 1.25rem 1.5rem;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 860px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 720px;
}

.cookie-text strong {
  color: var(--text-white);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cookie-accept:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-orange);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-cookie-manage {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
}

.btn-cookie-manage:hover {
  color: var(--accent-amber);
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #141424;
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--glow-orange);
  padding: 1.75rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

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

.preferences-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.preference-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.preference-info {
  flex: 1;
}

.preference-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preference-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2c2c44;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

input:checked+.slider:before {
  transform: translateX(22px);
}

input:disabled+.slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* =========================================================
   4.2 GEOLOCATION SOFT PROMPT
========================================================= */
.geo-prompt-toast {
  position: fixed;
  bottom: 85px;
  right: 1.5rem;
  background: #151528;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  max-width: 380px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.geo-prompt-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.geo-prompt-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.geo-prompt-msg {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.geo-prompt-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.btn-geo-allow {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.btn-geo-allow:hover {
  opacity: 0.9;
}

.btn-geo-dismiss {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  border: none;
  cursor: pointer;
}

.btn-geo-dismiss:hover {
  color: var(--text-white);
}

/* =========================================================
   TOAST NOTIFICATIONS (HIDDEN PER USER REQUEST)
========================================================= */
.toast-container,
.toast,
.geo-prompt-toast {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Animations */
@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

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

@keyframes slide-toast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVE ENGINE (320px - 768px+)
========================================================= */

/* Mobile & Tablet Base Fixes */
@media (max-width: 900px) {
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

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

/* Tablet / Large Mobile (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
  }

  .step-num-badge {
    margin: 0;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .step-info {
    flex: 1;
    min-width: 0;
  }

  .step-title {
    margin-bottom: 0.25rem;
  }
}

/* Small Screens / Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  /* Header adjustments */
  .header-inner {
    height: 60px;
  }

  .brand-logo {
    height: 32px;
  }

  .badge-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    letter-spacing: 0.04em;
  }

  .cookie-settings-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  /* Hero adjustments */
  .hero-section {
    padding: 2.75rem 0 2rem;
  }

  .hero-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.1rem;
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.18;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.85rem;
    padding: 0 0.25rem;
  }

  /* CTA Button Group */
  .hero-cta-group {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 2.25rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.95rem 1.5rem;
    justify-content: center;
    text-align: center;
  }

  /* Trust Indicators Grid */
  .trust-indicators-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .trust-item {
    font-size: 0.8rem;
    justify-content: flex-start;
  }

  .live-counter-item {
    grid-column: 1 / -1;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
    margin-top: 0.2rem;
  }

  /* Codes Section & Filter Pills */
  .codes-section {
    padding: 2.5rem 0 3.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
  }

  .filter-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0.5rem 0.25rem;
    margin: 0 -0.5rem 1.75rem;
    padding-left: 0.75rem;
    gap: 0.5rem;
  }

  .filter-container::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
  }

  /* Codes Grid */
  .codes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .code-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .reward-title {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
  }

  .code-box-wrapper {
    padding: 0.75rem 0.6rem;
    justify-content: center;
  }

  .code-text {
    font-size: clamp(1rem, 5.5vw, 1.25rem);
    letter-spacing: clamp(0.08em, 2.5vw, 0.15em);
    text-align: center;
  }

  .btn-copy {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    height: 48px;
  }

  /* Warning box */
  .warning-box {
    padding: 1.1rem;
    gap: 0.75rem;
  }

  .warning-icon {
    font-size: 1.4rem;
  }

  .warning-text {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  /* Footer */
  .site-footer {
    margin-top: 3.5rem;
    padding: 2.25rem 0 2rem;
  }

  .footer-links {
    gap: 0.85rem 1rem;
    font-size: 0.82rem;
  }

  /* Cookie Banner Mobile */
  .cookie-banner {
    padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner-inner {
    gap: 1rem;
  }

  .cookie-text {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .btn-cookie-accept,
  .btn-cookie-reject {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.92rem;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .btn-cookie-manage {
    width: 100%;
    text-align: center;
    padding: 0.45rem;
    font-size: 0.85rem;
  }

  /* Preferences Modal Bottom-Sheet */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    padding: 1.5rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    margin: 0;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .preference-item {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .preference-name {
    font-size: 0.88rem;
  }

  .preference-desc {
    font-size: 0.76rem;
  }

  .modal-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .modal-actions button {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-md);
  }

  /* Geolocation Soft Prompt Toast */
  .geo-prompt-toast {
    right: 12px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    padding: 1rem 1.15rem;
  }

  .geo-prompt-btns {
    width: 100%;
    gap: 0.75rem;
  }

  .btn-geo-allow,
  .btn-geo-dismiss {
    flex: 1;
    padding: 0.7rem;
    text-align: center;
    font-size: 0.88rem;
  }

  /* Toast Notification */
  .toast-container {
    left: 1rem;
    right: 1rem;
    top: 70px;
  }

  .toast {
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
  }
}

/* Extra Small Screens (<= 380px, e.g. 360px Android devices) */
@media (max-width: 380px) {
  .container {
    padding: 0 0.75rem;
  }

  .brand-logo {
    height: 28px;
  }

  .badge-tag span:last-child {
    display: none;
    /* Keep pulsing green dot to save header space */
  }

  .badge-tag {
    padding: 0.3rem 0.4rem;
  }

  .cookie-btn-text {
    display: none;
    /* Show icon only on super small widths */
  }

  .cookie-settings-btn {
    padding: 0.35rem 0.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .trust-indicators-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .trust-item {
    font-size: 0.76rem;
  }

  .code-text {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
}