/* ==========================================
   NiNE SMP - Green & Black Minecraft Style
   Custom Design System & Styling
   ========================================== */

/* Variables */
:root {
  --bg-primary: #060807; /* Dark Obsidian Black */
  --bg-secondary: #0c0f0d; /* Slightly lighter dark green-black */
  --bg-accent: #0f1612; /* Forest block dark card background */
  
  --emerald-glowing: #10b981; /* Emerald/Creeper bright green */
  --emerald-dark: #065f46; /* Deep forest green */
  --emerald-light: #34d399; /* Minty light green */
  --emerald-fade: rgba(16, 185, 129, 0.1);
  --emerald-fade-strong: rgba(16, 185, 129, 0.25);
  
  --text-main: #f0fdf4; /* Off-white green-tinted text */
  --text-muted: #86efac; /* Muted light green */
  --text-dark: #34d399;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  /* The "Graph" grid background mixed with dark gradient */
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #0d281a 0%, var(--bg-primary) 70%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient glow bubbles in background */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
}

.spot-1 {
  width: 500px;
  height: 500px;
  background: var(--emerald-glowing);
  top: -100px;
  left: 10%;
}

.spot-2 {
  width: 400px;
  height: 400px;
  background: var(--emerald-light);
  bottom: -50px;
  right: 5%;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--emerald-fade-strong);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.nav-logo i {
  color: var(--emerald-glowing);
  filter: drop-shadow(0 0 8px var(--emerald-glowing));
  font-size: 24px;
}

.nav-logo span span {
  color: var(--emerald-glowing);
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  color: var(--emerald-light);
  background: var(--emerald-fade);
  border-color: rgba(16, 185, 129, 0.2);
}

.nav-btn.active {
  color: var(--bg-primary);
  background: var(--emerald-glowing);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.nav-discord-btn {
  background: #5865F2;
  color: #fff;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

/* Sections management */
.section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT PAGE ===== */
.hero-logo-wrapper {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.35));
  transition: var(--transition-smooth);
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
}

.hero-logo:hover {
  transform: scale(1.12) rotate(360deg);
  filter: drop-shadow(0 0 35px rgba(16, 185, 129, 0.75));
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.hero-section {
  text-align: center;
  padding: 40px 0 20px;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--emerald-fade);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.online-indicator {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
}

.online-dot {
  display: block;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
}

.online-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: radar-ping 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes radar-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

.about-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.15));
}

.about-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* IP Cards Grid */
.ip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.ip-card {
  background: var(--bg-accent);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.ip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-glowing), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.ip-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-glowing);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.ip-card:hover::before {
  opacity: 1;
}

.ip-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ip-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--emerald-fade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--emerald-light);
}

.ip-card-title {
  display: flex;
  flex-direction: column;
}

.edition-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ip-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.ip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.port-label {
  font-size: 13px;
  color: var(--text-dark);
}

.highlight-port {
  color: var(--emerald-glowing);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.action-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  background: var(--emerald-glowing);
  color: var(--bg-primary);
  border-color: var(--emerald-glowing);
}

/* Stats Panel */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 48px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.stat-card:not(:last-child) {
  border-right: 1px solid rgba(16, 185, 129, 0.15);
}

.stat-icon {
  font-size: 28px;
  color: var(--emerald-glowing);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-accent);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: var(--border-radius);
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--emerald-glowing);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
  background: rgba(16, 22, 18, 0.7);
}

.feature-icon {
  font-size: 32px;
  color: var(--emerald-glowing);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.feature-preview-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--emerald-light);
  margin-top: 16px;
  font-weight: 700;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-preview-tag {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 8px var(--emerald-glowing);
}


/* ===== STORE SECTION ===== */
.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--emerald-glowing);
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

.store-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.store-tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.store-tab-btn:hover {
  background: var(--emerald-fade);
  color: var(--emerald-light);
}

.store-tab-btn.active {
  background: var(--emerald-fade-strong);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
}

.store-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.store-pane.active {
  display: block;
}

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

/* Rank Cards Grid */
.rank-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.rank-item-card {
  background: #000000; /* Pure black to blend with black shades of the images */
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.rank-item-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald-glowing);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
  background: #000000;
}

.rank-badge {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: 1px;
}

.rank-main-info {
  margin: 12px 0 20px;
}

.rank-icon-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.25));
  display: block;
}

.rank-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.rank-cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--emerald-glowing);
  margin-top: 4px;
}

.rank-perks {
  list-style: none;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
  padding-top: 16px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.rank-perks li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-perks li i {
  color: var(--emerald-glowing);
}

.rank-perks li.unavailable {
  opacity: 0.4;
  text-decoration: line-through;
}

.rank-perks li.unavailable i {
  color: #ef4444;
}

.btn-purchase {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--emerald-fade-strong);
  color: var(--emerald-light);
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.rank-item-card:hover .btn-purchase {
  background: var(--emerald-glowing);
  color: var(--bg-primary);
  border-color: var(--emerald-glowing);
}

/* Featured Rank details */
.rank-item-card.featured {
  border-color: #fbbf24;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.1);
}

.rank-item-card.featured .rank-name {
  color: #fbbf24;
}

.rank-item-card.featured .rank-cost {
  color: #fbbf24;
}

.rank-item-card.featured .rank-badge {
  color: #fbbf24;
}

.featured-ribbon {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #fbbf24;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.featured-btn {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.rank-item-card.featured:hover .featured-btn {
  background: #fbbf24;
  color: #000;
  border-color: #fbbf24;
}

/* Custom rank styling */
.rank-item-card.custom-rank {
  border-color: #22d3ee;
  background: linear-gradient(180deg, #000000 0%, rgba(34, 211, 238, 0.05) 100%);
}

.rank-item-card.custom-rank .rank-name {
  color: #22d3ee;
}

.rank-item-card.custom-rank .rank-cost {
  color: #22d3ee;
}

.rank-item-card.custom-rank .rank-badge {
  color: #22d3ee;
}

.custom-btn {
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}

.rank-item-card.custom-rank:hover .custom-btn {
  background: #22d3ee;
  color: #000;
  border-color: #22d3ee;
}

/* Keys Section Layout */
.keys-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.store-sub-section {
  background: var(--bg-secondary);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  padding: 24px;
}

.sub-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-light);
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-accent);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.shop-item:hover {
  border-color: var(--emerald-fade-strong);
}

.item-title {
  font-size: 14px;
  font-weight: 600;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald-light);
}

.shop-buy-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.shop-buy-btn:hover {
  background: var(--emerald-glowing);
  color: var(--bg-primary);
  border-color: var(--emerald-glowing);
}

.store-disclaimer {
  display: flex;
  gap: 16px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 32px;
}

.disclaimer-icon {
  font-size: 24px;
  color: var(--emerald-glowing);
}

.disclaimer-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.disclaimer-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== TIMELINE / UPDATES SECTION ===== */
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.timeline-column {
  background: var(--bg-secondary);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  padding: 24px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.column-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-theme { color: var(--emerald-light); }
.ann-theme { color: #60a5fa; }

.btn-add-post {
  background: rgba(16, 185, 129, 0.15);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  color: var(--emerald-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-add-post:hover {
  background: var(--emerald-fade-strong);
}

.ann-post {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
}

.ann-post:hover {
  background: rgba(96, 165, 250, 0.25);
}

.timeline-tree {
  position: relative;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-tree::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(16, 185, 129, 0.15);
}

.timeline-card {
  position: relative;
  background: var(--bg-accent);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  padding: 16px 20px;
  transition: var(--transition-smooth);
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-glowing);
  border: 2px solid var(--bg-secondary);
}

.timeline-card:hover {
  border-color: var(--emerald-fade-strong);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.timeline-date {
  font-size: 11px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline-badge {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.timeline-badge.update {
  background: var(--emerald-fade);
  color: var(--emerald-light);
}

.timeline-badge.ann {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== COMMUNITY ===== */
.community-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.team-group {
  display: flex;
  flex-direction: column;
}

.group-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--emerald-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.group-label::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: rgba(16, 185, 129, 0.15);
  margin-left: 16px;
}

.owners-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.crown-icon {
  position: absolute;
  top: -16px;
  font-size: 24px;
  color: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.avatar-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--emerald-glowing), #fbbf24);
  margin-bottom: 16px;
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald-light);
  overflow: hidden;
}

.user-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.user-role {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 20px;
  margin: 4px 0 16px;
}

.user-role.owner {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.user-role.dev {
  background: var(--emerald-fade);
  color: var(--emerald-light);
}

.social-link {
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.social-link.yt { color: #f87171; }
.social-link.yt:hover { color: #ef4444; }
.social-link.web { color: var(--emerald-light); }
.social-link.web:hover { color: var(--emerald-glowing); }

/* Staff Row Layout */
.chips-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  transition: var(--transition-smooth);
}

.staff-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.staff-small-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-fade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-light);
  overflow: hidden;
}

.staff-details {
  display: flex;
  flex-direction: column;
}

.staff-name {
  font-size: 14px;
  font-weight: 600;
}

.role-pill {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-start;
  margin-top: 2px;
}

.admin-pill { color: #f87171; }
.mod-pill { color: #4ade80; }

/* Discord Widget Details */
.discord-card-widget {
  position: relative;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.discord-logo-bg {
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 140px;
  color: rgba(88, 101, 242, 0.06);
  pointer-events: none;
}

.widget-details {
  max-width: 60%;
}

.widget-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.widget-desc {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.widget-counts {
  display: flex;
  gap: 24px;
}

.count-item {
  display: flex;
  flex-direction: column;
}

.count-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.count-num.green {
  color: #10b981;
}

.count-lbl {
  font-size: 11px;
  color: #9ca3af;
}

.btn-discord-join {
  background: #5865F2;
  color: #fff;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-discord-join:hover {
  background: #4752c4;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  width: 440px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  color: var(--text-main);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald-glowing);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-accent);
  border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.btn-secondary {
  background: none;
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.05);
}

.btn-primary {
  background: var(--emerald-glowing);
  color: var(--bg-primary);
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive media queries */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-menu {
    width: 100%;
    justify-content: space-around;
  }
  
  .nav-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .about-title {
    font-size: 38px;
  }
  
  .ip-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    padding-bottom: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .keys-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .timeline-container {
    grid-template-columns: 1fr;
  }
  
  .owners-layout {
    grid-template-columns: 1fr;
  }
  
  .discord-card-widget {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .widget-details {
    max-width: 100%;
  }
}

/* Store Specific Enhancements */
.store-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid var(--emerald-fade-strong);
  border-radius: var(--border-radius);
  padding: 32px;
  margin-bottom: 32px;
  overflow: hidden;
  gap: 24px;
}

.store-banner-text {
  max-width: 60%;
}

.store-banner-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: 8px;
}

.store-banner-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.store-banner-graphic {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.25));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sub-section-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 10px;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.shop-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-item-thumbnail {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.3));
  transition: var(--transition-smooth);
}

.shop-item:hover .shop-item-thumbnail {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.sub-section-title {
  display: flex;
  align-items: center;
}

.btn-preview {
  width: 100%;
  background: var(--emerald-fade);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald-light);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.btn-preview:hover {
  background: var(--emerald-fade-strong);
  border-color: var(--emerald-glowing);
  color: #fff;
}

@media (max-width: 768px) {
  .store-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .store-banner-text {
    max-width: 100%;
  }
  .store-banner-graphic {
    max-width: 180px;
  }
}

/* Server Uptime / System Status Widget */
.status-widget {
  background: var(--bg-secondary);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-top: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.status-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.status-widget-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.status-widget-header h3 i {
  color: var(--emerald-light);
  filter: drop-shadow(0 0 5px var(--emerald-light));
}

.status-badge-active {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--emerald-light);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-glowing);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glowing);
  animation: pulse 1.8s infinite;
}

.uptime-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.uptime-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uptime-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.system-status {
  font-size: 13px;
  font-weight: 600;
}

.text-green {
  color: var(--emerald-light);
}

.uptime-bar-chart {
  display: flex;
  gap: 4px;
  height: 34px;
  align-items: flex-end;
}

.uptime-tick {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.uptime-tick:hover {
  transform: scaleY(1.15) scaleX(1.05);
  z-index: 10;
}

.tick-operational {
  background-color: var(--emerald-dark);
}
.uptime-tick.tick-operational:hover {
  background-color: var(--emerald-glowing);
  box-shadow: 0 0 10px var(--emerald-glowing);
}

.tick-warning {
  background-color: #b45309; /* Deep warning gold */
}
.uptime-tick.tick-warning:hover {
  background-color: #f59e0b; /* Bright warning gold */
  box-shadow: 0 0 10px #f59e0b;
}

.tick-down {
  background-color: #991b1b; /* Deep red down */
}
.uptime-tick.tick-down:hover {
  background-color: #ef4444; /* Bright red down */
  box-shadow: 0 0 10px #ef4444;
}

.uptime-row-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  border-top: 1px dotted rgba(16, 185, 129, 0.08);
  padding-top: 6px;
}

/* Tooltip style */
.tick-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #000000;
  border: 1px solid var(--emerald-fade-strong);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  color: #fff;
  width: max-content;
  max-width: 240px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
}

.tick-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #000000 transparent transparent transparent;
}

.uptime-tick:hover .tick-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.tick-tooltip strong {
  color: var(--emerald-light);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 2px;
}

.tick-tooltip .status-val {
  font-weight: 700;
}

.tick-tooltip .status-val.tick-operational {
  color: var(--emerald-light);
}

.tick-tooltip .status-val.tick-warning {
  color: #fbbf24;
}

.tick-tooltip .status-val.tick-down {
  color: #f87171;
}

.tick-tooltip .detail-val {
  color: #94a3b8;
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4px;
  margin-top: 2px;
  line-height: 1.3;
}

/* Old timeline updates & announcements fading history style */
.timeline-card.faded {
  border-color: rgba(16, 185, 129, 0.04) !important;
  background: rgba(12, 15, 13, 0.4) !important;
  pointer-events: auto;
}

.timeline-card.faded .timeline-meta {
  display: none !important; /* Hide date and announcement/update badge */
}

.timeline-card.faded.faded-1 { opacity: 0.55; }
.timeline-card.faded.faded-2 { opacity: 0.38; }
.timeline-card.faded.faded-3 { opacity: 0.20; }
.timeline-card.faded.faded-4 { opacity: 0.08; }

.timeline-card.faded:hover {
  opacity: 1 !important;
  border-color: var(--emerald-fade-strong) !important;
  background: var(--bg-accent) !important;
  transform: translateY(-2px);
}

/* Footer Styles */
.footer {
  background: rgba(6, 8, 7, 0.95);
  border-top: 1px solid var(--emerald-fade-strong);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
}

.developer-credit {
  color: var(--emerald-light);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Feature Inline Image Embed Styles */
.feature-image-wrapper {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.15);
  background: #000;
}

.feature-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover .feature-preview-img {
  transform: scale(1.08);
}

/* Carousel / Slider Styles */
.features-slider-section {
  margin-top: 32px;
}

.carousel-container {
  position: relative;
  background: #000000; /* Pure black to blend nicely */
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius);
  padding: 32px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.carousel-slides {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.carousel-slide {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateX(30px);
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-image-wrapper {
  flex: 1.2;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.1);
  background: var(--bg-secondary);
}

.slide-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.slide-info {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 1px;
}

.slide-badge.main-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.slide-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.slide-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.slide-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.slide-perks span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ffffff;
}

.slide-perks span i {
  color: var(--emerald-light);
}

/* Slide buttons */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.carousel-control:hover {
  background: var(--emerald-glowing);
  color: var(--bg-primary);
  border-color: var(--emerald-glowing);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-indicators .indicator.active {
  background: var(--emerald-light);
  box-shadow: 0 0 8px var(--emerald-light);
  width: 20px;
  border-radius: 4px;
}

/* Media Query */
@media (max-width: 768px) {
  .carousel-slides {
    min-height: auto;
  }
  .carousel-slide {
    flex-direction: column;
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    gap: 16px;
  }
  .carousel-slide.active {
    display: flex;
  }
  .slide-image-wrapper {
    width: 100%;
  }
  .slide-info {
    width: 100%;
  }
  .carousel-control {
    top: 30%;
  }
}
