/* ===== RESET & VARS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Brand palette: Neon Casino — deep navy/black canvas, electric cyan glow, chrome-blue gradient ---- */
  --black:      #030711;
  --navy:       #050b1a;
  --navy-2:     #0a1330;
  --card:       rgba(10, 22, 48, 0.62);
  --card-hi:    rgba(14, 30, 64, 0.78);

  --cyan:        #22e0ff;
  --cyan-bright: #7df9ff;
  --cyan-deep:   #0ea5c4;
  --blue:        #1f5fd1;
  --blue-deep:   #0b2e7a;

  --text:  #eaf6ff;
  --muted: #a9c2e0;
  --dim:   #6f88ab;

  --border:      rgba(34, 224, 255, 0.28);
  --border-soft: rgba(34, 224, 255, 0.14);

  --grad-cyan: linear-gradient(135deg, #7df9ff 0%, #22e0ff 45%, #1f5fd1 100%);
  --grad-text: linear-gradient(135deg, #bfeeff 0%, #7df9ff 40%, #22e0ff 75%, #1f5fd1 100%);

  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --glow-cyan: 0 0 0 1px rgba(34,224,255,0.3), 0 0 26px rgba(34,224,255,0.28), 0 14px 32px rgba(2,6,16,0.6);
  --shadow-lg: 0 18px 46px rgba(2,6,16,0.65);

  --font-display: 'Prompt', sans-serif;

  --container-sm: 480px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', sans-serif;
  background-color: var(--navy);
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ===== BACKGROUND LAYER ===== */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('assets/BG.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 28%, rgba(5,11,26,0.35) 0%, rgba(5,11,26,0.72) 60%, rgba(3,7,17,0.92) 100%),
    linear-gradient(180deg, rgba(3,7,17,0.55) 0%, rgba(3,7,17,0.25) 30%, rgba(3,7,17,0.55) 72%, rgba(3,7,17,0.95) 100%);
}

/* ===== TOP TICKER ===== */
.ticker {
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
  background: rgba(3, 7, 17, 0.55);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.5rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: ticker-scroll 22s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-item .dot { color: var(--cyan); font-size: 0.9rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-btn {
  position: fixed;
  top: 3rem;
  right: 0.9rem;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 22, 48, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  box-shadow: var(--glow-cyan);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang-btn svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0.5rem;
  text-align: center;
}
.hero-logo {
  width: min(78vw, 340px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(34,224,255,0.45)) drop-shadow(0 0 60px rgba(34,224,255,0.22));
  animation: logo-float 4.5s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* ===== LOGIN FORM ===== */
.login-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.65rem 2.5rem;
  max-width: var(--container-sm);
  width: 100%;
  margin: 0 auto;
}
.login-main form { width: 100%; }
.login-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(34,224,255,0.25);
}
.field {
  width: 100%;
  margin-bottom: 1rem;
  text-align: left;
}
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}
.field-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: rgba(234, 246, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  box-shadow: 0 8px 24px rgba(2,6,16,0.35), 0 0 0 1px rgba(34,224,255,0.08) inset;
}
.field-input svg { flex-shrink: 0; color: var(--blue-deep); width: 18px; height: 18px; }
.field-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: 'Prompt', sans-serif;
  font-size: 0.92rem;
  color: #0a1330;
}
.field-input input::placeholder { color: #8296b8; }

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--grad-cyan);
  color: #041022;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 999px;
  box-shadow: var(--glow-cyan);
  margin-top: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-login:hover { transform: translateY(-2px); }
.btn-login svg { width: 19px; height: 19px; }
.btn-login:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-login:disabled:hover { transform: none; }

.register-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.register-link svg { width: 16px; height: 16px; }

.btn-line {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #35e07a 0%, #06C755 60%, #04a344 100%);
  color: #04270f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  margin-top: 1.35rem;
  box-shadow: 0 0 0 1px rgba(6,199,85,0.35), 0 14px 30px rgba(2,6,16,0.5);
  transition: transform 0.2s ease;
}
.btn-line:hover { transform: translateY(-2px); }
.btn-line .ico-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: #04270f; color: #fff; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.02em; border-radius: 4px; padding: 2px 6px; line-height: 1.3;
}

/* ===== ABOUT TEXT ===== */
.about-text {
  position: relative;
  z-index: 2;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  text-align: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 0.5rem;
}
.about-text p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--dim);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-sm);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(5, 11, 26, 0.92);
  border-top: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.55rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.3rem 0.2rem;
  background: none;
  border: none;
}
.bn-item svg { width: 21px; height: 21px; color: var(--muted); }
.bn-item.active,
.bn-item:hover { color: var(--cyan-bright); }
.bn-item.active svg,
.bn-item:hover svg { color: var(--cyan-bright); filter: drop-shadow(0 0 8px rgba(34,224,255,0.55)); }
.bn-item .ico-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: #06C755; color: #fff; font-size: 0.56rem; font-weight: 800;
  letter-spacing: 0.02em; border-radius: 4px; padding: 2px 5px; line-height: 1.3;
}

/* body padding so content never sits under fixed bottom nav */
body { padding-bottom: 74px; }

@media (min-width: 480px) {
  .hero { padding-top: 2.25rem; }
}
