/* MejorCasinoOnline.site — Dark Mode Neon UI
   Pure CSS, mobile-first, fast-loading, WCAG-friendly.
*/
:root{
  --bg:#050814;
  --bg2:#0b1224;
  --card:#0f172a;
  --card2:#0b132a;
  --text:#e2e8f0;
  --muted:#94a3b8;
  --line:rgba(148,163,184,.18);
  --green:#22c55e;
  --blue:#0ea5e9;
  --red:#ef4444;
  --yellow:#facc15;

  --radius:18px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(34,197,94,.12), transparent 55%),
    radial-gradient(1000px 700px at 90% 85%, rgba(14,165,233,.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  line-height:1.55;
}

img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
p{margin:0 0 14px}
small{color:var(--muted)}
.container{width:min(var(--max), calc(100% - 32px)); margin:0 auto}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; background:#fff; color:#000; border-radius:10px; z-index:9999;
}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(5,8,20,.72);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px; min-width: 210px;
}
.brand img{width:40px; height:40px}
.brand-name{
  font-weight:800; letter-spacing:.2px;
}
.brand-tag{
  display:block; font-size:12px; color:var(--muted); margin-top:2px;
}

.nav{
  display:flex; align-items:center; gap:14px;
}
.nav a{
  font-size:14px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  opacity:.92;
}
.nav a:hover{background: rgba(226,232,240,.06)}
.nav .active{background: rgba(14,165,233,.10); border:1px solid rgba(14,165,233,.22)}

.menu-btn{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  background: rgba(226,232,240,.06);
  border:1px solid var(--line);
  color:var(--text);
  align-items:center; justify-content:center;
  cursor:pointer;
}
.menu-btn span{
  width:18px; height:2px; display:block; background: var(--text);
  border-radius:2px; position:relative;
}
.menu-btn span::before,.menu-btn span::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background: var(--text); border-radius:2px;
}
.menu-btn span::before{top:-6px}
.menu-btn span::after{top:6px}

@media (max-width: 940px){
  .menu-btn{display:flex}
  .nav{
    position:fixed; inset:64px 12px auto 12px;
    display:none;
    flex-direction:column;
    padding:12px;
    border-radius:18px;
    background: rgba(15,23,42,.95);
    border:1px solid rgba(148,163,184,.18);
    box-shadow: var(--shadow);
  }
  .nav.open{display:flex}
  .nav a{width:100%}
}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(14,165,233,.25);
  background: rgba(14,165,233,.08);
  font-size:12px;
  color: var(--text);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.22);
  background: rgba(226,232,240,.06);
  color: var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
  user-select:none;
}
.btn:hover{background: rgba(226,232,240,.09)}
.btn:active{transform: translateY(1px)}
.btn.primary{
  background: linear-gradient(90deg, rgba(34,197,94,.95), rgba(14,165,233,.95));
  border-color: transparent;
  color:#05101f;
}
.btn.primary:hover{filter: brightness(1.02)}
.btn.ghost{
  background: transparent;
  border:1px solid rgba(14,165,233,.35);
}
.btn.small{padding:10px 12px; font-size:14px}

.hero{
  padding:28px 0 12px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 940px){
  .hero-grid{grid-template-columns:1fr}
}
.card{
  background: rgba(15,23,42,.88);
  border:1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
.card.soft{
  background: rgba(15,23,42,.65);
}
.kicker{
  font-size:13px; color:var(--muted);
  margin-bottom:10px;
}
h1{
  margin:0 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height:1.12;
}
h2{
  margin:0 0 10px;
  font-size: clamp(20px, 2.4vw, 28px);
}
h3{
  margin:0 0 8px;
  font-size: 18px;
}
.lead{font-size:16px; color: var(--text); opacity:.92}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.hero-media{
  padding:12px;
  overflow:hidden;
}
.hero-media img{border-radius: 14px; border:1px solid rgba(148,163,184,.18)}

.section{padding:18px 0}
.section .section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-bottom:12px;
}
.grid-3{
  display:grid; gap:12px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 940px){ .grid-3{grid-template-columns:1fr} }

.icon{
  width:42px; height:42px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(14,165,233,.18));
  border:1px solid rgba(14,165,233,.20);
  display:grid; place-items:center;
}
.icon svg{width:22px; height:22px; fill: none; stroke: var(--text); stroke-width:2}

.table-wrap{overflow:auto; border-radius: var(--radius); border:1px solid rgba(148,163,184,.18)}
.rank-table{
  width:100%;
  border-collapse:collapse;
  min-width: 760px;
  background: rgba(15,23,42,.75);
}
.rank-table th,.rank-table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(148,163,184,.14);
  text-align:left;
  vertical-align:middle;
  font-size:14px;
}
.rank-table th{color: var(--muted); font-weight:700}
.rank-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
}
.stars{letter-spacing:1px; color: var(--yellow)}
.note{color: var(--muted); font-size:13px}

.steps{
  display:grid; gap:12px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 940px){ .steps{grid-template-columns:1fr} }
.step{
  padding:16px;
}
.step .num{
  width:34px; height:34px; border-radius:12px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  display:grid; place-items:center;
  font-weight:800;
  margin-bottom:10px;
}

.list{
  margin:0; padding-left:18px;
}
.list li{margin:0 0 10px; color: var(--text); opacity:.92}

.callout{
  padding:14px;
  border-radius: 16px;
  border:1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
}

.faq .faq-item{border-top:1px solid rgba(148,163,184,.14)}
.faq .faq-item:first-child{border-top:none}
.faq button{
  width:100%;
  text-align:left;
  background: transparent;
  border:0;
  color: var(--text);
  padding:14px 0;
  font-size:15px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  cursor:pointer;
}
.faq .answer{max-height:0; overflow:hidden; transition:max-height .25s ease; color: var(--muted); padding-right:36px}
.faq .answer.open{padding-bottom:12px}
.chev{opacity:.9}

.form{
  display:grid; gap:12px;
}
.field{
  display:grid; gap:6px;
}
label{font-size:13px; color: var(--muted)}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(2,6,23,.55);
  color: var(--text);
  outline: none;
}
textarea{min-height:120px; resize: vertical}
input:focus, textarea:focus, select:focus{
  border-color: rgba(14,165,233,.6);
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}
.help{font-size:12px; color: var(--muted)}
.form-row{display:grid; gap:12px; grid-template-columns:1fr 1fr}
@media (max-width: 680px){ .form-row{grid-template-columns:1fr} }

.footer{
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: rgba(5,8,20,.85);
  padding: 22px 0;
}
.footer-grid{
  display:grid; gap:14px;
  grid-template-columns: 1.2fr .8fr;
}
@media (max-width: 940px){ .footer-grid{grid-template-columns:1fr} }
.footer a{color: var(--muted)}
.footer a:hover{color: var(--text)}
.footer small{display:block; margin-top:10px}

.bottom-links{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:10px;
}

.toast{
  position:fixed; right:12px; bottom:12px; z-index:100;
  background: rgba(15,23,42,.96);
  border:1px solid rgba(148,163,184,.22);
  padding:12px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 360px;
  display:none;
}
.toast.show{display:block}
.toast .row{display:flex; gap:10px; align-items:flex-start}
.toast .row strong{display:block; margin-bottom:6px}
.toast .actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.toast .meta{font-size:12px; color: var(--muted); margin-top:6px}

.modal{
  position:fixed; inset:0; z-index:120;
  background: rgba(0,0,0,.55);
  display:none; padding:18px;
}
.modal.show{display:grid; place-items:center}
.modal-card{
  width:min(680px, 100%);
  background: rgba(15,23,42,.98);
  border:1px solid rgba(148,163,184,.22);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding:16px;
}
.modal-head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.modal-head h3{margin:0}
.modal-close{
  width:44px; height:44px; border-radius:14px;
  border:1px solid rgba(148,163,184,.22);
  background: rgba(226,232,240,.06);
  color: var(--text);
  cursor:pointer;
}
.toggle{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:12px;
  border:1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  background: rgba(2,6,23,.35);
  margin-top:10px;
}
.toggle .txt{display:grid; gap:4px}
.switch{
  width:54px; height:30px; border-radius:999px;
  background: rgba(148,163,184,.22);
  position:relative; flex:0 0 auto;
}
.switch::after{
  content:"";
  position:absolute; top:4px; left:4px;
  width:22px; height:22px; border-radius:999px;
  background: #fff;
  transition: left .15s ease;
}
.switch.on{background: rgba(34,197,94,.55)}
.switch.on::after{left:28px}

.hr{height:1px; background: rgba(148,163,184,.14); margin:14px 0}
.mini{font-size:12px; color: var(--muted)}
.tag{
  display:inline-flex; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(34,197,94,.28); background: rgba(34,197,94,.08);
  font-size:12px; color: var(--text);
}

/* CSP-safe toggles */
.is-hidden { display: none !important; }
.is-visible { display: block !important; }

/* Cookie banner/modal toggle */
#cookieBanner { display: none; }
#cookieBanner.show { display: block; }

#cookieModal { display: none; }
#cookieModal.show { display: block; }

/* FAQ toggle (без maxHeight) */
.answer { display: none; }
.answer.open { display: block; }

/* Contact thanks */
#contactThanks { display: none; }
#contactThanks.is-visible { display: block; }

/* Replaces inline styles blocked by CSP */
.mt-10 { margin-top: 10px; }

.p-12-6-2 { padding:12px 6px 2px }

.h3-compact { margin: 0 0 8px; }

.ws-nowrap { white-space:nowrap; }

.d-none { display:none; }

.flex-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}


