:root{
  --bg: #0b0c10;
  --section: #0f1116;
  --section-alt: #0c0e13;
  --surface: #10131a;
  --panel: rgba(255,255,255,.06);
  --panel-strong: rgba(255,255,255,.12);
  --text: #e8ebf1;
  --muted: #a7b1c2;
  --brand: #e94f2e;
  --brand-2: #ff7a3d;
  --rust: #b7410e;
  --ok: #38d39f;
  --danger: #ff4d4f;
  --ring: rgba(233,79,46,.35);
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  /* nagyobb hero cím (≈5× max) */
  --fz-hero: clamp(40px, 10vw, 50px);
  --fz-hero-brand: clamp(36px, 7vw, 56px);
  --fz-h2: clamp(22px, 3.2vw, 32px);
  --fz-body: clamp(14px, 2.2vw, 16px);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1200px;

  --text-shadow: 0 1.5px 3px rgba(0,0,0,.60);
}

*{box-sizing:border-box}
html,body{height:100%}

/* FIX HÁTTÉR MINDEN ESZKÖZÖN – pseudo elem */
body {
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  line-height:1.6;
  background: #0b0c10; /* fallback */
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background: url('./img/Rust_Cloudraze_bg.png') center/cover no-repeat;
  transform: translateZ(0); /* mobil GPU hint */
  will-change: transform;
}

html * { text-shadow: var(--text-shadow); }

/* containers & sections */
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:72px 0; position:relative; scroll-margin-top: 90px; }
.section__head h2{ font-size:var(--fz-h2); margin:0 0 6px; }
.section__head p{ color:var(--muted); margin:0 0 24px; font-size:var(--fz-body); }

/* translucent panels */
.section--hero{ background: transparent; }
.section--band,
.section--alt,
.section--surface{
  background: rgba(12,14,19,.38);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 18px 12px;
}
.section + .section::before{
  content:""; position:absolute; top:-24px; left:0; right:0; height:24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.25));
}

/* ticker */
/* Ticker label fixen bal oldalon */
.ticker {
  display: flex;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  align-items: center;
  background: rgba(0,0,0,0.4); /* sötétített háttér */
  backdrop-filter: blur(6px);  /* a blur erőssége */
  overflow: hidden;
}

.ticker__label {
  flex: 0 0 auto;
  padding: 0 16px;
  background: #d32f2f; /* piros figyelemfelhívó */
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker__track-wrapper {
  flex: 1 1 auto;
  overflow: hidden;
}

.ticker__track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}

.ticker__track span {
  display: inline-block;
  padding: 0 2rem;
}

@keyframes tickerScroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* header */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(20,22,28,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:68px; }
.brand{ text-decoration:none; color:#fff; font-weight:800; letter-spacing:.6px; display:inline-block; padding:10px 0; font-size:32px; }
.brand__cloud{ color:#fff; }
.brand__raze{ color: var(--rust); }
.nav{ display:flex; gap:18px; align-items:center; }
.nav a{ color:var(--text); text-decoration:none; opacity:.9; font-weight:600; font-size:14px; }
.nav a:hover{ opacity:1; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; cursor:pointer; text-decoration:none; font-weight:700; border-radius:10px; padding:12px 16px; }
.btn--discord{ background: rgba(255,255,255,.10); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--discord:hover{ outline:2px solid var(--ring); }
.nav-toggle{ display:none; width:44px; height:44px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); }

/* hero – fele akkora doboz, 5× cím méret */
.hero{ position:relative; min-height:24vh; display:flex; align-items:flex-end; }
.hero__bg{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,12,16,0) 0%, rgba(11,12,16,.65) 60%, rgba(11,12,16,.85) 100%); }
.hero__content{ position:relative; z-index:2; padding:20px 0; text-align:center; }
.hero__brand{ font-size:140px; line-height:1.05; font-weight:800; letter-spacing:.5px; margin-bottom:8px; }
.hero__content h1{ font-size:var(--fz-hero); line-height:0.95; margin:0 0 12px; letter-spacing:.2px; }
.hero__content p{ max-width:820px; color:var(--muted); font-size:var(--fz-body); margin:0 auto 22px; padding:0 6px; }
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.btn--primary{ background: linear-gradient(90deg, var(--brand), var(--brand-2)); color:#fff; box-shadow: var(--shadow); }
.btn--primary:hover{ filter:brightness(1.05); }
.btn--ghost{ background: rgba(255,255,255,.10); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text); }
.hero__fade{ position:absolute; left:0; right:0; bottom:-1px; height:48px; background:linear-gradient(to bottom, transparent, rgba(11,12,16,.6)); }

/* hero alatti carousel */
.hero-carousel{ margin-top:12px; }

/* info carousel */
.info-carousel{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.10); border-radius:var(--radius); padding:8px 1px;
  box-shadow: var(--shadow);
}
.info-carousel__nav{
  width:40px; height:40px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08); color:#fff; font-size:22px; line-height:1; cursor:pointer;
}
.info-carousel__nav:hover{ outline:2px solid var(--ring); }
.info-carousel__viewport{ min-height:44px; display:grid; align-items:center; overflow:hidden; }
.info-carousel__slide{ grid-area:1/1; opacity:0; transform:translateY(10px); transition:opacity .25s ease, transform .25s ease; color:var(--text); font-weight:600; text-align:center; padding:6px 8px; }
.info-carousel__slide.is-active{ opacity:1; transform:none; }

/* feature tiles */
.feature-tiles{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
}
@media (max-width: 900px){ .feature-tiles{ grid-template-columns:1fr; } }
.feature-card{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius); padding:18px; box-shadow: var(--shadow);
}
.feature-card h3{ margin:0 0 6px; }
.feature-card p{ color:var(--muted); margin:0 0 12px; }

/* outline buttons színes hoverrel */
.btn--outline-rust{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.2); }
.btn--outline-rust:hover{ outline:2px solid #b7410e; color:#ffb089; }
.btn--outline-discord{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.2); }
.btn--outline-discord:hover{ outline:2px solid #5865F2; color:#c9cbff; }
.btn--outline-blue{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.2); }
.btn--outline-blue:hover{ outline:2px solid #569bd2; color:#b8d7f0; }

/* news list */
.news-list{
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px;
}
@media (max-width: 900px){ .news-list{ grid-template-columns:1fr; } }
.news-card{
  display:grid; grid-template-columns:auto 1fr; gap:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px; padding:12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.news-avatar{ width:42px; height:42px; border-radius:8px; overflow:hidden; border:1px solid rgba(255,255,255,.12); }
.news-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.news-meta{ font-size:12px; color:var(--muted); margin-bottom:4px; }
.news-title{ font-weight:800; margin:0 0 6px; }
.news-body{ color:var(--text); font-size:14px; }
.news-actions{ display:flex; justify-content:flex-end; margin-top:12px; }

/* cards */
.cards{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.card{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius); padding:18px; display:flex; gap:14px; box-shadow: var(--shadow);
}
.card__icon{
  width:42px; height:42px; border-radius:var(--radius-sm); background:rgba(255,255,255,.10); display:grid; place-items:center; flex:0 0 auto;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__icon svg{ width:22px; height:22px; color:#fff; opacity:.9; }
.card__body h3{ margin:2px 0 6px; font-size:18px; }
.muted{ color:var(--muted); }
.small{ font-size:13px; }
.list{ margin:10px 0 0 16px; padding:0; }
.list li{ margin:6px 0; }

/* countdown */
.countdown{ display:flex; gap:12px; align-items:center; margin:14px 0 8px; flex-wrap:wrap; justify-content:center; }
.countdown > div{
  min-width:88px; text-align:center; background:rgba(255,255,255,.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:10px 8px;
}
.countdown span{ font-size:28px; font-weight:800; display:block; letter-spacing:.5px; }
.countdown small{ display:block; color:var(--muted); font-weight:600; letter-spacing:.3px; }
.countdown--done > div{ outline:2px solid var(--ok); }

.countdown-msg{
  text-align:center;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  padding:14px 12px;
  font-size:15px;
  box-shadow: var(--shadow);
  line-height:1.5;
}
.countdown-msg strong{
  font-weight:800;
  display:block;
  margin-bottom:4px;
}

/* thumbnail */
.thumb{ position:relative; border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,.12); cursor:zoom-in; background: rgba(255,255,255,.05); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.thumb img{ width:100%; display:block; height:auto; }

/* rules */
.rules{ display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
@media (max-width: 900px){ .rules{ grid-template-columns:1fr; } }
.rule{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.10); border-radius:12px; padding:14px;
}

/* status */
.status-embed{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius); overflow:hidden;
}
.status-embed iframe{ width:100%; height:460px; border:0; display:block; }

/* footer */
.footer{
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(20,22,28,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding:28px 0;
}
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.footer a{ color:var(--muted); text-decoration:none; }
.footer a:hover{ color:#fff; }

/* utilities */
.link{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
.link:hover{ color:#ffb089; }
.no-scroll{ overflow:hidden; }

/* modal */
.modal[aria-hidden="true"]{ display:none; }
.modal[aria-hidden="false"]{
  position:fixed; inset:0; z-index: 3000; display:grid; place-items:center; animation: fadeIn .15s ease;
}
@keyframes fadeIn{ from{ opacity:0 } to { opacity:1 } }
.modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(3px); }
.modal__dialog{
  position:relative; z-index:1; max-width:min(92vw, 1100px); max-height:85vh;
  background: rgba(15,17,22,.85); border:1px solid rgba(255,255,255,.12); border-radius:14px; overflow:hidden;
  box-shadow: var(--shadow); padding:16px; outline:none; animation: up .2s ease;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@keyframes up{ from{ transform:translateY(6px) } to { transform:none } }
.modal__title{ margin:0 0 10px; }
.modal__body{ overflow:auto; max-height:70vh; }
.modal__body img{ width:100%; height:auto; display:block; border-radius:8px; }
.modal__close{
  position:absolute; right:10px; top:8px; width:36px; height:36px; border-radius:10px;
  border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.10); color:#fff; font-size:22px; line-height:1; cursor:pointer;
 z-index: 3100; }
.modal__close:hover{ outline:2px solid var(--ring); }

/* CONTACT modal – fix méret + belső scroll */
.modal__dialog--contact{
  width: 720px;
  height: 560px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
#contactModal .modal__body{
  flex: 1 1 auto;
  max-height: none;
  overflow: auto;
}

/* === Tabs (Legal) === */
.tabs { display:flex; flex-direction:column; gap:12px; }

.tabs__nav{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:10px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px; padding:6px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.tabs__btn{
  appearance:none; border:0; cursor:pointer;
  padding:10px 12px; border-radius:8px;
  color:#fff; font-weight:700; letter-spacing:.2px;
  background: transparent;
}
.tabs__btn:hover{ background: rgba(255,255,255,.06); }
.tabs__btn.is-active{
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.tabs__panels{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px; padding:14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  max-height: 60vh; overflow:auto; /* belső görgetés */
}

.tabs__panel{ display:none; }
.tabs__panel.is-active{ display:block; }

@media (max-width: 560px){
  .tabs__nav{ grid-template-columns:1fr 1fr; }
}

/* form (contact) */
.form__label{ display:block; font-weight:700; margin:14px 0 6px; }
.form__input, .form__textarea, .form select{
  width:100%; color:#fff; background:rgba(255,255,255,.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,.15); border-radius:10px;
  padding:12px 12px; font-size:15px; outline:none;
}
.form__input::placeholder, .form__textarea::placeholder{ color:rgba(255,255,255,.6); }
.form__input:focus, .form__textarea:focus, .form select:focus{
  border-color: rgba(233,79,46,.55);
  box-shadow: 0 0 0 3px rgba(233,79,46,.2);
}
.form__textarea{ resize:vertical; }
.form__hint{ margin:6px 0 0; color:var(--muted); }
.form__counter{ text-align:right; color:var(--muted); font-size:13px; margin-top:6px; }
.form__actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
.form__status{ margin-top:12px; font-weight:700; }
.form__status--ok{ color: var(--ok); }
.form__status--err{ color: var(--danger); }

/* Select (dark theme) */
.form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #fff;
  background-color: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px 36px 12px 12px;
  font-size: 15px; line-height: 1.2;
  background-image:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.form select option, .form select optgroup { background: #0f1116; color:#fff; }
.form select option:checked, .form select option:hover { background:#1b2230 linear-gradient(0deg,#1b2230,#1b2230); color:#fff; }
.form select.is-placeholder { color: var(--muted); }
.form select::-ms-expand { display:none; }

/* smooth scrolling */
html { scroll-behavior: smooth; }

/* back-to-top */
#scrollTopBtn {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white; cursor: pointer; padding: 10px 14px;
  border-radius: 12px; font-size: 20px; font-weight: bold; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#scrollTopBtn.show { opacity: 1; pointer-events: auto; }
#scrollTopBtn:hover { outline: 2px solid var(--ring); }

/* breakpoints */
@media (max-width: 1200px){ .container{ padding:0 20px; } }
@media (max-width: 1024px){
  .cards{ grid-template-columns:1fr 1fr; }
  .status-embed iframe{ height:440px; }
}
@media (max-width: 768px){
  .header-inner{ height:64px; }
  .nav-toggle{ display:inline-block; }
  .nav{
    position:absolute; inset:64px 0 auto 0; background:rgba(20,22,28,.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom:1px solid rgba(255,255,255,.10);
    padding:16px 24px; display:none; flex-direction:column; align-items:flex-start; gap:12px;
  }
  .nav.nav--open{ display:flex; }
  .hero{ min-height:24vh; }
  .hero__content{ padding:32px 0; }
  .hero__brand{ font-size:48px; }
  .btn{ width:100%; max-width:380px; }
  .cards{ grid-template-columns:1fr; }
  .status-embed iframe{ height:420px; }
  .section{ scroll-margin-top: 80px; }
}
@media (max-width: 560px){
  .container{ padding:0 16px; }
  .ticker__track{ padding:8px 0; }
  .countdown > div{ min-width:74px; padding:8px 6px; }
  .status-embed iframe{ height:380px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation: none; }
  .info-carousel__slide{ transition: none; }
  html { scroll-behavior: auto; }
}

/* LEGAL modal – fix size + internal scroll to prevent height jumping across tabs */
.modal__dialog--legal{
  width: 900px;
  height: 620px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
#legalModal .tabs { flex: 1 1 auto; min-height: 0; }
#legalModal .tabs__panels { flex: 1 1 auto; min-height: 0; overflow: auto; max-height: none; }
.recaptcha-box { margin-top: 12px; }

/* Info modal – fix méret, belső scroll */
.modal__dialog--info{
  width: 900px;
  height: 620px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
#infoModal .modal__body{ flex: 1 1 auto; min-height: 0; overflow: auto; }

/* News list – egy oszlopos, kártyák egymás alatt */
#newsList{
  display: block;
}
#newsList .news-card{
  display: flex;
  gap: 12px;
  margin: 12px 0;
  align-items: flex-start;
}
.news-avatar img{
  width: 48px; height: 48px; border-radius: 50%;
  display: block;
}
.news-content .news-title{ margin: 0 0 4px; }
.news-content .news-meta{ font-size: .9rem; opacity: .75; margin-bottom: 6px; }
.news-content .news-body{ margin: 0; line-height: 1.5; }

/* News modal – fix méret, belső scroll */
.modal__dialog--news{
  width: 900px;
  height: 620px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
#newsModal .modal__body{ flex: 1 1 auto; min-height: 0; overflow: auto; }

/* All news list – hasonló stílus, de kicsit tágabb térköz */
#allNewsBody .news-card{
  display: flex;
  gap: 12px;
  margin: 14px 0;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 14px;
}
#allNewsBody .news-card:last-child{ border-bottom: none; padding-bottom: 0; }

/* Csak az Info modal alsó láblécét rejtsük el */
#infoModal .modal__footer{ display:none; }

/* Ghost gomb hover keret, hogy interaktívnak hasson */
.btn--ghost:hover{ outline: 2px solid var(--ring); }

/* === Mobile nav toggle (hamburger → X) – iOS-safe === */
.nav-toggle{
  position: relative;
  display: none; /* 768px alatt mutatjuk */
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  appearance: none;           /* iOS/Safari reset */
  -webkit-appearance: none;   /* iOS/Safari reset */
}
.nav-toggle:hover{ outline: 2px solid var(--ring); }
.nav-toggle:focus-visible{ outline: 2px solid var(--ring); }

/* 3 csík: középső (span), felső/alsó (pseudo) */
.nav-toggle__bar,
.nav-toggle::before,
.nav-toggle::after{
  position: absolute;
  left: 12px; right: 12px;
  height: 2px; border-radius: 2px;
  background: #fff;
  content: "";                /* kell a pseudo-knak, de nem árt a span-nak sem */
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

/* középső csík */
.nav-toggle__bar{
  top: 50%;
  transform: translateY(-50%);
}

/* felső/alsó csíkok */
.nav-toggle::before{ top: 14px; }
.nav-toggle::after { top: 28px; }

/* Nyitott állapot – X-re vált */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar{ opacity: 0; }
.nav-toggle[aria-expanded="true"]::before{
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after{
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobilon ténylegesen jelenjen meg (iOS-n biztos, felülírhatatlanul) */
@media (max-width: 768px){
  .nav-toggle{
    display: inline-grid !important;
    place-items: center;
    z-index: 51; /* a nav mellett mindig kattintható maradjon */
  }
}

/* Wide, readable legal boxes */
.legal-box{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 18px;
  margin: 10px 0 20px;
  line-height: 1.65;
}
.legal-box ul{ margin: 8px 0 0; padding-left: 20px; }
.legal-box li{ margin: 6px 0; }

.legal-box p {
  margin-bottom: 12px;
}

.legal-box ul {
  padding-left: 20px;
  margin: 0;
}

.legal-box li {
  margin-bottom: 8px;
}

/* Developer contact list */
.contact-list{ list-style:none; padding:0; margin:8px 0 0; display:grid; gap:10px; }
.contact-link{
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px; padding:12px;
  color:#fff; text-decoration:none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.contact-link:hover{ outline:2px solid var(--ring); }
.contact-icon{
  width:36px; height:36px; display:grid; place-items:center;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
}


/* === Rust Status Widget === */
.status-widget{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.status-top{
  display:flex; align-items:center; gap:10px; margin-bottom:10px;
}
.status-indicator{
  width:12px; height:12px; border-radius:50%;
  background: #777;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.status-indicator.is-up{ background:#27c281; }
.status-indicator.is-down{ background:#ff4d4f; }
.status-name{ font-weight:800; font-size:18px; }

.status-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:14px;
}
@media (max-width: 700px){
  .status-grid{ grid-template-columns:1fr; }
}

.status-item{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:12px;
}

.status-label{ color:var(--muted); font-size:13px; margin-bottom:6px; }
.status-value{ font-weight:800; font-size:18px; display:flex; align-items:baseline; gap:8px; }
.status-hint{ font-size:12px; color:var(--muted); font-weight:600; }

.status-bar{
  margin-top:8px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
}
.status-bar__fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .25s ease;
}
.status-meta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}
.status-note{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.status-meta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}
.status-note{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.status-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-help {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 14px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-weight: bold;
  font-size: 12px;
  cursor: help;
}
.status-meta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
}
.status-help{
  display:inline-block;
  width:16px; height:16px;
  line-height:14px; text-align:center;
  border-radius:50%;
  border:1px solid var(--muted);
  color:var(--muted);
  font-weight:700; font-size:12px;
  cursor:help;
}
.tooltip {
  position: absolute;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  max-width: 220px;
  line-height: 1.4;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,0.85) transparent;
}
/* Alapszínek – könnyen hangolhatók */
:root{
  --bg:#0b0f14; --surface:#12161d; --text:#e9eef6; --muted:#9aa6b2; --link:#7cb8ff;
}
html[data-theme="light"]{
  --bg:#f7fafc; --surface:#ffffff; --text:#0b1220; --muted:#5b6673; --link:#1862c6;
}

/* Globális (ha nincs már) */
body{ background:var(--bg); color:var(--text); }
.section--surface{ background:var(--surface); }

/* A korábban kért status-help kérdőjel (mobil tooltip-hez is maradhat) */
.status-meta{
  margin-top:6px; font-size:12px; color:var(--muted);
  display:flex; align-items:center; gap:6px;
}
.status-help{
  display:inline-block; width:16px; height:16px; line-height:14px; text-align:center;
  border-radius:50%; border:1px solid var(--muted); color:var(--muted);
  font-weight:700; font-size:12px; cursor:help;
}

/* Mobilbarát tooltip (ha használod) */
.tooltip{
  position:absolute; background:rgba(0,0,0,.85); color:#fff; padding:6px 10px; border-radius:4px;
  font-size:13px; max-width:220px; line-height:1.4; z-index:999; box-shadow:0 2px 8px rgba(0,0,0,.3);
}
.tooltip::after{
  content:""; position:absolute; bottom:100%; left:10px; border-width:6px; border-style:solid;
  border-color:transparent transparent rgba(0,0,0,.85) transparent;
}
.sharebar{ display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 }
.share-btn{
  padding:.5rem .7rem; border-radius:8px; font-weight:600; border:0; cursor:pointer; text-decoration:none;
  color:#fff; display:inline-flex; align-items:center; gap:.35rem;
}
.share-copy{ background:#6b7280; }          /* szürke */
.share-reddit{ background:#ff4500; }        /* Reddit */
.share-x{ background:#111; }                /* X (Twitter) */
.share-fb{ background:#1877f2; }            /* Facebook */
.share-btn:hover{ filter:brightness(1.08); }

/* === FIX: News / Wipes / Status szekciók legyenek átlátszó, blur-es panelek === */
#news.section--surface,
#wipes.section--surface,
#status.section--surface{
  background: rgba(12,14,19,.38);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 18px 12px; /* egységes külső térköz, mint a band/alt */
}

/* (Opcionális) Ha MINDEN .section--surface ilyen legyen az oldalon, akkor inkább ezt használd: */
/*
.section--surface{
  background: rgba(12,14,19,.38);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 18px 12px;
}
*/
/* VIP Modal */
#vipModal .tabs {
  display: flex;
  margin-bottom: 1rem;
}
#vipModal .tab {
  flex: 1;
  padding: .5rem;
  cursor: pointer;
  background: #222;
  border: none;
  color: #fff;
}
#vipModal .tab.active {
  background: #444;
}
#vipModal .tabcontent { display: none; }
#vipModal .tabcontent.active { display: block; }
#vipResult {
  margin-top: .5rem;
  font-weight: bold;
}
#openVip {
  color: gold;
  font-weight: bold;
}
#openVip:hover {
  color: orange;
}
.nav #openVip{ font-weight:700; color:#ffd479; }
.nav #openVip:hover{ color:#ffc14d; }
/* Header click safety */
.site-header, .header-inner { position: sticky; z-index: 55; }
.nav-toggle { z-index: 56; }
/* Header fölé kényszerítjük – biztosan kattintható legyen a hamburger/VIP gomb */
.site-header{ position: sticky; top:0; z-index: 2000; }
.nav-toggle{ z-index: 2001; }

/* VIP modal a Legal méretével */
#vipModal .modal__dialog{ width: 900px; height: 620px; max-width:92vw; max-height:85vh; display:flex; flex-direction:column; }
#vipModal .tabs{ flex:1 1 auto; min-height:0; }
#vipModal .tabs__panels{ flex:1 1 auto; min-height:0; overflow:auto; max-height:none; }
.input-with-btn{
  display:flex;
  align-items:center;     /* a gomb és az input közepe egy vonalban */
  gap:8px;
}
.input-with-btn .form__input{
  flex:1 1 auto;          /* input kitölti a sort, gomb marad jobb oldalt */
  min-width: 240px;
}
.input-with-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.input-with-btn .btn{
  white-space: nowrap;
  display: inline-flex;   /* ne nyúljon szét teljes szélességre */
}

/* SPECIFIKUS: Steam64 sor – rövidebb input a gomb mellett */
.input-with-btn--steam .form__input{
  width: auto;            /* felülírja az esetleges width:100%-at */
  flex: 0 0 360px;        /* kb. fél szélességű fix blokk */
  max-width: 360px;       /* ne nőjön túl */
}

/* Reszponzív: kisebb kijelzőn a gomb lemehet új sorba, input 100% széles */
@media (max-width: 640px){
  .input-with-btn{
    flex-wrap: wrap;
  }
  .input-with-btn--steam .form__input{
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.sharebar{ display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 }
.share-btn{
  padding:.5rem .7rem; border-radius:8px; font-weight:600; border:0; cursor:pointer; text-decoration:none;
  color:#fff; display:inline-flex; align-items:center; gap:.35rem;
}
.share-copy{ background:#6b7280; }   /* szürke */
.share-reddit{ background:#ff4500; } /* Reddit */
.share-x{ background:#111; }         /* X (Twitter) */
.share-fb{ background:#1877f2; }     /* Facebook */
.share-btn:hover{ filter:brightness(1.08); }
/* Sticky Share Dock */
.share-dock{
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  background: rgba(20,20,20,.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 10px 12px; color:#fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  max-width: 520px; width: max-content;
  transform: translateY(24px); opacity: 0; transition: .25s ease;
}
.share-dock.is-visible{ transform: translateY(0); opacity: 1; }
.share-dock__title{ font-weight:700; font-size:.95rem; margin:0 0 8px 2px; opacity:.9 }
.share-dock__row{ display:flex; gap:8px; flex-wrap:wrap }
.share-dock__close{
  position:absolute; top:6px; right:8px; width:26px; height:26px; line-height:26px;
  border:0; border-radius:8px; background:transparent; color:#fff; cursor:pointer; font-size:18px;
}
.share-dock__close:hover{ background: rgba(255,255,255,.08); }

/* Reuse share buttons */
.share-btn{
  padding:.5rem .7rem; border-radius:8px; font-weight:600; border:0; cursor:pointer;
  text-decoration:none; color:#fff; display:inline-flex; align-items:center; gap:.35rem;
}
.share-copy{ background:#6b7280; }   /* gray */
.share-reddit{ background:#ff4500; } /* Reddit */
.share-x{ background:#111; }         /* X */
.share-fb{ background:#1877f2; }     /* Facebook */
.share-btn:hover{ filter:brightness(1.08); }

/* Mobile layout: full-width bottom bar with safe-area padding */
@media (max-width: 640px){
  .share-dock{
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto; max-width: none;
  }
}
.tutorial-video {
  display: block;
  width: 100%;       /* mindig kitölti a szülő elem szélességét */
  height: auto;      /* megtartja az arányokat */
  border-radius: 8px; /* ha panelhez illeszkedő lekerekítés kell */
}
/* Server tags (badge sor a név alatt) */
.server-tags{
  display:flex; gap:8px; flex-wrap:wrap; margin-top:6px;
}
.tag{
  display:inline-block;
  font-weight:800; letter-spacing:.3px;
  font-size:12px; line-height:1;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:6px;
  user-select:none; white-space:nowrap;
}
.tag--pill{
  color:#b8d7f8;                       /* világoskék felirat */
  background: rgba(20,28,38,.75);      /* sötétebb kártya háttér */
  border: 1px solid rgba(184,215,248,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

/* Status: Last Wipe mini-kártya */
.status-item--tile{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px; padding:12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.status-item--tile .status-label{ font-weight:700; opacity:.85; }
.status-item--tile .status-value{ font-weight:800; font-size:16px; margin-top:2px; }
.status-sub{ font-size:12px; color:var(--muted); margin-top:2px; }
/* Last Wipe box */
.status-wiped {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 12px;
  padding: 4px 8px;
  background: rgba(0,0,0,.6);
  border-radius: 3px;
}

.wiped-label {
  font-size: 10px;
  font-weight: 700;
  color: #c2c2c2;
  letter-spacing: .5px;
}

.wiped-age {
  font-size: 14px;
  font-weight: 800;
  color: #e5e5e5;
  text-transform: uppercase;
}
/* Tag sor (ha még nincs ilyen) */
.server-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }

/* Általános badge (te világoskék dizájnodhoz) */
.tag{
  display:inline-block;
  font-weight:800;
  letter-spacing:.3px;
  font-size:12px;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:6px;
  color:#b8d7f8;                       /* világoskék felirat */
  background: rgba(20,28,38,.75);      /* sötét háttér */
  border: 1px solid rgba(184,215,248,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  white-space:nowrap;
  user-select:none;
}
/* WIPED badge */
.tag--wiped {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 12px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  color: #b8d7f8;
  background: rgba(20,28,38,.75);
  border: 1px solid rgba(184,215,248,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  white-space: nowrap;
  user-select: none;
}

/* belső elemek ugyanúgy viselkedjenek, mint egyetlen felirat */
.tag--wiped .wiped-label,
.tag--wiped .wiped-age {
  display: inline-block;
  font-weight: inherit;
  font-size: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: 1;       /* hogy szépen középen álljon */
  margin-left: 4px;
}
.tag--wiped .wiped-label:first-child {
  margin-left: 0; /* az első (WIPED) előtt ne legyen hézag */
}