/* =========================================================
   richway club — 사용자 페이지 라이트 톤 (성성모두 skin-v3 참조)
   admin 페이지는 admin.css에서 body.admin-mode로 다크 톤 override
   ========================================================= */

:root {
  --accent:  #6B2CF5;
  --accent2: #9B6DFF;
  --dark:    #1A1226;
  --text1:   #1A1226;
  --text2:   #7C7589;
  --text3:   #B5B0C0;
  --bg:      #F7F6FB;
  --card:    #FFFFFF;
  --line:    #ECE9F2;
  --red:     #FF4757;
  --green:   #2ED573;
  --amber:   #F59E0B;
  --blue:    #38BDF8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text1);
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.container.narrow { max-width: 460px; }

/* 인증 페이지 (login/register/forgot) 상단 헤더 — landing-header와 동일 높이 */
.auth-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.auth-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

/* 휴대폰 인증 입력 row */
.phone-field { gap: 8px; }
.phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.phone-row input {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 14px;
  font-size: 14px;
}
.phone-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 13px 18px;
  font-size: 13px;
}
.phone-row .btn.small,
.phone-row .btn.primary.small,
.phone-row .btn.ghost.small {
  /* 다른 small 정의 무시하고 row 안에선 input과 같은 높이 */
  padding: 13px 18px;
  font-size: 13px;
}

/* 동의 묶음 */
.consents { display: flex; flex-direction: column; gap: 2px; }
.consents .radio { padding: 6px 0; font-size: 13px; }
.consents .radio strong { color: var(--red); font-weight: 700; margin-right: 4px; }
.consents .radio strong.opt { color: var(--text2); }
.consent-all strong { color: var(--accent) !important; font-size: 14px; }
.consent-divider {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 4px 0;
}

h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.5px; font-weight: 700; }
h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--text1); }
.lead { margin: 0 0 24px; color: var(--text2); }
.muted { color: var(--text2); }
.ok { color: var(--green); }
.bad { color: var(--red); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

pre {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  font-size: 12px;
  color: var(--text2);
}

/* ===== 카드 / 패널 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(26, 18, 38, 0.04);
}
.panel { margin-bottom: 14px; }

/* ===== 폼 ===== */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none !important; }
.field > span, .field > legend {
  font-size: 13px;
  color: var(--text2);
  font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="number"],
.field input[type="datetime-local"],
.field select,
.field textarea {
  background: #fff;
  color: var(--text1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  font: inherit;
  font-weight: 500;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 44, 245, 0.15);
}
.field textarea {
  min-height: 200px;
  resize: vertical;
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  font-size: 13px;
}
fieldset.field { border: none; padding: 0; margin: 0; }

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--text1);
}
.radio input { accent-color: var(--accent); }

.field-row { display: flex; gap: 16px; align-items: flex-end; }
.field-row .field { flex: 1; }

/* ===== 버튼 ===== */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: filter 0.15s, transform 0.05s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: #5A22D6; }

.btn.ghost {
  background: transparent;
  color: var(--text1);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn.danger {
  background: #FFF1F2;
  color: var(--red);
  border: 1px solid #FECDD3;
}
.btn.danger:hover { background: #FFE4E6; }

.btn.small { padding: 7px 14px; font-size: 13px; }

.cta-row { display: flex; gap: 10px; margin: 20px 0 28px; }
.cta-row .btn { padding: 12px 20px; }

.form-actions { display: flex; gap: 8px; }
.form-msg { min-height: 18px; font-size: 13px; font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.bad { color: var(--red); }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.topbar-logo:hover { text-decoration: none; }
.topbar-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}
.topbar-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-logo-name { font-size: 14px; font-weight: 800; color: var(--text1); letter-spacing: -0.3px; }
.topbar-logo-en { font-size: 9px; color: var(--text2); font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; }

/* 동의 항목 옆 [보기] 링크 */
.consents .consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}
.consents .consent-row .radio { flex: 1 1 auto; margin: 0; }
.consents .consent-view {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text2);
  text-decoration: underline;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.consents .consent-view:hover {
  color: var(--accent);
  background: rgba(107, 44, 245, 0.06);
  text-decoration: none;
}

/* 약관 페이지 (terms / privacy / marketing / third-party) */
.legal-page { padding-top: 24px; padding-bottom: 48px; }
.legal-page h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text1);
  letter-spacing: -0.3px;
}
.legal-effective {
  font-size: 12px;
  margin: 0 0 24px;
}
.legal-section { margin: 0 0 28px; }
.legal-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text1);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.legal-section p,
.legal-section li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text1);
}
.legal-section ol,
.legal-section ul { margin: 8px 0 0; padding-left: 22px; }
.legal-section ul ul { margin: 4px 0; }
.legal-section li { margin-bottom: 4px; }
.legal-section-required,
.legal-section-optional {
  background: rgba(107, 44, 245, 0.04);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.legal-section-optional {
  background: rgba(245, 158, 11, 0.06);
  border-left-color: #F59E0B;
}
.legal-lead { margin: 0 !important; font-size: 13px !important; }
.legal-section-info {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 36px;
}
.legal-section-info h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
  font-size: 14px;
}
.legal-section-info p { font-size: 12.5px; color: var(--text2); margin: 0; }
.legal-bottom { margin-top: 32px; text-align: center; }

/* CI wordmark — topbar / landing-header 공통 */
.topbar-logo-img,
.landing-logo-img {
  display: block;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.topbar-logo-img { height: 36px; }
.landing-logo-img { height: 40px; }
@media (max-width: 480px) {
  .topbar-logo-img { height: 30px; }
  .landing-logo-img { height: 34px; }
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-user-info { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.topbar-user-name { font-size: 13px; font-weight: 700; color: var(--text1); }

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-settings-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.topbar-settings-btn:hover { background: rgba(107, 44, 245, 0.08); border-color: var(--accent); color: var(--accent); }

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
.topbar-menu-item {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.topbar-menu-item:hover {
  background: var(--bg);
  color: var(--text1);
  text-decoration: none;
}
.topbar-menu-admin { color: var(--accent); font-weight: 700; }
.topbar-menu-admin:hover { background: rgba(107, 44, 245, 0.08); color: var(--accent); }
.topbar-wallet-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
}

/* Wallet modal — 내 쿠폰함 */
.wallet-modal { padding: 4px 0; }
.wallet-title { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: var(--text1); letter-spacing: -0.3px; }
.wallet-empty { text-align: center; padding: 30px 10px; line-height: 1.6; }
.wallet-list { display: flex; flex-direction: column; gap: 10px; }
.wallet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F7F2FF, #FFFFFF);
  border: 1px dashed var(--accent2);
  cursor: pointer;
  transition: transform 0.05s, box-shadow 0.15s;
}
.wallet-item:hover, .wallet-item:focus {
  outline: none;
  box-shadow: 0 4px 14px rgba(107, 44, 245, 0.12);
}
.wallet-item:active { transform: scale(0.998); }
.wallet-item-left { flex: 1; min-width: 0; }
.wallet-item-partner { font-size: 11px; color: var(--text2); margin-bottom: 2px; }
.wallet-item-title { font-size: 14px; font-weight: 700; color: var(--text1); margin-bottom: 2px; }
.wallet-item-discount { font-size: 12px; color: var(--accent); font-weight: 700; }
.wallet-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.wallet-item-code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

/* 서비스 신청 모달 */
.apply-modal { padding: 4px 0; }
.apply-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--text1); }
.apply-partner { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.apply-coupon-field span,
.apply-note-field span { font-size: 13px; font-weight: 600; color: var(--text1); display: block; margin-bottom: 4px; }
.apply-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; background: var(--card); color: var(--text1); margin-bottom: 14px;
}
.apply-note-field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; resize: vertical; margin-bottom: 14px; font-family: inherit;
}

/* 쿠폰함 내 신청 내역 */
.wallet-requests { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.wallet-subtitle { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--text1); }
.sr-item { cursor: default; }
.sr-item:hover { transform: none; box-shadow: 0 1px 4px rgba(107,44,245,.06); }
.sr-note { font-size: 11px; margin-top: 2px; }
.sr-admin-note { font-size: 11px; margin-top: 2px; font-style: italic; }
.sr-pending  { background: var(--amber); color: #fff; }
.sr-approved { background: var(--blue); color: #fff; }
.sr-rejected { background: var(--red); color: #fff; }
.sr-completed { background: var(--green); color: #fff; }

/* Settings modal — 개인정보 수정 */
.settings-modal { padding: 4px 0; }
.settings-title { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: var(--text1); letter-spacing: -0.3px; }
.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text1);
}
.settings-modal .field input:disabled,
.settings-modal .field select:disabled {
  background: var(--bg);
  color: var(--text2);
  cursor: not-allowed;
}
.settings-modal .field small { margin-top: 4px; font-size: 11px; }

@media (max-width: 480px) {
  .topbar-logo-en { display: none; }
  .topbar-user-info { display: none; }
  .topbar-menu-item { padding: 6px 8px; font-size: 11px; }
}

/* ===== 뱃지 ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.badge-general  { background: #F3F1F8; color: var(--text2); }
.badge-foreign  { background: #DBEAFE; color: #2563EB; }
.badge-business { background: #FEF3C7; color: #B45309; }

/* ===== Health box (index.html) ===== */
.status {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.status h2 { margin: 0 0 10px; font-size: 13px; color: var(--text2); font-weight: 600; }

/* ===== Partner 카드 ===== */
.partners-list { display: flex; flex-direction: column; gap: 14px; }
.partner-card {
  background: #FAFAFE;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.partner-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.partner-name { font-size: 15px; font-weight: 700; color: var(--text1); }
.partner-category {
  font-size: 11px;
  color: var(--accent);
  background: rgba(107, 44, 245, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.partner-desc { margin: 0 0 12px; font-size: 13px; line-height: 1.4; color: var(--text2); }

.benefit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.benefit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF;
  border: 1px solid var(--line);
}
.benefit-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.benefit-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(107, 44, 245, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.benefit-title { font-size: 14px; font-weight: 600; color: var(--text1); }
.benefit-desc { font-size: 12px; color: var(--text2); }

/* ===== 쿠폰 카드 ===== */
.coupons-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-card {
  background: linear-gradient(135deg, #F7F2FF, #FFFFFF);
  border: 1px dashed var(--accent2);
  border-radius: 12px;
  padding: 14px 16px;
}
.coupon-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.coupon-partner { font-size: 12px; color: var(--text2); font-weight: 600; }
.coupon-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.coupon-status.cs-issued  { background: #D1FAE5; color: #047857; }
.coupon-status.cs-used    { background: #F3F4F6; color: var(--text2); }
.coupon-status.cs-expired { background: #FEE2E2; color: var(--red); }
.coupon-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text1); }
.coupon-code {
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.coupon-issued { font-size: 11px; color: var(--text3); }
.coupon-hint { font-size: 11px; margin-top: 6px; color: var(--accent); font-weight: 600; }
.cc-clickable { cursor: pointer; transition: transform 0.05s, box-shadow 0.15s; }
.cc-clickable:hover { box-shadow: 0 4px 14px rgba(107, 44, 245, 0.12); }
.cc-clickable:active { transform: scale(0.998); }

/* 쿠폰 QR 모달 */
.cqr { text-align: center; padding: 8px 4px; }
.cqr-partner { font-size: 12px; margin-bottom: 6px; }
.cqr-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--text1); }
.cqr-discount { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.cqr-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.cqr-status.cs-issued  { background: #D1FAE5; color: #047857; }
.cqr-status.cs-used    { background: #F3F4F6; color: var(--text2); }
.cqr-status.cs-expired { background: #FEE2E2; color: var(--red); }
.cqr-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #FFF;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0 auto 14px;
  width: fit-content;
}
.cqr-qr-wrap > div { line-height: 0; }
.cqr-code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.cqr-note { font-size: 12px; line-height: 1.5; padding: 0 20px; }

/* ===== 교육 컨텐츠 카드 ===== */
.education-list { display: flex; flex-direction: column; gap: 10px; }
.ec-card {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.05s;
}
.ec-card:hover, .ec-card:focus { border-color: var(--accent); outline: none; }
.ec-card:active { transform: scale(0.998); }
.ec-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ec-cat {
  font-size: 11px;
  font-weight: 700;
  color: #2563EB;
  background: #DBEAFE;
  padding: 2px 8px;
  border-radius: 999px;
}
.ec-date { font-size: 11px; color: var(--text3); }
.ec-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text1); }
.ec-summary { font-size: 13px; line-height: 1.4; margin: 0; color: var(--text2); }

/* ===== 모달 ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 38, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none !important; }
.modal {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  max-width: 720px;
  width: 100%;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(26, 18, 38, 0.15);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  color: var(--text3);
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text1); }

.ec-detail .ec-title { font-size: 22px; margin: 8px 0 10px; }
.ec-video {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}
.ec-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.ec-body { font-size: 14px; line-height: 1.7; color: var(--text1); }
.ec-body p { margin: 0 0 12px; }
.ec-body ol, .ec-body ul { padding-left: 22px; }
.ec-body li { margin-bottom: 4px; }

/* ===== 실시간 강의 카드 ===== */
.live-list { display: flex; flex-direction: column; gap: 10px; }
.live-card {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.live-card.live-live {
  border-color: rgba(255, 71, 87, 0.4);
  background: linear-gradient(135deg, #FFF5F6, #FFF);
}
.live-card.live-scheduled { border-color: rgba(56, 189, 248, 0.3); }
.live-card.live-ended { opacity: 0.6; background: #FAFAFE; }

.live-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.live-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.live-live .live-status {
  background: rgba(255, 71, 87, 0.12);
  color: var(--red);
  position: relative;
}
.live-live .live-status::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-scheduled .live-status { background: #E0F2FE; color: #0284C7; }
.live-ended .live-status { background: #F3F4F6; color: var(--text2); }
.live-time { font-size: 12px; color: var(--text2); }
.live-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; color: var(--text1); }
.live-instructor { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.live-desc { font-size: 13px; line-height: 1.4; margin: 0 0 10px; color: var(--text2); }
.live-actions { display: flex; gap: 8px; }

/* ===== Tab Nav ===== */
.tab-nav {
  position: sticky;
  top: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 9;
}
.tab-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  padding: 0 12px;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text2);
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.tab-btn:hover { color: var(--text1); }
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.tab-btn[hidden] { display: none !important; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .container { padding-top: 18px; }

/* ===== Main Banner (Swiper) ===== */
.main-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(107, 44, 245, 0.12);
}
.banner-slide {
  padding: 28px 24px 40px;
  min-height: 200px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.banner-club {
  background: linear-gradient(135deg, #6B2CF5 0%, #9B6DFF 100%);
}
.banner-howto {
  background: linear-gradient(135deg, #1A1226 0%, #4A2A8C 100%);
}
.banner-cats {
  background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
}
.banner-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.banner-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.25;
}
.banner-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}
.banner-cta {
  align-self: flex-start;
  background: #fff;
  color: var(--accent);
}
.banner-cta:hover { background: #F3E8FF; color: var(--accent); }
.banner-flow {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.banner-flow li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.banner-cat-chip {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.banner-cat-chip:hover { background: rgba(255, 255, 255, 0.25); text-decoration: none; }
.banner-cat-name { display: block; font-size: 12px; font-weight: 700; }
.banner-cat-count { display: block; font-size: 11px; opacity: 0.8; margin-top: 2px; }

.main-banner .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.main-banner .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* ===== Category chip 슬라이더 ===== */
.cat-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin: 0 -4px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.cat-chip-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
  font-family: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.15s;
}
.cat-chip:hover { border-color: var(--accent); }
.cat-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ================================================================
   라이브 위젯 — 성성모두 .live-benefit-section 패턴 (이중 박스)
   외부 박스 #111827 + 내부 카드 #1F2937→#374151
================================================================ */
.live-benefit-section {
  margin: 0 0 22px;
  background: #111827;
  border-radius: 16px;
  padding: 16px;
  color: #fff;
}
.live-benefit-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.live-label {
  font-size: 12px;
  font-weight: 800;
  color: #EF4444;
  letter-spacing: 0.5px;
}
.live-status {
  font-size: 11px;
  color: #9CA3AF;
  margin-left: 6px;
  font-weight: 600;
}
.live-today-btn {
  margin-left: auto;
  background: rgba(99, 102, 241, 0.18);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.live-today-btn:hover { background: rgba(99, 102, 241, 0.3); }

/* 강의 시간표 모달 */
.live-schedule-modal .schedule-title { font-size: 18px; font-weight: 800; margin: 0 0 16px; color: var(--text1); }
.live-schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.schedule-row.is-live { border-color: rgba(239, 68, 68, 0.4); background: #FFF5F6; }
.schedule-row.is-scheduled { border-color: rgba(99, 102, 241, 0.3); }
.schedule-row.is-ended { opacity: 0.6; }
.schedule-time {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  min-width: 90px;
  line-height: 1.3;
}
.schedule-time .schedule-date { color: var(--text2); font-size: 10px; font-weight: 600; display: block; }
.schedule-info { flex: 1; min-width: 0; }
.schedule-row-title { font-size: 14px; font-weight: 700; color: var(--text1); }
.schedule-row-instr { font-size: 11px; color: var(--text2); margin-top: 2px; }
.schedule-status {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.schedule-status.ss-live { background: #EF4444; color: #fff; }
.schedule-status.ss-scheduled { background: #E0E7FF; color: #4338CA; }
.schedule-status.ss-ended { background: #F3F4F6; color: var(--text2); }

.live-benefit-body {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.live-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.live-main-carousel {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}
.live-main-card {
  display: none;
  background: linear-gradient(135deg, #1F2937, #374151);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.live-main-card.active { display: flex; }
.live-main-badge {
  display: inline-block;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
}
.live-main-type {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  width: fit-content;
}
.live-main-title {
  font-size: 15px;
  font-weight: 800;
  color: #F9FAFB;
  line-height: 1.4;
  margin-bottom: 6px;
}
.live-main-desc {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.5;
}
.live-main-store {
  font-size: 11px;
  color: #6366F1;
  font-weight: 600;
  margin-top: 8px;
}
.live-receive-btn {
  margin-top: 10px;
  align-self: flex-start;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  font-family: inherit;
  text-decoration: none;
}
.live-receive-btn:hover { transform: translateY(-1px); text-decoration: none; }
.live-receive-btn:active { transform: translateY(0); }
.live-receive-btn-disabled,
.live-receive-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #E5E7EB;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}
.live-receive-btn-disabled { cursor: not-allowed; opacity: 0.6; }

.live-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 80px;
  flex-shrink: 0;
}
.live-side-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #1F2937;
  border: 1.5px solid #374151;
  border-radius: 10px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.live-side-btn.active {
  background: #4338CA;
  border-color: #6366F1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.live-side-btn:not(.active):hover {
  border-color: #6366F1;
  background: #1e1b4b;
}
.live-side-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.live-side-label {
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.live-side-btn.active .live-side-label { color: #FBBF24; }
.live-side-time {
  font-size: 9.5px;
  font-weight: 700;
  color: #6B7280;
  text-align: center;
  line-height: 1.2;
}
.live-side-btn.active .live-side-time {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* =========================================================
   Landing (시작 페이지, index.html)
   ========================================================= */
/* 시작 페이지 — body/main flex로 헤더·히어로·푸터가 viewport에 자연스럽게 흐름 */
body:has(.landing-header) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:has(.landing-header) main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
body:has(.landing-header) .landing-hero { flex: 1; }

.landing-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.landing-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 80px;
}
.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.landing-logo:hover { text-decoration: none; }
.landing-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}
.landing-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.landing-logo-name { font-size: 15px; font-weight: 800; color: var(--text1); letter-spacing: -0.3px; }
.landing-logo-en { font-size: 10px; color: var(--text2); font-weight: 600; letter-spacing: 0.5px; }
.landing-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  order: 2;
}
.landing-nav .btn.primary {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.landing-nav-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
}
.landing-nav-sub a {
  color: var(--text2);
  font-weight: 600;
  text-decoration: none;
  padding: 2px 0;
}
.landing-nav-sub a:hover { color: var(--accent); }
.landing-nav-sub .sub-sep { color: var(--text3); }

@media (max-width: 480px) {
  .landing-nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; }
  .landing-nav-sub { font-size: 11px; order: -1; }
}

/* 언어 선택 스위처 — 시작/인증 페이지 공통 */
.auth-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px 5px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text1);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.lang-switcher:hover {
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(107, 44, 245, 0.12);
}
.lang-switcher-icon {
  font-size: 13px;
  line-height: 1;
  opacity: 0.85;
}
.lang-switcher select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
  padding: 0 2px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='%237C7589' d='M5 7L1 3h8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 12px;
}
@media (max-width: 480px) {
  .lang-switcher { padding: 4px 6px 4px 8px; font-size: 11px; }
  .lang-switcher select { font-size: 11px; padding-right: 10px; }
}

/* admin 다크 톤 variant — admin 헤더(#0F172A)와 대비를 위해 노랑(FBBF24) 보더로 두드러지게 */
.admin-lang-switcher {
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid #FBBF24;
  color: #FBBF24;
}
.admin-lang-switcher select {
  color: #FBBF24;
  font-weight: 700;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='%23FBBF24' d='M5 7L1 3h8z'/></svg>");
}
.admin-lang-switcher select option {
  background: #1F2937;
  color: #F8FAFC;
}
.admin-lang-switcher .lang-switcher-icon { opacity: 1; }
.admin-lang-switcher:hover {
  background: rgba(251, 191, 36, 0.18);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.18);
}

/* 헤더 직하단 언어 스위처 박스 — 헤더 공간 부족으로 빼낸 lang-switcher 자리 */
.lang-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 0;
}
.lang-bar.lang-bar-narrow {
  max-width: 520px;
}
@media (max-width: 480px) {
  .lang-bar { padding: 8px 12px 0; }
}
body.admin-mode .lang-bar { padding-top: 12px; }

/* Hero 안 평이한 통계 한 줄 */
.landing-hero-meta {
  margin: 14px 0 18px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
.landing-hero-meta strong { color: var(--accent); font-weight: 700; }
.landing-hero-meta .meta-sep { margin: 0 8px; color: var(--text3); }

/* =============================================
   사업단 탭 — 운영사 안내 strip (탭2 상단)
   ============================================= */
.biz-operator-intro {
  background: linear-gradient(135deg, #F7F2FF, #FFFFFF);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.biz-operator-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.biz-operator-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.biz-operator-text strong { font-size: 13px; color: var(--text1); font-weight: 700; }
.biz-operator-text .muted { font-size: 11px; font-style: italic; margin-top: 2px; }
.biz-operator-cta { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) {
  .biz-operator-cta { width: 100%; text-align: center; }
}

/* =============================================
   /about.html — 운영사 상세 페이지 섹션
   ============================================= */
.landing-info-section {
  background: var(--card);
  padding: 48px 20px;
  border-bottom: 1px solid var(--line);
}

/* 운영사 안내 모달 — 모달 가운데 카드 폭 확장 + 카드 내부 톤 매칭 */
.modal-backdrop:not(.admin-modal-backdrop) .modal:has(.info-modal-wrap) {
  max-width: 960px;
}
.info-modal-wrap .info-head { text-align: center; margin-bottom: 24px; }
.info-modal-wrap .info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
@media (min-width: 760px) {
  .info-modal-wrap .info-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.info-modal-wrap .info-bottom {
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 760px) {
  .info-modal-wrap .info-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.landing-info-inner {
  max-width: 980px;
  margin: 0 auto;
}

.info-head { text-align: center; margin-bottom: 32px; }
.info-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(107, 44, 245, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.info-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text1);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.operator-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1E40AF;
  background: #DBEAFE;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.info-slogan {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
  font-style: italic;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 720px) {
  .info-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.info-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.info-card-rookie       { border-top: 3px solid #6B2CF5; }
.info-card-experienced  { border-top: 3px solid #0EA5E9; }
.info-card-hexagon      { border-top: 3px solid #F59E0B; }

.info-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text2);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.info-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text1);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.info-card-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin: 0 0 14px;
}

.info-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.info-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text1); }
.info-steps li small { display: block; font-size: 10px; color: var(--text3); font-weight: 600; margin-top: 1px; }
.step-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.info-tracks { display: flex; flex-wrap: wrap; gap: 6px; }
.track-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text1);
}
.track-chip em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #EF4444;
  background: #FEE2E2;
  padding: 1px 5px;
  border-radius: 4px;
}
.track-chip.tc-yellow   { border-color: #FBBF24; color: #92400E; }
.track-chip.tc-navy     { border-color: #1E3A8A; color: #1E3A8A; }
.track-chip.tc-blue     { border-color: #3B82F6; color: #1E40AF; }
.track-chip.tc-green    { border-color: #10B981; color: #047857; }
.track-chip.tc-red      { border-color: #EF4444; color: #B91C1C; }
.track-chip.tc-orange   { border-color: #F97316; color: #C2410C; }
.track-chip.tc-burgundy { border-color: #9F1239; color: #9F1239; }

.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.info-list li { font-size: 13px; color: var(--text1); }
.info-list li strong { display: block; font-weight: 700; }
.info-list li small { font-size: 11px; color: var(--text2); font-weight: 600; }

.info-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
@media (min-width: 720px) {
  .info-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.info-platform { display: flex; align-items: center; gap: 12px; }
.platform-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.info-platform strong { display: block; font-size: 14px; color: var(--text1); font-weight: 800; }
.info-platform .muted { font-size: 11px; }
.info-platform a { color: var(--accent); }

.info-contacts { font-size: 12px; color: var(--text2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.info-contacts strong { color: var(--text1); font-weight: 700; }
.info-contacts a { color: var(--accent); font-weight: 700; }

@media (max-width: 640px) {
  .landing-header-inner { gap: 10px; padding: 16px; }
  .landing-hero-meta { font-size: 12px; }
}

.landing-hero {
  position: relative;
  background: linear-gradient(135deg, #F7F2FF 0%, #E9F4FF 100%);
  padding: 24px 20px 64px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.landing-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.landing-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(107, 44, 245, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.landing-hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text1);
}
.landing-hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 580px;
  margin: 0 0 28px;
}
.landing-hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.landing-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
}
.action-toast {
  font-size: 12px;
  color: var(--accent);
  background: rgba(107, 44, 245, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.action-toast[hidden] { display: none !important; }
.btn-large {
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
  min-width: 200px;
}
.landing-hero-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text2);
}
.landing-hero-sub a {
  color: var(--text2);
  font-weight: 600;
  padding: 6px 4px;
}
.landing-hero-sub a:hover { color: var(--accent); }
.landing-hero-sub .sub-sep { color: var(--text3); margin: 0 6px; }
.sub-install {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-left: 12px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
}
.sub-install:hover { border-color: var(--accent); color: var(--accent); }

.landing-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 44, 245, 0.18) 0%, transparent 65%);
  right: -120px;
  top: -120px;
}
.hero-blob.hero-blob-2 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 65%);
  right: 100px;
  top: 200px;
  width: 320px;
  height: 320px;
}

@media (max-width: 640px) {
  .landing-hero { padding: 16px 20px 50px; }
  .landing-hero-title { font-size: 26px; }
  .landing-hero-desc { font-size: 13px; }
  .hero-blob { width: 320px; height: 320px; right: -80px; }
  .hero-blob.hero-blob-2 { width: 240px; height: 240px; right: 40px; top: 160px; }
  .landing-nav .btn.primary { padding: 9px 18px; font-size: 13px; }
  .landing-nav-sub { font-size: 10px; }
}

/* ===== Stats (사용 안 함 — 헤더로 이동, 호환용으로 유지) ===== */
.landing-stats { padding: 36px 20px; background: var(--bg); }
.landing-stats-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .landing-stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-card-status { grid-column: span 2; }
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(26, 18, 38, 0.04);
}
.stat-label { font-size: 12px; color: var(--text2); font-weight: 600; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; line-height: 1.2; }
.stat-value.ok  { color: var(--green); }
.stat-value.bad { color: var(--red); }
.stat-sub { font-size: 11px; margin-top: 4px; }

/* ===== Footer (컴팩트) ===== */
.landing-footer { background: #1A1226; color: #94A3B8; padding: 16px 20px; }
.landing-footer-inner {
  max-width: 980px;
  margin: 0 auto;
}
.footer-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #B5B0C0;
}
.footer-line strong { color: #fff; font-weight: 700; }
.footer-line a { color: #C4B5FD; text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }
.footer-sep { margin: 0 4px; opacity: 0.5; }
.footer-line-sub { font-size: 11px; color: #94A3B8; margin-top: 2px; }
.footer-copy { font-size: 11px; color: #6B6478; margin-top: 4px; }

/* ===== Section head ===== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 12px;
}
.section-head h2 { margin: 0; }

/* ===== 카테고리 그룹 ===== */
.cat-section { margin-bottom: 22px; }
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 4px 10px;
}
.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: -0.2px;
}
.cat-count { font-size: 12px; }

/* Partner Swiper (성성모두 패턴) */
.partner-swiper {
  margin: 0 -4px;
  padding: 4px 4px 32px;
  position: relative;
  overflow: hidden;
}

/* 카테고리 필터 적용 시: swiper destroy 후 3열 grid로 모두 보임 */
.cat-section.is-filtered .partner-swiper {
  overflow: visible;
  padding-bottom: 8px;
}
.cat-section.is-filtered .partner-swiper .swiper-wrapper {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
  transform: none !important;
}
@media (min-width: 520px) {
  .cat-section.is-filtered .partner-swiper .swiper-wrapper { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .cat-section.is-filtered .partner-swiper .swiper-wrapper { grid-template-columns: 1fr 1fr 1fr; }
}
.cat-section.is-filtered .partner-swiper .swiper-slide {
  width: auto !important;
  margin: 0 !important;
  height: auto;
}
.cat-section.is-filtered .partner-swiper .swiper-pagination { display: none; }
.partner-swiper .swiper-wrapper { align-items: stretch; }
.partner-swiper .swiper-slide {
  height: auto;
  display: flex;
}
.partner-swiper .swiper-slide .partner-card-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.partner-swiper .swiper-slide .partner-actions { margin-top: auto; }

.partner-swiper .swiper-pagination {
  position: absolute;
  bottom: 6px;
}
.partner-swiper .swiper-pagination-bullet {
  background: var(--text3);
  opacity: 0.5;
}
.partner-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}

/* (호환용 유지) .partner-grid는 사용 안 함 — 6b 잔재 */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ===== 새 파트너 카드 (v2) — 카테고리별 액센트 ===== */
.partner-card-v2 {
  --card-accent: var(--accent);
  --card-accent-soft: rgba(107, 44, 245, 0.08);
  --card-accent-bg: linear-gradient(180deg, rgba(107, 44, 245, 0.05) 0%, #FFFFFF 60%);

  background: var(--card-accent-bg), var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.05s, box-shadow 0.2s;
}
.partner-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent);
}
.partner-card-v2:hover, .partner-card-v2:focus {
  border-color: var(--card-accent);
  outline: none;
  box-shadow: 0 6px 20px rgba(26, 18, 38, 0.08);
  transform: translateY(-1px);
}
.partner-card-v2:active { transform: translateY(0) scale(0.998); }

/* 카테고리별 컬러 — finance/medical/lifestyle */
.partner-card-v2[data-cat="finance_legal"] {
  --card-accent: #6B2CF5;
  --card-accent-soft: rgba(107, 44, 245, 0.1);
  --card-accent-bg: linear-gradient(180deg, rgba(107, 44, 245, 0.06) 0%, #FFFFFF 55%);
}
.partner-card-v2[data-cat="medical"] {
  --card-accent: #0EA5E9;
  --card-accent-soft: rgba(14, 165, 233, 0.1);
  --card-accent-bg: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, #FFFFFF 55%);
}
.partner-card-v2[data-cat="lifestyle"] {
  --card-accent: #F59E0B;
  --card-accent-soft: rgba(245, 158, 11, 0.12);
  --card-accent-bg: linear-gradient(180deg, rgba(245, 158, 11, 0.07) 0%, #FFFFFF 55%);
}

/* 카드 안 QR 알약·discount 알약은 카테고리 액센트와 매칭 */
.partner-card-v2 .partner-qr-pill {
  color: var(--card-accent);
  background: var(--card-accent-soft);
}
.partner-card-v2 .partner-tagline { color: var(--card-accent); }
.partner-card-v2 .benefit-tag {
  color: var(--card-accent);
  background: var(--card-accent-soft);
}

.partner-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.partner-title { font-size: 15px; font-weight: 700; color: var(--text1); flex: 1; min-width: 0; }
.partner-qr-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(107, 44, 245, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.partner-card-v2 .partner-name { font-size: 12px; margin-bottom: 4px; }
.partner-subtitle { margin: 4px 0; font-size: 12px; line-height: 1.4; color: var(--text2); }
.partner-tagline {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
}
.partner-meta-row { margin: 8px 0; }
.meta-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: #FEF3C7;
  color: #B45309;
  padding: 3px 10px;
  border-radius: 999px;
}
.partner-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ===== 파트너 상세 모달 ===== */
.partner-detail .pd-head { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.cat-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(107, 44, 245, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.qr-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.pd-title { font-size: 22px; font-weight: 800; margin: 4px 0 6px; color: var(--text1); letter-spacing: -0.4px; }
.pd-partner { font-size: 13px; margin-bottom: 6px; }
.pd-subtitle { margin: 6px 0; font-size: 14px; color: var(--text2); line-height: 1.5; }
.pd-tagline {
  margin: 6px 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
}
.pd-desc { margin: 10px 0; font-size: 14px; color: var(--text1); line-height: 1.6; }

.pd-strong {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.pd-strong-item {
  font-size: 13px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  padding: 8px 14px;
  border-radius: 10px;
}

.pd-section { margin: 18px 0; }
.pd-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pd-subsection { margin: 10px 0; }
.pd-subsection-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.pd-bullets { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--text1); }
.pd-bullets li { margin-bottom: 3px; }

.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip {
  font-size: 12px;
  background: var(--bg);
  color: var(--text1);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.pd-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) {
  .pd-cards { grid-template-columns: 1fr 1fr; }
}
.pd-mini-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.pd-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

/* pricing — pricing 배열 렌더링 */
.pd-pricing-list { display: flex; flex-direction: column; gap: 8px; }
.pd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.pd-price-plan { font-size: 14px; font-weight: 700; color: var(--text1); }
.pd-price-includes { font-size: 12px; color: var(--text2); display: block; margin-top: 2px; font-weight: 500; }
.pd-price-amount { font-size: 16px; font-weight: 800; color: var(--accent); }
.pd-price-strike { text-decoration: line-through; color: var(--text3); font-size: 12px; font-weight: 500; margin-right: 6px; }

/* attorney */
.pd-attorney { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pd-attorney-name { font-size: 16px; font-weight: 800; color: var(--text1); }
.pd-attorney-title { font-size: 12px; margin: 2px 0 10px; }
.pd-attorney-row { margin-top: 8px; }
.pd-attorney-label { font-size: 11px; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.pd-attorney-thesis { font-size: 13px; color: var(--text1); line-height: 1.5; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

/* note */
.pd-note {
  margin: 16px 0;
  padding: 12px 14px;
  background: #FFFBEB;
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  font-size: 13px;
  color: #92400E;
  line-height: 1.5;
}

/* flow */
.pd-flow {
  margin: 8px 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text1);
}
.pd-flow li { margin-bottom: 6px; }

/* 모달 안 쿠폰 영역 */
.pd-coupons {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.pd-coupon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 6px;
}
.pd-coupon-title { flex: 1; font-size: 13px; color: var(--text1); }

/* 사용법 모달 */
.howto .pd-title { font-size: 20px; }
