/* ===========================================================
   Avia Masters — Modern Dark Theme
   Loaded AFTER main.css to override the light theme.
   Palette: deep navy-black night sky · red plane CTA · gold highlights
   =========================================================== */

:root{
  /* re-map main.css tokens to dark values */
  --light-primary:#ffffff;
  --dark-primary:#e7ebf3;          /* was #000 — now light body/UI text */
  --gray-primary:#9aa6b8;
  --accent-color:#ff3b52;          /* red (plane / CTA) */
  --accent-color-secondarily:#e10f24;
  --border-color:rgba(255,255,255,.09);
  --bg-td:#161d2b;                 /* table header / striping */
  --td-hover:rgba(255,59,82,.12);
  --btn-color:#141a26;             /* list-item surface */
  --bg-gradient:linear-gradient(180deg,#0e1320,#0a0d14);

  /* new design tokens */
  --am-bg:#080b12;
  --am-surface:rgba(22,29,43,.72);
  --am-surface-solid:#121826;
  --am-elevated:#172033;
  --am-text:#e7ebf3;
  --am-muted:#9aa6b8;
  --am-red:#ff3b52;
  --am-red-2:#e10f24;
  --am-gold:#ffc24b;
  --am-sky:#4cc4ff;
  --am-line:rgba(255,255,255,.09);
  --am-line-strong:rgba(255,255,255,.16);
  --am-radius:16px;
  --am-shadow:0 18px 40px -18px rgba(0,0,0,.75);
  --am-glow:0 0 0 1px rgba(255,59,82,.35), 0 12px 30px -10px rgba(255,59,82,.35);
}

/* ----------------------------- Base ----------------------------- */
html{ background:var(--am-bg); }
body{
  color:var(--am-text);
  background:
    radial-gradient(1100px 560px at 50% -240px, rgba(255,59,82,.16), transparent 60%),
    radial-gradient(900px 520px at 110% 4%, rgba(76,196,255,.10), transparent 55%),
    radial-gradient(800px 600px at -10% 30%, rgba(124,47,255,.08), transparent 55%),
    var(--am-bg);
  background-attachment:fixed;
}

::selection{ background:rgba(255,59,82,.35); color:#fff; }

/* sleek scrollbar */
*{ scrollbar-color:var(--am-red) transparent; }
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,var(--am-red),var(--am-red-2)); border-radius:10px; border:3px solid var(--am-bg); }
::-webkit-scrollbar-track{ background:transparent; }

/* ------------------------- Typography --------------------------- */
h1,h2,h3,h4{ color:#fff; letter-spacing:.2px; }
h1{ font-size:clamp(26px,4vw,40px); line-height:1.12; }
h2{ font-size:clamp(22px,2.6vw,30px); position:relative; }
h3{ color:#f3f5fa; }

/* accent underline bar under section headings */
.section > h2::after,
.section h2:not(.questions-faq):not(.text-p)::after{
  content:""; display:block; width:56px; height:4px; margin-top:12px;
  border-radius:4px; background:linear-gradient(90deg,var(--am-red),var(--am-gold));
}
h2.text-p::after{ content:none; }

a{ color:var(--am-sky); }
a:hover{ color:#8ad7ff; }

/* ----------------------- Sections / text ------------------------ */
.section{ position:relative; }
.text-p,p{ color:var(--am-text); }
.section p{ color:#c7cfdd; }
strong{ color:#fff; }

/* ----------------------------- Lists ---------------------------- */
.list-item,
.list-item-1{
  background:var(--am-surface);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:1px solid var(--am-line);
  color:var(--am-text);
  box-shadow:var(--am-shadow);
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.list-item:hover{
  border-color:rgba(255,59,82,.45);
  transform:translateY(-2px);
  box-shadow:var(--am-shadow), 0 0 26px -10px rgba(255,59,82,.5);
}
.list-item::before{
  background:linear-gradient(145deg,var(--am-red),var(--am-red-2));
  color:#fff;
  box-shadow:0 8px 18px -6px rgba(255,59,82,.7),
             inset 0 -3px 6px rgba(0,0,0,.35),
             inset 0 3px 6px rgba(255,255,255,.25);
}
.list-item p,.list-item-1 p{ color:var(--am-text); }

/* ---------------------------- Tables ---------------------------- */
table{
  border-collapse:separate; border-spacing:0;
  background:var(--am-surface-solid);
  border:1px solid var(--am-line);
  border-radius:var(--am-radius);
  overflow:hidden;
  box-shadow:var(--am-shadow);
}
th,td{ border-bottom:1px solid var(--am-line); color:var(--am-text); }
th{
  background:linear-gradient(180deg,#1c2535,#141b29);
  color:#fff; text-transform:uppercase; letter-spacing:.4px;
  font-size:13px; border-bottom:1px solid var(--am-line-strong);
}
tbody tr:last-child td{ border-bottom:none; }
/* subtle row striping (override main.css odd-cell striping) */
tbody tr>td:nth-child(odd){ background:transparent; }
tbody tr:nth-child(even) td{ background:rgba(255,255,255,.025); }
tbody tr:hover td{ background:var(--td-hover); }
/* first column reads like a label */
table.table-p td:first-child{ color:#fff; font-weight:600; }

/* --------------------------- Buttons ---------------------------- */
.button,.play-button.button{
  background:linear-gradient(145deg,#ff4a5f,#e10f24);
  color:#fff;
  box-shadow:0 14px 30px -12px rgba(255,59,82,.65), inset 0 1px 0 rgba(255,255,255,.25);
}
.button:hover{ background:linear-gradient(145deg,#ff5d70,#c7020f); box-shadow:0 18px 36px -12px rgba(255,59,82,.8); }

.btn--primary{
  background:linear-gradient(145deg,#ff4a5f,#e10f24) !important;
  color:#fff !important;
  box-shadow:0 14px 30px -12px rgba(255,59,82,.6);
}
.btn--ghost{
    background: rgb(255 255 255 / 41%) !important;
    color: #000000 !important;
  border:1px solid var(--am-line-strong) !important;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.btn--ghost:hover{ background:rgba(255,255,255,.10) !important; border-color:var(--am-red) !important; }

/* app download button */
.download-btn{
  background:linear-gradient(145deg,#ff4a5f,#e10f24) !important;
  color:#fff !important;
  box-shadow:0 14px 30px -12px rgba(255,59,82,.65);
}

/* ---------------------------- Images ---------------------------- */
.img-box{
  border-radius:var(--am-radius);
  border:1px solid var(--am-line);
  box-shadow:var(--am-shadow);
}
.img-box img{ border-radius:var(--am-radius); }

/* ------------------------------ FAQ ----------------------------- */
.questions-list{ color:var(--am-text); }
.questions-item{
  background:var(--am-surface);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:1px solid var(--am-line);
  border-radius:14px;
  padding:6px 20px;
  box-shadow:var(--am-shadow);
  transition:border-color .25s ease;
}
.questions-item:hover{ border-color:rgba(255,59,82,.4); }
.questions-title{ color:#fff; }
.questions-content-box:hover .questions-title{ color:var(--am-red); }
.questions-content p,.questions-content [itemprop="text"]{ color:#c7cfdd; }
.questions-plus-question{
  background:rgba(255,59,82,.14);
  border:1px solid rgba(255,59,82,.4);
}
.questions-content-box:hover .questions-plus-question{
  background:rgba(255,59,82,.22) !important;
  border:1px solid var(--am-red) !important;
}
.top-line-question,.bottom-line-question{ background:var(--am-red); }
.questions-faq{ color:#fff; }
.questions-faq::after{
  content:""; display:block; width:64px; height:4px; margin:14px auto 0;
  border-radius:4px; background:linear-gradient(90deg,var(--am-red),var(--am-gold));
}

/* ------------------------- Casino cards ------------------------- */
.casino-card,
.casino-table-row-inner{
  background:var(--am-surface-solid) !important;
  border:1px solid var(--am-line);
  box-shadow:var(--am-shadow);
  color:var(--am-text);
}
.casino-card .casino-table-cell_rating,
.casino-card .casino-name span,
.casino-card strong,
.casino-card .casino-features-item,
.casino-card .casino-column h4,
.casino-card .casino-games li,
.casino-card .casino-additional-info li{ color:var(--am-text) !important; }
.casino-card .good-rating{ color:var(--am-gold); }
.casino-card .casino-column h4{ color:#fff; }
.casino-info-block{ background:rgba(0,0,0,.25); border-top:1px solid var(--am-line); }
.casino-card .casino-bonus-text strong{ color:var(--am-gold); }
.footer-wrap,.casino-table-row-footer__text{ color:var(--am-muted) !important; border-color:var(--am-line); }
.toggle-button{
  background:rgba(255,255,255,.05); color:#fff;
  border:1px solid var(--am-line-strong); border-radius:10px; padding:6px 14px;
}
.toggle-button:hover{ border-color:var(--am-red); }
.casino-link.button-link,.casino-link{
  background:linear-gradient(145deg,#ff4a5f,#e10f24) !important;
  color:#fff !important;
  box-shadow:0 12px 26px -12px rgba(255,59,82,.6);
}
.payment-methods .payment-icon{ background:#fff; border-radius:8px; padding:4px; }

/* --------------------------- App card --------------------------- */
.app-card{
  background:var(--am-surface-solid);
  border:1px solid var(--am-line);
  border-radius:18px;
  box-shadow:var(--am-shadow);
  padding:18px;
}
.app-title{ color:#fff; }
.app-publisher{ color:var(--am-gold); }
.app-meta,.meta-label,.meta-value{ color:var(--am-text); }
.actions{ color:var(--am-muted); }

/* --------------------------- Header ----------------------------- */
.header{
  background:rgba(10,13,20,.78);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--am-line);
}
.nav-link,.nav-link-mob{ color:#e7ebf3; }
.nav-link:hover,.nav-link-mob:hover{ color:var(--am-red); }
.nav-mob{ background:#0d1320; color:#fff; }
.burger-btn span{ background:#fff; }

/* --------------------------- Footer ----------------------------- */
.footer{
  background: linear-gradient(1deg, #0e1320, #4769b9);
  color:var(--am-muted);
  border-top:1px solid var(--am-line);
  box-shadow:none;
}
.footer a{ color:var(--am-muted); }
.footer a:hover{ color:#fff; }

/* ----------------------- Stats / misc table --------------------- */
.stats-card{
  background:var(--am-surface-solid);
  border:1px solid var(--am-line);
  border-radius:var(--am-radius);
  box-shadow:var(--am-shadow);
  overflow:hidden;
}
.stats-table th,.stats-table td{ color:var(--am-text); border-color:var(--am-line); }
.stats-table thead th{ background:linear-gradient(180deg,#1c2535,#141b29); color:#fff; }

/* hero text stays readable on imagery */
.hero-cta__title{ color:#000000; text-shadow:0 6px 24px rgba(0,0,0,.6); }

/* ====================== Locale switcher ======================== */
.locale-switcher{ position:relative; display:flex; align-items:center; z-index:1001; }
.ls-trigger{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.06); border:1px solid var(--am-line-strong);
  color:#fff; font-weight:800; font-size:14px; letter-spacing:.6px;
  padding:8px 12px; border-radius:10px; cursor:pointer; line-height:1;
  transition:border-color .2s ease, background .2s ease;
}
.ls-trigger:hover{ border-color:var(--am-red); background:rgba(255,59,82,.14); }
.ls-cur-flag{
  width:22px; height:15px; border-radius:3px; object-fit:cover; display:block;
  flex-shrink:0; box-shadow:0 0 0 1px rgba(255,255,255,.18);
}
.ls-caret{ color:#fff; transition:transform .2s ease; }
.locale-switcher:hover .ls-caret,
.locale-switcher.open .ls-caret{ transform:rotate(180deg); }

/* invisible bridge across the gap so moving the cursor from the trigger
   down to the dropdown doesn't drop :hover and close the menu */
.locale-switcher::after{
  content:""; position:absolute; top:100%; right:0;
  width:360px; max-width:92vw; height:16px;
}
.ls-dropdown{
  position:absolute; top:calc(100% + 12px); right:0;
  background:#0d1320; border:1px solid var(--am-line-strong);
  border-radius:14px; padding:10px;
  box-shadow:0 24px 50px -18px rgba(0,0,0,.8);
  display:none; grid-template-columns:repeat(2, minmax(158px, 1fr)); gap:6px;
  max-height:72vh; overflow:auto; width:max-content; max-width:92vw;
}
@media (hover:hover) and (min-width:993px){
  .locale-switcher:hover .ls-dropdown{ display:grid; }
}
.locale-switcher.open .ls-dropdown{ display:grid; }

.ls-item{
  display:grid; grid-template-columns:22px 1fr; grid-template-rows:auto auto;
  column-gap:10px; align-items:center;
  padding:8px 12px; border-radius:10px; text-decoration:none;
  border:1px solid transparent; transition:background .15s ease, border-color .15s ease;
}
.ls-item:hover{ background:rgba(255,255,255,.05); border-color:var(--am-line); }
.ls-item.active{ background:rgba(255,59,82,.16); border-color:rgba(255,59,82,.45); }
.ls-flag{
  grid-column:1; grid-row:1 / span 2;
  width:22px; height:15px; border-radius:3px; object-fit:cover; display:block;
  box-shadow:0 0 0 1px rgba(255,255,255,.18);
}
.ls-name{ grid-column:2; grid-row:1; font-size:14px; font-weight:600; color:#fff; line-height:1.2; }
.ls-native{ grid-column:2; grid-row:2; font-size:11px; color:var(--am-muted); line-height:1.2; }
.ls-code{ display:none; }

/* Mobile (<=992px): keep switcher in the header (not the burger menu); show short codes */
@media (max-width:992px){
  .locale-switcher{ position:absolute; right:62px; margin:0; }
  .ls-trigger{ padding:7px 10px; font-size:13px; }
  .ls-dropdown{ grid-template-columns:repeat(4, 1fr); gap:5px; padding:8px; }
  .ls-item{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:9px 4px; }
  .ls-flag{ width:26px; height:17px; }
  .ls-name, .ls-native{ display:none; }
  .ls-code{ display:block; font-size:13px; font-weight:800; color:#fff; letter-spacing:.5px; }
}


/* ======================= Hero (modern) ======================== */
.hx-hero{ position:relative; margin-bottom:15px; }
.hx-hero .iframe-bwb{ height:clamp(560px,82vh,760px); border-radius:20px; background:#0a0d14; }
.hx-bg{ position:absolute; inset:0; z-index:0;
  background:url(/assets/src/avia_masters_logo_1200.webp) 72% center/cover no-repeat; transform:scale(1.03); }
.hx-scrim{ position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(100deg, rgba(6,9,15,.96) 0%, rgba(6,9,15,.82) 38%, rgba(6,9,15,.34) 70%, rgba(6,9,15,.55) 100%),
    radial-gradient(120% 80% at 0% 100%, rgba(255,59,82,.18), transparent 60%); }
.hx-inner{ position:relative; z-index:2; max-width:1100px; margin:0 auto; height:100%;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:18px; padding:0 40px; }
.hx-inner > *{ animation:hxUp .7s cubic-bezier(.2,.7,.2,1) both; }
.hx-inner > *:nth-child(2){ animation-delay:.06s; }
.hx-inner > *:nth-child(3){ animation-delay:.12s; }
.hx-inner > *:nth-child(4){ animation-delay:.18s; }
.hx-inner > *:nth-child(5){ animation-delay:.24s; }
.hx-inner > *:nth-child(6){ animation-delay:.30s; }
@keyframes hxUp{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:none;} }
.hx-badge{ display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  color:#ffd76a; font-weight:700; font-size:13px; letter-spacing:.4px; padding:8px 14px; border-radius:999px; }
.hx-badge svg{ width:15px; height:15px; fill:#ffd76a; }
.hx-title{ margin:0; color:#fff; font-weight:900; letter-spacing:-1.5px; line-height:.98;
  font-size:clamp(42px,7vw,78px); text-shadow:0 6px 40px rgba(0,0,0,.6); }
.hx-title span{ background:linear-gradient(180deg,#ffd76a,#f5a623);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.hx-sub{ margin:0; max-width:540px; color:#cdd5e3; font-size:clamp(15px,1.7vw,18px); line-height:1.6; }
.hx-stats{ list-style:none; margin:6px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.hx-stats li{ display:flex; flex-direction:column; align-items:flex-start;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-radius:12px; padding:10px 16px; min-width:84px; }
.hx-stats b{ color:#fff; font-size:19px; font-weight:800; line-height:1; }
.hx-stats span{ color:#9aa6b8; font-size:12px; margin-top:4px; letter-spacing:.3px; }
.hx-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; }
.hx-btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-weight:800; font-size:16px; text-decoration:none; cursor:pointer; padding:16px 30px; border-radius:14px; border:0;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease; }
.hx-btn--play{ position:relative; overflow:hidden; background:linear-gradient(135deg,#ff5468,#e10f24); color:#fff;
  box-shadow:0 16px 40px -12px rgba(255,59,82,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.hx-btn--play:hover{ transform:translateY(-2px); filter:brightness(1.05);
  box-shadow:0 22px 50px -12px rgba(255,59,82,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.hx-btn--play::after{ content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent); transform:skewX(-20deg);
  animation:hxShine 3.6s ease-in-out infinite; }
@keyframes hxShine{ 0%,60%{left:-120%;} 100%{left:160%;} }
.hx-btn--demo{ background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.hx-btn--demo:hover{ transform:translateY(-2px); background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.4); }
.hx-btn--demo svg{ width:16px; height:16px; fill:currentColor; }
.hx-trust{ margin:6px 0 0; color:#8b94a7; font-size:13px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hx-trust b{ color:#cdd5e3; font-weight:700; }
@media(max-width:768px){
  .hx-hero .iframe-bwb{ height:auto; min-height:78vh; }
  .hx-bg{ background-position:60% 16%; }
  .hx-scrim{ background:
    linear-gradient(180deg, rgba(6,9,15,.5) 0%, rgba(6,9,15,.72) 45%, rgba(6,9,15,.96) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(255,59,82,.2), transparent 60%); }
  .hx-inner{ align-items:center; text-align:center; padding:48px 20px; gap:16px; }
  .hx-stats{ justify-content:center; }
  .hx-stats li{ align-items:center; }
  .hx-cta{ justify-content:center; width:100%; }
  .hx-btn{ flex:1 1 auto; min-width:200px; }
  .hx-trust{ justify-content:center; }
}


/* ============== Modern content: lists, image-lists, tables ============== */
.mx-page .list{ padding:26px 0 0 34px; gap:14px; }
.mx-page .list-item,
.mx-page .list-item-1{
  background:linear-gradient(135deg, rgba(28,35,52,.92), rgba(17,23,37,.92));
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:18px 22px 18px 42px;
  color:#cdd5e3;
  box-shadow:0 14px 30px -18px rgba(0,0,0,.85);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow:visible;
}
.mx-page .list-item p,
.mx-page .list-item-1 p{ color:#cdd5e3; margin:0; }
.mx-page .list-item p strong,
.mx-page .list-item-1 p strong{ color:var(--am-gold,#ffc24b); }
.mx-page .list-item::after{
  content:""; position:absolute; left:0; top:14px; bottom:14px; width:4px; border-radius:0 4px 4px 0;
  background:linear-gradient(180deg,var(--am-red,#ff3b52),var(--am-gold,#ffc24b));
}
.mx-page .list-item:hover,
.mx-page .list-item-1:hover{
  transform:translateY(-2px); border-color:rgba(255,59,82,.42);
  box-shadow:0 20px 42px -16px rgba(255,59,82,.4), 0 14px 30px -18px rgba(0,0,0,.85);
}
.mx-page .list-item::before{
  width:42px; height:42px; left:-21px; font-size:19px;
  border:3px solid var(--am-bg,#080b12);
  box-shadow:0 8px 18px -6px rgba(255,59,82,.7), inset 0 -2px 5px rgba(0,0,0,.35), inset 0 2px 5px rgba(255,255,255,.25);
}
.mx-page .list-item .img-box{
  margin:14px 0 2px; border-radius:12px; overflow:hidden;
  border:1px solid rgba(255,255,255,.10); box-shadow:none;
}
.mx-page .list-item .img-box img{ display:block; width:100%; height:auto; border-radius:12px; transition:transform .45s ease; }
.mx-page .list-item:hover .img-box img{ transform:scale(1.035); }
.mx-page .img-box{
  border-radius:16px; overflow:hidden; margin:18px 0;
  border:1px solid rgba(255,255,255,.10); box-shadow:0 18px 40px -20px rgba(0,0,0,.85);
}
.mx-page .img-box img{ display:block; width:100%; height:auto; }
.mx-page table.table-p{
  border-collapse:separate; border-spacing:0; width:100%; table-layout:fixed; max-width:100%;
  background:linear-gradient(180deg, rgba(20,27,41,.92), rgba(14,18,28,.92));
  border:1px solid rgba(255,255,255,.10); border-radius:16px; overflow:hidden;
  box-shadow:0 18px 40px -20px rgba(0,0,0,.85); margin:18px 0;
}
.mx-page table.table-p th{
  background:linear-gradient(180deg,#1e2840,#161f31); color:#fff;
  text-transform:uppercase; letter-spacing:.5px; font-size:12.5px; font-weight:800;
  padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.14); text-align:center;
  overflow-wrap:break-word; word-break:break-word;
}
.mx-page table.table-p td{
  padding:12px; color:#cdd5e3; text-align:center; vertical-align:middle;
  border-bottom:1px solid rgba(255,255,255,.07);
  overflow-wrap:break-word; word-break:break-word;
}
.mx-page table.table-p tbody tr>td:nth-child(odd){ background:transparent; }
.mx-page table.table-p tbody tr:nth-child(even) td{ background:rgba(255,255,255,.03); }
.mx-page table.table-p tbody tr:hover td{ background:rgba(255,59,82,.1); }
.mx-page table.table-p tbody tr:last-child td{ border-bottom:0; }
.mx-page table.table-p td:first-child{ color:#fff; font-weight:700; }
@media(max-width:768px){
  .mx-page .list{ padding-left:30px; }
  .mx-page .list-item::before{ width:38px; height:38px; left:-19px; font-size:17px; }
  .mx-page table.table-p th,
  .mx-page table.table-p td{ padding:8px 6px; font-size:11px; line-height:1.25; }
}
