@font-face {
  font-family: "Sakkal Majalla";
  src: local("Sakkal Majalla");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Sakkal Majalla";
  src: local("Sakkal Majalla Bold");
  font-style: normal;
  font-weight: 700;
}

:root {
  --site-background: url("/public/assets/new-ui/background-wide-v4-2560.webp");
  --ink: #090909;
  --panel: rgba(15, 12, 9, .95);
  --panel-soft: rgba(25, 20, 15, .92);
  --gold: #d39d45;
  --gold-light: #f0cb84;
  --copper: #795033;
  --blue: #d39d45;
  --line: rgba(211, 157, 69, .28);
  --muted: #b8aa94;
  --text: #f0dfc2;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  color: var(--text);
  font-family: "Sakkal Majalla", "Cairo", sans-serif;
  font-size: 18px;
  background-color: #080706;
  background-image:
    linear-gradient(180deg, rgba(8, 7, 6, .24), rgba(8, 7, 6, .58)),
    var(--site-background);
  background-position: left top, center top;
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  background-attachment: scroll, fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
.site-notice,.maintenance-notice { position:relative; z-index:30; padding:8px 18px; text-align:center; color:#241708; background:linear-gradient(90deg,#b97a28,#f2d28b,#b97a28); font-weight:700; letter-spacing:.2px; }
.maintenance-notice { display:flex; justify-content:center; gap:14px; color:#f0d9b0; background:rgba(55,22,13,.94); border-bottom:1px solid rgba(213,164,82,.35); }
.maintenance-notice span { color:#d6a44f; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,5,3,.16), transparent 18%, transparent 82%, rgba(8,5,3,.08)),
    radial-gradient(circle at 50% 0, transparent 0 42%, rgba(8,5,3,.24) 92%);
  z-index: -1;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(38, 28, 17, .025), rgba(38, 28, 17, .025)),
    url("/public/assets/new-ui/epic-watermark-pattern.svg") repeat;
  background-size: auto, 420px 240px;
  background-position: 0 0, -70px -22px;
  opacity: .13;
  mix-blend-mode: normal;
  overflow: hidden;
}

.topbar, main, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
.shell { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }

.topbar {
  height: 64px;
  position: relative;
  z-index: 20;
  background: rgba(8, 8, 8, .94);
  border-bottom: 1px solid rgba(224, 168, 63, .18);
  backdrop-filter: blur(14px);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; direction: rtl; }
.nav-links { display: flex; align-items: stretch; justify-content: flex-start; height: 100%; gap: 6px; flex: 1; direction: rtl; }
.nav-links a { display: grid; place-items: center; padding: 0 17px; color: #baab98; font-size: 18px; font-weight: 700; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links .active { color: var(--gold-light); border-color: var(--gold); background: linear-gradient(180deg, transparent, rgba(224,168,63,.08)); }
.nav-links .nav-register { align-self: center; height: 46px; color: #25180a; border: 1px solid #f0c36a; background: linear-gradient(#f4cf80, #c98d31); box-shadow: inset 0 1px #fff7, 0 8px 25px #0005; }
.language { padding: 10px 15px; color: var(--gold-light); border: 1px solid var(--line); background: rgba(12,10,8,.72); font-family: inherit; font-weight: 700; }
.language span { color: var(--muted); margin-right: 6px; }

.hero { height: 162px; min-height: 162px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 0 4px; position: relative; }
.hero::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: 9px; height: 1px; background: linear-gradient(90deg, transparent, rgba(239,208,139,.34), transparent); }
.hero-logo-link { display: inline-flex; border-radius: 18px; outline: 0; transition: transform .25s ease, filter .25s ease; }
.hero-logo-link:hover { transform: translateY(-3px) scale(1.015); filter: brightness(1.08); }
.hero-logo-link:focus-visible { box-shadow: 0 0 0 2px #0a0907, 0 0 0 4px var(--gold); }
.hero-logo { width: min(300px, 62vw); filter: drop-shadow(0 18px 24px #000) drop-shadow(0 0 20px rgba(201,149,66,.16)); animation: reveal .9s both; }
.eyebrow { display: none; }
.button { min-height: 48px; padding: 0 27px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; border: 1px solid rgba(255,217,138,.4); transition: .25s; }
.button.primary { color: #211307; background: linear-gradient(180deg, #ffd377, #c38324); box-shadow: inset 0 1px rgba(255,255,255,.5), 0 8px 25px rgba(190,118,20,.22); }
.button.primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button.ghost { background: rgba(9,9,9,.58); color: var(--gold-light); }
.wide { width: 100%; margin-top: 10px; }

.spotlight-grid { display: grid; grid-template-columns: 880px 260px; gap: 12px; height: 308px; margin-top: 16px; direction: rtl; align-items: start; }
.spotlight-grid.slider-hidden { grid-template-columns: 260px; justify-content: end; }
.spotlight-grid.server-hidden { grid-template-columns: minmax(0, 1fr); }
.spotlight-grid > *, .lower-layout > * { min-width: 0; }
.feature-card, .server-card, .panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(24,19,14,.97), rgba(10,8,7,.96)); box-shadow: 0 22px 50px rgba(0,0,0,.46), inset 0 1px rgba(255,225,164,.035); }
.feature-card { height: 284px; position: relative; overflow: hidden; direction: rtl; border-radius: 6px; }
.feature-card::before, .feature-card::after { content: ""; position: absolute; width: 32px; height: 32px; z-index: 5; }
.feature-card::before { top: 11px; right: 11px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.feature-card::after { bottom: 11px; left: 11px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) sepia(.12) brightness(.88); transition: transform 1.2s, filter .35s; }
.feature-card:hover img { transform: scale(1.035); }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.08) 10%, rgba(5,5,5,.18) 46%, rgba(7,7,7,.78) 100%); }
.feature-tag { position: absolute; top: 18px; right: 18px; padding: 8px 14px; color: #291708; background: var(--gold); font-size: 11px; font-weight: 800; box-shadow: 0 5px 15px #0007; }
.feature-copy { position: absolute; z-index: 3; right: 30px; bottom: 28px; max-width: 440px; }
.feature-copy small { color: var(--gold); font-size: 15px; }
.feature-copy h2 { font-family: "Sakkal Majalla", serif; font-size: 38px; margin: 4px 0; }
.feature-copy p { margin: 0 0 12px; color: #cfbfac; font-size: 17px; }
.feature-copy a { color: var(--gold-light); font-weight: 800; }
.slider-controls { position: absolute; z-index: 6; left: 24px; bottom: 22px; display: flex; gap: 7px; direction: ltr; }
.slider-dot { width: 24px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.34); cursor: pointer; transition: .25s; }
.slider-dot.active { width: 42px; background: var(--gold-light); box-shadow: 0 0 10px rgba(224,168,63,.45); }

.server-card { height: 308px; padding: 16px; direction: rtl; position: relative; overflow: hidden; border-radius: 6px; }
.server-card::after, .panel::after { content: ""; position: absolute; pointer-events: none; inset: 8px; border-top: 1px solid rgba(239,208,139,.07); border-right: 1px solid rgba(239,208,139,.07); }
.section-title { display: flex; align-items: center; gap: 9px; font-family: "Sakkal Majalla", serif; color: var(--gold-light); font-size: 21px; font-weight: 700; }
.section-title span { width: 3px; height: 21px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.section-title i { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line)); }
.server-state { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.server-state b { width: 8px; height: 8px; border-radius: 50%; background: #a7834b; box-shadow: 0 0 10px #a7834b; }
.server-state.online { color: #b9dda7; }
.server-state.online b { background: #6fc45d; box-shadow: 0 0 12px #6fc45d; }
.server-state.offline { color: #dc998d; }
.server-state.offline b { background: #c9503f; box-shadow: 0 0 12px #c9503f; }
.online-number { font-family: "Sakkal Majalla"; font-size: 50px; font-weight: 700; text-align: center; margin-top: 0; color: #ffe0a3; text-shadow: 0 0 25px rgba(224,168,63,.25); }
.online-label { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: 1px; margin: -9px 0 12px; }
.online-label b { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 7px; box-shadow: 0 0 10px var(--gold); }
.stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.stat-row strong { color: var(--text); font-size: 15px; }

.lower-layout { display: grid; grid-template-columns: 280px 856px; gap: 16px; margin-top: 16px; direction: rtl; align-items: start; min-height: 1539px; }
.sidebar-stack { display: grid; gap: 16px; direction: rtl; }
.panel { padding: 18px; direction: rtl; position: relative; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-head > a { color: var(--gold); font-size: 14px; }
.news-main { height: 351px; min-height: 351px; padding: 0; border-radius: 6px; }
.news-heading { height: 63px; text-align: center; padding: 9px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-heading span { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.news-heading h2 { margin: 5px 0 0; font-family: "Sakkal Majalla"; font-size: 34px; }
.news-entry { height: 213px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 32px; border-bottom: 0; }
.news-entry + .news-entry { display: none; }
.news-entry small { color: var(--gold); font-size: 12px; }
.news-entry h3 { margin: 5px 0 3px; font-family: "Sakkal Majalla"; font-size: 24px; }
.news-entry p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.news-entry > a { min-width: max-content; color: var(--gold-light); font-size: 14px; }
.login-card { min-height: 300px; padding: 18px; border-radius: 6px; }
.account-welcome { margin-top: 24px; padding: 20px 14px; text-align: center; border: 1px solid rgba(211,157,69,.14); background: rgba(8,7,6,.45); }
.account-welcome > b { color: var(--gold-light); font-size: 21px; }
.account-welcome p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.account-actions { display: grid; gap: 9px; margin-top: 16px; }
.login-button { width: 100%; margin-top: 18px; border: 1px solid #f0c36a; padding: 12px; background: linear-gradient(#f4cf80, #c98d31); color: #211307; font-family: inherit; font-weight: 800; cursor: pointer; }
.account-actions .login-button { margin-top: 0; text-align: center; }
.account-link { display: block; padding: 10px; text-align: center; border: 1px solid var(--line); color: var(--gold-light); font-size: 14px; }
.account-link:hover { border-color: var(--gold); background: rgba(211,157,69,.07); }
.events { height: 410px; border-radius: 6px; }
.event-list article { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(224,168,63,.11); }
.event-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 20px; }
.event-icon.fire { color: #ff794d; background: #3a1710; }
.event-icon.blue { color: #70d4ff; background: #102838; }
.event-icon.gold { color: #ffd471; background: #34270f; }
.event-list h3 { margin: 0; font-size: 17px; }
.event-list p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.event-list time { color: var(--gold-light); font-size: 14px; }
.rankings ol { list-style: none; padding: 0; margin: 0; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-light); background: #2b2115; border: 1px solid #6f5128; font-weight: 800; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 5px; padding: 24px 0 18px; text-align: center; }
.podium.ranking-loading, .podium:has(.ranking-empty) { display: block; padding: 24px 8px; }
.ranking-loading p, .ranking-empty { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.podium > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.podium .avatar { width: 48px; height: 48px; }
.podium .champion { transform: translateY(-13px); }
.podium .champion .avatar { width: 58px; height: 58px; border-color: var(--gold); box-shadow: 0 0 20px rgba(201,149,66,.2); }
.podium b { font-size: 10px; }
.podium small { color: var(--muted); font-size: 8px; }
.podium em { width: 100%; padding: 4px; border: 1px solid var(--line); color: var(--gold-light); font-style: normal; font-weight: 800; }
.crown { height: 18px; color: var(--gold-light); }
.rank-list li { display: grid; grid-template-columns: 22px 34px 1fr auto; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(224,168,63,.11); }
.rank-list li > b { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 9px; }
.rank-list .avatar { width: 30px; height: 30px; font-size: 10px; }
.rank-list strong { font-size: 10px; }
.rank-list em { color: var(--gold-light); font-style: normal; font-size: 8px; }

.news-tabs { height: 73px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.news-tabs button { padding: 10px 17px; color: var(--muted); background: #12100e; border: 1px solid var(--line); font-family: inherit; }
.news-tabs .selected { color: #241607; background: var(--gold); }

.discord-float { width: 423px; height: 70px; position: fixed; left: 28px; bottom: 28px; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid rgba(224,168,63,.34); border-radius: 8px; background: rgba(10,10,10,.94); box-shadow: 0 15px 35px #0008; }
.discord-float > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold-light); background: #2a2117; border-radius: 50%; }
.discord-float div { display: flex; flex-direction: column; }
.discord-float b { font-size: 11px; }
.discord-float small { color: var(--muted); font-size: 9px; }
.discord-float > strong { padding: 8px 13px; color: #211307; background: var(--gold); font-size: 10px; }
footer { padding: 45px 20px 90px; text-align: center; color: #756b60; font-size: 14px; }

@keyframes reveal { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .nav-links a { padding-inline: 9px; }
  .spotlight-grid { grid-template-columns: 1fr; height: auto; }
  .server-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 18px; }
  .server-card .section-title, .server-card .wide { grid-column: 1 / -1; }
  .online-number { margin: 0; }
  .lower-layout { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .topbar { height: auto; }
  .shell { width: calc(100% - 24px); }
  .nav { padding: 12px 0 0; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .nav-links { order: 3; width: 100%; height: auto; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav-links { min-width: 0; max-width: 100%; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { min-width: max-content; padding: 10px 12px; }
  body {
    background-size: auto, cover;
    background-position: left top, center top;
  }
  .language { margin-right: auto; }
  .hero { height: 205px; min-height: 205px; padding: 20px 8px 12px; }
  .hero::after { left: 20%; right: 20%; bottom: 8px; }
  .hero-logo { width: min(330px, 88vw); }
  .eyebrow { letter-spacing: 0; font-size: 13px; }
  .feature-card { height: 390px; width: 100%; }
  .feature-shade { background: linear-gradient(0deg, rgba(5,5,5,.95), transparent 75%); }
  .feature-copy { right: 20px; left: 20px; bottom: 22px; width: auto; max-width: none; }
  .feature-copy h2 { font-size: 25px; }
  .lower-layout { grid-template-columns: 1fr; min-height: 0; }
  .sidebar-stack { order: 2; }
  .news-main { order: 1; }
  .news-tabs { width: 100%; overflow-x: auto; }
  .discord-float { width: auto; left: 12px; right: 12px; bottom: 12px; justify-content: center; }
}

@media (max-width: 430px) {
  .button { min-height: 44px; font-size: 12px; }
  .server-card { display: block; }
  .server-card .stat-row { padding-block: 13px; }
  .feature-copy h2 { font-size: 22px; }
  .feature-copy p { font-size: 12px; }
  .news-tabs button { padding-inline: 12px; }
  .discord-float > strong { display: none; }
}

