/* ============================================
   Nyvora — Enhanced Design System v1.1
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

::selection {
  background: var(--primary-color);
  color: var(--btn-primary-text);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* --- Light Theme (Sakura) --- */
:root {
  --bg-color: #FFF5F9;
  --surface-color: rgba(255, 255, 255, 0.72);
  --primary-color: #F8C8DC;
  --primary-dark: #E8A4C0;
  --accent-color: #FADADD;
  --text-color: #2d2d2d;
  --text-muted: #7a7a7a;
  --border-color: rgba(248, 200, 220, 0.45);
  --shadow: 0 8px 32px rgba(248, 200, 220, 0.22);
  --shadow-lg: 0 20px 60px rgba(248, 200, 220, 0.28);
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.9);
  --hero-overlay: rgba(0, 0, 0, 0.35);
  --btn-primary-bg: linear-gradient(135deg, #F8C8DC 0%, #FADADD 100%);
  --btn-primary-text: #4a4a4a;
  --btn-secondary-bg: rgba(255, 255, 255, 0.9);
  --btn-secondary-text: #4a4a4a;
  --success-color: #4caf50;
  --loading-bg: #FFF5F9;
  --loading-spinner: #F8C8DC;
  --loading-spinner-track: rgba(248, 200, 220, 0.25);
  --crack-allowed: #4caf50;
  --crack-blocked: #f44336;
  --glow-primary: rgba(248, 200, 220, 0.5);
}

/* --- Dark Theme (Crystal Cave) --- */
[data-theme="dark"] {
  --bg-color: #061425;
  --surface-color: rgba(12, 32, 56, 0.72);
  --primary-color: #1E90FF;
  --primary-dark: #1476D9;
  --accent-color: #0A1E36;
  --text-color: #e8e8e8;
  --text-muted: #8aa4c0;
  --border-color: rgba(30, 144, 255, 0.22);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(12, 32, 56, 0.68);
  --glass-border: rgba(30, 144, 255, 0.22);
  --hero-overlay: rgba(0, 0, 0, 0.45);
  --btn-primary-bg: linear-gradient(135deg, #1E90FF 0%, #00BFFF 100%);
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(15, 39, 66, 0.9);
  --btn-secondary-text: #e6e6e6;
  --success-color: #00bcd4;
  --loading-bg: #061425;
  --loading-spinner: #1E90FF;
  --loading-spinner-track: rgba(30, 144, 255, 0.15);
  --crack-allowed: #4caf50;
  --crack-blocked: #f44336;
  --glow-primary: rgba(30, 144, 255, 0.4);
}

@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-color: #000000;
    --border-color: #000000;
  }
  [data-theme="dark"] {
    --glass-bg: rgba(0, 0, 0, 0.95);
    --text-color: #ffffff;
    --border-color: #ffffff;
  }
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--loading-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-mascot {
  height: 80px;
  width: auto;
  animation: loadingBounce 1.5s ease-in-out infinite;
}

@keyframes loadingBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--loading-spinner-track);
  border-top-color: var(--loading-spinner);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--btn-primary-text);
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* ============================================
   Navigation
   ============================================ */
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.3s ease;
}

.glass-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-color);
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-mascot {
  height: 38px;
  width: auto;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.nav-logo:hover .nav-mascot {
  transform: rotate(-5deg) scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 4px 0;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.75rem;
}

.icon-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 4px 12px var(--glow-primary);
}

.icon-sun, .icon-moon {
  display: none;
}

.icon-sun { display: block; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  position: absolute;
  left: 4px;
  transition: all 0.3s ease;
}

.hamburger { top: 15px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================================
   Hero — Clean Banner
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--bg-color);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  margin-bottom: 12px;
  line-height: 1;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 40px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Buttons
   ============================================ */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  background: none;
  color: inherit;
  font-family: inherit;
  line-height: inherit;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary,
button.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-secondary,
button.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--border-color);
}

.btn-discord,
button.btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #ffffff;
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.85rem;
  margin-top: 16px;
  width: 100%;
}

/* ============================================
   Sections & Layout
   ============================================ */
.section {
  padding: 120px 24px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  color: var(--text-color);
  position: relative;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  margin: 16px auto 0;
  transition: width 0.4s ease;
}

.section:hover .section-title::after {
  width: 100px;
}

/* ============================================
   Rules — Enhanced Visibility
   ============================================ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  opacity: 1;
  visibility: visible;
}

.rule-card {
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.8;
  border-radius: 0 0 4px 4px;
}

.rule-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow-primary), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.rule-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.rule-card:hover::after {
  opacity: 0.4;
}

.rule-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.rule-icon-wrap img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.rule-card:hover .rule-icon-wrap {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 8px 30px var(--glow-primary);
}

.rule-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
  z-index: 1;
  position: relative;
}

.rule-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.4;
  font-family: 'Courier New', monospace;
}

/* ============================================
   Server Status — Particles + Player Toggle
   ============================================ */
.status-card {
  position: relative;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 52px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.status-indicator,
.status-grid,
.player-toggle-wrapper {
  position: relative;
  z-index: 1;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 12px 28px;
  background: rgba(0,0,0,0.04);
  border-radius: 50px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .status-indicator {
  background: rgba(255,255,255,0.04);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f44336;
  box-shadow: 0 0 16px #f44336;
  transition: background 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
  position: relative;
}

.status-dot.online {
  background: #4caf50;
  box-shadow: 0 0 16px #4caf50;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.3;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(0,0,0,0.02);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.status-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

[data-theme="dark"] .status-item {
  background: rgba(255,255,255,0.02);
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.status-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
}

.status-value.crack-allowed {
  color: var(--crack-allowed);
}

.status-value.crack-blocked {
  color: var(--crack-blocked);
}

/* Player Toggle Section */
.player-toggle-wrapper {
  margin-top: 8px;
}

.player-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.player-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--glow-primary);
  filter: brightness(1.05);
}

.player-toggle-btn:active {
  transform: translateY(0);
}

.player-toggle-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.player-toggle-arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  margin-left: 4px;
}

.player-list-panel {
  margin-top: 24px;
  padding: 28px;
  background: rgba(0,0,0,0.02);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  animation: slideDown 0.4s ease;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .player-list-panel {
  background: rgba(255,255,255,0.02);
}

.player-list-panel[hidden] {
  display: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.player-list-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
}

.player-list-count {
  background: var(--primary-color);
  color: var(--btn-primary-text);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 32px;
  text-align: center;
}

.player-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: var(--surface-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  image-rendering: pixelated;
  background: rgba(0,0,0,0.05);
  padding: 2px;
}

.player-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-list-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
}

/* ============================================
   Server Info — Java / Bedrock Toggle
   ============================================ */
.info-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.info-toggle {
  display: inline-flex;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 5px;
  gap: 4px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.info-toggle-btn {
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.info-toggle-btn.active {
  background: var(--primary-color);
  color: var(--btn-primary-text);
  box-shadow: 0 2px 16px var(--glow-primary);
}

.info-content-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.info-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.info-panel.active {
  display: block;
}

.main-info-card {
  text-align: center;
  padding: 40px;
}

.edition-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0,0,0,0.02);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  gap: 12px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.info-row:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

[data-theme="dark"] .info-row {
  background: rgba(255,255,255,0.02);
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.info-value {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--text-color);
  font-size: 1.1rem;
  word-break: break-all;
  flex: 1;
  text-align: left;
  padding: 0 8px;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s;
  flex-shrink: 0;
  display: flex;
  border-radius: 10px;
}

.copy-btn:hover {
  color: var(--primary-color);
  background: rgba(0,0,0,0.05);
  transform: scale(1.1);
}

[data-theme="dark"] .copy-btn:hover {
  background: rgba(255,255,255,0.05);
}

/* Crossplay Card */
.crossplay-card {
  margin-top: 48px;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.crossplay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

.crossplay-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

.crossplay-icon-svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.crossplay-card:hover .crossplay-icon-svg {
  transform: scale(1.15) rotate(8deg);
}

.crossplay-card h3 {
  margin-bottom: 12px;
  color: var(--text-color);
  font-size: 1.4rem;
}

.crossplay-card p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   Donation Stats Card
   ============================================ */
.donation-stats-card {
  max-width: 680px;
  margin: 0 auto 40px;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.donation-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

.donation-stats-card:hover {
  transform: translateY(-4px);
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.stats-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.donation-stats-card:hover .stats-icon {
  transform: scale(1.1);
}

.stats-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.progress-bar-wrapper {
  width: 100%;
  height: 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .progress-bar-wrapper {
  background: rgba(255,255,255,0.06);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 50px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stats-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   Donation Transparency Card
   ============================================ */
.donation-transparency-card {
  max-width: 680px;
  margin: 0 auto 48px;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.donation-transparency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

.donation-transparency-card:hover {
  transform: translateY(-4px);
}

.transparency-icon-svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: block;
  transition: transform 0.4s ease;
}

.donation-transparency-card:hover .transparency-icon-svg {
  transform: scale(1.1);
}

.donation-transparency-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.donation-transparency-card > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.expense-list {
  list-style: none;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 0;
}

.expense-list li {
  padding: 12px 18px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.02);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .expense-list li {
  background: rgba(255,255,255,0.02);
}

.expense-list li:hover {
  border-color: var(--primary-color);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.expense-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 14px 18px;
  background: rgba(0,0,0,0.02);
  border-radius: 14px;
  border: 1px dashed var(--border-color);
  max-width: 480px;
  margin: 0 auto;
}

[data-theme="dark"] .expense-note {
  background: rgba(255,255,255,0.02);
}

/* ============================================
   Donate Button & Card
   ============================================ */
.donations-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 52px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.donations-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

.donations-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}

.donations-card-inner {
  position: relative;
  z-index: 1;
}

.donate-heart {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  animation: heartbeat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(238, 90, 90, 0.3));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  70% { transform: scale(1); }
}

.donations-text {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.btn-donate,
button.btn-donate {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 50%, #ff8e8e 100%);
  background-size: 200% 200%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 24px rgba(238, 90, 90, 0.35);
  position: relative;
  overflow: hidden;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-donate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-donate:hover::before {
  transform: translateX(100%);
}

.btn-donate:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(238, 90, 90, 0.45);
  filter: brightness(1.08);
}

.btn-donate:active {
  transform: translateY(-1px);
}

/* Hide old QR elements */
.qr-wrapper,
#donation-qr,
.qr-caption {
  display: none;
}

/* ============================================
   Donation Modal — Enhanced
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 100px rgba(0,0,0,0.35);
  transform: scale(0.92) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.modal-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-color);
  transform: rotate(90deg) scale(1.1);
}

[data-theme="dark"] .modal-close:hover {
  background: rgba(255,255,255,0.05);
}

.modal-body {
  padding: 32px 36px 36px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.6;
}

.donation-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.donation-method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--surface-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-method-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.method-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  border-radius: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.donation-method-card:hover .method-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--glow-primary);
}

.method-info {
  flex: 1;
  text-align: left;
}

.method-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.method-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.method-btn {
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--glow-primary);
  filter: brightness(1.05);
}

.method-btn.btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* QRIS Display inside modal */
.qris-display {
  margin: -8px 0 8px;
  padding: 28px;
  background: var(--surface-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  animation: slideDown 0.35s ease;
  position: relative;
  overflow: hidden;
}

.qris-display[hidden] {
  display: none;
}

.qris-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--glow-primary), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.qris-display img {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: contain;
  border: 2px solid var(--border-color);
  padding: 12px;
  background: #ffffff;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.qris-display img:hover {
  transform: scale(1.05);
}

.qris-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.modal-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(0,0,0,0.02);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
}

[data-theme="dark"] .modal-footer-note {
  background: rgba(255,255,255,0.02);
}

.modal-footer-note svg {
  flex-shrink: 0;
  color: var(--success-color);
}

/* ============================================
   Tabs (About)
   ============================================ */
.tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-header {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 14px 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  font-size: 1rem;
}

.tab-btn.active {
  color: var(--text-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.tab-content {
  animation: fadeIn 0.5s ease;
}

.tab-content[hidden] {
  display: none;
}

.about-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 52px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-mascot {
  height: 160px;
  width: auto;
  flex-shrink: 0;
  animation: float 5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.owner-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 52px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.owner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

.owner-card:hover {
  transform: translateY(-4px);
}

.owner-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  flex-shrink: 0;
  box-shadow: 0 4px 24px var(--glow-primary);
  transition: all 0.4s ease;
}

.owner-card:hover .owner-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 32px var(--glow-primary);
}

.owner-info h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-color);
}

.owner-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-4px) scale(1.1);
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px var(--glow-primary);
}

.social-links a svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--accent-color);
  border-top: 1px solid var(--border-color);
  padding: 64px 24px 28px;
  transition: background-color 0.5s ease;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

.footer-brand:hover {
  transform: scale(1.02);
}

.footer-mascot {
  height: 48px;
  width: auto;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.footer-brand:hover .footer-mascot {
  transform: rotate(-5deg) scale(1.1);
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-color);
}

.footer-links a:hover::after {
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-4px) scale(1.1);
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px var(--glow-primary);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 12px;
}

.version {
  font-family: 'Courier New', monospace;
  opacity: 0.7;
}

/* ============================================
   Utilities & Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   Donation Stats Badge & Last Update
   ============================================ */
.stats-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--accent-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.stats-last-update {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

/* ============================================
   QRIS Exclusion Notice Card
   ============================================ */
.qris-notice-card {
  max-width: 680px;
  margin: 0 auto 40px;
  background: var(--surface-color);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.qris-notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.9;
  border-radius: 0 0 4px 4px;
}

.qris-notice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.qris-notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.qris-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(244, 67, 54, 0.12);
  color: #f44336;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(244, 67, 54, 0.25);
  flex-shrink: 0;
}

[data-theme="dark"] .qris-badge {
  background: rgba(244, 67, 54, 0.18);
  color: #ff6b6b;
  border-color: rgba(244, 67, 54, 0.35);
}

.qris-notice-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.qris-notice-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.qris-notice-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin-bottom: 20px;
}

.qris-notice-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: rgba(0,0,0,0.02);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .qris-notice-footer {
  background: rgba(255,255,255,0.02);
}

.qris-method-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-color);
  padding: 6px 14px;
  background: var(--accent-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.qris-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.qris-destination {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.qris-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border-radius: 6px;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

[data-theme="dark"] .qris-status {
  background: rgba(244, 67, 54, 0.15);
  color: #ff6b6b;
}

/* QRIS amount note in stats */
.qris-amount-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.qris-amount-note strong {
  color: var(--text-color);
  font-weight: 700;
}

/* Responsive QRIS notice */
@media (max-width: 768px) {
  .qris-notice-card {
    padding: 28px 24px;
  }
  .qris-notice-footer {
    flex-direction: column;
    gap: 8px;
  }
  .qris-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 49;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .about-card, .owner-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  .feature-list {
    text-align: left;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .section {
    padding: 80px 20px;
  }

  .status-card {
    padding: 32px 20px;
  }

  .info-toggle-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .donations-card {
    padding: 36px 24px;
  }

  .donation-stats-card {
    padding: 28px 24px;
  }

  .donation-transparency-card {
    padding: 32px 24px;
  }

  .player-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
  }

  .player-avatar {
    width: 40px;
    height: 40px;
  }

  .player-name {
    font-size: 0.75rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  .section {
    padding: 140px 40px;
  }
}

@media (min-width: 2160px) {
  html {
    font-size: 18px;
  }
  .container {
    max-width: 1600px;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  #particle-canvas {
    display: none !important;
  }
  .mascot {
    animation: none !important;
  }
  .loading-overlay {
    display: none !important;
  }
}