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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #e8d5b0;
  background: #0a0608;
  min-height: 100vh;
  position: relative;
}

/* ── Background ───────────────────────────────────────────────────────── */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,2,8,0.25) 0%, rgba(5,2,8,0.55) 50%, rgba(5,2,8,0.82) 100%),
    url('assets/hero-bg.png') center center / cover no-repeat;
  z-index: 0;
}

.flame-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.hero,
.section,
.footer,
.dev-modal-overlay {
  position: relative;
  z-index: 2;
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: linear-gradient(to bottom, rgba(5,2,8,0.95), transparent);
  z-index: 100;
  border-bottom: 1px solid rgba(180,120,20,0.2);
}

.logo-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: #c8922a;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(200,146,42,0.5);
}

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

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: #c8a86a;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: #f0c060; }

.btn-nav {
  background: linear-gradient(135deg, #8b1a1a, #c41e1e);
  color: #ffd4a0 !important;
  padding: 8px 20px;
  border-radius: 3px;
  border: 1px solid #c41e1e;
  transition: all 0.2s !important;
}
.btn-nav:hover {
  background: linear-gradient(135deg, #c41e1e, #ff2a2a) !important;
  box-shadow: 0 0 15px rgba(200,30,30,0.5);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}

.hero-content { max-width: 780px; }

.title-frame {
  display: inline-block;
  border: 2px solid #8b6914;
  padding: 18px 50px;
  margin-bottom: 30px;
  position: relative;
  background: rgba(5,2,8,0.5);
  box-shadow:
    0 0 30px rgba(180,120,20,0.3),
    inset 0 0 30px rgba(5,2,8,0.5);
}
.title-frame::before, .title-frame::after {
  content: '✦';
  position: absolute;
  top: -12px;
  font-size: 20px;
  color: #c8922a;
  background: #0a0608;
  padding: 0 8px;
}
.title-frame::before { left: 20px; }
.title-frame::after  { right: 20px; }

.game-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #c8922a;
  text-shadow:
    0 0 40px rgba(200,146,42,0.8),
    0 2px 4px rgba(0,0,0,0.9);
  letter-spacing: 6px;
  line-height: 1.1;
}

.game-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 8px;
  color: #a07840;
  margin-top: 8px;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #c8b090;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #6b1010, #b01818);
  color: #ffd4a0;
  border: 1px solid #c02020;
  box-shadow: 0 4px 20px rgba(180,20,20,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #b01818, #e02020);
  box-shadow: 0 6px 30px rgba(220,30,30,0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #c8922a;
  border: 1px solid #8b6914;
}
.btn-secondary:hover {
  background: rgba(200,146,42,0.15);
  border-color: #c8922a;
  box-shadow: 0 0 20px rgba(200,146,42,0.3);
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  letter-spacing: 8px;
  color: #c8922a;
  text-shadow: 0 0 20px rgba(200,146,42,0.4);
}

.divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, #8b6914, transparent);
  margin: 16px auto 0;
}

/* ── Server Status ────────────────────────────────────────────────────── */
.status-section { background: rgba(5,2,8,0.6); border-radius: 4px; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.status-card {
  background: rgba(20,10,5,0.8);
  border: 1px solid rgba(180,120,20,0.25);
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  transition: border-color 0.3s;
}
.status-card:hover { border-color: rgba(200,146,42,0.5); }

.status-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.status-indicator {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #555;
  margin: 0 auto 10px;
  box-shadow: 0 0 10px #555;
  transition: all 0.5s;
}
.status-indicator.online {
  background: #2ecc71;
  box-shadow: 0 0 12px #2ecc71;
  animation: pulse 2s infinite;
}
.status-indicator.offline {
  background: #e74c3c;
  box-shadow: 0 0 12px #e74c3c;
}

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

.status-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: #806040;
  margin-bottom: 8px;
}

.status-value {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #c8922a;
  font-weight: 600;
}

/* ── Patch Notes ──────────────────────────────────────────────────────── */
.patch-container { max-width: 800px; margin: 0 auto; }

.patch-entry {
  background: rgba(15,8,5,0.85);
  border: 1px solid rgba(180,120,20,0.2);
  border-radius: 4px;
  padding: 36px 40px;
  margin-bottom: 24px;
}
.patch-entry.latest { border-color: rgba(200,146,42,0.5); }

.patch-version {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #c8922a;
  letter-spacing: 3px;
}
.patch-date {
  font-size: 0.8rem;
  color: #806040;
  margin-bottom: 20px;
  margin-top: 4px;
}

.patch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.patch-list li {
  font-size: 0.9rem;
  color: #c8b090;
  padding-left: 10px;
  border-left: 2px solid rgba(180,120,20,0.3);
  line-height: 1.5;
}

.patch-subheader {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(180,120,20,0.25);
  color: #e8a060;
}
.patch-issues + .patch-subheader { color: #6ab0e8; }
.patch-issues li { border-left-color: rgba(220,160,60,0.4); color: #c0a070; }
.patch-planned li { border-left-color: rgba(80,150,220,0.4); color: #90b8d8; }

/* ── Factions ─────────────────────────────────────────────────────────── */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.faction-card {
  background: rgba(10,6,3,0.85);
  border-radius: 4px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(100,80,40,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.faction-card:hover {
  transform: translateY(-6px);
}

.faction-card.angel  { border-top: 3px solid #c8d4ff; }
.faction-card.angel:hover  { box-shadow: 0 10px 40px rgba(150,180,255,0.2); }

.faction-card.neutral { border-top: 3px solid #c8922a; }
.faction-card.neutral:hover { box-shadow: 0 10px 40px rgba(200,146,42,0.2); }

.faction-card.demon  { border-top: 3px solid #c02020; }
.faction-card.demon:hover  { box-shadow: 0 10px 40px rgba(200,30,30,0.2); }

.faction-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.faction-card.angel  .faction-icon { color: #c8d4ff; text-shadow: 0 0 15px #a0b0ff; }
.faction-card.neutral .faction-icon { color: #c8922a; text-shadow: 0 0 15px #c8922a; }
.faction-card.demon  .faction-icon { color: #c02020; text-shadow: 0 0 15px #ff2020; }

.faction-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 14px;
  color: #e8d5b0;
}

.faction-card p {
  font-size: 0.88rem;
  color: #a09070;
  line-height: 1.7;
  margin-bottom: 20px;
}

.faction-classes {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #806040;
}

/* ── Download ─────────────────────────────────────────────────────────── */
.download-box {
  display: flex;
  gap: 60px;
  align-items: center;
  background: rgba(10,6,3,0.85);
  border: 1px solid rgba(180,120,20,0.3);
  border-radius: 4px;
  padding: 50px;
  flex-wrap: wrap;
}

.download-info { flex: 1; min-width: 260px; }
.download-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: #c8922a;
  margin-bottom: 8px;
}
.download-info > p {
  font-size: 0.85rem;
  color: #806040;
  margin-bottom: 24px;
}

.requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.requirements li {
  font-size: 0.85rem;
  color: #a09070;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}

.download-btn-area {
  text-align: center;
  flex-shrink: 0;
}

.btn-download {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 50px;
  background: linear-gradient(135deg, #1a4a1a, #1e7a1e);
  color: #a0ffa0;
  border: 1px solid #2ea02e;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(30,180,30,0.3);
  transition: all 0.25s;
  margin-bottom: 16px;
}
.btn-download:hover {
  background: linear-gradient(135deg, #1e7a1e, #20b020);
  box-shadow: 0 8px 40px rgba(30,200,30,0.5);
  transform: translateY(-3px);
}
.btn-sub {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #60c060;
  margin-top: 6px;
}

.download-note { font-size: 0.8rem; color: #605040; }
.download-note a { color: #c8922a; text-decoration: none; }
.download-note a:hover { text-decoration: underline; }

/* ── Auth / Register ──────────────────────────────────────────────────── */
.register-section { max-width: 600px; }

.auth-container {
  background: rgba(10,6,3,0.9);
  border: 1px solid rgba(180,120,20,0.3);
  border-radius: 4px;
  padding: 40px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(180,120,20,0.2);
}

.auth-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  padding: 12px 30px;
  background: transparent;
  border: none;
  color: #806040;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.auth-tab.active {
  color: #c8922a;
  border-bottom-color: #c8922a;
}
.auth-tab:hover { color: #c8922a; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #806040;
}

.form-group input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(180,120,20,0.25);
  border-radius: 3px;
  padding: 12px 16px;
  color: #e8d5b0;
  font-size: 0.9rem;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: #c8922a; }
.form-group input::placeholder { color: #504030; }

.auth-message {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 3px;
  display: none;
}
.auth-message.success { background: rgba(30,120,30,0.3); border: 1px solid #2ea02e; color: #80ff80; display: block; }
.auth-message.error   { background: rgba(180,20,20,0.3); border: 1px solid #c02020; color: #ff8080; display: block; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: rgba(3,1,5,0.98);
  border-top: 1px solid rgba(180,120,20,0.15);
  text-align: center;
  padding: 40px 20px;
}

.footer-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  color: #6b4a14;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.footer-sub, .footer-server {
  font-size: 0.78rem;
  color: #4a3020;
  margin-top: 6px;
}

/* ── Coming Soon styles ───────────────────────────────────────────────── */
.btn-coming-soon {
  cursor: default;
  opacity: 0.85;
}
.btn-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3a2a0a, #5a3a0a);
  border: 1px solid #8a6020;
  border-radius: 4px;
  color: #c8a050;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.coming-soon-badge {
  display: inline-block;
  margin: 12px 0;
  padding: 6px 18px;
  background: rgba(180, 120, 0, 0.2);
  border: 1px solid #8a6020;
  border-radius: 20px;
  color: #f0b040;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-family: 'Cinzel', serif;
}
.coming-soon-box { opacity: 0.92; }

/* ── Forum nav link ───────────────────────────────────────────────────── */
.btn-nav-forum {
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(80,40,120,0.5), rgba(40,15,70,0.5));
  border: 1px solid rgba(160,100,220,0.4);
  border-radius: 4px;
  color: #c8a8f0 !important;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s;
}
.btn-nav-forum:hover, .btn-nav-forum.active-nav {
  background: linear-gradient(135deg, rgba(120,60,180,0.7), rgba(70,25,120,0.7));
  border-color: rgba(200,150,255,0.7);
  color: #e8d0ff !important;
}
.nav-user {
  color: #c8a8f0;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
}

/* ── Forum layout ─────────────────────────────────────────────────────── */
.forum-body { }

.forum-wrapper {
  max-width: 960px;
  margin: 110px auto 80px;
  padding: 0 24px;
  min-height: 70vh;
}

.auth-gate {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}
.auth-gate-box {
  text-align: center;
  padding: 60px 40px;
  background: rgba(10,6,14,0.85);
  border: 1px solid rgba(160,100,220,0.3);
  border-radius: 8px;
}
.auth-gate-box .gate-icon { font-size: 3rem; margin-bottom: 16px; }
.auth-gate-box h2 { font-family: 'Cinzel', serif; font-size: 1.8rem; color: #e8d5b0; margin-bottom: 12px; }
.auth-gate-box p  { color: #b0906a; margin-bottom: 28px; }

.forum-header-bar {
  text-align: center;
  margin-bottom: 36px;
  padding: 30px 0 20px;
  border-bottom: 1px solid rgba(160,100,60,0.3);
}
.forum-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  color: #e8d5b0;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.forum-subtitle { color: #907850; font-size: 0.95rem; }

/* Categories */
.categories-list { display: flex; flex-direction: column; gap: 12px; }
.category-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(15,8,20,0.85);
  border: 1px solid rgba(120,80,40,0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.category-card:hover {
  border-color: rgba(200,150,80,0.7);
  background: rgba(25,14,35,0.9);
}
.cat-icon { font-size: 2rem; min-width: 50px; text-align: center; }
.cat-info { flex: 1; }
.cat-name { font-family: 'Cinzel', serif; font-size: 1.1rem; color: #e8d5b0; margin-bottom: 4px; }
.cat-desc { color: #907850; font-size: 0.85rem; }
.cat-stats { text-align: right; color: #705030; font-size: 0.82rem; display: flex; flex-direction: column; gap: 4px; }

/* Breadcrumb */
.forum-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #907850;
}
.forum-breadcrumb a { color: #c8a050; text-decoration: none; }
.forum-breadcrumb a:hover { color: #e8d5b0; }
.forum-breadcrumb span { color: #e8d5b0; }
.forum-breadcrumb span::before, .forum-breadcrumb a + a::before { content: '›'; margin-right: 10px; color: #705030; }

.forum-actions { margin-bottom: 16px; }

/* Topics */
.topics-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.topic-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(15,8,20,0.85);
  border: 1px solid rgba(80,50,20,0.4);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.topic-row:hover { border-color: rgba(160,120,60,0.6); }
.topic-icon { font-size: 1.4rem; }
.topic-info { flex: 1; }
.topic-title-text { font-family: 'Cinzel', serif; font-size: 0.95rem; color: #e8d5b0; margin-bottom: 4px; }
.topic-meta { font-size: 0.8rem; color: #705030; }
.topic-stats { text-align: right; color: #605020; font-size: 0.8rem; display: flex; flex-direction: column; gap: 3px; }

/* New topic form */
.new-topic-form {
  padding: 24px;
  background: rgba(10,6,14,0.9);
  border: 1px solid rgba(120,80,40,0.4);
  border-radius: 6px;
  margin-top: 20px;
}
.new-topic-form h3 { font-family: 'Cinzel', serif; color: #e8d5b0; margin-bottom: 16px; }
.new-topic-form input, .new-topic-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(20,12,28,0.9);
  border: 1px solid rgba(100,70,30,0.5);
  border-radius: 4px;
  color: #e8d5b0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
}
.new-topic-form input:focus, .new-topic-form textarea:focus {
  outline: none;
  border-color: rgba(180,130,60,0.7);
}

/* Posts */
.topic-header-card {
  padding: 24px;
  background: rgba(10,6,14,0.9);
  border: 1px solid rgba(120,80,40,0.4);
  border-radius: 6px;
  margin-bottom: 16px;
}
.topic-header-card h2 { font-family: 'Cinzel', serif; color: #e8d5b0; margin-bottom: 8px; }
.topic-author-meta { font-size: 0.82rem; color: #705030; }

.posts-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.post-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(15,8,20,0.85);
  border: 1px solid rgba(60,40,15,0.4);
  border-radius: 6px;
}
.post-card.post-op { border-color: rgba(160,100,40,0.5); }
.post-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #5a3010, #2a1505);
  border: 1px solid rgba(160,100,40,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #c8a050;
  flex-shrink: 0;
}
.post-body { flex: 1; }
.post-author { font-family: 'Cinzel', serif; font-size: 0.9rem; color: #e8d5b0; margin-bottom: 2px; }
.post-date { font-size: 0.78rem; color: #605020; margin-bottom: 10px; }
.post-content { color: #c8b090; font-size: 0.9rem; line-height: 1.7; white-space: pre-wrap; }
.op-badge {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(160,100,0,0.3);
  border: 1px solid rgba(200,140,0,0.4);
  border-radius: 3px;
  font-size: 0.7rem;
  color: #e0a030;
  margin-left: 6px;
}

/* Reply form */
.reply-form {
  padding: 24px;
  background: rgba(10,6,14,0.9);
  border: 1px solid rgba(80,50,20,0.4);
  border-radius: 6px;
}
.reply-form h3 { font-family: 'Cinzel', serif; color: #e8d5b0; margin-bottom: 16px; }
.reply-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(20,12,28,0.9);
  border: 1px solid rgba(80,50,20,0.5);
  border-radius: 4px;
  color: #e8d5b0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 12px;
}
.reply-form textarea:focus { outline: none; border-color: rgba(180,130,60,0.7); }

.form-actions { display: flex; gap: 12px; }
.forum-msg { margin-top: 10px; font-size: 0.85rem; color: #e06040; }
.forum-empty { text-align: center; color: #605020; padding: 40px; font-style: italic; }

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .section { padding: 60px 20px; }
  .download-box { padding: 30px 20px; }
  .auth-container { padding: 24px 20px; }
  .forum-wrapper { margin-top: 90px; padding: 0 12px; }
  .category-card { flex-wrap: wrap; }
  .cat-stats { flex-direction: row; gap: 12px; }
}

/* ── Development Button in Navbar ─────────────────────────────────────────── */
.btn-dev {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(40,80,40,0.55), rgba(15,40,15,0.55));
  border: 1px solid rgba(80,180,80,0.45);
  border-radius: 4px;
  color: #80e880 !important;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-dev:hover {
  background: linear-gradient(135deg, rgba(60,130,60,0.75), rgba(25,70,25,0.75));
  border-color: rgba(120,220,120,0.75);
  color: #b0ffb0 !important;
}

/* ── Dev Download Modal ───────────────────────────────────────────────────── */
.dev-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  z-index: 9000;
  justify-content: center;
  align-items: center;
}
.dev-modal-overlay.active {
  display: flex;
}

.dev-modal {
  background: linear-gradient(160deg, #0d0a04 0%, #080508 100%);
  border: 1px solid rgba(80, 180, 80, 0.35);
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  box-shadow: 0 0 60px rgba(60, 160, 60, 0.12), 0 0 120px rgba(0,0,0,0.6);
  animation: devModalIn 0.2s ease-out;
}

@keyframes devModalIn {
  from { opacity: 0; transform: scale(0.93) translateY(-12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.dev-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(80, 180, 80, 0.2);
}
.dev-modal-icon {
  font-size: 1.5rem;
}
.dev-modal-header h2 {
  flex: 1;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #90e890;
  margin: 0;
  letter-spacing: 0.08em;
}
.dev-modal-close {
  background: none;
  border: none;
  color: #605860;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.dev-modal-close:hover {
  color: #e88080;
  background: rgba(255,80,80,0.08);
}

.dev-modal-body {
  padding: 24px;
}
.dev-modal-desc {
  color: #a09060;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.dev-modal-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(80, 180, 80, 0.1);
  border: 1px solid rgba(80, 180, 80, 0.3);
  border-radius: 20px;
  color: #70c870;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.dev-modal-form label {
  display: block;
  color: #c8b080;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.dev-modal-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: rgba(5, 10, 5, 0.8);
  border: 1px solid rgba(80, 160, 80, 0.35);
  border-radius: 5px;
  color: #e0ffe0;
  font-size: 0.95rem;
  font-family: monospace;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.dev-modal-form input[type="password"]:focus {
  border-color: rgba(100, 220, 100, 0.65);
  box-shadow: 0 0 12px rgba(60, 180, 60, 0.15);
}

.dev-modal-message {
  min-height: 18px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  text-align: center;
}
.dev-modal-message.error   { color: #e86060; }
.dev-modal-message.success { color: #60e860; }

.dev-btn-submit {
  margin-top: 0;
}
.dev-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dev-modal-note {
  margin-top: 16px;
  color: #604850;
  font-size: 0.75rem;
  text-align: center;
}
