:root {
  /* Colors - Clean Dark Mode */
  --color-primary: #FFC600; /* Friendly Gold */
  --color-primary-dark: #E0A800;
  --color-bg: #0f1115;
  --color-bg-alt: #161920;
  --color-bg-card: #1c2029;
  --color-text: #94a3b8;
  --color-text-muted: #64748b;
  --color-heading: #ffffff;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-success: #22c55e;
  --color-danger: #ef4444;

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Shadows - Dark Mode */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(255, 198, 0, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 800;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Clean Cards */
.card {
  background: rgba(28, 32, 41, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 15px 35px -5px rgba(255, 198, 0, 0.2);
  transform: translateY(-8px);
  border-color: rgba(255, 198, 0, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  gap: 10px;
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-black) !important;
  box-shadow: 0 4px 15px rgba(255, 198, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-black) !important;
  box-shadow: 0 6px 20px rgba(255, 198, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-heading) !important;
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
  background: rgba(15, 17, 21, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--color-heading);
  font-weight: 600;
  font-size: 1rem;
}

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

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

/* Hero Section */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 80px;
  text-align: center;
  background: var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,198,0,0.12) 0%, rgba(255,198,0,0) 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4.2rem;
  margin-bottom: 25px;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-title span {
  background: linear-gradient(135deg, #FFC600, #ff9100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

#cms-discord-btn {
  animation: discordPulse 2.5s infinite;
}

@keyframes discordPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 198, 0, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255, 198, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 198, 0, 0); }
}

/* Server Status Clean */
.server-status {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-card);
  padding: 15px 30px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  gap: 30px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-heading);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

.ip-copy {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  cursor: pointer;
}
.ip-copy:hover {
  opacity: 0.8;
}

/* Sections Global */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

/* Feature CMS Grid */
.features {
  background-color: var(--color-bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  padding: 40px;
  text-align: center;
}

.feature-image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 25px;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 40px 20px;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* Legal Pages (Impressum, Datenschutz etc) */
.legal-content {
  background: var(--color-bg-card);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
}
.legal-content h1 {
  margin-bottom: 30px;
  color: var(--color-primary);
}
.legal-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.legal-content p {
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background-color: var(--color-bg-alt);
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--color-primary);
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .server-status { flex-direction: column; gap: 15px; }
  .footer-links { flex-direction: column; gap: 15px; }
  .legal-content { padding: 30px 20px; }
}

/* Admin Dashboard Specifics */
.admin-header {
  background: var(--color-bg-card);
  color: var(--color-heading);
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}
.admin-header a {
  color: var(--color-heading);
}
.cms-form-group {
  margin-bottom: 20px;
  text-align: left;
}
.cms-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.cms-input {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-heading);
  font-family: inherit;
  font-size: 1rem;
}
.cms-textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-heading);
  font-family: inherit;
  font-size: 1rem;
  min-height: 100px;
  resize: vertical;
}

/* =====================
   Leaks Galerie
   ===================== */
.leaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.leaks-placeholder {
  grid-column: 1 / -1;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leak-card {
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.leak-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 30px rgba(255,198,0,0.25);
  border-color: rgba(255,198,0,0.4);
}

.leak-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg);
}
.leak-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.leak-card:hover .leak-image-wrapper img {
  transform: scale(1.06);
}

.leak-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.leak-overlay i {
  font-size: 2.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.7);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.leak-card:hover .leak-overlay {
  background: rgba(0, 0, 0, 0.45);
}
.leak-card:hover .leak-overlay i {
  opacity: 1;
  transform: scale(1);
}

.leak-label {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

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

/* =====================
   Hidden Admin Modal
   ===================== */
#hidden-admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#hidden-admin-modal.show {
  display: flex;
  opacity: 1;
}

.login-card {
  width: 100%;
  max-width: 440px;
}
.login-card .card {
  padding: 45px 40px;
  text-align: center;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.input-wrapper {
  position: relative;
  margin-bottom: 18px;
}
.input-wrapper i.icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.input-wrapper .cms-input {
  padding-left: 40px;
  padding-right: 14px;
}
.input-wrapper .cms-input.has-toggle {
  padding-right: 44px;
}
.toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}
.toggle-pw:hover { color: var(--color-primary); }
.rate-limit-bar {
  height: 3px;
  background: var(--color-border);
  border-radius: 999px;
  margin-top: 18px;
  overflow: hidden;
  display: none;
}
.rate-limit-fill {
  height: 100%;
  background: var(--color-danger);
  border-radius: 999px;
  transition: width 0.25s linear;
}
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pw-requirements {
  text-align: left;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
  padding-left: 4px;
}
.pw-requirements i { margin-right: 4px; font-size: 0.7rem; }

.setup-info {
  background: rgba(255,198,0,0.06);
  border: 1px solid rgba(255,198,0,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  text-align: left;
  color: var(--color-text);
}
.setup-info i { color: var(--color-primary); margin-right: 6px; }

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal-btn:hover {
  color: var(--color-danger);
}
