/* =============================================================
   PHILOSOPHY AI · AI MUSIC STUDIO
   studio.css — 럭셔리 아날로그 스튜디오 디자인 시스템
   월넛/마호가니 나무 · 브러시드 알루미늄 · 황동 · 피아노 하이그로시
   ============================================================= */

:root {
  /* ---- 나무 (월넛/마호가니) ---- */
  --wood-1: #2a1a10;
  --wood-2: #3c2415;
  --wood-3: #4e2f1a;
  --wood-edge: #1a0e07;
  --wood-grain: rgba(255, 200, 140, 0.04);

  /* ---- 금속 (브러시드 알루미늄/크롬/티타늄) ---- */
  --metal-1: #6b7178;
  --metal-2: #9aa1a8;
  --metal-3: #c7ccd1;
  --metal-hi: #eef1f3;
  --metal-lo: #3a3e43;

  /* ---- 황동(brass) 포인트 ---- */
  --brass-1: #b8860b;
  --brass-2: #d4af37;
  --brass-3: #f0d77a;
  --brass-glow: rgba(212, 175, 55, 0.45);

  /* ---- 피아노 하이그로시 검정 ---- */
  --panel-0: #0a0a0c;
  --panel-1: #121317;
  --panel-2: #1a1c22;
  --panel-3: #23262e;
  --glass: rgba(18, 20, 26, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* ---- LED / 강조 ---- */
  --led-green: #46e08a;
  --led-amber: #ffb02e;
  --led-red: #ff4d4d;
  --led-cyan: #4fd6e0;
  --accent: #d4af37;

  /* ---- 텍스트 ---- */
  --text-1: #f4f1ea;
  --text-2: #b8b2a6;
  --text-3: #7d776c;
  --text-on-brass: #1a0e07;

  /* ---- 상태색 ---- */
  --ok: #46e08a;
  --warn: #ffb02e;
  --err: #ff5c5c;
  --info: #5cc8ff;

  --radius: 14px;
  --radius-sm: 8px;
  --font-ui: 'Pretendard', 'Inter', system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

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

body {
  font-family: var(--font-ui);
  color: var(--text-1);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(212,175,55,0.08), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(80,120,160,0.06), transparent 60%),
    linear-gradient(160deg, #0c0d10 0%, #0a0a0c 60%, #070708 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.1px;
}

/* ============ 질감 유틸 ============ */

/* 월넛 나무 패널 */
.tex-wood {
  background:
    repeating-linear-gradient(92deg, var(--wood-grain) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(88deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 5px),
    linear-gradient(120deg, var(--wood-3), var(--wood-2) 45%, var(--wood-1));
  box-shadow: inset 0 1px 0 rgba(255,200,140,0.08), inset 0 -3px 12px rgba(0,0,0,0.55);
  border: 1px solid var(--wood-edge);
}

/* 브러시드 알루미늄 */
.tex-metal {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--metal-3), var(--metal-1) 55%, var(--metal-lo));
  box-shadow: inset 0 1px 0 var(--metal-hi), inset 0 -2px 6px rgba(0,0,0,0.5);
  border: 1px solid #2c2f33;
}

/* 피아노 하이그로시 (반사 패널) */
.tex-gloss {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%),
    linear-gradient(160deg, var(--panel-3), var(--panel-1) 60%, var(--panel-0));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
}

/* 훈연 유리 */
.tex-glass {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

/* 황동 테두리 */
.brass-edge {
  border: 1px solid var(--brass-1);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.15), 0 0 20px var(--brass-glow);
}

/* ============ 텍스트 ============ */
.brand-wordmark {
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(180deg, var(--brass-3), var(--brass-2) 50%, var(--brass-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

/* ============ 패널 / 카드 ============ */
.panel {
  border-radius: var(--radius);
  padding: 20px;
}
.card {
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.card-glass { composes: tex-glass; }

/* 콘텐츠 가독 패널 (나무/금속 위 텍스트용 반투명 고대비) */
.readable {
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

/* ============ 버튼 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid #2c2f33; color: var(--text-1);
  background: linear-gradient(180deg, var(--panel-3), var(--panel-1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 6px rgba(0,0,0,0.4);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none; min-height: 44px;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0,0,0,0.6); }

.btn-brass {
  border: 1px solid var(--brass-1); color: var(--text-on-brass); font-weight: 700;
  background: linear-gradient(180deg, var(--brass-3), var(--brass-2) 55%, var(--brass-1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 18px var(--brass-glow);
}
.btn-ghost {
  background: transparent; border: 1px solid var(--glass-border); color: var(--text-2);
  box-shadow: none;
}
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: 13px; }

/* ============ 상태 배지 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(0,0,0,0.35);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.badge.ok   { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.err  { color: var(--err); }
.badge.info { color: var(--info); }
.badge.dim  { color: var(--text-3); }

/* ============ LED ============ */
.led { width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 10px currentColor, inset 0 0 4px rgba(255,255,255,0.6); }
.led-on  { color: var(--led-green); background: var(--led-green); }
.led-off { color: #333; background: #222; box-shadow: inset 0 0 4px #000; }

/* ============ 레이아웃 ============ */
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 16px 12px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar-brand { padding: 14px 12px 18px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border-radius: 10px; color: var(--text-2); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-1); }
.nav-item.active {
  color: var(--brass-3);
  background: linear-gradient(90deg, rgba(212,175,55,0.16), transparent);
  border: 1px solid rgba(212,175,55,0.25);
}
.nav-section { font-size: 11px; letter-spacing: 1.5px; color: var(--text-3);
  padding: 14px 13px 6px; text-transform: uppercase; font-weight: 700; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; position: sticky; top: 0; z-index: 30;
}
.content { padding: 24px; flex: 1; }

/* 모바일 하단 내비 */
.bottom-nav { display: none; }

/* ============ 폼 ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; font-size: 14px;
  background: rgba(0,0,0,0.45); border: 1px solid var(--glass-border);
  color: var(--text-1); font-family: var(--font-ui);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brass-1); box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ============ VU 미터 ============ */
.vu-meter { display: flex; gap: 3px; align-items: flex-end; height: 40px; }
.vu-bar { width: 5px; background: linear-gradient(180deg, var(--led-red), var(--led-amber) 40%, var(--led-green));
  border-radius: 2px; opacity: 0.25; transition: opacity .1s, height .1s; }
.vu-bar.lit { opacity: 1; }

/* ============ 노브 ============ */
.knob {
  width: 64px; height: 64px; border-radius: 50%; position: relative; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, var(--metal-3), var(--metal-1) 55%, var(--metal-lo));
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -3px 8px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.5);
  border: 2px solid #1c1f22;
}
.knob::after { content: ''; position: absolute; top: 8px; left: 50%; width: 3px; height: 18px;
  background: var(--brass-2); border-radius: 2px; transform: translateX(-50%);
  box-shadow: 0 0 6px var(--brass-glow); }

/* ============ 기능 그리드 ============ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  border-radius: var(--radius); padding: 20px; cursor: pointer;
  transition: transform .15s, box-shadow .2s; text-decoration: none; color: var(--text-1);
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 24px rgba(212,175,55,0.1); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; color: var(--brass-3);
  background: linear-gradient(160deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
  border: 1px solid rgba(212,175,55,0.25);
}
.feature-card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.feature-card p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* 통계 카드 */
.stat { padding: 18px; border-radius: var(--radius); position: relative; }
.stat .num { font-size: 26px; font-weight: 800; font-family: var(--font-mono); }
.stat .lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat .stat-ic {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 8px;
  color: var(--brass-2); background: rgba(212,175,55,0.08); border: 1px solid var(--glass-border);
  font-size: 13px;
}

/* ============ 랜딩: 히어로 파형 ============ */
.hero-wave { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 56px; }
.hero-wave span {
  flex: 1; max-width: 7px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brass-3), var(--brass-1));
  animation: heroBar 1.1s ease-in-out infinite alternate;
  opacity: 0.85;
}
@keyframes heroBar {
  0% { height: 14%; opacity: 0.5; }
  100% { height: 100%; opacity: 1; }
}

/* ============ 랜딩: 작동 방식 ============ */
.step-card { padding: 24px 20px; border-radius: var(--radius); text-align: center; position: relative; }
.step-card .step-n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  color: var(--brass-2); opacity: 0.7; margin-bottom: 10px;
}
.step-card .icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px; color: var(--text-on-brass);
  background: linear-gradient(180deg, var(--brass-3), var(--brass-1));
  box-shadow: 0 0 18px var(--brass-glow);
}
.step-card h3 { margin: 0 0 6px; font-size: 16px; }
.step-card p { margin: 0; font-size: 13px; line-height: 1.6; }

/* ============ 랜딩: 활용 사례 ============ */
.case-card { padding: 22px 18px; border-radius: var(--radius); }
.case-card:hover { transform: translateY(-3px); transition: transform .18s ease; }
.case-card .case-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 18px; color: var(--brass-2); background: rgba(212,175,55,0.08);
  border: 1px solid var(--glass-border); margin-bottom: 12px;
}
.case-card h3 { margin: 0 0 6px; font-size: 15px; }
.case-card p { margin: 0; font-size: 13px; line-height: 1.55; }

/* ============ 랜딩: FAQ ============ */
.faq-item {
  border: 1px solid var(--glass-border); border-radius: 12px;
  background: rgba(0,0,0,0.25); padding: 0 18px; margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--brass-2); font-size: 12px; transition: transform .2s ease;
}
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px 22px; font-size: 13px; line-height: 1.7; }

/* ============ 랜딩: 마무리 CTA ============ */
.cta-band {
  padding: 38px 28px; border-radius: 18px; text-align: center;
  border: 1px solid var(--brass-1);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.12), 0 0 40px rgba(212,175,55,0.12);
}

/* ============ 대시보드: 배너 ============ */
.banner-guest, .banner-api {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* ============ 대시보드: 온보딩 ============ */
.onboarding-list { display: flex; flex-direction: column; gap: 8px; }
.ob-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--glass-border); border-radius: 10px;
  background: rgba(0,0,0,0.22); text-decoration: none; color: var(--text-1);
  transition: border-color .15s ease, transform .15s ease;
}
.ob-row:hover { border-color: var(--brass-1); transform: translateX(2px); }
.ob-row .ob-check { color: var(--text-3); font-size: 16px; }
.ob-row.done .ob-check { color: var(--led-green); }
.ob-row .ob-ic {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--brass-2); background: rgba(212,175,55,0.08); border: 1px solid var(--glass-border); font-size: 13px;
}
.ob-row .ob-label { flex: 1; font-size: 14px; }
.ob-row.done .ob-label { color: var(--text-3); text-decoration: line-through; }
.ob-row .ob-state { font-size: 12px; color: var(--led-green); font-weight: 600; }
.ob-row .ob-go { color: var(--text-3); font-size: 12px; }

/* ============ 대시보드: 최근 프로젝트 행 ============ */
.recent-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text-1); transition: background .15s ease;
}
.recent-row:hover { background: rgba(212,175,55,0.06); }
.recent-row .recent-ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--brass-2); background: rgba(212,175,55,0.08); border: 1px solid var(--glass-border); font-size: 14px;
  flex-shrink: 0;
}
.recent-row .recent-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.recent-row .recent-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-row .recent-sub { font-size: 12px; }
.recent-row .recent-time { font-size: 11px; flex-shrink: 0; }

/* ============ 요금제 / 충전 (D) ============ */
/* 등급 색상 토큰 */
:root {
  --tier-free: #8a857a;
  --tier-bronze: #cd7f32;
  --tier-bronze-2: #e6a567;
  --tier-silver: #c0c4ca;
  --tier-silver-2: #e8ebef;
  --tier-gold: #d4af37;
  --tier-gold-2: #f0d77a;
  --tier-elite: #6f5bd6;
  --tier-elite-2: #a78bfa;
}

.pricing-hero { text-align: center; max-width: 760px; margin: 0 auto 14px; }
.pricing-hero h1 {
  font-size: 34px; margin: 0 0 10px; letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--text-1), var(--brass-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-hero p { font-size: 15px; line-height: 1.7; }

/* 결제 주기 토글 */
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(0,0,0,0.28); border: 1px solid var(--glass-border); margin: 8px auto 0; }
.bill-toggle button {
  border: none; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .2s; font-family: inherit;
}
.bill-toggle button.active { background: linear-gradient(135deg, var(--brass-1), var(--brass-2)); color: var(--text-on-brass); }
.bill-save { font-size: 11px; color: var(--led-green); margin-left: 4px; }

/* 플랜 카드 그리드 */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 22px 20px;
  border-radius: var(--radius); border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.18));
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.plan-card.featured {
  border-color: var(--brass-2); box-shadow: 0 0 0 1px var(--brass-1), 0 18px 48px rgba(0,0,0,0.5);
  transform: translateY(-6px);
}
.plan-card.featured:hover { transform: translateY(-10px); }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brass-1), var(--brass-3)); color: var(--text-on-brass);
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.plan-tier-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.5px; padding: 4px 12px; border-radius: 8px; margin-bottom: 12px; width: fit-content;
}
.tier-free   { background: rgba(138,133,122,0.18); color: var(--tier-free); border: 1px solid rgba(138,133,122,0.4); }
.tier-bronze { background: rgba(205,127,50,0.16); color: var(--tier-bronze-2); border: 1px solid rgba(205,127,50,0.45); }
.tier-silver { background: rgba(192,196,202,0.16); color: var(--tier-silver-2); border: 1px solid rgba(192,196,202,0.4); }
.tier-gold   { background: rgba(212,175,55,0.16); color: var(--tier-gold-2); border: 1px solid rgba(212,175,55,0.45); }
.tier-elite  { background: rgba(111,91,214,0.18); color: var(--tier-elite-2); border: 1px solid rgba(111,91,214,0.5); }
.plan-card h3 { font-size: 19px; margin: 0 0 2px; }
.plan-tagline { font-size: 12px; min-height: 32px; line-height: 1.5; margin: 0 0 12px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-price .amt { font-size: 30px; font-weight: 800; color: var(--brass-3); font-family: var(--font-mono); }
.plan-price .per { font-size: 13px; }
.plan-credits { font-size: 13px; color: var(--led-green); font-weight: 700; margin-bottom: 14px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan-feats li { font-size: 13px; line-height: 1.5; padding: 5px 0 5px 24px; position: relative; color: var(--text-2); }
.plan-feats li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 5px; color: var(--brass-2); font-size: 11px;
}
.plan-card .btn { width: 100%; justify-content: center; }

/* 비교표 */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--glass-border); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.compare-table th, .compare-table td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--glass-border); }
.compare-table thead th { background: rgba(0,0,0,0.3); font-size: 13px; position: sticky; top: 0; }
.compare-table thead th .tname { font-weight: 800; font-size: 15px; }
.compare-table thead th .tprice { font-size: 12px; color: var(--brass-3); font-weight: 700; font-family: var(--font-mono); }
.compare-table tbody th { text-align: left; color: var(--text-2); font-weight: 600; background: rgba(0,0,0,0.16); }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: rgba(212,175,55,0.06); }
.compare-table .yes { color: var(--led-green); }
.compare-table .no { color: var(--text-3); }
.compare-table .hl { color: var(--brass-3); font-weight: 700; }

/* 크레딧 충전 패키지 */
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pack-card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--glass-border);
  padding: 18px 16px; text-align: center; cursor: pointer; transition: all .2s;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.14));
}
.pack-card:hover { transform: translateY(-3px); border-color: rgba(212,175,55,0.45); }
.pack-card.featured { border-color: var(--brass-2); box-shadow: 0 0 0 1px var(--brass-1); }
.pack-card .pk-credits { font-size: 26px; font-weight: 800; color: var(--brass-3); font-family: var(--font-mono); }
.pack-card .pk-bonus { font-size: 12px; color: var(--led-green); font-weight: 700; min-height: 18px; }
.pack-card .pk-price { font-size: 15px; font-weight: 700; margin-top: 8px; }
.pack-card .pk-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brass-1), var(--brass-3)); color: var(--text-on-brass); white-space: nowrap;
}

/* 모달 */
.phi-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.phi-modal-backdrop.open { display: flex; }
.phi-modal {
  width: 100%; max-width: 440px; border-radius: var(--radius);
  border: 1px solid var(--brass-1); background: var(--panel-1, #16181e);
  padding: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.phi-modal h3 { margin: 0 0 6px; font-size: 18px; }

/* 결제 FAQ */
.pricing-faq { max-width: 820px; margin: 0 auto; }

/* 관리자 토글 스위치 */
.phi-switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.phi-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-3); transition: transform .2s, background .2s; }
.phi-switch:checked { background: linear-gradient(135deg, var(--brass-1), var(--brass-2)); border-color: var(--brass-2); }
.phi-switch:checked::after { transform: translateX(18px); background: var(--text-on-brass); }
.toggle-row:hover { background: rgba(255,255,255,0.02); border-radius: 8px; padding-left: 6px; padding-right: 6px; }

@media (max-width: 1024px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .plan-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
  .plan-card.featured, .plan-card.featured:hover { transform: none; }
  .pricing-hero h1 { font-size: 27px; }
}

/* ============ 반응형 ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 16px; padding-bottom: 90px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    justify-content: space-around; padding: 8px 4px 10px;
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--text-3); text-decoration: none; font-size: 10px; padding: 4px 8px;
    min-width: 56px;
  }
  .bottom-nav a.active { color: var(--brass-3); }
  .bottom-nav a i { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 스크롤바 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--panel-0); }
::-webkit-scrollbar-thumb { background: var(--metal-lo); border-radius: 5px; border: 2px solid var(--panel-0); }
::-webkit-scrollbar-thumb:hover { background: var(--metal-1); }
