﻿/* ===== EVA CASINO — SHARED STYLES ===== */

:root {
  --bg-deep:    #050c08;
  --bg-dark:    #091410;
  --bg-card:    #0e1e16;
  --bg-card2:   #132318;
  --bg-sidebar: #0b1812;
  --border:     #1e3828;
  --gold:       #c9a227;
  --gold-light: #f0c040;
  --gold-glow:  #ffd700;
  --green:      #1a6b3a;
  --green-mid:  #145c30;
  --green-dark: #0d3d21;
  --text-main:  #e8f0ea;
  --text-muted: #8aab92;
  --text-dim:   #4d7258;
  --radius:     10px;
  --radius-lg:  16px;
  --sidebar-w:  230px;
  --header-h:   68px;
  --shadow-gold: 0 0 18px rgba(201,162,39,.35);
  --shadow-card: 0 4px 24px rgba(0,0,0,.55);
  --transition:  .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 3px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(5,12,8,.98) 0%, rgba(9,20,16,.95) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 44px; width: auto; }
.header-logo span {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .5px;
}

.header-nav { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center;
       padding: 9px 22px; border-radius: var(--radius);
       font-size: .9rem; font-weight: 600; transition: var(--transition); }

.btn-gold {
  background: linear-gradient(135deg, #c9a227 0%, #f0c040 50%, #c9a227 100%);
  color: #0a0900;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f0c040 0%, #ffd700 50%, #f0c040 100%);
  box-shadow: 0 0 28px rgba(255,215,0,.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(201,162,39,.12);
  border-color: var(--gold-light);
}

/* ===== LAYOUT ===== */
.page-body {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 0 40px;
  z-index: 90;
}

.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: .88rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--gold-light);
  background: rgba(201,162,39,.07);
  border-left-color: var(--gold);
}
.sidebar-nav li a .nav-icon { font-size: 1rem; min-width: 20px; text-align: center; }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 18px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('header-bg.webp');
  background-size: cover;
  background-position: center top;
  filter: brightness(.55) saturate(1.1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,12,8,0) 0%,
    rgba(5,12,8,.3) 40%,
    rgba(5,12,8,.92) 85%,
    var(--bg-deep) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 44px 44px;
  max-width: 680px;
}
.hero-label {
  display: inline-block;
  background: rgba(201,162,39,.18);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: 11px 28px; font-size: .95rem; }

/* ===== WINS TICKER ===== */
.wins-bar {
  background: linear-gradient(90deg, var(--bg-dark) 0%, #0e1e16 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  overflow: hidden;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 0;
}

.wins-ticker {
  display: flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.wins-ticker:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.win-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: .8rem;
  border-right: 1px solid var(--border);
}
.win-item .win-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--gold-light);
  flex-shrink: 0;
}
.win-item .win-name { color: var(--text-muted); }
.win-item .win-game { color: var(--text-dim); font-size: .75rem; }
.win-item .win-amount {
  color: var(--gold-light);
  font-weight: 700;
  font-size: .85rem;
}
.win-badge {
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.3);
  color: var(--gold);
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== SECTION WRAPPER ===== */
.section { padding: 36px 44px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 2px;
  flex-shrink: 0;
}
.section-link {
  font-size: .82rem;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,162,39,.3);
  transition: var(--transition);
}
.section-link:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* ===== GAME GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: var(--shadow-card);
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 20px rgba(201,162,39,.15);
  border-color: rgba(201,162,39,.4);
}
.game-card-img {
  width: 100%;
  aspect-ratio: 3/2.2;
  object-fit: cover;
  display: block;
  transition: filter .22s;
}
.game-card:hover .game-card-img { filter: brightness(1.1); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(5,12,8,.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity .22s;
}
.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-overlay .btn {
  width: 100%;
  padding: 7px;
  font-size: .78rem;
  border-radius: 6px;
}

.game-title {
  padding: 8px 10px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--bg-card2);
}

/* ===== LIVE WINS TABLE ===== */
.wins-live {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.wins-live-header {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-dim);
}
.wins-live-body { max-height: 340px; overflow-y: auto; }
.wins-live-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(30,56,40,.5);
  font-size: .82rem;
  transition: background .15s;
  animation: row-in .35s ease;
}
.wins-live-row:hover { background: rgba(201,162,39,.04); }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}
.wins-live-row .player { display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.wins-live-row .player-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--gold-light);
  flex-shrink: 0;
}
.wins-live-row .game-name { color: var(--text-muted); font-size: .8rem; }
.wins-live-row .multiplier { color: #9ee8bb; font-weight: 600; }
.wins-live-row .amount { color: var(--gold-light); font-weight: 700; text-align: right; }

/* ===== BONUS CARD ===== */
.bonus-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color .2s;
}
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.bonus-card:hover { border-color: rgba(201,162,39,.4); }
.bonus-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.bonus-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55; }
.bonus-card .bonus-badge {
  display: inline-block;
  background: rgba(201,162,39,.12);
  border: 1px solid rgba(201,162,39,.3);
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ===== ARTICLE / INNER PAGE ===== */
.inner-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
  border-bottom: 1px solid var(--border);
  padding: 44px 44px 36px;
}
.inner-hero h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.inner-hero p { font-size: .95rem; color: var(--text-muted); max-width: 640px; }
.inner-hero .breadcrumb {
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.inner-hero .breadcrumb a { color: var(--gold); }

.article { max-width: 820px; }
.article h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 28px 0 10px;
}
.article p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.article ul { list-style: none; padding-left: 0; margin-bottom: 16px; }
.article ul li {
  font-size: .9rem;
  color: var(--text-muted);
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.55;
}
.article ul li::before {
  content: '✦';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: .65rem;
  top: 8px;
}
.info-box {
  background: rgba(26,107,58,.1);
  border: 1px solid rgba(26,107,58,.3);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--text-muted);
  margin: 16px 0;
  line-height: 1.6;
}
.info-box strong { color: #a8e6be; }
.warning-box {
  background: rgba(201,162,39,.08);
  border: 1px solid rgba(201,162,39,.25);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--text-muted);
  margin: 16px 0;
  line-height: 1.6;
}
.warning-box strong { color: var(--gold-light); }

/* ===== PROMO CODE BOX ===== */
.promo-box {
  background: var(--bg-card2);
  border: 1px solid rgba(201,162,39,.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
  max-width: 520px;
}
.promo-code {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold-light);
  background: rgba(201,162,39,.1);
  border: 2px dashed rgba(201,162,39,.4);
  padding: 10px 24px;
  border-radius: var(--radius);
  flex: 1;
  text-align: center;
}
.copy-btn {
  background: linear-gradient(135deg, #c9a227, #f0c040);
  color: #0a0900;
  border: none;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.copy-btn:hover { background: linear-gradient(135deg, #f0c040, #ffd700); }
.copy-btn.copied { background: #1a6b3a; color: #9ee8bb; }

/* ===== AUTH FORMS ===== */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(26,107,58,.12) 0%, transparent 60%),
              var(--bg-deep);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card), 0 0 60px rgba(201,162,39,.07);
}
.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.auth-card .auth-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.auth-card .auth-sub a { color: var(--gold); }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input, .form-group select {
  width: 100%;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--text-main);
  transition: border-color .2s;
  outline: none;
  appearance: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.12);
}
.form-group input::placeholder { color: var(--text-dim); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-btn {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #c9a227 0%, #f0c040 50%, #c9a227 100%);
  color: #0a0900;
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.auth-btn:hover {
  background: linear-gradient(135deg, #f0c040, #ffd700);
  box-shadow: 0 0 28px rgba(255,215,0,.5);
  transform: translateY(-1px);
}

.divider-or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; font-size: .8rem; color: var(--text-dim);
}
.divider-or::before, .divider-or::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .83rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.social-btn:hover { border-color: rgba(201,162,39,.4); color: var(--text-main); }

/* ===== FOOTER ===== */
.site-footer {
  margin-left: var(--sidebar-w);
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 32px 44px 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-brand p { font-size: .82rem; color: var(--text-dim); line-height: 1.65; margin-top: 10px; max-width: 260px; }
.footer-col h4 {
  font-size: .78rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .82rem; color: var(--text-dim); transition: color .15s; }
.footer-col ul li a:hover { color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: .75rem; color: var(--text-dim); }
.footer-badges { display: flex; gap: 8px; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--border); color: var(--text-dim);
  font-size: .7rem; font-weight: 700; border: 1.5px solid var(--text-dim);
}

/* ===== BURGER BUTTON ===== */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  margin-right: 10px;
}
.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all .25s;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 89;
}
.sidebar-overlay.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    transform: translateX(-230px);
    transition: transform .3s ease;
    width: 230px;
    z-index: 91;
  }
  .sidebar.open { transform: translateX(0); }
  .site-footer { margin-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 0 20px 32px; }
  .section { padding: 24px 20px; }
  .inner-hero { padding: 28px 20px; }
  .burger-btn { display: flex; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .wins-live-header, .wins-live-row { grid-template-columns: 2fr 2fr 0fr 1fr; }
  .wins-live-header .col-mult, .wins-live-row .multiplier { display: none; }
  .auth-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
