﻿/* =========================================================
   Bada System — Premium Dark Gaming UI
   완전 리빌딩: Minecraft 분위기 + 모던 글래스모피즘
   ========================================================= */

@import url('//cdn.jsdelivr.net/gh/neodgm/neodgm-webfont@1.601/neodgm/style.css');

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #111827;
  --bg-3: #172033;
  --bg-4: #202b42;
  --font-default-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(191, 219, 254, 0.24);
  --text: #eef4ff;
  --muted: #a8b3c7;
  --green: #7dd3fc;
  --green-glow: rgba(125, 211, 252, 0.14);
  --cyan: #93c5fd;
  --gold: #f6c177;
  --gold-glow: rgba(246, 193, 119, 0.14);
  --red: #f87171;
  --grad-emerald: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --grad-gold: linear-gradient(135deg, #fde68a 0%, #f6c177 100%);
  --grad-panel: linear-gradient(180deg, rgba(22, 31, 49, 0.86), rgba(13, 19, 33, 0.94));
  --shadow-lg: 0 24px 70px -26px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(148, 163, 184, 0.08);
  --shadow-glow: 0 0 34px rgba(125, 211, 252, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.08), transparent 34%), #0b1020;
  color: var(--text);
  font-family: 'NeoDunggeunmo', sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 10%, rgba(125, 211, 252, 0.035), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(147, 197, 253, 0.018), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(246, 193, 119, 0.014), transparent 45%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
iframe { border: 0; }
.hidden { display: none !important; }

.font-neodgm { font-family: 'NeoDunggeunmo', sans-serif; }

body.admin-body {
  font-family: var(--font-default-ui);
  font-feature-settings: normal;
}

body.admin-body .brand,
body.admin-body .summary-value {
  font-family: var(--font-default-ui);
}

body[data-page="donation"] #donation-username,
body[data-page="donation"] #donation-detail-input,
body[data-page="donation"] #account-display,
body[data-page="donation"] #donation-account-caption,
body[data-page="donation"] .identity-summary-copy,
body[data-page="donation"] .identity-modal-profile,
body[data-page="donation"] .profile-main,
body[data-page="donation"] .receipt-amount {
  font-family: var(--font-default-ui);
  letter-spacing: 0;
}

.shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
}

/* =========== HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.header-shell, .footer-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'NeoDunggeunmo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px var(--green-glow);
}

.brand::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--grad-emerald);
  box-shadow: 0 0 16px var(--green-glow);
  -webkit-text-fill-color: initial;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav-button, .secondary-button, .primary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-button:hover, .secondary-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.nav-button.is-current {
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(125, 211, 252, 0.06);
  color: var(--green);
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.08);
}

.nav-button.is-disabled, .secondary-button.is-disabled, .primary-button.is-disabled,
.nav-button:disabled, .secondary-button:disabled, .primary-button:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.primary-button {
  border: 0;
  background: var(--grad-emerald);
  color: #f8fbff;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.danger-button {
  border-color: rgba(255, 122, 109, 0.4);
  color: #ffb5ad;
}

/* =========== HERO BANNER ============ */
.hero-banner {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-banner.jpg') center/cover no-repeat;
  z-index: 0;
  animation: heroPan 30s ease-in-out infinite alternate;
}

@keyframes heroPan {
  0% { transform: scale(1.05) translateX(-1%); }
  100% { transform: scale(1.12) translateX(2%); }
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 9, 10, 0.4) 0%, rgba(7, 9, 10, 0.85) 70%, #07090a 100%),
    linear-gradient(90deg, rgba(7, 9, 10, 0.7) 0%, transparent 60%);
}

.hero-banner-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(245, 196, 107, 0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(110, 231, 135, 0.5), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(94, 234, 212, 0.4), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(245, 196, 107, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255, 255, 255, 0.6), transparent);
  background-size: 100% 100%;
  animation: floatParticles 12s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes floatParticles {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 80px 0 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 135, 0.3);
  background: rgba(110, 231, 135, 0.08);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: 'NeoDunggeunmo', sans-serif;
  font-size: clamp(36px, 7vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #b8c5be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 40px rgba(2, 6, 23, 0.72);
  max-width: 14ch;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 36px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(240, 239, 231, 0.82);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

.hero-actions .secondary-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
}

.hero-feature {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  display: grid;
  gap: 10px;
  transition: all 240ms ease;
}

.hero-feature:hover {
  border-color: rgba(125, 211, 252, 0.18);
  transform: translateY(-3px);
  background: rgba(17, 24, 39, 0.8);
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-emerald);
  color: #f8fbff;
  box-shadow: 0 8px 20px -6px var(--green-glow);
}

.hero-feature strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.hero-feature span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--muted), transparent);
}

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

.hero-banner-home {
  min-height: calc(100vh - 76px);
}

.hero-banner-gif {
  background-image:
    linear-gradient(180deg, rgba(11, 16, 32, 0.2), rgba(11, 16, 32, 0.35)),
    url('/hero-banner.png');
  animation: none;
  filter: saturate(0.95) brightness(0.72);
}


.hero-content-centered {
  display: grid;
  place-items: center;
  text-align: center;
}

.home-hero-panel {
  width: min(760px, 100%);
  display: grid;
  gap: 20px;
  justify-items: center;
}

.home-logo-stage {
  width: min(248px, 42vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.server-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 48px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 34px rgba(147, 197, 253, 0.10));
}

.home-meta-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-eyebrow-centered {
  justify-content: center;
  margin-inline: auto;
}

.hero-title-centered {
  max-width: none;
  margin-bottom: 0;
}

.home-title {
  font-size: clamp(30px, 5vw, 64px);
}

.home-version-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-version-line strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.home-version-pill {
  color: var(--gold);
  border-color: rgba(246, 193, 119, 0.15);
  background: rgba(246, 193, 119, 0.04);
}

.home-genre-pill {
  color: var(--cyan);
  border-color: rgba(147, 197, 253, 0.14);
  background: rgba(147, 197, 253, 0.04);
}

.copy-grid {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.copy-card-single {
  width: min(420px, 100%);
}

.copy-card {
  min-height: 144px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.68);
  color: var(--text);
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  text-align: center;
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.copy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.20);
  background: rgba(22, 31, 49, 0.82);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

.copy-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-card-value {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  word-break: break-word;
}

.copy-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.copy-feedback {
  min-height: 24px;
  color: rgba(240, 239, 231, 0.84);
  font-size: 14px;
}

.home-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.secondary-button-compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 9px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

/* =========== PAGE HERO (sub pages) ============ */
.page-hero {
  position: relative;
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(125, 211, 252, 0.045), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(147, 197, 253, 0.03), transparent 50%);
  pointer-events: none;
}

.page-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: end;
}

.page-hero h1 {
  font-family: 'NeoDunggeunmo', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #ffffff, #98a39c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero .hero-lead {
  margin: 0;
  max-width: 600px;
  font-size: 16px;
}

.eyebrow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.eyebrow-pill, .muted-pill, .mini-pill {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(125, 211, 252, 0.045);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted-pill {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.mini-pill {
  min-height: 24px;
  padding: 0 10px;
  font-size: 10px;
  color: var(--gold);
  border-color: rgba(246, 193, 119, 0.15);
  background: rgba(246, 193, 119, 0.04);
}

.page-side-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--grad-panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 12px;
}

/* =========== TYPOGRAPHY ============ */
h1, h2, h3, p { margin: 0; }

h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 700;
}

/* =========== SECTIONS / PANELS ============ */
.content-band {
  padding: 80px 0;
  position: relative;
}

.page-main { padding-bottom: 32px; }

.section-stack {
  display: grid;
  gap: 28px;
}

.section-head, .section-head-inline, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  position: relative;
  padding-left: 16px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-emerald);
  box-shadow: 0 0 12px var(--green-glow);
}

.panel {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--grad-panel);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.panel-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* =========== FEATURE GRID (server intro) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--grad-panel);
  display: grid;
  gap: 14px;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-glow), transparent);
  opacity: 0;
  transition: opacity 280ms ease;
}

.feature-card:hover {
  border-color: rgba(125, 211, 252, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(125, 211, 252, 0.12);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.08), rgba(147, 197, 253, 0.026));
  border: 1px solid rgba(125, 211, 252, 0.12);
  color: var(--green);
}

.feature-icon .lucide-icon {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14.5px;
}

.feature-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========== SERVER STATS (intro page) ============ */
.stat-band {
  position: relative;
  padding: 60px 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.85), rgba(11, 16, 32, 0.95)),
    url('/images/section-cave.jpg') center/cover no-repeat;
  border: 1px solid var(--line);
}

.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
  padding: 0 32px;
}

.stat-item {
  display: grid;
  gap: 8px;
}

.stat-num {
  font-family: 'NeoDunggeunmo', monospace;
  font-size: clamp(28px, 3.5vw, 44px);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px var(--gold-glow);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========== QUICK LINKS (intro) ============ */
.link-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--grad-panel);
  display: grid;
  gap: 12px;
  transition: all 240ms ease;
  position: relative;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.link-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--cyan);
  margin-bottom: 4px;
}

.link-card h3 { font-size: 18px; }
.link-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.link-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* =========== RANKINGS ============ */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.segmented button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 200ms ease;
}

.segmented button:hover { color: var(--text); }

.segmented button.active {
  background: var(--grad-emerald);
  color: #f8fbff;
  box-shadow: 0 4px 16px -4px var(--green-glow);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ranking-card {
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--grad-panel);
  overflow: hidden;
  transition: all 220ms ease;
}

.ranking-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

/* Rank badge */
.rank-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--muted);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #f6c177, #f59e0b);
  color: #1a1004;
  border-color: transparent;
  box-shadow: 0 0 24px var(--gold-glow);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #d4d8de, #8a93a0);
  color: #0c0f12;
  border-color: transparent;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
  border-color: transparent;
}

/* Player head (Minecraft) */
.player-head {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px solid var(--line);
  background: #111827;
  object-fit: cover;
  transition: transform 220ms ease;
}

.ranking-card:hover .player-head {
  transform: scale(1.06);
  border-color: var(--green);
}

.rank-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-info strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info .rank-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.rank-value-big {
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 14px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* Top 3 podium for rankings hero */
.podium {
  display: grid;
  gap: 12px;
}

.podium-row {
  display: grid;
  grid-template-columns: 24px 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.podium-row strong { font-size: 13px; }
.podium-row span { font-size: 11px; color: var(--muted); }

.podium-row .player-head {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border-width: 1px;
}

.podium-rank {
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 11px;
  color: var(--gold);
}

.podium-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

/* =========== DONATION ============ */
.donation-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.wide-panel { grid-column: 1 / -1; }

.support-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--grad-panel);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.06), transparent 70%);
}

.step-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.08), rgba(147, 197, 253, 0.026));
  border: 1px solid rgba(125, 211, 252, 0.12);
  color: var(--green);
}

.step-card strong {
  font-size: 16px;
  font-weight: 700;
}

.step-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.donation-flow-panel { display: grid; gap: 18px; }

.payment-panel {
  display: grid;
  gap: 16px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.method-detail-stack {
  display: grid;
  gap: 12px;
}

.method-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.method-button {
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 200ms ease;
}

.method-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.method-button.active {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(125, 211, 252, 0.03));
  color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 8px 24px -8px var(--green-glow);
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  transition: all 200ms ease;
}

.icon-button:hover { background: rgba(255, 255, 255, 0.08); }

.donation-guide-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(147, 197, 253, 0.022);
}

.inline-guide-card {
  margin-top: 0;
}

.guide-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-emphasis {
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
}

.guide-caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-note-list {
  display: grid;
  gap: 10px;
}

.hero-note-list > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  color: var(--muted);
}

.hero-note-list > div .lucide-icon { color: var(--green); }

/* Identity */
.identity-summary { margin-top: 4px; }

.identity-summary-card {
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.045), rgba(147, 197, 253, 0.018));
}

.identity-summary-card .avatar {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 2px solid var(--green);
  image-rendering: pixelated;
}

.identity-summary-render, .identity-render-image {
  width: 100%; height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.identity-summary-render { max-width: 96px; }

.identity-summary-copy { display: grid; gap: 6px; }
.identity-summary-copy strong { font-size: 18px; }

/* Donation history */
.donation-history-list { margin-top: 18px; }

.profile-strip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--grad-panel);
  margin-top: 18px;
}

.profile-strip .avatar {
  width: 56px; height: 56px;
  border-radius: 10px;
  image-rendering: pixelated;
  border: 1px solid var(--line);
}

.profile-main strong { font-size: 17px; font-weight: 700; }

.record-list { display: grid; gap: 10px; }

.record-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}

.record-row.empty-row {
  color: var(--muted);
  text-align: center;
  padding: 32px 16px;
}

.record-meta { color: var(--muted); font-size: 12px; }

.receipt-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.receipt-row-top strong { font-size: 15px; }

.receipt-amount {
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 15px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========== FORMS ============ */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.stack-form label, .action-group label {
  display: grid;
  gap: 8px;
}

.stack-form label > span,
.action-group label > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.58);
  color: var(--text);
  font-size: 15px;
  transition: all 200ms ease;
}

input:focus, select:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08);
  background: rgba(2, 6, 23, 0.72);
}

input::placeholder { color: rgba(138, 148, 142, 0.6); }
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-inline {
  color: var(--muted);
  font-size: 13px;
}

.result-box {
  min-height: 44px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.result-box.is-info { border-color: rgba(147, 197, 253, 0.14); color: var(--text); }
.result-box.is-success {
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(125, 211, 252, 0.035);
  color: #d7fbf5;
}
.result-box.is-error {
  border-color: rgba(255, 122, 109, 0.4);
  background: rgba(255, 122, 109, 0.06);
  color: #ffd2cc;
}

/* =========== MODAL ============ */
.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 4, 4, 0.78);
  backdrop-filter: blur(16px);
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: min(780px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--grad-panel);
  box-shadow: 0 40px 100px rgba(2, 6, 23, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.055);
  animation: slideUp 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-card-compact {
  width: min(480px, 100%);
}

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

.identity-modal-body {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.identity-render {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at top, rgba(125, 211, 252, 0.07), transparent 60%),
    linear-gradient(180deg, #111827, #172033);
}

.identity-modal-summary { display: grid; gap: 12px; }

.identity-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-modal-avatar {
  width: 72px; height: 72px;
  border-radius: 12px;
  border: 2px solid var(--green);
  image-rendering: pixelated;
}

.identity-modal-profile { display: grid; gap: 6px; }
.identity-modal-profile strong { font-size: 19px; }

.detail-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  align-content: start;
}

.detail-item-action {
  width: 100%;
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.detail-item-action:hover {
  border-color: rgba(125, 211, 252, 0.20);
  background: rgba(125, 211, 252, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.85);
}

.detail-item-action:focus-visible {
  outline: 0;
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.10);
}

.detail-item-wide {
  grid-column: 1 / -1;
}

.detail-key {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.detail-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-action-hint {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-action-status {
  margin-top: 16px;
}

.status-chip {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-chip.is-success {
  color: var(--green);
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(125, 211, 252, 0.045);
}

.status-chip.is-warning {
  color: var(--gold);
  border-color: rgba(246, 193, 119, 0.15);
  background: rgba(246, 193, 119, 0.04);
}

.status-chip.is-danger {
  color: #ffb5ad;
  border-color: rgba(255, 122, 109, 0.35);
  background: rgba(255, 122, 109, 0.08);
}

/* =========== WIKI ============ */
.wiki-panel { display: grid; gap: 18px; }

.wiki-frame-wrap {
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}

.wiki-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  background: #ffffff;
}

.wiki-empty {
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

/* =========== ADMIN ============ */
.admin-main { padding: 32px 0 48px; }

.login-panel {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
}

.auth-panel { width: min(440px, 100%); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--grad-panel);
  display: grid;
  gap: 8px;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-value {
  font-family: 'NeoDunggeunmo', monospace;
  font-size: 22px;
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-panel {
  display: grid;
  gap: 20px;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.segment-button {
  min-width: 68px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segment-button.is-active {
  background: rgba(125, 211, 252, 0.08);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.16);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.chart-panel {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chart-head h2 {
  font-size: 18px;
}

.chart-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.chart-head .lucide-icon {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.line-chart-stack {
  display: grid;
  gap: 14px;
}

.line-chart-block {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.line-chart-range {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.line-chart-svg {
  display: block;
  width: 100%;
  height: 260px;
  overflow: visible;
}

.line-chart-guide {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.line-chart-axis,
.line-chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.line-chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.20));
  vector-effect: non-scaling-stroke;
}

.line-chart-dot {
  fill: var(--cyan);
  stroke: #07101d;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.action-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.action-group h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.table-list { display: grid; gap: 8px; margin-top: 14px; }

.list-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  color: var(--text);
  transition: all 200ms ease;
}

.list-row:hover {
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(125, 211, 252, 0.025);
}

.user-row.is-selected {
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(125, 211, 252, 0.045);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.11);
}

.list-row .avatar {
  width: 48px; height: 48px;
  border-radius: 10px;
  image-rendering: pixelated;
  border: 1px solid var(--line);
}

.user-main strong { font-size: 15px; }
.user-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

.user-status-badge {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.user-status-badge.is-warning {
  color: var(--gold);
  border-color: rgba(246, 193, 119, 0.15);
  background: rgba(246, 193, 119, 0.04);
}

.user-status-badge.is-danger {
  color: #ffb5ad;
  border-color: rgba(255, 122, 109, 0.35);
  background: rgba(255, 122, 109, 0.08);
}

.panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.manage-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.manage-button {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  text-align: left;
  transition: all 200ms ease;
}

.manage-button:hover {
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(125, 211, 252, 0.03);
  transform: translateY(-1px);
}

.manage-button strong {
  font-size: 15px;
  line-height: 1.3;
}

.manage-button span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.manage-button .lucide-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination-summary {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  display: grid;
  gap: 2px;
  text-align: center;
}

.pagination-summary strong {
  color: var(--text);
  font-size: 14px;
}

.detail-value.is-phone {
  display: flex;
  align-items: center;
}

.spoiler-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: transparent;
  text-shadow: 0 0 8px rgba(240, 239, 231, 0.85);
  filter: blur(3px);
  transition: all 180ms ease;
}

.spoiler-button:hover {
  border-color: rgba(125, 211, 252, 0.18);
}

.spoiler-button.is-revealed {
  color: var(--text);
  text-shadow: none;
  filter: none;
}

.log-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.log-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.log-modal-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.log-row {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.log-meta { color: var(--muted); font-size: 12px; }

.log-lines {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.log-line {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-card-wide {
  width: min(760px, 100%);
}

.modal-card-logs {
  width: min(940px, 100%);
}

.admin-modal-user {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin: 20px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-modal-user strong {
  display: block;
  font-size: 16px;
}

.admin-modal-user span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.admin-modal-body {
  display: grid;
  gap: 16px;
}

.modal-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* =========== FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(20px);
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

/* =========== ICONS ============ */
.lucide-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex: none;
}

.card-icon .lucide-icon,
.feature-icon .lucide-icon,
.hero-feature-icon .lucide-icon {
  width: 22px;
  height: 22px;
}

/* =========== AVATAR (general) ============ */
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line);
  image-rendering: pixelated;
  object-fit: cover;
}

/* =========== ANIMATIONS ============ */
.fade-in-up {
  animation: fadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

/* =========== RESPONSIVE ============ */
@media (max-width: 1080px) {
  .feature-grid,
  .quick-grid,
  .copy-grid,
  .ranking-grid,
  .donation-layout,
  .admin-layout,
  .chart-grid,
  .summary-grid,
  .manage-launch-grid,
  .action-grid,
  .detail-grid,
  .support-steps,
  .method-selector,
  .identity-modal-body,
  .modal-section-grid,
  .page-hero-shell,
  .stat-band-grid,
  .log-filter-grid,
  .log-modal-toolbar {
    grid-template-columns: 1fr;
  }
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .copy-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .wiki-frame-wrap, .wiki-frame, .wiki-empty { min-height: 640px; }
  .hero-feature-strip { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-shell, .footer-shell {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
  }
  .top-nav { justify-content: center; }
  .hero-banner { min-height: 80vh; }
  .hero-content { padding: 60px 0 80px; }
  .stat-band-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .ranking-row { grid-template-columns: 44px 56px 1fr; }
  .ranking-row .rank-value-big { grid-column: 2 / -1; padding-left: 72px; padding-top: 4px; }
  .button-row, .inline-form { flex-direction: column; }
  .log-filter-actions { flex-direction: column; }
  .panel-head-actions { width: 100%; }
  .button-row .primary-button, .button-row .secondary-button { width: 100%; justify-content: center; }
  .identity-summary-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}


/* =========================================================
   Soft Blue Donation Theme Overrides
   눈 피로 줄이는 저채도 블루 + 부드러운 카드 대비
   ========================================================= */
body[data-page="donation"] {
  background:
    radial-gradient(circle at 20% 0%, rgba(125, 211, 252, 0.10), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(129, 140, 248, 0.08), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #101827 46%, #0b1020 100%);
}

body[data-page="donation"]::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(125, 211, 252, 0.055), transparent 34%),
    radial-gradient(circle at 82% 80%, rgba(129, 140, 248, 0.045), transparent 38%),
    radial-gradient(circle at 50% 54%, rgba(246, 193, 119, 0.025), transparent 46%);
}

body[data-page="donation"]::after {
  opacity: 0.45;
  background-size: 72px 72px;
}

.site-header,
.site-footer {
  background: rgba(9, 14, 27, 0.78);
  border-color: rgba(148, 163, 184, 0.14);
}

.brand {
  background: linear-gradient(135deg, #e0f2fe 0%, #93c5fd 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand::before {
  background: linear-gradient(135deg, #7dd3fc, #818cf8);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.22);
}

.nav-button,
.secondary-button,
.primary-button,
.method-button,
.icon-button {
  border-radius: 12px;
}

.nav-button,
.secondary-button,
.method-button,
.icon-button {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.16);
}

.nav-button:hover,
.secondary-button:hover,
.method-button:hover,
.icon-button:hover {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(191, 219, 254, 0.26);
  box-shadow: 0 14px 34px -28px rgba(125, 211, 252, 0.45);
}

.nav-button.is-current,
.method-button.active,
.segmented button.active,
.segment-button.is-active {
  color: #dff7ff;
  border-color: rgba(125, 211, 252, 0.34);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.14), rgba(129, 140, 248, 0.08));
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.10), 0 14px 34px -26px rgba(125, 211, 252, 0.62);
}

.primary-button {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  color: #06101f;
  font-weight: 800;
  box-shadow: 0 16px 36px -22px rgba(125, 211, 252, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.primary-button:hover {
  box-shadow: 0 18px 42px -20px rgba(125, 211, 252, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.page-hero {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08));
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.page-hero h1,
.hero-title,
.section-head h2,
h2,
h3 {
  color: #f8fbff;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: none;
}

.section-head h2::before {
  background: linear-gradient(180deg, #7dd3fc, #818cf8);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.18);
}

.panel,
.step-card,
.feature-card,
.link-card,
.ranking-card,
.summary-card,
.chart-panel,
.action-group,
.page-side-card,
.copy-card,
.record-row,
.profile-strip,
.donation-guide-card,
.identity-summary-card,
.detail-item,
.modal-card {
  background: linear-gradient(180deg, rgba(22, 31, 49, 0.82), rgba(13, 19, 33, 0.94));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 70px -32px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.panel:hover,
.step-card:hover,
.feature-card:hover,
.link-card:hover,
.ranking-card:hover,
.copy-card:hover {
  border-color: rgba(125, 211, 252, 0.25);
}

.panel-head p,
.step-card p,
.feature-card p,
.link-card p,
.guide-caption,
.record-meta,
.footer-copy,
.status-inline,
.stack-form label > span,
.action-group label > span,
.copy-card-label,
.user-meta,
.detail-key {
  color: #a8b3c7;
}

input,
select,
.result-box,
.log-line {
  background: rgba(2, 6, 23, 0.54);
  border-color: rgba(148, 163, 184, 0.17);
  color: #eef4ff;
}

input:focus,
select:focus {
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.10);
  background: rgba(2, 6, 23, 0.72);
}

input::placeholder {
  color: rgba(168, 179, 199, 0.58);
}

.guide-emphasis,
.copy-card-hint,
.link-kicker,
.action-group h3,
.chart-head .lucide-icon,
.manage-button .lucide-icon,
.hero-note-list > div .lucide-icon,
.feature-icon,
.step-card .card-icon,
.status-chip.is-success {
  color: #7dd3fc;
}

.receipt-amount,
.rank-value-big,
.stat-num {
  background: linear-gradient(135deg, #fde68a, #f6c177);
  -webkit-background-clip: text;
  background-clip: text;
}

.result-box.is-success {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.07);
  color: #e0f7ff;
}

.result-box.is-error {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}

.modal-overlay {
  background: rgba(2, 6, 23, 0.76);
}
