/* =========================================================
   TOP 부천 - Base CSS
   디자인 토큰, 리셋, 타이포그래피 공통
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors - Background */
  --bg-primary: #0a0806;
  --bg-secondary: #14100c;
  --bg-card: #1c1813;
  --bg-elevated: #25201a;

  /* Colors - Gold System */
  --gold: #d4af37;
  --gold-light: #e8c872;
  --gold-bright: #f4d47c;
  --gold-dark: #a8872b;
  --gold-deep: #7a6220;
  --gold-gradient: linear-gradient(135deg, #b8860b 0%, #d4af37 35%, #f4d47c 55%, #d4af37 75%, #a8872b 100%);
  --gold-gradient-soft: linear-gradient(135deg, #a8872b 0%, #d4af37 50%, #a8872b 100%);

  /* Colors - Text - 가독성 강화 (블랙+화이트+골드 시스템) */
  --text-primary: #ffffff;       /* 순수 화이트 - 최대 대비 */
  --text-body: #f0e8d4;          /* 본문 - 따뜻한 화이트 */
  --text-muted: #c9bd9c;         /* 뮤티드 - 가독성 위해 더 밝게 */
  --text-gold: #f4d47c;          /* 골드 텍스트 */
  --text-on-gold: #0a0806;       /* 골드 위 검정 텍스트 */

  /* Colors - Status */
  --status-live: #f4d47c;
  --status-live-glow: rgba(244, 212, 124, 0.6);
  --status-busy: #e53935;
  --status-vip: #d4af37;
  --status-off: #3a342a;

  /* Colors - Emerald 변수는 호환성 유지하면서 골드/화이트로 매핑 (그린 제거) */
  --emerald: #d4af37;
  --emerald-light: #f4d47c;
  --emerald-bright: #ffffff;
  --emerald-dark: #a8872b;
  --emerald-deep: #7a6220;
  --emerald-gradient: linear-gradient(135deg, #a8872b 0%, #d4af37 35%, #f4d47c 55%, #d4af37 75%, #a8872b 100%);
  --emerald-gradient-soft: linear-gradient(135deg, #a8872b 0%, #d4af37 50%, #a8872b 100%);
  --emerald-glow: rgba(212, 175, 55, 0.35);

  /* Colors - Dual (예전 골드+그린 → 골드+화이트로 변경) */
  --dual-gradient: linear-gradient(135deg, #ffffff 0%, #f4d47c 35%, #d4af37 65%, #a8872b 100%);

  /* Borders */
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-strong: rgba(212, 175, 55, 0.6);
  --border-subtle: rgba(212, 175, 55, 0.15);

  /* Shadows */
  --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.2);
  --shadow-gold-strong: 0 8px 32px rgba(212, 175, 55, 0.35);
  --shadow-dark: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-inset-gold: inset 0 1px 0 rgba(244, 212, 124, 0.4);

  /* Typography - Pretendard 메인 + 디스플레이 폰트 */
  --font-display: 'Cinzel', 'Pretendard Variable', 'Pretendard', serif;
  --font-heading: 'Pretendard Variable', 'Pretendard', 'Noto Serif KR', sans-serif;
  --font-body: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container-mobile: 420px;
  --container-desktop: 1200px;
  --header-height: 60px;
  --bottom-nav-height: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-slow: 480ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  /* 우측 플로팅 방식이라 하단 패딩 불필요 */
  padding-bottom: var(--space-xl);
}

img, picture, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* ---------- Typography Base ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.display-font { font-family: var(--font-display); letter-spacing: 0.08em; }
.text-gold { color: var(--text-gold); }
.text-muted { color: var(--text-muted); }

/* ---------- Reusable Patterns ---------- */

/* 골드 그라디언트 텍스트 */
.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 섹션 타이틀 (ABOUT TOP, PROFILE 같은 라벨) */
.section-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.section-label .sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-body);
  text-transform: none;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--gold-gradient);
  margin-right: var(--space-xs);
  border-radius: 1px;
}

/* 골드 버튼 (Primary) */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.9rem 1.5rem;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold), var(--shadow-inset-gold);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn-gold:hover::after { transform: translateX(100%); }
.btn-gold:hover { box-shadow: var(--shadow-gold-strong), var(--shadow-inset-gold); }
.btn-gold:active { transform: scale(0.98); }

/* 골드 아웃라인 버튼 */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-md);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
  width: 100%;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
}

/* 카드 - 기본 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 골드 프레임 박스 (LIVE STATUS 같은) */
.frame-gold {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.frame-gold::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

/* 라이브 도트 */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 8px var(--status-live-glow);
  animation: pulse 2s var(--ease) infinite;
  flex-shrink: 0;
}

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

/* 골드 디바이더 */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  margin: var(--space-xl) 0;
  opacity: 0.5;
}

/* 배지 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.badge-vip {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.badge-live {
  background: rgba(244, 212, 124, 0.15);
  color: var(--status-live);
  border: 1px solid rgba(244, 212, 124, 0.35);
}

.badge-member {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

/* 유틸 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 스크롤바 (PC) */
@media (hover: hover) {
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg-primary); }
  ::-webkit-scrollbar-thumb {
    background: var(--gold-deep);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
}

/* 선택 색상 */
::selection {
  background: var(--gold);
  color: var(--text-on-gold);
}

/* =========================================================
   [LUXE UPGRADE] 고급스러움 강화 레이어
   ========================================================= */

/* ---------- Body 배경 — 미묘한 골드 비네트 + 노이즈 ---------- */
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    var(--bg-primary);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 콘텐츠는 노이즈 위로 */
main, header, aside, nav.bottom-nav { position: relative; z-index: 2; }

/* ---------- 장식 구분선 업그레이드 ---------- */
.divider-gold {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7) 50%, transparent);
  margin: var(--space-2xl) 0;
  opacity: 0.9;
  overflow: visible;
}

.divider-gold::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  color: var(--gold);
  font-size: 10px;
  padding: 0 16px;
  letter-spacing: 8px;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* ---------- 장식 구분선 — 큰 버전 (섹션 상단용) ---------- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: var(--space-xl) auto;
  color: var(--gold);
  opacity: 0.8;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament-divider::after {
  background: linear-gradient(270deg, transparent, var(--gold));
}

.ornament-divider .mark {
  font-size: 8px;
  letter-spacing: 6px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* ---------- Section Label 업그레이드 — 트레일링 골드 라인 ---------- */
.section-label {
  position: relative;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.section-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
}

/* ---------- 골드 버튼 업그레이드 — 듀얼 보더 + 디퍼 섀도 ---------- */
.btn-gold {
  background:
    linear-gradient(135deg, #b8860b 0%, #d4af37 35%, #f4d47c 55%, #d4af37 75%, #a8872b 100%);
  box-shadow:
    0 1px 0 rgba(244, 212, 124, 0.5) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 4px 16px rgba(212, 175, 55, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(244, 212, 124, 0.6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-gold:hover {
  box-shadow:
    0 1px 0 rgba(244, 212, 124, 0.7) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 8px 28px rgba(212, 175, 55, 0.45),
    0 3px 6px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* ---------- 골드 아웃라인 버튼 업그레이드 ---------- */
.btn-outline {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), rgba(212, 175, 55, 0.01));
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.2) inset;
  transition: all var(--dur-base) var(--ease);
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  box-shadow:
    0 1px 0 rgba(212, 175, 55, 0.35) inset,
    0 0 24px rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

/* ---------- 아트데코 코너 장식 (유틸) ---------- */
.deco-corners {
  position: relative;
}

.deco-corners::before,
.deco-corners::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}

.deco-corners::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.deco-corners::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* ---------- 프레임 골드 업그레이드 — 이중 보더 ---------- */
.frame-gold::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px; bottom: -1px; left: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 40%, transparent 60%, var(--gold) 100%);
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
  pointer-events: none;
}

/* ---------- 골드 텍스트 섀도 유틸 ---------- */
.gold-glow-text {
  text-shadow:
    0 0 20px rgba(212, 175, 55, 0.4),
    0 0 40px rgba(212, 175, 55, 0.2);
}

/* ---------- 샤이머 애니메이션 (호버시 빛 흐름) ---------- */
@keyframes gold-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold-dark) 0%,
    var(--gold-bright) 50%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gold-shimmer 4s linear infinite;
}

/* ---------- 페이드 업 리빌 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 포커스 상태 더 세련되게 ---------- */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 모션 감소 존중 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .shimmer-text { animation: none; }
  body::before { display: none; }
}

/* =========================================================
   [v3 EMERALD] 골드 + 에메랄드 듀얼 컬러 시스템
   ========================================================= */

/* ---------- 에메랄드 텍스트 ---------- */
.emerald-text { color: var(--emerald); }
.emerald-light-text { color: var(--emerald-light); }

.emerald-gradient-text {
  background: var(--emerald-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 듀얼 그라디언트 텍스트 (골드 → 에메랄드) */
.dual-gradient-text {
  background: var(--dual-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

/* ---------- 에메랄드 버튼 (보조 CTA) ---------- */
.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.9rem 1.5rem;
  background:
    linear-gradient(135deg, #ffffff 0%, #f4d47c 35%, #d4af37 55%, #f4d47c 75%, #a8872b 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 212, 124, 0.5);
  box-shadow:
    0 1px 0 rgba(244, 212, 124, 0.4) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 4px 16px rgba(212, 175, 55, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.btn-emerald::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn-emerald:hover::after { transform: translateX(100%); }

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(244, 212, 124, 0.5) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 8px 28px rgba(212, 175, 55, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.35);
}

.btn-emerald:active { transform: scale(0.98); }

/* ---------- 에메랄드 아웃라인 ---------- */
.btn-emerald-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.01));
  color: var(--emerald-light);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-md);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
  width: 100%;
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.2) inset;
}

.btn-emerald-outline:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border-color: var(--emerald);
  box-shadow:
    0 1px 0 rgba(212, 175, 55, 0.4) inset,
    0 0 24px rgba(212, 175, 55, 0.18);
  color: var(--emerald-bright);
}

/* ---------- 에메랄드 뱃지 ---------- */
.badge-emerald {
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #fff;
  border: 1px solid rgba(244, 212, 124, 0.4);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.badge-live {
  background: rgba(212, 175, 55, 0.15);
  color: var(--emerald-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* ---------- 에메랄드 디바이더 ---------- */
.divider-emerald {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald) 50%, transparent);
  margin: var(--space-2xl) 0;
  opacity: 0.7;
}

.divider-emerald::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  color: var(--emerald);
  font-size: 10px;
  padding: 0 16px;
  letter-spacing: 8px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ---------- LIVE Status 인디케이터 업그레이드 - 에메랄드 ---------- */
.live-dot {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald-glow), 0 0 16px rgba(212, 175, 55, 0.3);
}

/* ---------- 듀얼 보더 카드 ---------- */
.frame-dual {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
}

.frame-dual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--dual-gradient);
  background-size: 200% auto;
  animation: gold-shimmer 4s linear infinite;
}

/* 바디 백그라운드 — 약한 에메랄드 광원 추가 */
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 0% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

/* =========================================================
   [v4] 세련된 골드 글로우 (네온 과하지 않게)
   ========================================================= */

/* btn-gold 미세 빛 호흡 */
.btn-gold {
  position: relative;
}

.btn-gold:not(:disabled):not(:hover) {
  animation: gold-breath 4s ease-in-out infinite;
}

@keyframes gold-breath {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(244, 212, 124, 0.5) inset,
      0 -1px 0 rgba(0, 0, 0, 0.2) inset,
      0 4px 16px rgba(212, 175, 55, 0.25),
      0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(244, 212, 124, 0.6) inset,
      0 -1px 0 rgba(0, 0, 0, 0.2) inset,
      0 4px 24px rgba(212, 175, 55, 0.4),
      0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* 모션 감소 시 비활성 */
@media (prefers-reduced-motion: reduce) {
  .btn-gold { animation: none; }
}

/* =========================================================
   [v5] 모바일 폰별 색상 일관성 + Pretendard 가독성
   ========================================================= */

/* 다크 모드 강제 (삼성 인터넷, 다크리더 등 자동 색상 변환 방지) */
html {
  color-scheme: dark only;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

body {
  color-scheme: dark only;
  forced-color-adjust: none;
  /* Pretendard variable font 활용 */
  font-variation-settings: "wght" 400;
  font-feature-settings: "ss01", "ss02", "ss03";  /* 한글 변형자 활용 */
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* 모든 텍스트에 색상 strict 강제 */
* {
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
}

/* 헤딩 weight 강화 (Pretendard 800/700) */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.015em;
}

h2 { font-weight: 800; }
h3 { font-weight: 700; font-variation-settings: "wght" 700; }
h4 { font-weight: 700; font-variation-settings: "wght" 700; }

/* 본문 weight 살짝 올림 (가독성) */
body, p {
  font-weight: 400;
  font-variation-settings: "wght" 400;
}

/* Bold 강조는 700 */
strong, b {
  font-weight: 700;
  font-variation-settings: "wght" 700;
}

/* 작은 텍스트는 500 (가독성) */
.small, small, .text-muted {
  font-weight: 500;
  font-variation-settings: "wght" 500;
}

/* iOS Safari 다크 모드에서 색상 자동 변환 방지 */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-text-fill-color: var(--text-body);
  }
  h1, h2, h3, h4 {
    -webkit-text-fill-color: var(--text-primary);
  }
}

/* 그라디언트 텍스트는 fill-color 별도 처리 */
.gradient-text,
.dual-gradient-text,
.emerald-gradient-text,
.shimmer-text,
.hero-typing,
.live-status-body .status-main .count {
  -webkit-text-fill-color: transparent !important;
}

/* 강제 다크 색상 보장 (모바일 브라우저 변환 방지) */
input, select, textarea, button {
  color-scheme: dark only;
  -webkit-appearance: none;
  appearance: none;
}

/* 안드로이드 크롬 자동 색상 보정 방지 */
@media (prefers-color-scheme: light) {
  html, body {
    background: var(--bg-primary) !important;
    color: var(--text-body) !important;
  }
}

/* =========================================================
   [v6] 화이트 가독성 강화 + 그린 완전 제거
   ========================================================= */

/* 본문 텍스트 더 또렷하게 */
body, p, li, span, div {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 모든 본문 텍스트 컬러 일관성 */
p {
  color: var(--text-body);
  font-weight: 400;
}

/* 헤딩은 순수 화이트 */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary); /* #ffffff */
}

/* 작은 글씨도 흐리지 않게 */
.text-muted, small {
  color: var(--text-muted) !important; /* #c9bd9c — 더 밝아짐 */
}

/* 카드 안의 텍스트는 한 단계 더 밝게 */
.card p, .frame-gold p, .home-booking-card p {
  color: var(--text-body);
}

/* 라벨/메타 텍스트 가독성 */
label, .label, .meta {
  color: var(--text-body);
  font-weight: 500;
}

/* 폼 인풋 - 화이트 텍스트 강제 */
input, select, textarea {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(212, 175, 55, 0.3);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

input:focus, select:focus, textarea:focus {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: var(--gold);
}

/* 셀렉트박스 화살표 화이트로 */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  padding-right: 36px !important;
}

/* 골드 보더가 필요한 카드 — 더 또렷하게 */
.frame-gold,
.live-status-card,
.profile-card.is-vip,
.featured-event,
.home-event-card,
.member-cta-card {
  border-color: var(--gold) !important;
}

/* =========================================================
   [v8] 모든 체크박스 가시성 (어디서든 보이게)
   ========================================================= */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  background: #fff !important;
  border: 2px solid var(--gold) !important;
  cursor: pointer !important;
  position: relative;
  display: inline-block !important;
  vertical-align: middle;
  margin: 0 6px 0 0;
  padding: 0 !important;
}

input[type="checkbox"] {
  border-radius: 4px;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0806;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #0a0806;
  border-radius: 50%;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 2px solid rgba(212, 175, 55, 0.4);
  outline-offset: 2px;
}

/* =========================================================
   [v8] 브라우저 다크모드 완전 차단 (시크릿/다크모드 대응)
   원래 디자인(블랙+골드) 유지하도록 강제
   ========================================================= */

/* 모든 브라우저 자동 다크 변환 차단 */
html {
  color-scheme: only dark !important;
  forced-color-adjust: none !important;
  -webkit-forced-color-adjust: none !important;
}

body {
  color-scheme: only dark !important;
  background-color: #0a0806 !important;
}

/* iOS Safari 자동 색상 보정 방지 */
@supports (-webkit-touch-callout: none) {
  html, body {
    color-scheme: only dark !important;
  }
}

/* 크롬 / 엣지 다크모드 보정 방지 */
@media (prefers-color-scheme: dark),
@media (prefers-color-scheme: light),
@media (prefers-color-scheme: no-preference) {
  html, body {
    background: var(--bg-primary) !important;
    color: var(--text-body) !important;
    color-scheme: only dark !important;
  }

  /* 주요 텍스트들 강제 색상 */
  h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
  }

  p {
    color: var(--text-body) !important;
  }

  .gradient-text, .accent, .hero-typing {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
  }
}

/* 시크릿 모드 / 다크리더 등 강제 변환 차단 */
html[data-darkreader-mode],
html[data-darkreader-scheme] {
  --darkreader-background-0a0806: #0a0806 !important;
}
