:root {
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-soft: rgba(15, 23, 42, 0.62);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e5eefb;
  --muted: #9eb1ca;
  --primary: #3b82f6;
  --primary-2: #7c3aed;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(124,58,237,.16), transparent 25%),
    linear-gradient(180deg, #020617 0%, #081225 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(2, 6, 23, 0.72); border-bottom: 1px solid var(--border); }
.topbar, .nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar { padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand img { width: 62px; height: 62px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,.04); padding: .4rem; }
.brand strong { display: block; font-size: 1.05rem; }
.brand span { display: block; color: var(--muted); font-size: .92rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .35rem; padding-bottom: 1rem; }
.site-nav a, .header-cta { padding: .8rem 1rem; border-radius: 999px; border: 1px solid transparent; color: var(--muted); transition: .25s ease; }
.site-nav a:hover, .site-nav a.active { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.25); color: var(--text); }
.header-cta { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; font-weight: 700; box-shadow: var(--shadow); }
.hero { padding: 4rem 0 2rem; }
.hero-grid, .two-col, .layout-with-sidebar, .footer-grid, .news-status, .radio-layout, .contact-layout, .room-layout { display: grid; gap: 1.5rem; }
.hero-grid { grid-template-columns: 1.35fr .95fr; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .7rem; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2); border-radius: 999px; color: #bfdbfe; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.hero h1, h1 { font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1.03; margin: 1rem 0; }
.hero h1 span { color: #93c5fd; }
.hero p, p { color: var(--muted); line-height: 1.7; }
.hero-actions, .toolbar-inline, .hero-pills { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-pills span { padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(15,23,42,.45); color: #dbeafe; }
.btn, button.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: .55rem;
  padding: .95rem 1.2rem; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; font-weight: 700; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-secondary { background: rgba(15,23,42,.72); border-color: var(--border); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-full { width: 100%; }
.hero-card, .info-card, .sidebar-card, .server-card, .status-card, .legal-card, .radio-player-card, .staff-card, .room-card, .news-item, .alert {
  background: var(--panel); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow);
}
.hero-card, .server-card, .status-card, .sidebar-card, .legal-card { padding: 1.4rem; }
.quick-join { display: grid; gap: .85rem; margin-top: 1rem; }
.quick-join input, .contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem 1rem; background: rgba(2, 6, 23, 0.72); color: var(--text);
  border: 1px solid rgba(148,163,184,.22); border-radius: 14px; font: inherit;
}
.inline-stats, .status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.inline-stats li, .status-grid div { padding: .95rem; border-radius: 18px; background: rgba(2,6,23,.45); border: 1px solid var(--border); }
.inline-stats strong, .status-grid strong { display: block; font-size: 1.05rem; }
.inline-stats span, .status-grid span { color: var(--muted); font-size: .85rem; }
.section { padding: 2rem 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border-top: 1px solid rgba(148,163,184,.06); border-bottom: 1px solid rgba(148,163,184,.06); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 1.5rem; }
.info-card i { font-size: 1.6rem; color: #93c5fd; }
.info-card h3 { margin: .9rem 0 .5rem; }
.two-col, .news-status, .radio-layout, .contact-layout, .room-layout { grid-template-columns: 1.4fr .9fr; align-items: start; }
.steps { display: grid; gap: .8rem; }
.steps div { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border-radius: 18px; background: rgba(15,23,42,.48); border: 1px solid var(--border); }
.steps strong { width: 2rem; height: 2rem; border-radius: 999px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; }
.server-card dl { display: grid; gap: .9rem; }
.server-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid rgba(148,163,184,.12); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.text-link { color: #93c5fd; }
.layout-with-sidebar { grid-template-columns: 1.5fr .72fr; align-items: start; }
.room-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.room-grid.large { grid-template-columns: repeat(4, 1fr); }
.room-card { padding: 1.2rem; }
.room-card h3 { margin-top: 0; }
.room-card a { color: #93c5fd; font-weight: 700; }
.compact { padding-left: 1rem; }
.room-list, .feature-list, .site-footer ul { display: grid; gap: .65rem; color: var(--muted); }
.mini-status { display: flex; justify-content: space-between; gap: .5rem; padding: .85rem 0; border-bottom: 1px solid rgba(148,163,184,.1); }
.news-list { display: grid; gap: 1rem; }
.news-item { padding: 1.15rem; }
.news-item time { color: #93c5fd; font-size: .92rem; }
.muted { color: var(--muted); }
.embed-shell { background: rgba(2,6,23,.8); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; min-height: 720px; }
.embed-shell.tall { min-height: 780px; }
.embed-shell iframe { width: 100%; height: 720px; border: 0; }
.embed-shell.tall iframe { height: 780px; }
.staff-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.staff-card { padding: 1rem; text-align: center; }
.staff-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; margin-bottom: 1rem; }
.staff-card span { color: #93c5fd; font-weight: 700; display: block; margin-bottom: .5rem; }
.contact-form { display: grid; gap: 1rem; }
.alert { padding: 1rem 1.1rem; }
.alert.success { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12); }
.alert.error { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); }
.content-stack { display: grid; gap: 1rem; }
.narrow-gap { gap: .75rem; }
.legal-card h2 { margin-top: 1.6rem; }
.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); background: rgba(2,6,23,.82); }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; padding: 2rem 0; }
.footer-copy { padding: 0 0 1.4rem; color: var(--muted); }
@media (max-width: 1024px) {
  .hero-grid, .layout-with-sidebar, .two-col, .news-status, .radio-layout, .contact-layout, .room-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid.three, .room-grid, .room-grid.large, .staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar, .nav-wrap, .section-head { flex-direction: column; align-items: stretch; }
  .site-nav { padding-bottom: 0.8rem; }
  .card-grid.three, .room-grid, .room-grid.large, .staff-grid, .inline-stats, .status-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .brand { align-items: flex-start; }
  .embed-shell, .embed-shell.tall { min-height: 560px; }
  .embed-shell iframe, .embed-shell.tall iframe { height: 560px; }
  h1, .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
}


.staff-grid-focus { grid-template-columns: repeat(2, minmax(260px, 360px)); justify-content: center; }
.staff-card-glow {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 35%),
    radial-gradient(circle at top right, rgba(124,58,237,.16), transparent 30%),
    var(--panel);
}
.staff-card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,.65), rgba(124,58,237,.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.staff-card-glow img {
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 12px 30px rgba(59,130,246,.14);
}
.staff-card-glow h3 { margin: 0 0 .25rem; font-size: 1.45rem; }
.staff-card-glow p { margin-bottom: 0; }
.staff-highlight, .staff-footer-note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}
.staff-highlight {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}
.staff-badges {
  display: grid;
  gap: .75rem;
}
.staff-badges span {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: rgba(2,6,23,.42);
  border: 1px solid var(--border);
  color: #dbeafe;
}
.staff-badges i { color: #93c5fd; }
.staff-footer-note code {
  color: #bfdbfe;
  background: rgba(2,6,23,.5);
  padding: .2rem .45rem;
  border-radius: 8px;
}
@media (max-width: 1024px) {
  .staff-highlight { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .staff-grid-focus { grid-template-columns: 1fr; }
}


.apk-cta, .download-banner {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(124,58,237,.26);
  background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(124,58,237,.18));
  color: #dbeafe;
}
.apk-cta p, .download-banner { color: #dbeafe; }
.apk-cta a, .download-banner a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
