/* ===========================
   lecture_new.css
   MCET 온라인강의 — 폰트 2배 / devine 컬러 / 에디토리얼 무드
   =========================== */

:root {
    --ln-bg:       #081618;   /* 헤더/히어로 #081618 기준 베이스 */
    --ln-bg2:      #0a1d22;
    --ln-card:     #101c20;
    --ln-surface:  #132d36;
    --ln-border:   #183c48;
    --ln-border-l: #1e5060;
    --ln-cyan:     #16AEB5;   /* 로고 틸 계열 */
    --ln-green:    #77F892;
    --ln-red:      #FF4848;
    --ln-text:     #D5EAEB;   /* 살짝 틸 틴트 */
    --ln-muted:    #5d8a90;
    --ln-dim:      #308891;
    --ln-font:     'Pretendard', 'Noto Sans KR', sans-serif;
    --ln-serif:    'Noto Serif KR', serif;
}

/* 페이지 배경 재정의 */
.online_wrap {
    background: var(--ln-bg);
    padding: 0;
    color: var(--ln-text);
}
.online_wrap .sub_title { display: none; }

/* ===========================
   검색 섹션
   =========================== */
.ln-search-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px 64px;
}
.ln-search-notice {
    font-size: 12px;
    color: var(--ln-cyan);
    font-family: var(--ln-font);
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
    opacity: 0.7;
}
.ln-search-bar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--ln-border-l);
}
.ln-search-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
    border: none;
    font-family: var(--ln-font);
    transition: color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.ln-search-category svg { width: 14px; height: 14px; }
.ln-search-category:hover { color: #fff; }

/* 실제 select 태그 스타일 */
.ln-search-bar select {
    background-color: transparent !important;
    border: none !important;
    outline: none;
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--ln-font);
    padding: 0 32px 0 0;
    height: 60px;
    line-height: 60px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}
.ln-search-bar select option { background: #07141A; color: #333; }
.ln-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.ln-search-input-field {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 20px;
    color: var(--ln-text);
    font-family: var(--ln-font);
    padding: 20px 0;
}
.ln-search-input-field:hover,
.ln-search-input-field:focus,
.ln-search-input-field:focus-visible { outline: none; box-shadow: none; }
.ln-search-input-field::placeholder { color: var(--ln-dim); }
.ln-search-submit {
    background: none;
    border: none;
    color: var(--ln-dim);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.ln-search-submit:hover { color: var(--ln-cyan); }
.ln-search-submit svg { width: 20px; height: 20px; }

.ln-popular-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 0;
}
.ln-popular-label {
    font-size: 12px;
    color: var(--ln-dim);
    font-family: var(--ln-font);
    margin-right: 4px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.ln-popular-tag {
    padding: 6px 14px;
    background: transparent;
    border-radius: 20px;
    font-size: 13px;
    color: var(--ln-muted);
    text-decoration: none;
    font-family: var(--ln-font);
    border: 1px solid var(--ln-border);
    transition: color 0.2s, border-color 0.2s;
}
.ln-popular-tag:hover {
    color: var(--ln-text);
    border-color: var(--ln-border-l);
}

/* ===========================
   강의 섹션
   =========================== */
.ln-sections {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ln-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0;
}
.ln-section-label {
    display: none;
}
.ln-section-title {
    font-size: 24px;
    font-family: var(--ln-font);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.ln-section-more {
    font-size: 14px;
    color: var(--ln-muted);
    text-decoration: none;
    font-family: var(--ln-font);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.ln-section-more:hover { color: var(--ln-cyan); }

/* ===========================
   Swiper 슬라이더
   =========================== */

/* 슬라이더 행 레이아웃 */
.ln-swiper-outer {
    position: relative;
    margin-bottom: 48px;
}
/* 가로만 클립, 세로는 열어둬야 hover lift + shadow 안 잘림 */
.ln-swiper-track {
    overflow-x: clip;
    overflow-y: visible;
    /* shadow blur 32px + translateY 4px → 36px 여유 필요. 음수 마진으로 레이아웃 유지 */
    padding-top: 40px;
    margin-top: -40px;
}

.ln-swiper {
    width: 100%;
    overflow: visible;
    padding-bottom: 50px !important;
}

/* 슬라이드 하나 = 카드 하나 */
.ln-swiper .swiper-slide {
    width: auto;
    height: auto;
    align-self: stretch;
}
.ln-swiper .swiper-wrapper { align-items: stretch; }
.ln-swiper .swiper-slide .ln-card { height: 100%; }

/* 네비게이션 버튼 — track 밖, outer 기준으로 절대 배치 */
.ln-swiper-outer .swiper-button-prev,
.ln-swiper-outer .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 96px;
    background: rgba(15, 32, 39, 0.85);
    border: none;
    border-radius: 18px;
    color: rgba(255,255,255,0.7);
    z-index: 10;
    transition: background 0.2s, color 0.2s;
    display: flex; align-items: center; justify-content: center;
    margin: 0; padding: 0;
}
.ln-swiper-outer .swiper-button-prev:hover,
.ln-swiper-outer .swiper-button-next:hover {
    background: var(--ln-cyan);
    color: #fff;
}
.ln-swiper-outer .swiper-button-prev::after {
    content: '❮'; font-size: 18px; font-weight: 700;
}
.ln-swiper-outer .swiper-button-next::after {
    content: '❯'; font-size: 18px; font-weight: 700;
}
.ln-swiper-outer .swiper-button-prev { left: -55px; }
.ln-swiper-outer .swiper-button-next { right: -55px; }

/* 슬라이드 카운터 */
.ln-slide-counter {
    font-size: 16px;
    font-weight: 400;
    color: var(--ln-muted);
    font-family: var(--ln-font);
    letter-spacing: 0;
    margin-left: 12px;
    vertical-align: middle;
}

/* ===========================
   강의 카드
   =========================== */
.ln-card {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ln-card);
    border-radius: 10px;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.ln-card:hover {
    border-color: rgba(4,221,240,0.45);
    box-shadow: 0 0 32px rgba(4,221,240,0.1);
    transform: translateY(-4px);
}

.ln-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--ln-bg);
}
.ln-card-thumb-inner {
    width: 100%;
    height: 100%;
    background: var(--ln-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ln-dim);
    font-size: 16px;
    font-family: var(--ln-font);
    letter-spacing: 0.1em;
}
.ln-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ln-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.ln-card:hover .ln-card-thumb::after { opacity: 0; }
/* ln-card-badge 미사용 (제거됨) */

/* 썸네일 위 강의 유형 태그 */
.ln-card-type {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 13px;
    font-family: var(--ln-font);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
}

.ln-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ln-card-title-row { display: contents; }
.ln-card-title {
    font-size: 18px;
    font-family: var(--ln-font);
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.03em;
}
.ln-card-score {
    font-size: 13px;
    font-family: var(--ln-font);
    font-weight: 700;
    color: #F4C430;
    white-space: nowrap;
}

.ln-card-desc {
    font-size: 12px;
    color: var(--ln-dim);
    font-family: var(--ln-font);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 0;
    min-height: 1.55em;
}
.ln-card-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--ln-muted);
    font-family: var(--ln-font); margin-top: auto;
}
.ln-card-price-row {
    display: flex; align-items: baseline; gap: 10px;
    padding-top: 12px;
    margin-top: 6px;
}
.ln-card-price {
    font-size: 15px; font-family: var(--ln-font);
    font-weight: 500; color: #fff; letter-spacing: -0.01em;
    opacity: 0.6;
}
.ln-card-price-original {
    font-size: 14px; font-family: var(--ln-font);
    color: var(--ln-muted); text-decoration: line-through;
}
.ln-card-price-main {
    font-size: 16px; font-family: var(--ln-font);
    font-weight: 700; color: #fff; letter-spacing: -0.02em;
}
.ln-discount-badge {
    display: inline-block;
    font-size: 11px; font-family: var(--ln-font); font-weight: 700;
    color: #fff; background: #FF6604;
    border-radius: 4px; padding: 2px 6px;
    letter-spacing: 0;
}
.ln-card-discount {
    font-size: 16px; font-family: var(--ln-font);
    font-weight: 800; color: var(--ln-red);
}

/* ===========================
   상세 - 레이아웃
   =========================== */
.ln-view-outer { width: 100%; padding: 165px 40px 0; background: var(--ln-bg); color: var(--ln-text); }

/* 목록으로 버튼 */
.ln-view-back-row { max-width: 1440px; margin: 0 auto; padding-bottom: 16px; }
.ln-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-family: var(--ln-font); font-weight: 500;
    color: var(--ln-muted); text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}
.ln-back-btn:hover { color: var(--ln-cyan); }
.ln-back-btn svg { flex-shrink: 0; }
.ln-view-inner {
    max-width: 1440px; margin: 0 auto;
    display: flex; gap: 56px;
    align-items: flex-start; position: relative;
}
.ln-view-main {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 96px;
    color: var(--ln-text); padding-bottom: 160px;
}
.ln-sidebar { display: none; width: 340px; flex-shrink: 0; }
@media (min-width: 1024px) {
    .ln-sidebar {
        display: block; position: sticky; top: 162px; align-self: flex-start;
    }
}
.ln-sidebar-inner {
    display: flex; flex-direction: column; gap: 15px;
    background: var(--ln-surface);
    border-radius: 14px; padding: 32px;
}

/* ===========================
   상세 - 공통
   =========================== */
.ln-section-badge {
    display: inline-flex; align-items: center;
    padding: 7px 18px;
    background: rgba(4,221,240,0.1);
    border: 1px solid rgba(4,221,240,0.25);
    border-radius: 5px;
    font-size: 16px; font-family: var(--ln-font);
    font-weight: 700; letter-spacing: 0.06em;
    color: var(--ln-cyan); margin-bottom: 10px;
}
.ln-section-heading {
    font-size: 34px; font-family: var(--ln-font);
    font-weight: 800; color: #fff; line-height: 1.2;
    margin: 0; letter-spacing: -0.04em;
    padding-bottom: 20px;
}
@media (min-width: 768px) { .ln-section-heading { font-size: 42px; } }
.ln-hr { border: none; border-top: 1px solid var(--ln-border); margin: 0; }
.ln-star-icons { display: flex; color: #F4C430; }

/* ===========================
   상세 - 미디어 갤러리
   =========================== */
.ln-media-section { display: flex; flex-direction: column; gap: 10px; }

/* 메인 Swiper */
.ln-media-main-swiper { border-radius: 10px; overflow: hidden; width: 100%; position: relative; }
.ln-media-prev, .ln-media-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.65); border-radius: 50%;
    color: #fff; cursor: pointer; transition: background 0.2s, transform 0.2s;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.ln-media-prev { left: 16px; }
.ln-media-next { right: 16px; }
.ln-media-prev:hover, .ln-media-next:hover { background: rgba(22,174,181,0.8); transform: translateY(-50%) scale(1.08); border-color: var(--ln-cyan); }
.ln-media-prev.swiper-button-disabled, .ln-media-next.swiper-button-disabled { opacity: 0.3; pointer-events: none; }
.ln-media-main-swiper .swiper-slide { width: 100%; height: 0; padding-bottom: 56.25%; position: relative; } /* 16:9 */
.ln-media-main-swiper .swiper-slide > * { position: absolute; inset: 0; }

/* 썸네일 Swiper */
.ln-media-thumb-swiper { padding: 0 !important; width: 100%; overflow: hidden; }
.ln-media-thumb-swiper .swiper-wrapper { justify-content: flex-start; }
.ln-media-thumb-swiper .swiper-slide {
    aspect-ratio: 16 / 9;
    cursor: pointer; opacity: 0.5; transition: opacity 0.2s;
}
.ln-media-thumb-swiper .swiper-slide-thumb-active { opacity: 1; }

.ln-media-thumb {
    position: relative;
    width: 100%; height: 100%;
    background: var(--ln-surface);
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.ln-media-thumb-swiper .swiper-slide-thumb-active .ln-media-thumb {
    border-color: var(--ln-cyan);
}
.ln-media-thumb-play {
    width: 32px; height: 32px;
    background: rgba(22,174,181,0.2);
    border: 1px solid var(--ln-cyan);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding-left: 3px;
}
.ln-media-thumb-badge {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    color: #0d1117;
    background: var(--ln-cyan);
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* 이미지 슬라이드 */
.ln-media-img-slide {
    width: 100%; height: 100%;
    background: var(--ln-card);
    background-size: cover; background-position: center;
}
.ln-media-player {
    position: relative; width: 100%; height: 100%;
    background: var(--ln-card);
    border-radius: 10px; overflow: hidden; cursor: pointer;
}
.ln-media-player iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: 0;
}
.ln-media-player-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.6; filter: grayscale(0.4); transition: opacity 0.3s;
}
.ln-media-player:hover .ln-media-player-bg { opacity: 0.4; }
.ln-media-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ln-media-play-circle {
    width: 88px; height: 88px;
    background: rgba(4,221,240,0.15);
    border: 2px solid var(--ln-cyan);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding-left: 6px; transition: transform 0.2s, background 0.2s;
}
.ln-media-player:hover .ln-media-play-circle { transform: scale(1.1); background: rgba(4,221,240,0.3); }
.ln-media-caption {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    display: flex; justify-content: space-between; align-items: flex-end;
    opacity: 0; transition: opacity 0.2s;
}
.ln-media-player:hover .ln-media-caption { opacity: 1; }
.ln-media-caption-tag {
    background: rgba(11,18,26,0.85);
    padding: 6px 16px; font-size: 16px;
    font-family: var(--ln-font); color: var(--ln-text); border-radius: 5px;
}
.ln-caption-preview {
    color: var(--ln-cyan); font-weight: 700;
}
.ln-thumb-list { display: flex; gap: 14px; overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
.ln-thumb-list::-webkit-scrollbar { display: none; }

/* ===========================
   상세 - 신뢰 지표
   =========================== */
.ln-stats-section { display: flex; flex-direction: column; gap: 28px; }
.ln-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.ln-badge {
    display: inline-flex; align-items: center;
    padding: 8px 16px;
    background: var(--ln-surface);
    border-radius: 5px; font-size: 14px;
    font-family: var(--ln-font); color: var(--ln-muted); font-weight: 400;
}
.ln-stars { display: flex; align-items: center; gap: 12px; justify-content: flex-start; }
.ln-pr-nav { display: flex; gap: 6px; margin-left: 8px; }
.ln-rating-score { font-family: var(--ln-font); font-size: 32px; font-weight: 800; color: #fff; }
.ln-rating-link { font-size: 20px; color: var(--ln-muted); text-decoration: underline; font-family: var(--ln-font); }
.ln-preview-reviews { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 10px; }
@media (min-width: 768px) { .ln-preview-reviews { grid-template-columns: repeat(3,1fr); } }

/* ===========================
   상세 - 문제 제기
   =========================== */
.ln-hook-section { display: flex; flex-direction: column; gap: 44px; }
.ln-hook-headline {
    font-size: 28px; font-family: var(--ln-font); font-weight: 800;
    color: #fff; line-height: 1.3; margin: 0;
    letter-spacing: -0.04em; word-break: keep-all;
}
@media (min-width: 768px) { .ln-hook-headline { font-size: 38px; } }
.ln-hook-img { width: 100%; border-radius: 12px; margin-top: 32px; display: block; }
.ln-checklist-box {
    border-radius: 10px;
    padding: 28px; background: var(--ln-card);
}
.ln-checklist-title {
    font-family: var(--ln-font); font-size: 30px; font-weight: 700;
    color: var(--ln-cyan); margin: 0 0 33px;
    display: flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: -0.01em;
}
.ln-checklist-title svg { display: none; }
.ln-checklist { display: flex; flex-direction: column; gap: 28px; list-style: none; margin: 0; padding: 0; }
.ln-checklist li {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    font-size: 20px; color: var(--ln-cyan); font-family: var(--ln-font); line-height: 1.55;
    background: var(--ln-bg); border: 1px solid var(--ln-border);
    border-radius: 8px; padding: 16px 20px;
    position: relative;
}

.ln-checklist li::before { display: none; }
.ln-item-arrow {
    display: inline-flex; align-items: center; vertical-align: middle;
    margin: 0 8px; color: var(--ln-muted); flex-shrink: 0;
}
.ln-checklist li em {
    font-style: normal; color: #fff; font-weight: 600; font-size: 20px;
}
.ln-image-wide {
    width: 100%; aspect-ratio: 2/1;
    background: var(--ln-card); border-radius: 10px; overflow: hidden;
}

/* ===========================
   상세 - 원인 분석
   =========================== */
.ln-cause-section { display: flex; flex-direction: column; gap: 40px; padding: 0; }
.ln-body-text {
    font-size: 18px; color: #fff; font-family: var(--ln-font);
    font-weight: 400; line-height: 1.85;
}
/* 에디터 출력 영역 — 에디터에서 작성한 HTML 그대로 렌더링 */
.ln-editor-content { font-size: 18px; color: #fff; font-family: var(--ln-font);}
.ln-editor-content p { margin: 0 0 1.2em; color: inherit; font-size: inherit; }
.ln-editor-content p:last-child { margin-bottom: 0; }
.ln-editor-content strong, .ln-editor-content b { font-weight: 700; color: #fff; font-size: inherit !important; }
.ln-editor-content span, .ln-editor-content font { font-size: inherit; }
.ln-editor-content em, .ln-editor-content i { font-style: italic; }
.ln-editor-content h1, .ln-editor-content h2, .ln-editor-content h3,
.ln-editor-content h4, .ln-editor-content h5, .ln-editor-content h6 {
    font-family: var(--ln-font); font-weight: 800; color: #fff;
    letter-spacing: -0.03em; line-height: 1.3; margin: 0 0 0.6em;
}
.ln-editor-content ul, .ln-editor-content ol { padding-left: 1.5em; margin: 0 0 1em; }
.ln-editor-content li { margin-bottom: 0.4em; }
.ln-editor-content a { color: var(--ln-cyan); text-decoration: underline; }
.ln-editor-content img { max-width: 100%; border-radius: 8px; }
.ln-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .ln-grid-2 { grid-template-columns: repeat(2,1fr); } }

/* ===========================
   상세 - 해결 제시
   =========================== */
.ln-solution-section {
    display: flex; flex-direction: column; gap: 48px;
    padding: 48px 36px; margin: 16px 0;
    background: var(--ln-card); border-radius: 16px;
}
.ln-solution-heading {
    font-size: 26px; font-family: var(--ln-font); font-weight: 800;
    color: #fff; line-height: 1.3; text-align: left;
    margin: 0 0 28px; letter-spacing: -0.04em; word-break: keep-all;
}
@media (min-width: 768px) { .ln-solution-heading { font-size: 32px; } }
.ln-solution-body {
    font-size: 17px; color: var(--ln-muted); font-family: var(--ln-font);
    line-height: 1.8; text-align: left; max-width: 760px; margin: 0 0 48px;
}
.ln-grid-4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (min-width: 768px) { .ln-grid-4 { grid-template-columns: repeat(4,1fr); } }

.ln-curriculum { border: 1px solid var(--ln-border); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 28px rgba(0,0,0,0.45); }
.ln-curriculum-head {
    background: var(--ln-surface); border-bottom: 1px solid var(--ln-border);
    padding: 22px 32px; display: flex; align-items: center; justify-content: space-between;
}
.ln-curriculum-head-title { font-family: var(--ln-font); font-size: 26px; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.03em; }
.ln-curriculum-meta {
    font-size: 18px; font-family: var(--ln-font); font-weight: 700; color: var(--ln-cyan);
    background: rgba(4,221,240,0.1); border: 1px solid rgba(4,221,240,0.25);
    border-radius: 5px; padding: 6px 16px;
}
.ln-curriculum-table { width: 100%; border-collapse: collapse; }
.ln-curriculum-table thead tr { background: var(--ln-card); border-bottom: 1px solid var(--ln-border); }
.ln-curriculum-table th {
    padding: 18px 32px; font-size: 16px; font-family: var(--ln-font);
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--ln-muted); font-weight: 600; text-align: left;
}
.ln-curriculum-table tbody tr { border-bottom: 1px solid var(--ln-border); transition: background 0.15s; }
.ln-curriculum-table tbody tr:hover { background: var(--ln-surface); }
.ln-curriculum-table tbody tr:last-child { border-bottom: none; }
.ln-curriculum-table td { padding: 20px 32px; font-size: 20px; color: var(--ln-text); font-family: var(--ln-font); }
.ln-curriculum-table td.num { color: var(--ln-muted); font-weight: 700; width: 80px; text-align: center; }
.ln-curriculum-table td.dur { color: var(--ln-muted); text-align: right; width: 100px; }
.ln-free-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: rgba(119,248,146,0.15); color: #77F892; border: 1px solid rgba(119,248,146,0.3); vertical-align: middle; }

/* ===========================
   상세 - 강사 소개
   =========================== */
.ln-instructor-section { display: flex; flex-direction: column; gap: 16px; }

/* 강사 소개 히어로 */
.ln-instructor-hero {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    min-height: 400px;
    display: flex;
    align-items: stretch;
    background: linear-gradient(to bottom, var(--ln-card) 0%, transparent 100%);
}

.ln-instructor-hero-inner {
    position: relative; z-index: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 56px 56px 48px;
    gap: 40px;
}
.ln-instructor-hero-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 20px;
}
.ln-instructor-label {
    font-size: 16px; font-family: var(--ln-font);
    color: var(--ln-cyan); font-weight: 600;
    letter-spacing: 0.06em; margin: 0;
    text-transform: uppercase;
}
.ln-instructor-headline {
    font-size: 38px; font-family: var(--ln-font);
    font-weight: 800; color: #fff;
    line-height: 1.3; margin: 0;
    letter-spacing: -0.03em; word-break: keep-all;
}
.ln-instructor-headline em {
    font-style: normal; color: var(--ln-cyan);
}
.ln-instructor-career {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 18px; color: var(--ln-text);
    font-family: var(--ln-font); line-height: 1.7;
}
.ln-instructor-career--prev {
    color: var(--ln-muted);
    font-size: 16px;
}
.ln-career-current {
    font-size: 16px; font-weight: 700; letter-spacing: 0.06em;
    color: var(--ln-cyan); margin: 0;
}
.ln-instructor-sig {
    margin: 0 0 4px;
    font-size: 20px; font-family: var(--ln-font);
    color: var(--ln-muted);
}
.ln-instructor-sig strong {
    color: #fff; font-weight: 800; margin-left: 6px;
    font-size: 26px;
}
.ln-instructor-hero-photo {
    width: 380px; flex-shrink: 0;
    display: flex; align-items: flex-end; justify-content: center;
    margin-bottom: -1px;
}
.ln-instructor-hero-photo img {
    width: 100%; max-width: 380px;
    object-fit: contain; object-position: bottom;
    display: block;
    filter: drop-shadow(0 0 40px rgba(22,174,181,0.18));
    margin-top: -200px;
    margin-bottom:-50px;
}

/* 카드 그리드 */
.ln-instructor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* 개별 강사 카드 */
.ln-instructor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 36px 40px;
    background: var(--ln-card);
    border-radius: 16px;
    min-width: 260px;
    flex: 1;
    text-align: center;
    transition: box-shadow 0.2s;
}
.ln-instructor-card:hover {
    box-shadow: 0 8px 32px rgba(4,221,240,0.08);
}

/* 아바타 원 */
.ln-instructor-avatar {
    width: 120px; height: 120px; flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ln-surface);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ln-instructor-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.ln-instructor-avatar-initial {
    font-size: 40px; font-weight: 800;
    font-family: var(--ln-font);
    color: var(--ln-cyan);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* 이름 + 직책 */
.ln-instructor-meta { display: flex; flex-direction: column; gap: 8px; }
.ln-instructor-name {
    font-size: 26px; font-family: var(--ln-font); font-weight: 700;
    color: #fff; margin: 0; letter-spacing: -0.03em;
}
.ln-instructor-role {
    font-size: 15px; font-family: var(--ln-font); font-weight: 400;
    color: var(--ln-muted); display: block;
}

/* bio — 카드 외부 별도 박스 */
.ln-instructor-bio-box {
    padding: 36px 40px;
    background: var(--ln-surface);
    border-left: 3px solid var(--ln-cyan);
    border-radius: 0 10px 10px 0;
}
.ln-instructor-bio-name {
    font-size: 20px; font-weight: 700; color: var(--ln-cyan);
    font-family: var(--ln-font); margin-bottom: 14px;
}
.ln-instructor-bio {
    font-size: 18px; color: var(--ln-text); font-family: var(--ln-font); line-height: 1.9;
}

/* ===========================
   상세 - 결과 예측
   =========================== */
.ln-outcome-section { display: flex; flex-direction: column; gap: 32px; }
.ln-outcome-heading { display: none; } /* ln-section-heading으로 대체 */
.ln-outcome-icon { display: none; }
.ln-outcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) { .ln-outcome-grid { grid-template-columns: repeat(2,1fr); } }
.ln-outcome-item {
    display: flex; align-items: center; gap: 20px;
    padding: 28px 32px;
    background: var(--ln-card);
    border-radius: 12px;
    font-size: 18px; font-family: var(--ln-font);
    line-height: 1.6; color: var(--ln-text);
    font-weight: 500;
}
.ln-outcome-bullet {
    width: 36px; height: 36px; flex-shrink: 0;
    background: rgba(119,248,146,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.ln-outcome-bullet svg { width: 16px; height: 16px; }

/* ===========================
   상세 - 리뷰
   =========================== */
.ln-reviews-section { display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 80px; }
.ln-review-summary {
    display: flex; align-items: center; gap: 36px;
    padding: 32px; background: var(--ln-card); border-radius: 10px;
}
.ln-review-score-block {
    display: flex; flex-direction: column; align-items: center;
    padding-right: 36px;
}
.ln-review-score { font-size: 72px; font-family: var(--ln-font); font-weight: 800; color: #fff; line-height: 1; }
.ln-review-info { flex: 1; }
.ln-review-count { font-size: 22px; color: var(--ln-text); font-family: var(--ln-font); }
.ln-review-count strong { color: #fff; font-weight: 800; }
.ln-review-note { font-size: 18px; color: var(--ln-muted); margin-top: 8px; font-family: var(--ln-font); }
/* 리뷰 헤더 */
.ln-review-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.ln-review-summary-inline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

/* 리뷰 슬라이더 */
.ln-review-swiper-wrap { overflow-x: clip; overflow-y: visible; }
.ln-review-swiper { overflow: visible !important; }
.ln-review-swiper .swiper-slide { height: auto; }

/* 미리보기 리뷰 스와이퍼 */
.ln-preview-reviews { display: flex; flex-direction: column; gap: 16px; }
.ln-preview-review-wrap { position: relative; overflow: hidden; padding: 0; }
.ln-preview-review-swiper { overflow: hidden !important; }
.ln-preview-review-swiper .swiper-slide { height: auto; }

/* 화살표 */
.ln-pr-prev, .ln-pr-next {
    position: relative; top: auto; transform: none; left: auto; right: auto;
    z-index: 10; width: 32px; height: 32px; flex-shrink: 0;
    background: var(--ln-surface); border: 1px solid var(--ln-border-l);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--ln-text); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.ln-pr-prev:hover, .ln-pr-next:hover { background: var(--ln-cyan); color: var(--ln-bg); border-color: var(--ln-cyan); }
.ln-pr-prev.swiper-button-disabled, .ln-pr-next.swiper-button-disabled { opacity: 0.3; pointer-events: none; }

/* 더보기 버튼 */
.ln-review-more-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    background: transparent; border: 1px solid var(--ln-border);
    color: var(--ln-muted); font-family: var(--ln-font);
    font-size: 15px; font-weight: 500;
    padding: 14px; border-radius: 8px;
    cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ln-review-more-btn:hover { color: var(--ln-cyan); border-color: var(--ln-cyan); background: rgba(22,174,181,0.05); }

.ln-review-card {
    background: var(--ln-card);
    border-radius: 12px; padding: 28px 28px 24px;
    display: flex; flex-direction: column; height: 100%;
}
.ln-review-quote {
    margin-bottom: 14px; opacity: 0.7;
    color: var(--ln-cyan);
}
.ln-review-body {
    font-size: 16px; color: var(--ln-text); font-family: var(--ln-font); line-height: 1.75; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.ln-review-readmore {
    margin-top: 8px; background: none; border: none; padding: 0;
    color: var(--ln-cyan); font-size: 14px; font-family: var(--ln-font);
    cursor: pointer; display: none;
}
.ln-review-readmore:hover { text-decoration: underline; }

.ln-review-footer { margin-top: 20px; padding-top: 16px; }
.ln-review-author { font-size: 15px; font-family: var(--ln-font); font-weight: 700; color: #fff; display: block; }
.ln-review-meta { font-size: 13px; color: var(--ln-muted); font-family: var(--ln-font); }

/* ===========================
   사이드바
   =========================== */
.ln-sidebar-title { font-size: 26px; font-family: var(--ln-font); font-weight: 800; color: #fff; line-height: 1.4; margin: 0; letter-spacing: -0.03em; }
.ln-sidebar-stars { display: flex; align-items: center; gap: 10px; }
.ln-sidebar-stars .ln-star-icons svg { width: 20px; height: 20px; }
.ln-sidebar-price-block { display: flex; flex-direction: column; gap: 6px; }
.ln-sidebar-price-original { font-size: 18px; color: var(--ln-muted); text-decoration: line-through; font-family: var(--ln-font); }
.ln-sidebar-price-main { font-size: 21px; font-family: var(--ln-font); font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: 1; }
.ln-sidebar-price-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px;}
.ln-sidebar-dday { display: none; }
.ln-cta-group { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.ln-cta-countdown {
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #FF6604;
    font-family: var(--ln-font); letter-spacing: 0.02em;
    padding: 13px 0 27px;
}
.ln-cta-btns { display: flex; gap: 8px; }
.ln-cta-btns .ln-cta-btn { flex: 1; }
.ln-cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 54px; padding: 0 20px; border-radius: 10px;
    font-size: 16px; font-weight: 700; font-family: var(--ln-font);
    text-decoration: none; border: 1.5px solid var(--ln-border);
    background: var(--ln-surface); color: var(--ln-text);
    cursor: pointer; transition: filter 0.15s, transform 0.15s; white-space: nowrap;
}
.ln-cta-btn:hover { filter: brightness(1.15); }
.ln-cta-btn--cart { flex: none !important; width: 54px; padding: 0; }
.ln-cta-btn--cart svg { width: 22px; height: 22px; }
.ln-cta-btn--main { background: var(--ln-cyan); color: var(--ln-bg); border-color: var(--ln-cyan); }
.ln-cta-btn--main.ln-discount { background: #FF6604; color: #fff; border-color: #FF6604; }
.ln-cta-btn--main.ln-discount:hover { filter: brightness(1.08); }
/* 쿠폰 버튼 */
.ln-coupon-apply-btn {
    padding: 10px 18px; border-radius: 8px;
    background: var(--ln-cyan); color: var(--ln-bg);
    font-size: 14px; font-weight: 700; font-family: var(--ln-font);
    border: none; cursor: pointer; white-space: nowrap; transition: filter 0.15s;
}
.ln-coupon-apply-btn:hover { filter: brightness(1.1); }
.ln-coupon-cancel-btn {
    padding: 10px 18px; border-radius: 8px;
    background: transparent; color: var(--ln-muted);
    font-size: 14px; font-weight: 600; font-family: var(--ln-font);
    border: 1px solid var(--ln-border); cursor: pointer; white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
.ln-coupon-cancel-btn:hover { border-color: var(--ln-text); color: var(--ln-text); }
.ln-includes {
    list-style: none; margin: 0; padding: 20px 0 0;
    border-top: 1px solid var(--ln-border);
    display: flex; flex-direction: column; gap: 12px;
    font-size: 15px; color: var(--ln-muted); font-family: var(--ln-font);
}
.ln-includes li { display: flex; align-items: center; gap: 10px; }
.ln-includes svg { width: 18px; height: 18px; flex-shrink: 0; }
.ln-sidebar-price-row { display: flex; align-items: center; justify-content: space-between; }
.ln-sidebar-actions { display: flex; gap: 4px; align-items: center; }
.ln-action-btn {
    width: 44px; height: 44px; flex: none;
    border: none; outline: none; background: transparent;
    color: var(--ln-muted); padding: 0;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: color 0.2s, background 0.2s;
}
.ln-action-btn svg { width: 18px; height: 18px; }
.ln-action-btn:hover { color: #fff; background: var(--ln-surface); }
.ln-action-btn--active { color: #e05c6e; }
.ln-action-btn--active:hover { color: #e05c6e; background: rgba(224,92,110,0.08); }

/* 공유하기 토스트 */
.ln-share-wrap { position: relative; }
.ln-share-wrap .ln-action-btn { width: 44px; }
#lnToast {
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
    background: rgba(30,30,30,0.92); color: #fff; padding: 8px 16px;
    border-radius: 20px; font-size: 14px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 100;
}
#lnToast::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: rgba(30,30,30,0.92);
}
#lnToast.lnToast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===========================
   모바일 하단 고정 바
   =========================== */
.ln-mobile-bar {
    display: flex; flex-direction: column;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--ln-surface);
    border-top: none !important;
    box-shadow: none !important;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ln-mobile-bar.ln-bar-visible { transform: translateY(0); }
@media (min-width: 1024px) { .ln-mobile-bar { display: none; } }

/* 터미 탭 (term2 있을 때만 노출) */
.ln-mobile-bar-tabs { padding: 10px 20px 0; }
.ln-mobile-bar-tabs .ln-term-tabs { border-bottom: none; }

/* 가격 행 — 전체 가운데 정렬 */
.ln-mobile-bar-price {
    padding: 14px 20px 8px; width: 100%;
    display: flex; justify-content: center;
}
.ln-mobile-bar-price .ln-term-price {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}

/* 가격 + 뱃지 + 카운트다운 한 줄 — 블록 내부 좌측 정렬 */
.ln-mobile-price-row {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 8px; flex-wrap: nowrap;
}
.ln-mobile-price-row .ln-mobile-countdown {
    flex-shrink: 0;
    padding: 0; font-size: 13px;
    white-space: nowrap;
}
.ln-mobile-bar-price .ln-sidebar-price-original { display: block; }

/* 버튼 행 — 100% 너비, 화면 가득 */
.ln-mobile-bar-buttons { padding: 0 20px 14px; width: 100%; }
.ln-mobile-bar-buttons .ln-cta-group { display: flex; width: 100%; }
.ln-mobile-bar-buttons .ln-cta-btns { display: flex; width: 100%; gap: 6px; }
.ln-mobile-bar-buttons .ln-cta-btn--cart { flex-shrink: 0; width: 66px; height: 66px; padding: 0; }
.ln-mobile-bar-buttons .ln-cta-btn--cart svg { width: 38px; height: 38px; }
.ln-mobile-bar-buttons .ln-cta-btn--main { flex: 1; }

/* 모바일 바 — PC 사이드바 클래스 사이즈 오버라이드 */
.ln-mobile-bar .ln-sidebar-price-main { font-size: 26px; }
.ln-mobile-bar .ln-sidebar-price-original { font-size: 13px; }
.ln-mobile-bar .ln-mobile-countdown { padding: 0; font-size: 13px; }
.ln-mobile-bar .ln-cta-btn { height: 66px; padding: 0 20px; font-size: 15px; border-radius: 8px; }


/* ===========================
   전체보기 버튼
   =========================== */
.ln-preview-reviews-footer { display: flex; justify-content: flex-end; padding-top: 16px; }
.ln-review-all-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent;
    border: 1px solid var(--ln-border-l);
    color: var(--ln-muted); font-family: var(--ln-font);
    font-size: 14px; font-weight: 500;
    padding: 10px 20px; border-radius: 6px;
    cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.ln-review-all-btn:hover { color: var(--ln-cyan); border-color: var(--ln-cyan); }
.ln-review-all-btn--large {
    font-size: 16px; padding: 16px 28px; border-radius: 8px;
    border-color: var(--ln-border-l); color: var(--ln-text);
    width: 100%;
    justify-content: center;
}
.ln-review-all-btn--large:hover { color: var(--ln-cyan); border-color: var(--ln-cyan); background: rgba(22,174,181,0.06); }

/* ===========================
   리뷰 모달
   =========================== */
.ln-review-modal {
    display: none;
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
    padding: 20px;
}
.ln-review-modal.open { display: flex; }
.ln-review-modal-box {
    background: var(--ln-card);
    border-radius: 16px;
    width: 100%; max-width: 680px;
    max-height: 85vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.ln-review-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--ln-border);
    flex-shrink: 0;
}
.ln-review-modal-title {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--ln-font); font-size: 20px; font-weight: 700; color: #fff;
}
.ln-review-modal-count { font-size: 16px; color: var(--ln-muted); font-weight: 400; }
.ln-review-modal-close {
    background: transparent; border: none; cursor: pointer;
    color: var(--ln-muted); display: flex; align-items: center; padding: 4px;
    border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.ln-review-modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.ln-review-modal-body {
    overflow-y: auto; padding: 8px 28px 28px;
    display: flex; flex-direction: column;
}
.ln-review-modal-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--ln-border);
}
.ln-review-modal-item:last-child { border-bottom: none; }
.ln-review-modal-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.ln-review-modal-author { font-size: 15px; font-weight: 600; color: #fff; font-family: var(--ln-font); }
.ln-review-modal-role { font-size: 13px; color: var(--ln-muted); font-family: var(--ln-font); }
.ln-review-modal-text {
    font-size: 15px; color: var(--ln-text); line-height: 1.75;
    font-family: var(--ln-font); margin: 0; word-break: keep-all;
}

/* ===========================
   편집 모드 (관리자)
   =========================== */
/* 상단 고정 편집 버튼 */
.ln-admin-edit-btn {
    position: fixed; bottom: 32px; right: 32px; z-index: 900;
    display: flex; align-items: center; gap: 7px;
    padding: 8px 18px; border-radius: 6px;
    background: var(--ln-surface); border: 1px solid var(--ln-cyan);
    color: var(--ln-cyan); font-size: 13px; font-weight: 700;
    font-family: var(--ln-font); cursor: pointer; transition: background 0.2s;
}
.ln-admin-edit-btn:hover { background: rgba(22,174,181,0.25); }
.ln-admin-edit-btn.active { background: var(--ln-cyan); color: #000; }
.ln-admin-edit-btn.active svg { stroke: #000; }

/* 섹션별 수정 버튼 */
.ln-sec-edit-btn {
    display: none; /* 편집모드 진입 시 JS로 표시 */
    align-items: center; gap: 6px;
    margin-top: 0; padding: 6px 14px;
    border-radius: 5px; border: 1px solid var(--ln-border);
    background: transparent; color: var(--ln-muted);
    font-size: 12px; font-weight: 600; font-family: var(--ln-font);
    cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.ln-sec-edit-btn:hover { border-color: var(--ln-cyan); color: var(--ln-cyan); }

/* 편집 폼 */
.ln-sec-edit-form { padding: 32px; background: var(--ln-card); border-radius: 12px; }
.ln-edit-label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 700;
    color: var(--ln-muted); font-family: var(--ln-font); margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.ln-field-eye, .ln-item-eye {
    flex-shrink: 0; background: none; border: none; cursor: pointer;
    color: var(--ln-muted); padding: 2px 4px; line-height: 1;
    display: inline-flex; align-items: center;
}
.ln-field-eye:hover, .ln-item-eye:hover { color: var(--ln-text); }
.ln-field-eye.ln-eye-off, .ln-item-eye.ln-eye-off { color: var(--ln-red); }
.ln-vis-hidden { display: none !important; }
.ln-edit-input {
    width: 100%; padding: 12px 16px; border-radius: 6px;
    border: 1px solid var(--ln-border); background: var(--ln-bg);
    color: #fff; font-size: 18px; font-weight: 700;
    font-family: var(--ln-font); outline: none; box-sizing: border-box;
}
.ln-edit-input:focus { border-color: var(--ln-cyan); }
.ln-sec-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ln-edit-save-btn, .ln-edit-cancel-btn {
    padding: 8px 24px; border-radius: 6px;
    font-size: 13px; font-weight: 600; font-family: var(--ln-font);
    cursor: pointer; text-align: center;
}
.ln-edit-save-btn {
    background: var(--ln-cyan); color: #000; border: none;
}
.ln-edit-save-btn:hover { opacity: 0.85; }
.ln-edit-cancel-btn {
    background: transparent; border: 1px solid var(--ln-border); color: var(--ln-muted);
}
.ln-edit-cancel-btn:hover { border-color: var(--ln-muted); color: var(--ln-text); }

/* 섹션 순서 이동 바 */
.ln-sec-bar {
    display: none; /* lnToggleEditMode()로 표시 */
    position: absolute; top: -38px; right: 0;
    z-index: 5;
    align-items: center;
    font-size: 12px; font-weight: 700;
    font-family: var(--ln-font); color: var(--ln-cyan);
}
.ln-sec-bar-name { display: none; }
.ln-sec-bar-btns {
    display: flex; align-items: center; gap: 6px; line-height: 1;
}
/* 바 안 버튼 전체 통일 */
.ln-sec-bar-btns button {
    display: inline-flex; align-items: center; justify-content: center;
    height: 28px; padding: 0 12px; border-radius: 4px;
    border: 1px solid var(--ln-border); background: var(--ln-bg);
    color: var(--ln-muted); font-size: 12px; font-weight: 600;
    font-family: var(--ln-font); cursor: pointer; line-height: 1;
    white-space: nowrap; box-sizing: border-box; vertical-align: middle;
}
.ln-sec-bar-btns button:hover { border-color: var(--ln-cyan); color: var(--ln-cyan); }

/* 항목 추가/삭제 버튼 */
.ln-edit-item-row {
    display: flex; align-items: center; gap: 8px;
}
.ln-edit-item-row .ln-edit-input { flex: 1; }
.ln-item-sep { flex-shrink: 0; color: var(--ln-cyan); font-size: 20px; font-weight: 700; line-height: 1; }
.ln-item-text { border-left: 2px solid var(--ln-cyan) !important; color: var(--ln-cyan) !important; }
.ln-edit-item-del {
    flex-shrink: 0; width: 28px; height: 28px;
    border-radius: 4px; border: 1px solid var(--ln-border);
    background: transparent; color: var(--ln-muted);
    font-size: 16px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ln-edit-item-del:hover { border-color: var(--ln-red); color: var(--ln-red); }
.ln-edit-item-add {
    margin-top: 10px;
    display: inline-flex; align-items: center;
    padding: 7px 16px; border-radius: 5px;
    border: 1px dashed var(--ln-border); background: transparent;
    color: var(--ln-muted); font-size: 13px; font-weight: 600;
    font-family: var(--ln-font); cursor: pointer;
}
.ln-edit-item-add:hover { border-color: var(--ln-cyan); color: var(--ln-cyan); }
.ln-sec-wrap { position: relative; margin-bottom: 100px; }
.ln-sec-wrap:last-child { margin-bottom: 0; }
.ln-sec-wrap.ln-editing { outline: 1px dashed var(--ln-cyan); border-radius: 12px; padding-top: 46px; }
.ln-sec-wrap.ln-sec-dirty { outline: 1px dashed #FF6604; border-radius: 12px; }
.ln-sec-wrap.ln-sec-hidden > section,
.ln-sec-wrap.ln-sec-hidden > .ln-hook-section,
.ln-sec-wrap.ln-sec-hidden > * > .ln-sec-view { display: none; }
.ln-sec-vis-btn { color: var(--ln-muted) !important; }
.ln-sec-wrap.ln-sec-hidden .ln-sec-vis-btn { color: var(--ln-red) !important; }

/* 편집 모드 상단 배너 */
.ln-edit-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 52px;
    background: var(--ln-cyan); color: #000;
    font-family: var(--ln-font);
}
.ln-edit-topbar-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
}
.ln-edit-topbar-actions { display: flex; gap: 10px; }
.ln-edit-topbar-cancel {
    padding: 7px 20px; border-radius: 6px;
    background: rgba(0,0,0,0.15); border: none;
    color: #000; font-size: 13px; font-weight: 700;
    font-family: var(--ln-font); cursor: pointer;
}
.ln-edit-topbar-cancel:hover { background: rgba(0,0,0,0.25); }
.ln-edit-topbar-save {
    padding: 7px 20px; border-radius: 6px;
    background: #000; border: none;
    color: var(--ln-cyan); font-size: 13px; font-weight: 700;
    font-family: var(--ln-font); cursor: pointer;
}
.ln-edit-topbar-save:hover { opacity: 0.85; }

/* 강사 사진 편집 */
.ln-edit-photo-wrap {
    display: flex; align-items: center; gap: 20px;
    padding: 16px; background: var(--ln-bg);
    border: 1px solid var(--ln-border); border-radius: 8px;
}
.ln-edit-photo-preview {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--ln-border);
}
.ln-edit-photo-right { display: flex; flex-direction: column; gap: 6px; }
.ln-edit-photo-btn {
    padding: 8px 18px; border-radius: 5px;
    border: 1px solid var(--ln-border); background: var(--ln-surface);
    color: var(--ln-text); font-size: 13px; font-weight: 600;
    font-family: var(--ln-font); cursor: pointer;
}
.ln-edit-photo-btn:hover { border-color: var(--ln-cyan); color: var(--ln-cyan); }
.ln-edit-photo-hint { margin: 0; font-size: 11px; color: var(--ln-muted); font-family: var(--ln-font); }

/* ===========================
   장바구니 페이지
   =========================== */
.ln-cart-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 20px 120px;
    color: var(--ln-text);
    font-family: var(--ln-font);
}
.ln-cart-heading {
    display: flex; align-items: baseline; gap: 10px;
    margin-bottom: 40px;
}
.ln-cart-heading h2 {
    font-size: 30px; font-weight: 800; color: #fff;
    letter-spacing: -0.04em; margin: 0;
}
.ln-cart-count {
    font-size: 20px; color: var(--ln-cyan); font-weight: 700;
}

/* 아이템 목록 */
.ln-cart-items {
    display: flex; flex-direction: column;
    border: 1px solid var(--ln-border);
    border-radius: 14px; overflow: hidden;
    margin-bottom: 24px;
}
.ln-cart-item {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    row-gap: 10px; column-gap: 16px;
    padding: 20px 24px;
    background: var(--ln-card);
    border-bottom: 1px solid var(--ln-border);
    transition: background 0.15s;
}
.ln-cart-item:last-child { border-bottom: none; }
.ln-cart-item:hover { background: var(--ln-surface); }

.ln-cart-item-num {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ln-bg); border: 1px solid var(--ln-border);
    border-radius: 50%; font-size: 14px; font-weight: 700;
    color: var(--ln-muted);
    grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px;
}
.ln-cart-item-info {
    grid-column: 2 / 5; grid-row: 1;
    min-width: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.ln-cart-item-title {
    font-size: 18px; font-weight: 600; color: #fff;
    margin: 0; line-height: 1.4; letter-spacing: -0.02em;
}
.ln-cart-item-bottom {
    display: flex; align-items: center; gap: 12px;
}
.ln-cart-item-terms {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.ln-term-radio { cursor: pointer; }
.ln-term-radio input[type="radio"] { display: none; }
.ln-term-radio-btn {
    display: inline-flex; align-items: center;
    padding: 7px 16px; border-radius: 20px;
    border: 1px solid var(--ln-border);
    font-size: 14px; font-weight: 500; color: var(--ln-muted);
    transition: all 0.2s; white-space: nowrap;
}
.ln-term-radio input:checked + .ln-term-radio-btn {
    border-color: var(--ln-cyan); color: var(--ln-cyan);
    background: rgba(22,174,181,0.1);
}
.ln-term-radio:hover .ln-term-radio-btn {
    border-color: var(--ln-border-l); color: var(--ln-text);
}
/* 기간 미선택 강조 */
.ln-term-radio-btn.ln-term-required {
    border-color: #FF6604;
    color: #FF6604;
    animation: ln-term-shake 0.4s ease;
}
@keyframes ln-term-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    80%       { transform: translateX(-3px); }
}
/* 알림 모달 */
.ln-alert-modal {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.ln-alert-modal.show { display: flex; }
.ln-alert-box {
    background: var(--ln-card); border: 1px solid var(--ln-border);
    border-radius: 16px; padding: 36px 32px 28px;
    min-width: 300px; max-width: 380px; text-align: center;
}
.ln-alert-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,102,4,0.12);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.ln-alert-icon svg { width: 24px; height: 24px; stroke: #FF6604; }
.ln-alert-msg {
    font-size: 17px; font-weight: 600; color: var(--ln-text);
    font-family: var(--ln-font); margin-bottom: 8px;
}
.ln-alert-sub {
    font-size: 14px; color: var(--ln-muted); font-family: var(--ln-font); margin-bottom: 24px;
}
.ln-alert-ok {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; height: 46px; border-radius: 10px;
    background: var(--ln-cyan); color: var(--ln-bg);
    font-size: 15px; font-weight: 700; font-family: var(--ln-font);
    border: none; cursor: pointer; transition: filter 0.15s;
}
.ln-alert-ok:hover { filter: brightness(1.1); }

.ln-cart-item-price {
    font-size: 20px; font-weight: 800; color: #fff;
    letter-spacing: -0.03em; white-space: nowrap;
    grid-column: 3; grid-row: 2; align-self: center;
    margin-left: auto; /* ln-cart-item-bottom flex 컨텍스트용 */
}
.ln-cart-del {
    width: 36px; height: 36px;
    grid-column: 4; grid-row: 2; align-self: center;
    background: transparent; border: 1px solid var(--ln-border);
    border-radius: 8px; color: var(--ln-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ln-cart-del:hover { border-color: #FF4848; color: #FF4848; background: rgba(255,72,72,0.07); }

/* 안내사항 */
.ln-cart-notice {
    background: var(--ln-card); border: 1px solid var(--ln-border);
    border-radius: 12px; padding: 24px 28px; margin-bottom: 24px;
}
.ln-cart-notice-title {
    font-size: 14px; font-weight: 700; color: var(--ln-cyan);
    letter-spacing: 0.06em; text-transform: uppercase;
    margin: 0 0 14px;
}
.ln-cart-notice ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.ln-cart-notice ul li {
    font-size: 14px; color: var(--ln-muted); line-height: 1.7;
    padding-left: 16px; position: relative;
}
.ln-cart-notice ul li::before {
    content: '—'; position: absolute; left: 0;
    color: var(--ln-border-l);
}
.ln-cart-notice ul li.point {
    color: #FF6604;
}
.ln-cart-notice ul li.point::before { color: #FF6604; }

/* 합계 + 버튼 */
.ln-cart-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 28px 32px;
    background: var(--ln-surface); border: 1px solid var(--ln-border);
    border-radius: 14px;
}
.ln-cart-total-label {
    font-size: 16px; color: var(--ln-muted); font-weight: 500; margin: 0 0 6px;
}
.ln-cart-total-price {
    font-size: 30px; font-weight: 800; color: #fff;
    letter-spacing: -0.04em; margin: 0;
    font-family: var(--ln-font);
}
.ln-cart-total-price span {
    font-size: inherit;
}
.ln-cart-pay-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 40px; border-radius: 10px;
    background: var(--ln-cyan); color: var(--ln-bg);
    font-size: 18px; font-weight: 800; font-family: var(--ln-font);
    letter-spacing: 0.01em; text-decoration: none; border: none; cursor: pointer;
    transition: filter 0.2s, transform 0.15s; white-space: nowrap; flex-shrink: 0;
}
.ln-cart-pay-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* 결제 수단 팝업 */
.ln-pay-modal {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
}
.ln-pay-modal.show { display: flex; }
.ln-pay-modal-box {
    background: var(--ln-card); border: 1px solid var(--ln-border);
    border-radius: 20px; padding: 40px 36px;
    width: 100%; max-width: 440px;
    display: flex; flex-direction: column; gap: 12px;
}
.ln-pay-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.ln-pay-modal-title {
    font-size: 20px; font-weight: 800; color: #fff;
    margin: 0; letter-spacing: -0.03em;
}
.ln-pay-modal-close {
    width: 32px; height: 32px; background: transparent;
    border: 1px solid var(--ln-border); border-radius: 8px;
    color: var(--ln-muted); font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.ln-pay-modal-close:hover { color: #fff; border-color: var(--ln-border-l); }
.ln-pay-method-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 16px; border-radius: 10px;
    border: 1px solid var(--ln-border); background: var(--ln-surface);
    color: var(--ln-text); font-size: 16px; font-weight: 600;
    font-family: var(--ln-font); cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    text-decoration: none; gap: 10px;
}
.ln-pay-method-btn:hover {
    border-color: var(--ln-cyan); color: var(--ln-cyan);
    background: rgba(22,174,181,0.07);
}
.ln-pay-method-btn.kakao {
    background: #FEE500; border-color: #FEE500; color: #181600;
}
.ln-pay-method-btn.kakao:hover { filter: brightness(0.95); color: #181600; }
.ln-pay-method-btn.kakao img { height: 22px; }

/* ===========================
   공통 스크롤바 — .ln-scroll
   =========================== */
.ln-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--ln-dim) transparent;
}
.ln-scroll::-webkit-scrollbar { width: 6px; }
.ln-scroll::-webkit-scrollbar-track { background: transparent; }
.ln-scroll::-webkit-scrollbar-thumb {
    background: var(--ln-dim);
    border-radius: 99px;
}
.ln-scroll::-webkit-scrollbar-thumb:hover { background: var(--ln-muted); }

/* 빈 카트 */
.ln-cart-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 100px 40px; gap: 20px; text-align: center;
}
.ln-cart-empty i { font-size: 48px; color: var(--ln-dim); margin-bottom: 8px; }
.ln-cart-empty h4 {
    font-size: 22px; font-weight: 700; color: var(--ln-muted);
    margin: 0; letter-spacing: -0.02em;
}
.ln-cart-empty .ln-cta-btn { margin-top: 8px; text-decoration: none; }

/* ─── Order Complete ───────────────────────────────────── */
.ln-order-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 20px 80px;
    font-family: var(--ln-font);
}
.ln-order-heading {
    align-items: center !important;
    gap: 20px !important;
}
.ln-order-heading h2 { letter-spacing: -0.04em; }
.ln-order-heading .ln-order-subtitle {
    font-size: 15px; color: var(--ln-muted); margin: 6px 0 0;
}
.ln-order-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ln-order-icon.success { background: rgba(22,174,181,0.15); color: var(--ln-primary); }
.ln-order-icon.pending { background: rgba(255,102,4,0.15); color: #FF6604; }
.ln-order-details {
    margin-bottom: 0;
    border-radius: 14px 14px 0 0 !important;
}
.ln-order-row {
    display: flex; align-items: flex-start;
    padding: 18px 32px;
    border-bottom: 1px solid var(--ln-border);
    gap: 24px;
}
.ln-order-row:last-child { border-bottom: none; }
.ln-order-label {
    font-size: 14px; color: var(--ln-dim);
    min-width: 100px; padding-top: 3px; white-space: nowrap;
}
.ln-order-value {
    font-size: 15px; color: var(--ln-text); font-weight: 500;
    display: flex; flex-direction: column; gap: 5px;
}
.ln-order-value small { font-size: 13px; color: var(--ln-muted); font-weight: 400; }
.ln-order-price { font-size: 22px; font-weight: 700; color: var(--ln-primary); }
.ln-order-items-row { align-items: flex-start; }
.ln-order-items { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ln-order-item {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    padding: 12px 16px;
    background: var(--ln-surface);
    border-radius: 8px;
}
.ln-order-item-title { width: 100%; font-size: 15px; color: var(--ln-text); font-weight: 500; line-height: 1.5; }
.ln-order-item-term {
    font-size: 13px; color: var(--ln-cyan);
    background: var(--ln-card); border: 1px solid var(--ln-border-l);
    padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.ln-order-item-price { font-size: 15px; font-weight: 700; color: var(--ln-text); white-space: nowrap; margin-left: auto; }
.ln-order-actions { display: flex; gap: 12px; }
.ln-order-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 40px; border-radius: 10px;
    font-size: 18px; font-weight: 800; text-decoration: none;
    transition: filter 0.2s, transform 0.15s; white-space: nowrap; flex-shrink: 0;
    letter-spacing: 0.01em;
}
.ln-order-btn.secondary {
    background: var(--ln-surface); color: var(--ln-text);
    border: 1px solid var(--ln-border);
}
.ln-order-btn.primary {
    background: var(--ln-cyan); color: var(--ln-bg); border: none;
}
.ln-order-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ln-order-wrap .ln-cart-footer { border-radius: 0 0 14px 14px; }

/* 계좌번호 복사 */
.ln-bank-copy-wrap {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 6px;
}
.ln-bank-copy-wrap strong { font-size: 18px; font-weight: 800; letter-spacing: 0.03em; }
.ln-bank-info { font-size: 14px; color: var(--ln-text-muted); }
.ln-copy-btn {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 8px; border-radius: 5px; border: 1px solid rgba(21,174,181,0.4);
    background: rgba(21,174,181,0.08); color: #16AEB5;
    font-size: 11px; font-weight: 600; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ln-copy-btn svg { width: 12px; height: 12px; }
.ln-copy-btn span { font-size: inherit; }
.ln-copy-btn:hover { background: rgba(21,174,181,0.18); }
.ln-copy-btn.copied { background: rgba(21,174,181,0.25); color: #0fd4bc; }
@media (max-width: 640px) {
    /* 헤딩 */
    .ln-order-heading { gap: 14px !important; }
    .ln-order-heading h2 { font-size: 22px; }
    .ln-order-icon { width: 48px; height: 48px; }

    /* footer: 세로 스택 */
    .ln-order-wrap .ln-cart-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 20px;
    }
    .ln-order-actions {
        flex-direction: column;
        gap: 10px;
    }
    .ln-order-btn {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ln-order-row { padding: 14px 16px; gap: 12px; }
    .ln-order-label { min-width: 72px; font-size: 13px; }
    .ln-order-item-price { text-align: right; }
    .ln-order-wrap { padding: 40px 16px 60px; }

    /* 결제 footer 세로 스택 */
    .ln-cart-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 20px;
    }
    .ln-cart-pay-btn {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* ===========================
   장바구니 쿠폰 입력
   =========================== */
.ln-cart-coupon {
    padding: 20px 32px;
    border: 1px solid var(--ln-border);
    border-radius: 14px;
    background: rgba(22,174,181,0.03);
    margin-bottom: 24px;
}
.ln-cart-coupon-header {
    display: flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 700; color: #16AEB5;
    margin-bottom: 12px;
}
.ln-cart-coupon-input-row {
    display: flex; gap: 8px; align-items: center;
}
.ln-cart-coupon-input-row input[type="text"] {
    flex: 1; max-width: 390px;
    height: 40px; padding: 0 14px;
    background: var(--ln-surface); border: 1px solid var(--ln-border);
    border-radius: 8px; color: var(--ln-text); font-size: 14px;
    font-family: monospace; letter-spacing: 0.06em;
    outline: none; transition: border-color 0.15s;
}
.ln-cart-coupon-input-row input[type="text"]::placeholder { letter-spacing: 0; }
.ln-cart-coupon-input-row input[type="text"]:focus { border-color: #16AEB5; }
.ln-cart-coupon-result {
    margin-top: 10px; padding: 10px 14px;
    border-radius: 8px; font-size: 14px; font-weight: 500;
}
.ln-cart-coupon-result.success {
    background: rgba(22,174,181,0.12); color: #16AEB5;
    border: 1px solid rgba(22,174,181,0.3);
}
.ln-cart-coupon-result.error {
    background: rgba(255,72,72,0.08); color: #FF4848;
    border: 1px solid rgba(255,72,72,0.25);
}
.ln-cart-coupon-discount-row {
    font-size: 14px; color: var(--ln-text-muted); margin-top: 4px;
}
.ln-cart-coupon-discount-val { color: #16AEB5; font-weight: 700; }

/* ===========================
   쿠폰 공개 뷰 (site/coupon)
   =========================== */
.ln-coupon-page {
    min-height: 70vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px 20px;
}
.ln-coupon-card {
    width: 100%; max-width: 520px;
    background: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.ln-coupon-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 6px;
    background: #16AEB5; border-radius: 20px 0 0 20px;
}
.ln-coupon-card--expired { opacity: 0.5; }
.ln-coupon-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 28px 16px 28px;
}
.ln-coupon-brand-name {
    font-size: 18px; font-weight: 900; color: #16AEB5;
    letter-spacing: 0.04em;
}
.ln-coupon-brand-label {
    font-size: 13px; color: var(--ln-muted);
}
.ln-coupon-divider {
    height: 1px; background: var(--ln-border); margin: 0 28px;
}
.ln-coupon-divider--dashed {
    background: none;
    border-top: 1.5px dashed var(--ln-border);
}
.ln-coupon-body { padding: 24px 28px 20px; }
.ln-coupon-name {
    font-size: 18px; font-weight: 700; color: var(--ln-text);
    margin-bottom: 10px;
}
.ln-coupon-discount {
    font-size: 44px; font-weight: 900; color: #16AEB5;
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 20px;
}
.ln-coupon-discount-expired {
    font-size: 22px; font-weight: 700; color: var(--ln-muted);
    padding: 12px 0 4px;
}
.ln-coupon-meta { display: flex; flex-direction: column; gap: 8px; }
.ln-coupon-meta-row { display: flex; align-items: center; gap: 12px; }
.ln-coupon-meta-label {
    font-size: 13px; color: var(--ln-muted);
    min-width: 96px; flex-shrink: 0;
}
.ln-coupon-meta-value { font-size: 14px; color: var(--ln-text); font-weight: 500; }
.ln-coupon-serial-wrap { padding: 18px 28px 22px; }
.ln-coupon-serial-label { font-size: 12px; color: var(--ln-muted); display: block; margin-bottom: 8px; }
.ln-coupon-serial-row { display: flex; align-items: center; gap: 10px; }
.ln-coupon-serial {
    font-family: monospace; font-size: 22px; font-weight: 800;
    letter-spacing: 0.1em; color: var(--ln-text);
}
.ln-coupon-actions {
    margin-top: 28px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ln-coupon-hint {
    font-size: 14px; color: var(--ln-muted); line-height: 1.6;
    max-width: 400px; text-align: center;
}

/* 사이드바 기간 선택 탭 */
.ln-term-tabs {
    display: flex;
    gap: 8px;
}
.ln-term-tab {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--ln-border);
    font-size: 14px; font-weight: 500;
    color: var(--ln-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.ln-term-tab.active {
    border-color: var(--ln-cyan);
    color: var(--ln-cyan);
    background: rgba(22,174,181,0.1);
}
.ln-term-tab:hover:not(.active) {
    border-color: var(--ln-border-l);
    color: var(--ln-text);
}

/* ===========================
   반응형 — 모바일
   =========================== */

/* 중간 화면 (640~1023px) 카드 폰트 축소 */
@media (max-width: 1023px) {
    .ln-card-body { padding: 14px 16px 16px; }
    .ln-card-title { font-size: 15px; }
    .ln-card-price-main { font-size: 14px; }
    .ln-card-meta { font-size: 12px; }
    .ln-section-title { font-size: 20px; }
    .ln-sections { padding: 32px 24px 60px; }
}

/* 모바일 강의 목록 슬라이더 */
@media (max-width: 639px) {
    .online_wrap { overflow-x: hidden; }
    /* ln-section(제목)과 ln-swiper-outer(카드)가 형제라 sections에 padding 적용 */
    .ln-sections { padding: 24px 0 48px 0px; }
    .ln-section-head { margin-bottom: 16px; padding-left:20px; padding-right: 20px; }
    .ln-section-title { font-size: 18px; }
    .ln-swiper-track { overflow: visible !important; padding-top: 8px; margin-top: -8px; }
    .ln-card { width: 100%; }
    .ln-swiper {padding-left:20px !important;}
    .ln-swiper-outer .swiper-button-prev,
    .ln-swiper-outer .swiper-button-next { display: none; }
}

/* sub_tab depth2 다크 테마 유지 (responsive.css #f8f8f8 오버라이드) */
@media screen and (max-width: 960px) {
    .sub_tab {display:none}

    /* ── 햄버거 아이콘 위치 복원 (common_new.css flex 40×40 오버라이드) ── */
    .nav_menu_icon {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        right: 25px !important;
        width: 30px !important;
        height: 70px !important;
        text-align: right;
        background: transparent;
    }
    .nav_menu_icon .wrap {
        display: inline-block !important;
        vertical-align: middle;
        width: auto !important;
    }
    .nav_menu_icon .wrap span {
        width: 30px !important;
        height: 2px;
        margin: 6px auto;
        background: #fff;
    }
    .nav_menu_icon.close { position: fixed !important; }
    .nav_menu_icon.close .wrap { margin-top: 0; }
    .nav_menu_icon.close .wrap span { margin: 0 !important; width: 30px !important; background: #fff !important; }
    .nav_menu_icon.close .wrap span:nth-child(1) { transform: rotate(45deg) !important; transform-origin: center; margin-bottom: -1px !important; }
    .nav_menu_icon.close .wrap span:nth-child(2) { opacity: 0 !important; }
    .nav_menu_icon.close .wrap span:nth-child(3) { transform: rotate(-45deg) !important; transform-origin: center; margin-top: -2px !important; }

    /* ── 사이드 메뉴 배경 복원 (common_new.css #111 오버라이드) ── */
    .full_menu {
        background: #f9f9f9 !important;
    }
    .full_menu .user_menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        background: #16AEB5 !important;
        padding: 52px 20px 18px !important;
        min-height: auto !important;
        line-height: 1.4 !important;
        border-bottom: none !important;
        gap: 6px 10px !important;
        overflow: visible !important;
    }
    .full_menu .user_menu > p {
        display: flex !important;
        align-items: center;
        gap: 8px;
        color: #fff !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
    .full_menu .user_menu > p b { color: #fff !important; font-size: 15px; }
    .full_menu .user_menu > p a { color: #fff !important; background: rgba(0,0,0,0.2); padding: 3px 12px; border-radius: 14px; font-size: 13px; font-weight: 500; }
    .full_menu .user_menu .thum { display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); background-color: rgba(255,255,255,0.15); overflow: hidden; flex-shrink: 0; vertical-align: unset !important; margin: 0 !important; }
    .full_menu .mo_mymenu_wrap { width: 100%; margin-top: 6px; }
    .full_menu .mo_mymenu_wrap > a { display: inline-block; background: rgba(0,0,0,0.2) !important; padding: 6px 14px !important; line-height: 1.4 !important; color: #fff !important; border-radius: 4px !important; border: none !important; font-size: 13px; margin: 0 !important; }
    .full_menu .mo_mymenu { display: flex !important; flex-wrap: wrap; gap: 6px !important; color: #fff; }
    .full_menu .mo_mymenu li a { display: inline-block !important; background: rgba(0,0,0,0.2) !important; color: #fff !important; border-radius: 4px !important; border: none !important; padding: 6px 14px !important; line-height: 1.4 !important; font-size: 13px !important; margin: 0 !important; }
    .full_menu dl { background: #fff !important; padding-top: 10px !important; padding-bottom: 0 !important; }
    .full_menu dd {
        background: #fff !important;
        border-bottom: 1px solid #e9e9e9 !important;
        width: 100%;
        height: auto;
        line-height: 1.4em;
        overflow: hidden;
        text-align: left;
        padding: 20px 7% 14px !important;
        float: none;
        border-right: 0;
    }
    .full_menu dd a { display: block; float: none; font-size: 15px; line-height: 1.4; margin: 0; height: auto; font-weight: 400; }
    .full_menu dd h3 {
        font-size: 14px !important;
        height: auto;
        line-height: 1em;
        font-weight: 500;
        border-bottom: 0;
        padding: 0 !important;
        margin-bottom: 12px !important;
        color: inherit !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
    .full_menu dd > li { display: block; list-style: none; margin: 0; padding: 0; }
    .full_menu dd .sub_menu { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding: 0 !important; margin: 0 !important; }
    .full_menu dd .sub_menu li { list-style: none; margin: 0; }
    .full_menu dd .sub_menu li a {
        display: block !important;
        float: none !important;
        color: inherit !important;
        padding: 5px 0 !important;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.4;
    }
    .full_menu dd { padding: 16px 7% !important; }
    /* .sub_tab .container.col_2 .tab_wrap,
    .sub_tab .container.col_3 .tab_wrap { background: var(--ln-bg2) !important; }
    .sub_tab .container.col_2 .tab_wrap h2,
    .sub_tab .container.col_3 .tab_wrap h2 { color: rgba(255,255,255,0.7) !important; }
    .sub_tab .container.col_2 .tab_wrap .dep_li a,
    .sub_tab .container.col_3 .tab_wrap .dep_li a { color: rgba(255,255,255,0.5) !important; }
    .sub_tab .container.col_2 .tab_wrap .dep_li a.active,
    .sub_tab .container.col_3 .tab_wrap .dep_li a.active { color: #fff !important; background: rgba(22,174,181,0.12) !important; }
    .sub_tab .container.col_2 .tab_wrap h2 a.tab_btn,
    .sub_tab .container.col_3 .tab_wrap h2 a.tab_btn { color: rgba(255,255,255,0.6) !important; } */
}

@media (max-width: 768px) {
    /* 모바일 — 배경색 살짝 밝게 */
    :root {
        --ln-card:    #14252c;
        --ln-surface: #1a3540;
        --ln-border:  #1e4450;
    }

    /* 상세 페이지 패딩 */
    .ln-view-outer { padding: 110px 20px 0; }
    .ln-view-main { gap: 56px; padding-bottom: 120px; }

    /* 섹션 제목 */
    .ln-section-heading { font-size: 26px !important; padding-bottom: 14px; }
    .ln-section-badge { font-size: 13px; padding: 5px 14px; }

    /* 검색 섹션 */
    .ln-search-section { padding: 48px 20px 40px; }
    .ln-search-category { font-size: 16px; padding: 14px 16px 14px 0; }
    .ln-search-input-field,
    .ln-search-bar select  { font-size: 16px; }

    /* 강사 히어로: 세로 스택 */
    .ln-instructor-hero { min-height: auto; }
    .ln-instructor-hero-inner {
        flex-direction: column-reverse;
        padding: 28px 24px 32px;
        gap: 20px;
        align-items: center;
    }
    .ln-instructor-hero-photo {
        width: 180px;
        margin: 0 auto;
    }
    .ln-instructor-hero-photo img {
        max-width: 180px;
        margin-top: 0;
        margin-bottom: 0;
    }
    .ln-instructor-headline { font-size: 22px; }
    .ln-instructor-career { font-size: 16px; gap: 8px; }
    .ln-instructor-career--prev { font-size: 15px; }
    .ln-instructor-sig { font-size: 14px; }
    .ln-instructor-sig strong { font-size: 18px; }

    /* 커리큘럼 */
    .ln-curriculum-head { padding: 18px 20px; gap: 8px; flex-wrap: wrap; }
    .ln-curriculum-head-title { font-size: 22px; }
    .ln-curriculum-table td { padding: 20px 14px; font-size: 17px; }
    .ln-curriculum-table th { padding: 10px 14px; font-size: 12px; }
    .ln-curriculum-table td.num { width: 40px; font-size: 16px; }
    .ln-curriculum-table td.dur { width: 58px; font-size: 15px; }

    /* 훅 헤드라인 */
    .ln-hook-headline { font-size: 26px !important; }
    .ln-checklist-title { font-size: 22px; }
    .ln-solution-heading { font-size: 24px !important; }

    /* 체크리스트 세로 배치 */
    .ln-checklist li { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
    .ln-item-arrow { display: inline-flex; transform: rotate(90deg); margin: 0; }

    /* 편집 버튼 — 모바일 바 위로 */
    .ln-admin-edit-btn { bottom: 230px; right: 16px; padding: 10px; }
    .ln-admin-edit-btn span { display: none; }

    /* 푸터 — 가운데 정렬 */
    .footer-top { flex-direction: column !important; align-items: center !important; gap: 16px !important; text-align: center !important; }
    .footer .legal { justify-content: center !important; gap: 0 !important; }
    .footer .legal a { padding: 0 14px !important; margin:0; }

    /* 여백 통일 — 섹션 카드 좌우 패딩 20px 통일 */
    .ln-solution-section { padding: 28px 20px; margin: 0; }
    .ln-checklist-box { padding: 24px 20px; }
    .ln-instructor-card { padding: 28px 20px; }
    .ln-outcome-item { padding: 20px; }
    .ln-review-summary { padding: 20px; }

    /* 원인 분석 — 좌우 패딩·갭 축소 */
    .ln-cause-section { padding: 0; gap: 24px; }

    /* 훅 섹션 갭 축소 */
    .ln-hook-section { gap: 28px; }

    /* 섹션 간격 / 커리큘럼 외부 마진 제거 */
    .ln-view-main { gap: 48px; }
    .ln-curriculum { margin: 0; }

    /* 모바일 텍스트 가운데 정렬 */
    .ln-section-badge { display: block; text-align: center; }
    .ln-section-heading { text-align: center; }
    .ln-hook-headline { text-align: center; }
    .ln-body-text { text-align: center; }
    .ln-editor-content { text-align: center; }
    .ln-solution-heading { text-align: center; }
    .ln-solution-body { text-align: center; }
    .ln-instructor-sig { text-align: center; }

    /* 모바일 바 D안 — 전체 compact */
    .ln-mobile-bar .ln-sidebar-price-main { font-size: 22px; }
    .ln-mobile-bar-price { padding: 10px 20px 6px; }
    .ln-mobile-bar-buttons { padding: 0 20px 10px; }
    .ln-mobile-bar .ln-cta-btn { height: 52px; font-size: 16px; padding:13px;}
    .ln-mobile-bar-buttons .ln-cta-btn--cart { width: 52px; height: 52px; }
    .ln-mobile-bar-buttons .ln-cta-btn--cart svg {font-size:30px; width: 35px !important; height: 35px !important; }
    .ln-mobile-bar-tabs { padding: 8px 20px 0; }
    .ln-term-tab { padding: 8px 0; font-size: 14px; }
}

@media (max-width: 480px) {
    .ln-instructor-hero-inner { padding: 20px 16px 24px; }
    .ln-instructor-hero-photo { width: 140px; }
    .ln-instructor-hero-photo img { max-width: 140px; }

    /* 커리큘럼 */
    .ln-curriculum-head { padding: 12px 14px; }
    .ln-curriculum-head-title { font-size: 15px; }
    .ln-curriculum-meta { font-size: 13px; padding: 4px 10px; }
    .ln-curriculum-table th { padding: 8px 10px; font-size: 11px; }
    .ln-curriculum-table td { padding: 16px 10px; font-size: 15px; }
    .ln-curriculum-table td.num { width: 32px; font-size: 15px; }
    .ln-curriculum-table td.dur { width: 46px; font-size: 14px; }

    /* 훅 헤드라인 */
    .ln-hook-headline { font-size: 22px !important; }
    .ln-solution-heading { font-size: 20px !important; }

    /* 체크리스트 박스 */
    .ln-checklist-box { padding: 20px 16px; }
    .ln-checklist li { font-size: 15px; padding: 14px 16px; gap: 4px; }
    .ln-checklist li em { font-size: 15px; }
    .ln-checklist { gap: 16px; }

    /* 푸터 — 가운데 정렬 */
    .footer .container {padding:0 30px;}
    .footer-top { flex-direction: column !important; align-items: center !important; gap: 16px !important; }
    .footer .legal { justify-content: center !important; }
    .footer .legal a { padding: 0 12px !important; }
}

/* 스티키 헤더 블러 배경 */
.header.sticky {
    background: rgba(8, 22, 24, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
