:root{
  --bg:#0c0b12;
  --text:#f7f4ff;
  --muted:#c8bfd8;
  --gold:#ffd27a;
  --gold-2:#c78f36;
  --violet:#8d64ff;
  --panel:rgba(18,16,29,.78);
  --panel-2:rgba(11,11,20,.92);
  --line:rgba(255,255,255,.09);
  --shadow:0 18px 42px rgba(0,0,0,.24);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(rgba(8,10,16,.44), rgba(8,10,16,.92)),
    url('/assets/bg.jpg') center top / cover no-repeat;
  z-index:-3;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 18% 8%, rgba(141,100,255,.12), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255,210,122,.10), transparent 22%);
  z-index:-2;
}
body.loading{overflow:hidden}

a{color:#edf0ff;text-decoration:none}
img{display:block;max-width:100%;height:auto}

#site-loader{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, rgba(14,12,22,.96), rgba(8,10,16,.98));
  transition:opacity .45s ease, visibility .45s ease;
}
#site-loader.hidden{opacity:0; visibility:hidden}
.loader-inner{display:grid;gap:18px;justify-items:center;text-align:center}
.loader-inner img{
  width:140px;height:140px;animation:spin 2.2s linear infinite;
  filter:drop-shadow(0 0 26px rgba(141,100,255,.18)) drop-shadow(0 0 18px rgba(255,210,122,.10));
}
.loader-title{font-family:Georgia,serif;font-size:30px;color:var(--gold)}
@keyframes spin{to{transform:rotate(360deg)}}

.wrap{max-width:1480px;margin:0 auto;padding:16px 18px 32px}

.top{
  position:sticky; top:10px; z-index:30;
  display:flex; justify-content:space-between; align-items:flex-start; gap:22px;
  padding:14px 18px;
  border-radius:22px;
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(12px);
}
.logo{flex:0 0 auto}
.logo img{
  height:84px;
  max-width:480px;
  object-fit:contain;
  filter:drop-shadow(0 0 22px rgba(255,210,122,.14)) drop-shadow(0 12px 24px rgba(0,0,0,.22));
}
.nav{
  display:flex; flex-wrap:wrap; justify-content:flex-end;
  gap:8px; row-gap:8px; max-width:820px;
}
.nav a{
  position:relative; overflow:hidden;
  padding:11px 15px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.12);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  font-size:14px; line-height:1.2;
}
.nav a:hover{
  transform:translateY(-2px);
  border-color:rgba(141,100,255,.24);
  background:linear-gradient(180deg, rgba(141,100,255,.24), rgba(141,100,255,.08));
  box-shadow:0 0 0 1px rgba(141,100,255,.14), 0 0 28px rgba(141,100,255,.12), 0 10px 24px rgba(0,0,0,.18);
}

.langs{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
  margin-bottom:18px;
}
.lang-select-form{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(20,18,32,.78), rgba(10,10,18,.90));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.lang-label{margin:0;font-size:13px;color:#d7d3e6}
.lang-select{
  min-width:110px; width:auto;
  padding:10px 34px 10px 12px;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
}

.flash{
  padding:12px 14px;
  border-radius:14px;
  margin:12px 0;
}
.flash.ok{background:rgba(69,201,119,.12);border:1px solid rgba(69,201,119,.28)}
.flash.err{background:rgba(224,88,88,.12);border:1px solid rgba(224,88,88,.28)}

.card,.panel,.page-hero,.auth-hero,.cabinet-hero,.shop-hero,.admin-hero,.side-menu{
  background:linear-gradient(180deg, rgba(21,19,34,.88), rgba(13,13,22,.96));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
  border-radius:24px;
  padding:20px;
}
.glow-card{position:relative}
.glow-card::after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:8px;
  height:14px;
  background:radial-gradient(circle at center, rgba(141,100,255,.22), transparent 70%);
  filter:blur(12px);
  pointer-events:none;
}
.page-hero,.auth-hero,.cabinet-hero,.shop-hero,.admin-hero{
  margin-bottom:18px;
  min-height:180px;
  display:flex; align-items:center; justify-content:center;
}
.page-hero img,.auth-hero img,.cabinet-hero img,.shop-hero img,.admin-hero img{
  max-height:260px; max-width:100%; width:auto;
}

.home-shell{display:grid;gap:24px;margin-top:10px}
.home-top-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) 360px;
  gap:22px;
  align-items:stretch;
}
.home-brand-panel{
  text-align:center;
  padding:28px;
}
.hero-logo{
  max-width:700px;
  width:100%;
  margin:0 auto 14px;
}
.hero-copy{
  max-width:760px;
  margin:0 auto 20px;
  text-align:center;
  line-height:1.7;
  font-size:18px;
  color:#ece8fb;
}
.home-cta-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.cta-btn{
  min-height:80px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding:14px 16px;
  border-radius:20px;
  font-family:Georgia,serif;
  font-size:clamp(18px,1.2vw,28px);
  font-weight:700;
  letter-spacing:.2px;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 14px 30px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.cta-btn:hover{
  transform:translateY(-4px) scale(1.01);
  filter:brightness(1.04);
  box-shadow:0 0 0 1px rgba(255,210,122,.12),0 0 30px rgba(141,100,255,.14),0 16px 34px rgba(0,0,0,.22);
}
.cta-start{color:#fff;background:linear-gradient(180deg,#9a74ff,#603bc9)}
.cta-download{color:#fff;background:linear-gradient(180deg,#3a445d,#222a3d)}
.cta-register{color:#2c1c08;background:linear-gradient(180deg,#fff0c8,#ffd37a 50%,#bf7d2d)}

.home-status-panel{
  display:grid;
  gap:14px;
  padding:18px;
}
.home-status-card{
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
}
.home-status-label{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:#cbc4db;
}
.home-status-card strong{
  display:block;
  font-family:Georgia,serif;
  font-size:28px;
  line-height:1.15;
  color:#f4d598;
  margin-bottom:6px;
}
.home-status-card small{
  display:block;
  color:#ece8f6;
  font-size:14px;
  line-height:1.45;
}

.home-bottom-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 280px;
  gap:22px;
  align-items:start;
}
.home-ranks-panel{display:grid;gap:22px}
.home-news-panel,.home-shop-panel{padding:20px}
.home-panel-head{margin-bottom:14px}
.home-panel-head h2{margin:0;color:#f4d598;font-family:Georgia,serif}
.home-news-list{display:grid;gap:12px}
.home-news-item{
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
}
.home-news-item strong{display:block;margin-bottom:6px}
.home-empty{padding:18px 0}

.grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.95fr);
  gap:22px;
  align-items:start;
  margin-top:22px;
}
.grid > div,.row > div,.cards .card,.home-main-column,.home-side-column{min-width:0}
.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.cabinet-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.side-menu a{
  display:block;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  margin-bottom:10px;
  color:#eef3ff;
}

input,select,textarea{
  width:100%;
  padding:12px 13px;
  background:linear-gradient(180deg, rgba(16,21,34,.96), rgba(12,16,28,.98));
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  border-radius:14px;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:rgba(141,100,255,.55);
  box-shadow:0 0 0 3px rgba(141,100,255,.12);
}
label{display:block;margin:0 0 8px}
.table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.table th,.table td{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  word-wrap:break-word;
  overflow-wrap:anywhere;
  vertical-align:top;
}
.table th{color:#efd7ac}
.table tr:hover td{background:rgba(255,255,255,.02)}

.btn{
  display:inline-block;
  padding:11px 16px;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(180deg,#384968,#28344b);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.16);
}
.btn.gold{
  color:#231707;
  background:linear-gradient(180deg,var(--gold),var(--gold-2));
  box-shadow:inset 0 1px 0 rgba(255,245,220,.20),0 10px 24px rgba(191,125,45,.18);
}

.muted{color:var(--muted)}
.footer{
  padding:34px 0;
  color:#aeb8d0;
  text-align:center;
  opacity:.92;
  margin-top:26px;
}
.credit{display:block;margin-top:6px;color:#cfb67a}

.reveal-on-scroll{opacity:.001;transform:translateY(18px);transition:opacity .45s ease, transform .45s ease}
.reveal-on-scroll.is-visible{opacity:1;transform:translateY(0)}

@media (max-width:1200px){
  .top{position:relative;top:0}
  .home-top-grid{grid-template-columns:1fr}
  .home-bottom-grid{grid-template-columns:1fr}
}
@media (max-width:980px){
  .grid,.cabinet-layout,.row{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .wrap{padding:14px}
  .top{flex-direction:column;align-items:flex-start}
  .logo img{height:auto;max-width:92vw}
  .nav{justify-content:flex-start;max-width:100%}
  .langs{justify-content:flex-start}
  .home-cta-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .cards{grid-template-columns:1fr}
  .table{display:block;overflow-x:auto;white-space:nowrap}
  .lang-select-form{width:100%;justify-content:space-between}
}


/* Flag language selector */
.langs{
  justify-content:flex-end !important;
}
.lang-flags-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(20,18,32,.78), rgba(10,10,18,.90));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.lang-flags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.lang-flag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lang-flag:hover{
  transform:translateY(-2px);
  box-shadow:0 0 0 1px rgba(141,100,255,.14), 0 0 18px rgba(141,100,255,.10);
  border-color:rgba(141,100,255,.20);
}
.lang-flag.active{
  border-color:rgba(255,210,122,.22);
  box-shadow:0 0 0 1px rgba(255,210,122,.10), 0 0 18px rgba(255,210,122,.08);
}
.lang-flag .emoji{
  font-size:18px;
  line-height:1;
}
.lang-flag .code{
  font-size:12px;
  font-weight:700;
  letter-spacing:.6px;
  color:#fff;
}

/* Home cleanup requested by user */
.home-bottom-grid-two{
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) !important;
}
@media (max-width:1200px){
  .home-bottom-grid-two{
    grid-template-columns:1fr !important;
  }
}


/* ===== stats/menu/home cleanup ===== */
.nav{
  max-width: 900px !important;
}
.lang-flags-wrap{
  gap:12px !important;
}
.lang-flag{
  min-width:58px;
  justify-content:center;
}
.lang-flag .code{
  font-size:11px !important;
}

.home-top-grid{
  grid-template-columns:minmax(0,1.28fr) 300px !important;
}
.home-status-panel{
  align-content:start;
}
.home-status-card{
  min-height: 0 !important;
}
.home-status-card strong{
  font-size:26px !important;
}
.home-status-card small{
  font-size:13px !important;
}

.home-bottom-grid-two{
  grid-template-columns:minmax(0,1.45fr) minmax(360px,.82fr) !important;
  gap:20px !important;
}
.home-news-panel{
  min-height: 0 !important;
}
.home-news-list{
  gap:10px !important;
}
.home-news-item{
  padding:12px 14px !important;
}
.home-news-item p{
  margin:8px 0 0 0;
  color:#ddd8ec;
  line-height:1.5;
}

.compact-ranks{
  gap:16px !important;
}
.compact-rank-card{
  padding:16px !important;
}
.compact-table th,
.compact-table td{
  padding:9px 10px !important;
  font-size:14px !important;
}
.compact-table tr:last-child td{
  border-bottom:none;
}

.home-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.mini-link{
  font-size:12px;
  color:#d7c08a;
  opacity:.9;
}

.stats-page-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px;
  margin-top:18px;
}

@media (max-width:1200px){
  .home-top-grid{
    grid-template-columns:1fr !important;
  }
  .home-bottom-grid-two{
    grid-template-columns:1fr !important;
  }
}
@media (max-width:860px){
  .stats-page-grid{
    grid-template-columns:1fr;
  }
}


/* Menu and home fixes requested */
.nav{
  max-width: 820px !important;
}

.langs{
  justify-content:flex-end !important;
  margin-bottom:16px !important;
}
.lang-flags-wrap{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px 12px !important;
  border-radius:16px !important;
  background:linear-gradient(180deg, rgba(20,18,32,.78), rgba(10,10,18,.90)) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.16) !important;
}
.lang-flags{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}
.lang-flag{
  width:42px !important;
  height:42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.lang-flag:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 0 0 1px rgba(141,100,255,.14), 0 0 18px rgba(141,100,255,.10) !important;
  border-color:rgba(141,100,255,.20) !important;
}
.lang-flag.active{
  border-color:rgba(255,210,122,.22) !important;
  box-shadow:0 0 0 1px rgba(255,210,122,.10), 0 0 18px rgba(255,210,122,.08) !important;
}
.lang-flag .emoji{
  font-size:21px !important;
  line-height:1 !important;
}
.lang-flag .code{
  display:none !important;
}

.home-bottom-grid-two{
  grid-template-columns:minmax(0,1.55fr) 300px !important;
  align-items:start !important;
}
.compact-ranks-panel{
  display:grid !important;
  gap:14px !important;
}
.compact-rank-card{
  padding:14px !important;
  min-height: 0 !important;
}
.compact-table th,
.compact-table td{
  padding:8px 8px !important;
  font-size:13px !important;
}
.home-news-panel{
  min-height: 0 !important;
}
.home-status-panel{
  width:100% !important;
}
.home-status-card{
  min-height:0 !important;
}
.home-panel-head{
  align-items:center !important;
}
.mini-link{
  font-size:11px !important;
  white-space:nowrap !important;
}

.inline-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

@media (max-width:1200px){
  .home-bottom-grid-two{
    grid-template-columns:1fr !important;
  }
}
@media (max-width:860px){
  .langs{
    justify-content:flex-start !important;
  }
}


/* Language block width aligned with server status card */
.langs{
  width:300px !important;
  margin-left:auto !important;
}
.lang-flags-wrap{
  width:100% !important;
  min-height:96px;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
.lang-label{
  font-size:13px !important;
  white-space:nowrap !important;
}
.lang-flags{
  justify-content:flex-end !important;
}

/* Slightly larger logo in top menu */
.logo img{
  height:84px !important;
  max-width:480px !important;
}

/* Larger logo-based page transition loader */
.loader-inner{
  gap:22px !important;
}
.loader-logo{
  width:min(52vw, 360px) !important;
  height:auto !important;
  max-height:220px !important;
  animation:loaderPulse 1.8s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 32px rgba(141,100,255,.24))
    drop-shadow(0 0 26px rgba(255,210,122,.18))
    drop-shadow(0 14px 30px rgba(0,0,0,.28)) !important;
}
.loader-title{
  font-size:36px !important;
  letter-spacing:.6px !important;
  text-shadow:0 0 18px rgba(255,210,122,.18);
}
@keyframes loaderPulse{
  0%,100%{transform:scale(1); opacity:1;}
  50%{transform:scale(1.04); opacity:.96;}
}

/* Mobile */
@media (max-width:860px){
  .langs{
    width:100% !important;
    margin-left:0 !important;
  }
  .lang-flags-wrap{
    min-height:auto;
    flex-wrap:wrap !important;
    justify-content:flex-start !important;
  }
  .logo img{
    height:auto !important;
    max-width:96vw !important;
  }
  .loader-logo{
    width:min(78vw, 320px) !important;
  }
}


/* Real flag dropdown selector */
.langs{
  width:300px !important;
  margin-left:auto !important;
  justify-content:flex-end !important;
}
.lang-dropdown{
  width:100%;
  position:relative;
}
.lang-dropdown[open]{
  z-index:40;
}
.lang-current{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:96px;
  padding:14px 16px;
  border-radius:16px;
  cursor:pointer;
  background:linear-gradient(180deg, rgba(20,18,32,.78), rgba(10,10,18,.90));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.lang-current::-webkit-details-marker{display:none}
.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:100%;
  display:grid;
  gap:8px;
  padding:10px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(20,18,32,.92), rgba(10,10,18,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 16px 32px rgba(0,0,0,.22);
}
.lang-menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lang-menu-item:hover{
  transform:translateY(-1px);
  border-color:rgba(141,100,255,.20);
  box-shadow:0 0 0 1px rgba(141,100,255,.12), 0 0 14px rgba(141,100,255,.08);
}
.lang-flag-img{
  width:28px;
  height:21px;
  object-fit:cover;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.lang-code{
  font-size:13px;
  font-weight:700;
  letter-spacing:.5px;
  color:#fff;
}
@media (max-width:860px){
  .langs{
    width:100% !important;
    margin-left:0 !important;
    justify-content:flex-start !important;
  }
}


/* Security / brand deterrence */
.logo, .hero-logo, .loader-logo{
  -webkit-user-select:none;
  user-select:none;
}
.logo img, .hero-logo, .loader-logo, .lang-flag-img{
  -webkit-user-drag:none;
}
.logo::after{
  content:"";
  position:absolute;
  inset:auto 0 -6px 0;
  height:10px;
  background:radial-gradient(circle at center, rgba(255,210,122,.18), transparent 70%);
  pointer-events:none;
}

/* Slight visual watermark deterrence on main hero */
.home-brand-panel{
  position:relative;
  overflow:hidden;
}
.home-brand-panel::before{
  content:"Line-Age.Org • StarDev";
  position:absolute;
  right:-48px;
  top:18px;
  transform:rotate(18deg);
  font-size:12px;
  letter-spacing:1.8px;
  color:rgba(255,255,255,.06);
  pointer-events:none;
}


/* Final stats cleanup */
.home-bottom-grid-two{
  grid-template-columns:minmax(0,1.65fr) 260px !important;
  gap:18px !important;
}
.compact-ranks-panel{
  gap:12px !important;
}
.compact-rank-card{
  padding:14px !important;
}
.compact-rank-card .home-panel-head h2{
  font-size:20px !important;
}
.compact-table th,
.compact-table td{
  padding:7px 8px !important;
  font-size:12px !important;
}
.home-news-item strong{
  font-size:18px !important;
}
.home-news-item p{
  font-size:14px !important;
}

.stats-switcher{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 18px 0;
}
.stats-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.10);
}
.stats-tab.active{
  border-color:rgba(255,210,122,.22);
  box-shadow:0 0 0 1px rgba(255,210,122,.10), 0 0 18px rgba(255,210,122,.08);
  color:#f4d598;
}
.stats-inner-card{
  padding:18px !important;
}

@media (max-width:1200px){
  .home-bottom-grid-two{
    grid-template-columns:1fr !important;
  }
}


/* Logo reduced after full review */
.logo img{
  height:84px !important;
  max-width:480px !important;
  width:auto !important;
  object-fit:contain !important;
}

@media (max-width:860px){
  .logo img{
    max-width:78vw !important;
    height:auto !important;
  }
}


/* Compact dropdown language selector with real flags */
.langs{
  width:170px !important;
  margin-left:auto !important;
  justify-content:flex-end !important;
}
.lang-dropdown{
  width:100%;
  position:relative;
}
.lang-dropdown[open]{
  z-index:50;
}
.lang-current{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:58px;
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  background:linear-gradient(180deg, rgba(20,18,32,.82), rgba(10,10,18,.94));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.lang-current::-webkit-details-marker{display:none}
.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:170px;
  display:grid;
  gap:8px;
  padding:8px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(20,18,32,.94), rgba(10,10,18,.97));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 16px 32px rgba(0,0,0,.24);
}
.lang-menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
}
.lang-flag-img{
  width:24px !important;
  height:18px !important;
  object-fit:cover;
  border-radius:3px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.lang-code{
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
  color:#fff;
}
.lang-caret{
  color:#d6c18b;
  font-size:12px;
  line-height:1;
}
.logo, .hero-logo, .loader-logo{
  -webkit-user-select:none;
  user-select:none;
}
.logo img, .hero-logo, .loader-logo, .lang-flag-img{
  -webkit-user-drag:none;
}
@media (max-width:860px){
  .langs{
    width:170px !important;
    margin-left:0 !important;
    justify-content:flex-start !important;
  }
}
