@charset "UTF-8";
/* ============================================================================
   ChannelBase — 전체 사이트 CSS (디자인 시안: 메인 페이지 + FAQ 페이지)
   부트스트랩 미사용. CSS 변수 토큰 + 커스텀 컴포넌트 방식 (BoardmobIP 컨벤션).

   [클래스 계약 — 마크업 작성 시 이 구조대로 사용]
   헤더    : .site-topbar > .container > .brand(.brand-logo img) + .topbar-right
   GNB     : .gnb > .container > .gnb-menu > li > a.gnb-link(.active) / .gnb-right > .btn-login
   히어로  : .hero > .hero-bg(img) + .hero-inner(.hero-copy h1 > .accent, .hero-sub, .hero-play)
             + .hero-contact-strip > .contact-card ×3 + .hero-dots > .dot(.active)
   안내띠  : .home-notice > .container > img (images/home-notice.png)
   상품    : .best-products(.section) > .section-head + .product-grid > .product-card
             (.product-card-head > .product-name/.product-badge, .product-price > .num/.unit,
              .product-features li, .product-cta)
   안내띠  : .notice-band > .notice-band-title + .notice-band-text / 우측 하단 .floating-kakao
   왜채베  : .why-section > .why-eyebrow, .why-title, .why-desc(.em), .why-grid > .why-item
             (.why-num, .why-item-title, .why-item-desc, .why-chips > .why-chip), .why-cta
   후기    : .reviews(.section) > .section-head + .review-marquee > .review-track > .review-item×10(5장×2) > img.review-media
   절차    : .process(.section) > .section-head + .process-cols > .process-col-label ×2
             + .timeline > .timeline-item(.left/.right) > .timeline-card(.timeline-dot), .process-note
   푸터    : .site-footer > .footer-top(.footer-brand, .footer-cols > .footer-col) + .footer-bottom
   FAQ     : body.page-light / main > .faq-wrap > .faq-card > .faq-title + .faq-list >
             .faq-item > button.faq-q[aria-expanded] + .faq-a > .faq-a-inner
   공통    : .container(1200px) .section .section-head(.section-eyebrow/.section-title/.section-desc)
             .btn .btn-primary .btn-outline .btn-outline-light .btn-login
   ========================================================================== */

/* ─── 웹폰트: Gmarket Sans(디스플레이/헤드라인) + SUIT(본문) ───
   @import 대신 @font-face 직접 선언 (2026-10-24) — 예전 Gmarket @import 주소(…woff2.css)는 404 + 캐시 금지라 페이지마다 다시 요청되며
   렌더링을 막았다(페이지 이동이 느린 원인, 폰트도 적용 안 됨). font-display: swap = 폰트를 받는 동안 기본 글꼴로 먼저 그린다 */
@font-face {
    font-family: 'SUIT Variable';
    font-weight: 100 900;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT/fonts/variable/woff2/SUIT-Variable.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'GmarketSansMedium';
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
}
@font-face {
    font-family: 'GmarketSansBold';
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
}

/* ============================== 디자인 토큰 ============================== */
:root {
    /* 브랜드 컬러 */
    --navy-900: #0F1834;   /* 최심 네이비 — 푸터 하단 바 */
    --navy-800: #14204A;   /* 딥 섹션 배경(왜 채널베이스인가) */
    --navy-700: #1A2B5A;   /* GNB·푸터·로고 네이비 */
    --navy-600: #24376E;   /* 네이비 위 카드/보더 */
    --navy-100: #E8ECF6;   /* 네이비 틴트(연한 라인·배경) */

    --red-600: #C92A35;    /* 레드 hover/강조 진한 톤 */
    --red-500: #E5424D;    /* 시그니처 레드 — 헤드라인 강조·가격·번호 */
    --red-100: #FBEAEC;    /* 레드 틴트 — 상품 카드 헤더 배경 */

    --blue-600: #2448A8;   /* 블루 진한 톤 */
    --blue-500: #2F5FD0;   /* 포인트 블루 — 섹션 타이틀·타임라인 */
    --blue-100: #E9EFFB;   /* 블루 틴트 */

    --kakao-yellow: #FAE100;
    --kakao-brown: #3C1E1E;

    /* 뉴트럴 */
    --bg-page: #FFFFFF;
    --bg-soft: #F4F6FB;    /* 연회색 섹션·FAQ 페이지 배경 */
    --bg-card: #FFFFFF;
    --line: #E3E7F0;
    --line-strong: #C9D0E0;
    --text-strong: #172038;
    --text-body: #3E4658;
    --text-muted: #7C8499;
    --text-invert: #FFFFFF;
    --text-invert-dim: #B9C2DC; /* 네이비 배경 위 보조 텍스트 */

    /* 타이포 */
    --font-body: "SUIT Variable", "SUIT", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    --font-display: "GmarketSansBold", "GmarketSansMedium", var(--font-body);
    --font-display-md: "GmarketSansMedium", var(--font-body);

    /* 레이아웃 */
    --container: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 18px rgba(23, 32, 56, 0.08);
    --shadow-float: 0 8px 28px rgba(23, 32, 56, 0.18);

    /* 헤더 높이 (모바일 대응 시 mobile.css 에서 재정의) */
    --topbar-h: 72px;
    --gnb-h: 48px;
}

/* ============================== 베이스 ============================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-page);
    word-break: keep-all; /* 한국어 어절 단위 줄바꿈 */
}

/* FAQ 등 연회색 배경 페이지는 body 에 .page-light 부여 */
body.page-light { background: var(--bg-soft); }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text-strong); line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--red-500); color: #fff; }

:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================== 공통 유틸 ============================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

/* 섹션 헤더 — eyebrow(작은 라벨) + 타이틀 + 설명. 기본 중앙 정렬 */
.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display-md);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--red-500);
    margin-bottom: 12px;
}
.section-eyebrow.blue { color: var(--blue-500); }
.section-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    letter-spacing: -0.01em;
}
.section-title .accent { color: var(--red-500); }
.section-title.blue { color: var(--blue-500); }
.section-desc {
    margin: 16px auto 0;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ============================== 버튼 ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-display-md);
    font-size: 0.95rem;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red-500); color: #fff; }
.btn-primary:hover { background: var(--red-600); }
/* 비활성 상품의 결제하기 등 — 회색, 클릭 불가, hover/active 반응 없음 */
.btn:disabled, .btn[disabled] { background: var(--line-strong); color: #fff; border-color: transparent; cursor: not-allowed; pointer-events: none; opacity: 1; }
.btn:disabled:hover, .btn[disabled]:hover, .btn:disabled:active, .btn[disabled]:active { background: var(--line-strong); transform: none; }

.btn-outline { border-color: var(--line-strong); color: var(--text-strong); background: transparent; }
.btn-outline:hover { border-color: var(--red-500); color: var(--red-500); }

.btn-outline-light { border-color: rgba(255,255,255,0.45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-block { width: 100%; }

/* GNB 우측 로그인 — 작은 고스트 버튼 */
.btn-login {
    padding: 7px 18px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-login:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ============================== 헤더: 탑바(흰색) ============================== */
.site-topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-topbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 — 마크+워드마크가 한 장에 들어간 PNG (images/logo.png = 흰 배경용, logo-white.png = 푸터 네이비 배경용 흰 글자·투명)
   원본은 260906/로고1.png · 로고 누끼컷B.png 를 여백 트림한 것. 높이만 지정하고 폭은 비율대로 */
.brand { display: inline-flex; align-items: center; }
.brand-logo {
    height: 60px;   /* 탑바 72px 안에서 상하 6px 여유 */
    width: auto;
    display: block;
}

/* ============================== 헤더: GNB(네이비) ============================== */
.gnb {
    background: var(--navy-700);
    height: var(--gnb-h);
    position: sticky;
    top: 0;
    z-index: 100;
}
.gnb .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.gnb-menu {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 4px;
    overflow-x: auto;         /* 항목 많을 때 가로 스크롤 허용 */
    scrollbar-width: none;
}
.gnb-menu::-webkit-scrollbar { display: none; }
.gnb-menu li { height: 100%; flex: none; }
.gnb-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.gnb-link:hover { color: #fff; }
.gnb-link.active { color: #fff; font-weight: 700; }
/* 메뉴 빨간 점 — 확인하지 않은 구매 신청·접수됨 A/S 요청 (BoardmobIP nav-request-dot). hidden 속성으로 켜고 끈다 */
.nav-request-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 2px rgba(229, 66, 77, 0.25); flex: none; }
.gnb-link.active::after { /* 활성 탭 하단 레드 언더라인 */
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 0;
    height: 3px;
    background: var(--red-500);
    border-radius: 2px 2px 0 0;
}
.gnb-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* ============================== 히어로 ============================== */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-900);
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
/* (히어로 위 텍스트 카피가 사라져 네이비 그라데이션 오버레이(.hero::before)는 제거 — 배너 이미지를 원색 그대로 노출) */
.hero-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 24px 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-copy h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.28;
    color: #fff;
    letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--red-500); }
.hero-sub {
    margin-top: 20px;
    color: var(--text-invert-dim);
    font-size: 1rem;
    max-width: 480px;
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; }

/* 우측 유튜브 재생 버튼 */
.hero-play {
    flex: none;
    width: 96px; height: 68px;
    border: 0;
    border-radius: 18px;
    background: var(--red-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(229, 66, 77, 0.5);
    animation: hero-play-pulse 2.4s ease-out infinite;
    transition: transform 0.15s ease;
}
.hero-play:hover { transform: scale(1.06); }
.hero-play::after { /* 재생 삼각형 */
    content: "";
    width: 0; height: 0;
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}
@keyframes hero-play-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 66, 77, 0.45); }
    70%  { box-shadow: 0 0 0 22px rgba(229, 66, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 66, 77, 0); }
}

/* 히어로 하단 연락 스트립 — 카드 3개 가로 배치 */
.hero-contact-strip {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 0 24px;
}
.contact-card {
    flex: 1;
    max-width: 300px;
    background: rgba(20, 32, 74, 0.92);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 3px solid var(--red-500);
    transition: background 0.18s ease;
}
.contact-card:hover { background: rgba(31, 46, 96, 0.95); }
.contact-card.accent { background: var(--red-500); border-top-color: var(--red-600); }
.contact-card.accent:hover { background: var(--red-600); }
.contact-card-ico {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.contact-card-ico svg { width: 20px; height: 20px; stroke: #fff; }
.contact-card-label { font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.contact-card-value { font-family: var(--font-display-md); font-size: 1.02rem; }

/* 캐러셀 인디케이터 점 */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 108px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hero-dots .dot {
    width: 8px; height: 8px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: width 0.2s ease, background 0.2s ease;
}
.hero-dots .dot.active { width: 22px; border-radius: 4px; background: var(--red-500); }

/* ============================== 운영 안내 띠 (히어로 ↔ BEST PRODUCT) ============================== */
.home-notice { background: #fff; padding: 40px 0 0; }
.home-notice img { display: block; width: 100%; height: auto; }

/* ============================== BEST PRODUCT ============================== */
.best-products { background: #fff; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--red-100);
}
/* 카드 헤더 — 레드 틴트 배경 + 상품명 */
.product-card-head {
    background: var(--red-100);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.product-name {
    font-family: var(--font-display-md);
    font-size: 1.02rem;
    color: var(--text-strong);
}
.product-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red-500);
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-price {
    font-family: var(--font-display);
    color: var(--red-500);
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 6px;
}
.product-price .unit { font-size: 0.95rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; }
/* 할인 전 가격(빗금) + 할인율 칩 — 관리자 "할인 전 가격" 이 0 보다 클 때만 렌더링 */
.product-price-original {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.product-price-original s { text-decoration: line-through; text-decoration-color: rgba(124,132,153,0.8); }
.product-price-original .unit { font-size: 0.8rem; margin-left: 1px; }
.product-discount {
    font-size: 0.72rem; font-weight: 700;
    color: var(--red-500);
    background: #FDECEE;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}
/* 추천인 할인가 — 추천인 코드로 가입한 로그인 회원에게만 렌더링 (칩은 .product-discount 재사용) */
.product-referral {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
    margin: 4px 0 6px;
    font-size: 0.85rem; color: var(--text-body);
}
.product-referral strong { font-size: 1.05rem; color: var(--red-500); }
.product-price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; }

/* 체크 리스트 — ✓ 마커 */
.product-features { flex: 1; border-top: 1px solid var(--line); padding-top: 18px; }
.product-features li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 0.88rem;
    color: var(--text-body);
}
.product-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--red-100);
}
.product-features li::after {
    content: "";
    position: absolute;
    left: 4px; top: 14px;
    width: 7px; height: 4px;
    border-left: 2px solid var(--red-500);
    border-bottom: 2px solid var(--red-500);
    transform: rotate(-45deg);
}
.product-features li.muted { color: var(--text-muted); }
.product-features li.muted::before { background: var(--bg-soft); }
.product-features li.muted::after { border-color: var(--line-strong); }

.product-cta { margin-top: 22px; }

/* ============================== 구매전 안내 띠 ============================== */
.notice-band {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
    text-align: center;
}
.notice-band-title {
    font-family: var(--font-display-md);
    font-size: 1.25rem;
    color: var(--text-strong);
}
.notice-band-title .accent { color: var(--red-500); }
.notice-band-text {
    margin: 10px auto 0;
    max-width: 720px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 카카오톡 플로팅 버튼 — 우측 하단 고정 */
.floating-kakao {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    width: 60px; height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
    font-family: var(--font-display);
    font-size: 0.78rem;
    box-shadow: var(--shadow-float);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.floating-kakao:hover { transform: scale(1.08); }
button.floating-kakao { padding: 0; cursor: pointer; }   /* 회원용 = 문의 안내 발송 버튼 (비회원·코드 미입력은 링크) */
button.floating-kakao:disabled { opacity: 0.6; cursor: progress; }

/* ============================== 왜 채널베이스인가 (네이비) ============================== */
.why-section {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(47, 95, 208, 0.28), transparent 60%),
        var(--navy-800);
    color: var(--text-invert-dim);
    padding: 100px 0;
}
.why-eyebrow {
    text-align: center;
    font-family: var(--font-display-md);
    font-size: 0.82rem;
    letter-spacing: 0.32em;
    color: var(--red-500);
    margin-bottom: 14px;
}
.why-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: #fff;
}
.why-desc {
    text-align: center;
    margin: 18px auto 0;
    max-width: 620px;
    font-size: 0.95rem;
    color: var(--text-invert-dim);
}
.why-desc .em { color: #fff; font-weight: 700; border-bottom: 2px solid var(--red-500); padding-bottom: 1px; }

.why-grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
}
.why-item { position: relative; padding-top: 8px; }
.why-num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red-500);
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}
.why-num::after { /* 번호 아래 짧은 구분선 */
    content: "";
    display: block;
    width: 26px; height: 2px;
    background: rgba(255,255,255,0.2);
    margin-top: 14px;
}
.why-item-title {
    font-family: var(--font-display-md);
    font-size: 1.08rem;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 12px;
}
.why-item-desc { font-size: 0.85rem; line-height: 1.7; color: var(--text-invert-dim); }

/* 항목 하단 작은 배지/부가 정보 */
.why-chips { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.why-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #fff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}
.why-chip::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red-500);
    flex: none;
}
.why-cta { margin-top: 56px; text-align: center; }

/* ============================== 이용 후기 (카톡 캡처 컨베이어 마퀴) ============================== */
.reviews { background: #fff; }

/* 컨베이어 마퀴 — .review-track 안에 같은 5장이 두 번 들어 있어 -50% 까지 옮기면 처음과 이어진다(이음새 없음).
   호버하면 흐름이 멈추고(animation-play-state) 그 장만 확대. 세로 여백 40px 은 확대(1.12배)분이 잘리지 않게 두는 자리 */
.review-marquee {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.review-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: review-marquee 45s linear infinite;
    will-change: transform;
}
.review-marquee:hover .review-track { animation-play-state: paused; }
@keyframes review-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.review-item { margin: 0 28px 0 0; flex: none; height: 520px; }   /* 간격은 margin-right — 절반(5장) 폭이 정확히 track 의 50% 가 되어 이음새가 맞는다 */
.review-media {
    height: 100%; width: auto; display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform-origin: center;
}
.review-item:hover { position: relative; z-index: 2; }
.review-item:hover .review-media { transform: scale(1.12); box-shadow: 0 16px 40px rgba(23, 32, 56, 0.22); }
@media (prefers-reduced-motion: reduce) {
    .review-track { animation: none; }
}

/* ============================== 구매 후 진행 절차 (타임라인) ============================== */
.process { background: var(--bg-soft); }

/* 좌/우 컬럼 라벨 — "고객이 할 일" vs "채널베이스가 진행하는 일" */
.process-cols {
    display: flex;
    justify-content: space-between;
    max-width: 860px;
    margin: 0 auto 8px;
}
.process-col-label {
    font-family: var(--font-display-md);
    font-size: 0.95rem;
    color: var(--text-strong);
    padding: 8px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.process-col-label.mine { color: var(--blue-500); border-color: var(--blue-500); }
.process-col-label.yours { color: var(--red-500); border-color: var(--red-500); }

/* 중앙 세로선 타임라인 — 좌우 교차 배치 */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 24px auto 0;
    padding: 24px 0;
}
.timeline::before { /* 중앙 라인 */
    content: "";
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--line-strong);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 12px 44px 12px 0;
}
.timeline-item.right {
    margin-left: 50%;
    padding: 12px 0 12px 44px;
}
.timeline-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(23,32,56,0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.timeline-step {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--blue-500);
    margin-bottom: 6px;
}
.timeline-item.right .timeline-step { color: var(--red-500); }
.timeline-card-title {
    font-family: var(--font-display-md);
    font-size: 1rem;
    color: var(--text-strong);
    margin-bottom: 6px;
}
.timeline-card-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* 중앙 라인 위 점 — 좌측 카드는 파란점, 우측 카드는 빨간점 */
.timeline-item::after {
    content: "";
    position: absolute;
    top: 32px;
    right: -7px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--blue-500);
    border: 3px solid var(--bg-soft);
    z-index: 1;
}
.timeline-item.right::after {
    right: auto;
    left: -7px;
    background: var(--red-500);
}
.process-note {
    max-width: 860px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================== 푸터 ============================== */
.site-footer {
    background: var(--navy-700);
    color: var(--text-invert-dim);
    font-size: 0.86rem;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 64px 0 48px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-logo { height: 76px; }
.footer-headline {
    margin-top: 20px;
    font-family: var(--font-display-md);
    font-size: 1.3rem;
    line-height: 1.5;
    color: #fff;
}
.footer-cols { display: flex; gap: 72px; }
.footer-col-title {
    font-family: var(--font-display-md);
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 18px;
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: var(--text-invert-dim); transition: color 0.15s ease; }
.footer-menu a:hover { color: #fff; }

.footer-sns { display: flex; gap: 10px; margin-top: 4px; }
.footer-sns a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.footer-sns a:hover { background: var(--red-500); }
.footer-sns svg { width: 16px; height: 16px; fill: #fff; }

.footer-bottom {
    background: var(--navy-900);
    padding: 18px 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* ============================== FAQ 페이지 ============================== */
.faq-wrap { padding: 56px 24px 96px; }
.faq-card {
    max-width: 960px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 64px 40px;
    box-shadow: var(--shadow-card);
}
.faq-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.06em;
    color: var(--navy-700);
    margin-bottom: 36px;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 2px solid var(--navy-700); }

/* 질문 버튼 — 전체 폭 + 우측 화살표(aria-expanded 로 회전) */
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 8px;
    background: none;
    border: 0;
    text-align: left;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-strong);
    transition: color 0.15s ease;
}
.faq-q:hover { color: var(--blue-500); }
.faq-q::before { /* Q. 프리픽스 */
    content: "Q.";
    font-family: var(--font-display);
    color: var(--red-500);
    flex: none;
}
.faq-q .q-text { flex: 1; }
.faq-q .chev {
    flex: none;
    width: 10px; height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);           /* ▼ 접힘 */
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-top: -4px;
}
.faq-q[aria-expanded="true"] { color: var(--navy-700); }
.faq-q[aria-expanded="true"] .chev {
    transform: rotate(-135deg);          /* ▲ 펼침 */
    border-color: var(--red-500);
    margin-top: 4px;
}

/* 답변 — grid-rows 트릭으로 JS 없이도 부드러운 펼침 애니메이션 */
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
    overflow: hidden;
    min-height: 0;
}
.faq-a-inner > div { /* 실제 답변 내용 래퍼 */
    padding: 4px 8px 22px 40px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.75;
    position: relative;
}
.faq-a-inner > div::before { /* A. 프리픽스 */
    content: "A.";
    position: absolute;
    left: 8px; top: 4px;
    font-family: var(--font-display);
    color: var(--blue-500);
}

/* ============================== 폼 기본 (로그인/문의 등 공용) ============================== */
.form-field { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-strong);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px var(--blue-100);
}
.form-error { font-size: 0.78rem; color: var(--red-500); margin-top: 6px; }

/* ============================== 내부 페이지 공통 (공지·구매내역·A/S·내정보) ============================== */
/* 라이트 배경 페이지 컨테이너 — FAQ 카드와 같은 톤의 흰 패널을 얹는다 */
.page-wrap { padding: 48px 24px 96px; }
.page-panel {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow-card);
}
.page-panel + .page-panel { margin-top: 28px; }
.page-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--navy-700);
    margin-bottom: 8px;
}
.page-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }

/* GNB 우측 언어 토글 */
.lang-toggle {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.lang-toggle:hover { background: rgba(255,255,255,0.12); }

/* 상태 필터 탭 — 구매내역(구매/진행중/A/S중), A/S 내역(전체/접수됨/진행중/완료/거절) */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-tab {
    padding: 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--navy-700); color: var(--navy-700); }
.filter-tab.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.filter-tab .cnt { font-size: 0.75rem; opacity: 0.7; margin-left: 4px; }

/* 데이터 테이블 — 넓은 표는 .table-scroll 로 감싸 가로 스크롤 */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
    background: var(--bg-soft);
    color: var(--text-strong);
    font-weight: 700;
    padding: 12px 14px;
    border-top: 2px solid var(--navy-700);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    text-align: left;
}
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text-body);
    vertical-align: middle;
}
.data-table tr:hover td { background: #FAFBFE; }
.data-table .num { color: var(--text-muted); font-size: 0.8rem; }
.data-table .empty-row td { text-align: center; color: var(--text-muted); padding: 48px 0; }

.data-table.wide { min-width: 1040px; }   /* 컬럼 많은 표 — 컨테이너가 가로 스크롤 */
.data-table td.nowrap, .data-table .num { white-space: nowrap; }

/* 상태 배지 — 구매내역 프로세스 단계 + A/S 상태 + 기록 확인 구분(ActivityCategory.BadgeClass) 공용 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge-paid     { background: var(--blue-100); color: var(--blue-600); }   /* 결제완료/접수됨 */
.badge-invite   { background: #FFF4E0; color: #B4770A; }                   /* 초대승인대기 */
.badge-manager  { background: #E9F8F0; color: #1D7A4F; }                   /* 관리자권한부여 */
.badge-owner    { background: #E9F0FF; color: #2448A8; }                   /* 주소유자권한부여 */
.badge-as       { background: var(--red-100); color: var(--red-600); }     /* A/S중/거절 */
.badge-done     { background: var(--navy-100); color: var(--navy-700); }   /* 구매확정/완료 */
.badge-progress { background: #FFF4E0; color: #B4770A; }                   /* 진행중 */

/* 인라인 소형 버튼 (표 안의 A/S 요청 등) */
.btn-sm {
    padding: 7px 14px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--red-500);
    background: #fff;
    color: var(--red-500);
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.btn-sm:hover { background: var(--red-500); color: #fff; }
.btn-sm:disabled { border-color: var(--line-strong); color: var(--text-muted); background: var(--bg-soft); }

/* 모달 — A/S 요청 (옵션 선택 + 메모) */
.cb-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 24, 52, 0.55);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cb-modal-backdrop.open { display: flex; }
body.modal-open { overflow: hidden; }   /* 모달이 열린 동안 뒤 페이지 스크롤 잠금 — site.js 가 백드롭 .open 을 감시해 토글 */
.cb-modal {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}
.cb-modal-head {
    background: var(--navy-700);
    color: #fff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display-md);
    font-size: 1rem;
}
.cb-modal-close { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; }
.cb-modal-body { padding: 24px 22px; }
.cb-modal-foot { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* 알림 모달 (site.js showToast) — 다른 모달 위에 뜨고 [확인]으로만 닫힌다. 머리 색으로 알림/안내/오류 구분 */
.cb-modal-backdrop.app-alert { z-index: 300; }
.cb-modal.app-alert-box { max-width: 400px; }
.cb-modal.app-alert-box.warning .cb-modal-head { background: #B4770A; }
.cb-modal.app-alert-box.danger .cb-modal-head { background: var(--red-500); }
.app-alert-msg { margin: 0; color: var(--text-body); line-height: 1.65; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }

/* 공지사항 리스트 — 제목 클릭 시 내용 펼침 */
.notice-list { border-top: 2px solid var(--navy-700); }
.notice-item { border-bottom: 1px solid var(--line); }
.notice-item-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 8px;
    background: none;
    border: 0;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-strong);
}
.notice-item-head:hover { color: var(--blue-500); }
.notice-tag {
    flex: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--navy-100);
    color: var(--navy-700);
}
.notice-tag.important { background: var(--red-100); color: var(--red-600); }
.notice-item-title { flex: 1; }
.notice-item-date { flex: none; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.notice-item-body {
    display: none;
    padding: 4px 8px 22px 8px;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.75;
    background: #FAFBFE;
    border-top: 1px dashed var(--line);
}
.notice-item.open .notice-item-body { display: block; }

/* 내정보 — 정보 행 그리드 */
.info-grid { display: grid; grid-template-columns: 160px 1fr; border-top: 2px solid var(--navy-700); }
.info-grid > dt {
    padding: 14px 16px;
    background: var(--bg-soft);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-strong);
    border-bottom: 1px solid var(--line);
}
.info-grid > dd {
    margin: 0;
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 추천인 코드 강조 박스 */
.referral-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--blue-100);
    border: 1px dashed var(--blue-500);
    border-radius: var(--radius-md);
    padding: 18px 22px;
}
.referral-code {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    color: var(--blue-600);
}

/* 로그인 카드 */
.auth-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-card);
}
.auth-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy-700);
    margin-bottom: 30px;
}

/* ============================== 등장 애니메이션 유틸 ============================== */
/* 마크업에서 .reveal 부여 + JS(IntersectionObserver)로 .in 토글. JS 전이라도 깨지지 않게
   기본 상태는 살짝 아래+투명, 모션 최소화 설정 사용자는 즉시 표시. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================== 전체 폭 패널 + 페이지네이션 + 비고 편집 (구매내역) ============================== */
.page-wrap.fluid { padding: 32px 24px 80px; }
.page-panel.fluid { max-width: none; padding: 36px 40px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel-meta { flex: none; font-size: 0.85rem; color: var(--text-muted); padding-top: 10px; }
.panel-meta strong { color: var(--navy-700); }

.data-table .col-memo { min-width: 220px; }
.memo-input {
    width: 100%;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-strong);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.memo-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.memo-input.dirty { border-color: var(--red-500); }

/* 비고 헤더 "?" 안내 — 마우스 오버·키보드 포커스·클릭(.open) 시 말풍선. 헤더 아래로 펼쳐 .table-scroll 에 잘리지 않게 한다 */
/* top: 1px — 한글 글리프는 줄 상자 중앙보다 약간 아래에 그려져, 아이콘을 그만큼 내려야 "비고" 와 시각적으로 수평이 맞는다 (실측 기준) */
.help-tip { position: relative; top: 1px; display: inline-block; margin-left: 6px; vertical-align: middle; }
.help-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    padding: 0;
    color: var(--blue-500);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: help;
    transition: color 0.15s ease;
}
/* 기본: 흰 원 + 파란 테두리·물음표. hover/open/focus: 원이 파랗게 차고 물음표는 흰색 (색은 모두 currentColor 기준) */
.help-tip-btn svg { display: block; width: 100%; height: 100%; }
.help-tip-btn circle { fill: #fff; stroke: currentColor; transition: fill 0.15s ease; }
.help-tip-btn path { fill: currentColor; transition: fill 0.15s ease; }
.help-tip-btn:hover circle, .help-tip-btn:focus-visible circle, .help-tip.open .help-tip-btn circle { fill: currentColor; }
.help-tip-btn:hover path, .help-tip-btn:focus-visible path, .help-tip.open .help-tip-btn path { fill: #fff; }
.help-tip-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--blue-100); }
.help-tip-bubble {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: max-content;
    max-width: 340px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    color: #fff;
    background: var(--navy-700);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}
.help-tip-bubble::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 5px;
    border: 5px solid transparent;
    border-top: 0;
    border-bottom-color: var(--navy-700);
}
.help-tip:hover .help-tip-bubble,
.help-tip-btn:focus-visible + .help-tip-bubble,
.help-tip.open .help-tip-bubble { opacity: 1; visibility: visible; transform: translateY(0); }

.btn-save { border-color: var(--navy-700); color: var(--navy-700); }
.btn-save:hover { background: var(--navy-700); color: #fff; }
.btn-save.saved { border-color: #1D7A4F; color: #1D7A4F; background: #E9F8F0; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-link {
    min-width: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s ease;
}
.page-link:hover { border-color: var(--navy-700); color: var(--navy-700); }
.page-link.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.page-link.disabled { pointer-events: none; opacity: 0.4; }

/* ============================== 인증 (로그인/회원가입) 보조 ============================== */
.auth-card.wide { max-width: 560px; }
.auth-links { text-align: center; margin: 22px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.auth-links a { color: var(--blue-500); font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-label .req { color: var(--red-500); }
.form-label .opt { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; }
.form-hint { margin: 6px 0 0; font-size: 0.76rem; color: var(--text-muted); }
.form-notice {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #E9F8F0;
    color: #1D7A4F;
    font-size: 0.85rem;
    font-weight: 700;
}
.form-checks { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
/* 회원가입 약관 동의 박스 — 전체 동의 줄 아래 구분선 */
.agree-box { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; background: var(--bg-soft); }
.agree-box .agree-all { font-weight: 700; color: var(--text-strong); padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* ============================== 약관·개인정보 문서 (/Legal/{doc}, 회원가입 모달) ============================== */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.legal-tabs a {
    font-size: 0.82rem; font-weight: 600;
    padding: 7px 14px;
    border: 1px solid var(--line); border-radius: 999px;
    color: var(--text-body); background: #fff;
}
.legal-tabs a.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.legal-doc { font-size: 0.9rem; line-height: 1.75; color: var(--text-body); }
.legal-doc p { margin: 0 0 8px; }
.legal-doc .legal-meta { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.legal-doc .legal-meta + .legal-h, .legal-doc .legal-meta + p:not(.legal-meta) { margin-top: 18px; }
.legal-doc .legal-h { font-family: var(--font-display-md); font-size: 1rem; color: var(--text-strong); margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-doc .legal-num { padding-left: 1.4em; text-indent: -1.4em; }
.legal-doc .legal-sub { padding-left: 2.6em; text-indent: -1.4em; color: var(--text-body); }
.legal-doc .legal-label { font-weight: 700; color: var(--text-strong); margin: 10px 0 4px; }
.legal-doc .legal-list { margin: 0 0 10px; padding-left: 1.4em; }
.legal-doc .legal-list li { margin: 2px 0; }
.legal-doc .legal-note { color: var(--text-muted); font-size: 0.84rem; }
.cb-modal.legal { max-width: 720px; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.cb-modal.legal .cb-modal-body { flex: 1; min-height: 0; overflow: auto; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text-body); cursor: pointer; }
.form-check input { margin-top: 3px; accent-color: var(--navy-700); }
.form-check a { color: var(--blue-500); text-decoration: underline; }
.gnb-user { color: rgba(255,255,255,0.85); font-size: 0.82rem; margin-right: 4px; white-space: nowrap; }


/* 택1 라디오 그룹 (알림 수신 방법) */
.form-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.form-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.15s ease;
}
.form-radio:hover { border-color: var(--navy-700); }
.form-radio:has(input:checked) { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.form-radio input { accent-color: #fff; margin: 0; }


/* 휴대폰 문자 인증 행 (입력 + 버튼) */
.phone-row { display: flex; gap: 8px; }
.phone-row + .phone-row { margin-top: 8px; }
.phone-row .form-input { flex: 1; min-width: 0; }
.phone-row .btn { white-space: nowrap; padding: 0 16px; }
.form-input[readonly] { background: var(--bg-soft); color: var(--text-muted); }
.verify-status.ok { color: #1D7A4F; font-weight: 700; }
.verify-status.err { color: var(--red-500); font-weight: 700; }
.phone-row[hidden] { display: none; }   /* hidden 속성이 display:flex 에 밀리지 않도록 */
/* hidden 속성은 어떤 display 규칙(grid/flex 클래스)보다 우선 — 보유 채널 팝업의 [구매 추가] 폼, 공지 모달의 '오늘 하루' 줄처럼 JS 가 hidden 을 토글하는 요소 전부 */
[hidden] { display: none !important; }


/* ============================== 공지 배너 스트립 (전 페이지 상단) ============================== */
#notice-strips { display: flex; flex-direction: column; }
.notice-strip {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 24px; font-size: 0.86rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.notice-strip-tag {
    flex: none; padding: 2px 10px; border-radius: 4px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}
.notice-strip-text {
    flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left;
    font-family: inherit; font-size: inherit; font-weight: 600; color: inherit; cursor: pointer;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-strip-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice-strip-close { flex: none; background: none; border: 0; font-size: 1.15rem; line-height: 1; color: inherit; opacity: 0.6; }
.notice-strip-close:hover { opacity: 1; }
/* 등급별 색 — 장애(빨강) / 경고(주황) / 안내(초록) / 이벤트(파랑) */
.notice-error   { background: #FDECEC; color: #B02A32; }  .notice-error .notice-strip-tag,   .nv-badge-error   { background: #E5424D; color: #fff; }
.notice-caution { background: #FFF4E0; color: #8A5A00; }  .notice-caution .notice-strip-tag, .nv-badge-caution { background: #E08A1E; color: #fff; }
.notice-normal  { background: #E9F8F0; color: #145A3A; }  .notice-normal .notice-strip-tag,  .nv-badge-normal  { background: #1D7A4F; color: #fff; }
.notice-event   { background: #E9EFFB; color: #1F3C8A; }  .notice-event .notice-strip-tag,   .nv-badge-event   { background: #2F5FD0; color: #fff; }
.nv-badge-error, .nv-badge-caution, .nv-badge-normal, .nv-badge-event { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.notice-view-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; line-height: 1.75; color: var(--text-body); max-height: 50vh; overflow: auto; }
.notice-view-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }

/* ============================== 관리자 페이지 보조 ============================== */
.stats-bar {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    padding: 14px 20px; margin-bottom: 20px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.stat-cell { display: flex; flex-direction: column; gap: 2px; min-width: 90px; }
.stat-cell .label { font-size: 0.75rem; color: var(--text-muted); }
.stat-cell .value { font-size: 1.05rem; font-weight: 700; color: var(--text-strong); }
.stat-divider { width: 1px; background: var(--line-strong); align-self: stretch; }
.action-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.action-bar .spacer { flex: 1; }
.search-input {
    padding: 9px 14px; min-width: 220px;
    font-family: inherit; font-size: 0.88rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
}
.search-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.data-table .text-left { text-align: left; }
.data-table .price-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .mono { font-family: Consolas, "Courier New", monospace; font-size: 0.78rem; }
.data-table tr.clickable { cursor: pointer; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm.neutral { border-color: var(--line-strong); color: var(--text-body); }
.btn-sm.neutral:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-sm.danger { border-color: var(--red-500); color: var(--red-500); }
.badge-locked { background: var(--red-100); color: var(--red-600); }
.badge-admin { background: var(--navy-100); color: var(--navy-700); }
.notice-title-btn {
    background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
    font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere;
}
.notice-title-btn:hover { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.count-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; color: var(--blue-600); background: var(--blue-100);
}
/* 결제 행 드롭다운(수신 전문) — PG/코인 결제 표의 상세 행 전용. 기록 확인의 데이터 행은 .activity-row 라 이 padding 0 에 걸리지 않는다 */
.log-row > td { padding: 0 !important; background: var(--bg-soft); }
.log-panel { padding: 16px 20px; border-top: 1px solid var(--line); }
.log-title { margin-bottom: 8px; font-size: 0.84rem; font-weight: 700; color: var(--text-strong); }
.log-legend { margin-bottom: 10px; font-size: 0.74rem; color: var(--text-muted); }
.log-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.log-table th, .log-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.log-table th { color: var(--text-muted); font-weight: 600; }
.log-table textarea { width: 100%; height: 56px; resize: vertical; font-family: Consolas, monospace; font-size: 0.72rem; }
.log-empty { padding: 12px; color: var(--text-muted); text-align: center; }
/* 배너 목록 모달 */
.banner-modal-list { display: flex; flex-direction: column; gap: 8px; user-select: none; }
.banner-modal-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
}
.banner-modal-row .title { flex: 1; min-width: 0; font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
.banner-modal-row .date { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }
.banner-modal-row .order-no { flex: none; width: 18px; text-align: center; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; }
.banner-drag-handle {
    flex: none; width: 22px; height: 30px; border: 0; border-radius: 6px; background-color: transparent; cursor: grab; touch-action: none;
    background-image: radial-gradient(circle, var(--text-muted) 1.5px, transparent 1.6px);
    background-size: 7px 7px; background-position: center; background-origin: content-box; padding: 5px 4px;
}
.banner-modal-row.dragging { position: relative; z-index: 2; background: #fff; box-shadow: var(--shadow-float); border-color: var(--blue-500); }
.banner-modal-empty { color: var(--text-muted); font-size: 0.85rem; padding: 14px 4px; }
.banner-add-group { display: flex; gap: 8px; margin-top: 10px; }
.banner-add-group select { flex: 1; min-width: 0; }
.cb-modal.wide { max-width: 640px; }
.log-detail { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); font-size: 0.85rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.cell-ellipsis { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .row-actions { flex-wrap: nowrap; }   /* 관리 버튼은 한 줄로 — 표가 가로 스크롤되므로 세로로 쌓지 않는다 */


/* ============================== 관리자 2차: 큰 모달 · 편집 표 · 설정 폼 ============================== */
/* 큰 모달(보유 채널 편집) — 화면 여백 12px 만 남기고 가로·세로를 꽉 채운다. 머리글은 고정, 본문만 스크롤.
   표는 모달 폭에 맞춰 늘어나고, 입력칸은 셀을 채우되 아래 최소 폭까지만 줄어든다 (1366px 노트북에서 11개 컬럼이 들어가는 값) */
.cb-modal-backdrop:has(> .cb-modal.xl) { padding: 12px; }
.cb-modal.xl { max-width: none; width: 100%; height: 100%; display: flex; flex-direction: column; }
.cb-modal.xl .cb-modal-body { flex: 1; min-height: 0; max-height: none; overflow: auto; padding: 14px 16px; }
.cb-modal.xl .data-table.wide { min-width: 0; width: 100%; }
.cb-modal.xl .data-table th, .cb-modal.xl .data-table td { padding: 9px 5px; }
.edit-table .form-input, .edit-table .form-select { padding: 6px 8px; font-size: 0.8rem; width: 100%; min-width: 96px; box-sizing: border-box; }
.edit-table .form-input.narrow { min-width: 100px; }
.edit-table .form-input[type="date"] { padding: 6px 4px; font-size: 0.74rem; min-width: 0; }   /* 날짜칸은 브라우저 고유 폭이 커서 글자·여백을 줄여 3칸이 들어가게 */
.edit-table .form-input.wide { min-width: 150px; }
.edit-table .row-actions { flex-wrap: nowrap; }
.edit-table td { vertical-align: middle; }
.edit-table tr.dirty td { background: #FFFBEB; }
.modal-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.modal-toolbar .spacer { flex: 1; }
.form-radios.vertical { flex-direction: column; }
.form-radio.block { border-radius: var(--radius-sm); padding: 12px 14px; align-items: flex-start; }
.form-radio.block .desc { display: block; font-size: 0.76rem; font-weight: 500; opacity: 0.75; margin-top: 2px; }
.setting-section { margin-bottom: 28px; }
.setting-section + .setting-section { border-top: 1px solid var(--line); padding-top: 24px; }
.setting-item {
    border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; background: #fff;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
}
.setting-item .full { grid-column: 1 / -1; }
.setting-item-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.setting-item-head .title { font-weight: 700; color: var(--text-strong); }
.setting-item-head .spacer { flex: 1; }
.product-image-preview { width: 120px; height: 80px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.as-reply { width: 100%; min-width: 220px; font-family: inherit; font-size: 0.82rem; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); resize: vertical; }
.btn-sm.active-status { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.product-desc { font-size: 0.86rem; color: var(--text-body); white-space: pre-line; margin: 0 0 14px; }


/* 홈 배너 미리보기(페이지 설정) */
.hero-preview { width: 320px; height: 150px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(90deg, #0A1026 0%, #101A3D 55%, #1F2E60 100%); flex: none; }
.hero-preview img, .hero-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-preview-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* 배너 클릭 링크 — 배경 위·콘텐츠 아래 */
.hero-bg-link { position: absolute; inset: 0; z-index: 0; }
.hero-inner, .hero-dots, .hero-contact-strip { position: relative; z-index: 1; }
.hero-dots, .hero-contact-strip { position: absolute; }


/* 히어로 배너 슬라이드 (여러 장 로테이션)
   이미지: 같은 파일을 두 겹으로 — .hero-media-backdrop(cover+blur, 빈 공간 채움) 위에 .hero-media(contain, 원본 비율 유지).
   영상: 보통 배너용 16:9로 제작되므로 cover 그대로 사용 */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; overflow: hidden; }
.hero-slide.active { opacity: 1; }
.hero-slide .hero-media { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-slide video.hero-media { object-fit: cover; }
.hero-media-backdrop, .product-card-backdrop {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(24px) brightness(0.85);
    transform: scale(1.12);   /* 블러로 흐려지는 가장자리를 박스 밖으로 밀어냄 */
    pointer-events: none;
}
.hero-dots .dot { cursor: pointer; }
.banner-item .hero-preview { grid-column: 1 / -1; width: 100%; max-width: 480px; height: 180px; }
.hero-preview img { object-fit: contain; }   /* 관리자 미리보기도 실제 노출과 동일하게 비율 유지 */

/* 상품 카드 이미지 — 16:9 박스 안에 원본 비율 유지, 여백은 블러 백드롭 */
.product-card-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.product-card-media .product-card-image { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card-media .product-card-backdrop { filter: blur(18px) brightness(1.02); }

/* 본문 이미지 — A/S 정책·FAQ 텍스트 안의 ![설명](주소) 토큰이 렌더링된 결과 */
.content-img { display: block; max-width: 100%; height: auto; margin: 10px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
/* 페이지 설정: 텍스트영역 머리(라벨 + 이미지 삽입 버튼) */
.ta-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ta-head .form-label { margin: 0; }

/* ── 페이지 설정: 섹션별 카드 + 상단 고정 섹션 탭 ── */
.setting-wrap { max-width: 1100px; margin: 0 auto; }
.setting-wrap .page-panel { max-width: none; }
.setting-intro { padding: 32px 40px 8px; }
.setting-intro .page-desc { margin-bottom: 16px; }
.setting-nav {
    position: sticky; top: 12px; z-index: 5;
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 16px 0 20px; padding: 8px;
    background: #fff;
    border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-card);
}
.setting-nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 8px; border-radius: 999px;
    font-size: 0.86rem; font-weight: 700; color: var(--text-body); text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.setting-nav a .n {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy-100); color: var(--navy-700); font-size: 0.74rem;
}
.setting-nav a:hover { background: var(--bg-soft); }
.setting-nav a.active { background: var(--navy-700); color: #fff; }
.setting-nav a.active .n { background: var(--red-500); color: #fff; }

.setting-section { margin-bottom: 0; padding: 0; overflow: hidden; scroll-margin-top: 76px; }
.setting-section + .setting-section { border-top: 1px solid var(--line); padding-top: 0; margin-top: 20px; }
.setting-head { /* 네이비 헤더 바 — 번호 배지 + 제목 + 설명 */
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px 40px;
    background: linear-gradient(90deg, var(--navy-800) 0%, var(--navy-700) 100%);
    color: #fff;
    border-left: 5px solid var(--red-500);
}
.setting-head h2 { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: 0.02em; margin: 0 0 4px; color: #fff; }
.setting-head p { margin: 0; font-size: 0.84rem; line-height: 1.6; color: rgba(255,255,255,0.78); }
.setting-head p strong { color: #fff; }
.setting-num {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--red-500); color: #fff; font-family: var(--font-display); font-size: 0.95rem;
    margin-top: 1px;
}
.setting-body { padding: 26px 40px 32px; background: #fff; }
.setting-body .setting-item { background: var(--bg-soft); }   /* 카드 안 항목은 연회색으로 한 단계 안쪽임을 표시 */
.setting-body .setting-item .form-input, .setting-body .setting-item .form-textarea { background: #fff; }


/* ============================== 홈 결제 팝업 (채널 수 → 채널별 이메일 → 약관 동의) ============================== */
.cb-modal.checkout { max-width: 560px; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.cb-modal.checkout form { display: flex; flex-direction: column; min-height: 0; }
.cb-modal.checkout .cb-modal-body { flex: 1; min-height: 0; overflow: auto; }
.cb-modal.checkout .cb-modal-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; margin-bottom: 18px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.checkout-summary .name { font-family: var(--font-display-md); color: var(--text-strong); }
.checkout-summary .unit-price { color: var(--red-500); font-weight: 700; white-space: nowrap; }
.checkout-summary .per { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; }
.checkout-summary .name .product-discount { margin-left: 6px; font-family: var(--font-body); vertical-align: middle; }
.checkout-summary .list-price { color: var(--text-muted); font-weight: 500; font-size: 0.82rem; }
/* 추천인 할인 안내 줄 — 홈 구매 팝업·구매내역 결제 모달의 합계 아래 */
.checkout-discount { margin: -8px 0 14px; font-size: 0.82rem; font-weight: 700; color: var(--red-500); }
.checkout-done p.checkout-done-amount { margin-top: -10px; font-weight: 700; color: var(--text-strong); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; border: 0; background: var(--bg-soft); color: var(--text-strong); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.qty-stepper button:hover { background: var(--navy-100); }
.qty-stepper input {
    width: 68px; height: 40px; border: 0; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
    text-align: center; font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--text-strong); -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; background: var(--blue-100); }
.checkout-emails { display: flex; flex-direction: column; gap: 8px; }
.checkout-email-row { display: flex; align-items: center; gap: 10px; }
.checkout-email-row .idx { flex: none; width: 52px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.checkout-email-row .form-input { flex: 1; min-width: 0; }
.checkout-total {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 14px 0; margin: 4px 0 16px;
    border-top: 2px solid var(--navy-700); border-bottom: 1px solid var(--line);
    font-weight: 700; color: var(--text-strong);
}
.checkout-total .num { font-weight: 500; }
.checkout-total .amount { font-family: var(--font-display); font-size: 1.5rem; color: var(--red-500); white-space: nowrap; }
.checkout-total .amount .unit { font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-body); margin-left: 2px; }
.checkout-done { text-align: center; padding: 36px 22px 28px; }
.checkout-done .icon {
    width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #E9F8F0; color: #1D7A4F; font-size: 1.6rem; font-weight: 700;
}
.checkout-done h3 { font-family: var(--font-display-md); font-size: 1.15rem; color: var(--text-strong); margin-bottom: 8px; }
.checkout-done p { font-size: 0.88rem; line-height: 1.7; color: var(--text-body); margin-bottom: 20px; }
.checkout-done .actions { display: flex; gap: 10px; justify-content: center; }

/* 구매 신청(관리자) — 채널별 고객 이메일 목록 */
/* 고객 이메일 목록 — 들여쓰기 없이 셀 왼쪽에 붙인다. 채널이 2개 이상일 때만 "1. 2." 번호를 앞에 붙인다 (1개면 번호 없음) */
.email-list { margin: 0; padding-left: 0; list-style: none; counter-reset: email; font-size: 0.78rem; color: var(--text-body); line-height: 1.6; text-align: left; }
.email-list li { white-space: nowrap; counter-increment: email; }
.email-list li::before { content: counter(email) ". "; color: var(--text-muted); }
.email-list li:only-child::before { content: none; }

/* 기록 확인(관리자) */
.badge-cat { background: var(--bg-soft); color: var(--text-body); border: 1px solid var(--line-strong); }   /* 구분 배지 중립색(계정) — 나머지 구분은 위 .badge-* 팔레트 재사용 */
.data-table td.log-summary { min-width: 360px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }   /* 내용은 줄임 없이 전부 — 남는 폭을 차지하고 길면 줄바꿈 */
.data-table tr.activity-row td { padding-top: 15px; padding-bottom: 15px; }   /* 행 사이 여백 — 한 줄짜리 기록이 빽빽하게 붙지 않게 (기본 13px 보다 조금 넉넉히) */

/* 구매 신청(관리자) — 상태 열 드롭다운: 표 안이라 폼 기본(전체 폭·큰 여백)보다 작게 */
/* 구매 신청(관리자) — 표의 모든 열(채널 편집 패널 포함)을 왼쪽 정렬 (2026-09-09 요청; 결제 비용의 우측 정렬·번호 가운데 정렬도 해제) */
#pr-table th, #pr-table td, #pr-table .price-cell { text-align: left; }
.data-table .status-select { width: auto; min-width: 150px; padding: 7px 10px; font-size: 0.82rem; font-weight: 600; }
.data-table .status-select:disabled { opacity: 0.6; }
/* 구매 신청(관리자) — [채널 편집] 패널: 요청 행 아래 펼쳐지는 채널(구매 행) 편집 표 */
.channel-row > td, .data-table tr.channel-row:hover > td { padding: 0 !important; background: var(--bg-soft); }
.channel-panel { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.channel-panel .log-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.channel-table { min-width: 1350px; background: #fff; }   /* 고객 이메일·채널정보·서비스계정정보 3칸 + 날짜 4칸 */
.channel-table th, .channel-table td { padding: 8px 6px; }
.channel-table .form-input.wide { min-width: 170px; }
.btn-sm[aria-expanded="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
pre.log-detail { margin: 0; font-size: 0.76rem; line-height: 1.6; }

/* 채널 교체 이력 — 구매 행 아래 펼쳐지는 패널 (관리자 보유 채널·채널 편집·A/S 요청, 회원 구매내역 공용. 렌더는 site.js cbHistory) */
.history-row > td, .data-table tr.history-row:hover > td { padding: 0 !important; background: var(--bg-soft); }
.history-panel { padding: 12px 18px 16px; border-top: 1px solid var(--line); text-align: left; }
.history-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; font-size: 0.84rem; font-weight: 700; color: var(--text-strong); }
.history-current { font-size: 0.78rem; font-weight: 500; color: var(--text-body); overflow-wrap: anywhere; }
.history-table { width: 100%; min-width: 1500px; border-collapse: collapse; font-size: 0.78rem; background: #fff; }   /* 교체 전 행 전체 열 + 교체 후·사유·처리자·일시 — 넓어서 패널 안에서 가로 스크롤 */
.history-table th, .history-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.history-table td.history-ch-info, .history-table td.history-reason { white-space: normal; min-width: 140px; }
.history-table th { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.history-ch-info { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.history-ch-acc { font-size: 0.74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.history-arrow { color: var(--blue-500); font-weight: 700; text-align: center; }
.history-reason { min-width: 160px; overflow-wrap: anywhere; }
.history-empty { padding: 10px 4px; color: var(--text-muted); font-size: 0.82rem; }
.history-chip {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 1px 8px; border: 0; border-radius: 999px; cursor: pointer;
    font-family: inherit; font-size: 0.7rem; font-weight: 700; color: var(--blue-600); background: var(--blue-100); white-space: nowrap;
}
.history-chip:hover, tr.history-open .history-chip { background: var(--navy-700); color: #fff; }
.history-chip.zero { color: var(--text-muted); background: var(--bg-soft); }

/* ============================== 채널 관리(관리자) — 마스터-디테일 (BoardmobIP IpLeases 골격 이식) ============================== */
.title-stats { display: inline-flex; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.78rem; align-self: center; }
.title-stats strong { font-weight: 700; color: var(--text-strong); }
/* 상태별 수치 색 — 구매내역 배지 팔레트와 맞춤 */
.stat-paid strong { color: var(--blue-600); } .stat-invite strong { color: #B4770A; } .stat-manager strong { color: #1D7A4F; }
.stat-owner strong { color: #2448A8; } .stat-as strong { color: var(--red-600); } .stat-confirmed strong { color: var(--navy-700); }
.md-layout { display: flex; gap: 16px; align-items: flex-start; }
.md-sidebar {
    width: 300px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    display: flex; flex-direction: column; overflow: hidden;
    position: sticky; top: calc(var(--gnb-h) + 16px); height: calc(100vh - var(--gnb-h) - 40px);   /* 긴 채널 표를 스크롤해도 고객 목록이 따라온다 */
}
.md-sidebar-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.md-sidebar-head h5 { margin: 0 0 10px; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.md-sidebar-head h5 .count { color: var(--blue-500); }
.md-sidebar-head .search-input { width: 100%; box-sizing: border-box; }
.md-sidebar-head .chip-filters { margin-top: 8px; gap: 5px; }
.md-sidebar-head .chip-filter { min-height: 26px; padding: 3px 8px; font-size: 0.72rem; }
.md-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0; }
.md-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; cursor: pointer; border-left: 3px solid transparent; transition: background 0.12s, border-color 0.12s; }
.md-item:hover { background: var(--bg-soft); }
.md-item.active { background: var(--blue-100); border-left-color: var(--blue-500); }
.md-item .v-body { flex: 1; min-width: 0; }
.md-item .v-name { color: var(--text-strong); font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; display: flex; justify-content: space-between; gap: 8px; }
.md-item.active .v-name { color: var(--blue-600); }
.md-item .v-count { color: var(--text-muted); font-weight: 500; font-size: 0.76rem; flex: none; }
.md-item .v-meta { color: var(--text-muted); font-size: 0.72rem; line-height: 1.4; }
.md-item .v-note { color: var(--text-body); font-size: 0.72rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-item .v-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.md-item .v-badges .badge { font-size: 0.66rem; padding: 2px 7px; }
.md-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.md-detail-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.md-detail-head .vd-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.md-detail-head h5 { margin: 0; color: var(--text-strong); font-size: 1.05rem; font-weight: 700; }
.md-detail-head .vd-meta { color: var(--text-muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.md-detail .setting-item { margin-bottom: 0; }
.chip-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-filter {
    min-height: 30px; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
    color: var(--text-muted); font-family: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.chip-filter:hover { color: var(--text-strong); border-color: var(--blue-500); }
.chip-filter.active { color: var(--blue-600); border-color: var(--blue-500); background: var(--blue-100); }
.chip-filter [data-cnt] { opacity: 0.7; margin-left: 2px; }
.md-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.md-filter-row .spacer { flex: 1; }
.md-filter-label { color: var(--text-muted); font-size: 0.74rem; font-weight: 700; }
.md-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.md-table-wrap .data-table.wide { min-width: 1500px; }
.md-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
/* 채널 관리 — 보기 전환 탭(회원 별 / 채널 전체 보기), 회원 관리자 비고, 전체 보기 회원 열 */
.view-tabs { margin-bottom: 12px; }
.md-detail-head .vd-note { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--text-body); font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.md-detail-head .vd-note-label { flex: none; font-weight: 700; color: var(--text-muted); font-size: 0.72rem; padding-top: 2px; }
.md-filter-row .all-search { width: 280px; max-width: 100%; }
.ch-user-cell { max-width: 200px; }
.ch-user-cell .ch-user-link { font-weight: 700; color: var(--blue-600); text-decoration: none; }
.ch-user-cell .ch-user-link:hover { text-decoration: underline; }
.ch-user-cell .ch-user-name { color: var(--text-muted); font-size: 0.74rem; margin-top: 1px; }
.ch-user-cell .ch-user-note { color: var(--text-body); font-size: 0.72rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 채널 관리 상단 상품 재고 (2026-10-28) — 상품마다 [이름 · 판매 상태 · 재고 입력 · 저장] 한 칸 */
.stock-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 14px; }
.stock-bar-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.stock-bar-head .form-hint { margin: 0; flex: 1; min-width: 240px; }
.stock-bar-title { font-weight: 700; color: var(--text-strong); font-size: 0.9rem; }
.stock-bar-link { font-size: 0.78rem; font-weight: 700; color: var(--blue-600); text-decoration: none; white-space: nowrap; }
.stock-bar-link:hover { text-decoration: underline; }
.stock-list { display: flex; flex-wrap: wrap; gap: 10px; }
.stock-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.stock-name { font-weight: 700; color: var(--text-strong); font-size: 0.86rem; }
.stock-item .badge { padding: 3px 9px; font-size: 0.7rem; }
.stock-item .stock-input { width: 104px; padding: 6px 10px; text-align: right; background: #fff; }
.stock-item .stock-input.is-zero { color: var(--red-600); font-weight: 700; border-color: var(--red-500); }
.stock-unit { color: var(--text-muted); font-size: 0.8rem; }
@media (max-width: 820px) {
    .md-layout { flex-direction: column; }
    .md-sidebar { width: 100%; position: static; height: auto; }
    .md-list { max-height: 236px; }
    .stock-item { flex-wrap: wrap; width: 100%; }
    .stock-name { flex: 1 1 100%; }
}

/* 구매내역 결제 팝업 — 결제 수단 선택(#pay-method-modal: 카드 + 코인별 버튼)과 코인결제(UniWire) 입금 안내 화면 (#pay-crypto) */
.cb-modal.pay-method { max-width: 440px; }
.pay-method-amount { font-size: 0.9rem; color: var(--text-body); margin-bottom: 14px; }
.pay-method-amount strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--red-500); margin-left: 6px; }
.pay-method-list { display: grid; gap: 10px; }
.pay-method-option {
    display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; cursor: pointer;
    padding: 16px 18px; border: 1px solid var(--line-strong); border-left: 4px solid var(--red-500); border-radius: var(--radius-sm);
    background: #fff; transition: all 0.15s ease;
}
.pay-method-option:hover { background: var(--bg-soft); border-color: var(--red-500); }
/* 코인 버튼 왼쪽 띠 = 코인 브랜드색 — 카드(빨강)와 구분 */
.pay-method-option.crypto { --coin: #26A17B; border-left-color: var(--coin); }   /* USDT(테더) 초록 */
.pay-method-option.crypto[data-coin="BTC"] { --coin: #F7931A; }
.pay-method-option.crypto[data-coin="ETH"] { --coin: #627EEA; }
.pay-method-option.crypto[data-coin="XRP"] { --coin: #23292F; }
.pay-method-option.crypto:hover { border-color: var(--coin); }
.pay-coin-head { margin: 6px 0 8px; font-size: 0.78rem; color: var(--text-muted); }
.pay-coin-head strong { margin-right: 8px; font-family: var(--font-display-md); font-size: 1rem; font-weight: normal; color: var(--text-strong); }
.pay-coin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-coin-list .pay-method-option { padding: 12px 14px; }
.pay-method-option .title { font-family: var(--font-display-md); font-size: 1rem; color: var(--text-strong); }
.pay-method-option .desc { font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
.crypto-pay { display: flex; flex-direction: column; min-height: 0; }
.crypto-pay .cb-modal-body { flex: 1; min-height: 0; overflow: auto; }
.crypto-lead { font-size: 0.9rem; color: var(--text-body); margin-bottom: 16px; }
.crypto-field { margin-bottom: 16px; }
.crypto-field .form-label { display: block; margin-bottom: 6px; }
.crypto-field .btn-sm { margin-top: 8px; }
.crypto-value {
    padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--bg-soft); color: var(--text-strong); overflow-wrap: anywhere;
}
.crypto-value.amount { font-family: var(--font-display); font-size: 1.3rem; }
.crypto-value.mono { font-family: Consolas, "Courier New", monospace; font-size: 0.85rem; }
.crypto-value.tag { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; border-color: #B3261E; }   /* XRP 데스티네이션 태그 — 빠뜨리면 결제 확인 불가라 강조 */
.crypto-tag .form-hint { color: #B3261E; }
.crypto-notes { margin: 0 0 16px; padding-left: 18px; font-size: 0.8rem; line-height: 1.7; color: var(--text-muted); }
.crypto-status { padding: 13px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text-body); font-size: 0.86rem; font-weight: 700; text-align: center; }
.crypto-status.is-error { background: #FDECEA; color: #B3261E; }

/* 구매내역 결제 (2026-10-20 신청 후 결제 방식) — 결제 바 · 체크박스 열 · 확인 모달의 선택 목록 */
.pay-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; margin: -8px 0 16px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.pay-bar-info { font-size: 0.85rem; color: var(--text-muted); }
.pay-bar-info.active { color: var(--text-strong); font-weight: 700; }
.data-table th.col-check, .data-table td.col-check { width: 44px; padding-left: 6px; padding-right: 6px; text-align: center; }
.check-hit { display: flex; align-items: center; justify-content: center; min-height: 32px; cursor: pointer; }   /* 칸 전체가 클릭 영역 — 행 클릭(교체 이력)으로 번지지 않는다 */
.check-hit input { width: 17px; height: 17px; margin: 0; accent-color: var(--red-500); cursor: pointer; }
.check-hit input:disabled { cursor: not-allowed; opacity: 0.4; }
.data-table tr.selected > td, .data-table tr.selected:hover > td { background: #FFF5F5; }
.status-note { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; }
.status-note.ready { color: var(--red-500); font-weight: 700; }   /* 채널 배정됨 — 결제할 차례 */
.pay-confirm-lead { font-size: 0.98rem; font-weight: 700; color: var(--text-strong); margin-bottom: 14px; }
.pay-confirm-list { list-style: none; margin: 0 0 4px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); max-height: 260px; overflow: auto; }
.pay-confirm-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.pay-confirm-list li:last-child { border-bottom: 0; }
.pay-confirm-list .ch { min-width: 0; }
.pay-confirm-list .ch strong { display: block; color: var(--text-strong); }
.pay-confirm-list .ch span { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--text-muted); overflow-wrap: anywhere; }
.pay-confirm-list .price { flex: none; font-weight: 700; color: var(--text-strong); white-space: nowrap; text-align: right; }
.pay-confirm-list .price-was { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-bottom: 2px; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
