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

:root {
  --accent:  #1A6CB0;
  --accent2: #2196F3;
  --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: 0 20px;
}
.container.narrow { max-width: 460px; }
.container.narrow h1 { font-size: 20px; font-weight: 600; }
.container.narrow .lead { font-size: 13px; }
.container.narrow .field > span,
.container.narrow .field > legend { font-size: 13px; }
.container.narrow input,
.container.narrow select { font-size: 14px; }
.container.narrow .btn { font-size: 14px; }
.container.narrow p { font-size: 13px; }

/* 인증 페이지 (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: 50;
  backdrop-filter: saturate(180%) blur(8px);
}
.auth-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 휴대폰 인증 입력 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: #145a94; }

.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.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.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: 10px;
}
.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-info[hidden] { display: none !important; }
.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[hidden] { display: none !important; }
.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(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
}
.topbar-wallet-count[hidden] { display: none !important; }

/* 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; }
.badge-point { background: #E0E7FF; color: #4338CA; font-weight: 700; margin-left: 6px; }

/* ===== 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: 53px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.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)
   ========================================================= */
/* 시작 페이지 레이아웃 */

.landing-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}
.landing-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.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(160deg, #241449 0%, #3a1d7a 45%, #6B2CF5 100%);
  color: #fff;
  padding: 26px 20px 32px;
  overflow: hidden;
}
.landing-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.landing-hero-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.landing-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
}
.landing-hero-members {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}
.landing-hero-members strong {
  color: #fff;
  font-weight: 800;
}
.landing-hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
}
.landing-hero-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
  margin: 0;
}
.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: 220px;
  height: 220px;
  border-radius: 50%;
  background: #9B6DFF;
  filter: blur(40px);
  opacity: 0.5;
  right: -40px;
  top: -60px;
}
.hero-blob.hero-blob-2 {
  background: #38BDF8;
  right: 80px;
  bottom: -50px;
  top: auto;
  width: 160px;
  height: 160px;
  opacity: 0.35;
}

@media (max-width: 640px) {
  .landing-nav .btn.primary { padding: 8px 14px; 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: 12px 0 12px;
}
.section-head h2 { margin: 0; }

/* ===== 카테고리 그룹 ===== */
.cat-section { margin-bottom: 22px; }
.cat-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cat-section-name { font-size: 17px; font-weight: 700; margin: 0; }
.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;

  display: flex;
  flex-direction: column;
}
.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: 14px;
  font-weight: 700;
  color: var(--text1);
  min-height: 2.8em;
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.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;
  color: var(--text2);
  margin: 0 0 8px;
  min-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-card-v2 .benefit-pill {
  margin-top: auto;
  margin-bottom: 10px;
}
.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: auto; }

/* ===== 파트너 상세 모달 ===== */
.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; }

/* =========================================================
   시작 페이지 신규 컴포넌트 (v2 redesign)
   ========================================================= */

/* 히어로 ghost 버튼 (다크 배경용) */
.hero-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.hero-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* 히어로 언어 스위처 (다크 배경용) */
.landing-hero .lang-switcher {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.landing-hero .lang-switcher:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.landing-hero .lang-switcher select {
  color: #fff;
  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='white' d='M5 7L1 3h8z'/></svg>");
}
.landing-hero .lang-switcher select option { color: var(--text1); }

/* 히어로 컴팩트 (홈 페이지 — 액션 바만) */
.landing-hero-compact {
  padding: 14px 16px 12px;
}
.landing-hero-compact .landing-hero-inner {
  padding: 0;
}
.landing-hero-compact .landing-hero-actions {
  margin-bottom: 0;
}

/* 검색바 */
.search-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  position: sticky;
  top: 53px;
  z-index: 40;
}
.search-wrap {
  max-width: 688px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  color: var(--text1);
}
.search-wrap input::placeholder { color: var(--text3); }
.search-wrap .ico { color: var(--text3); font-style: normal; }

/* 활동 카드 */
.activity-card {
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 16px 18px;
  color: var(--text1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.activity-notice { flex: 1; min-width: 0; }
.activity-label { font-size: 11px; font-weight: 700; color: var(--text2); margin-bottom: 4px; }
.activity-ticker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-visitor { text-align: center; flex: 0 0 auto; }
.activity-count { font-size: 24px; font-weight: 800; line-height: 1; color: var(--accent); }
.activity-vlabel { font-size: 11px; color: var(--text2); margin-top: 3px; }

/* 빠른 진입 */
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.quick-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.quick-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 18, 38, 0.07);
}
.quick-emoji { font-size: 22px; display: block; margin-bottom: 6px; }
.quick-label { font-size: 12px; font-weight: 600; color: var(--text1); }

/* 배너 캐러셀 */
.promo { margin: 0; position: relative; }
.promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 16px;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide {
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 20px 22px;
  color: #fff;
}
.promo-1 { background: linear-gradient(135deg, #6B2CF5, #9B6DFF); }
.promo-2 { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.promo-3 { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.promo-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; opacity: 0.9; }
.promo-title { font-size: 18px; font-weight: 800; margin: 6px 0 4px; }
.promo-desc { font-size: 13px; opacity: 0.9; margin: 0; }
.promo-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.promo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  opacity: 0.45;
  transition: 0.2s;
}
.promo-dot.active { background: var(--accent); opacity: 1; width: 18px; border-radius: 4px; }

/* 혜택 카탈로그 섹션 헤딩 */
.landing-section { padding: 6px 0 4px; }
.landing-section .section-head {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin: 0 0 0;
  padding: 18px 0;
  position: relative;
}
.landing-section .section-head::after {
  content: '';
  display: block;
  width: 210px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 4px;
}
.landing-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--text1);
}
.landing-section-sub { font-size: 13px; color: var(--text2); margin: 4px 0 0; }

/* 파트너 카드 리스트 (시작페이지용 — 3개씩 가로 스와이프) */
.partner-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.partner-list::-webkit-scrollbar { display: none; }
.partner-list > .partner-card-v2 {
  flex: 0 0 calc((100% - 20px) / 3);
  min-width: calc((100% - 20px) / 3);
  scroll-snap-align: start;
}

/* 카테고리 필터 선택 시 — 3열 그리드 (스와이프 없음) */
.partner-list.is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow-x: visible;
  scroll-snap-type: none;
}
.partner-list.is-grid > .partner-card-v2 {
  flex: none;
  min-width: 0;
  scroll-snap-align: none;
}

/* benefit pill (카드 내 요약 배지) */
.benefit-pill {
  display: inline-block;
  align-self: flex-start;
  background: var(--card-accent, var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* coupon-btn (시작페이지 카드 내) */
.coupon-btn {
  width: 100%;
  background: rgba(107, 44, 245, 0.08);
  color: var(--card-accent, var(--accent));
  border: 1px dashed var(--card-accent, var(--accent));
  border-radius: 10px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.coupon-btn:hover {
  background: var(--card-accent, var(--accent));
  color: #fff;
  border-style: solid;
}
.coupon-btn.is-owned,
.coupon-btn.is-owned:hover {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  cursor: default;
}

/* CTA 밴드 */
.cta-band {
  background: linear-gradient(135deg, #6B2CF5 0%, #4C1D95 100%);
  color: #fff;
  border-radius: 18px;
  padding: 24px 22px;
  margin: 10px 0 28px;
  text-align: center;
}
.cta-band h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.cta-band p { margin: 0 0 16px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn.primary { background: #fff; color: var(--accent); }
.cta-band .btn.primary:hover { background: #f0ebff; }

/* 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(26, 18, 38, 0.25);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 시작페이지 푸터 (v2 — 밝은 배경) */
.landing-footer-v2 {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0 40px;
}
.landing-footer-v2 .footer-line { color: var(--text2); }
.landing-footer-v2 .footer-line strong { color: var(--text1); }
.landing-footer-v2 .footer-copy { color: var(--text3); }
.landing-footer-v2 .footer-line a { color: var(--accent); }

/* 시작페이지 반응형 조정 */
@media (max-width: 640px) {
  .landing-hero { padding: 20px 16px 28px; }
  .landing-hero-title { font-size: 24px; }
  .quick-row { gap: 6px; }
  .quick-item { padding: 12px 4px; }
  .quick-emoji { font-size: 20px; }
  .quick-label { font-size: 11px; }
  .partner-list { gap: 8px; }
  .partner-list > .partner-card-v2 {
    flex: 0 0 calc((100% - 16px) / 3);
    min-width: calc((100% - 16px) / 3);
    padding: 12px 10px;
  }
  .partner-list .partner-title { font-size: 13px; }
  .partner-list .partner-name { font-size: 11px; }
  .partner-list .benefit-pill { font-size: 11px; padding: 3px 8px; }
  .partner-list .coupon-btn { font-size: 12px; padding: 7px; }
}
/* ===== 메인 홈 v2 (티맵 스타일) ===== */
:root {
  --rw-primary: #1A6CB0;
  --rw-primary-bg: #e3f0fa;
  --rw-accent: #A12362;
  --rw-accent-bg: #fce4ef;
}

/* 전체 배경 — PC에서 모바일 레이아웃 */
body { background: #f0f1f3; margin: 0; }
#app-shell {
  max-width: 480px; margin: 0 auto; background: #fff;
  min-height: 100vh; position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
}
@media (max-width: 480px) {
  body { background: #fff; }
  #app-shell { box-shadow: none; }
}

/* 홈 헤더 (CI 중앙 + 언어 우측) */
.home-header {
  background: #fff; padding: 16px 16px 12px;
}
.home-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 640px; margin: 0 auto;
}
.home-header-left { flex-shrink: 0; }
.home-header-logo {
  display: flex; flex-shrink: 0;
}
.home-header-logo img { height: 46px; width: auto; }
.home-header-right {
  flex: 1; min-width: 0;
  display: flex; justify-content: flex-end; align-items: center;
}

/* 상단 검색창 */
.home-search-bar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; padding: 10px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.home-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 22px; padding: 0 14px; height: 44px;
}
.home-search-icon { font-size: 16px; flex-shrink: 0; }
.home-search-input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 15px; color: #1a1a1a; min-width: 0;
}
.home-search-input::placeholder { color: #9a9a9a; }
.home-search-wrap:focus-within {
  border-color: var(--rw-primary);
}
.home-search-right { flex-shrink: 0; }
.lang-switcher-mini { padding: 2px 4px; font-size: 12px; }
.lang-switcher-mini select { font-size: 11px; padding: 2px; }

/* 공지 한 줄 배너 */
.home-notice-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--rw-primary-bg); cursor: pointer;
}
.home-notice-icon { font-size: 16px; flex-shrink: 0; }
.home-notice-text {
  flex: 1; font-size: 14px; color: var(--rw-primary); font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.home-notice-chevron { font-size: 18px; color: var(--rw-primary); flex-shrink: 0; }
.home-notice-text {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.notice-slide-out {
  transform: translateY(-100%); opacity: 0;
}
.notice-slide-in {
  animation: noticeSlideUp 0.3s ease-out;
}
@keyframes noticeSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 메인 영역 */
.home-main { padding: 0 16px 72px; }

/* 12개 서비스 아이콘 그리드 */
.home-services { padding: 16px 0 12px; }
.home-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px; text-align: center;
}
.home-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.home-grid-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.home-grid-icon--info { background: #fff; color: var(--rw-primary); }
.home-grid-icon--success { background: #fff; color: #1b5e20; }
.home-grid-icon--warning { background: #fff; color: #8a5a00; }
.home-grid-icon--secondary { background: #fff; color: #6b6b6b; }
.home-grid-label {
  font-size: 13px; color: #1a1a1a; font-weight: 400; line-height: 1.3;
}

/* 광고 배너 */
.home-banner-section { padding: 8px 0 16px; }
.home-banner { border-radius: 12px; overflow: hidden; }
.home-banner .swiper-slide {
  aspect-ratio: 2 / 1; background: #f5f6f8;
  border-radius: 12px; overflow: hidden;
}
.home-banner .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.home-banner .swiper-pagination-bullet-active { background: var(--rw-primary); }

/* 추천 혜택 섹션 */
.home-recommend { padding: 16px 0; }
.home-section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.home-section-head h2 {
  font-size: 17px; font-weight: 500; margin: 0;
}
.home-more-btn {
  background: none; border: none; color: #6b6b6b;
  font-size: 14px; cursor: pointer;
}
.home-recommend-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.home-recommend-card {
  background: #fff; border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 12px; overflow: hidden; cursor: pointer;
}
.home-recommend-img {
  width: 100%; aspect-ratio: 4 / 3;
  background: #f5f6f8; object-fit: cover;
}
.home-recommend-body { padding: 10px 12px; }
.home-recommend-title {
  font-size: 14px; font-weight: 500; color: #1a1a1a; margin: 0 0 4px;
}
.home-recommend-meta { font-size: 12px; color: #6b6b6b; }

/* 하단 네비 — 고정 바 + 원형 선택 인디케이터 */
.home-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 100;
  width: 100%; max-width: 480px;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--rw-accent);
  height: 62px; padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.home-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; background: none; border: none; cursor: pointer; position: relative;
  color: #fff; font-size: 12px;
  text-decoration: none; width: 50px; height: 50px; z-index: 1;
}
.home-nav-item[hidden] { display: none !important;
  transition: color 0.3s;
}
.home-nav-item.active { color: var(--rw-accent); font-weight: 700; }
.home-nav-item.active::before {
  content: ''; position: absolute;
  width: 64px; height: 48px; border-radius: 12px;
  background: #fff; z-index: -1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: none;
}
.home-nav-item.active.slide-right::before {
  animation: navSlideRight 0.3s ease-out;
}
.home-nav-item.active.slide-left::before {
  animation: navSlideLeft 0.3s ease-out;
}
@keyframes navSlideRight {
  0% { transform: translate(-150%, -50%); opacity: 0; }
  60% { transform: translate(-45%, -50%); opacity: 1; }
  100% { transform: translate(-50%, -50%); opacity: 1; }
}
@keyframes navSlideLeft {
  0% { transform: translate(50%, -50%); opacity: 0; }
  60% { transform: translate(-55%, -50%); opacity: 1; }
  100% { transform: translate(-50%, -50%); opacity: 1; }
}
.home-nav-icon { font-size: 20px; line-height: 1; }
.home-nav-icon svg { stroke-width: 1.5; }
.home-nav-item.active .home-nav-icon svg { stroke-width: 2.5; }
.home-nav-label { font-size: 10px; font-weight: 500; line-height: 1; }

/* 서브탭 (교육 등) */
.itp-subtabs {
  display: flex; border-bottom: 2px solid rgba(0,0,0,0.08);
  background: #fff;
}
.itp-subtab {
  flex: 1; padding: 12px 0; border: none; background: none;
  font-size: 14px; font-weight: 400; color: #999; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  text-align: center;
}
.itp-subtab.active {
  color: var(--rw-accent); font-weight: 600;
  border-bottom-color: var(--rw-accent);
}
.itp-subtab-panel { display: none; }
.itp-subtab-panel.active { display: block; }

/* 공지사항 게시판 */
.notice-item { border-bottom: 0.5px solid rgba(0,0,0,0.06); }
.notice-item.open { background: #fafafa; }
.notice-item-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 4px; cursor: pointer;
}
.notice-item-num {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--rw-primary-bg); color: var(--rw-primary);
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notice-item-info { flex: 1; min-width: 0; }
.notice-item-title {
  font-size: 14px; font-weight: 500; color: #1a1a1a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-new {
  display: inline-block; background: var(--rw-accent); color: #fff;
  font-size: 9px; font-weight: 700; padding: 1px 4px;
  border-radius: 3px; vertical-align: middle; margin-left: 4px;
}
.notice-item-meta { font-size: 11px; color: #9a9a9a; margin-top: 3px; }
.notice-item-arrow {
  font-size: 18px; color: #bbb; flex-shrink: 0;
  transition: transform 0.2s;
}
.notice-item-body { padding: 0 4px 16px 38px; }

/* 공지 상세 내부 */
.notice-detail-img {
  width: 100%; border-radius: 8px; margin-bottom: 12px;
}
.notice-detail-content {
  font-size: 13px; line-height: 1.8; color: #333;
  white-space: pre-wrap; margin-bottom: 14px;
}
.notice-reaction-bar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.notice-comments {
  border-top: 0.5px solid rgba(0,0,0,0.06); padding-top: 10px;
}
.notice-comment-form {
  display: flex; gap: 8px; margin-top: 8px;
}
.notice-comment-form input {
  flex: 1; padding: 8px 12px; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px; font-size: 13px; outline: none;
}
.notice-comment-form input:focus { border-color: var(--rw-primary); }
.notice-comment-form button {
  background: var(--rw-primary); color: #fff; border: none;
  border-radius: 20px; padding: 8px 16px; font-size: 13px;
  font-weight: 500; cursor: pointer; flex-shrink: 0;
}
.notice-delete-btn {
  background: none; border: none; color: #e53935;
  font-size: 12px; cursor: pointer; padding: 0; margin-top: 8px;
}

/* 회원가입 유형 선택 */
.register-type-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 12px;
  text-decoration: none; color: #1a1a1a;
  transition: background 0.15s, border-color 0.15s;
}
.register-type-btn:hover {
  background: var(--rw-primary-bg); border-color: var(--rw-primary);
}
.register-type-icon { font-size: 28px; flex-shrink: 0; }
.register-type-title { font-size: 15px; font-weight: 500; }
.register-type-desc { font-size: 12px; color: #6b6b6b; margin-top: 2px; }

/* 통역 서브 네비 (메인 네비 위, 반반 탭) */
.itp-subnav {
  position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 99;
  display: flex; background: #fff;
}
.itp-subnav-item {
  flex: 1; padding: 12px 0; text-align: center;
  background: none; border: none; border-top: 2px solid rgba(0,0,0,0.08);
  cursor: pointer; font-size: 14px; font-weight: 400; color: #999;
  transition: color 0.25s, border-color 0.25s;
}
.itp-subnav-item.active {
  color: var(--rw-accent); font-weight: 600;
  border-top: 4px solid var(--rw-accent);
}
.home-nav-badge {
  position: absolute; top: 0; right: 4px;
  background: var(--rw-accent); color: #fff; font-size: 9px; font-weight: 500;
  padding: 1px 5px; border-radius: 8px; min-width: 14px; text-align: center;
}

/* 탭 패널 */
.home-tab-panel { padding: 16px 16px 72px; }

/* 쿠폰 리스트 */
.home-coupon-list {
  display: flex; flex-direction: column; gap: 10px;
}

/* 포인트 */
.home-point-summary {
  background: #f5f6f8; border-radius: 12px;
  padding: 16px; margin-bottom: 16px; text-align: center;
}
.home-point-balance {
  font-size: 28px; font-weight: 500; color: var(--rw-primary);
}
.home-point-label {
  font-size: 12px; color: #6b6b6b; margin-top: 4px;
}
.home-point-list {
  display: flex; flex-direction: column; gap: 8px;
}

/* 내정보 */
#mypageContent .mypage-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 0.5px solid rgba(0,0,0,0.08);
  font-size: 14px;
}
#mypageContent .mypage-label { color: #6b6b6b; }
#mypageContent .mypage-value { color: #1a1a1a; font-weight: 500; }
#mypageContent .mypage-actions {
  padding-top: 20px; display: flex; flex-direction: column; gap: 10px;
}

/* 커스텀 파일 입력 */
.custom-file { position: relative; display: flex; align-items: center; gap: 8px; }
.custom-file input[type="file"] { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; }
.custom-file-btn { display: inline-block; padding: 8px 16px; background: var(--rw-primary); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.custom-file-name { font-size: 13px; color: #6b6b6b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 검색 자동완성 드롭다운 */
.home-search-wrap { position: relative; }
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: #fff; border: 1px solid rgba(0,0,0,0.1); border-top: none;
  border-radius: 0 0 12px 12px; max-height: 320px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.search-dropdown-item {
  padding: 12px 16px; cursor: pointer; border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover, .search-dropdown-item:focus { background: var(--rw-primary-bg); }
.search-dropdown-title { font-size: 14px; font-weight: 500; }
.search-dropdown-sub { font-size: 12px; color: #6b6b6b; margin-top: 2px; }
.search-dropdown-empty { padding: 20px; text-align: center; color: #6b6b6b; font-size: 13px; }

/* 파트너 카드 */
.svc-list-card:active, .svc-add-card:active { transform: scale(0.97); }
@media (hover:hover) {
  .svc-list-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
  .svc-add-card:hover { background: linear-gradient(135deg,#eef1f6,#e3e8f0) !important; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
}
