/* ==========================================================================
   ROLLIX MC - Modern Orange-Yellow Minimalistic Theme
   Inspired by LootMC, FMine, Phoenix-PE, NeverTime, FrizMine
   ========================================================================== */

:root {
  --bg-main: #0a0b0e;
  --bg-secondary: #10121a;
  --bg-card: rgba(18, 21, 30, 0.75);
  --bg-card-hover: rgba(26, 30, 44, 0.85);
  --bg-glass: rgba(15, 17, 24, 0.7);
  
  --primary-orange: #ff8c00;
  --primary-yellow: #ffc400;
  --primary-gold: #ffaa00;
  --primary-accent: #ff6a00;
  --accent-amber: #f59e0b;
  
  --gradient-primary: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
  --gradient-glow: linear-gradient(135deg, rgba(255, 200, 55, 0.3) 0%, rgba(255, 128, 8, 0.15) 100%);
  --gradient-java: linear-gradient(135deg, #ff9900 0%, #e65100 100%);
  --gradient-bedrock: linear-gradient(135deg, #ffb300 0%, #f57c00 100%);
  --gradient-rules: linear-gradient(135deg, #2a2e3d 0%, #171922 100%);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #ffd24d;
  
  --border-subtle: rgba(255, 170, 0, 0.12);
  --border-focus: rgba(255, 170, 0, 0.45);
  --border-glass: rgba(255, 255, 255, 0.07);
  
  --glow-orange: 0 0 30px rgba(255, 140, 0, 0.35);
  --glow-gold: 0 0 40px rgba(255, 196, 0, 0.4);
  --glow-subtle: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--primary-orange);
  selection-color: #000;
}

::selection {
  background: var(--primary-orange);
  color: #000000;
}

/* Background Canvas & Ambient Mesh */
#ember-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bg-ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, rgba(255, 196, 0, 0.05) 45%, transparent 70%);
  filter: blur(80px);
}

.ambient-glow-2 {
  position: absolute;
  top: 45%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.1) 0%, transparent 65%);
  filter: blur(90px);
}

.ambient-glow-3 {
  display: none;
}

.wave-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255, 170, 0, 0.4) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  border-bottom: none !important;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none !important;
  padding: 12px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.subpage-header .btn-nav-back {
  padding: 8px 16px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.logo-brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 180, 0, 0.4);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.3);
  transition: var(--transition);
  object-fit: cover;
}

.logo-brand:hover img {
  transform: rotate(-4deg) scale(1.06);
  border-color: var(--primary-yellow);
  box-shadow: var(--glow-gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

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

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  font-size: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 70px;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: float-subtle 4s ease-in-out infinite;
}

.hero-badge-wrap i {
  color: var(--primary-yellow);
}

.hero-brand-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  max-width: 520px;
}

.hero-3d-logo {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(255, 160, 0, 0.35));
  animation: float-subtle 4s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
  user-select: none;
}

.hero-3d-logo:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 45px rgba(255, 170, 0, 0.55));
}

.hero-badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-logo-box {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  cursor: pointer;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.45) 0%, rgba(255, 204, 0, 0.15) 50%, transparent 70%);
  filter: blur(25px);
  border-radius: 50%;
  animation: pulse-glow 3s infinite alternate ease-in-out;
}

.hero-logo-img {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  border: 2.5px solid rgba(255, 180, 0, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 140, 0, 0.35);
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-logo-box:hover .hero-logo-img {
  transform: translateY(-8px) scale(1.05) rotate(2deg);
  border-color: var(--primary-yellow);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), var(--glow-gold);
}

@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 20px rgba(255, 140, 0, 0.3));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* Main Action Buttons (Donate Java, Donate Bedrock, Rules) */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 45px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn i {
  font-size: 1.15rem;
}

/* Java Donate Button */
.btn-donate-java {
  background: var(--gradient-java);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 106, 0, 0.35);
  cursor: pointer;
  z-index: 5;
}

.btn-donate-java:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.55);
  filter: brightness(1.08);
}

/* Bedrock Donate Button */
.btn-donate-bedrock {
  background: var(--gradient-bedrock);
  color: #0c0e12;
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.3);
  cursor: pointer;
  z-index: 5;
}

.btn-donate-bedrock:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 196, 0, 0.5);
  filter: brightness(1.06);
}

/* Rules Button */
.btn-rules {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-rules:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-yellow);
  color: var(--primary-yellow);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255, 180, 0, 0.15);
}

/* Quick IP Copy Cards */
.ip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.ip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.ip-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 170, 0, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 140, 0, 0.15);
}

.ip-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ip-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-platform-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 140, 0, 0.15);
  color: var(--primary-yellow);
  border: 1px solid rgba(255, 180, 0, 0.2);
}

.ip-version {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.ip-address-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ip-text {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.ip-port {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ip-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ip-copy-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.ip-card:hover .ip-copy-btn {
  background: var(--gradient-primary);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
  transform: scale(1.08);
}

.ip-card.copied .ip-copy-btn {
  background: #22c55e !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6) !important;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-yellow);
  margin-bottom: 10px;
  background: rgba(255, 170, 0, 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 170, 0, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 140, 0, 0.12);
}

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

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-yellow);
  margin-bottom: 22px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: 0 0 24px rgba(255, 170, 0, 0.5);
  transform: scale(1.1) rotate(4deg);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

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

/* ==========================================================================
   Server Modes Section
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(12px);
}

.mode-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 170, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 140, 0, 0.15);
}

.mode-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.mode-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.mode-type {
  font-size: 0.78rem;
  color: var(--text-gold);
  font-weight: 600;
}

.mode-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.mode-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.mode-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.mode-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 18px;
}

.mode-online-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.mode-online-label {
  color: var(--text-muted);
}

.mode-online-val {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.mode-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mode-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   Quick Donate Showcase Banner
   ========================================================================== */
.donate-banner {
  background: linear-gradient(135deg, rgba(30, 24, 16, 0.9) 0%, rgba(18, 20, 28, 0.9) 100%);
  border: 1px solid rgba(255, 170, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(255, 140, 0, 0.08);
}

.donate-banner-glow {
  display: none;
}

.donate-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.donate-banner-info {
  max-width: 600px;
}

.donate-banner-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.donate-banner-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donate-banner-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.donate-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Community & Socials Section
   ========================================================================== */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-yellow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 170, 0, 0.15);
}

.social-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.social-icon-box.tg { background: rgba(36, 161, 222, 0.15); color: #24a1de; border: 1px solid rgba(36, 161, 222, 0.3); }
.social-icon-box.vk { background: rgba(74, 118, 168, 0.15); color: #4a76a8; border: 1px solid rgba(74, 118, 168, 0.3); }
.social-icon-box.ds { background: rgba(88, 101, 242, 0.15); color: #5865f2; border: 1px solid rgba(88, 101, 242, 0.3); }
.social-icon-box.yt { background: rgba(255, 0, 0, 0.15); color: #ff0000; border: 1px solid rgba(255, 0, 0, 0.3); }

.social-card:hover .social-icon-box {
  transform: scale(1.1);
  box-shadow: 0 0 20px currentColor;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.social-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.social-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gold);
  margin-top: 4px;
}

/* ==========================================================================
   Rules Modal Window (Interactive)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.rules-modal-container {
  background: #0f1118;
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), var(--glow-orange);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .rules-modal-container {
  transform: scale(1) translateY(0);
}

.rules-modal-header {
  padding: 24px 28px;
  background: #141722;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rules-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.rules-modal-title i {
  color: var(--primary-yellow);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 70, 70, 0.2);
  color: #ff5555;
  border-color: rgba(255, 70, 70, 0.4);
  transform: rotate(90deg);
}

.rules-controls {
  padding: 16px 28px;
  background: rgba(18, 21, 30, 0.95);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.rules-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.rules-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.rules-tab-btn:hover {
  color: #fff;
  background: rgba(255, 170, 0, 0.08);
}

.rules-tab-btn.active {
  background: var(--gradient-primary);
  color: #000;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.35);
}

.rules-search-box {
  position: relative;
  min-width: 220px;
}

.rules-search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 34px;
  color: #fff;
  font-size: 0.84rem;
  outline: none;
  transition: var(--transition);
}

.rules-search-box input:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.25);
}

.rules-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.rules-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Custom Scrollbar for Modal */
.rules-modal-body::-webkit-scrollbar {
  width: 6px;
}
.rules-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.rules-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 170, 0, 0.3);
  border-radius: 4px;
}

.rule-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}

.rule-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 170, 0, 0.2);
}

.rule-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.rule-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-yellow);
  font-size: 0.95rem;
}

.rule-severity-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.rule-severity-badge.ban {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.rule-severity-badge.mute {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.rule-severity-badge.info,
.rule-severity-badge.warn {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.rule-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 8px;
}

.rule-punishment {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rule-punishment i {
  color: var(--text-dim);
}

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

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

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

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

.footer-links a:hover {
  color: var(--primary-yellow);
  padding-left: 4px;
}

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

.mojang-disclaimer {
  max-width: 500px;
  line-height: 1.5;
}

/* ==========================================================================
   Toast Notification (For Copy IP)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #141824;
  border: 1px solid rgba(255, 170, 0, 0.4);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--glow-orange);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--primary-yellow);
  font-size: 1.2rem;
}

/* ==========================================================================
   Mobile Navigation Drawer (High-Performance Modern UI)
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 9, 14, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 32px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-drawer-close:hover,
.mobile-drawer-close:active {
  background: rgba(255, 170, 0, 0.2);
  color: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 28px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links li {
  list-style: none;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  color: #f1f5f9;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.mobile-nav-links a i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  color: var(--primary-yellow);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active,
.mobile-nav-links a.active {
  background: rgba(255, 170, 0, 0.12);
  border-color: rgba(255, 170, 0, 0.4);
  color: #fff;
  transform: translateX(4px);
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .subpage-header .nav-status-badge {
    display: none !important;
  }

  .logo-brand {
    flex-shrink: 0;
  }

  .logo-text {
    white-space: nowrap;
  }

  .subpage-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .subpage-header .btn-nav-back,
  .btn-nav-back {
    display: none !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .donate-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .donate-banner-buttons {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .logo-brand img {
    width: 38px;
    height: 38px;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 50px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .ip-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid, .modes-grid {
    grid-template-columns: 1fr;
  }
  
  .donate-banner {
    padding: 30px 20px;
  }
  
  .rules-modal-container {
    max-height: 94vh;
  }
  
  .rules-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .rules-search-box {
    width: 100%;
  }
}
