/* ==========================================================================
   Arceus X - Official Cyberpunk Dark Theme & Design System
   ========================================================================== */

:root {
  --bg-dark: #080305;
  --bg-surface: #12060a;
  --bg-card: rgba(24, 9, 15, 0.78);
  --bg-card-hover: rgba(36, 14, 23, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(239, 68, 68, 0.45);

  --primary: #ef4444;
  --primary-glow: #dc2626;
  --primary-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  --gold-accent: #f59e0b;
  --cyan-accent: #38bdf8;
  --green-action: #10b981;
  --green-hover: #059669;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-neon: 0 0 25px rgba(239, 68, 68, 0.45);
  --shadow-red-strong: 0 0 40px rgba(220, 38, 38, 0.65);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(239, 68, 68, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(185, 28, 28, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Navbar & Arceus Logo
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 3, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.brand-logo-img-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
  overflow: hidden;
  padding: 3px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6));
}

.brand-title span {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.65);
}

.btn-download {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.7);
  background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseRed 1.8s infinite;
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   Hero Section with Arceus Mascot
   ========================================================================== */
.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-left {
  text-align: left;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

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

.gradient-text {
  background: linear-gradient(135deg, #ff7b7b 0%, #ef4444 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.2rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Mascot Card Display */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mascot-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.15) 0%, rgba(18, 6, 11, 0.8) 75%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 0 45px rgba(239, 68, 68, 0.25);
  backdrop-filter: blur(12px);
}

.mascot-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.mascot-img {
  width: 100%;
  max-width: 290px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
  animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mascot-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 3, 6, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fca5a5;
  margin-top: 1rem;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}

.stat-box:hover {
  border-color: var(--border-glow);
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

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

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   Card Grids & Components
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Script Cards
   ========================================================================== */
.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.script-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

.script-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.game-tag {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.vip-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.script-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.script-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.script-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.script-actions {
  display: flex;
  gap: 0.6rem;
}

/* ==========================================================================
   Code Block & Copying
   ========================================================================== */
.code-box {
  background: #090d18;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin: 1.5rem 0;
  position: relative;
  overflow-x: auto;
}

.code-box pre {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   Download Page Cards & Flow
   ========================================================================== */
.download-hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto 4rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.download-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.download-card:hover {
  transform: translateY(-5px);
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-meta-list {
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.download-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-meta-item span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Custom Cyber Locker & Live Offer Feed Modal (AdBlueMedia API)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

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

.custom-cyber-locker {
  background: linear-gradient(180deg, #180910 0%, #0c0407 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.4), 0 20px 40px rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 2.2rem;
  position: relative;
  animation: cyberModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes cyberModalIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.locker-top-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 100px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

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

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.locker-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.cyber-shield {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(244, 63, 94, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 0.8rem;
  animation: floatShield 3s ease-in-out infinite;
}

@keyframes floatShield {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.locker-headline {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 0.3rem;
}

.locker-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Offers Container */
.live-offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.live-offers-list::-webkit-scrollbar {
  width: 5px;
}
.live-offers-list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 25, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  gap: 1rem;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
}

.offer-card:hover {
  background: rgba(28, 38, 70, 0.95);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.25);
}

.offer-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-details {
  flex: 1;
  min-width: 0;
}

.offer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.offer-anchor {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.offer-btn {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.offer-card:hover .offer-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Radar Pulse / Status Bar */
.locker-status-bar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radar-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinRadar 1s linear infinite;
}

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

.verify-refresh-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.verify-refresh-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
}

/* Success Unlocked State */
.locker-success-screen {
  text-align: center;
  padding: 1.5rem 0;
  display: none;
}

.success-check-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

/* Skeleton Loading for Offers */
.offer-skeleton {
  height: 64px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--green-action);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #04060d;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.8rem;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

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

/* ==========================================================================
   Mobile Navigation Drawer & Toggle
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  cursor: pointer;
  z-index: 200;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--primary);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--primary);
}

.desktop-only {
  display: inline-flex;
}

/* Mobile Slide-Out Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 84%;
  max-width: 320px;
  height: 100vh;
  background: #0d0407;
  border-left: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.85);
  z-index: 10000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: translateX(4px);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Category Pills Horizontal Scrolling on Mobile */
.category-pills-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-pills-scroll::-webkit-scrollbar {
  display: none;
}
.category-pills-scroll .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   Master Responsive Engine (Tablets & Mobile - Complete Optimization)
   ========================================================================== */

/* 1. Tablets & iPads (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 1.8rem;
  }
  .nav-links {
    gap: 1.1rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .hero-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .mascot-card {
    max-width: 320px;
    padding: 2rem 1.5rem;
  }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  /* 2-Column Grid on Tablets */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .download-card.featured {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.2rem;
  }
}

/* 2. Tablets Portrait & Large Phablets (max-width: 768px) */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .navbar {
    padding: 0.75rem 0;
  }
  .nav-brand {
    font-size: 1.35rem;
    gap: 0.65rem;
  }
  .brand-logo-img-wrapper {
    width: 38px;
    height: 38px;
  }
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-left {
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 1.8rem;
    font-size: 1.05rem;
    max-width: 540px;
  }
  .hero-cta {
    justify-content: center;
  }
  .mascot-card {
    max-width: 300px;
    margin: 0 auto;
    padding: 1.8rem 1.4rem;
  }
  .mascot-img {
    max-width: 240px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .download-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* 3. Standard Mobile Smartphones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero {
    padding: 2.5rem 0.8rem 1.5rem;
  }
  .hero-tag {
    margin-bottom: 1rem;
  }
  .badge-live {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin-bottom: 0.9rem;
  }
  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  .btn-lg {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
  .nav-dl-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
  .mascot-card {
    max-width: 270px;
    padding: 1.5rem 1rem;
  }
  .mascot-img {
    max-width: 210px;
  }

  /* 2x2 Stats Grid for clean smartphone layout */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .stat-box {
    padding: 0.8rem 0.5rem;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  /* Sections */
  .section {
    padding: 2.4rem 0;
  }
  .section-header {
    margin-bottom: 1.8rem;
  }
  .section-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }
  .section-subtitle {
    font-size: 0.88rem;
  }

  /* Cards & Components */
  .feature-card, .script-card, .download-card {
    padding: 1.3rem 1rem;
    border-radius: 14px;
  }
  .feature-title {
    font-size: 1.15rem;
  }
  .feature-desc {
    font-size: 0.88rem;
  }
  .script-title {
    font-size: 1.05rem;
  }
  .script-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .script-actions {
    flex-direction: row;
  }
  .script-actions .btn-primary {
    flex: 1;
    font-size: 0.85rem;
  }

  /* Custom Cyber Locker on Mobile */
  .modal-overlay {
    padding: 0.4rem;
  }
  .custom-cyber-locker {
    padding: 1.3rem 0.9rem;
    max-height: 94vh;
    border-radius: 16px;
    width: 98%;
  }
  .locker-headline {
    font-size: 1.2rem;
  }
  .locker-subtext {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .live-offers-list {
    max-height: 220px;
    gap: 0.55rem;
  }
  .offer-card {
    padding: 0.65rem 0.7rem;
    gap: 0.6rem;
    border-radius: 10px;
  }
  .offer-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .offer-title {
    font-size: 0.84rem;
  }
  .offer-anchor {
    font-size: 0.72rem;
  }
  .offer-badge {
    font-size: 0.65rem;
  }
  .offer-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
  .locker-status-bar {
    padding: 0.65rem 0.8rem;
    font-size: 0.74rem;
  }

  /* Code Block */
  .code-box {
    padding: 0.85rem 0.7rem;
    border-radius: 10px;
    margin: 1rem 0;
  }
  .code-box pre {
    font-size: 0.78rem;
  }
  .copy-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  /* Footer */
  .footer {
    padding: 2.2rem 0 1.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: center;
  }
  .footer-brand p {
    margin: 0.6rem auto 0;
    font-size: 0.88rem;
  }
}

/* 4. Small / Compact Screens (max-width: 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .brand-title {
    font-size: 1.2rem;
  }
  .nav-dl-btn {
    display: none; /* Keep header clean on ultra-compact phones */
  }
  .mascot-card {
    max-width: 240px;
    padding: 1.2rem 0.8rem;
  }
  .mascot-img {
    max-width: 180px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .stat-number {
    font-size: 1.15rem;
  }
  .offer-card {
    flex-wrap: wrap;
  }
  .offer-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.3rem;
  }
}
