/* ========================================
   REDOKU — Единый файл стилей
   Dark Mode + Copper/Turquoise акценты
   Enhanced Glassmorphism + Smooth Animations
   ======================================== */

:root {
  --bg: #0a0b0e;
  --bg-alt: #0d0e12;
  --surface: #0F1116;
  --surface-light: #16181d;
  --surface-lighter: #1c1e24;
  --copper: #e67e22;
  --copper-hover: #d68910;
  --copper-glow: rgba(230, 126, 34, 0.4);
  --turquoise: #1abc9c;
  --turquoise-glow: rgba(26, 188, 156, 0.4);
  --accent: #ff2e43;
  --gold: #f1c40f;
  --purple: #a855f7;
  --text: #e2e8f0;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border: rgba(255,255,255,0.06);
  --glass-bg: rgba(255,255,255,0.03);
  --glass-bg-strong: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-strong: rgba(255,255,255,0.12);
  --nav-bg: rgba(10, 11, 14, 0.8);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-copper: 0 4px 30px rgba(230,126,34,0.15);
  --shadow-copper-hover: 0 8px 40px rgba(230,126,34,0.3);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}

::selection { background: rgba(230,126,34,0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-lighter); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* ===== Background effects ===== */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
  z-index: -2; pointer-events: none;
}
.ambient-light {
  position: fixed; top: -20%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(230,126,34,0.08) 0%, transparent 60%);
  border-radius: 50%; z-index: -1; pointer-events: none;
  filter: blur(80px); animation: blob 8s infinite ease-in-out;
}
.ambient-light.alt {
  top: auto; bottom: -20%; left: auto; right: -10%;
  background: radial-gradient(circle, rgba(26,188,156,0.06) 0%, transparent 60%);
  animation-delay: 3s;
}
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-60px) scale(1.1); }
  66% { transform: translate(-30px,30px) scale(0.9); }
}

/* ===== Glass ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm),
              inset 0 1px 0 0 rgba(255,255,255,0.03);
}
.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-md),
              inset 0 1px 0 0 rgba(255,255,255,0.04);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  transition: all var(--transition-slow);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.4),
              inset 0 -1px 0 0 rgba(255,255,255,0.05);
  background: rgba(10, 11, 14, 0.95) !important;
}
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition-fast); text-decoration: none;
  position: relative; padding: 0.25rem 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--copper); border-radius: 1px;
  transition: width var(--transition-base);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active {
  color: var(--copper);
}
.nav-link.active::after { width: 100%; }

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(10,11,14,0.98);
  backdrop-filter: blur(30px);
  z-index: 90;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: #fff; text-decoration: none;
  transition: all var(--transition-base);
  transform: translateY(20px); opacity: 0;
}
.mobile-menu.open a {
  transform: translateY(0); opacity: 1;
}
.mobile-menu a:hover { color: var(--copper); transform: scale(1.05); }
.mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu a:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu a:nth-child(8) { transition-delay: 0.4s; }

/* ===== Spotlight Card ===== */
.spotlight-card {
  position: relative; overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.spotlight-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, 0); left: var(--mouse-x, 0);
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,126,34,0.1) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none; z-index: 0;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover {
  border-color: rgba(230,126,34,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3),
              0 0 30px rgba(230,126,34,0.08);
}
.spotlight-content { position: relative; z-index: 1; }

/* ===== Text ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--copper), var(--turquoise));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-copper {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-glow { text-shadow: 0 0 30px rgba(230,126,34,0.5); }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== FAQ Accordion ===== */
details.faq-item {
  transition: all var(--transition-slow);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden; border-radius: var(--radius-lg);
}
details.faq-item[open] {
  background: rgba(230,126,34,0.03);
  border-color: rgba(230,126,34,0.2);
  box-shadow: 0 10px 30px -10px rgba(230,126,34,0.1),
              inset 0 1px 0 0 rgba(255,255,255,0.03);
}
details.faq-item[open] summary { border-bottom: 1px solid rgba(230,126,34,0.08); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary ~ * { animation: sweep 0.4s ease-in-out; }
@keyframes sweep {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.faq-icon { transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
details.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--copper); }

/* ===== Wiki Accordion ===== */
.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease-out, padding 0.3s ease-out;
  opacity: 0;
}
.accordion-content.open { max-height: 3000px; padding-top: 1rem; opacity: 1; }
.accordion-icon { transition: transform 0.3s ease-out; }
.accordion-icon.rotate { transform: rotate(180deg); }
.accordion-icon.rotate i { transform: rotate(180deg); }

/* ===== Timeline ===== */
.timeline-container { position: relative; padding-left: 40px; }
.timeline-line {
  position: absolute; left: 15px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(230,126,34,0.15), rgba(230,126,34,0.15), transparent);
}
.timeline-progress {
  position: absolute; left: 15px; top: 0; width: 2px;
  background: linear-gradient(to bottom, var(--copper), var(--turquoise));
  height: 0%; transition: height 0.3s ease-out;
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-dot {
  position: absolute; left: -32px; top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(230,126,34,0.3);
  transition: all var(--transition-base); z-index: 1;
}
.timeline-item.active .timeline-dot {
  background: var(--copper); border-color: var(--copper);
  box-shadow: 0 0 15px var(--copper-glow);
}
.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: all var(--transition-base); cursor: pointer;
}
.timeline-card:hover {
  border-color: rgba(230,126,34,0.3);
  background: var(--glass-bg-strong);
  transform: translateX(8px);
}
.timeline-card.active {
  border-color: rgba(230,126,34,0.5);
  background: rgba(230,126,34,0.04);
  box-shadow: 0 0 20px rgba(230,126,34,0.1);
}
.timeline-expand {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease; opacity: 0;
}
.timeline-expand.open { max-height: 500px; opacity: 1; padding-top: 1rem; }
.timeline-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0;
}
.timeline-content.open { max-height: 500px; opacity: 1; padding-top: 1rem; }

/* ===== FAQ (div-based) ===== */
.faq-item {
  background: rgba(255,255,255,0.02); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 1rem;
  margin-bottom: 12px; overflow: hidden; transition: all 0.3s ease; cursor: pointer;
}
.faq-item:hover { border-color: rgba(230,126,34,0.2); }
.faq-item.open { border-color: rgba(230,126,34,0.4); background: rgba(230,126,34,0.03); }
.faq-question {
  padding: 1.25rem; display: flex; justify-content: space-between; align-items: center;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.25rem;
}
.faq-answer.open { max-height: 200px; padding-bottom: 1.25rem; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ===== Lore Timeline (centered) ===== */
.lore-timeline .timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--copper) 15%, var(--copper) 85%, transparent 100%);
  transform: translateX(-50%);
}
.lore-timeline .timeline-dot {
  position: absolute; left: 50%; top: 2rem; width: 16px; height: 16px;
  background: var(--copper); border: 3px solid var(--bg); border-radius: 50%;
  transform: translateX(-50%); z-index: 2;
  box-shadow: 0 0 20px rgba(230,126,34,0.5);
}
.lore-timeline .timeline-card { position: relative; }
.lore-timeline .timeline-card::before {
  content: ''; position: absolute; top: 2rem; width: 40px; height: 2px; background: var(--copper);
}
.lore-timeline .timeline-left::before { right: -42px; }
.lore-timeline .timeline-right::before { left: -42px; }
@media (max-width: 768px) {
  .lore-timeline .timeline-line { left: 1.5rem; }
  .lore-timeline .timeline-dot { left: 1.5rem; }
  .lore-timeline .timeline-left::before,
  .lore-timeline .timeline-right::before { left: 2.5rem; right: auto; }
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--surface);
  border: 1px solid rgba(26,188,156,0.3);
  color: #fff; padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5),
              inset 0 1px 0 0 rgba(255,255,255,0.03);
  display: flex; align-items: center; gap: 1rem;
  transform: translateY(100px); opacity: 0;
  transition: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
  z-index: 200; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.visible { display: flex; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem; max-width: 600px; width: 100%;
  transform: scale(0.95) translateY(10px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg),
              inset 0 1px 0 0 rgba(255,255,255,0.03);
}
.modal-overlay.visible .modal-box { transform: scale(1) translateY(0); opacity: 1; }

/* ===== Bento Grid ===== */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.bento-wide { grid-column: span 2; }
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* ===== Wiki Layout ===== */
html { scroll-behavior: smooth; }
.wiki-layout {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 2rem; max-width: 1280px; margin: 0 auto;
}
@media (max-width: 1024px) { .wiki-layout { grid-template-columns: 1fr; } }
.wiki-sidebar {
  position: sticky; top: 5rem; align-self: start;
  max-height: calc(100vh - 6rem); overflow-y: auto;
}
.wiki-sidebar::-webkit-scrollbar { width: 3px; }
.wiki-sidebar::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 2px; }
.wiki-toc { position: sticky; top: 5rem; align-self: start; }

/* Wiki TOC links */
#wiki-toc-links a {
  display: block;
  padding: 0.25rem 0.5rem;
  border-left: 2px solid transparent;
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.15s ease;
}
#wiki-toc-links a:hover {
  color: var(--copper);
  border-left-color: var(--copper);
  background: rgba(255,255,255,0.03);
}

/* Sidebar scroll for inline Tailwind layout (wiki.html) */
aside.lg\:sticky { scrollbar-width: thin; scrollbar-color: var(--copper) transparent; }
aside.lg\:sticky::-webkit-scrollbar { width: 3px; }
aside.lg\:sticky::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 2px; }

.sidebar-link {
  display: block; padding: 0.5rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.875rem; color: var(--text-muted);
  text-decoration: none; transition: all var(--transition-fast);
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.sidebar-link.active {
  color: var(--copper);
  background: rgba(230,126,34,0.06);
  border-left-color: var(--copper);
}

/* ===== Wiki Section ===== */
.wiki-section {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.wiki-section.visible { opacity: 1; transform: translateY(0); }
.wiki-section.hidden { display: none; }

/* ===== Prose ===== */
.prose h2 {
  color: #fff; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem;
}
.prose p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; color: var(--text-muted); margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--copper); text-decoration: none; transition: color var(--transition-fast); }
.prose a:hover { color: var(--copper-hover); }
.prose strong { color: #fff; }

/* ===== Command item ===== */
.cmd-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.02); border-radius: 0.5rem;
  cursor: pointer; transition: all var(--transition-fast);
}
.cmd-item:hover { background: rgba(255,255,255,0.05); }

/* ===== Notice ===== */
.notice {
  border-left: 4px solid var(--copper);
  padding: 1rem 1.25rem;
  background: rgba(230,126,34,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted); font-size: 0.875rem;
}
.notice-danger { border-left-color: var(--accent); background: rgba(255,46,67,0.03); }
.notice-success { border-left-color: var(--turquoise); background: rgba(26,188,156,0.03); }

/* ===== Lore ===== */
.lore-quote {
  border-left: 4px solid var(--copper);
  padding: 1rem 1.5rem; font-style: italic;
  color: #a8a8a8; background: rgba(230,126,34,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.redacted {
  background: var(--surface); color: var(--surface);
  padding: 0 4px; border-radius: 2px;
  cursor: not-allowed; user-select: none;
  transition: all var(--transition-fast);
}
.redacted:hover { background: var(--surface-lighter); color: var(--text-dim); }

/* ===== Pricing ===== */
.pricing-hit { transform: scale(1.05); z-index: 10; }
.pricing-hit:hover { transform: scale(1.08); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem 2rem; background: var(--copper); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  border-radius: var(--radius-lg); border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(230,126,34,0.3);
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition-fast);
}
.btn-primary:hover {
  background: var(--copper-hover);
  box-shadow: 0 8px 30px rgba(230,126,34,0.4);
  transform: translateY(-2px);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-strong);
  color: #fff; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1rem;
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--transition-base); text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-ip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: #fff; font-weight: 700; font-size: 0.75rem;
  border-radius: 0.5rem; cursor: pointer; transition: all var(--transition-fast);
}
.btn-ip:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }

/* ===== Icon Box ===== */
.icon-box {
  width: 3.5rem; height: 3.5rem; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; transition: all var(--transition-base);
}

/* ===== Card ===== */
.card {
  background: linear-gradient(135deg, rgba(22,24,29,0.8), rgba(10,11,14,0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: 2rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm),
              inset 0 1px 0 0 rgba(255,255,255,0.02);
}

/* ===== Filters ===== */
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast);
}
.filter-btn:hover { background: rgba(255,255,255,0.05); }
.filter-btn.active {
  background: var(--copper); border-color: transparent;
  color: #fff; box-shadow: 0 0 20px rgba(230,126,34,0.3);
}

/* ===== Preloader ===== */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
.preloader.done { opacity: 0; pointer-events: none; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
}

/* ===== Misc ===== */
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
}

/* ===== Custom List Markers ===== */
.custom-list li::marker {
  color: var(--copper);
}

/* ===== Online Indicator ===== */
.online-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(26,188,156,0.08);
  border: 1px solid rgba(26,188,156,0.2);
  border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--turquoise);
}
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 8px var(--turquoise-glow);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* ===== Discord Widget ===== */
.discord-widget {
  background: rgba(88,101,242,0.05);
  border: 1px solid rgba(88,101,242,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
}
.discord-widget:hover {
  border-color: rgba(88,101,242,0.3);
  box-shadow: 0 4px 20px rgba(88,101,242,0.1);
}

/* ===== Smooth hover for all interactive ===== */
a, button { transition: all var(--transition-fast); }

/* ===== Glow effect ===== */
.glow-copper {
  box-shadow: 0 0 20px rgba(230,126,34,0.2),
              0 0 40px rgba(230,126,34,0.1);
}
.glow-turquoise {
  box-shadow: 0 0 20px rgba(26,188,156,0.2),
              0 0 40px rgba(26,188,156,0.1);
}

/* ===== Divider ===== */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
}

/* ===== Section spacing ===== */
.section-gap { padding: 5rem 0; }

@media (max-width: 640px) { .hide-mobile { display: none !important; } }
@media (min-width: 641px) { .show-mobile { display: none !important; } }
