:root {
  --bg: #05070a;
  --text: #e8eaee;
  --accent: #d4af37; /* Gold */
  --accent-hover: #f4cf57;
  --accent-red: #8b0000;
  --muted: #8b9bb4;
  --surface: #0f1219;
  --border: #2a2f3d;
  --header-bg: rgba(9, 11, 16, 0.95);
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
}
/* body height removed to allow growth */
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("../images/body_bg.jpg"); /* Fallback or texture */
  background-repeat: repeat;
  color: var(--text);
  font-family: "Cinzel", "Inter", serif; /* Cinzel for headings/fantasy feel */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  padding-top: 80px;
  flex: 1;
}
.page-main {
  padding-top: 120px;
  min-height: 80vh;
  background-image: url("../images/hero_bg.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  flex: 1;
  width: 100%;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
/* Topbar / Header */
.topbar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}
.topbar .brand {
  display: flex;
  align-items: center;
}
.topbar .brand img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}
.nav {
  display: flex;
  align-items: center;
}
.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-menu a:hover {
  color: var(--accent);
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: url("../images/btn_texture.png") center/cover;
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #ffebb8;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s,
    filter 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-family: inherit;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}
.btn.outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.btn.outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  background: url("../images/hero_bg.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.2) 0%,
    #05070a 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 800px;
}
.hero-content h1 {
  display: none; /* Replaced by logo image */
}
.hero-logo {
  max-width: 500px;
  width: 100%;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}
.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 32px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections General */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
h2 {
  color: var(--accent);
  font-size: 32px;
  margin-bottom: 32px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  font-family: "Cinzel", serif;
}
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-red);
  margin: 16px auto 0;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.news-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.news-content {
  padding: 20px;
  flex: 1;
}
.news-title {
  color: var(--accent);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}
.news-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #090b10;
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* Layout Grid for Main Content */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 64px;
}
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.widget-title {
  color: var(--accent);
  font-family: "Cinzel", serif;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}
.stat {
  background: #10141b;
  border: 1px solid #23293a;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.download-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.req-list {
  background: #10141b;
  border: 1px solid #23293a;
  border-radius: 12px;
  padding: 12px;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .topbar .brand img {
    height: 40px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: block;
  }
  .topbar.open .nav-menu {
    display: flex;
  }
  .hero-logo {
    width: 80%;
  }
  .stats-bar,
  .download-grid {
    grid-template-columns: 1fr;
  }
}
/* ... previous code ... */

/* CREATIVE ENHANCEMENTS & NEW SECTIONS */

/* Guide Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.guide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.guide-card:hover {
  transform: translateX(5px);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}
.guide-card:hover::before {
  opacity: 1;
}
.guide-icon {
  font-size: 24px;
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.guide-info h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
.guide-info p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Donation Widget Creative */
.donation-widget {
  background: radial-gradient(circle at top right, #1a0b0b 0%, #0f1219 100%);
  border: 1px solid #5a1e1e;
  position: relative;
  overflow: hidden;
}
.donation-widget::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(180, 60, 45, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Download Steps */
.download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.dl-step {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  transition: transform 0.3s;
}
.dl-step:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.step-num {
  width: 40px; height: 40px;
  background: var(--accent);
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.dl-step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.dl-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #666;
}
.req-mini {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Global Creative Enhancements */
h2, .widget-title {
  text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05070a; 
}
::-webkit-scrollbar-thumb {
  background: #2a2f3d; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent); 
}

/* Shop Styles */
.shop-balance {
  transition: transform 0.2s;
}
.shop-balance:hover {
  transform: scale(1.05);
}
.shop-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.shop-nav {
  display: flex;
  flex-direction: column;
}
.shop-cat-btn {
  background: transparent;
  border: none;
  padding: 16px 20px;
  text-align: left;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.shop-cat-btn:hover, .shop-cat-btn.active {
  background: rgba(212, 175, 55, 0.05);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}
.shop-cat-btn.active i {
  opacity: 1 !important;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.shop-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.shop-card-img {
  height: 180px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.shop-card-img i {
  font-size: 4rem;
  color: #333;
  transition: transform 0.3s, color 0.3s;
}
.shop-card:hover .shop-card-img i {
  transform: scale(1.1);
  color: var(--accent);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}
.shop-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shop-card h4 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 1.1rem;
}
.shop-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 20px 0;
  flex: 1;
}
.shop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.shop-card .price {
  color: #FFD700;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-buy {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.btn-buy:hover {
  background: var(--accent);
  color: #000;
}
