
/* ===== logged-out top bar: sticker / neo-brutalist look (matches the new login page) ===== */
.app-topbar.topbar-full{
  --ink: var(--no-ink, var(--text)); --tx: var(--text); --yel: var(--no-yel, #ffd93d);
  background: var(--bg) !important; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 3px solid var(--ink);
}
.app-topbar.topbar-full .app-brand img{ transition: transform .15s ease; }
.app-topbar.topbar-full .app-brand:hover img{ transform: rotate(-3deg) scale(1.04); }

/* menu links = flat stickers that pop on hover */
.app-topbar.topbar-full .top-menu{ gap: 8px; }
.app-topbar.topbar-full .top-menu .nav-link{
  padding: 7px 14px !important; border: 2.5px solid transparent !important; border-radius: 10px !important;
  font-weight: 800; color: var(--tx) !important; transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.app-topbar.topbar-full .top-menu .nav-link:hover{
  background: var(--yel) !important; color: #111 !important; border-color: var(--ink) !important;
  box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px,-1px);
}
.app-topbar.topbar-full .top-menu .nav-item.active .nav-link{
  background: var(--brand) !important; color: #fff !important; border-color: var(--ink) !important; box-shadow: 3px 3px 0 var(--ink);
}
.app-topbar.topbar-full .top-menu .nav-item.active .nav-link:hover{ background: var(--brand-dark) !important; color: #fff !important; }

/* night/day, language, currency chips and burger */
.app-topbar.topbar-full .topbar-theme,
.app-topbar.topbar-full .topbar-actions .dropdown-toggle{
  border: 2.5px solid var(--ink) !important; border-radius: 10px !important; box-shadow: 3px 3px 0 var(--ink) !important;
  transition: transform .1s ease, box-shadow .1s ease;
}
.app-topbar.topbar-full .topbar-theme{ background: var(--yel) !important; }
.app-topbar.topbar-full .topbar-theme i, [data-theme="dark"] .app-topbar.topbar-full .topbar-theme i{ color: #111 !important; }
.app-topbar.topbar-full .topbar-theme:hover,
.app-topbar.topbar-full .topbar-actions .dropdown-toggle:hover{ transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink) !important; border-color: var(--ink) !important; }
.app-topbar.topbar-full .topbar-actions .currency-icon-span{ border-right: 2.5px solid var(--ink); }
.app-topbar.topbar-full .topbar-burger{ border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease; }
.app-topbar.topbar-full .topbar-burger:hover{ transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }

/* dropdown lists   phone menu panel */
.app-topbar.topbar-full .dropdown-menu{ border: 3px solid var(--ink) !important; border-radius: 14px !important; box-shadow: 5px 5px 0 var(--ink) !important; }
@media (max-width: 991px){
  .app-topbar.topbar-full .topbar-collapse{ border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); background: var(--surface); }
  .app-topbar.topbar-full .top-menu .nav-link{ width: 100%; }
}

/* ===== DARK MODE v2 (logged-out pages) — same palette as the panel =====
   Ink (borders   hard shadows) stays dark; text stays light. Before, both followed the
   text colour, so dark mode got glaring white outlines and unreadable dark-on-dark text. */
html[data-theme="dark"]{
  --bg:#0a140f; --bg-glass:rgba(10,20,15,.92);
  --surface:#1b3226; --surface-2:#12261b;
  --border:#355644; --card-border:rgba(2,227,96,.35);
  --text:#eef8f1; --text-muted:#aacbb8; --text-soft:#7fa38f;
  --no-ink:#020806; --no-yel:#f4cf4a; --shell:#0f8a4e;
  --shadow:0 2px 10px rgba(0,0,0,.30); --shadow-lg:0 12px 32px rgba(0,0,0,.45);
}
html[data-theme="dark"] body{ background-color:var(--bg) !important; color:var(--text) !important; }
html[data-theme="dark"] .app-topbar.topbar-full{ border-bottom-color:rgba(255,255,255,.14); }
html[data-theme="dark"] .app-topbar.topbar-full .topbar-actions .dropdown-toggle,
html[data-theme="dark"] .app-topbar.topbar-full .topbar-burger{ outline:1px solid rgba(255,255,255,.10); }
html[data-theme="dark"] .app-topbar.topbar-full .dropdown-menu{ background-color:var(--surface) !important; }


/* ===== LOGGED-OUT TOP BAR — green "game UI" floating bar (matches the logged-in panel) ===== */
html{ --ink:#073b35; --g1:#35c84a; --g2:#14a02f; --g3:#0a7a22; --yel:#ffe45c; --r1:#ff4b3a; --r2:#d90000; }
html body .app-topbar.topbar-full{
  top:8px !important; left:12px !important; right:12px !important; width:auto !important;
  height:calc(var(--top-h, 68px) - 8px) !important; padding:0 12px 0 10px !important; gap:14px;
  background:linear-gradient(180deg,#3ed455 0%,#1fb038 55%,#118a2a 100%) !important;
  border:3px solid var(--ink) !important; border-radius:28px !important;
  box-shadow:0 5px 0 var(--g3), 0 12px 24px rgba(10,122,34,.28), inset 0 3px 0 rgba(255,255,255,.35) !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
}
/* logo sits on a white chip so it always reads */
html body .app-topbar.topbar-full .app-brand{ height:calc(100% - 12px); padding:0 16px; margin:0; max-width:none;
  background:#fff; border:2.5px solid var(--ink); border-radius:20px; box-shadow:0 3px 0 rgba(0,0,0,.25); }
html body .app-topbar.topbar-full .app-brand img,html body .app-topbar.topbar-full .app-brand svg{ max-height:38px !important; }

/* menu = white 3D pills, active = red glossy */
html body .app-topbar.topbar-full .top-menu{ gap:10px; }
html body .app-topbar.topbar-full .top-menu .nav-ico{ display:none !important; }
html body .app-topbar.topbar-full .top-menu .nav-link,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu .nav-link{
  padding:8px 18px !important; border:2.5px solid var(--ink) !important; border-radius:16px !important;
  background:#fff !important; color:var(--ink) !important; font-size:15px; font-weight:800;
  box-shadow:0 3px 0 rgba(0,0,0,.28) !important; transform:none; text-shadow:none;
}
html body .app-topbar.topbar-full .top-menu .nav-link:hover,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu .nav-link:hover{
  background:#f0fff2 !important; color:var(--ink) !important; transform:translateY(-1px); box-shadow:0 4px 0 rgba(0,0,0,.28) !important;
}
html body .app-topbar.topbar-full .top-menu .nav-link:active{ transform:translateY(2px); box-shadow:0 1px 0 rgba(0,0,0,.28) !important; }
html body .app-topbar.topbar-full .top-menu .nav-item.active .nav-link,
html body .app-topbar.topbar-full .top-menu .nav-item.active .nav-link:hover,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu .nav-item.active .nav-link{
  background:linear-gradient(180deg,var(--r1),var(--r2)) !important; color:#fff !important;
  box-shadow:0 4px 0 #8f0000, inset 0 2px 0 rgba(255,255,255,.35) !important; text-shadow:0 2px 0 rgba(0,0,0,.3);
}

/* right side: night, language, currency, burger */
html body .app-topbar.topbar-full .topbar-theme{ width:42px; height:40px; border-radius:14px !important; background:linear-gradient(#25405a,#0f2236) !important;
  border:2.5px solid var(--ink) !important; box-shadow:0 3px 0 rgba(0,0,0,.3) !important; }
html body .app-topbar.topbar-full .topbar-theme i,html[data-theme="dark"] body .app-topbar.topbar-full .topbar-theme i{ color:var(--yel) !important; }
html body .app-topbar.topbar-full .topbar-actions .dropdown-toggle,
html[data-theme="dark"] body .app-topbar.topbar-full .topbar-actions .dropdown-toggle{
  height:40px; border-radius:20px !important; overflow:hidden; background:#fff !important; color:var(--ink) !important;
  border:2.5px solid var(--ink) !important; box-shadow:0 3px 0 rgba(0,0,0,.3) !important; font-weight:900;
}
html body .app-topbar.topbar-full .topbar-actions .currency-icon-span{ background:linear-gradient(var(--r1),var(--r2)) !important; color:#fff !important; border-right:2.5px solid var(--ink); }
html body .app-topbar.topbar-full .topbar-burger{ width:44px; height:40px; border-radius:14px !important; border:2.5px solid var(--ink) !important;
  background:linear-gradient(180deg,var(--r1),var(--r2)) !important; box-shadow:0 3px 0 #8f0000, inset 0 2px 0 rgba(255,255,255,.35) !important; }
html body .app-topbar.topbar-full .dropdown-menu{ border:3px solid var(--ink) !important; border-radius:16px !important; box-shadow:0 5px 0 var(--g3) !important; background:#fff !important; }
html body .app-topbar.topbar-full .dropdown-menu a{ color:var(--ink) !important; font-weight:700; }

/* phone: dropdown panel */
@media (max-width:991px){
  html body .app-topbar.topbar-full{ left:8px !important; right:8px !important; padding:0 8px !important; }
  html body .app-topbar.topbar-full .topbar-collapse{ top:calc(100%   8px) !important; left:0 !important; right:0 !important; padding:12px;
    background:linear-gradient(180deg,#3ed455,#118a2a) !important; border:3px solid var(--ink) !important; border-radius:22px !important; box-shadow:0 5px 0 var(--g3) !important; }
  html body .app-topbar.topbar-full .top-menu{ gap:8px; }
  html body .app-topbar.topbar-full .top-menu .nav-link{ width:100%; justify-content:flex-start; }
  html body .app-topbar.topbar-full .app-brand{ padding:0 10px; }
}
@media (max-width:480px){
  html body .app-topbar.topbar-full .topbar-actions .language-name-span{ display:none; }
  html body .app-topbar.topbar-full .app-brand img,html body .app-topbar.topbar-full .app-brand svg{ max-height:30px !important; }
}


/* v2: light floating bar, centred green pills, bigger logo — sits better with the page below */
html body .app-topbar.topbar-full{
  background:linear-gradient(180deg,#ffffff,#effaf1) !important;
  border:3px solid var(--ink) !important; border-radius:30px !important;
  box-shadow:0 5px 0 var(--g3), 0 12px 24px rgba(10,122,34,.18) !important;
  padding:0 14px 0 16px !important;
}
html[data-theme="dark"] body .app-topbar.topbar-full{ background:linear-gradient(180deg,#1d3a2a,#12261b) !important; }
html body .app-topbar.topbar-full .app-brand{ background:transparent; border:0; box-shadow:none; padding:0; height:100%; }
html[data-theme="dark"] body .app-topbar.topbar-full .app-brand{ background:transparent; border:0; border-radius:0; box-shadow:none; padding:0 8px; height:100%; }
/* dark mode: no white pill behind the logo - a thin light outline keeps the dark letter edges readable instead */
html[data-theme="dark"] body .app-topbar.topbar-full .app-brand img,
html[data-theme="dark"] body .app-topbar.topbar-full .app-brand svg{ filter:drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
html body .app-topbar.topbar-full .app-brand img,html body .app-topbar.topbar-full .app-brand svg{ max-height:50px !important; }

/* menu centred, green glossy pills */
@media (min-width:992px){
  html body .app-topbar.topbar-full .topbar-collapse{ margin:0 auto !important; }
  html body .app-topbar.topbar-full .topbar-actions{ margin-left:0 !important; }
}
html body .app-topbar.topbar-full .top-menu{ gap:12px; }
html body .app-topbar.topbar-full .top-menu .nav-link,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu .nav-link{
  padding:10px 22px !important; font-size:15.5px; border-radius:18px !important;
  background:linear-gradient(180deg,#43d95a,#17a232) !important; color:#fff !important; text-shadow:0 2px 0 rgba(0,0,0,.28);
  border:2.5px solid var(--ink) !important; box-shadow:0 4px 0 var(--g3), inset 0 2px 0 rgba(255,255,255,.4) !important;
}
html body .app-topbar.topbar-full .top-menu .nav-link:hover,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu .nav-link:hover{
  background:linear-gradient(180deg,#5aea70,#1db83a) !important; color:#fff !important; transform:translateY(-2px); box-shadow:0 6px 0 var(--g3), inset 0 2px 0 rgba(255,255,255,.4) !important;
}
html body .app-topbar.topbar-full .top-menu .nav-link:active{ transform:translateY(3px); box-shadow:0 1px 0 var(--g3) !important; }
html body .app-topbar.topbar-full .top-menu .nav-item.active .nav-link,
html body .app-topbar.topbar-full .top-menu .nav-item.active .nav-link:hover,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu .nav-item.active .nav-link{
  background:linear-gradient(180deg,var(--r1),var(--r2)) !important; box-shadow:0 4px 0 #8f0000, inset 0 2px 0 rgba(255,255,255,.4) !important;
}

/* right-side chips on a light bar */
html body .app-topbar.topbar-full .topbar-actions .dropdown-toggle{ box-shadow:0 3px 0 var(--ink) !important; }
html body .app-topbar.topbar-full .topbar-theme{ box-shadow:0 3px 0 var(--ink) !important; }

@media (max-width:991px){
  html body .app-topbar.topbar-full .topbar-collapse{ background:linear-gradient(#fff,#effaf1) !important; box-shadow:0 5px 0 var(--g3) !important; }
  html[data-theme="dark"] body .app-topbar.topbar-full .topbar-collapse{ background:linear-gradient(#1d3a2a,#12261b) !important; }
  html body .app-topbar.topbar-full .top-menu .nav-link{ justify-content:center; text-align:center; }
}
@media (max-width:480px){
  html body .app-topbar.topbar-full .app-brand img,html body .app-topbar.topbar-full .app-brand svg{ max-height:36px !important; }
}


/* ===== v3: reference design — white floating bar, red first button, glossy green pills with icons ===== */
html body .app-topbar.topbar-full{ top:12px !important; left:14px !important; right:14px !important; height:68px !important; border:0 !important; border-radius:38px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(240,251,243,.96)) !important; box-shadow:0 10px 30px rgba(10,122,34,.18), inset 0 2px 0 #fff !important; }
html[data-theme="dark"] body .app-topbar.topbar-full{ background:linear-gradient(180deg,#1d3a2a,#12261b) !important; box-shadow:0 10px 30px rgba(0,0,0,.4) !important; }
html body .app-topbar.topbar-full .app-brand{ padding:0 18px 0 6px; }
html body .app-topbar.topbar-full .top-menu{ gap:10px; flex-wrap:nowrap; }
html body .app-topbar.topbar-full .top-menu .nav-ico{ display:inline-flex !important; width:auto; height:auto; flex:0 0 auto; background:transparent; font-size:17px; }
html body .app-topbar.topbar-full .top-menu .nav-ico i{ color:#fff !important; font-size:17px; }
html body .app-topbar.topbar-full .top-menu .nav-link,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu .nav-link{ gap:9px; padding:9px 18px !important; font-size:14.5px; white-space:nowrap; border:2px solid #0a5d1c !important; border-radius:26px !important;
  background:linear-gradient(180deg,#4fe064,#14a02f 65%,#0f8a29) !important; box-shadow:0 4px 0 #0a5d1c, inset 0 2px 0 rgba(255,255,255,.4) !important; }
/* first menu item (Login) = red glossy */
html body .app-topbar.topbar-full .top-menu > .nav-item:first-child .nav-link,
html[data-theme="dark"] body .app-topbar.topbar-full .top-menu > .nav-item:first-child .nav-link{ border-color:#7a0000 !important; background:linear-gradient(180deg,#ff5a4a,#d40000) !important; box-shadow:0 4px 0 #8f0000, inset 0 2px 0 rgba(255,255,255,.4) !important; }
html body .app-topbar.topbar-full .top-menu .nav-item.active .nav-link{ filter:brightness(1.08); }
/* night toggle = dark round button, language/currency chips pill-shaped */
html body .app-topbar.topbar-full .topbar-theme{ width:46px; height:46px; border-radius:50% !important; background:linear-gradient(#26384a,#0d1a28) !important; border:2px solid #0d1a28 !important; box-shadow:0 3px 0 rgba(0,0,0,.35) !important; }
html body .app-topbar.topbar-full .topbar-theme i{ color:#ffe45c !important; font-size:17px; }
html body .app-topbar.topbar-full .topbar-actions .dropdown-toggle{ height:42px; border:2px solid #0a5d1c !important; box-shadow:0 3px 0 #0a5d1c !important; }
html body .app-topbar.topbar-full .topbar-actions .currency-icon-span{ border-right:2px solid #7a0000; }
@media (min-width:992px) and (max-width:1250px){
  html body .app-topbar.topbar-full .top-menu .nav-link{ padding:8px 12px !important; font-size:13.5px; } html body .app-topbar.topbar-full .top-menu{ gap:6px; }
}
@media (max-width:991px){
  html body .app-topbar.topbar-full{ left:8px !important; right:8px !important; top:8px !important; }
  html body .app-topbar.topbar-full .top-menu{ flex-direction:column; }
  html body .app-topbar.topbar-full .top-menu .nav-link{ justify-content:flex-start; text-align:left; }
}


/* ===== MOBILE / TABLET: bigger logo   matching night/menu buttons ===== */
@media (max-width:991px){
  html body .app-topbar.topbar-full{ padding:0 8px 0 10px !important; gap:8px !important; }
  html body .app-topbar.topbar-full .app-brand{ flex:1 1 auto; min-width:0; max-width:none !important; overflow:visible !important; padding:0 !important; justify-content:flex-start; }
  html body .app-topbar.topbar-full .app-brand img,
  html body .app-topbar.topbar-full .app-brand svg{ height:auto !important; max-height:50px !important; width:auto !important; max-width:100% !important; object-fit:contain; }
  html body .app-topbar.topbar-full .topbar-actions{ flex:0 0 auto; gap:8px !important; margin-left:0 !important; }
  /* night toggle   burger: same size, same rounded square, same hard bottom edge */
  html body .app-topbar.topbar-full .topbar-theme,
  html body .app-topbar.topbar-full .topbar-burger{ width:42px !important; height:42px !important; min-width:42px; padding:0 !important; border-radius:14px !important;
    display:inline-flex; align-items:center; justify-content:center; }
  html body .app-topbar.topbar-full .topbar-theme{ background:linear-gradient(#ffffff,#e4f7e8) !important; border:2.5px solid #0a5d1c !important; box-shadow:0 3px 0 #0a5d1c, inset 0 2px 0 #fff !important; }
  html body .app-topbar.topbar-full .topbar-theme i{ color:#0a7a22 !important; font-size:17px; }
  html[data-theme="dark"] body .app-topbar.topbar-full .topbar-theme{ background:linear-gradient(#26384a,#0d1a28) !important; border-color:#0a5d1c !important; }
  html[data-theme="dark"] body .app-topbar.topbar-full .topbar-theme i{ color:#ffe45c !important; }
  html body .app-topbar.topbar-full .topbar-burger{ border:2.5px solid #7a0000 !important; box-shadow:0 3px 0 #8f0000, inset 0 2px 0 rgba(255,255,255,.4) !important; }
}
@media (max-width:480px){
  html body .app-topbar.topbar-full .app-brand img,
  html body .app-topbar.topbar-full .app-brand svg{ max-height:46px !important; }
  html body .app-topbar.topbar-full .topbar-theme,
  html body .app-topbar.topbar-full .topbar-burger{ width:40px !important; height:40px !important; min-width:40px; }
}
