/* ============================================================
   ArICO.Web — Site-wide component styles
   Extracted from docs/02_homepage-mockup.html.
   Design tokens live in /css/arico.css (loaded first).
   ============================================================ */

/* ============================================================
   ARICO Design System — inline tokens (from colors_and_type.css)
   ============================================================ */
:root {
  /* 섹션 상하 리듬 — 페이지 간 통일 (U2 가독성 토큰) */
  --section-y: clamp(64px, 8vw, 112px);
  --paper: #fafaf9;
  --shadow-lg: 0 12px 40px rgba(20, 30, 25, 0.12);
  --prose-width: 720px;
}
/* ============================================================
   Base
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: var(--font-sans); color: var(--fg); background: var(--bg); }
body {
  font-size: var(--text-base); line-height: var(--lh-base);
  letter-spacing: var(--tracking-snug);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Typography helpers */
.eyebrow {
  font-size: var(--text-xs); font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-arrow); text-transform: uppercase;
  color: var(--brand);
}
.eyebrow.on-dark { color: var(--green-300); }
.h1 { font-weight: var(--w-bold); font-size: var(--text-4xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
.h2 { font-weight: var(--w-bold); font-size: var(--text-3xl); line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); }
.h3 { font-weight: var(--w-semibold); font-size: var(--text-2xl); line-height: var(--lh-snug); letter-spacing: var(--tracking-snug); }
.h4 { font-weight: var(--w-semibold); font-size: var(--text-xl); line-height: var(--lh-snug); }
.lead { font-size: var(--text-xl); line-height: var(--lh-snug); color: var(--fg); font-weight: var(--w-regular); }
.muted { color: var(--fg-secondary); }

/* 검색 페이지 (U5) */
.search-form { position: relative; display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-6); max-width: 680px; }
.search-form .lead-icon { position: absolute; left: 16px; color: var(--fg-tertiary); pointer-events: none; display: inline-flex; }
.search-form .lead-icon .lucide { width: 18px; height: 18px; }
.search-form .form-control { flex: 1; padding-left: 44px; height: 48px; }
.search-results { display: flex; flex-direction: column; gap: 2px; }
.search-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; transition: border-color var(--t-fast) var(--ease-standard), background var(--t-fast) var(--ease-standard); }
.search-row:hover { border-color: var(--brand); background: var(--surface-hover); }
.search-row > .lucide { width: 20px; height: 20px; color: var(--brand); flex: none; }
.search-row > div { display: flex; flex-direction: column; min-width: 0; }
.search-row strong { font-size: var(--text-base); color: var(--fg); font-weight: var(--w-semibold); }
.search-row .muted { font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 지점 안내 (/locations) */
.location-list { display: grid; gap: var(--s-7); }
.location-card { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
@media (min-width: 768px) { .location-card { grid-template-columns: 300px 1fr; } }
.loc-cover { min-height: 200px; position: relative; display: flex; align-items: flex-start; padding: var(--s-4); }
.loc-body { padding: var(--s-7); }
.loc-sub { font-size: var(--text-xs); color: var(--fg-tertiary); margin-top: 2px; }
.loc-meta { display: flex; align-items: flex-start; gap: 6px; margin-top: var(--s-4); color: var(--fg-secondary); font-size: var(--text-sm); }
.loc-meta .lucide { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 2px; }
.loc-desc { margin-top: var(--s-4); color: var(--fg-secondary); line-height: var(--lh-base); white-space: pre-line; font-size: var(--text-sm); }
.loc-links { display: flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.btn--sm { padding: 6px 12px; font-size: var(--text-xs); }

/* 커뮤니티 CTA 밴드 (U3) */
.community-band { padding-block: var(--section-y); background: linear-gradient(160deg, var(--green-700), var(--green-500)); color: var(--neutral-0); position: relative; overflow: hidden; }
.community-band .ring-deco { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.10); pointer-events: none; }
.community-content { position: relative; z-index: 1; max-width: 640px; }
.community-content h2 { font-size: clamp(28px, 4vw, var(--text-4xl)); font-weight: var(--w-bold); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); margin: var(--s-3) 0 var(--s-4); }
.community-content p { color: rgba(255,255,255,0.82); font-size: var(--text-lg); line-height: var(--lh-base); }
.community-cta { display: flex; gap: var(--s-3); margin-top: var(--s-7); flex-wrap: wrap; }

/* 가독성 유틸 (U2) */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.5); }
/* 읽기 콘텐츠 — 블로그 본문·약관 등 긴 글 */
.prose { max-width: var(--prose-width); margin-inline: auto; font-size: 16px; line-height: 1.8; color: var(--fg-secondary); }
.prose > p { margin-bottom: 1.1em; }
.prose h2, .prose h3 { color: var(--fg); margin: 1.7em 0 0.6em; line-height: var(--lh-snug); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-lg); margin: 1.4em 0; }
.meta { font-size: var(--text-xs); color: var(--fg-tertiary); letter-spacing: var(--tracking-arrow); text-transform: uppercase; font-weight: var(--w-semibold); }
.mono { font-family: var(--font-mono); }

/* Section container */
.container { max-width: var(--maxw-content); margin: 0 auto; padding: 0 var(--s-7); }
@media (max-width: 480px) { .container { padding: 0 var(--s-5); } }   /* 작은 폰: 좌우 16px로 콘텐츠 공간 확보 */
@media (min-width: 1024px) { .container { padding: 0 var(--s-9); } }
section { padding: var(--s-13) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-7); margin-bottom: var(--s-10); flex-wrap: wrap; }
.section-head .left > .eyebrow { display: block; margin-bottom: var(--s-3); }
.section-head .left > h2 { margin-bottom: var(--s-3); }
/* SSOT 시그니처 — 섹션 헤딩 블록 밑 green→blue 브랜드 룰 (eyebrow=그린 → 룰=green→blue) */
.section-head .left::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: var(--s-3);
  border-radius: var(--tds-radius-pill, 999px);
  background: var(--tds-gradient, linear-gradient(90deg, var(--green-500), var(--tds-primary, #8FB6F5)));
}
.section-head .left.no-rule::after { display: none; }

/* ── ServiceLanding — 신규 메뉴 그룹/항목 랜딩 (장비·대회·이벤트·APP) ── */
.svc-hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(143,182,245,0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--tds-blue-900, #1B3A6B) 100%);
  color: var(--neutral-0);
}
.svc-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--tds-radius-lg, 12px); padding: var(--s-8);
  display: flex; flex-direction: column;
  transition: box-shadow .2s cubic-bezier(.4,0,.2,1), border-color .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
}
.svc-card:hover { box-shadow: 0 8px 28px rgba(20,30,40,.08); transform: translateY(-2px); }
.svc-card.is-active { border-color: var(--tds-primary, #8FB6F5); box-shadow: 0 0 0 3px rgba(143,182,245,.28); }
.svc-card-ico {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: var(--s-5);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-50, #EAF6EE); color: var(--green-600, #128A46);
}
.svc-card-ico i { width: 22px; height: 22px; }
.svc-card-title { font-size: var(--text-xl); font-weight: var(--w-bold); letter-spacing: var(--tracking-tight); margin-bottom: var(--s-3); }
.svc-card-lead { color: var(--fg-secondary); line-height: var(--lh-loose); margin-bottom: var(--s-5); }
.svc-card-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-5); }
.svc-card-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--text-sm); color: var(--fg-secondary); }
.svc-card-list li i { width: 16px; height: 16px; color: var(--green-500, #1B9E54); flex: 0 0 auto; margin-top: 3px; }
.svc-card-note { font-size: var(--text-xs); color: var(--fg-tertiary); margin-bottom: var(--s-5); }
.svc-card-cta { margin-top: auto; align-self: flex-start; }
.svc-footnote { margin-top: var(--s-8); font-size: var(--text-xs); color: var(--fg-tertiary); }

/* 공통 예약/신청/참가 폼 (ServiceBooking) */
.svc-booking { max-width: 640px; }
.svc-booking-form { display: flex; flex-direction: column; gap: 6px; }
.svc-booking-submit { margin-top: 8px; align-self: flex-start; }
.svc-booking-note { display: flex; gap: 7px; align-items: center; font-size: var(--text-sm); color: var(--fg-secondary); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; margin: 6px 0; }
.svc-booking-note .lucide { width: 16px; height: 16px; flex: none; color: var(--brand-fg); }
.svc-booking-err { color: #c0392b; font-size: var(--text-sm); margin: 4px 0; }
.svc-booking-done { text-align: center; border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; background: var(--surface); }
.svc-booking-done .svc-booking-ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-fg); margin-bottom: 12px; }
.svc-booking-done .svc-booking-ico .lucide { width: 26px; height: 26px; }
.svc-booking-done p { color: var(--fg-secondary); margin: 6px 0 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--s-3); border: 1px solid transparent; border-radius: var(--tds-radius-pill); padding: 11px 22px; font-weight: var(--w-semibold); font-size: var(--text-sm); letter-spacing: var(--tracking-snug); transition: background var(--t-fast) var(--ease-standard), color var(--t-fast) var(--ease-standard), border-color var(--t-fast) var(--ease-standard), transform 80ms var(--ease-standard); white-space: nowrap; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn--primary { background: var(--tds-primary); color: var(--tds-white); border-color: var(--tds-primary); }
.btn--primary:hover { background: var(--tds-primary-hover); border-color: var(--tds-primary-hover); }
.btn--primary:active { background: var(--tds-primary-active); border-color: var(--tds-primary-active); transform: scale(0.985); }
.btn--gradient { background: var(--tds-gradient); background-size: 160% 100%; background-position: 0 0; color: var(--tds-white); border-color: transparent; transition: background-position var(--tds-duration) var(--tds-ease), transform 80ms var(--ease-standard); }
.btn--gradient:hover { background-position: 100% 0; }
.btn--gradient:active { transform: scale(0.985); }
.btn--secondary { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: var(--shadow-1); }
.btn--secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn--ghost { background: transparent; color: var(--brand); padding-left: 4px; padding-right: 4px; }
.btn--ghost:hover { color: var(--brand-hover); }
.btn--on-dark { background: var(--neutral-0); color: var(--fg); }
.btn--on-dark:hover { background: var(--neutral-100); }
.btn--ghost-on-dark { background: transparent; color: var(--neutral-0); border-color: rgba(255,255,255,0.24); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,0.08); }
.btn--lg { padding: 14px 24px; font-size: var(--text-md); border-radius: 10px; }
.btn .lucide { width: 16px; height: 16px; stroke-width: 1.75; }

/* Link arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: var(--w-semibold); font-size: var(--text-sm); }
.link-arrow:hover { color: var(--brand-hover); }
.link-arrow::after { content: "→"; transition: transform var(--t-fast) var(--ease-standard); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Badge / pill */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: var(--w-semibold); letter-spacing: 0; }
.pill--brand { background: var(--brand-soft); color: var(--brand-fg); }
.pill--gold  { background: var(--gold-100); color: var(--gold-700); }
.pill--red   { background: var(--target-50); color: var(--target-700); }
.pill--dark  { background: var(--neutral-900); color: var(--neutral-0); }
.pill--outline { background: var(--surface); color: var(--fg-secondary); border: 1px solid var(--border); }
.pill .lucide { width: 12px; height: 12px; stroke-width: 2; }

/* External-link marker */
.ext::after { content: "↗"; margin-left: 4px; font-weight: var(--w-medium); color: var(--fg-tertiary); }

/* ============================================================
   Header (sticky)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--maxw-content); margin: 0 auto;
  padding: 14px var(--s-7); display: flex; align-items: center; gap: var(--s-8);
}
@media (min-width: 1024px) { .site-header .inner { padding: 14px var(--s-9); } }
.brand-wordmark { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--text-xl); letter-spacing: -0.02em; color: var(--brand); }
/* 브랜드 락업 — 심볼 + 워드마크 가로 결합 (모바일 헤더 등 span 컨테이너용) */
.brand-lockup { display: inline-flex; align-items: center; gap: 7px; }
/* 로고 이미지 — 심볼(정사각)·워드마크(가로형) 모두 높이 기준. 인라인 height 로 위치별 크기 조정. */
.brand-symbol, .brand-logo { width: auto; height: 30px; display: block; }
/* 테마별 로고 스왑 — 다크 전용 로고가 설정된 경우에만 쌍으로 렌더됨(SiteHeader/SiteFooter).
   !important: .mk-hdr-brand .brand-logo 등 컨텍스트 규칙(display:block)보다 항상 우선해야 하는 스왑 유틸. */
.brand-logo--dark { display: none !important; }
[data-theme="dark"] .brand-logo--light { display: none !important; }
[data-theme="dark"] .brand-logo--dark { display: block !important; }
.brand-wordmark .platform-tag { font-family: var(--font-sans); font-weight: var(--w-semibold); font-size: var(--text-2xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; color: var(--fg-tertiary); padding: 3px 6px; border: 1px solid var(--border); border-radius: var(--r-sm); }

.nav-primary { display: none; align-items: center; gap: var(--s-6); margin-left: var(--s-6); }
@media (min-width: 1024px) { .nav-primary { display: flex; } }
.nav-primary > a,
.nav-trigger {
  font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--fg);
  padding: 6px 0; position: relative; background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-family: inherit;
}
.nav-primary > a:hover, .nav-trigger:hover,
.nav-primary > a.active, .nav-trigger.active { color: var(--brand); }
.nav-primary > a.active::after,
.nav-trigger.active::after { content: ""; position: absolute; left: 0; right: 14px; bottom: -2px; height: 2px; background: var(--brand); border-radius: 2px; }
.nav-trigger .caret { width: 14px; height: 14px; stroke-width: 2; transition: transform var(--t-fast) var(--ease-standard); }
.nav-primary > a.ext::after { content: " ↗"; font-size: 0.8em; color: var(--fg-tertiary); }

/* 드롭다운 (데스크톱 hover/focus) */
.nav-group { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 280px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.12));
  padding: var(--s-3); display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease-standard), transform var(--t-fast) var(--ease-standard);
  z-index: 60;
}
/* 열림 상태는 JS(.open)가 제어 — hover/클릭으로 열고 바깥클릭·Esc 전까지 고정. focus-within 은 키보드 접근성용. */
.nav-group.open .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(8px);
}
.nav-group.open .nav-trigger .caret,
.nav-group:focus-within .nav-trigger .caret { transform: rotate(180deg); }
.nav-dropdown a {
  display: grid; grid-template-columns: 20px 1fr; column-gap: var(--s-3); row-gap: 1px;
  align-items: center; padding: 10px var(--s-3); border-radius: var(--r-md); text-decoration: none;
}
.nav-dropdown a:hover { background: var(--surface-hover); }
.nav-dropdown a .lucide { grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--brand); align-self: start; margin-top: 2px; }
.nav-dropdown .d-title { font-size: var(--text-sm); font-weight: var(--w-semibold); color: var(--fg); }
.nav-dropdown .d-desc { font-size: var(--text-2xs); color: var(--fg-tertiary); line-height: var(--lh-snug); }
/* 강조(featured) 드롭다운 항목 — Arico.TV 등 */
.nav-dropdown a.featured { background: rgba(27,158,84,0.08); margin-top: 4px; }
.nav-dropdown a.featured:hover { background: rgba(27,158,84,0.14); }
.nav-dropdown a.featured .d-title { color: var(--brand); font-weight: var(--w-bold); }
.nav-dropdown a.featured .lucide { color: var(--brand); }
.mobile-nav .m-child.featured { color: var(--brand); font-weight: var(--w-bold); background: rgba(27,158,84,0.08); border-radius: var(--r-md); padding-inline: 10px; }

/* 검색 버튼 (헤더) */
.search-btn { color: var(--fg-secondary); }
.search-btn:hover { color: var(--brand); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
/* 언어 전환 — 토글 드롭다운 */
.lang-dd { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 6px 10px; font-size: var(--text-2xs); font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-wide); color: var(--fg); font-family: inherit;
}
.lang-trigger:hover { border-color: var(--brand); color: var(--brand); }
.lang-trigger .lucide { width: 15px; height: 15px; }
.lang-trigger .caret { width: 13px; height: 13px; color: var(--fg-tertiary); transition: transform var(--t-fast) var(--ease-standard); }
.lang-dd:hover .lang-trigger .caret,
.lang-dd:focus-within .lang-trigger .caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: 100%; right: 0; transform: translateY(6px);
  min-width: 156px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease-standard), transform var(--t-fast) var(--ease-standard); z-index: 60;
}
.lang-dd:hover .lang-dropdown,
.lang-dd:focus-within .lang-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(8px); }
.lang-dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 9px 12px; border-radius: var(--r-md); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--fg);
}
.lang-dropdown a:hover { background: var(--surface-hover); }
.lang-dropdown a .lang-code { font-size: var(--text-2xs); color: var(--fg-tertiary); letter-spacing: var(--tracking-wide); }
.lang-dropdown a.active { color: var(--brand); font-weight: var(--w-bold); }
.lang-dropdown a.active .lang-code { color: var(--brand); }

/* 언어 전환 — 세그먼트(푸터 전용) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); }
.lang-switch a { background: transparent; border: 0; font-size: var(--text-2xs); font-weight: var(--w-semibold); letter-spacing: var(--tracking-wide); color: var(--fg-tertiary); padding: 4px 10px; border-radius: var(--r-full); text-decoration: none; }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a.active { background: var(--neutral-900); color: var(--neutral-0); }

.icon-btn { background: transparent; border: 1px solid transparent; padding: 8px; border-radius: var(--r-md); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--surface-hover); }
.icon-btn .lucide { width: 18px; height: 18px; stroke-width: 1.75; }

.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
/* 데스크톱에서 auth-action 은 보이고, 모바일에선 메뉴 안으로 */
@media (max-width: 1023px) { .header-actions .auth-action { display: none; } }

/* 모바일 풀스크린 메뉴 */
.mobile-nav {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t-base) var(--ease-standard);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--s-7); border-bottom: 1px solid var(--border); }
.mobile-nav-body { flex: 1; overflow-y: auto; padding: var(--s-5) var(--s-7); display: flex; flex-direction: column; gap: 2px; }
.mobile-nav .m-link,
.mobile-nav .m-group > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-size: var(--text-lg); font-weight: var(--w-semibold); color: var(--fg);
  border-bottom: 1px solid var(--border); cursor: pointer; list-style: none;
}
.mobile-nav .m-group > summary::-webkit-details-marker { display: none; }
.mobile-nav .m-group > summary .lucide { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-standard); }
.mobile-nav .m-group[open] > summary .lucide { transform: rotate(180deg); }
.mobile-nav .m-children { display: flex; flex-direction: column; padding: 4px 0 10px; }
.mobile-nav .m-child { display: flex; align-items: center; gap: var(--s-3); padding: 11px 8px; font-size: var(--text-base); color: var(--fg-secondary); }
.mobile-nav .m-child .lucide { width: 17px; height: 17px; color: var(--brand); }
.mobile-nav .m-child:hover { color: var(--brand); }
.mobile-nav-foot { padding: var(--s-5) var(--s-7) calc(var(--s-7) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s-3); }
body.mobile-nav-open { overflow: hidden; }

/* ============================================================
   Hero
   ============================================================ */
/* ── 플랫폼 히어로(hero2) — 간결 + green→blue 포인트, 우측 이벤트 미리보기 카드 ── */
.hero2 { padding: var(--s-12) 0; background: radial-gradient(ellipse at 92% 4%, rgba(46,116,196,0.06) 0%, transparent 52%); }
.hero2-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-9); align-items: center; }
@media (min-width: 900px) { .hero2-grid { grid-template-columns: 1.05fr 0.8fr; gap: var(--s-11); } }
.hero2-copy { min-width: 0; }
.hero2-title { font-size: clamp(30px, 5vw, 46px); font-weight: var(--w-bold); line-height: 1.18; letter-spacing: var(--tracking-tight); color: var(--fg); margin: var(--s-3) 0 0; }
.grad-text { background: linear-gradient(120deg, #1B9E54, #2E74C4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero2-sub { font-size: var(--text-lg); color: var(--fg-secondary); line-height: var(--lh-loose); margin: var(--s-5) 0 var(--s-7); max-width: 460px; }
.hero2-cta { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero2 .btn--gradient { background: linear-gradient(120deg, #1B9E54, #2E74C4); }
.hero2 .btn--ghost { border: 1px solid var(--border); color: var(--fg-secondary); padding-left: 18px; padding-right: 18px; }
.hero2 .btn--ghost:hover { background: var(--surface-hover); }
.hero2-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 12px 40px rgba(20,30,40,0.06); align-self: start; }
.hero2-card-bar { height: 4px; background: linear-gradient(90deg, #1B9E54, #2E74C4); }
.hero2-card-in { padding: var(--s-6); }
.hero2-card-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); font-weight: var(--w-semibold); color: var(--fg); margin-bottom: var(--s-3); }
.hero2-ev { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3); border-radius: var(--r-lg); text-decoration: none; }
.hero2-ev:hover { background: var(--surface-hover); }
.hero2-ev-ic { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hero2-ev-ic.tg { background: var(--green-50); color: var(--green-600); }
.hero2-ev-ic.tb { background: #EAF1F7; color: #2E74C4; }
.hero2-ev-ic .lucide { width: 19px; height: 19px; }
.hero2-ev-tx { display: flex; flex-direction: column; min-width: 0; }
.hero2-ev-tx .t { font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero2-ev-tx .d { font-size: var(--text-xs); color: var(--fg-tertiary); }
.hero2 .link-arrow { font-size: var(--text-xs); color: var(--fg-tertiary); font-weight: 400; text-decoration: none; }
.hero2 .link-arrow:hover { color: var(--fg-secondary); }

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(143,182,245,0.20) 0%, transparent 55%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 52%, var(--tds-blue-900) 100%);
  color: var(--neutral-0);
  overflow: hidden;
  padding: var(--s-13) 0 var(--s-14);
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: 40px;
  width: 520px; height: 520px; pointer-events: none;
  background-image: radial-gradient(circle, transparent 38%, rgba(255,255,255,0.06) 39%, rgba(255,255,255,0.06) 41%, transparent 42%, transparent 50%, rgba(255,255,255,0.05) 51%, rgba(255,255,255,0.05) 53%, transparent 54%, transparent 64%, rgba(255,255,255,0.04) 65%, rgba(255,255,255,0.04) 67%, transparent 68%);
  border-radius: 50%;
  opacity: 0.7;
}
.hero::after {
  content: ""; position: absolute; right: 110px; top: 260px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--target-500); box-shadow: 0 0 24px rgba(216,54,42,0.4);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--green-300); display: inline-block; margin-bottom: var(--s-7); }
.hero-title {
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-5);
  max-width: 920px;
}
.hero-title .kr { display: block; font-size: clamp(22px, 2.8vw, 32px); font-weight: var(--w-medium); color: var(--green-200); margin-top: var(--s-4); letter-spacing: var(--tracking-snug); }
.hero-sub { font-size: var(--text-xl); line-height: 1.55; color: rgba(250,250,249,0.78); max-width: 620px; margin-bottom: var(--s-9); }
.hero-cta { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero-meta { display: flex; gap: var(--s-7); margin-top: var(--s-11); flex-wrap: wrap; padding-top: var(--s-7); border-top: 1px solid rgba(255,255,255,0.12); max-width: 720px; }
.hero-meta > div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .num { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--w-semibold); color: var(--neutral-0); letter-spacing: -0.01em; }
.hero-meta .lbl { font-size: var(--text-xs); color: rgba(250,250,249,0.6); letter-spacing: var(--tracking-arrow); text-transform: uppercase; font-weight: var(--w-medium); }

/* ============================================================
   Services grid (What's ARICO?)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: var(--s-5); }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-7) var(--s-7);
  transition: border-color var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard), transform var(--t-base) var(--ease-standard);
  display: flex; flex-direction: column; gap: var(--s-4);
  min-height: 220px;
}
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-3); transform: translateY(-3px); }
.service-card .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--brand-soft); color: var(--brand-fg); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgba(27,158,84,0.12); transition: background var(--t-base) var(--ease-standard), color var(--t-base) var(--ease-standard), transform var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard); }
.service-card:hover .icon-wrap { background: var(--brand); color: #fff; transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 14px rgba(27,158,84,0.28); }
.service-card .icon-wrap .lucide { width: 22px; height: 22px; stroke-width: 1.75; }
.service-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.service-card h3 .kr { font-size: var(--text-sm); color: var(--fg-tertiary); font-weight: var(--w-medium); letter-spacing: var(--tracking-snug); }
.service-card .desc { color: var(--fg-secondary); font-size: var(--text-sm); margin-bottom: auto; }
.service-card .card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-5); border-top: 1px solid var(--border-subtle); }
.service-card .ext-tag { font-size: var(--text-2xs); color: var(--fg-tertiary); letter-spacing: var(--tracking-arrow); text-transform: uppercase; font-weight: var(--w-semibold); }
.service-card:hover .link-arrow { color: var(--brand-hover); }
.service-card:hover .link-arrow::after { transform: translateX(4px); }

/* ============================================================
   Event cards
   ============================================================ */
.event-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: var(--s-5); }
@media (min-width: 720px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .event-grid { grid-template-columns: repeat(4, 1fr); } }

.event-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard);
}
.event-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-3); transform: translateY(-3px); }
.event-cover {
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-500) 100%);
  position: relative; display: flex; align-items: flex-start; justify-content: space-between;
  padding: var(--s-5); color: var(--neutral-0);
}
.event-cover.cup { background: linear-gradient(135deg, var(--target-700) 0%, var(--target-500) 100%); }
.event-cover.seminar { background: linear-gradient(135deg, var(--green-700) 0%, var(--green-400) 100%); }
.event-cover.practice { background: linear-gradient(135deg, var(--neutral-800) 0%, var(--green-700) 100%); }
.event-cover .date-stack { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,0.32); padding: 6px 10px 8px; border-radius: var(--r-md); backdrop-filter: blur(6px); }
.event-cover .date-stack .month { font-size: var(--text-2xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; font-weight: var(--w-semibold); }
.event-cover .date-stack .day { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--w-bold); line-height: 1; margin-top: 2px; }
.event-cover .ring-art {
  position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.18);
}
.event-cover .ring-art::before, .event-cover .ring-art::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.12);
}
.event-cover .ring-art::after { inset: 50px; border-color: rgba(255,255,255,0.08); }
.event-meta-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.event-card .body { padding: var(--s-6) var(--s-6) var(--s-7); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.event-card .title-ja { font-weight: var(--w-semibold); font-size: var(--text-md); color: var(--fg); letter-spacing: var(--tracking-snug); }
.event-card .title-kr { font-size: var(--text-xs); color: var(--fg-tertiary); margin-top: -4px; }
.event-card .loc { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--fg-secondary); margin-top: 4px; }
.event-card .loc .lucide { width: 13px; height: 13px; stroke-width: 1.75; }
.event-card .foot { margin-top: auto; padding-top: var(--s-5); display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--border); }
.event-card .price { font-family: var(--font-mono); font-weight: var(--w-semibold); font-size: var(--text-md); color: var(--fg); }
.event-card .price.free { color: var(--brand); }
/* 사진 커버 (ImageUrl 있을 때) — 없으면 위 그라데이션 폴백 */
.event-cover--photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.event-cover--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.06) 44%, rgba(0,0,0,0) 72%); }
.event-cover--photo > * { position: relative; z-index: 1; }
/* 카드 설명(하단) — 2줄 클램프 */
.event-card .desc { font-size: var(--text-xs); color: var(--fg-secondary); line-height: var(--lh-base); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   RESERVE — 자체 예약 Phase 1 (docs 33, STORES 참고)
   ============================================================ */
.rsv-flow { max-width: 760px; }
.rsv-step { margin-top: var(--s-8); }
.rsv-step-h { display: flex; align-items: center; gap: 10px; font-weight: var(--w-semibold); font-size: var(--text-md); color: var(--fg); margin-bottom: var(--s-4); }
.rsv-step-h .num { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--w-bold); flex-shrink: 0; }

.rsv-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rsv-menu { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; background: var(--surface); cursor: pointer; text-align: left; font-family: inherit; transition: border-color var(--t-fast) var(--ease-standard); }
.rsv-menu:hover { border-color: var(--border-strong); }
.rsv-menu.is-sel { border-color: var(--brand); background: var(--brand-soft); }
.rsv-menu .nm { font-weight: var(--w-semibold); font-size: var(--text-sm); color: var(--fg); display: block; }
.rsv-menu .pr { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-secondary); }

.rsv-cal { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: var(--s-5); max-width: 420px; }
.rsv-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.rsv-cal-title { font-weight: var(--w-semibold); font-size: var(--text-sm); }
.rsv-cal-nav { background: none; border: 1px solid var(--border); border-radius: var(--r-md); width: 30px; height: 30px; cursor: pointer; color: var(--fg); font-size: var(--text-md); line-height: 1; }
.rsv-cal-nav:hover:not(:disabled) { background: var(--surface-hover); }
.rsv-cal-nav:disabled { opacity: .35; cursor: default; }
.rsv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rsv-cal-dow { text-align: center; font-size: var(--text-2xs); color: var(--fg-tertiary); padding: 4px 0; }
.rsv-day { aspect-ratio: 1; border: 0; background: none; border-radius: var(--r-md); font-family: inherit; font-size: var(--text-sm); color: var(--fg); cursor: pointer; position: relative; }
.rsv-day:hover:not(:disabled) { background: var(--surface-hover); }
.rsv-day:disabled { color: var(--fg-tertiary); opacity: .4; cursor: default; background: none; }
.rsv-day.has-slot::after { content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.rsv-day.is-sel { background: var(--brand); color: #fff; }
.rsv-day.is-sel::after { background: #fff; }
.rsv-cal-hint { font-size: var(--text-2xs); color: var(--fg-tertiary); margin: var(--s-4) 0 0; }

.rsv-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.rsv-slot { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-full); padding: 8px 16px; font-family: var(--font-mono); font-size: var(--text-sm); cursor: pointer; color: var(--fg); transition: border-color var(--t-fast) var(--ease-standard); }
.rsv-slot:hover { border-color: var(--border-strong); }
.rsv-slot.is-sel { border-color: var(--brand); background: var(--brand); color: #fff; }

.rsv-sum { margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--bg-sunken); font-size: var(--text-sm); color: var(--fg); line-height: var(--lh-base); }
.rsv-err { color: var(--target-700); font-size: var(--text-sm); margin: var(--s-4) 0 0; }
.rsv-submit { margin-top: var(--s-6); }
.rsv-note { display: flex; align-items: flex-start; gap: 6px; font-size: var(--text-xs); color: var(--fg-tertiary); margin: var(--s-4) 0 0; }
.rsv-note .lucide { width: 14px; height: 14px; stroke-width: 1.75; flex-shrink: 0; margin-top: 1px; }

/* 키보드 포커스 링 — 캘린더·슬롯·메뉴 버튼 (btn 클래스를 안 쓰므로 별도 지정) */
.rsv-cal-nav:focus-visible, .rsv-day:focus-visible, .rsv-slot:focus-visible, .rsv-menu:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.rsv-done { text-align: center; padding: var(--s-9) var(--s-6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.rsv-done-ico .lucide { width: 40px; height: 40px; stroke-width: 1.5; color: var(--brand); }
.rsv-done .btn { margin-top: var(--s-4); }

/* 즐겨찾기 하트 (카드 공통) — 카드 링크 오버레이보다 위 레이어(클릭이 링크로 새지 않게) */
.fav-heart { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--fg-tertiary); border-radius: var(--r-full); transition: color var(--t-fast) var(--ease-standard), transform var(--t-fast) var(--ease-standard); }
/* 카드 전체 클릭 링크 오버레이 — 하트와 분리하기 위해 앵커를 콘텐츠 밖 절대배치로 */
.card-overlay { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fav-heart svg { width: 18px; height: 18px; }
.fav-heart:hover { color: var(--target-500); transform: scale(1.12); }
.fav-heart.is-on { color: var(--target-500); }
.fav-heart.is-on svg { fill: var(--target-500); }
.fav-heart:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* 관리자 예약 접수 목록 */
.adm-rsv-list { display: flex; flex-direction: column; gap: var(--s-4); }
.adm-rsv-row { display: flex; gap: var(--s-6); align-items: flex-start; justify-content: space-between; padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.adm-rsv-main { min-width: 0; flex: 1; }
.adm-rsv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-rsv-id { font-size: var(--text-xs); color: var(--fg-tertiary); letter-spacing: 0.04em; }
.adm-rsv-sub { margin-top: 6px; font-size: var(--text-sm); color: var(--fg-secondary); }
.adm-rsv-answers { margin-top: var(--s-3); font-size: var(--text-sm); }
.adm-rsv-answers summary { cursor: pointer; color: var(--brand); font-size: var(--text-xs); }
.adm-rsv-answer { margin-top: 6px; padding: 8px 12px; background: var(--bg-sunken); border-radius: var(--r-md); }
.adm-rsv-answer span { font-size: var(--text-2xs); display: block; }
.adm-rsv-answer p { margin: 2px 0 0; white-space: pre-wrap; font-size: var(--text-sm); color: var(--fg); }
.adm-rsv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); flex-shrink: 0; }
.adm-rsv-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ============================================================
   Video / Arico.tv strip
   ============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: var(--s-5); }
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.video-card:hover { border-color: var(--border-strong); }
.video-thumb { aspect-ratio: 16 / 10; position: relative; }
.video-thumb.t1 { background: linear-gradient(135deg, var(--green-900) 0%, var(--green-500) 100%); }
.video-thumb.t2 { background: linear-gradient(135deg, var(--green-700) 0%, var(--green-400) 100%); }
.video-thumb.t3 { background: linear-gradient(135deg, #123023 0%, #69ad86 100%); }
.video-thumb .play-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: rgba(255,255,255,0.92); color: var(--fg); border-radius: var(--r-full); font-weight: var(--w-semibold); font-size: var(--text-sm); }
.video-thumb .play-pill .lucide { width: 14px; height: 14px; stroke-width: 2; fill: var(--fg); }
.video-thumb .duration { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; background: rgba(0,0,0,0.65); color: var(--neutral-0); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: var(--text-xs); }
.video-thumb .badge-tv { position: absolute; left: 12px; top: 12px; padding: 3px 8px; background: rgba(255,255,255,0.92); color: var(--brand-fg); border-radius: var(--r-sm); font-size: var(--text-2xs); font-weight: var(--w-bold); letter-spacing: var(--tracking-arrow); text-transform: uppercase; }
.video-info { padding: var(--s-5) var(--s-6) var(--s-6); }
.video-info .title { font-weight: var(--w-semibold); font-size: var(--text-base); color: var(--fg); }
.video-info .meta { margin-top: 4px; color: var(--fg-tertiary); font-size: var(--text-xs); letter-spacing: 0; text-transform: none; font-weight: var(--w-regular); }
.video-info .meta b { color: var(--fg-secondary); font-weight: var(--w-medium); }

/* ============================================================
   Academy / Super Advisor split
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.feature-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-2xl); padding: var(--s-9) var(--s-9) var(--s-9);
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--neutral-0);
}
.feature-card.academy { background: linear-gradient(160deg, var(--green-700) 0%, var(--green-500) 100%); }
.feature-card.advisor { background: linear-gradient(160deg, var(--neutral-900) 0%, var(--green-800) 100%); }
.feature-card .eyebrow.on-dark { color: var(--green-200); }
.feature-card h3 { font-size: var(--text-3xl); font-weight: var(--w-bold); letter-spacing: var(--tracking-tight); line-height: var(--lh-tight); margin: var(--s-3) 0 var(--s-4); }
.feature-card p { color: rgba(255,255,255,0.78); max-width: 460px; margin-bottom: var(--s-7); }
.feature-card .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.feature-card .ring-deco {
  position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.10);
}
.feature-card .ring-deco::before, .feature-card .ring-deco::after {
  content: ""; position: absolute; inset: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.08);
}
.feature-card .ring-deco::after { inset: 70px; }
.feature-card .ring-deco .dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: var(--target-500); }

/* ============================================================
   Gallery preview
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.album-card { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); cursor: pointer; }
.album-card .cover { position: absolute; inset: 0; }
.album-card.a1 .cover { background: linear-gradient(160deg, var(--green-700), var(--green-500)); }
.album-card.a2 .cover { background: linear-gradient(160deg, #37383c, #707376); }
.album-card.a3 .cover { background: linear-gradient(160deg, #871912, #d8362a); }
.album-card.a4 .cover { background: linear-gradient(160deg, #0b1e16, #428d64); }
.album-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%); }
.album-card .meta-row { position: absolute; left: var(--s-5); right: var(--s-5); bottom: var(--s-5); color: var(--neutral-0); }
.album-card .meta-row .year { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; opacity: 0.85; font-weight: var(--w-medium); }
.album-card .meta-row .name { font-size: var(--text-base); font-weight: var(--w-semibold); margin-top: 4px; line-height: var(--lh-snug); }
.album-card .meta-row .count { font-size: var(--text-xs); opacity: 0.78; margin-top: 2px; font-family: var(--font-mono); }
.album-card .lock { position: absolute; right: var(--s-4); top: var(--s-4); display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(0,0,0,0.45); color: var(--neutral-0); border-radius: var(--r-full); font-size: var(--text-2xs); font-weight: var(--w-semibold); letter-spacing: var(--tracking-wide); backdrop-filter: blur(6px); }
.album-card .lock .lucide { width: 12px; height: 12px; stroke-width: 2; }

/* ============================================================
   GALLERY CATEGORY CARDS — 6 카테고리 큰 카드 (SmugMug 화면 톤)
   ============================================================ */
.category-grid {
  display: grid; grid-template-columns: repeat(1, 1fr);
  gap: var(--s-5);
}
@media (min-width: 720px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }

.category-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 16 / 11;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none; color: var(--neutral-0);
  transition: transform var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard);
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.category-card.is-empty:hover { transform: none; box-shadow: none; }

.category-card .cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.category-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.category-card .cat-icon {
  position: absolute; top: var(--s-5); left: var(--s-5);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
}
.category-card .cat-icon .lucide { width: 20px; height: 20px; stroke-width: 1.75; color: var(--neutral-0); }

.category-card .cat-meta {
  position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6);
}
.category-card .cat-meta .dual {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.category-card .cat-meta .dual .ko {
  font-size: var(--text-2xl); font-weight: var(--w-bold);
  letter-spacing: var(--tracking-tight); line-height: 1;
}
.category-card .cat-meta .dual .sep {
  color: rgba(255,255,255,0.55); font-weight: var(--w-medium);
}
.category-card .cat-meta .dual .en {
  font-size: var(--text-base); color: rgba(255,255,255,0.78); font-weight: var(--w-medium);
  letter-spacing: 0;
}
.category-card .cat-meta .stats {
  font-size: var(--text-xs); color: rgba(255,255,255,0.78);
}
.category-card .cat-meta .stats .mono {
  font-family: var(--font-mono); font-weight: var(--w-semibold); color: var(--neutral-0);
}
.category-card .cat-meta .stats .dot { margin: 0 6px; opacity: 0.55; }

/* ============================================================
   YEAR SECTION HEADER (카테고리 페이지에서 연도별 그룹핑)
   ============================================================ */
.year-section { margin-bottom: var(--s-11); }
.year-section:last-child { margin-bottom: 0; }
.year-section-head {
  display: flex; align-items: center; gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.year-section-head .year-label {
  font-size: var(--text-3xl); font-weight: var(--w-bold);
  color: var(--fg); letter-spacing: -0.02em; line-height: 1;
}
.year-section-head .year-divider {
  flex: 1; height: 1px; background: var(--border);
}
.year-section-head .year-count {
  font-size: var(--text-xs); letter-spacing: var(--tracking-arrow);
  text-transform: uppercase; color: var(--fg-tertiary); font-weight: var(--w-semibold);
}

/* ============================================================
   LIGHTBOX — 앨범 상세에서 사진 확대 보기
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: var(--s-9);
}
.lightbox.is-open { display: flex; }

.lightbox-stage {
  max-width: min(96vw, 1600px); max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-stage img {
  max-width: 100%; max-height: 86vh;
  object-fit: contain; display: block;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  border-radius: var(--r-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--neutral-0);
  width: 48px; height: 48px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--t-fast) var(--ease-standard);
  backdrop-filter: blur(8px);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: var(--s-7); right: var(--s-7); }
.lightbox-prev { left: var(--s-7); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--s-7); top: 50%; transform: translateY(-50%); }
.lightbox-close .lucide,
.lightbox-prev .lucide,
.lightbox-next .lucide { width: 22px; height: 22px; stroke-width: 1.75; }

.lightbox-caption {
  position: absolute; bottom: var(--s-7); left: 0; right: 0;
  text-align: center; color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
.lightbox-caption .lightbox-position {
  font-size: var(--text-xs); color: rgba(255, 255, 255, 0.55);
  letter-spacing: var(--tracking-arrow);
}
.lightbox-caption .lightbox-text {
  font-weight: var(--w-medium);
  max-width: 760px; margin: 0 auto;
  padding: 0 var(--s-7);
}

@media (max-width: 720px) {
  .lightbox { padding: var(--s-5); }
  .lightbox-close { top: var(--s-3); right: var(--s-3); width: 40px; height: 40px; }
  .lightbox-prev { left: var(--s-3); width: 40px; height: 40px; }
  .lightbox-next { right: var(--s-3); width: 40px; height: 40px; }
  .lightbox-caption { bottom: var(--s-3); font-size: var(--text-xs); }
}

/* 사진 카드 호버 효과 */
.photo-tile.photo-clickable { transition: transform var(--t-fast) var(--ease-standard); }
.photo-tile.photo-clickable:hover { transform: scale(1.02); }
.photo-tile.photo-clickable:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ============================================================
   TEAMS — 팀 목록 카드 + 상세 멤버/공지
   ============================================================ */
.team-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard);
}
.team-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.team-logo {
  height: 96px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.92);
}
.team-logo .initial { font-family: var(--font-display); font-weight: var(--w-bold); font-size: 40px; }
.team-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.team-head h3 { font-size: var(--text-lg); font-weight: var(--w-semibold); color: var(--fg); }
.team-card .desc { font-size: var(--text-sm); color: var(--fg-secondary); margin-bottom: auto; }
.team-meta { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs); color: var(--fg-secondary); }
.team-meta span { display: inline-flex; align-items: center; gap: 6px; }
.team-meta .lucide { width: 13px; height: 13px; stroke-width: 1.75; }
.team-foot { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-4); border-top: 1px dashed var(--border); }

.member-list { display: flex; flex-direction: column; gap: var(--s-3); }
.member-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.member-info { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.member-info strong { font-size: var(--text-sm); color: var(--fg); }
.member-info .muted { font-size: var(--text-xs); }

.notice-list { display: flex; flex-direction: column; gap: var(--s-4); }
.notice-card { padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.notice-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.notice-card .notice-date { font-size: var(--text-xs); color: var(--fg-tertiary); }
.notice-card h4 { font-size: var(--text-base); font-weight: var(--w-semibold); color: var(--fg); margin-bottom: 4px; }
.notice-card .muted { font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-base); }

/* ============================================================
   MYPAGE — AI 코칭 게이지 + 내 팀 카드
   ============================================================ */
.mypage-two-col { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .mypage-two-col { grid-template-columns: 1fr 1fr; } }
.ai-coaching-card, .my-team-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s-7);
}
.usage-gauge { display: flex; flex-direction: column; gap: var(--s-3); }
.usage-bar { height: 10px; background: var(--bg-sunken); border-radius: var(--r-full); overflow: hidden; }
.usage-bar .fill { height: 100%; background: var(--brand); border-radius: var(--r-full); transition: width var(--t-base) var(--ease-standard); }
.usage-text { font-size: var(--text-sm); color: var(--fg-secondary); }
.usage-text .mono { font-family: var(--font-mono); font-weight: var(--w-semibold); color: var(--fg); }

.team-mini { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: border-color var(--t-fast); }
.team-mini:hover { border-color: var(--border-strong); }
.team-mini-logo { width: 44px; height: 44px; border-radius: var(--r-lg); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: var(--w-bold); font-size: var(--text-lg); flex-shrink: 0; }
.team-mini-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.team-mini-info strong { font-size: var(--text-sm); color: var(--fg); }
.team-mini-info .muted { font-size: var(--text-xs); }
.team-mini .lucide { width: 18px; height: 18px; stroke-width: 1.75; }

/* ============================================================
   Bestsellers (Onlineshop curation)
   ============================================================ */
.shop-banner { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); background: var(--brand-soft); border: 1px solid var(--green-100); border-radius: var(--r-xl); margin-bottom: var(--s-8); font-size: var(--text-sm); color: var(--brand-fg); }
.shop-banner .lucide { width: 16px; height: 16px; stroke-width: 1.75; }
.shop-banner a { font-weight: var(--w-semibold); color: var(--brand-fg); border-bottom: 1px solid currentColor; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: border-color var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard); }
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.product-cover { aspect-ratio: 1; position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.92); font-weight: var(--w-bold); letter-spacing: var(--tracking-arrow); font-size: var(--text-sm); }
.product-cover.riser { background: linear-gradient(135deg, var(--green-500) 0%, var(--green-800) 100%); }
.product-cover.limbs { background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-500) 100%); color: var(--gold-700); }
.product-cover.arrow { background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%); }
.product-cover.accessory { background: linear-gradient(135deg, var(--green-100) 0%, var(--green-300) 100%); color: var(--brand-fg); }
.product-info { padding: var(--s-5) var(--s-6) var(--s-6); }
.product-info .name { font-size: var(--text-sm); font-weight: var(--w-semibold); color: var(--fg); }
.product-info .spec { font-size: var(--text-xs); color: var(--fg-tertiary); margin-top: 2px; }
.product-info .price { margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--text-md); font-weight: var(--w-semibold); }
.product-info .price .currency { color: var(--fg-tertiary); font-weight: var(--w-medium); margin-right: 4px; }

/* ============================================================
   Coaches
   ============================================================ */
.coach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
@media (min-width: 720px) { .coach-grid { grid-template-columns: repeat(4, 1fr); } }
.coach-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); transition: border-color var(--t-base) var(--ease-standard), box-shadow var(--t-base) var(--ease-standard), transform var(--t-base) var(--ease-standard); }
.coach-card:hover { border-color: var(--brand); box-shadow: 0 10px 30px rgba(27,158,84,0.16); transform: translateY(-4px); }
.coach-card:hover .coach-photo { transform: scale(1.03); }
.coach-photo { transition: transform var(--t-base) var(--ease-standard); }
.coach-photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--neutral-700), var(--green-800)); position: relative; overflow: hidden; }
.coach-photo.c2 { background: linear-gradient(160deg, var(--green-700), var(--green-400)); }
.coach-photo.c3 { background: linear-gradient(160deg, var(--neutral-800), var(--neutral-600)); }
.coach-photo.c4 { background: linear-gradient(160deg, var(--green-800), var(--green-600)); }
.coach-photo .initial { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: var(--w-bold); font-size: 56px; color: rgba(255,255,255,0.30); letter-spacing: -0.05em; }
.coach-info .name-ja { font-weight: var(--w-semibold); font-size: var(--text-base); }
.coach-info .name-kr { font-size: var(--text-xs); color: var(--fg-tertiary); margin-top: 2px; }
.coach-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: var(--s-3); }

/* ============================================================
   Premium banner
   ============================================================ */
.premium {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 90% 50%, rgba(27,158,84,0.25), transparent 50%),
    linear-gradient(135deg, var(--neutral-900) 0%, var(--green-900) 100%);
  color: var(--neutral-0);
  border-radius: var(--r-2xl); padding: var(--s-13) var(--s-9);
}
.premium .ring-deco { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); width: 480px; height: 480px; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; }
.premium .ring-deco::before, .premium .ring-deco::after { content: ""; position: absolute; inset: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); }
.premium .ring-deco::after { inset: 110px; }
.premium-head { max-width: 620px; margin-bottom: var(--s-10); position: relative; }
.premium h2 { font-size: var(--text-4xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: var(--w-bold); margin: var(--s-4) 0 var(--s-5); }
.premium .lead { color: rgba(255,255,255,0.78); font-size: var(--text-lg); }
.premium-benefits { display: grid; grid-template-columns: 1fr; gap: var(--s-7); position: relative; }
@media (min-width: 720px) { .premium-benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.16); }
.benefit .check { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--brand); color: var(--neutral-0); border-radius: var(--r-full); margin-bottom: var(--s-2); }
.benefit .check .lucide { width: 16px; height: 16px; stroke-width: 2.2; }
.benefit h4 { font-size: var(--text-lg); font-weight: var(--w-semibold); }
.benefit p { color: rgba(255,255,255,0.72); font-size: var(--text-sm); line-height: var(--lh-base); }
.premium-cta { margin-top: var(--s-11); display: flex; gap: var(--s-4); flex-wrap: wrap; position: relative; }
.premium-cta .price-line { color: rgba(255,255,255,0.62); font-size: var(--text-xs); margin-left: var(--s-4); align-self: center; letter-spacing: var(--tracking-snug); }
.premium-cta .price-line .num { font-family: var(--font-mono); color: var(--neutral-0); font-size: var(--text-sm); font-weight: var(--w-semibold); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-6) var(--s-7); cursor: pointer; transition: border-color var(--t-base) var(--ease-standard); }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--border-strong); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.faq-q .q-text { font-weight: var(--w-semibold); font-size: var(--text-base); }
.faq-q .q-text .kr { color: var(--fg-tertiary); font-weight: var(--w-medium); margin-left: var(--s-3); font-size: var(--text-xs); }
.faq-q .chev { color: var(--fg-tertiary); transition: transform var(--t-base) var(--ease-standard); flex-shrink: 0; }
.faq-q .chev .lucide { width: 18px; height: 18px; stroke-width: 1.75; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--brand); }
.faq-a { display: none; padding-top: var(--s-4); color: var(--fg-secondary); font-size: var(--text-sm); line-height: var(--lh-loose); }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: var(--s-13) 0 var(--s-9); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-9); }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-brand .brand-wordmark { font-size: var(--text-2xl); }
.footer-brand p { color: var(--fg-tertiary); font-size: var(--text-sm); margin-top: var(--s-4); max-width: 320px; line-height: var(--lh-loose); }
.footer-col h5 { font-size: var(--text-xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; font-weight: var(--w-bold); color: var(--fg); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: var(--text-sm); color: var(--fg-secondary); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { margin-top: var(--s-11); padding-top: var(--s-7); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); color: var(--fg-tertiary); font-size: var(--text-xs); }
.footer-bottom .legal-links { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: var(--fg); }
.footer-bottom .lang-switch { background: transparent; }

/* ============================================================
   Mobile bottom nav (optional preview)
   ============================================================ */
.mobile-tabbar { display: none; }
@media (max-width: 720px) {
  .mobile-tabbar {
    display: flex; position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
    background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--r-full);
    padding: 6px; justify-content: space-around; z-index: 40;
    box-shadow: var(--shadow-3);
  }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; font-size: var(--text-2xs); color: var(--fg-tertiary); font-weight: var(--w-medium); }
  .mobile-tabbar a .lucide { width: 18px; height: 18px; stroke-width: 1.75; margin-bottom: 2px; }
  .mobile-tabbar a.active { color: var(--brand); }
  body { padding-bottom: 84px; }
}

/* ============================================================
   AUTH — Signup / Login pages
   Centered card on paper-tone background; ARICO border-first.
   ============================================================ */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: var(--s-12) var(--s-7) var(--s-13);
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-10) var(--s-9) var(--s-9);
}
@media (max-width: 720px) {
  .auth-card { padding: var(--s-8) var(--s-7) var(--s-7); border-radius: var(--r-xl); }
  .auth-page { padding: var(--s-9) var(--s-5) var(--s-13); }
}
.auth-head { text-align: center; margin-bottom: var(--s-9); }
.auth-head .eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.auth-head h1 { font-weight: var(--w-bold); font-size: var(--text-3xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); margin: 0; }
.auth-head .sub { color: var(--fg-secondary); font-size: var(--text-sm); margin-top: var(--s-3); }

.form { display: flex; flex-direction: column; gap: var(--s-5); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 480px) { .form-row.row-2 { grid-template-columns: 1fr; } }
.form-label { font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--fg); letter-spacing: var(--tracking-snug); }
.form-label .req { color: var(--target-500); margin-left: 2px; font-weight: var(--w-bold); }
.form-hint { font-size: var(--text-2xs); color: var(--fg-tertiary); margin-top: 2px; }

.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  font: var(--w-regular) var(--text-sm) var(--font-sans);
  color: var(--fg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color var(--t-fast) var(--ease-standard), box-shadow var(--t-fast) var(--ease-standard);
}
.form-control::placeholder { color: var(--fg-quaternary); }
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }
.form-control:disabled { background: var(--surface-hover); color: var(--fg-disabled); cursor: not-allowed; }
.form-control.has-error { border-color: var(--target-500); }
.form-error { color: var(--target-500); font-size: var(--text-2xs); margin-top: 2px; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 36px; }
.input-group .lead-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-tertiary); pointer-events: none; }
.input-group .lead-icon .lucide { width: 16px; height: 16px; stroke-width: 1.75; }
.input-group .trail-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; padding: 6px; color: var(--fg-tertiary); border-radius: var(--r-sm); cursor: pointer; }
.input-group .trail-btn:hover { color: var(--fg); background: var(--surface-hover); }
.input-group .trail-btn .lucide { width: 16px; height: 16px; stroke-width: 1.75; }

/* 페이지 이동 시 FocusOnNavigate 가 h1 에 주는 프로그램적/마우스 포커스의 검정 외곽선 제거 — 키보드 포커스 링은 :focus-visible 로 유지(접근성). */
:focus:not(:focus-visible) { outline: none; }

.form-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; user-select: none; }
.form-check input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-width: 18px; margin-top: 1px; border: 1.5px solid var(--border-strong); border-radius: 4px; background: var(--surface); cursor: pointer; transition: border-color var(--t-fast) var(--ease-standard), background var(--t-fast) var(--ease-standard); position: relative; }
.form-check input[type=checkbox]:hover { border-color: var(--brand); }
.form-check input[type=checkbox]:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.form-check input[type=checkbox]:checked { background: var(--brand); border-color: var(--brand); }
.form-check input[type=checkbox]:checked::after { content: ""; position: absolute; left: 50%; top: 45%; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.form-check .label { font-size: var(--text-sm); color: var(--fg); line-height: var(--lh-snug); }
.form-check .label a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form-check .label .opt { color: var(--fg-tertiary); margin-left: 4px; font-size: var(--text-xs); }

.btn-block { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 20px; font-size: var(--text-base); font-weight: var(--w-semibold); border: 0; border-radius: var(--tds-radius-pill); background: var(--tds-primary); color: var(--tds-white); cursor: pointer; transition: background var(--t-fast) var(--ease-standard), transform 80ms var(--ease-standard); }
.btn-block:hover { background: var(--tds-primary-hover); }
.btn-block:active { background: var(--tds-primary-active); transform: scale(0.985); }
.btn-block:disabled { background: var(--surface-hover); color: var(--fg-disabled); cursor: not-allowed; transform: none; }
.btn-block .lucide { width: 16px; height: 16px; stroke-width: 2; }

.auth-divider { display: flex; align-items: center; gap: var(--s-4); color: var(--fg-tertiary); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin: var(--s-6) 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.social-buttons { display: flex; flex-direction: column; gap: var(--s-3); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--fg); font-weight: var(--w-medium); font-size: var(--text-sm); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); position: relative; }
.social-btn:not(:disabled):hover { border-color: var(--border-strong); background: var(--surface-hover); }
.social-btn:disabled { color: var(--fg-tertiary); cursor: not-allowed; }
.social-btn .phase-badge { position: absolute; right: var(--s-5); top: 50%; transform: translateY(-50%); font-size: var(--text-2xs); letter-spacing: var(--tracking-wide); font-weight: var(--w-semibold); color: var(--fg-tertiary); background: var(--surface-hover); padding: 2px 8px; border-radius: var(--r-full); }
.social-btn .brand-mark { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: var(--w-bold); font-size: 13px; border-radius: 3px; }
.social-btn .brand-mark.google { background: white; border: 1px solid var(--border); color: #4285f4; }
.social-btn .brand-mark.line { background: #06c755; color: white; }
.social-btn .brand-mark.kakao { background: #fee500; color: #181600; }
.social-btn .brand-mark.apple { background: #000000; color: white; font-size: 0; position: relative; }
.social-btn .brand-mark.apple::before { content: ""; display: block; position: absolute; inset: 3px; background: white; clip-path: polygon(50% 4%, 62% 12%, 72% 12%, 86% 24%, 92% 42%, 88% 64%, 78% 84%, 64% 96%, 50% 92%, 36% 96%, 22% 84%, 12% 64%, 8% 42%, 14% 24%, 28% 12%, 38% 12%); }

.auth-foot { text-align: center; margin-top: var(--s-8); font-size: var(--text-sm); color: var(--fg-secondary); }
.auth-foot a { color: var(--brand); font-weight: var(--w-semibold); margin-left: 4px; }
.auth-foot a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }

.login-extra { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }
.login-extra .forgot { color: var(--brand); font-size: var(--text-xs); font-weight: var(--w-semibold); }
.login-extra .forgot:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   EVENTS LIST — filter chips + search + empty state
   ============================================================ */
.events-filter {
  display: flex; gap: var(--s-5); flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  padding: var(--s-6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl);
}
.filter-chips { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-full);
  font-size: var(--text-sm); font-weight: var(--w-medium);
  color: var(--fg); cursor: pointer;
  transition: background var(--t-fast) var(--ease-standard), border-color var(--t-fast) var(--ease-standard);
}
.chip:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.chip.active { background: var(--neutral-900); color: var(--neutral-0); border-color: var(--neutral-900); }
.chip.active .chip-count { color: rgba(255,255,255,0.7); }
.chip-count { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--fg-tertiary); font-weight: var(--w-regular); }
.filter-search { flex: 0 0 auto; }

.results-foot {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  text-align: center; font-size: var(--text-xs);
}

.empty-state {
  background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl); padding: var(--s-12) var(--s-7);
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: var(--s-3);
  margin-top: var(--s-7);
}
.empty-state .empty-icon { width: 48px; height: 48px; stroke-width: 1.25; color: var(--fg-tertiary); margin-bottom: var(--s-3); }
.empty-state h3 { font-size: var(--text-xl); font-weight: var(--w-semibold); color: var(--fg); }
.empty-state p { color: var(--fg-secondary); margin-bottom: var(--s-3); }

/* ============================================================
   EVENT DETAIL — hero + body + booking aside
   ============================================================ */
.event-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--green-800) 0%, var(--green-500) 100%);
  color: var(--neutral-0);
  padding: var(--s-10) 0 var(--s-12);
}
.event-hero.cup { background: linear-gradient(160deg, var(--target-700) 0%, var(--target-500) 100%); }
.event-hero.seminar { background: linear-gradient(160deg, var(--green-700) 0%, var(--green-400) 100%); }
.event-hero.practice { background: linear-gradient(160deg, var(--neutral-900) 0%, var(--green-700) 100%); }
.event-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); color: rgba(255,255,255,0.7);
  margin-bottom: var(--s-7);
  letter-spacing: var(--tracking-wide);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--neutral-0); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb .current { color: var(--neutral-0); font-weight: var(--w-semibold); }

.event-hero-title {
  font-weight: var(--w-bold);
  font-size: clamp(28px, 4vw, var(--text-5xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: var(--s-5) 0 var(--s-3);
  max-width: 820px;
}
.event-hero-sub { color: rgba(255,255,255,0.78); font-size: var(--text-lg); max-width: 620px; }

.event-meta-grid {
  margin-top: var(--s-9);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6);
  padding-top: var(--s-7); border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 820px;
}
@media (min-width: 720px) { .event-meta-grid { grid-template-columns: repeat(4, 1fr); } }
.meta-cell { display: flex; flex-direction: column; gap: 4px; }
.meta-cell .meta-label { font-size: var(--text-xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: var(--w-semibold); }
.meta-cell .meta-value { font-size: var(--text-lg); font-weight: var(--w-semibold); color: var(--neutral-0); line-height: var(--lh-snug); }
.meta-cell .meta-value.mono { font-family: var(--font-mono); }
.meta-cell .meta-sub { font-size: var(--text-xs); color: rgba(255,255,255,0.6); }

.ring-art-lg {
  position: absolute; right: -120px; top: 40px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.10);
  pointer-events: none;
}
.ring-art-lg::before, .ring-art-lg::after {
  content: ""; position: absolute; inset: 50px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
}
.ring-art-lg::after { inset: 110px; }

/* Body layout */
.event-body { display: grid; grid-template-columns: 1fr; gap: var(--s-10); }
@media (min-width: 1024px) {
  .event-body { grid-template-columns: 1fr 360px; gap: var(--s-11); align-items: start; }
}

.bullet-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.bullet-list li {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.bullet-list li .lucide { width: 18px; height: 18px; stroke-width: 1.75; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.bullet-list li span { font-size: var(--text-sm); color: var(--fg); line-height: var(--lh-base); }

.info-banner {
  display: flex; align-items: flex-start; gap: var(--s-5);
  padding: var(--s-6) var(--s-7);
  background: var(--brand-soft); border: 1px solid var(--green-100);
  border-radius: var(--r-xl);
}
.info-banner > .lucide { width: 22px; height: 22px; stroke-width: 1.75; color: var(--brand-fg); flex-shrink: 0; margin-top: 2px; }
.info-banner strong { font-size: var(--text-base); color: var(--brand-fg); display: block; margin-bottom: 4px; font-weight: var(--w-semibold); }
.info-banner p { font-size: var(--text-sm); color: var(--brand-fg); margin: 0; }
.info-banner p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.event-aside { position: sticky; top: 96px; }
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--s-7);
}
.booking-summary { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-7); padding-bottom: var(--s-6); border-bottom: 1px dashed var(--border); }
.booking-summary .row { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--fg-secondary); }
.booking-summary .row strong { color: var(--fg); font-size: var(--text-md); font-weight: var(--w-semibold); }

/* ============================================================
   MYPAGE — sidebar + main grid
   ============================================================ */
.mypage-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-9);
}
@media (min-width: 1024px) {
  .mypage-grid { grid-template-columns: 260px 1fr; gap: var(--s-11); align-items: start; }
}

.mypage-side {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-7) var(--s-6);
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: var(--s-6);
}
.user-card { display: flex; gap: var(--s-4); align-items: center; padding-bottom: var(--s-6); border-bottom: 1px solid var(--border); }
.user-card .avatar { width: 48px; height: 48px; border-radius: var(--r-full); background: linear-gradient(160deg, var(--green-700), var(--green-500)); color: white; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--text-xl); }
.user-card .ident { display: flex; flex-direction: column; gap: 2px; }
.user-card .ident strong { font-size: var(--text-base); color: var(--fg); }
.user-card .ident .muted { font-size: var(--text-xs); }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--fg); }
.side-nav a:hover { background: var(--surface-hover); color: var(--brand); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand-fg); }
.side-nav a.muted { color: var(--fg-tertiary); }
.side-nav a.muted:hover { color: var(--fg); }
.side-nav a .lucide { width: 16px; height: 16px; stroke-width: 1.75; flex-shrink: 0; }
.side-nav .divider { height: 1px; background: var(--border); margin: var(--s-3) 0; }
.side-nav .side-logout { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: transparent; border-radius: var(--r-md); font-size: var(--text-sm); font-weight: var(--w-medium); font-family: inherit; color: var(--fg-tertiary); cursor: pointer; }
.side-nav .side-logout:hover { background: var(--surface-hover); color: var(--fg); }
.side-nav .side-logout .lucide { width: 16px; height: 16px; stroke-width: 1.75; flex-shrink: 0; }
.side-nav .side-tv { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0; padding: 10px 12px; border: 0; background: var(--brand); border-radius: var(--r-md); font-size: var(--text-sm); font-weight: var(--w-bold); font-family: inherit; color: #fff; cursor: pointer; text-align: left; box-shadow: 0 1px 3px rgba(25,66,49,.25); }
.side-nav .side-tv:hover { background: var(--brand-hover); }
.side-nav .side-tv .lucide { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; color: #fff; }
/* 관리자 콘솔 바로가기 — 관리자 계정에만 렌더(MypageSidebar), 브랜드 그린으로 구분 */
.side-nav a.side-admin { color: var(--green-700); font-weight: var(--w-semibold); }
.side-nav a.side-admin:hover { background: var(--surface-hover); color: var(--green-600); }
[data-theme="dark"] .side-nav a.side-admin { color: var(--green-300); }
[data-theme="dark"] .side-nav a.side-admin:hover { color: var(--green-200); }
/* 테스트 등급 전환 스위처 (TestTierEmails 한정 — 실서비스 전 제거) */
.tier-switch { margin: var(--s-4) 0 var(--s-2); padding: var(--s-3) var(--s-4); border: 1px dashed var(--border); border-radius: var(--r-md); background: var(--surface-hover); }
.tier-switch-label { display: block; font-size: 11px; font-weight: var(--w-semibold); color: var(--fg-tertiary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.tier-switch-btns { display: flex; gap: 4px; }
.tier-switch-btn { flex: 1; padding: 5px 0; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); font-size: 12px; font-weight: var(--w-medium); font-family: inherit; color: var(--fg); cursor: pointer; }
.tier-switch-btn:hover { border-color: var(--brand); color: var(--brand); }
.tier-switch-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 등급별 회원 카드 색 — Free 중립 / Premium 골드 / VIP 그린 */
.user-card--free, .user-card--premium, .user-card--vip { border-radius: var(--r-lg); padding: var(--s-5); border: 1px solid var(--border); }
.user-card--free { background: var(--surface-hover); }
.user-card--premium { background: var(--gold-100); border-color: var(--gold-300); }
.user-card--premium .pill { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.user-card--vip { background: var(--brand-soft); border-color: var(--green-200); }
.user-card--vip .pill { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 관리자 관리 페이지 */
.adm-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); background: var(--surface); }
.adm-policy { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.adm-policy li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--text-sm); color: var(--fg-secondary); }
.adm-policy li .lucide { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.adm-policy li strong { color: var(--fg); }

/* 모바일/태블릿(<1024px): 사이드바 메뉴를 가로 스크롤 탭으로 — 세로 적층 방지(본문이 바로 보이게) */
@media (max-width: 1023px) {
  .mypage-grid { min-width: 0; }
  .mypage-side { position: static; padding: var(--s-5); gap: var(--s-4); min-width: 0; }
  .side-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: var(--s-1); scrollbar-width: none; min-width: 0; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a,
  .side-nav .side-logout,
  .side-nav .side-tv { white-space: nowrap; flex-shrink: 0; width: auto; margin: 0; }
  .side-nav .divider { display: none; }
}

.mypage-main { min-width: 0; }

/* ── 로그인 후 앱셸 (AppShellLayout) — 라이트 사이드바 + 얇은 상단바 ── */
.app-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: var(--bg); }
@media (min-width: 1024px) { .app-shell { grid-template-columns: 248px 1fr; } }
.app-shell .mypage-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; margin: 0; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: var(--surface); }
.app-body { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 56px; padding: 0 var(--s-8); border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.app-topbar-title { font-weight: var(--w-semibold); font-size: var(--text-base); color: var(--fg); }
.app-topbar-actions { display: flex; align-items: center; gap: var(--s-6); }
.app-lang { display: inline-flex; gap: 2px; }
.app-lang a { font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--fg-tertiary); padding: 4px 7px; border-radius: var(--r-sm); }
.app-lang a:hover { background: var(--surface-hover); color: var(--fg); }
.app-lang a.active { background: var(--brand-soft); color: var(--brand-fg); }
.app-topbar-site { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--fg-secondary); }
.app-topbar-site:hover { color: var(--brand); }
.app-topbar-site .lucide { width: 15px; height: 15px; }
.app-main { padding: var(--s-9) var(--s-9) var(--s-12); min-width: 0; }
@media (max-width: 1023px) {
  .app-shell .mypage-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .app-main { padding: var(--s-7) var(--s-5) var(--s-11); }
}

.mypage-banner {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px var(--s-5); background: var(--brand-soft);
  border: 1px solid var(--green-100); border-radius: var(--r-lg);
  color: var(--brand-fg); font-size: var(--text-xs);
  margin-bottom: var(--s-9);
}
.mypage-banner .lucide { width: 14px; height: 14px; stroke-width: 1.75; flex-shrink: 0; }

.page-head { margin-bottom: var(--s-9); }
.page-head .eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.page-head h1 { margin-bottom: var(--s-3); }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card { padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: var(--text-xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; color: var(--fg-tertiary); font-weight: var(--w-semibold); }
.stat-num { font-family: var(--font-mono); font-size: var(--text-4xl); font-weight: var(--w-semibold); color: var(--fg); line-height: 1; margin-top: 6px; }
.stat-sub { font-size: var(--text-xs); margin-top: 2px; }

/* ── 통합 마이페이지 허브 카드 ── */
.myhub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.myhub-card { display: flex; flex-direction: column; gap: 2px; padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s, box-shadow .15s; }
a.myhub-card:hover, button.myhub-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.myhub-card.is-pending { background: var(--bg-sunken); }
.myhub-ic { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: var(--s-3); }
.myhub-ic .lucide { width: 19px; height: 19px; }
.myhub-ic.is-green { background: var(--green-600, #1B9E54); }
.myhub-ic.is-blue { background: var(--blue-500, #378ADD); }
.myhub-ic.is-grad { background: linear-gradient(135deg, #1B9E54, #378ADD); }
.myhub-title { font-size: var(--text-md); font-weight: var(--w-semibold); color: var(--fg); }
.myhub-desc { font-size: var(--text-sm); color: var(--fg-secondary); }
.myhub-go { margin-top: var(--s-3); display: inline-flex; align-items: center; gap: 3px; font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--brand-fg, var(--brand)); }
.myhub-go .lucide { width: 14px; height: 14px; }
.myhub-pill { margin-top: var(--s-3); display: inline-block; width: fit-content; font-size: var(--text-xs); color: var(--fg-tertiary); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full, 999px); padding: 2px 9px; }

/* ── 프로필 편집 ── */
.profile-form { max-width: 680px; }
.profile-photo-row { display: flex; align-items: center; gap: 16px; padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); margin-bottom: var(--s-6); }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1B9E54, #378ADD); color: #fff; font-size: var(--text-2xl); font-weight: var(--w-bold); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-info { display: flex; flex-direction: column; gap: 2px; }
.profile-photo-info strong { font-size: var(--text-md); }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } }

/* Premium mini banner */
.premium-mini {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--green-900) 100%);
  color: var(--neutral-0);
  border-radius: var(--r-2xl);
  padding: var(--s-8) var(--s-9);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-7);
  flex-wrap: wrap;
}
.premium-mini .ring-deco { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 280px; height: 280px; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; pointer-events: none; }
.premium-mini .ring-deco::before, .premium-mini .ring-deco::after { content: ""; position: absolute; inset: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); }
.premium-mini .ring-deco::after { inset: 80px; }
.premium-mini .content { position: relative; max-width: 540px; }
.premium-mini .content .eyebrow.on-dark { color: var(--green-300); display: inline-block; margin-bottom: var(--s-3); }
.premium-mini h3 { font-size: var(--text-2xl); font-weight: var(--w-bold); margin-bottom: 6px; letter-spacing: var(--tracking-tight); }
.premium-mini p { color: rgba(255,255,255,0.78); font-size: var(--text-sm); margin: 0; }

/* Activity list */
.activity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.activity-list li { display: flex; align-items: flex-start; gap: var(--s-4); padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.activity-list li .lucide { width: 18px; height: 18px; stroke-width: 1.75; margin-top: 2px; flex-shrink: 0; }
.activity-list li strong { display: block; font-size: var(--text-sm); color: var(--fg); margin-bottom: 2px; }
.activity-list li .muted { font-size: var(--text-xs); }

/* Booking list */
.booking-list { display: flex; flex-direction: column; gap: var(--s-4); }
.booking-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-6);
  padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  align-items: center;
}
@media (max-width: 720px) {
  .booking-row { grid-template-columns: 1fr; gap: var(--s-4); }
  .booking-row .booking-actions { flex-direction: row; }
}
.booking-date { display: flex; flex-direction: column; align-items: center; padding: var(--s-4) var(--s-5); background: var(--bg-sunken); border-radius: var(--r-md); min-width: 64px; }
.booking-date .month { font-size: var(--text-2xs); letter-spacing: var(--tracking-arrow); color: var(--fg-tertiary); font-weight: var(--w-semibold); }
.booking-date .day { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--w-bold); color: var(--fg); line-height: 1; margin-top: 2px; }
.booking-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.booking-info h4 { font-size: var(--text-base); font-weight: var(--w-semibold); color: var(--fg); }
.booking-info .meta { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--text-xs); color: var(--fg-secondary); align-items: center; }
.booking-info .meta .lucide { width: 12px; height: 12px; stroke-width: 1.75; margin-right: 4px; }
.booking-info .meta span { display: inline-flex; align-items: center; }
.booking-actions { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-end; }
.booking-row--cancelled { opacity: 0.62; }
.booking-row--cancelled .booking-info h4 { text-decoration: line-through; text-decoration-color: var(--fg-secondary); }
.booking-demo-tag { font-size: var(--text-xs); padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; align-self: flex-end; }

/* Plan card (subscription page) */
.plan-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: var(--s-7) var(--s-8); }
.plan-card .plan-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); }
.plan-card .plan-head h3 { font-size: var(--text-2xl); font-weight: var(--w-bold); color: var(--fg); }

/* Notification table */
.notif-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.notif-head, .notif-row { display: grid; grid-template-columns: 1fr 80px 80px 80px; gap: var(--s-4); padding: var(--s-5) var(--s-6); align-items: center; }
.notif-head { background: var(--bg-sunken); font-size: var(--text-xs); font-weight: var(--w-semibold); letter-spacing: var(--tracking-arrow); text-transform: uppercase; }
.notif-head .muted { text-align: center; }
.notif-row { border-top: 1px solid var(--border); }
.notif-row strong { font-size: var(--text-sm); color: var(--fg); font-weight: var(--w-semibold); }
.notif-row p { margin: 2px 0 0 0; }
.notif-row .form-check { justify-content: center; }
@media (max-width: 720px) {
  .notif-head { display: none; }
  .notif-row { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-5); }
  .notif-row .form-check::before { content: "이메일 / 푸시 / SMS"; font-size: var(--text-xs); color: var(--fg-tertiary); margin-right: 6px; }
}

/* ============================================================
   COACH DETAIL
   ============================================================ */
.coach-detail {
  display: grid; grid-template-columns: 1fr; gap: var(--s-9);
  align-items: flex-start;
}
@media (min-width: 720px) {
  .coach-detail { grid-template-columns: 280px 1fr; gap: var(--s-11); }
}
.coach-detail-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-2xl);
  background: linear-gradient(160deg, var(--green-800), var(--green-500));
  position: relative; overflow: hidden;
}
.coach-detail-photo .initial-lg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: 140px; color: rgba(255,255,255,0.30); letter-spacing: -0.06em;
}
.coach-detail-info { min-width: 0; }
.coach-stats {
  display: flex; gap: var(--s-9); flex-wrap: wrap;
  margin-top: var(--s-8); padding-top: var(--s-7);
  border-top: 1px solid var(--border);
}
.coach-stats > div { display: flex; flex-direction: column; gap: 2px; }
.coach-stats > div .muted { font-size: var(--text-xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; font-weight: var(--w-semibold); }
.coach-stats > div .mono { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--w-semibold); color: var(--fg); }
.coach-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-8); }
.coach-bio { font-size: var(--text-base); color: var(--fg-secondary); line-height: var(--lh-loose, 1.8); white-space: pre-line; max-width: 760px; }
/* 코치 소개 전문 (Notion 본문 렌더) */
.coach-profile { max-width: 820px; color: var(--fg-secondary); font-size: var(--text-base); line-height: var(--lh-loose, 1.8); }
.coach-profile > p { margin: 0 0 var(--s-4); }
.coach-profile .cp-h { font-size: var(--text-lg); font-weight: var(--w-bold); color: var(--brand); margin: var(--s-8) 0 var(--s-4); letter-spacing: var(--tracking-snug); }
.coach-profile .cp-h:first-child { margin-top: 0; }
.coach-profile .cp-ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.coach-profile .cp-ul li { position: relative; padding-left: 18px; }
.coach-profile .cp-ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ============================================================
   GALLERY ALBUM — photo grid placeholders
   ============================================================ */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(6, 1fr); } }
.photo-tile { aspect-ratio: 1; border-radius: var(--r-md); position: relative; overflow: hidden; }

/* ============================================================
   PRICING — Premium plan cards
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); max-width: 760px; margin: 0 auto; }
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl); padding: var(--s-9) var(--s-8);
}
.price-card .eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.price-card .price-num { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s-4); }
.price-card .price-num .num { font-size: var(--text-5xl); font-weight: var(--w-bold); color: var(--fg); letter-spacing: -0.02em; line-height: 1; }
.price-card .price-num .cycle { font-size: var(--text-md); color: var(--fg-tertiary); }

.price-card--featured {
  border: 2px solid var(--brand);
  box-shadow: 0 14px 30px -12px rgba(27,158,84,0.30);
}

/* (Q1) 플랜 배지 = 등급색 글래스. 카드 안쪽 우상단에 배치(카드 밖으로 안 넘침) */
.best-pill {
  position: absolute; top: var(--s-5); right: var(--s-5);
  font-size: var(--text-2xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase;
  font-weight: var(--w-bold); padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(200,155,26,0.18); -webkit-backdrop-filter: blur(8px) saturate(1.5); backdrop-filter: blur(8px) saturate(1.5);
  border: 1px solid rgba(200,155,26,0.5); color: #7a5e10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 14px rgba(40,50,45,0.16);
}
.best-pill--current { background: rgba(27,158,84,0.16); border-color: rgba(27,158,84,0.5); color: #275c46; }
.price-card--current { border-color: var(--brand) !important; box-shadow: 0 0 0 2px var(--brand-soft); }

/* ============================================================
   MEMBERSHIP (/premium) — 월간·연간 토글 + 3 티어
   ============================================================ */
.billing-toggle-wrap { display: flex; justify-content: center; margin-bottom: var(--s-9); }
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); }
.bt-opt { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 9px 20px; border-radius: var(--r-full); font-size: var(--text-sm); font-weight: var(--w-semibold); color: var(--fg-secondary); cursor: pointer; transition: background var(--t-fast) var(--ease-standard), color var(--t-fast) var(--ease-standard); }
.bt-opt:hover { color: var(--fg); }
.bt-opt.active { background: var(--brand); color: var(--fg-on-brand); }
.bt-save { font-size: 10px; font-weight: var(--w-bold); padding: 2px 7px; border-radius: var(--r-full); background: var(--gold-500); color: var(--neutral-900); letter-spacing: 0; }

/* 3 티어 그리드 */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); max-width: 1080px; margin: 0 auto;
  padding: var(--s-8) var(--s-6); border-radius: var(--r-2xl);
  background: linear-gradient(135deg, rgba(27,158,84,0.10), rgba(200,155,26,0.07) 48%, rgba(122,62,160,0.10)); }
@media (min-width: 920px) { .tier-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
/* (Q1) 구독 카드 = 프로스트 글래스 패널 + 글래스 테두리 */
.tier-grid .price-card { display: flex; flex-direction: column;
  background: rgba(255,255,255,0.55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 14px 38px -18px rgba(40,50,45,0.45), inset 0 1px 0 rgba(255,255,255,0.6); }
.tier-grid .price-card--featured { border-color: rgba(27,158,84,0.55); }
.tier-grid .price-card--vip { border: 1px solid rgba(122,62,160,0.5); background: rgba(255,255,255,0.55); animation: none; }
.plan-tagline { font-size: var(--text-sm); color: var(--fg-tertiary); margin-top: 4px; }
.plan-sub { margin-top: var(--s-3); font-size: var(--text-sm); color: var(--fg-tertiary); }
.tier-grid .btn-block { margin-top: var(--s-7); text-decoration: none; }
.plan-hint { margin-top: var(--s-3); text-align: center; font-size: var(--text-xs); color: var(--fg-tertiary); }
.plan-hint.on-dark { color: rgba(255,255,255,0.6); }
.plan-features { list-style: none; padding: var(--s-6) 0 0; margin: var(--s-6) 0 0; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: var(--s-3); }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-base); }
.plan-features li .lucide { width: 16px; height: 16px; stroke-width: 2.5; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
/* VIP 무지개 링 + 버튼 + 뱃지 (멤버십 카드 — /premium · 마이페이지 구독) */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@property --hue { syntax: '<number>'; initial-value: 0; inherits: false; }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes shift-hue { to { --hue: 360; } }
@keyframes slide-bg { to { background-position: 300% 0; } }
.price-card--vip {
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--angle),
      hsl(var(--hue),95%,62%), hsl(calc(var(--hue) + 60),95%,60%), hsl(calc(var(--hue) + 120),90%,62%),
      hsl(calc(var(--hue) + 180),95%,60%), hsl(calc(var(--hue) + 240),95%,62%), hsl(calc(var(--hue) + 300),90%,60%),
      hsl(var(--hue),95%,62%)) border-box;
  animation: spin-angle 3s linear infinite, shift-hue 7s linear infinite;
}
.best-pill--vip { background: rgba(122,62,160,0.15); border-color: rgba(122,62,160,0.5); color: #67248f; animation: none; }
.btn-block--rainbow { background: linear-gradient(90deg,#ff5f6d,#ffc371,#5ee7df,#b490ca,#ff8a5f,#ff5f6d); background-size: 300% 100%; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.38); border: 0; animation: slide-bg 4s linear infinite; }
.btn-block--rainbow:hover { filter: brightness(1.06) saturate(1.12); }
.btn-block--ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-block--ghost:hover { background: var(--surface-hover); }

/* ============================================================
   디지털 회원증 — 플립 카드 + 모달 (마이페이지 사이드바)
   순수 CSS 체크박스 토글: 정적 SSR / InteractiveServer 모두 동작.
   바탕은 다크 + 등급 색 라이트 스윕(Free 실버 · Premium 골드 · VIP 무지개).
   ============================================================ */
.mcv-cb { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
/* 버튼 — membership-card.html 의 Annual 효과 + 등급별 색상 (Free 실버 · Premium 골드 · VIP 무지개) */
.mcv-btn { position: relative; width: 100%; margin-top: var(--s-5); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 11px; border: 0; border-radius: var(--r-full); background: transparent;
  color: #1b1b1b; font-size: var(--text-sm); font-weight: var(--w-bold); cursor: pointer; z-index: 1;
  box-shadow: 0 2px 12px -5px rgba(0,0,0,0.22);
  transition: transform var(--t-fast) var(--ease-standard); }
.mcv-btn::before, .mcv-btn::after { content: ''; position: absolute; border-radius: var(--r-full); z-index: -1; }
.mcv-btn::before { inset: 0; filter: blur(1px) saturate(1.4); animation: spin-angle 3s linear infinite; }
.mcv-btn::after { inset: 1.5px; filter: blur(0.5px); animation: spin-angle 3s linear infinite reverse; }
.mcv-btn:hover { transform: translateY(-1px); }
.mcv-btn .lucide { position: relative; z-index: 2; width: 16px; height: 16px; stroke-width: 2.2; color: #1b1b1b; }

/* VIP — 파스텔 무지개 (회전 + 휴 시프트) */
.mcv-btn.tier-vip::before { animation: spin-angle 3s linear infinite, shift-hue 6s linear infinite;
  background: conic-gradient(from var(--angle),
    hsl(calc(var(--hue)), 100%, 90%), hsl(calc(var(--hue) + 60), 100%, 85%),
    hsl(calc(var(--hue) + 120), 90%, 88%), hsl(calc(var(--hue) + 180), 100%, 86%),
    hsl(calc(var(--hue) + 240), 100%, 88%), hsl(calc(var(--hue) + 300), 90%, 85%),
    hsl(calc(var(--hue)), 100%, 90%)); }
.mcv-btn.tier-vip::after { animation: spin-angle 3s linear infinite reverse, shift-hue 6s linear infinite;
  background: conic-gradient(from calc(var(--angle) + 180deg),
    hsl(calc(var(--hue) + 30), 100%, 92%), hsl(calc(var(--hue) + 90), 100%, 88%),
    hsl(calc(var(--hue) + 150), 90%, 90%), hsl(calc(var(--hue) + 210), 100%, 88%),
    hsl(calc(var(--hue) + 270), 100%, 90%), hsl(calc(var(--hue) + 330), 90%, 87%),
    hsl(calc(var(--hue) + 30), 100%, 92%)); }

/* Premium — 골드/샴페인 (회전 광택, 휴 시프트 없음) */
.mcv-btn.tier-premium::before { background: conic-gradient(from var(--angle),
    #fff3cf, #e7be63, #fff8e1, #d9a73f, #f3d588, #e7be63, #fff3cf); }
.mcv-btn.tier-premium::after { background: conic-gradient(from calc(var(--angle) + 180deg),
    #fff8e1, #f0d28a, #fff3cf, #e4c06a, #fffaf0, #ecca7a, #fff8e1); }

/* Free — 실버/플래티넘 (회전 광택, 휴 시프트 없음) */
.mcv-btn.tier-free::before { background: conic-gradient(from var(--angle),
    #f4f7f9, #c2ccd4, #dde4ea, #aab5be, #eef2f5, #c2ccd4, #f4f7f9); }
.mcv-btn.tier-free::after { background: conic-gradient(from calc(var(--angle) + 180deg),
    #ffffff, #d2dae0, #eef2f5, #bcc6cf, #fafcfd, #cdd6dd, #ffffff); }

.mcv-modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.mcv-open:checked ~ .mcv-modal { display: flex; }
.mcv-backdrop { position: absolute; inset: 0; background: rgba(8,10,9,0.64); backdrop-filter: blur(6px); cursor: pointer; animation: mcv-fade .25s ease; }
@keyframes mcv-fade { from { opacity: 0; } to { opacity: 1; } }
.mcv-stage { position: relative; animation: mcv-pop .3s cubic-bezier(0.16,1,0.3,1); }
@keyframes mcv-pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.mcv-close { position: absolute; top: -42px; right: 0; width: 34px; height: 34px; border-radius: var(--r-full); background: rgba(255,255,255,0.14); color: #fff; font-size: 20px; line-height: 34px; text-align: center; cursor: pointer; }
.mcv-close:hover { background: rgba(255,255,255,0.26); }

.mcv-wrap { perspective: 1600px; width: 340px; height: 500px; }
/* 지갑 추가 버튼 (Apple 스타일 검정) — 카드 아래 */
.mcv-wallet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 340px; margin: var(--s-5) auto 0; padding: 12px 16px; border-radius: var(--r-lg); background: #000; color: #fff; font-weight: var(--w-semibold); font-size: var(--text-sm); }
.mcv-wallet-btn:hover { background: #1a1a1a; }
.mcv-wallet-btn .lucide { width: 18px; height: 18px; }
.mcv-wallet-btn--google { margin-top: var(--s-2); }
@media (max-width: 420px) { .mcv-wallet-btn { width: 300px; } }
.mcv-card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(0.4,0,0.2,1); cursor: pointer; display: block; }
.mcv-flip:checked ~ .mcv-wrap .mcv-card { transform: rotateY(180deg); }
.mcv-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8);
  display: flex; flex-direction: column; padding: 22px; color: #fff;
  background: radial-gradient(circle at 78% 12%, var(--mcv-glow), transparent 38%), radial-gradient(circle at 15% 95%, var(--mcv-glow2), transparent 36%), var(--mcv-base); }
.mcv-back { transform: rotateY(180deg); }
/* 카드 광택 — 버튼과 똑같은 회전 코닉(풀 링)을 카드 표면에. 흰 글씨 위해 살짝만 톤다운(opacity·screen) + 버튼보다 느리게(8초) */
.mcv-face::before { content: ''; position: absolute; inset: -8%; z-index: 1; pointer-events: none;
  mix-blend-mode: screen; opacity: 0.42; filter: blur(4px); animation: spin-angle 8s linear infinite; }
.mcv-face::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3; background: var(--mcv-line); }
.mcv-face > * { position: relative; z-index: 2; }
@keyframes mcv-sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes mcv-card-sweep { 0% { background-position: 210% 0; } 100% { background-position: -60% 0; } }

.mcv-card.tier-free { --mcv-base:#191b1f; --mcv-glow:rgba(200,210,225,0.16); --mcv-glow2:rgba(200,210,225,0.08); --mcv-sweep:rgba(214,222,232,0.55); --mcv-sweep-soft:rgba(214,222,232,0.12); --mcv-line:linear-gradient(90deg,#9aa3ad,#d6dee8,#9aa3ad); --mcv-accent:#d6dee8; }
.mcv-card.tier-premium { --mcv-base:#1b1813; --mcv-glow:rgba(241,200,75,0.20); --mcv-glow2:rgba(200,155,26,0.10); --mcv-sweep:rgba(245,210,110,0.6); --mcv-sweep-soft:rgba(245,210,110,0.12); --mcv-line:linear-gradient(90deg,#c89b1a,#f5d97a,#c89b1a); --mcv-accent:#f1c84b; }
.mcv-card.tier-vip { --mcv-base:#161620; --mcv-glow:rgba(180,144,202,0.18); --mcv-glow2:rgba(94,231,223,0.12); --mcv-sweep:rgba(255,255,255,0.5); --mcv-sweep-soft:rgba(255,255,255,0.1); --mcv-line:linear-gradient(90deg,#ff5f6d,#ffc371,#5ee7df,#b490ca,#ff5f6d); --mcv-accent:#c9b8ff; }
/* 카드 광택 등급색 — 버튼과 동일한 풀 코닉 링이 회전. Free 실버 · Premium 골드 · VIP 무지개(+휴시프트) */
.mcv-card.tier-free .mcv-face::before { background: conic-gradient(from var(--angle),
  #f4f7f9, #c2ccd4, #dde4ea, #aab5be, #eef2f5, #c2ccd4, #f4f7f9); }
.mcv-card.tier-premium .mcv-face::before { background: conic-gradient(from var(--angle),
  #fff3cf, #e7be63, #fff8e1, #d9a73f, #f3d588, #e7be63, #fff3cf); }
.mcv-card.tier-vip .mcv-face::before { animation: spin-angle 8s linear infinite, shift-hue 10s linear infinite;
  background: conic-gradient(from var(--angle),
  hsl(calc(var(--hue)), 100%, 90%), hsl(calc(var(--hue) + 60), 100%, 85%),
  hsl(calc(var(--hue) + 120), 90%, 88%), hsl(calc(var(--hue) + 180), 100%, 86%),
  hsl(calc(var(--hue) + 240), 100%, 88%), hsl(calc(var(--hue) + 300), 90%, 85%),
  hsl(calc(var(--hue)), 100%, 90%)); }

.mcv-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mcv-brand { display: flex; align-items: center; gap: 9px; }
.mcv-logo { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; }
.mcv-logo .lucide { width: 17px; height: 17px; color: var(--mcv-accent); }
.mcv-brand .bt { font-size: 15px; font-weight: var(--w-bold); letter-spacing: 0.03em; line-height: 1; }
.mcv-brand .bs { font-size: 9px; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; margin-top: 3px; }
.mcv-flag { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: var(--w-bold); letter-spacing: 0.08em; }
/* (Q1) 모든 등급 배지 = 글래스. 반투명 그라데이션이라 뒤의 회전 등급색이 비치고(투과), backdrop-filter 지원 시 프로스트까지. 3D 플립 컨텍스트에서도 견고 */
.mcv-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  background: linear-gradient(140deg, rgba(255,255,255,0.24), rgba(255,255,255,0.07));
  -webkit-backdrop-filter: blur(9px) saturate(1.5); backdrop-filter: blur(9px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.32); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  padding: 6px 14px; border-radius: var(--r-full); text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 3px 12px rgba(0,0,0,0.28); }
.mcv-fill { flex: 1; }
.mcv-avatar { width: 52px; height: 52px; border-radius: 13px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: var(--w-bold); margin-bottom: 12px; }
.mcv-lbl { font-size: 9px; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); text-transform: uppercase; font-weight: var(--w-semibold); }
.mcv-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; }
.mcv-val { font-size: 14px; font-weight: var(--w-bold); margin-top: 2px; font-family: var(--font-mono); }
.mcv-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.mcv-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: var(--w-bold); color: #7fe6a6; margin-top: 13px; }
.mcv-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.mcv-hint { position: absolute; bottom: 16px; right: 22px; z-index: 4; font-size: 10px; color: rgba(255,255,255,0.4); display: inline-flex; align-items: center; gap: 5px; }
.mcv-hint .lucide { width: 12px; height: 12px; }
.mcv-bhead { display: flex; justify-content: space-between; align-items: center; }
.mcv-btitle { font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); text-transform: uppercase; font-weight: var(--w-bold); }
.mcv-qr { margin: 16px auto 0; width: 158px; height: 158px; background: #fff; border-radius: 16px; padding: 9px; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.mcv-qr img { width: 100%; height: 100%; display: block; }
.mcv-bno { text-align: center; margin-top: 11px; }
.mcv-bno .num { font-size: 17px; font-weight: var(--w-bold); letter-spacing: 0.15em; margin-top: 3px; font-family: var(--font-mono); }
.mcv-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.mcv-chip { font-size: 10px; font-weight: var(--w-semibold); color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; padding: 4px 9px; }
/* 회원번호로 생성된 결정적 바코드(SVG)를 담는 흰 박스 */
.mcv-barcode { margin-top: auto; height: 40px; border-radius: 6px; background: #fff; padding: 5px 7px; display: flex; align-items: center; }
.mcv-barcode svg { width: 100%; height: 100%; display: block; }
.mcv-bfoot { margin-top: 10px; font-size: 9px; color: rgba(255,255,255,0.35); text-align: center; }
@media (max-width: 420px) { .mcv-wrap { width: 300px; height: 470px; } }

/* 티어 비교표 */
.tier-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-xl); }
.tier-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.tier-table th, .tier-table td { padding: 13px 16px; text-align: center; font-size: var(--text-sm); border-top: 1px solid var(--border); }
.tier-table thead th { border-top: 0; font-weight: var(--w-bold); color: var(--fg); background: var(--surface); }
.tier-table .row-label { text-align: left; color: var(--fg); font-weight: var(--w-medium); }
.tier-table tbody .row-label { font-weight: 400; color: var(--fg-secondary); }
.tier-table .col-premium { background: var(--brand-soft); }
.tier-table thead .col-premium { color: var(--brand-fg); }
.tier-table .ti-yes { width: 17px; height: 17px; stroke-width: 2.5; color: var(--brand); }
.tier-table .ti-no { color: var(--fg-tertiary); }
.tier-table .ti-val { font-weight: var(--w-semibold); color: var(--fg); font-size: var(--text-xs); }

/* Comparison table */
.compare-table {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
}
.compare-head, .compare-row {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr;
  align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--s-7);
}
.compare-head {
  background: var(--bg-sunken);
  font-size: var(--text-xs); font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-arrow); text-transform: uppercase;
}
.compare-head .premium-label { color: var(--brand); }
.compare-row { border-top: 1px solid var(--border); font-size: var(--text-sm); }
.compare-row .muted { color: var(--fg-tertiary); }
.compare-row .premium-val { font-weight: var(--w-semibold); color: var(--brand-fg); }
@media (max-width: 720px) {
  .compare-head, .compare-row { grid-template-columns: 1.6fr 1fr; }
  .compare-head .premium-label { display: none; }
  .compare-row .premium-val::before { content: "Premium: "; color: var(--fg-tertiary); font-weight: var(--w-medium); margin-right: 4px; }
  .compare-row .muted::before { content: "Free: "; color: var(--fg-tertiary); font-weight: var(--w-medium); margin-right: 4px; display: inline; }
}

/* ============================================================
   ACADEMY — curriculum cards
   ============================================================ */
.curriculum-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .curriculum-grid { grid-template-columns: repeat(2, 1fr); } }
.curriculum-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-9) var(--s-8);
}
.curriculum-card .step-num {
  position: absolute; top: var(--s-7); right: var(--s-7);
  font-size: var(--text-5xl); font-weight: var(--w-bold); color: var(--neutral-200);
  line-height: 1; letter-spacing: -0.04em;
}
.curriculum-card h3 { font-size: var(--text-xl); font-weight: var(--w-semibold); margin-bottom: 6px; max-width: 70%; }
.curriculum-card .muted { color: var(--fg-secondary); font-size: var(--text-sm); }
.curriculum-card .foot {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px dashed var(--border);
  font-size: var(--text-sm); color: var(--fg-tertiary);
}

/* ============================================================
   ACADEMY (/archery/academy) — Notion Service-cms(Category=ACADEMY)
   ============================================================ */
/* HERO 통계 */
.academy-stats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); color: rgba(255,255,255,0.9); font-size: var(--text-sm); }
.academy-stats strong { font-size: var(--text-lg); font-weight: var(--w-bold); color: #fff; }
.academy-stats .dot { color: rgba(255,255,255,0.4); }

/* ① 코스 사다리 카드 */
.academy-course-card { display: flex; flex-direction: column; }
.acc-course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.acc-course-icon { width: 26px; height: 26px; stroke-width: 1.75; color: var(--brand); }
.curriculum-card .acc-course-ko { font-size: var(--text-base); font-weight: var(--w-medium); color: var(--fg-tertiary); }
.branch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-6); border-top: 1px dashed var(--border); }
.acc-chip-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-arrow); color: var(--fg-tertiary); margin-right: 2px; }
.branch-chip { font-size: var(--text-xs); font-weight: var(--w-medium); color: var(--brand-fg); background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--r-full); padding: 3px 10px; }
.branch-chip--prep { color: var(--fg-tertiary); background: transparent; }

/* ② 지점별 개설 클래스 */
.academy-branches { padding: var(--s-11) 0; background: var(--bg-sunken); }
.branch-block { margin-bottom: var(--s-10); }
.branch-block:last-child { margin-bottom: 0; }
.branch-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.branch-head .lucide { width: 22px; height: 22px; color: var(--brand); stroke-width: 1.75; }
.branch-head h3 { font-size: var(--text-2xl); font-weight: var(--w-bold); }
.branch-head-ja { font-size: var(--text-sm); color: var(--fg-tertiary); }
.academy-class-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .academy-class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .academy-class-grid { grid-template-columns: repeat(3, 1fr); } }
.academy-class-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-7); }
.academy-class-card .acc-name { font-size: var(--text-lg); font-weight: var(--w-semibold); margin: var(--s-4) 0 var(--s-3); }
.acc-body { font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-loose, 1.7); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 9; line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.acc-foot { margin-top: auto; padding-top: var(--s-5); }
.course-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: var(--text-xs); font-weight: var(--w-semibold); border-radius: var(--r-full); padding: 4px 10px; border: 1px solid var(--border); color: var(--brand-fg); background: var(--brand-soft); }
.course-badge .lucide { width: 14px; height: 14px; stroke-width: 2; }

/* ③ 개설 예정 (준비중) */
.academy-prep { padding: var(--s-11) 0; }
.prep-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 720px) { .prep-grid { grid-template-columns: repeat(3, 1fr); } }
.prep-card { display: flex; flex-direction: column; gap: var(--s-4); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-lg); padding: var(--s-6); opacity: 0.8; }
.prep-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.prep-branch { font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--fg-secondary); }

/* ============================================================
   ACADEMY — 지점 선택 · 클래스 상세 · 예약
   ============================================================ */
.btn--block { width: 100%; justify-content: center; }

/* 지점 선택 카드 */
.branch-select-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .branch-select-grid { grid-template-columns: repeat(3, 1fr); } }
.branch-select-card { display: flex; flex-direction: column; gap: var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-7); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.branch-select-card:hover { transform: translateY(-3px); border-color: var(--brand-fg); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.bsc-top { display: flex; align-items: center; justify-content: space-between; color: var(--brand-fg); }
.bsc-top .lucide { width: 20px; height: 20px; }
.bsc-ja { font-size: var(--text-xs); color: var(--fg-secondary); }
.bsc-name { font-size: var(--text-xl); font-weight: var(--w-bold); margin: 0; }
.bsc-tag { font-size: var(--text-sm); margin: 0; }
.bsc-foot { margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); border-top: 1px solid var(--border); }
.bsc-count { font-size: var(--text-xs); color: var(--fg-secondary); }

/* 클래스 카드 — 링크형 */
.academy-class-card--link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.academy-class-card--link:hover { transform: translateY(-3px); border-color: var(--brand-fg); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-2) 0 var(--s-3); }
.acc-chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--fg-secondary); background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--r-full); padding: 3px 9px; }
.acc-chip .lucide { width: 13px; height: 13px; }
.acc-price { font-size: var(--text-lg); font-weight: var(--w-bold); color: var(--brand-fg); }
.acc-price small { font-size: var(--text-xs); font-weight: 400; color: var(--fg-secondary); }
.academy-class-card--link .acc-foot { display: flex; align-items: center; justify-content: space-between; }

/* 클래스 상세 */
.acc-detail-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); align-items: start; }
@media (min-width: 960px) { .acc-detail-grid { grid-template-columns: minmax(0,1fr) 340px; } }
.acc-detail-body p { margin: 0 0 var(--s-4); line-height: var(--lh-loose, 1.7); }
.acc-detail-meta { margin-top: var(--s-7); display: flex; flex-direction: column; gap: var(--s-3); border-top: 1px solid var(--border); padding-top: var(--s-6); }
.acc-meta-row { display: flex; align-items: center; gap: var(--s-3); font-size: var(--text-sm); }
.acc-meta-row .lucide { width: 16px; height: 16px; color: var(--brand-fg); flex: none; }
.acc-meta-row .k { width: 56px; color: var(--fg-secondary); flex: none; }
.acc-meta-row .v { font-weight: var(--w-medium); }

/* 예약 카드 */
.acc-detail-side { position: sticky; top: var(--s-8); }
.acc-reserve-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-7); }
.acc-reserve-title { font-size: var(--text-lg); font-weight: var(--w-bold); margin: 0 0 var(--s-5); }
.acc-plan-list { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-6); }
.acc-plan-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px dashed var(--border); }
.acc-plan-label { font-size: var(--text-sm); }
.acc-plan-label small { color: var(--fg-secondary); }
.acc-plan-price { font-weight: var(--w-bold); color: var(--brand-fg); }
.acc-reserve-form { display: flex; flex-direction: column; gap: var(--s-3); }
.acc-f-label { font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--fg-secondary); margin-top: var(--s-2); }
.acc-reserve-form select, .acc-reserve-form input[type="date"], .acc-reserve-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md, 8px); background: var(--surface); font: inherit; color: inherit; }
.acc-reserve-form textarea { resize: vertical; }
.acc-f-agree { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); margin: var(--s-2) 0; }
.acc-pay-note { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); margin: var(--s-3) 0 0; }
.acc-pay-note .lucide { width: 14px; height: 14px; }
.acc-login-note { font-size: var(--text-sm); margin: 0 0 var(--s-4); }

/* 예약 확인 */
.reserved-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-8); }
.reserved-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.reserved-head .lucide { width: 22px; height: 22px; color: var(--brand-fg); }
.reserved-head h2 { margin: 0; }
.reserved-summary { margin: 0 0 var(--s-7); }
.reserved-summary > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.reserved-summary dt { color: var(--fg-secondary); font-size: var(--text-sm); margin: 0; }
.reserved-summary dd { margin: 0; font-weight: var(--w-medium); text-align: right; }
.reserved-amount { font-size: var(--text-lg); font-weight: var(--w-bold); color: var(--brand-fg); }
.reserved-pay .btn[disabled] { opacity: .55; cursor: not-allowed; }
.reserved-pending { display: flex; align-items: flex-start; gap: 6px; font-size: var(--text-xs); margin: var(--s-3) 0 0; }
.reserved-pending .lucide { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.reserved-actions { display: flex; gap: var(--s-3); margin-top: var(--s-7); }

/* 클래스 상세 — 소개 콘텐츠(개요·테마·목적·규정) */
.acc-overview { line-height: var(--lh-loose, 1.7); margin: 0 0 var(--s-6); }
.acc-rich-block { margin: 0 0 var(--s-6); }
.acc-rich-title { display: flex; align-items: center; gap: 8px; font-size: var(--text-base, 1rem); font-weight: var(--w-bold); margin: 0 0 var(--s-3); }
.acc-rich-title .lucide { width: 18px; height: 18px; color: var(--brand-fg); }
.acc-rich-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.acc-rich-list li { position: relative; padding-left: 22px; font-size: var(--text-sm); line-height: 1.6; color: var(--fg-secondary); }
.acc-rich-list li::before { content: "·"; position: absolute; left: 6px; color: var(--fg-secondary); }
.acc-rich-list--check li::before { content: "✓"; color: var(--green-500); font-weight: 700; left: 2px; }
.acc-rich-list--rule li::before { content: "■"; color: var(--green-400); font-size: 9px; top: 5px; left: 4px; }

/* 도쿄 아카데미 소개 — 정보 카드 · 시간표 */
.tokyo-info-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 880px) { .tokyo-info-grid { grid-template-columns: repeat(3, 1fr); } }
.tokyo-info-2 { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 720px) { .tokyo-info-2 { grid-template-columns: repeat(2, 1fr); } }
.tokyo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-7); }
.tokyo-card-title { display: flex; align-items: center; gap: 8px; font-size: var(--text-lg); font-weight: var(--w-bold); margin: 0 0 var(--s-4); }
.tokyo-card-title .lucide { width: 18px; height: 18px; color: var(--brand-fg); }
.tokyo-sched, .tokyo-mini { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: flex; flex-direction: column; gap: var(--s-3); }
.tokyo-sched li { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); }
.tokyo-mini li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-sm); line-height: 1.55; }
.tokyo-sched .lucide, .tokyo-mini .lucide { width: 15px; height: 15px; color: var(--fg-secondary); flex: none; margin-top: 2px; }
.sched-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.sched-dot--beginner { background: #2e9e5b; }
.sched-dot--standard { background: #2f74d0; }
.sched-dot--advance { background: #d23f3f; }
.tokyo-card .btn { margin-top: var(--s-3); }

/* 수강 신청 — 3-STEP 예약(캘린더·정보·결제) */
.resv-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); align-items: start; }
@media (min-width: 960px) { .resv-grid { grid-template-columns: minmax(0,1fr) 320px; } }
.resv-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-7); margin-bottom: var(--s-5); }
.resv-step-head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
.resv-step-no { font-size: var(--text-xs); font-weight: var(--w-bold); letter-spacing: .05em; color: var(--brand-fg); }
.resv-step-head h2 { font-size: var(--text-lg); font-weight: var(--w-bold); margin: 0; }
.resv-plans { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.resv-plan { display: flex; flex-direction: column; gap: 2px; padding: var(--s-4) var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md, 8px); background: var(--surface); cursor: pointer; min-width: 130px; }
.resv-plan--sel { border-color: var(--brand-fg); box-shadow: 0 0 0 2px var(--brand-soft); }
.resv-plan-label { font-size: var(--text-sm); }
.resv-plan-price { font-weight: var(--w-bold); color: var(--brand-fg); }
/* 캘린더 */
.cal-head { display: flex; align-items: center; justify-content: center; gap: var(--s-6); margin-bottom: var(--s-5); }
.cal-nav { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-nav .lucide { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: var(--text-xs); color: var(--fg-secondary); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: none; background: none; border-radius: var(--r-full); font: inherit; font-size: var(--text-sm); cursor: default; color: var(--fg-tertiary, #aaa); }
.cal-day--avail { color: var(--brand-fg); border: 1px solid var(--brand-fg); cursor: pointer; font-weight: var(--w-medium); }
.cal-day--avail:hover { background: var(--brand-soft); }
.cal-day--off { color: var(--fg-disabled); }
.cal-day--sel { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.cal-slots { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-6); }
.cal-slot { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md, 8px); background: var(--surface); cursor: pointer; font: inherit; font-size: var(--text-base, 1rem); }
.cal-slot--sel { border-color: var(--brand-fg); box-shadow: 0 0 0 2px var(--brand-soft); }
.cal-slot-cap { font-size: var(--text-xs); color: var(--fg-secondary); }
/* 정보 폼 */
.resv-form { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.resv-field { display: flex; flex-direction: column; gap: 6px; }
.resv-field label { font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--fg-secondary); }
.resv-field input { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md, 8px); background: var(--surface); font: inherit; }
.req { color: var(--danger, #d23f3f); }
.resv-pay-method { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--brand-fg); border-radius: var(--r-md, 8px); background: var(--brand-soft); }
.resv-pay-method .lucide { width: 22px; height: 22px; color: var(--brand-fg); }
.resv-agree { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); margin-top: var(--s-4); }
.resv-error { color: var(--danger, #d23f3f); font-size: var(--text-sm); margin-top: var(--s-3); }
/* 요약 */
.resv-side { position: sticky; top: var(--s-8); }
.resv-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-7); }
.resv-summary h3 { font-size: var(--text-base, 1rem); font-weight: var(--w-bold); margin: 0 0 var(--s-4); }
.resv-summary dl { margin: 0 0 var(--s-5); }
.resv-summary dl > div { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
.resv-summary dt { color: var(--fg-secondary); font-size: var(--text-sm); margin: 0; }
.resv-summary dd { margin: 0; font-weight: var(--w-medium); text-align: right; }
.resv-amount { color: var(--brand-fg); font-weight: var(--w-bold); }

/* ============================================================
   LEGAL pages (Terms / Privacy / Tokutei)
   ============================================================ */
.legal-page { padding: var(--s-11) 0 var(--s-13); }
.legal-page h1 { font-size: var(--text-4xl); }
.legal-page h2 { font-size: var(--text-xl); color: var(--fg); font-weight: var(--w-semibold); }
.legal-page p { line-height: var(--lh-loose); }
.legal-list { padding-left: var(--s-7); display: flex; flex-direction: column; gap: 6px; margin: var(--s-3) 0; }
.legal-list li { font-size: var(--text-sm); line-height: var(--lh-loose); color: var(--fg-secondary); }
.legal-list li strong { color: var(--fg); font-weight: var(--w-semibold); }
.legal-list ul { margin-top: 4px; padding-left: var(--s-5); list-style-type: '· '; }
.legal-list ul li { font-size: var(--text-sm); color: var(--fg-tertiary); }

/* 위탁업체 표 (개인정보처리방침 5장 등) */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s-5) 0 var(--s-7);
    font-size: var(--text-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.legal-table th, .legal-table td {
    padding: var(--s-4) var(--s-5);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}
.legal-table th {
    background: var(--surface-alt, var(--brand-soft));
    font-weight: var(--w-semibold);
    color: var(--fg);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-snug);
    text-transform: uppercase;
}
.legal-table td { color: var(--fg-secondary); }
.legal-table tr:last-child td { border-bottom: none; }
@media (max-width: 600px) {
    .legal-table { font-size: var(--text-xs); }
    .legal-table th, .legal-table td { padding: var(--s-3) var(--s-4); }
}

.kv-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; margin-top: var(--s-7); }
.kv-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-5); padding: var(--s-5) var(--s-7); border-top: 1px solid var(--border); }
.kv-row:first-child { border-top: 0; }
.kv-row .k { font-size: var(--text-xs); color: var(--fg-tertiary); font-weight: var(--w-semibold); letter-spacing: var(--tracking-snug); }
.kv-row .v { font-size: var(--text-sm); color: var(--fg); }
@media (max-width: 720px) { .kv-row { grid-template-columns: 1fr; gap: 4px; } }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-9); margin-top: var(--s-9); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 320px; gap: var(--s-11); align-items: start; } }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-9) var(--s-8); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-channels { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-channels li { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.contact-channels li .lucide { width: 18px; height: 18px; stroke-width: 1.75; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.contact-channels li strong { display: block; font-size: var(--text-sm); color: var(--fg); margin-bottom: 2px; }
.contact-channels li .muted { font-size: var(--text-xs); }
.contact-channels li a { font-size: var(--text-xs); color: var(--brand); font-weight: var(--w-semibold); }

/* ============================================================
   ADMIN MODE — shell, sidebar, tables, KPI cards
   ============================================================ */
.admin-shell {
  display: grid; grid-template-columns: 1fr;
  min-height: 100vh; background: var(--bg);
}
@media (min-width: 1024px) {
  .admin-shell { grid-template-columns: 248px 1fr; }
}

.admin-side {
  background: var(--neutral-900); color: var(--neutral-200);
  padding: var(--s-7) var(--s-5); display: flex; flex-direction: column; gap: var(--s-7);
}
@media (min-width: 1024px) {
  .admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--neutral-0); text-decoration: none; }
.admin-brand img { width: 32px; height: 32px; }
.admin-brand strong { font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--text-lg); display: block; line-height: 1; }
.admin-brand span { font-size: var(--text-2xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; color: var(--green-300); font-weight: var(--w-semibold); }

.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav .nav-section { font-size: var(--text-2xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: var(--w-semibold); padding: var(--s-3) 8px 4px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); font-size: var(--text-sm); color: rgba(255,255,255,0.78); text-decoration: none; transition: background var(--t-fast); }
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: var(--neutral-0); }
.admin-nav a.active { background: var(--green-700); color: var(--neutral-0); }
.admin-nav a .lucide { width: 16px; height: 16px; stroke-width: 1.75; }
.admin-nav .muted-link { color: rgba(255,255,255,0.4); }

.admin-user { display: flex; gap: 10px; align-items: center; padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.08); }
.admin-user .avatar { width: 36px; height: 36px; border-radius: var(--r-full); background: var(--green-600); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: var(--w-bold); }
.admin-user strong { font-size: var(--text-sm); color: var(--neutral-0); display: block; }
.admin-user span { font-size: var(--text-2xs); color: rgba(255,255,255,0.5); }

.admin-main { padding: var(--s-9) var(--s-9); min-width: 0; }
.admin-page { max-width: var(--maxw-content); margin: 0 auto; }
.admin-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-7);
  flex-wrap: wrap; margin-bottom: var(--s-9);
}
.admin-page-head .eyebrow { display: block; margin-bottom: var(--s-3); }
.admin-page-head h1 { margin-bottom: 4px; }
.admin-page-head .muted { color: var(--fg-secondary); font-size: var(--text-sm); }
.admin-page-head .quick-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* KPI grid */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-bottom: var(--s-9); }
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-7); display: flex; flex-direction: column; gap: 4px;
}
.kpi-label { font-size: var(--text-xs); letter-spacing: var(--tracking-arrow); text-transform: uppercase; color: var(--fg-tertiary); font-weight: var(--w-semibold); }
.kpi-num { font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: var(--w-bold); color: var(--fg); line-height: 1; margin-top: 4px; }
.kpi-trend { font-size: var(--text-xs); color: var(--fg-tertiary); margin-top: 6px; }
.kpi-trend.up { color: var(--success, #00a854); }
.kpi-trend.down { color: var(--target-700); }

/* Admin section */
.admin-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-7) var(--s-8); margin-bottom: var(--s-7); }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); }
.admin-section-head h2 { font-size: var(--text-lg); font-weight: var(--w-semibold); color: var(--fg); }

.admin-two-col { display: grid; grid-template-columns: 1fr; gap: var(--s-7); margin-top: var(--s-9); }
@media (min-width: 1024px) { .admin-two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.admin-table thead th {
  text-align: left; padding: var(--s-3) var(--s-4); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-arrow); text-transform: uppercase;
  color: var(--fg-tertiary); font-weight: var(--w-semibold);
  border-bottom: 1px solid var(--border);
}
.admin-table tbody td { padding: var(--s-5) var(--s-4); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-hover); }
.admin-table td strong { color: var(--fg); font-weight: var(--w-semibold); display: block; }
.admin-table td .muted { color: var(--fg-tertiary); font-size: var(--text-xs); margin-top: 2px; display: block; }
.admin-table td.mono { font-family: var(--font-mono); color: var(--fg-secondary); }

/* Toolbar */
.admin-toolbar { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-5); }

/* Progress bar */
.progress-row { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.progress { height: 6px; background: var(--bg-sunken); border-radius: var(--r-full); overflow: hidden; }
.progress .bar { height: 100%; background: var(--brand); transition: width var(--t-base) var(--ease-standard); }

/* Avatar small */
.avatar-sm { width: 36px; height: 36px; border-radius: var(--r-full); background: linear-gradient(160deg, var(--green-700), var(--green-500)); color: white; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--text-md); flex-shrink: 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; padding: var(--s-5); }
.pager { display: flex; gap: var(--s-3); align-items: center; }
.pager .page { font-size: var(--text-sm); color: var(--fg-secondary); }

/* Message list (1:1 inquiries) */
.message-list { display: flex; flex-direction: column; gap: var(--s-3); }
.message-row {
  display: grid; grid-template-columns: 140px 1fr 100px 100px; gap: var(--s-5);
  padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  align-items: flex-start;
}
.message-row.unread { background: var(--brand-soft); border-color: var(--green-100); }
.message-pri { display: flex; flex-direction: column; gap: 4px; }
.message-body h4 { font-size: var(--text-base); font-weight: var(--w-semibold); margin: 4px 0 4px; color: var(--fg); }
.message-body .message-from { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.message-body .message-from strong { font-size: var(--text-sm); color: var(--fg); }
.message-body .message-from .muted { font-size: var(--text-xs); color: var(--fg-tertiary); }
.message-body .muted { font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-base); }
.message-meta { font-size: var(--text-xs); color: var(--fg-tertiary); display: flex; flex-direction: column; align-items: flex-end; }
.message-actions { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 720px) {
  .message-row { grid-template-columns: 1fr; }
}

/* ============================================================
   다크 콘솔(admin) 가독성 보정 — accent 텍스트·pill 을 다크 배경에서 잘 보이게.
   (data-theme="dark" 는 현재 admin-shell 에만 적용)
   ============================================================ */
[data-theme="dark"] .eyebrow { color: var(--green-300); }
[data-theme="dark"] .pill--red { background: rgba(216,54,42,0.18); border: 1px solid rgba(216,54,42,0.36); }
[data-theme="dark"] .pill--gold { background: rgba(200,155,26,0.16); border: 1px solid rgba(200,155,26,0.34); }
[data-theme="dark"] .pill--outline { background: var(--surface); border-color: var(--border-strong); }
[data-theme="dark"] .message-row.unread { background: rgba(27,158,84,0.14); border-color: rgba(27,158,84,0.34); }

/* 관리자 다크모드 텍스트 — 회색 보조 텍스트를 브랜드 그린 톤으로(가독성+아이덴티티, 사용자 지시 2026-07-08).
   admin-shell 스코프 변수 오버라이드라 공개 사이트 다크 토큰에는 영향 없음. */
/* 색 재평가: 셸은 data-theme=dark 지만 color 미지정 요소(페이지 제목 등)는 body(라이트)의
   계산값을 상속받아 어두운 잉크색이 됨 — 셸에서 color 를 다시 선언해 다크 --fg(#E8ECF1)로 재평가. */
.admin-shell,
.admin-shell h1, .admin-shell h2, .admin-shell h3, .admin-shell h4 { color: var(--fg); }
.admin-shell {
  --fg-secondary:  var(--green-200);   /* muted 본문·설명 (#B3E7C7) */
  --fg-tertiary:   var(--green-300);   /* 3차 텍스트 (#80D7A0) */
  --fg-quaternary: #63B584;            /* placeholder — 입력값(흰색)과 구분되는 중간 그린 */
  --fg-disabled:   #4A7A5D;
}
.admin-shell .form-label { color: var(--green-300); }
.admin-shell .admin-nav .nav-section { color: var(--green-300); }
.admin-shell .admin-nav a { color: rgba(255,255,255,0.85); }
.admin-shell .admin-nav .muted-link { color: var(--green-300); }
.admin-shell .admin-user span { color: var(--green-200); }
.admin-shell .admin-user .admin-role-badge {
  display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: rgba(27,158,84,0.22); color: var(--green-200); border: 1px solid rgba(128,215,160,0.35);
  align-self: flex-start;
}

/* 관리자 사이드바 언어 스위처 (JA/KO/EN) */
.admin-lang { display: flex; gap: 6px; padding: var(--s-4) 4px; }
.admin-lang a { flex: 1; text-align: center; font-size: var(--text-2xs); font-weight: var(--w-semibold); letter-spacing: 0.08em; padding: 6px 0; border-radius: var(--r-md); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.14); text-decoration: none; transition: all var(--t-fast); }
.admin-lang a:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.admin-lang a.on { background: var(--green-700); color: #fff; border-color: transparent; }

/* ============================================================
   다크 테마 — 사이트 전역 (OS 자동 + 헤더 토글). 시맨틱 토큰은 arico.css [data-theme="dark"].
   아래는 토큰을 안 쓰는 반투명/하드코딩 표면 보정 + 토글 버튼.
   ============================================================ */
:root[data-theme="dark"] { --paper: #0E1318; --shadow-lg: 0 16px 48px rgba(0,0,0,0.55); }
/* 반투명 크롬·글래스 표면 (리터럴 rgba라 토큰화 불가 → 다크 전용 보정) */
:root[data-theme="dark"] .site-header { background: rgba(15,19,24,0.82); }
:root[data-theme="dark"] .mobile-tabbar { background: rgba(15,19,24,0.9); }
:root[data-theme="dark"] .tier-grid .price-card,
:root[data-theme="dark"] .tier-grid .price-card--vip { background: rgba(26,33,43,0.6); border-color: rgba(255,255,255,0.12); }
/* 홈 히어로 이벤트 타일(atomic green-50 / 리터럴 blue tint) + 그라데이션 글자 밝게 */
:root[data-theme="dark"] .hero2-ev-ic.tg { background: rgba(27,158,84,0.18); color: #34D27F; }
:root[data-theme="dark"] .hero2-ev-ic.tb { background: rgba(46,116,196,0.22); color: #6FA8E8; }
:root[data-theme="dark"] .hero2-card { box-shadow: 0 14px 44px rgba(0,0,0,0.45); }
:root[data-theme="dark"] .grad-text { background: linear-gradient(120deg, #34D27F, #5B9CE0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 테마 토글 버튼 — 라이트=달 아이콘(다크로 전환), 다크=해 아이콘(라이트로 전환) */
.theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: inline-block; }

/* ── 모바일 첫 방문 온보딩 (MobileOnboarding, JS 게이트) ── */
.onb { position: fixed; inset: 0; z-index: 1200; background: var(--surface); overflow: hidden; }
.onb[hidden] { display: none; }
.onb-card { width: 100%; height: 100%; overflow: hidden; }
.onb-track { display: flex; width: 100%; height: 100%; transition: transform .32s cubic-bezier(.4,0,.2,1); }
.onb-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 60px 28px calc(28px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.onb-splash { background: linear-gradient(150deg, #1B9E54 0%, #2E74C4 100%); justify-content: center; padding-top: 28px; }
.onb-logo { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.onb-logo img { width: 60px; height: 60px; }
.onb-logo span { color: #fff; font-size: 28px; font-weight: var(--w-bold); font-family: var(--font-display); letter-spacing: .03em; }
.onb-img { width: 100%; max-width: 300px; aspect-ratio: 1 / .8; margin: 12px 0 28px; border-radius: 24px; background: #EAF4EF; display: flex; align-items: center; justify-content: center; }
.onb-img i { width: 60px; height: 60px; color: #1B9E54; stroke-width: 1.5; }
.onb-img--blue { background: #EAF1F7; }
.onb-img--blue i { color: #2E74C4; }
.onb-t { font-size: 23px; font-weight: var(--w-bold); text-align: center; color: var(--fg); line-height: 1.3; margin: 0; }
.onb-d { font-size: 15px; color: var(--fg-secondary); text-align: center; line-height: 1.6; margin: 12px auto 0; max-width: 300px; }
.onb-dots { display: flex; justify-content: center; gap: 7px; margin: 22px 0; }
.onb-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--border-strong, #d4d4d4); transition: width .2s; }
.onb-dot.on { width: 22px; background: linear-gradient(90deg, #1B9E54, #2E74C4); }
.onb-cta { display: flex; gap: 12px; margin-top: auto; width: 100%; max-width: 360px; }
.onb-splash .onb-cta { margin-top: auto; }
.onb-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 52px; border-radius: 26px; font-size: 16px; font-weight: var(--w-semibold); font-family: inherit; border: 0; cursor: pointer; text-decoration: none; }
.onb-btn--grad { background: linear-gradient(135deg, #1B9E54, #2E74C4); color: #fff; }
.onb-btn--ghost { background: var(--surface-hover); color: var(--fg-secondary); }
.onb-btn--light { background: #fff; color: #1B9E54; }
.onb-btn--ghost-light { background: rgba(255,255,255,.2); color: #fff; }
.onb-browse { margin: 16px auto 0; background: 0; border: 0; color: var(--fg-tertiary); font-size: 13px; text-decoration: underline; cursor: pointer; font-family: inherit; }
.onb-slide--end { justify-content: center; }
.onb-slide--end .onb-cta { margin-top: 24px; }

/* ============================================================
   마켓플레이스 스타일 (캡쳐 기준) — 헤더(mk-hdr) + 홈(mk-hero·mk-marquee·mk-card)
   토큰 기반이라 다크 모드 자동 적용. 더미 이미지는 picsum(추후 교체).
   ============================================================ */

/* ── 공통 검색 박스 ── */
.mk-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 12px; }
.mk-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--fg); outline: none; }
.mk-search input::placeholder { color: var(--fg-quaternary); }
.mk-search-cat { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--fg-secondary); white-space: nowrap; padding-right: 10px; border-right: 1px solid var(--border); }
.mk-search-cat .lucide { width: 15px; height: 15px; }
.mk-search-cat .cv { width: 12px; height: 12px; opacity: .55; }
.mk-search-go { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; flex: none; }
.mk-search-go .lucide { width: 16px; height: 16px; }

/* ── 헤더 ── */
.mk-hdr { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.mk-hdr-util { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; max-width: var(--maxw-content); margin: 0 auto; padding: 10px var(--s-7); }
.mk-hdr-side { display: flex; align-items: center; gap: 8px; }
.mk-hdr-left { justify-self: start; }
.mk-burger { display: none; }
.mk-hdr-brand { justify-self: center; display: inline-flex; align-items: center; }
.mk-hdr-brand .brand-logo { height: 32px; display: block; }
.mk-hdr-actions { justify-self: end; }
.mk-hdr-auth { display: flex; align-items: center; gap: 8px; }
.mk-hdr-actions .auth-action { padding-top: 7px; padding-bottom: 7px; }
.mk-hdr-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; padding: 6px var(--s-7); border-top: 1px solid var(--border); }
.mk-nav-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; font-size: 14px; font-weight: 500; color: var(--fg-secondary); border-radius: 8px; white-space: nowrap; transition: background var(--t-fast) var(--ease-standard), color var(--t-fast) var(--ease-standard); }
.mk-nav-item .lucide { width: 16px; height: 16px; color: var(--fg-tertiary); }
.mk-nav-item:hover { color: var(--fg); background: var(--surface-hover); }
.mk-nav-item.active { color: var(--brand); background: var(--brand-soft); }
.mk-nav-item.active .lucide { color: var(--brand); }
.mk-search--mobile { display: none; }
/* 언어 드롭다운 — 새 헤더에서 hover/focus 로 열기 (JS 의존 제거) */
.mk-hdr .lang-dd { position: relative; }
.mk-hdr .lang-dd:hover .lang-dropdown, .mk-hdr .lang-dd:focus-within .lang-dropdown { display: block; }

@media (max-width: 860px) {
  .mk-burger { display: inline-flex; }
  .mk-hdr-nav { display: none; }
  .mk-hdr-actions .auth-label { display: none; }
  .mk-hdr-actions .auth-action { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 480px) {
  .mk-hdr-util { gap: 8px; padding: 10px var(--s-5); }
}

/* ── 헤더 검색바(좌) + 카테고리 드롭다운 + 3점 메뉴(우) + 테마 세그먼트 ── */
.mk-search--hdr { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; min-width: 260px; max-width: 400px; flex: 1; }
.mk-cat-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-size: 13px; color: var(--fg-secondary); cursor: pointer; white-space: nowrap; }
.mk-cat-btn:hover { color: var(--fg); background: var(--surface-hover); }
.mk-cat-btn .lucide { width: 15px; height: 15px; }
.mk-cat-btn .cv { width: 12px; height: 12px; opacity: .55; }
.mk-search-form { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; border-left: 1px solid var(--border); padding-left: 6px; }
.mk-search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--fg); outline: none; }
.mk-search-form input::placeholder { color: var(--fg-quaternary); }

.mk-dd { position: relative; }
.mk-dd-menu { position: absolute; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-4); padding: 8px; min-width: 260px; z-index: 70; display: none; }
.mk-dd.open .mk-dd-menu { display: block; }
.mk-cat-menu { left: 0; }
.mk-dd.open .mk-cat-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
/* All Menu 메가 드롭다운 — Platform Service · ARICO 소개 · My ARICO 3열 + 테마 토글 (구 3점 메뉴 통합) */
.mk-dd.open .mk-cat-menu--mega { display: flex; gap: 10px; padding: 14px; width: max-content; max-width: min(92vw, 680px); flex-wrap: wrap; }
.mk-cat-menu--mega .mk-dd-group { min-width: 185px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mk-cat-menu--mega .mk-dd-h { font-size: 12px; font-weight: var(--w-semibold); color: var(--fg-tertiary); letter-spacing: .03em; padding: 4px 12px 8px; }
.mk-dots-menu { right: 0; }
.mk-dd-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--fg-secondary); width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.mk-dd-item .lucide { width: 17px; height: 17px; color: var(--fg-tertiary); flex: none; }
.mk-dd-item:hover { background: var(--surface-hover); color: var(--fg); }
.mk-dd-item--accent { color: var(--brand-fg); font-weight: var(--w-semibold); }
.mk-dd-item--accent .lucide { color: var(--brand-fg); }
.mk-dd-item--accent:hover { background: var(--brand-soft); color: var(--brand-fg); }
.mk-dd-sep { height: 1px; background: var(--border); margin: 7px 6px; }
.mk-dots-btn .lucide { width: 20px; height: 20px; }

.mk-theme-seg { display: flex; gap: 4px; background: var(--bg-sunken); border-radius: 11px; padding: 4px; }
.mk-theme-opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 500; color: var(--fg-secondary); cursor: pointer; }
.mk-theme-opt .lucide { width: 15px; height: 15px; }
[data-theme="dark"] .mk-theme-opt[data-theme-set="dark"],
[data-theme="light"] .mk-theme-opt[data-theme-set="light"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1); }

/* 모바일 2단 메뉴 (Resources / Menu) */
.mk-mnav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 4px 20px 32px; }
.mk-mnav .mobile-nav-head { padding-left: 20px; padding-right: 20px; }
.mk-mnav-h { font-size: 13px; font-weight: var(--w-semibold); color: var(--fg-tertiary); margin-bottom: 6px; }
.mk-mnav-link { display: flex; align-items: center; gap: 12px; padding: 13px 0; font-size: 16px; color: var(--fg); }
.mk-mnav-link .lucide { width: 21px; height: 21px; color: var(--fg-secondary); flex: none; }
.mk-mnav-cta { width: 100%; margin-top: 14px; justify-content: center; }
.mk-theme-seg--block { margin-top: 14px; }

@media (max-width: 860px) {
  .mk-search--hdr { display: none; }
  .mk-dots-dd { display: none; }
  /* 모바일: 우측 auth 아이콘만 노출(라벨 숨김) */
  .mk-hdr-auth .auth-label { display: none; }
  .mk-hdr-auth .auth-action { padding-left: 8px; padding-right: 8px; }
}

/* ── 히어로 캐러셀 ── */
.mk-hero { position: relative; width: min(var(--maxw-content), 100% - 48px); margin: 20px auto 4px; height: clamp(360px, 44vw, 600px); border-radius: 18px; overflow: hidden; background: var(--bg-sunken); }
.mk-hero-track { position: absolute; inset: 0; }
.mk-hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s var(--ease-standard); }
.mk-hero-slide.on { opacity: 1; }
.mk-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.5) 100%); }
.mk-hero-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; }
/* 슬라이드별 문구 오버레이 — 활성 슬라이드와 함께 크로스페이드 (site.js 가 .on 토글) */
.mk-hero-text { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-standard); pointer-events: none; }
.mk-hero-text.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mk-hero-text { transition: none; } }
.mk-hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 5vw, 54px); color: #fff; letter-spacing: .04em; text-shadow: 0 2px 18px rgba(0,0,0,.4); margin: 0; }
.mk-hero-sub { font-size: clamp(13px, 2vw, 18px); color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.4); margin: 0 0 6px; }
.mk-search--hero { width: min(560px, 94%); background: rgba(255,255,255,.97); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.mk-search--hero input { color: #1a1d22; }
.mk-search--hero .mk-search-cat { color: #4a4f57; border-color: rgba(0,0,0,.1); }
.mk-hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.mk-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .25s, background .25s; }
.mk-dot.on { width: 22px; background: #fff; }

/* ── 섹션 제목 / More ── */
.mk-sec-title { font-size: var(--text-xl); font-weight: var(--w-bold); letter-spacing: .01em; color: var(--fg); margin: 0; }
.mk-sec-title--lg { font-size: var(--text-2xl); }
.mk-cats-sec { padding: 24px 0 28px; }
.mk-cats-sec .mk-sec-title { margin-bottom: 16px; }
/* 카테고리 섹션 바로 뒤(ACADEMY)와의 큰 빈 간격 제거 — 콘텐츠 높이에 맞춤 */
.mk-cats-sec + section.section { padding-top: var(--s-9); }
.mk-row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mk-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--fg-secondary); white-space: nowrap; }
.mk-more .lucide { width: 15px; height: 15px; }
.mk-more:hover { color: var(--brand); }
.mk-sec-alt { background: var(--bg-sunken); }

/* ── Service Categories 마퀴 (우→좌) ── */
.mk-marquee { width: min(var(--maxw-content), 100% - 48px); margin: 0 auto; overflow: hidden; padding: 6px 0 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.mk-marquee-track { display: flex; gap: 16px; width: max-content; animation: mk-scroll 55s linear infinite; }
.mk-marquee:hover .mk-marquee-track { animation-play-state: paused; }
@keyframes mk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mk-cat { flex: 0 0 auto; width: 168px; }
.mk-cat-img { width: 168px; height: 108px; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid var(--border); background-color: var(--bg-sunken); }
.mk-cat-label { display: block; text-align: center; margin-top: 9px; font-size: 13px; font-weight: 500; color: var(--fg-secondary); }
.mk-cat:hover .mk-cat-label { color: var(--fg); }

/* ── 마켓 카드 그리드 ── */
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .mk-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .mk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* 4열 변형 (ACADEMY 4지점) */
.mk-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .mk-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mk-grid--4 { grid-template-columns: 1fr; } }
.mk-card { display: block; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); transition: transform var(--t-fast) var(--ease-standard), box-shadow var(--t-fast) var(--ease-standard); }
.mk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.mk-card-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--bg-sunken); }
.mk-card-body { padding: 11px 13px 13px; }
.mk-card-title { font-size: 14px; font-weight: var(--w-semibold); color: var(--fg); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.mk-card-tag { font-size: 12px; color: var(--fg-tertiary); }
.mk-heart { color: var(--fg-quaternary); display: inline-flex; }
.mk-heart .lucide { width: 16px; height: 16px; }
.mk-card:hover .mk-heart { color: var(--brand); }

/* ── 커뮤니티 밴드 (라이트 회색) ── */
.mk-community { background: var(--bg-sunken); border-top: 1px solid var(--border); text-align: center; padding: clamp(48px, 8vw, 88px) var(--s-7); }
.mk-community h2 { font-size: var(--text-3xl); font-weight: var(--w-bold); letter-spacing: var(--tracking-tight); color: var(--fg); margin: 0 0 14px; }
.mk-community p { max-width: 560px; margin: 0 auto 22px; color: var(--fg-secondary); line-height: var(--lh-loose); }

@media (prefers-reduced-motion: reduce) {
  .mk-marquee-track { animation: none; }
  .mk-hero-slide { transition: none; }
}

/* ============================================================
   ARICO HUB — 리스트(/hub/{slug}) + 상세(/hub/{slug}/{id}) (캡쳐 스타일)
   토큰 기반(다크 자동). 이미지 picsum 더미.
   ============================================================ */
.hub-list { padding: clamp(36px, 6vw, 72px) 0 80px; }
.hub-list-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 5vw, 52px); }
.hub-list-title { font-size: clamp(34px, 6vw, 64px); font-weight: var(--w-bold); letter-spacing: var(--tracking-tight); color: var(--fg); margin: 0; }
.hub-list-desc { font-size: var(--text-lg); color: var(--fg-secondary); line-height: var(--lh-loose); margin: 16px 0 0; }
.hub-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hub-filter-left { display: flex; gap: 10px; flex-wrap: wrap; }
.hub-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--r-full); background: var(--surface-hover); font-size: 14px; font-weight: 500; color: var(--fg); }
.hub-chip .lucide { width: 15px; height: 15px; opacity: .6; }
.hub-all { font-size: 14px; color: var(--fg-tertiary); font-weight: 500; }

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { display: block; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform var(--t-fast) var(--ease-standard), box-shadow var(--t-fast) var(--ease-standard); }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.hub-card-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: var(--bg-sunken); }
.hub-card-body { padding: 14px 16px 16px; }
.hub-card-row1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-card-title { font-size: 15px; font-weight: var(--w-semibold); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-card-badge { font-size: 12px; font-weight: 600; color: var(--fg-secondary); background: var(--surface-hover); border-radius: var(--r-full); padding: 3px 10px; flex: none; }
.hub-card-row2 { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.hub-card-cat { font-size: 13px; color: var(--fg-tertiary); }

/* 상세 */
.hub-detail { padding: clamp(20px, 3vw, 36px) 0 80px; }
.hub-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-tertiary); margin-bottom: 24px; flex-wrap: wrap; }
.hub-crumb a { color: var(--fg-secondary); }
.hub-crumb a:hover { color: var(--brand); }
.hub-crumb .cur { color: var(--fg); font-weight: 500; }
.hub-detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .hub-detail-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.hub-gallery-main { aspect-ratio: 4 / 3.2; border-radius: 18px; background-size: cover; background-position: center; background-color: var(--bg-sunken); border: 1px solid var(--border); }
.hub-gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.hub-thumb { width: 84px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--border); cursor: pointer; }
.hub-thumb.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.hub-info-title { font-size: clamp(26px, 4vw, 40px); font-weight: var(--w-bold); letter-spacing: var(--tracking-tight); color: var(--fg); margin: 0; }
.hub-info-sub { font-size: var(--text-lg); color: var(--fg-tertiary); margin: 8px 0 0; }
.hub-info-price { font-size: var(--text-xl); font-weight: var(--w-semibold); color: var(--fg); margin: 18px 0 0; }
.hub-meta { margin: 22px 0 0; border-top: 1px solid var(--border); }
.hub-meta-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
.hub-meta-row dt { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--fg-secondary); margin: 0; }
.hub-meta-row dt .lucide { width: 16px; height: 16px; color: var(--fg-tertiary); }
.hub-meta-row dd { font-size: 15px; color: var(--fg); font-weight: 500; margin: 0; }
.hub-download { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 14px; background: var(--fg); color: var(--bg); font-size: 16px; font-weight: var(--w-semibold); margin-top: 26px; transition: opacity var(--t-fast); }
.hub-download:hover { opacity: 0.9; }
.hub-access { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; }
.hub-access span { font-size: 14px; color: var(--fg-secondary); line-height: 1.5; }
.hub-access .btn { flex: none; white-space: nowrap; }
.hub-about { margin-top: clamp(40px, 6vw, 72px); max-width: var(--maxw-prose); }
.hub-about-h { font-size: var(--text-2xl); font-weight: var(--w-bold); color: var(--fg); margin: 0 0 14px; }
.hub-about p { font-size: var(--text-md); color: var(--fg-secondary); line-height: var(--lh-loose); }
