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

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a12;
  --bg-card:     rgba(255,255,255,0.03);
  --bg-card-h:   rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.08);
  --border-h:    rgba(201,168,76,0.4);
  --gold:        #c9a84c;
  --gold-light:  #e8cc80;
  --gold-dim:    rgba(201,168,76,0.15);
  --text:        #dcdce8;
  --text-muted:  #6b6b8a;
  --online:      #4caf7d;
  --offline:     #e05252;
  --radius:      12px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background ───────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/static/img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.22) saturate(0.8);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10,10,18,0.3) 0%, rgba(10,10,18,0.85) 60%, rgba(10,10,18,1) 100%);
}

#app { position: relative; z-index: 2; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,10,18,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-sep {
  color: var(--border);
  font-size: 12px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--gold); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0;
  box-shadow: 0 0 12px rgba(201,168,76,0.2);
  transition: box-shadow var(--transition);
}

.nav-logo:hover .logo-mark {
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}

.logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: #0a0a12;
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 0 20px rgba(201,168,76,0.35);
}

/* ── Burger / Community Menu ──────────────────────────────── */
.burger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  transition: border-color var(--transition);
  position: relative;
}

.burger-btn:hover { border-color: var(--gold); }
.burger-btn span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background var(--transition);
}
.burger-btn:hover span { background: var(--gold); }

.community-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.burger-wrap {
  position: relative;
}

.community-trigger {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  display: block;
  transition: color var(--transition), background var(--transition);
  user-select: none;
}

.burger-wrap:hover .community-trigger,
.burger-wrap.open .community-trigger {
  color: var(--text);
  background: var(--bg-card);
}

.community-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: rgba(14,14,22,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.community-dropdown.open { display: flex; }

.community-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.community-dropdown a:hover {
  background: var(--bg-card-h);
  color: var(--gold);
}

.community-dropdown a svg {
  width: 18px; height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.community-dropdown a:hover svg { opacity: 1; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-title .accent { color: var(--gold); }

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* Server Status Card */
.status-card {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 20px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  margin-bottom: 2.5rem;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.status-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.status-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.date-en { display: none; }
html[data-lang="en"] .date-ru { display: none; }
html[data-lang="en"] .date-en { display: inline; }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}

.status-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  display: block;
}

.status-dot.online { color: var(--online); }
.status-dot.online::before {
  background: var(--online);
  box-shadow: 0 0 8px var(--online);
  animation: pulse 2s infinite;
}

.status-dot.offline { color: var(--offline); }
.status-dot.offline::before { background: var(--offline); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.status-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-lg {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

/* ── Section commons ──────────────────────────────────────── */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
}

/* ── About Container ──────────────────────────────────────── */
.about-container {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-section {
  padding: 2.75rem 2.5rem;
}

.about-section + .about-section {
  border-top: 1px solid var(--border);
}

.about-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.about-section-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
}

.about-section-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.about-section-content {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  white-space: pre-wrap;
}

.about-empty {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Donate Section ───────────────────────────────────────── */
.donate-box {
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.donate-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.donate-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  background: #0f0f1a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  padding-top: 4rem;
  width: 100%;
  max-width: 400px;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
}

.form-error {
  font-size: 12px;
  color: var(--offline);
  margin-top: 0.5rem;
  display: none;
}

.btn-full {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover { color: var(--text); }

.modal-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 1.5rem;
}

.modal-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.modal-tab.active {
  background: var(--gold);
  color: #0a0a12;
}

/* ── Start Play Modal ─────────────────────────────────────── */
.start-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.start-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.start-step:last-child { border-bottom: none; }

.start-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border-h);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.start-step-body { flex: 1; }

.start-step-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.start-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.btn-sm-action {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}

.btn-sm-action.btn-gold {
  background: var(--gold);
  color: #0a0a12;
}

.btn-sm-action.btn-gold:hover {
  background: var(--gold-light);
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.download-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.start-path {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: monospace;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ── LK (Personal Account) ────────────────────────────────── */
.lk-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.lk-header {
  margin-bottom: 3rem;
}

.lk-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.lk-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.lk-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

.lk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lk-tab {
  padding: 12px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.lk-tab:hover { background: var(--bg-card); color: var(--text); }
.lk-tab.active {
  background: var(--gold-dim);
  border-color: var(--border-h);
  color: var(--gold);
}

.lk-panel {
  display: none;
}

.lk-panel.active { display: block; }

.lk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.lk-card-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Donations table */
.donations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.donations-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}

.donations-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}

.donations-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-completed { background: rgba(76,175,125,0.15); color: var(--online); }
.badge-pending   { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-failed    { background: rgba(224,82,82,0.15); color: var(--offline); }

/* ── Utility ──────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .lk-grid { grid-template-columns: 1fr; }
  .status-card { flex-direction: column; gap: 1rem; }
  .status-divider { width: 60px; height: 1px; }
  .donate-box { flex-direction: column; }
}
