* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --md-sys-color-primary: #6750A4;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #4F378B;
  --md-sys-color-on-primary-container: #EADDFF;
  --md-sys-color-secondary: #958DA5;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-surface: #1C1B1F;
  --md-sys-color-surface-dim: #141218;
  --md-sys-color-surface-bright: #3B383E;
  --md-sys-color-on-surface: #E6E1E5;
  --md-sys-color-on-surface-variant: #CAC4D0;
  --md-sys-color-outline: #938F99;
  --md-sys-color-outline-variant: #49454F;
  --md-color-gold: #D0BCFF;
  --md-color-success: #4A8C6F;
  --md-color-error: #F2B8B5;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--md-sys-color-surface-dim);
  color: var(--md-sys-color-on-surface);
  line-height: 1.6;
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(103, 80, 164, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(103, 80, 164, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(149, 141, 165, 0.04) 0%, transparent 50%);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: color-mix(in srgb, var(--md-sys-color-surface-dim) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-primary-container));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--md-sys-color-on-surface);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

nav a {
  color: #a0a0b0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

.nav-creator {
  color: #f0c040;
  border: 1px solid rgba(240, 192, 64, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.nav-creator:hover {
  background: rgba(240, 192, 64, 0.1);
  color: #f0c040;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

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

.server-icon img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  image-rendering: pixelated;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--md-sys-color-on-surface) 0%, var(--md-sys-color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.byline {
  font-size: 0.85rem;
  color: #444;
  font-family: 'JetBrains Mono', monospace;
}

.ip-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ip-box code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--md-sys-color-outline-variant);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--md-sys-color-on-surface);
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
}

.copy-btn {
  background: rgba(103, 80, 164, 0.15);
  color: var(--md-sys-color-primary);
  border: 1px solid rgba(103, 80, 164, 0.3);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.copy-btn:hover {
  background: rgba(103, 80, 164, 0.25);
  border-color: var(--md-sys-color-primary);
}

.copy-btn.copied {
  background: rgba(74, 140, 111, 0.2);
  border-color: var(--md-color-success);
  color: var(--md-color-success);
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #888;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
}

.status-dot.online {
  background: #43b581;
  box-shadow: 0 0 8px rgba(67, 181, 129, 0.5);
}

.status-dot.offline {
  background: #ed4245;
}

.server-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

.mode-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mode-dot.activo { background: #43b581; box-shadow: 0 0 8px rgba(67,181,129,0.6); }
.mode-dot.en-construccion { background: #f0c040; box-shadow: 0 0 8px rgba(240,192,64,0.6); }
.mode-dot.trabajando { background: #7289da; box-shadow: 0 0 8px rgba(114,137,254,0.6); }
.mode-dot.cerrado { background: #ed4245; box-shadow: 0 0 8px rgba(237,66,69,0.6); }
.mode-dot.apagado { background: #555; box-shadow: 0 0 8px rgba(85,85,85,0.6); }
.mode-dot.mantenimiento { background: #f0a040; box-shadow: 0 0 8px rgba(240,160,64,0.6); }

.mode-text {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-discord {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.btn-map {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-map:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-cafe {
  background: #c76f2b;
  color: #fff;
}

.btn-cafe:hover {
  background: #a85d22;
  transform: translateY(-1px);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--md-sys-color-on-surface);
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
}

.coin {
  color: #f0c040;
  font-weight: 700;
}

/* Server Details */
.server-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.server-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
  border-radius: 10px;
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 0.25rem;
}

.spec-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #c0c0d0;
}

.server-description p {
  color: #888;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Reglas */
.reglas-list {
  display: grid;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.regla {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 10px;
}

.regla-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(88, 101, 242, 0.3);
  font-family: 'JetBrains Mono', monospace;
  min-width: 2rem;
}

.regla strong {
  display: block;
  color: #c0c0d0;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.regla p {
  color: #666;
  font-size: 0.85rem;
}

/* Logros */
.logros-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.logro {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.logro:hover {
  border-color: rgba(114, 137, 254, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.logro.completado {
  border-color: rgba(67, 181, 129, 0.3);
  background: rgba(67, 181, 129, 0.04);
}

.logro-icon {
  font-size: 1.5rem;
}

.logro-info {
  flex: 1;
}

.logro-info h4 {
  font-size: 0.9rem;
  color: #c0c0d0;
  font-weight: 600;
}

.logro-info p {
  font-size: 0.8rem;
  color: #666;
}

.logro-reward {
  font-size: 0.85rem;
  color: #f0c040;
  font-weight: 600;
  white-space: nowrap;
}

.logro-badge {
  font-size: 1.1rem;
}

.wallet {
  text-align: center;
  padding: 1.25rem;
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid rgba(240, 192, 64, 0.15);
  border-radius: 10px;
  max-width: 300px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #c0c0d0;
}

.wallet strong {
  color: #f0c040;
  font-family: 'JetBrains Mono', monospace;
}

/* Kits / Tienda */
.kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.kit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.kit-card:hover {
  border-color: rgba(114, 137, 254, 0.3);
  transform: translateY(-3px);
}

.kit-card.featured {
  border-color: var(--md-sys-color-primary);
  background: rgba(103, 80, 164, 0.05);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(103, 80, 164, 0.15);
}

.kit-card.featured:hover {
  border-color: rgba(240, 192, 64, 0.6);
}

.kit-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f0c040, #f0a040);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  letter-spacing: 1px;
}

.kit-tier {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.5rem;
}

.kit-price {
  font-size: 2rem;
  font-weight: 800;
  color: #f0c040;
  margin-bottom: 1.5rem;
}

.kit-perks {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.kit-perks li {
  padding: 0.5rem 0;
  color: #999;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.kit-perks li::before {
  content: "✓ ";
  color: #43b581;
  font-weight: 700;
}

.btn-kit {
  background: rgba(208, 188, 255, 0.15);
  color: var(--md-color-gold);
  border: 1px solid rgba(208, 188, 255, 0.3);
  width: 100%;
  justify-content: center;
}

.btn-kit:hover {
  background: rgba(240, 192, 64, 0.25);
}

/* Galería */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.galeria-item {
  text-align: center;
  cursor: pointer;
}

.galeria-placeholder {
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.galeria-placeholder:hover {
  border-color: rgba(114, 137, 254, 0.3);
}

.galeria-item span {
  font-size: 0.85rem;
  color: #666;
}

/* Mods */
.mods-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mods-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  transition: border-color 0.2s;
}
.mods-search:focus-within {
  border-color: rgba(114,137,254,0.3);
}
.mods-search-icon {
  font-size: 0.85rem;
  opacity: 0.4;
}
.mods-search-input {
  flex: 1;
  background: none;
  border: none;
  color: #c0c0d0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  outline: none;
  padding: 0.25rem 0;
}
.mods-search-input::placeholder {
  color: #444;
}
.mods-count {
  font-size: 0.65rem;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.mod-tab {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #888;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mod-tab:hover {
  border-color: rgba(114,137,254,0.3);
  color: #a0a0b0;
}

.mod-tab.active {
  background: rgba(114,137,254,0.1);
  border-color: rgba(114,137,254,0.3);
  color: #7289da;
}

.mods-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.mod-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
  contain: content;
}
.mod-card.mods-hidden {
  display: none;
}

.mod-card:hover {
  border-color: rgba(114,137,254,0.2);
  background: rgba(255,255,255,0.04);
}

.mod-img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  object-fit: cover;
  background: #1a1a2e;
  display: block;
}

.mod-img-placeholder {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #1a1a2e;
}

.mod-info {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
}

.mod-info h4 {
  font-size: 0.8rem;
  color: #c0c0d0;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.mod-desc {
  font-size: 0.7rem;
  color: #666;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-cf-link {
  color: #f0c040;
  font-size: 0.6rem;
  text-decoration: none;
  opacity: 0.7;
  display: inline-block;
  margin-top: 0.15rem;
}
.mod-cf-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.mods-empty {
  text-align: center;
  color: #444;
  padding: 2rem;
  font-size: 0.8rem;
}

/* ───── GUÍA ───── */
.guia-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.guia-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.guia-card:hover {
  border-color: rgba(114,137,254,0.2);
}
.guia-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(114,137,254,0.15);
  color: #7289da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.guia-card h3 {
  font-size: 0.95rem;
  color: #c0c0d0;
  margin-bottom: 0.5rem;
}
.guia-card p {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c0c0d0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color 0.2s;
}

.faq-q:hover { color: #fff; }

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: #555;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 1.25rem 1rem;
}

/* FAQ Forms */
.faq-form {
  padding: 1.25rem !important;
}

.faq-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.faq-form-field span {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
}

.faq-form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.faq-form-input:focus {
  border-color: rgba(240,192,64,0.3);
}

.faq-form-textarea {
  min-height: 60px;
  resize: vertical;
}

.faq-form-msg {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #43b581;
}

/* Logro solicit button */
.btn-logro-solicitar {
  background: rgba(114,137,254,0.1);
  border: 1px solid rgba(114,137,254,0.2);
  color: #7289da;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.btn-logro-solicitar:hover {
  background: rgba(114,137,254,0.2);
}

.logro.completado .btn-logro-solicitar {
  display: none;
}

/* Contacto */
.contacto-section {
  scroll-margin-top: 80px;
}

.contacto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contacto-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  cursor: pointer;
}

.contacto-card:hover {
  border-color: rgba(114,137,254,0.3);
  transform: translateY(-2px);
}

.contacto-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contacto-card h3 {
  font-size: 1.1rem;
  color: #c0c0d0;
  margin-bottom: 0.5rem;
}

.contacto-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.contacto-email {
  color: #7289da;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

/* Members */
.members-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.member-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.member span {
  font-size: 0.85rem;
  color: #999;
}

.member-role {
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555 !important;
}

/* ───── CUENTA ───── */
.cuenta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.cuenta-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1.5rem;
}
.cuenta-form {
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .cuenta-container { grid-template-columns: 1fr; }
}

/* ───── MODAL ───── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #12121a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  animation: fadeIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: #555;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  text-align: center;
}

.modal-kit-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-kit-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f0c040;
  margin-bottom: 1.5rem;
}

.modal-balance {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #888;
  font-size: 0.95rem;
}

.modal-balance span:last-child {
  color: #f0c040;
  font-weight: 600;
}

.modal-error {
  color: #ed4245;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.modal-btn {
  margin-top: 0.5rem;
}

.hidden {
  display: none !important;
}

/* ───── TERMINAL ───── */
.creator-section {
  scroll-margin-top: 80px;
}

.creator-login {
  max-width: 680px;
  margin: 0 auto;
}

.terminal {
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.15;
}

.led.led-active {
  opacity: 1;
}

.led-red { background: #ed4245; }
.led-red.led-active {
  box-shadow: 0 0 12px rgba(237, 66, 69, 0.8), 0 0 24px rgba(237, 66, 69, 0.3);
  animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 8px rgba(237, 66, 69, 0.6), 0 0 16px rgba(237, 66, 69, 0.2); }
  50% { box-shadow: 0 0 16px rgba(237, 66, 69, 0.9), 0 0 32px rgba(237, 66, 69, 0.4); }
}

.led-yellow { background: #f0c040; }
.led-yellow.led-active {
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.8), 0 0 24px rgba(240, 192, 64, 0.3);
}

.led-green { background: #43b581; }
.led-green.led-active {
  box-shadow: 0 0 12px rgba(67, 181, 129, 0.8), 0 0 24px rgba(67, 181, 129, 0.3);
}

.terminal-title {
  font-size: 0.8rem;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  min-height: 200px;
}

.terminal-body .line {
  margin-bottom: 0.25rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.prompt { color: #43b581; }
.cmd { color: #a0a0b0; }
.highlight { color: #f0c040; }
.highlight-green { color: #43b581; }

.cursor {
  display: inline-block;
  color: #43b581;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-input-area {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.terminal-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240, 192, 64, 0.3);
  color: #f0c040;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  width: 300px;
  outline: none;
  transition: border-color 0.2s;
}

.terminal-input:focus {
  border-bottom-color: #f0c040;
}

.terminal-input::placeholder { color: #444; }

.btn-login {
  background: rgba(240, 192, 64, 0.15);
  color: #f0c040;
  border: 1px solid rgba(240, 192, 64, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

.btn-login:hover {
  background: rgba(240, 192, 64, 0.25);
}

.login-error {
  font-size: 0.8rem;
  color: #ed4245;
  margin-left: 1rem;
}

/* Creator Panel */
.creator-panel {
  animation: fadeIn 0.4s ease;
}

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

.creator-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.dashboard-card {
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}

.dashboard-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 192, 64, 0.3);
  transform: translateY(-2px);
}

.dashboard-card .card-icon { font-size: 1.3rem; margin-bottom: 0.3rem; }
.dashboard-card h4 { font-size: 0.75rem; font-weight: 600; color: #c0c0d0; margin-bottom: 0.15rem; }
.dashboard-card p { font-size: 0.6rem; color: #444; }

.tab-terminal .terminal-body { min-height: 250px; }

/* Tab content (admin editor) */
.editor-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.editor-field .label {
  color: #555;
  min-width: 90px;
  font-size: 0.8rem;
}

.editor-field .value {
  color: #a0a0b0;
  flex: 1;
  font-size: 0.8rem;
}

.editor-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  flex: 1;
  outline: none;
}

.editor-input:focus {
  border-color: rgba(240,192,64,0.3);
}

.editor-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #888;
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  width: 100%;
  min-height: 60px;
  outline: none;
  resize: vertical;
}

.editor-textarea:focus {
  border-color: rgba(240,192,64,0.3);
  color: #fff;
}

.editor-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-editor {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #a0a0b0;
  transition: all 0.2s;
}

.btn-editor:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-editor.save { border-color: rgba(67,181,129,0.3); color: #43b581; }
.btn-editor.save:hover { background: rgba(67,181,129,0.15); }
.btn-editor.danger { border-color: rgba(237,66,69,0.3); color: #ed4245; }
.btn-editor.danger:hover { background: rgba(237,66,69,0.15); }

.editor-success {
  color: #43b581;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Glitch title */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch::before {
  color: #ed4245;
  animation: glitch1 3s infinite linear alternate-reverse;
}

.glitch::after {
  color: #43b581;
  animation: glitch2 3s infinite linear alternate-reverse;
}

@keyframes glitch1 {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  92% { opacity: 0.5; transform: translate(-2px, 1px); }
  94% { opacity: 0.3; transform: translate(2px, -1px); }
  96% { opacity: 0.4; transform: translate(-1px, 2px); }
}

@keyframes glitch2 {
  0%, 85%, 100% { opacity: 0; transform: translate(0); }
  87% { opacity: 0.4; transform: translate(2px, -1px); }
  89% { opacity: 0.3; transform: translate(-2px, 1px); }
  91% { opacity: 0.5; transform: translate(1px, -2px); }
}

/* Coffee button */
.coffee-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c040, #e6a800);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(240,192,64,0.4);
  transition: all 0.3s ease;
  animation: coffee-bounce 2s ease-in-out infinite;
}

.coffee-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(240,192,64,0.6);
}

@keyframes coffee-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.coffee-content {
  max-width: 340px;
  text-align: center;
}

.coffee-face {
  font-size: 4rem;
  margin: 0.5rem 0;
  transition: all 0.3s;
}

.coffee-text {
  color: #c0c0d0;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.coffee-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.coffee-buttons .btn {
  min-width: 100px;
  justify-content: center;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  color: #555;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}


@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  nav ul.open { display: flex; }
  .server-details { grid-template-columns: 1fr; }
  .kit-card.featured { transform: none; }
  .terminal-input { width: 100%; }
}

@media (max-width: 640px) {
  h1 { font-size: 2.5rem; }
  .ip-box { flex-direction: column; }
  nav ul { gap: 0.75rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .server-specs { grid-template-columns: 1fr; }
}
