/* Age Gate */
.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-gate.hidden {
  display: none;
}

.age-gate-content {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  animation: ageGateSlideIn 0.4s ease;
}

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

.age-gate-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple-accent), var(--purple-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.age-gate-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.age-gate-text {
  color: var(--gray-text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.age-gate-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 400px) {
  .age-gate-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

.age-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.age-btn-confirm {
  background: linear-gradient(135deg, var(--purple-accent), var(--purple-light));
  color: white;
}

.age-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(145, 70, 255, 0.3);
}

.age-btn-deny {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-text);
  border: 1px solid var(--border-color);
}

.age-btn-deny:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.age-gate-warning {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--orange-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Variables */
:root {
  --primary-dark: #0a0a0b;
  --secondary-dark: #111013;
  --purple-accent: #9146ff;
  --purple-light: #a855f7;
  --blue-accent: #3b82f6;
  --green-accent: #10b981;
  --orange-accent: #f97316;
  --gray-text: #9ca3af;
  --gray-light: #f3f4f6;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 50px rgba(147, 51, 234, 0.2);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--primary-dark);
  color: white;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

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

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu.active {
  display: flex;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  animation: fadeIn 0.2s ease;
}

.nav-menu.active .nav-link {
  font-size: 1.125rem;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    border-bottom: none;
    gap: 2rem;
    background: transparent;
  }
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--purple-light);
}

.nav-link.active {
  color: var(--purple-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple-light);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .nav-link.active::after {
    display: none;
  }
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 800px;
  background: linear-gradient(to right, rgba(147, 51, 234, 0.3), rgba(59, 130, 246, 0.3));
  filter: blur(180px);
  border-radius: 50%;
  pointer-events: none;
}

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

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

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  color: var(--purple-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.live-badge.live-active {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.live-dot {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ef4444;
  border-radius: 50%;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-dot::after {
  content: '';
  position: relative;
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: #dc2626;
  border-radius: 50%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
}

.gradient-text {
  background: linear-gradient(to right, var(--purple-light), var(--blue-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  color: var(--gray-text);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple-accent);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

.cta-button:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.4);
}

.cta-button i {
  transition: transform 0.2s;
}

.cta-button:hover i {
  transform: translateX(4px);
}

/* Stream Panel */

.stream-panel {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  
  max-width: 520px;
  height: 320px;
}


.stream-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: unset; 
  padding: 0;
}


/* Remove old stream-offline styles - replaced by offline-card */

#twitch-embed-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  z-index: 1;
}

#twitch-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* Offline Card Overlay */
.offline-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow: hidden;
  pointer-events: auto;
}

.offline-card.visible {
  opacity: 1;
  visibility: visible;
}

.offline-card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--purple-accent);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

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

.offline-card-content {
  text-align: center;
  padding: 0 1.5rem;
}

.offline-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.offline-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: #6b7280;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.offline-indicator span {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.offline-text {
  color: var(--gray-text);
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Stats */
.stats {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(24, 24, 27, 0.3);
}

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

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

.stat-card {
  text-align: center;
  padding: 1rem;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 1rem;
  margin-bottom: 1rem;
  color: var(--purple-light);
  font-size: 1.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Offers */
.offers {
  padding: 6rem 0;
  background: var(--primary-dark);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-style: italic;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  color: var(--gray-text);
  max-width: 42rem;
  margin: 0 auto;
}

.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.offer-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(24, 24, 27, 0.9);
  transition: all 0.3s;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 400px;
}

.offer-card:hover {
  transform: translateY(-0.5rem);
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.offer-header {
  height: 10rem;
  position: relative;
  overflow: hidden;
}

.betlabel-header {
  background: linear-gradient(135deg, #c6f0c2, #0c8840);
}

.safecasino-header {
  background: linear-gradient(135deg, #eef0df, #387981);
}

.rokubet-header {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.acebet-header {
  background: linear-gradient(135deg, #bacfc4, #337a53);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fbbf24;
  color: black;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
}

.offer-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  opacity: 0.8;
}

.offer-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.offer-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.offer-description {
  color: var(--gray-text);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.offer-perks {
  margin-bottom: 0;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.perk-item:last-child {
  margin-bottom: 0;
}

.perk-item i {
  color: #10b981;
  font-size: 0.875rem;
}

.offer-actions {
  margin-top: auto;
}

.code-box, .code-placeholder {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.code-placeholder {
  display: none;
}

.code-label {
  font-size: 0.7rem;
  color: var(--gray-text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  white-space: nowrap;
}

.code-value {
  font-family: monospace;
  font-weight: 900;
  color: var(--purple-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
  text-align: center;
}

.code-box i {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  flex-shrink: 0;
}

.register-button {
  width: 100%;
  background: white;
  color: black;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 900;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.register-button:hover {
  background: var(--purple-accent);
  color: white;
}

/* Social */
.social {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.social::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(59, 130, 246, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  margin-right: -12rem;
  pointer-events: none;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  text-decoration: none;
  color: white;
  transition: all 0.3s;
  min-width: 120px;
}

.social-card:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-card i {
  font-size: 2rem;
  transition: color 0.2s;
}

.social-card span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-text);
  transition: color 0.2s;
}

.social-card:hover span {
  color: white;
}

.social-card.twitch:hover i {
  color: #9146ff;
}

.social-card.discord:hover i {
  color: #5865f2;
}

.social-card.instagram:hover i {
  color: #e4405f;
}

.social-card.telegram:hover i {
  color: #0088cc;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  background: #09090b;
}

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

.gambling-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.5s;
}

.gambling-logos:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.age-warning {
  width: 3rem;
  height: 3rem;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
}

.gambleaware {
  font-size: 0.875rem;
  font-weight: 800;
  border: 2px solid white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

.responsible {
  font-size: 0.875rem;
  font-weight: 800;
  border: 2px solid white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  font-style: italic;
}

.warning-box {
  max-width: 48rem;
}

.warning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.warning-header span {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warning-text {
  color: var(--gray-text);
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* Animations */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .offer-content {
    padding: 1.5rem;
  }
  
  .gambling-logos {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
