/* ==========================================================================
   IN SMP (insmp.me) - Official Server Website Stylesheet
   Designed for High-Performance, Immersive Minecraft Visuals & Responsive UI
   ========================================================================== */

:root {
  /* Brand Colors - Indian Saffron, Pure White, Emerald Green, Diamond Cyan */
  --saffron-primary: #FF9933;
  --saffron-glow: rgba(255, 153, 51, 0.4);
  --saffron-deep: #E65100;
  
  --emerald-primary: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --emerald-deep: #065F46;

  --diamond-cyan: #00F0FF;
  --diamond-glow: rgba(0, 240, 255, 0.35);

  --ashoka-blue: #1E40AF;
  --gold-accent: #F59E0B;

  /* Obsidian & Void Theme */
  --bg-void: #07080C;
  --bg-surface: #0E1118;
  --bg-card: rgba(19, 23, 34, 0.78);
  --bg-card-hover: rgba(26, 32, 48, 0.9);
  --bg-glass: rgba(15, 18, 28, 0.65);
  
  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 153, 51, 0.3);
  --border-emerald: rgba(16, 185, 129, 0.3);
  
  /* Typography Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow-saffron: 0 0 25px rgba(255, 153, 51, 0.35);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.35);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.35);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Cinzel', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 153, 51, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 40%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 0% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #252D3D;
  border-radius: 5px;
  border: 2px solid var(--bg-void);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--saffron-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text-saffron {
  background: linear-gradient(135deg, #FFF5EB 0%, #FFA843 50%, #FF7700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-tiranga {
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #E0FFFF 0%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Canvas for Particles */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 10, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(255, 153, 51, 0.2);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.35);
  border: 1px solid rgba(255, 153, 51, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand:hover .brand-icon {
  transform: rotate(5deg) scale(1.06);
  box-shadow: 0 0 22px rgba(255, 153, 51, 0.6);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  background: linear-gradient(90deg, rgba(255, 153, 51, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #FFF;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #FFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron-primary), var(--emerald-primary));
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ADE80;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 10px #22C55E;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #FFF;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.btn-nav-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/hero_banner.jpg');
  background-size: cover;
  background-position: center 35%;
  filter: brightness(0.42) saturate(1.2);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(7, 8, 12, 0.55) 0%,
    rgba(7, 8, 12, 0.3) 50%,
    var(--bg-void) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 20px;
  display: inline-flex;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(14, 17, 24, 0.85);
  border: 1px solid rgba(255, 153, 51, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-glow-saffron);
}

.flag-strip {
  display: inline-flex;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.flag-strip span:nth-child(1) { height: 33.3%; background: #FF9933; }
.flag-strip span:nth-child(2) { height: 33.3%; background: #FFFFFF; }
.flag-strip span:nth-child(3) { height: 33.4%; background: #138808; }

.hero-emblem {
  width: 130px;
  height: 130px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  padding: 5px;
  background: linear-gradient(135deg, #FF9933, rgba(255, 255, 255, 0.8), #10B981);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 153, 51, 0.4);
  animation: floatEmblem 4s ease-in-out infinite;
}

.hero-emblem img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 5px);
  object-fit: cover;
}

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

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #CBD5E1;
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Interactive Server IP Box */
.server-ip-hero-card {
  width: 100%;
  max-width: 580px;
  background: rgba(14, 17, 24, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 153, 51, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-card), 0 0 30px rgba(255, 153, 51, 0.15);
  margin-bottom: 34px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.server-ip-hero-card:hover {
  border-color: rgba(255, 153, 51, 0.6);
  box-shadow: var(--shadow-card), 0 0 35px rgba(255, 153, 51, 0.25);
}

.ip-bar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(7, 8, 12, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.ip-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ip-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.ip-text {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.04em;
  user-select: all;
}

.btn-copy-ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--saffron-primary), var(--saffron-deep));
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.35);
  white-space: nowrap;
}

.btn-copy-ip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.5);
}

.btn-copy-ip:active {
  transform: translateY(1px);
}

.btn-copy-ip.copied {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.ip-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-pill code {
  font-family: var(--font-mono);
  color: var(--diamond-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hero Action CTAs */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF9933, #FF7700);
  color: #FFF;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(255, 153, 51, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 27, 40, 0.8);
  color: #FFF;
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(30, 38, 56, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-discord-cta {
  background: #5865F2;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}

.btn-discord-cta:hover {
  background: #4752C4;
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.5);
}

/* ==========================================================================
   Section Common Layouts
   ========================================================================== */
section {
  padding: 90px 0;
  position: relative;
  z-index: 2;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--saffron-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   Live Server Status & Player Section
   ========================================================================== */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-primary), var(--emerald-primary));
}

.status-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.server-state-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.state-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.state-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.state-badge.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-refresh-status {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-refresh-status:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.btn-refresh-status.rotating i {
  animation: spinIcon 0.8s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.metric-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFF;
}

.metric-value.cyan {
  color: var(--diamond-cyan);
}

.metric-value.green {
  color: #34D399;
}

.metric-value.saffron {
  color: var(--saffron-primary);
}

/* MOTD Display Box */
.motd-container {
  background: #080A0F;
  border: 1px solid #1E2536;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.motd-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.motd-view {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #E2E8F0;
  min-height: 48px;
}

.server-version-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

/* Online Player Roster Card */
.player-roster-card {
  display: flex;
  flex-direction: column;
}

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

.roster-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-count-pill {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.12);
  color: var(--diamond-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.player-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 6px;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.player-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 153, 51, 0.4);
}

.player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #111;
  image-rendering: pixelated;
}

.player-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-rank {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.empty-roster-state {
  text-align: center;
  padding: 30px 20px;
  background: rgba(12, 14, 22, 0.5);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.empty-roster-state i {
  font-size: 2.2rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.empty-roster-state h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.empty-roster-state p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Staff showcase when 0 players */
.featured-staff-strip {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.staff-strip-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.staff-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
}

.staff-role-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.role-owner { background: rgba(239, 68, 68, 0.2); color: #F87171; }
.role-admin { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.role-builder { background: rgba(16, 185, 129, 0.2); color: #34D399; }

/* ==========================================================================
   Server Map Section
   ========================================================================== */
.map-section {
  background: linear-gradient(180deg, var(--bg-void) 0%, #0B0E17 50%, var(--bg-void) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.map-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 24px;
}

.map-mode-toggles {
  display: inline-flex;
  background: rgba(10, 12, 18, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
}

.btn-map-mode {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-map-mode.active {
  background: linear-gradient(135deg, var(--saffron-primary), var(--saffron-deep));
  color: #FFF;
  box-shadow: 0 2px 10px rgba(255, 153, 51, 0.35);
}

.map-url-config {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-url-input {
  background: rgba(10, 12, 18, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFF;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 250px;
  outline: none;
  transition: border-color 0.2s;
}

.map-url-input:focus {
  border-color: var(--saffron-primary);
}

.btn-icon-map {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-map:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--saffron-primary);
}

/* Interactive Landmark Map Canvas Wrapper */
.map-canvas-container {
  position: relative;
  width: 100%;
  height: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 153, 51, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 153, 51, 0.15);
  background-color: #0c0f17;
}

.interactive-map-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/map_background.jpg');
  background-size: cover;
  background-position: center;
}

.map-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Map Markers (POIs) */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-marker:hover {
  transform: translate(-50%, -60%) scale(1.15);
  z-index: 20;
}

.marker-pin {
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--saffron-primary), var(--saffron-deep));
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 153, 51, 0.5);
  border: 2px solid #FFF;
}

.marker-pin.green {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.5);
}

.marker-pin.cyan {
  background: linear-gradient(135deg, #00F0FF, #0284C7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.5);
}

.marker-pin.gold {
  background: linear-gradient(135deg, #F59E0B, #B45309);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.5);
}

.marker-icon {
  transform: rotate(45deg);
  font-size: 1.1rem;
  color: #FFF;
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 153, 51, 0.3);
  animation: markerPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes markerPulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.marker-label {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 13, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  color: #FFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* POI Info Card Modal / Drawer */
.poi-detail-drawer {
  position: absolute;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: rgba(13, 16, 25, 0.94);
  border: 1px solid rgba(255, 153, 51, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 153, 51, 0.2);
  z-index: 30;
  animation: slideDrawer 0.3s ease;
}

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

.poi-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.poi-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poi-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.poi-close-btn:hover {
  color: #FFF;
}

.poi-coordinates {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--diamond-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.poi-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.poi-actions {
  display: flex;
  gap: 10px;
}

.btn-warp-copy {
  flex: 1;
  background: linear-gradient(135deg, var(--saffron-primary), var(--saffron-deep));
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Live Dynmap/BlueMap Iframe Container */
.live-dynmap-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.live-dynmap-frame.active {
  display: block;
}

.map-fallback-banner {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(14, 18, 28, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

/* ==========================================================================
   Server Features Showcase
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 153, 51, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 153, 51, 0.15);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.feature-icon-box.saffron {
  background: rgba(255, 153, 51, 0.15);
  color: var(--saffron-primary);
  border: 1px solid rgba(255, 153, 51, 0.35);
}

.feature-icon-box.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.feature-icon-box.cyan {
  background: rgba(0, 240, 255, 0.15);
  color: var(--diamond-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.feature-icon-box.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Connection & Rules Guide
   ========================================================================== */
.tabs-container {
  max-width: 920px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(16, 20, 30, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--saffron-primary), var(--saffron-deep));
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.35);
}

.tab-pane {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.3s ease;
}

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

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

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 153, 51, 0.15);
  border: 1px solid rgba(255, 153, 51, 0.4);
  color: var(--saffron-primary);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.step-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-item {
  background: rgba(9, 11, 17, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.rule-item h4 {
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFF;
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Server Plugin Integration Section
   ========================================================================== */
.plugin-highlight-banner {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.plugin-banner-content {
  max-width: 640px;
}

.plugin-banner-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.plugin-banner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #05060A;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.tiranga-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--saffron-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(14, 18, 28, 0.95);
  border: 1px solid rgba(255, 153, 51, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  color: #FFF;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), var(--shadow-glow-saffron);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

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

/* ==========================================================================
   Economy Loop & Visual Flowchart Styles
   ========================================================================== */
.economy-section {
  background: linear-gradient(180deg, var(--bg-void) 0%, #090C14 50%, var(--bg-void) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.economy-flow-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-card), 0 0 35px rgba(255, 153, 51, 0.12);
  margin-bottom: 44px;
  backdrop-filter: blur(16px);
}

.economy-flow-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--saffron-primary);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flow-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 992px) {
  .flow-steps-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.flow-step-node {
  flex: 1;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.flow-step-node:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 153, 51, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 153, 51, 0.2);
}

.flow-step-node.highlight {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
}

.flow-node-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: inline-block;
}

.flow-node-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
}

.flow-node-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.flow-arrow {
  color: var(--saffron-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (max-width: 992px) {
  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

.price-table-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.price-item {
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
  font-size: 0.75rem;
}

.price-item span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.price-item strong {
  font-family: var(--font-mono);
  color: #34D399;
}

.fee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fee-pill {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

