/* L2 Agon site theme (2026-11): warm dark cards, gold accent, Inter type.
   Loaded last on every page, so it re-skins each page's own inline CSS without
   touching the markup, the translations (data-i18n) or the page scripts. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Bebas+Neue&display=swap');

:root {
  --bg: #14110e; --bg2: #1a1612; --bg3: #1e1a16; --bg4: #241f1a;
  --gold: #d9b45a; --gold-light: #ecc97a; --gold-dim: #a8873e;
  --cyan: #e0b866; --cyan-dim: #a8873e;
  --text: #e2dacb; --muted: #a99f90;
  --border: rgba(255,255,255,.08); --border-cyan: rgba(255,255,255,.08);
  --ag-card: rgba(30,26,22,.92); --ag-card2: #26211c; --ag-line: rgba(255,255,255,.07);
  --ag-accent: #d9b45a; --ag-ink: #1b1408;
}

/* page background: warm dark with a faded castle at the top */
html body { background: #14110e !important; background-image: none !important; color: var(--text); }
html body::before { content: '' !important; position: fixed !important; inset: 0 !important; z-index: -1 !important; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,17,14,.6), #14110e 60%), url(/static/img/ov/hero.webp) center top / cover no-repeat !important;
  filter: saturate(.55); opacity: 1 !important; animation: none !important; }

/* nav */
nav { background: rgba(20,17,14,.92) !important; border-bottom: 1px solid var(--ag-line) !important; box-shadow: 0 2px 24px rgba(0,0,0,.45) !important; backdrop-filter: blur(12px); }
.nav-links a { font-family: 'Inter', sans-serif !important; font-weight: 500; letter-spacing: .6px !important; font-size: .8rem !important; color: #cbc2b4 !important; }
.nav-links a:hover, .nav-links a.active { color: var(--ag-accent) !important; text-shadow: none !important; }
.nav-login, .nav-register, .lang-btn, .lang-switcher > button { border-radius: 8px !important; font-family: 'Inter', sans-serif !important; letter-spacing: .4px !important; text-transform: none !important; }
.nav-register { background: var(--ag-accent) !important; color: var(--ag-ink) !important; border-color: var(--ag-accent) !important; font-weight: 600 !important; }

/* typography */
h1, h2, h3, .section-title, .page-title, .page-header h1, .card-title, .step-heading, .faq-category, .live-section-title, .info-box-header, .feature-title, .premium-name {
  font-family: 'Inter', sans-serif !important; letter-spacing: -.2px !important; text-transform: none !important; }
.section-title, .page-header h1, .page-title { color: #f6f1e7 !important; font-weight: 700 !important; text-shadow: none !important; filter: none !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; }
.section-label { font-family: 'Inter', sans-serif !important; letter-spacing: 1px !important; font-size: .8rem !important; color: var(--ag-accent) !important; text-transform: none !important; }
.section-divider, .page-header::after, .header-ornament, .ornament-line, .hero-ornament { display: none !important; }
.page-header p, .page-subtitle { font-family: 'Inter', sans-serif !important; letter-spacing: .3px !important; text-transform: none !important; color: var(--muted) !important; }
.page-header::before { display: none !important; }

/* buttons */
.btn-primary, .btn-submit, .btn-register, .glance-register, .btn-discord, button[type=submit] {
  background: var(--ag-accent) !important; color: var(--ag-ink) !important; border: 1px solid var(--ag-accent) !important; border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important; font-weight: 600 !important; letter-spacing: .3px !important; text-transform: none !important; box-shadow: none !important; }
.btn-primary:hover, .btn-submit:hover, .btn-register:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary { background: rgba(0,0,0,.35) !important; color: #f3ede2 !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important; font-weight: 600 !important; letter-spacing: .3px !important; text-transform: none !important; box-shadow: none !important; }
.btn-secondary:hover { border-color: var(--ag-accent) !important; color: var(--ag-accent) !important; }

/* tabs and pills */
.tab-btn, .filter-tab, .premium-tabs button, .mobile-tab, .dash-tab {
  background: #3a332b !important; color: #e9b95a !important; border: 1px solid transparent !important; border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }
.tab-btn.active, .filter-tab.active, .mobile-tab.active, .dash-tab.active { background: var(--ag-accent) !important; color: var(--ag-ink) !important; }

/* cards: everything that was a box becomes a rounded warm card */
.info-box, .rate-card, .feature-card, .premium-card, .card, .step, .faq-item, .rule-item, .section, .glance-box, .patch-item, .stream-card,
.gallery-item, .profile-card, .boss-card, .discord-banner, .file-info, .note, .submit-section, .streams-info, .tab-content > .ranking-wrap {
  background: var(--ag-card) !important; border: 1px solid var(--ag-line) !important; border-radius: 14px !important; box-shadow: none !important; }
.rate-card::before, .feature-card::before, .premium-card::before, .card::before, .info-box::before { display: none !important; }
.feature-card:hover, .premium-card:hover, .step:hover, .faq-item:hover, .rule-item:hover { border-color: rgba(217,180,90,.45) !important; transform: none; }
.premium-card.featured { border-color: rgba(217,180,90,.6) !important; }
.rates-grid, .rate-grid { gap: 10px !important; background: none !important; border: none !important; }
.rate-value, .premium-days { font-family: 'Bebas Neue', sans-serif !important; font-weight: 400 !important; color: var(--ag-accent) !important; text-shadow: none !important; letter-spacing: .5px; }
.rate-value { font-size: 2.4rem !important; line-height: 1 !important; }
.rate-label, .server-uptime-label { font-family: 'Inter', sans-serif !important; letter-spacing: 1px !important; }
.info-box-header, .card-header { background: none !important; border-bottom: 1px solid var(--ag-line) !important; color: #f6f1e7 !important; font-weight: 700 !important; font-size: 1.05rem !important; }
.info-row { border-color: var(--ag-line) !important; }
.val.cyan, .td-cyan { color: #e0b866 !important; }

/* tables */
table { border-collapse: separate !important; border-spacing: 0; border-radius: 10px; overflow: hidden; }
th { background: #1d1915 !important; color: var(--muted) !important; font-family: 'Inter', sans-serif !important; font-weight: 500 !important;
  letter-spacing: 0 !important; text-transform: none !important; border: none !important; }
td { border-color: rgba(255,255,255,.05) !important; }
tbody tr:nth-child(odd) td { background: rgba(42,37,31,.6); }
tbody tr:hover td { background: rgba(217,180,90,.06) !important; }

/* forms */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  background: #2a241e !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 10px !important; color: #f3ede2 !important;
  font-family: 'Inter', sans-serif !important; }
input:focus, select:focus, textarea:focus { border-color: var(--ag-accent) !important; box-shadow: 0 0 0 3px rgba(217,180,90,.15) !important; outline: none !important; }
label, .form-group label { font-family: 'Inter', sans-serif !important; letter-spacing: .2px !important; text-transform: none !important; color: #cbc2b4 !important; }

/* home hero: content sits on a castle card */
.hero { background: none !important; }
.hero::before { background: linear-gradient(90deg, rgba(10,9,8,.5), rgba(10,9,8,.2)), linear-gradient(0deg, #14110e 0%, transparent 40%), url(/static/img/ov/throne.webp) center / cover no-repeat !important; filter: saturate(.9) brightness(.85); }
.hero::after { inset: 0 !important; border: none !important; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(10,9,8,.55), transparent 75%) !important; }
.hero-title { font-family: 'Bebas Neue', sans-serif !important; font-weight: 400 !important; letter-spacing: 2px !important; background: none !important; -webkit-text-fill-color: #f6f1e7 !important; color: #f6f1e7 !important; filter: drop-shadow(0 2px 10px rgba(0,0,0,.8)) !important; }
.hero-tagline { color: var(--ag-accent) !important; }
.hero-sub { color: #e2dacb !important; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.server-uptime-box { background: rgba(0,0,0,.45) !important; border: 1px solid var(--ag-line) !important; border-radius: 10px !important; backdrop-filter: blur(4px); }
.server-uptime-num { font-family: 'Bebas Neue', sans-serif !important; color: var(--ag-accent) !important; }
.hero-mobile { background: linear-gradient(180deg, rgba(20,17,14,.4), #14110e), url(/static/img/ov/throne.webp) center / cover !important; }
.hero-mobile-cta { background: var(--ag-accent) !important; color: var(--ag-ink) !important; border-radius: 10px !important; font-family: 'Inter', sans-serif !important; font-weight: 600 !important; }

/* sections get a little less vertical padding and no hard stripes */
section[style*="linear-gradient"] { background: none !important; border: none !important; }

/* footer */
footer { background: #100d0b !important; border-top: 1px solid var(--ag-line) !important; }
footer a { font-family: 'Inter', sans-serif !important; letter-spacing: .3px !important; text-transform: none !important; }

@media (max-width: 700px) {
  .info-box, .feature-card, .premium-card, .card, .step, .faq-item, .rule-item, .section { border-radius: 12px !important; }
}
.layout .section { background: none !important; border: none !important; border-radius: 0 !important; }

/* one typeface everywhere (the old Cinzel headings become Inter); brand + numbers keep their own */
body, body * { font-family: 'Inter', system-ui, sans-serif !important; }
body .nav-logo, body .nav-logo * { font-family: 'Cinzel', serif !important; }
body .hero-title, body .rate-value, body .premium-days, body .server-uptime-num, body .ov-display, body .ov-rates b { font-family: 'Bebas Neue', 'Inter', sans-serif !important; }
body code, body kbd { font-family: ui-monospace, Consolas, monospace !important; }
h1, h2, h3, h4, h5 { text-transform: none !important; letter-spacing: -.2px !important; }

/* phones: keep every page inside the screen (several pages overflowed before) */
@media (max-width: 700px) {
  .nav-right > div[style*="border-right"] { display: none !important; }   /* "N online" badge */
  .dashboard-tabs { width: auto !important; max-width: 100% !important; overflow-x: auto; flex-wrap: nowrap; }
  .dashboard-tabs > * { flex: 0 0 auto; }
}

/* ---------- top bar in the l2reborn spirit: short, simple, Download always in reach ---------- */
nav.ag-nav { position: sticky !important; top: 0 !important; left: 0; right: 0; width: 100% !important; z-index: 200 !important;
  height: 60px !important; padding: 0 20px !important; display: flex !important; align-items: center !important; justify-content: flex-start !important;
  gap: 18px !important; background: #1a1612 !important; border-bottom: 1px solid var(--ag-line) !important; box-shadow: 0 2px 18px rgba(0,0,0,.4) !important; overflow: visible !important; }
body.ag-has-nav { padding-top: 0 !important; }
nav.ag-nav .nav-links, nav.ag-nav #navLinks, nav.ag-nav .nav-center, nav.ag-nav .nav-user, nav.ag-nav .hamburger, nav.ag-nav .nav-online, nav.ag-nav .nav-right > div[style*="border-right"],
nav.ag-nav #navUser > span { display: none !important; }
nav.ag-nav .nav-logo { flex: 0 0 auto; gap: 8px !important; }
nav.ag-nav .nav-logo { text-decoration: none !important; }
nav.ag-nav .nav-logo img { height: 46px !important; width: auto !important; }
nav.ag-nav .nav-logo span { font-size: 1rem !important; letter-spacing: 2px !important; color: #f3e6c4 !important; white-space: nowrap; }
.ag-sep { width: 1px; height: 22px; background: rgba(255,255,255,.12); flex: 0 0 auto; }
.ag-gift { white-space: nowrap; font-size: .85rem; font-weight: 600; text-decoration: none; padding: 0 6px; }
nav.ag-nav .navbar-left { display: flex; align-items: center; gap: 18px; }
.ag-links { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ag-links a { color: #d8cfc1 !important; text-decoration: none; font-size: .86rem; font-weight: 500; padding: 7px 11px; border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s; }
.ag-links a:hover { background: rgba(255,255,255,.06); color: #fff !important; }
.ag-links a.active { color: var(--ag-accent) !important; }
nav.ag-nav .ag-right { margin-left: auto !important; display: flex !important; align-items: center !important; gap: 10px !important; min-width: 0; }
.ag-dl { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px; background: var(--ag-accent); color: var(--ag-ink) !important;
  font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 16px rgba(217,180,90,.25); transition: filter .15s, transform .15s; }
.ag-dl:hover { filter: brightness(1.1); transform: translateY(-1px); }
nav.ag-nav #navGuest, nav.ag-nav #navUser { gap: 8px !important; }
nav.ag-nav .nav-login, nav.ag-nav .nav-cta { height: 38px; display: inline-flex !important; align-items: center; padding: 0 14px !important; border-radius: 10px !important;
  font-size: .85rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; }
nav.ag-nav .nav-login { background: #2a241e !important; border: 1px solid rgba(255,255,255,.1) !important; color: #efe7d8 !important; }
nav.ag-nav .nav-cta { background: transparent !important; border: 1px solid rgba(217,180,90,.55) !important; color: var(--ag-accent) !important; box-shadow: none !important; }
.ag-menu-btn { width: 40px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  background: #2a241e; color: #efe7d8; cursor: pointer; flex: 0 0 auto; }
.ag-menu-btn:hover, .ag-menu-btn[aria-expanded="true"] { border-color: var(--ag-accent); color: var(--ag-accent); }
.ag-panel { display: none; position: absolute; top: 64px; right: 16px; width: 340px; max-width: calc(100vw - 24px); background: #1f1a15; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.6); z-index: 300; }
.ag-panel.open { display: block; }
.ag-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ag-panel a { display: block; padding: 10px 12px; border-radius: 9px; color: #e2dacb !important; text-decoration: none; font-size: .9rem; font-weight: 500; }
.ag-panel a:hover { background: rgba(255,255,255,.06); }
.ag-panel a.active { color: var(--ag-accent) !important; }
.ag-panel-acc { display: flex; gap: 8px; border-top: 1px solid var(--ag-line); margin-top: 8px; padding-top: 10px; }
.ag-panel-acc a { flex: 1; text-align: center; background: #2a241e; font-weight: 600; }
.ag-panel-acc a.ag-acc-main { background: var(--ag-accent); color: var(--ag-ink) !important; }
.ag-strip { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; font-size: .82rem;
  color: #bfb5a5; background: rgba(26,22,18,.82); border-bottom: 1px solid var(--ag-line); text-align: center; }
.ag-strip b { color: var(--ag-accent); font-weight: 700; }
.ag-strip i { font-style: normal; color: #8f8576; }
.ag-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); flex: 0 0 auto; }
@media (max-width: 1100px) { .ag-links a[data-ag="community"], .ag-links a[data-ag="news"] { display: none; } }
@media (max-width: 900px) { .ag-links, .ag-sep { display: none !important; } }
@media (max-width: 700px) {
  nav.ag-nav { padding: 0 12px !important; gap: 10px !important; height: 56px !important; }
  nav.ag-nav #navGuest, nav.ag-nav #navUser, nav.ag-nav .lang-switcher { display: none !important; }
  nav.ag-nav .nav-logo span { display: inline !important; font-size: .9rem !important; letter-spacing: 1.5px !important; }
  nav.ag-nav .nav-logo img { height: 40px !important; }
  .ag-dl { height: 36px; padding: 0 13px; }
  .ag-panel { top: 60px; right: 8px; }
  .ag-strip { font-size: .75rem; padding: 7px 10px; gap: 6px; }
  .ag-strip i { display: none; }
}
.ag-panel-lang { display: none; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--ag-line); margin-top: 8px; padding-top: 10px; }
.ag-panel-lang button { flex: 1 0 20%; padding: 7px 0; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #2a241e; color: #e2dacb; font-size: .78rem; font-weight: 600; cursor: pointer; }
.ag-panel-lang button.active { background: var(--ag-accent); color: var(--ag-ink); border-color: var(--ag-accent); }
@media (max-width: 700px) { .ag-panel-lang { display: flex; } }
.dashboard-tabs { background: rgba(30,26,22,.92) !important; border: 1px solid var(--ag-line) !important; border-radius: 12px !important; gap: 6px !important; padding: 6px !important; }

/* ---------- fades: page in on load, tab panels in when switched, cards in while scrolling ---------- */
@keyframes agFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes agFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body > *:not(nav):not(.ag-strip):not(script):not(style) { animation: agFadeIn .3s ease backwards; }
.tab-panel.active, .tab-content.active, .layout .section.active, .step-panel.active, .ag-panel.open { animation: agFadeUp .42s ease backwards; }
.ag-reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.ag-reveal.ag-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body > *, .tab-panel.active, .tab-content.active, .layout .section.active, .step-panel.active, .ag-panel.open { animation: none !important; }
  .ag-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
