﻿/* 작업일자 : 2026-11-06 / 작성자 : hsjung
   로그인·가입·마이페이지·약관 전용 스타일. 색·글자·간격은 cx-design 의미 토큰만 쓴다.
   밝게/어둡게 모두 토큰이 처리하므로 여기서 색을 직접 적지 않는다.
   (카카오·네이버 버튼 색만 예외 — 두 회사 로그인 버튼 규정 색이다) */
body { background: var(--cx-bg); color: var(--cx-text); min-height: 100vh; display: flex; flex-direction: column; word-break: keep-all; }
.xt-wrap { width: 100%; max-width: var(--cx-container); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.xt-main { flex: 1; padding-top: 40px; padding-bottom: 64px; }

/* 상단: 밝기와 무관하게 어둡다 (design-system §5 상단바) */
.xt-top { background: var(--cx-chrome); color: #fff; }
.xt-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.xt-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: var(--cx-fw-bold); font-size: 17px; }
.xt-brand .tw-mark { display: block; height: 22px; width: auto; }   /* 톡웨이 글자 로고 (2026-11-13) */
.xt-top__nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.xt-top__nav a, .xt-link { color: #d5dcea; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.xt-top__nav a:hover, .xt-link:hover { color: #fff; }
.xt-theme { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; cursor: pointer; }

.xt-foot { border-top: 1px solid var(--cx-border); color: var(--cx-text-2); font-size: 13px; padding: 24px 0 36px; }
.xt-foot p { margin: 2px 0; }
.xt-foot__links { display: flex; gap: 16px; margin-bottom: 8px !important; }
.xt-foot a { color: var(--cx-text-2); }

.xt-center { text-align: center; padding: 64px 0; }

/* 로그인: 왼쪽 안내 / 오른쪽 버튼 */
.xt-login { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 32px 0; }
.xt-points { margin: 20px 0 0; padding-left: 20px; color: var(--cx-text-2); }
.xt-points li { margin: 6px 0; }
.xt-login__box { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.xt-login__agree { margin-top: 4px; }
.xt-login__agree a, .xt-check a { color: var(--cx-text-2); }
.xt-social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 10px; font-weight: var(--cx-fw-bold); font-size: 16px; text-decoration: none; }
.xt-social--kakao { background: #fee500; color: rgba(0,0,0,.85); }
.xt-social--naver { background: #03c75a; color: #fff; }
.xt-social:hover { filter: brightness(.96); }
@media (max-width: 760px) { .xt-login { grid-template-columns: 1fr; gap: 24px; } }

/* 가입·마이페이지 */
.xt-page > .cx-muted { margin: 4px 0 20px; }
.xt-card { padding: 24px; margin-bottom: 20px; }
.xt-card > .cx-h3 { margin: 0 0 16px; }
.xt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 640px) { .xt-grid { grid-template-columns: 1fr; } .xt-grid > .cx-field:empty { display: none; } }
.xt-sec { margin-top: 28px !important; }
.xt-sec-sm { margin-top: 12px; }
.xt-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.xt-check--all { border-bottom: 1px solid var(--cx-border); padding-bottom: 10px; margin-bottom: 6px; }
.xt-msg { margin-top: 16px; }
.xt-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.xt-key code { font-size: 14px; white-space: nowrap; }
.xt-copy { margin-left: 8px; }
[hidden] { display: none !important; }

/* 마이페이지 탭 */
.xt-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--cx-border); }
.xt-tab { padding: 12px 20px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--cx-text-2); font: inherit; font-weight: var(--cx-fw-semibold); cursor: pointer; }
.xt-tab:hover { color: var(--cx-text); }
.xt-tab.is-active { color: var(--cx-text); border-bottom-color: var(--cx-text); font-weight: var(--cx-fw-bold); }
.xt-tab:focus-visible { outline: 3px solid var(--cx-focus-ring); outline-offset: -3px; }
.xt-empty { padding: 24px 16px; }
.xt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xt-tile { padding: 16px; border-radius: 12px; background: var(--cx-surface-2); }
.xt-tile span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--cx-text-2); }
.xt-tile b { font-size: 18px; color: var(--cx-text); }
@media (max-width: 640px) { .xt-tiles { grid-template-columns: minmax(0, 1fr); } }
.xt-nowrap { white-space: nowrap; }
.xt-pay-links a + a { margin-left: 10px; }
.xt-empty p { margin: 0; }

/* 마이페이지 2단: 왼쪽 바꿀 수 없는 정보, 오른쪽 고칠 수 있는 칸 */
.xt-profile { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.xt-profile .xt-card { margin-bottom: 0; }
.xt-photo { text-align: center; margin-bottom: 16px; }
.xt-photo__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.xt-photo .xt-msg { margin-top: 8px; text-align: left; }
.xt-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--cx-surface); }
.xt-avatar { position: relative; overflow: hidden; display: grid; place-items: center; width: 96px; height: 96px; margin: 8px auto 12px; border-radius: 50%; background: var(--cx-primary-soft); color: var(--cx-primary-text); font-size: 38px; font-weight: var(--cx-fw-bold); }
.xt-account__list { margin: 0 0 12px; padding: 14px 16px; background: var(--cx-surface-2); border-radius: 12px; font-size: 14px; }
.xt-account__list > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 5px 0; }
.xt-account__list dt { color: var(--cx-text-2); font-weight: var(--cx-fw-regular, 400); }
.xt-account__list dd { margin: 0; font-weight: var(--cx-fw-semibold); overflow-wrap: anywhere; }
.xt-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.xt-row .cx-label { margin: 0; }
@media (max-width: 860px) {
    .xt-profile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .xt-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.xt-join-note { margin: -8px 0 16px; }
.xt-inline { display: flex; gap: 8px; align-items: stretch; }
.xt-inline .cx-input { flex: 1 1 auto; min-width: 0; }
.xt-inline .cx-btn { flex: none; white-space: nowrap; }
.xt-birthday .cx-select { flex: 1 1 0; min-width: 0; }
.xt-withdraw-link { margin: 24px 0 0; text-align: right; font-size: 13px; }
.xt-withdraw-link a { color: var(--cx-text-2); text-decoration: underline; }
.xt-list { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.xt-more > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.xt-more[open] > summary { margin-bottom: 4px; }
.xt-account__btn { display: flex; width: 100%; box-sizing: border-box; justify-content: center; }

/* 알림 수신 */
.xt-page > .cx-h1 { margin-bottom: 20px; }
.xt-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 20px; background: var(--cx-surface-2); border-radius: 12px; }
.xt-notice__title { display: block; font-weight: var(--cx-fw-bold); margin-bottom: 6px; cursor: pointer; }
.xt-notice p { margin: 2px 0; font-size: 14px; }
.xt-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.xt-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.xt-switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--cx-text-3); transition: background var(--cx-dur-fast) var(--cx-ease); pointer-events: none; }
.xt-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--cx-dur-fast) var(--cx-ease); }
.xt-switch input:checked + .xt-switch__track { background: var(--cx-primary); }
.xt-switch input:checked + .xt-switch__track::after { transform: translateX(20px); }
.xt-switch input:focus-visible + .xt-switch__track { outline: 3px solid var(--cx-focus-ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .xt-switch__track, .xt-switch__track::after { transition: none; } }

/* 오류·점검 화면 */
.xt-status { align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; box-sizing: border-box; }
.xt-status__card { width: 100%; max-width: 640px; padding: 40px 32px; text-align: center; }
.xt-status__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--cx-text); text-decoration: none; font-size: 17px; font-weight: var(--cx-fw-bold); margin-bottom: 32px; }
.xt-status__brand .tw-mark { display: block; height: 28px; width: auto; }
.xt-status__icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; background: var(--cx-primary-soft); color: var(--cx-primary-text); }
.xt-status__icon--error { background: color-mix(in srgb, var(--cx-danger, #d9483b) 14%, transparent); color: var(--cx-danger, #d9483b); }
.xt-status__title { margin: 0 0 10px; font-size: 24px; font-weight: var(--cx-fw-bold); word-break: keep-all; }
.xt-status__term { margin: 0 0 14px; font-weight: var(--cx-fw-bold); color: var(--cx-primary-text); }
.xt-status__text { margin: 0; line-height: 1.7; color: var(--cx-text-2); word-break: keep-all; }
.xt-status__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.xt-status__foot { margin: 0; font-size: 13px; color: var(--cx-text-3); text-align: center; }

/* 요금제 */
.xt-price__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; margin-bottom: 12px; }
.xt-price__head .cx-muted { margin: 6px 0 0; }
.xt-checks { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--cx-text-2); }
.xt-checks li { position: relative; padding: 3px 0 3px 22px; }
.xt-checks li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--cx-primary); border-bottom: 2px solid var(--cx-primary); transform: rotate(-45deg); }
.xt-price__sub { margin: 28px 0 12px; }
.xt-price__sub .cx-muted { margin-left: 6px; font-size: 14px; font-weight: normal; }
.xt-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xt-plan { display: flex; flex-direction: column; padding: 24px; }
.xt-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.xt-plan__name { margin: 0; font-size: 16px; font-weight: var(--cx-fw-bold); }
.xt-plan__off { color: var(--cx-success, #1b8a5a); font-weight: var(--cx-fw-bold); }
.xt-plan__price { margin: 18px 0 4px; font-size: 30px; line-height: 1.25; font-weight: var(--cx-fw-bold); }
.xt-plan__price.is-tbd { font-size: 22px; color: var(--cx-text-2); }
.xt-plan__note { margin: 0 0 20px; font-size: 14px; color: var(--cx-text-2); }
.xt-plan__btn { width: 100%; box-sizing: border-box; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; }
.xt-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px; }
.xt-group .cx-muted { margin: 8px 0 16px; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.xt-tiers { margin: 0; padding: 0; list-style: none; }
.xt-tiers li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.xt-tiers li b { font-weight: var(--cx-fw-semibold); color: var(--cx-text-2); }
.xt-tiers li.is-on { background: var(--cx-primary-soft); }
.xt-tiers li.is-on b { color: var(--cx-primary-text); }
.xt-calc { padding: 20px; background: var(--cx-surface-2); border-radius: 12px; }
.xt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0 18px; padding: 4px; background: var(--cx-surface); border: 1px solid var(--cx-border); border-radius: 10px; }
.xt-seg__btn { height: 36px; background: none; border: 0; border-radius: 7px; color: var(--cx-text-2); font: inherit; font-size: 14px; font-weight: var(--cx-fw-semibold); cursor: pointer; }
.xt-seg__btn.is-on { background: var(--cx-primary); color: var(--cx-on-primary); }
.xt-seg__btn:focus-visible { outline: 3px solid var(--cx-focus-ring); outline-offset: 1px; }
.xt-calc__seats { display: flex; justify-content: space-between; }
#seats { width: 100%; margin: 6px 0 14px; accent-color: var(--cx-primary); }
.xt-calc__rows { margin: 0 0 16px; }
.xt-calc__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.xt-calc__rows dt { font-weight: normal; color: var(--cx-text-2); }
.xt-calc__rows dd { margin: 0; font-weight: var(--cx-fw-semibold); }
.xt-calc__rows dd.is-tbd { color: var(--cx-text-2); font-weight: normal; }
.xt-calc__rows .is-sum { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--cx-border); }
.xt-calc__rows .is-sum dd:not(.is-tbd) { font-size: 22px; font-weight: var(--cx-fw-bold); }
.xt-price__foot { margin-top: 16px; }
.xt-price__foot a { color: var(--cx-primary-text); }
@media (max-width: 860px) {
    .xt-price__head, .xt-plans, .xt-group { grid-template-columns: minmax(0, 1fr); }
}

/* 결제 */
.xt-pay { max-width: 720px; margin: 0 auto; }
.xt-pay > .cx-h1 { margin-bottom: 20px; }
.xt-pay__note { margin-bottom: 16px; }
.xt-pay__rows { margin: 0 0 8px; }
.xt-pay__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--cx-border); }
.xt-pay__rows dt { font-weight: normal; color: var(--cx-text-2); }
.xt-pay__rows dd { margin: 0; font-weight: var(--cx-fw-semibold); text-align: right; overflow-wrap: anywhere; }
.xt-pay__rows .is-sum { border-bottom: 0; align-items: center; }
.xt-pay__rows .is-sum dd { font-size: 24px; font-weight: var(--cx-fw-bold); }
.xt-pay__agree { margin-top: 12px; }

/* 약관 문서 */
.xt-doc { max-width: var(--cx-container); margin: 0 auto; line-height: 1.75; } /* 표준 폭 1,200px. 좁히지 않는다 */
.xt-doc h1 { font-size: 30px; font-weight: var(--cx-fw-bold); margin: 0 0 4px; }
.xt-doc .meta { color: var(--cx-text-2); margin: 0 0 28px; }
.xt-doc h2 { font-size: 19px; font-weight: var(--cx-fw-bold); margin: 40px 0 12px; scroll-margin-top: 16px; }
.xt-doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; display: block; overflow-x: auto; }
@media (min-width: 640px) { .xt-doc table { display: table; } }
.xt-doc th, .xt-doc td { border: 1px solid var(--cx-border); padding: 9px 12px; text-align: left; vertical-align: top; }
.xt-doc th { background: var(--cx-surface-2); font-weight: var(--cx-fw-bold); white-space: nowrap; }
.xt-doc ol, .xt-doc ul { padding-left: 22px; }
.xt-doc li { margin: 4px 0; }

/* 카톡 문의 떠 있는 버튼 (2026-11-14, Views/Shared/_KakaoAsk.cshtml). 카카오 브랜드 색 */
.kakao-ask{position:fixed;right:20px;bottom:20px;z-index:60;display:inline-flex;align-items:center;gap:8px;
  padding:12px 18px;border-radius:999px;background:#FEE500;color:#191919;font-weight:700;font-size:15px;line-height:1;
  text-decoration:none;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.kakao-ask svg{width:20px;height:20px;flex:none}
.kakao-ask:hover{filter:brightness(.97);text-decoration:none;color:#191919}
.kakao-ask:focus-visible{outline:3px solid #191919;outline-offset:2px}
@media (max-width:640px){.kakao-ask{right:16px;bottom:16px;padding:12px 14px}}
@media print{.kakao-ask{display:none}}
