/* ===================================================
   PINCO CASINO — Main Stylesheet
   Dark premium neon theme
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg:            #0b0b0e;
  --bg-card:       #0f0f14;
  --accent:        #FF4D1A;
  --accent-hover:  #ff6a3d;
  --gold:          #FFD700;
  --gold-light:    #ffe55c;
  --teal:          #00c9a7;
  --teal-dark:     #007a64;
  --green-neon:    #39ff14;
  --white:         #ffffff;
  --gray:          #8a8a9a;
  --font:          'Montserrat', sans-serif;
  --radius-card:   20px;
  --shadow-card:   0 20px 60px rgba(0,0,0,.7);
  --transition:    .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===================================================
   NEON LIGHT STREAKS (background decoration)
   =================================================== */
.lights-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.light {
  position: absolute;
  width: 2px;
  border-radius: 999px;
  animation: lightFloat linear infinite;
  opacity: 0;
}

/* Vertical green streaks */
.light.x1  { left: 7%;   height: 160px; background: linear-gradient(to bottom, transparent, #39ff14aa, transparent); animation-duration: 6s;  animation-delay: 0s;    top: -200px; }
.light.x2  { left: 18%;  height: 100px; background: linear-gradient(to bottom, transparent, #39ff1466, transparent); animation-duration: 9s;  animation-delay: 1.5s;  top: -150px; }
.light.x3  { left: 32%;  height: 200px; background: linear-gradient(to bottom, transparent, #00c9a766, transparent); animation-duration: 7s;  animation-delay: 3s;    top: -250px; }
.light.x4  { left: 46%;  height: 120px; background: linear-gradient(to bottom, transparent, #39ff1480, transparent); animation-duration: 10s; animation-delay: 0.8s;  top: -170px; }
.light.x5  { left: 58%;  height: 180px; background: linear-gradient(to bottom, transparent, #FF4D1A55, transparent); animation-duration: 8s;  animation-delay: 2.2s;  top: -220px; }
.light.x6  { left: 71%;  height: 90px;  background: linear-gradient(to bottom, transparent, #39ff1466, transparent); animation-duration: 5s;  animation-delay: 4s;    top: -130px; }
.light.x7  { left: 83%;  height: 140px; background: linear-gradient(to bottom, transparent, #00c9a799, transparent); animation-duration: 11s; animation-delay: 1s;    top: -180px; }
.light.x8  { left: 24%;  height: 110px; background: linear-gradient(to bottom, transparent, #FFD70055, transparent); animation-duration: 7.5s;animation-delay: 5s;    top: -160px; }
.light.x9  { left: 91%;  height: 160px; background: linear-gradient(to bottom, transparent, #39ff1455, transparent); animation-duration: 9.5s;animation-delay: 2s;    top: -200px; }

@keyframes lightFloat {
  0%   { transform: translateY(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ===================================================
   HEADER
   =================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,14,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo__svg { height: 36px; width: auto; }

/* Auth nav */
.auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Login button */
.btn--login {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--white);
}
.btn--login:hover {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255,77,26,.5);
  transform: translateY(-1px);
}

/* Register button */
.btn--register {
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--accent);
}
.btn--register:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px rgba(255,77,26,.5);
  transform: translateY(-1px);
}

/* Play CTA button */
.btn--play {
  background: linear-gradient(135deg, #FF4D1A, #ff7043);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 12px 36px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255,77,26,.45);
  margin-top: 20px;
}
.btn--play:hover {
  background: linear-gradient(135deg, #ff6a3d, #FF4D1A);
  box-shadow: 0 6px 28px rgba(255,77,26,.65);
  transform: translateY(-2px) scale(1.03);
}
.btn--play:active { transform: translateY(0) scale(1); }

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim .5s linear;
  background: rgba(255,255,255,.3);
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ===================================================
   MAIN / PROMO CARDS
   =================================================== */
.main {
  position: relative;
  z-index: 1;
  padding: 48px 0 64px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

/* Base card */
.card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.8);
}

/* Card background layer */
.card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}

/* Card glow */
.card__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover .card__glow { opacity: 1; }

/* Casino card background */
.card--casino .card__bg {
  background:
    radial-gradient(ellipse at 70% 100%, rgba(255,77,26,.35) 0%, transparent 65%),
    radial-gradient(ellipse at 30% 50%, rgba(180,20,0,.3) 0%, transparent 60%),
    linear-gradient(160deg, #1a0800 0%, #0e0603 50%, #130000 100%);
}
.card--casino .card__glow {
  background: radial-gradient(ellipse at center, rgba(255,77,26,.2) 0%, transparent 70%);
}
.card--casino {
  border: 1px solid rgba(255,77,26,.25);
}

/* Sports card background */
.card--sports .card__bg {
  background:
    radial-gradient(ellipse at 70% 100%, rgba(0,201,167,.3) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 60%, rgba(0,120,100,.25) 0%, transparent 60%),
    linear-gradient(160deg, #001a16 0%, #00120e 50%, #001510 100%);
}
.card--sports .card__glow {
  background: radial-gradient(ellipse at center, rgba(0,201,167,.2) 0%, transparent 70%);
}
.card--sports {
  border: 1px solid rgba(0,201,167,.2);
}

/* Card decorative icon pattern (sports) */
.card--sports .card__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,201,167,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: inherit;
}

/* Card stadium glow (casino) */
.card--casino .card__bg::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 180px;
  background: radial-gradient(ellipse, rgba(255,120,50,.25) 0%, transparent 70%);
  border-radius: 50%;
}

/* Model figure placeholder */
.card__figure {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 50%;
  height: 115%;
  pointer-events: none;
  overflow: visible;
}

.card__figure-model {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}

/* Casino model */
.card__figure-model--casino {
  background-image: url('../img/model-casino.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  filter: drop-shadow(0 0 24px rgba(255,77,26,.45));
}

/* Sports model */
.card__figure-model--sports {
  background-image: url('../img/model-sports.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  filter: drop-shadow(0 0 24px rgba(0,201,167,.4));
}

/* Card content */
.card__content {
  position: relative;
  z-index: 3;
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 60%;
}

/* Card title / label stack */
.card__title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.card__label { display: block; }

.card__label--category {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.card__label--bonus {
  font-size: clamp(.9rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .08em;
  margin-top: 4px;
}
.card__label--bonus small {
  font-size: .85em;
  font-weight: 400;
}

.card__label--percent {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: .02em;
  text-shadow: 0 0 20px rgba(255,215,0,.5), 0 2px 8px rgba(0,0,0,.6);
  margin-top: 2px;
}

/* ===================================================
   CONTENT SECTION
   =================================================== */
.content {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  padding: 0 16px;
}

.content__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: .02em;
}

.content__text {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 16px;
}
.content__text:last-child { margin-bottom: 0; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 36px 0 28px;
  background: rgba(8,8,10,.95);
}

/* Payment logos row */
.payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 24px;
}

.payment-logo {
  height: 36px;
  width: auto;
  opacity: .55;
  transition: opacity var(--transition), transform var(--transition);
  filter: grayscale(20%);
}
.payment-logo:hover { opacity: .9; transform: scale(1.08); }
.payment-logo svg { height: 36px; width: auto; }

/* Copyright */
.copyright {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.copyright__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  opacity: .6;
}
.copyright__icon svg { width: 40px; height: 40px; }

.copyright__text {
  font-size: .75rem;
  line-height: 1.65;
  color: var(--gray);
  opacity: .7;
}

/* ===================================================
   RESPONSIVE — TABLET (≤ 900px)
   =================================================== */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    min-height: 220px;
  }

  .card__content { width: 65%; padding: 22px 24px 28px; }
  .card__figure   { width: 38%; }
}

/* ===================================================
   RESPONSIVE — MOBILE (≤ 600px)
   =================================================== */
@media (max-width: 600px) {
  .header__inner { height: 56px; }

  .btn { padding: 8px 14px; font-size: .8rem; }
  .btn__icon { width: 16px; height: 16px; }

  .main { padding: 28px 0 44px; }

  .cards { margin-bottom: 40px; gap: 16px; }

  .card { min-height: 200px; }
  .card__content { width: 60%; padding: 18px 18px 22px; }
  .card__figure  { width: 42%; }

  .card__label--percent { font-size: clamp(2rem, 10vw, 2.8rem); }

  .btn--play { padding: 10px 28px; font-size: .9rem; }

  .payments { gap: 14px; }
  .payment-logo, .payment-logo svg { height: 28px; }

  .copyright { flex-direction: column; align-items: center; text-align: center; }
  .copyright__icon { margin: 0 auto; }
}

/* ===================================================
   SCROLL ANIMATION (subtle fade-in)
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
