/* OGAds Gaming Landing Page - Design System & Styling */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #070913;
  --bg-card: rgba(16, 21, 40, 0.7);
  --bg-card-border: rgba(0, 240, 255, 0.2);
  --bg-card-hover: rgba(22, 30, 60, 0.85);
  
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.4);
  --secondary: #ff0055;
  --secondary-glow: rgba(255, 0, 85, 0.4);
  --accent: #7000ff;
  --success: #00ff88;
  --warning: #ffb700;
  
  --text-main: #f0f4ff;
  --text-muted: #8a99ad;
  
  --font-heading: 'Orbitron', sans-serif;
  --font-sub: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-pink-glow: 0 0 25px rgba(255, 0, 85, 0.25);
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 240, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 85, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Animated Grid Lines */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Top Live Notification Banner */
.ticker-wrapper {
  background: rgba(10, 14, 28, 0.9);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  animation: scrollTicker 35s linear infinite;
}

@keyframes scrollTicker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ticker-item strong {
  color: var(--primary);
}

.ticker-item .reward-tag {
  color: var(--success);
  font-weight: 700;
}

/* Navbar Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px var(--primary-glow);
}

.logo span {
  color: var(--primary);
}

.status-pills {
  display: flex;
  gap: 15px;
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-online .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 45px 15px 30px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(255, 0, 85, 0.2), rgba(112, 0, 255, 0.2));
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  box-shadow: var(--shadow-pink-glow);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* Game Selection Section */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.game-card-image {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.5);
}

.game-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
}

.game-card-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.btn-select-game {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #0099ff 100%);
  border: none;
  color: #050b14;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.game-card:hover .btn-select-game {
  background: linear-gradient(135deg, #00ffff 0%, var(--primary) 100%);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0d1224;
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--secondary);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary);
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Reward Selection Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.reward-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.reward-option:hover, .reward-option.selected {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Platform Select Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.platform-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 5px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.platform-btn:hover, .platform-btn.selected {
  border-color: var(--secondary);
  background: rgba(255, 0, 85, 0.1);
  color: #fff;
}

/* Action Button */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #ff00ab 100%);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-pink-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 1.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.6);
}

/* Terminal Generator Modal */
.terminal-window {
  background: #050811;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: var(--primary);
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.terminal-line {
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInLine 0.3s forwards;
}

.terminal-line.success { color: var(--success); }
.terminal-line.warning { color: var(--warning); }
.terminal-line.error { color: var(--secondary); }

@keyframes fadeInLine {
  to { opacity: 1; }
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.3s ease;
}

/* Lock Offer / Final Step Modal */
.locker-card {
  text-align: center;
}

.locker-icon {
  font-size: 3.5rem;
  color: var(--warning);
  margin-bottom: 15px;
  animation: pulse 1.5s infinite;
}

.locker-instructions {
  background: rgba(255, 183, 0, 0.08);
  border: 1px dashed var(--warning);
  border-radius: var(--radius-md);
  padding: 15px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.btn-locker {
  background: linear-gradient(135deg, #00ff88 0%, #00b359 100%);
  color: #040912;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
  width: 100%;
  letter-spacing: 1.5px;
  transition: all 0.2s ease;
}

.btn-locker:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.7);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 60px;
}

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

/* Responsive adjust */
@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rewards-grid {
    grid-template-columns: 1fr;
  }
}
