/* ===================================================
   webinar.css — 2026 PD NurseAcademy 웨비나 사이트 공통 스타일
   pd-on.sympolive.com(pdon-public.css) 레이아웃을 그대로 가져왔다 (Vantive 틸 테마)
   entry / main / watch 페이지 공통
   =================================================== */

/* ── Pretendard 웹폰트 (자체 호스팅) ── */
@font-face {
    font-family: 'Pretendard'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 500; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 600; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 700; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 800; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-ExtraBold.woff2') format('woff2');
}

/* ── 리셋 ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── CSS 변수 (Vantive 틸 + 플럼 액센트) ── */
:root {
    --teal:    #2BB7B3;   /* 메인 브랜드 (풋터 동일) */
    --teal-d:  #1E908D;
    --teal-l:  #54CFCB;
    --plum:    #5B2A57;   /* Vantive 워드마크 플럼 — 보조 액센트 */
    --txt:     #1a1b20;
    --muted:   #5c6270;
    --border:  rgba(43,183,179,0.20);
    --danger:  #ef4444;

    --radius-card: 24px;
    --shadow-card:
        0 1px 1px rgba(30,144,141,0.04),
        0 12px 28px rgba(30,144,141,0.12),
        0 40px 80px rgba(30,144,141,0.10);
    --shadow-soft:
        0 1px 1px rgba(30,144,141,0.03),
        0 8px 22px rgba(30,144,141,0.08);
    --grad-teal:   linear-gradient(180deg, #38C3BF 0%, var(--teal) 100%);
    --grad-teal-h: linear-gradient(180deg, var(--teal) 0%, var(--teal-d) 100%);
    --bg-page: radial-gradient(140% 90% at 50% -10%, #ffffff 0%, #f3fbfa 45%, #e7f5f4 100%);
}

/* ── 베이스 ── */
html, body { min-height: 100%; }
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--txt);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    min-height: 100vh;
}

/* ── 페이지 좌측 상단 로고 ── */
.page-logo {
    position: fixed; top: 22px; left: 26px; z-index: 20;
}
.page-logo-img { height: 27px; width: auto; display: block; }

/* ── 우측 상단 배지 ── */
.page-badge {
    position: fixed; top: 26px; right: 26px; z-index: 20;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    color: var(--teal-d);
    background: rgba(43,183,179,0.10);
    border: 1px solid rgba(43,183,179,0.28);
    padding: 6px 12px; border-radius: 0;
}

/* ── 카드 진입 애니메이션 ── */
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.u-card-in { animation: cardIn .65s cubic-bezier(.16,.84,.44,1) both; }

/* ── eyebrow 라벨 ── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--teal-d);
    margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.eyebrow.is-live::before { animation: eyebrowPulse 2s ease-out infinite; }
@keyframes eyebrowPulse {
    0%   { box-shadow: 0 0 0 0 rgba(43,183,179,0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(43,183,179,0); }
    100% { box-shadow: 0 0 0 0 rgba(43,183,179,0); }
}

/* ── 상단 브랜드 액센트 라인 ── */
.accent-line {
    position: absolute; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal) 50%, transparent);
    border-radius: 2px; opacity: .9;
}

/* ── 가는 구분선 ── */
.panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43,183,179,0.16) 20%, rgba(43,183,179,0.16) 80%, transparent);
    margin: 0 0 14px;
}

/* ── 폼 ── */
.form-control {
    width: 100%; padding: 13px 15px;
    font-family: inherit; font-size: 14px; color: var(--txt);
    background: #fff;
    border: 1px solid var(--border); border-radius: 11px;
    transition: border-color .18s, box-shadow .18s;
}
.form-control::placeholder { color: #9aa1ad; }
.form-control:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(43,183,179,0.14);
}

/* ── 입장 버튼 ── */
.btn-enter {
    width: 100%; padding: 14px;
    background: var(--grad-teal); color: #fff;
    border: none; border-radius: 11px;
    font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .01em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(30,144,141,0.26);
    transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-enter:hover {
    background: var(--grad-teal-h);
    box-shadow: 0 10px 24px rgba(30,144,141,0.32);
    transform: translateY(-1px);
}
.btn-enter:active { transform: translateY(0); }
.btn-enter svg { width: 18px; height: 18px; stroke: #fff; transition: transform .2s; }
.btn-enter:hover svg { transform: translateX(3px); }

/* ── 사전 등록 버튼 (입장 버튼 아래, 보조) ── */
.btn-register {
    width: 100%; padding: 12px;
    margin-top: 10px;
    background: #fff; color: var(--teal-d);
    border: 1.5px solid var(--teal);
    border-radius: 11px;
    font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .01em;
    text-decoration: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .18s, color .18s, box-shadow .18s;
}
.btn-register:hover { background: rgba(43,183,179,0.08); box-shadow: 0 6px 16px rgba(30,144,141,0.14); }
.btn-register svg { width: 18px; height: 18px; stroke: currentColor; }

/* 하단 토스트 (입장 오류 — 레이아웃에 영향 없음) */
.form-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px);
    z-index: 700; display: inline-flex; align-items: center; gap: 9px;
    max-width: 90vw; padding: 13px 20px; border-radius: 12px;
    background: linear-gradient(180deg,#ef5168,#e23b54); color: #fff;
    font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
    box-shadow: 0 14px 34px rgba(180,30,55,0.34);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.form-toast.show { opacity: 1; transform: translate(-50%, 0); }
.form-toast svg { width: 18px; height: 18px; stroke: #fff; flex-shrink: 0; }

/* 인풋 위 안내 박스 */
.form-lead {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 600; color: var(--teal-d); line-height: 1.45;
    background: linear-gradient(180deg, #f4fbfb 0%, #ecf8f7 100%);
    border: 1px solid rgba(43,183,179,0.22); border-radius: 11px;
    padding: 11px 14px; margin-bottom: 14px;
}
.form-lead svg { width: 17px; height: 17px; stroke: var(--teal); flex-shrink: 0; }
.form-lead b { font-weight: 800; }

/* 버튼 하단 안내 문구 */
.login-note { text-align: left; font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 5px; }

/* 법적 안내 박스 */
.legal-note {
    margin-top: 16px; padding: 12px 14px;
    background: #f6fafb; border: 1px solid rgba(43,183,179,0.18); border-radius: 10px;
}
.legal-note p { font-size: 11px; line-height: 1.65; color: #6b7682; }
.legal-note p + p { margin-top: 7px; }

/* ── 알림 박스 ── */
.alert-error, .alert-success {
    font-size: 13px; line-height: 1.5; padding: 11px 14px;
    border-radius: 10px; margin-bottom: 14px;
}
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdfa; border: 1px solid #99e6e2; color: var(--teal-d); }

/* ═══════════════ index 레이아웃 ═══════════════ */
body.page-index {
    display: flex; flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 86px 16px 0;   /* 하단 패딩 0 — 풋터가 화면 바닥에 붙음 */
}
.card-wrap {
    width: auto; max-width: 100%;
    display: inline-flex; align-items: stretch;   /* 좌우 한 카드처럼 동일 높이 */
    position: relative; z-index: 1;
    margin: auto;                                 /* 화면 정중앙 (PC는 아래 미디어쿼리에서 상단 정렬) */
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
/* 좌측: 정보 + 폼 */
.left-panel {
    width: 460px; flex-shrink: 0;
    padding: 30px 48px;
    display: flex; flex-direction: column; justify-content: center;
    background: #fff;
    position: relative; z-index: 2;
}
.left-panel .accent-line { left: 48px; right: 48px; }

.event-title {
    font-size: clamp(21px, 3vw, 29px); font-weight: 800;
    color: var(--txt); letter-spacing: -0.025em; line-height: 1.32;
    margin-bottom: 10px;
}
.event-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.event-date { font-size: 17px; font-weight: 700; color: var(--teal-d); line-height: 1.45; margin-bottom: 6px; letter-spacing: -.01em; }
.event-meta b { color: var(--teal-d); font-weight: 600; }

/* 카운트다운 (Jeisys 동일 구조, 틸 테마) */
.countdown-box {
    background: linear-gradient(180deg, #f6fbfb 0%, #eef8f8 100%);
    border: 1px solid rgba(43,183,179,0.18);
    border-radius: 14px;
    padding: 14px 16px 16px;
    margin-bottom: 22px;
}
.countdown-label {
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    color: var(--teal-d); text-align: center; margin-bottom: 12px;
}
.countdown-inner {
    display: flex; align-items: stretch; justify-content: space-between;
    gap: 8px; text-align: center;
}
.countdown-unit {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 8px 2px;
    background: #fff;
    border: 1px solid rgba(43,183,179,0.12);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(30,144,141,0.05);
}
.countdown-num {
    font-size: 28px; font-weight: 800; color: var(--teal-d);
    line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-width: 2ch;
}
.countdown-text {
    font-size: 9px; color: var(--muted); letter-spacing: .1em;
    text-transform: uppercase; margin-top: 7px;
}
.countdown-sep {
    display: flex; align-items: center;
    font-size: 20px; color: #bfe6e4; font-weight: 300;
    padding-bottom: 14px; -webkit-user-select: none; user-select: none;
}

.form-group { margin-bottom: 11px; }
.register-link { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.register-link a { color: var(--teal-d); font-weight: 600; text-decoration: none; }
.register-link a:hover { text-decoration: underline; }

/* 우측: 히어로 */
.right-panel {
    width: 480px; flex-shrink: 0;
    background: rgba(255,255,255,0.62);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    backdrop-filter: blur(16px) saturate(1.1);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.right-content { position: relative; z-index: 1; text-align: center; padding: 48px; }
.right-tagline {
    font-size: clamp(18px, 2.2vw, 25px); font-weight: 800;
    color: var(--teal-d); letter-spacing: -0.025em; line-height: 1.4; margin-bottom: 12px;
}
.right-sub { font-size: 13px; color: var(--muted); line-height: 1.75; }
.illust-svg { width: clamp(180px, 22vw, 260px); height: auto; margin: 0 auto 34px; display: block; opacity: .96; }

/* 히어로 있을 때: 우측 폭을 이미지 실제 크기에 맞춤 (높이는 좌측과 동일) */
.right-panel.has-image {
    width: auto; flex: 0 0 auto;
    background: #ffffff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-left: 1px solid rgba(43,183,179,0.12);
}
.hero-image {
    display: block;
    width: auto; height: auto;
    max-width: min(700px, 52vw);   /* 더 크게 — 비율 유지 */
    max-height: 86vh;              /* 화면 높이 안에서 표시 */
}
.right-panel.has-image::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);   /* 라운드 가장자리 정리 */
}

/* ═══════════════ 사전 등록 페이지 ═══════════════ */
body.page-register {
    display: flex; flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 74px 16px 0;
}
.reg-card {
    width: 100%; max-width: 720px;
    margin: 14px auto 32px;          /* 떠있는 탭 여백 + 풋터와 간격 */
    background: #fff;
    border: 1px solid rgba(43,183,179,0.30);
    border-radius: 20px;
    padding: 56px 46px 42px;
    position: relative;
    box-shadow: 0 22px 50px rgba(30,144,141,0.15), 0 4px 14px rgba(30,144,141,0.07);
}
/* 상단 브랜드 액센트 라인 */
/* 상단 '사전 등록' 타이틀 (떠 있는 펄 — 아이콘 + 헤일로) */
.reg-tab {
    position: absolute; top: 0; left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 9px;
    background: linear-gradient(135deg, #4ecdc8 0%, var(--teal) 55%, var(--teal-d) 100%);
    color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .1em;
    padding: 13px 42px; border-radius: 999px;
    box-shadow: 0 12px 26px rgba(30,144,141,0.38), 0 0 0 5px rgba(43,183,179,0.12);
    white-space: nowrap; overflow: hidden;
}
.reg-tab svg { width: 18px; height: 18px; stroke: #fff; position: relative; z-index: 1; }
.reg-tab span { position: relative; z-index: 1; }
.reg-tab::after {   /* 상단 광택 */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.30), transparent 55%);
    pointer-events: none;
}

.reg-intro { text-align: center; margin-bottom: 26px; }
.reg-intro-title { font-size: 19px; font-weight: 800; color: var(--txt); letter-spacing: -.02em; line-height: 1.4; }
.reg-intro-title b { color: var(--teal-d); }
.reg-intro-sub { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.55; }
.reg-intro-sub b { color: #4b5563; font-weight: 700; }
.reg-intro-date {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 15px;
    padding: 8px 17px; border-radius: 999px;
    background: linear-gradient(180deg,#f1fbfa,#e6f7f6); border: 1px solid rgba(43,183,179,0.24);
    color: var(--teal-d); font-size: 13px; font-weight: 700; letter-spacing: -.01em;
}
.reg-intro-date svg { width: 15px; height: 15px; stroke: var(--teal); flex-shrink: 0; }

/* 입력 행: 라벨 + 입력 */
.reg-row {
    display: grid;
    grid-template-columns: 76px 1fr;   /* 라벨 고정 폭 → 모든 인풋 시작점·너비 동일 */
    align-items: start;
    gap: 8px 14px;
    margin-bottom: 16px;
}
.reg-label {
    font-size: 15px; font-weight: 700; color: #2c3138;
    line-height: 50px;            /* 입력칸 높이에 맞춰 정렬 */
    white-space: nowrap;
    display: flex; align-items: baseline;
}
/* 입력한 공백 그대로 적용(자간 수동 조절) */
.reg-label .lt { white-space: pre; }
.reg-label .req { color: var(--teal); margin-left: 1px; flex: none; }
.reg-field { min-width: 0; }
.reg-input {
    width: 100%; height: 50px; padding: 0 16px;
    font-family: inherit; font-size: 15px; color: var(--txt);
    background: #fff;
    border: 1.5px solid #e1e6e9; border-radius: 11px;
    transition: border-color .18s, box-shadow .18s;
}
.reg-input::placeholder { color: #aab0b8; }
.reg-input:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(43,183,179,0.14);
}
.reg-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; padding-left: 2px; }

/* 로그인 화면으로 (등록 버튼 하단) */
.reg-tologin {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 16px; padding: 12px; border-radius: 11px;
    border: 1px solid var(--border); background: #fff;
    font-size: 13.5px; color: var(--muted); text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.reg-tologin:hover { border-color: var(--teal); color: var(--teal-d); background: rgba(43,183,179,0.05); }
.reg-tologin b { font-weight: 700; }
.reg-tologin svg { width: 16px; height: 16px; stroke: currentColor; }

/* 개인정보 동의 박스 */
.reg-privacy {
    background: linear-gradient(180deg, #f5fbfb 0%, #eff8f8 100%);
    border: 1px solid rgba(43,183,179,0.22); border-radius: 14px;
    padding: 20px 22px; margin: 28px 0 20px;
}
.reg-privacy-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 14.5px; font-weight: 800; color: var(--teal-d); margin-bottom: 11px;
}
.reg-privacy-title svg { width: 17px; height: 17px; stroke: var(--teal-d); flex-shrink: 0; }
.reg-privacy-body {
    font-size: 12.5px; line-height: 1.9; color: #586068; text-align: justify;
    max-height: 172px; overflow-y: auto; padding-right: 8px;
}
.reg-privacy-body::-webkit-scrollbar { width: 6px; }
.reg-privacy-body::-webkit-scrollbar-thumb { background: rgba(43,183,179,0.35); border-radius: 6px; }

/* 동의 체크 라인 */
.reg-agree {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 9px; margin: 0 auto 26px; width: max-content; max-width: 100%;
    padding: 12px 24px;
    background: rgba(43,183,179,0.07); border: 1px solid rgba(43,183,179,0.22);
    border-radius: 12px;
    font-size: 14.5px; font-weight: 700; color: var(--teal-d);
    cursor: pointer; text-align: center;
}
.reg-agree input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--teal); cursor: pointer; }

/* Submit (네이비) */
.reg-submit {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin: 0 auto; min-width: 240px; padding: 15px 44px;
    background: linear-gradient(180deg, #2450b4 0%, #16357e 100%);
    color: #fff; border: none; border-radius: 999px;
    font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22,53,126,0.32);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.reg-submit svg { width: 18px; height: 18px; stroke: #fff; }
.reg-submit:hover { filter: brightness(1.08); box-shadow: 0 14px 28px rgba(22,53,126,0.40); transform: translateY(-1px); }
.reg-submit:active { transform: translateY(0); }

@media (max-width: 560px) {
    .reg-card { padding: 48px 18px 32px; border-radius: 16px; }
    .reg-tab { padding: 11px 34px; font-size: 16px; }
    .reg-row { grid-template-columns: 1fr; gap: 5px; margin-bottom: 14px; }
    .reg-label { display: block; text-align: left; line-height: 1.6; }
    .reg-label .lt { text-align-last: left; }
    .reg-privacy-body { max-height: 200px; }
}

/* ═══════════════ 인비테이션 페이지 ═══════════════ */
body.page-invitation {
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh;
    padding: 30px 16px 0;
    background: radial-gradient(120% 80% at 50% 0%, #f1faf9 0%, #e2f1f0 100%);
}
.inv-wrap {
    width: 100%; max-width: 760px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 26px 64px rgba(30,144,141,0.18), 0 6px 18px rgba(30,144,141,0.08);
}

/* 인비테이션 상단 배너 (main.php 배너 방식 채택) */
.inv-banner-top .main-banner-inner { min-height: 270px; padding: 28px 38px 0; }
.inv-banner-top .main-bn-text { padding-bottom: 32px; }
.inv-banner-top .main-bn-text h1 .t1 { font-size: 54px; }
.inv-banner-top .main-bn-text h1 .t2 { font-size: 44px; }
.inv-banner-top .main-bn-meta { font-size: 16px; margin-top: 18px; gap: 4px 16px; }
.inv-banner-top .main-bn-illust img { height: 224px; }
@media (max-width: 620px) {
    .inv-banner-top .main-banner-inner { padding: 26px 22px 0; }
    .inv-banner-top .main-bn-text h1 .t1 { font-size: 40px; }
    .inv-banner-top .main-bn-text h1 .t2 { font-size: 33px; }
    .inv-banner-top .main-bn-meta { font-size: 14px; }
    .inv-banner-top .main-bn-illust img { height: 168px; }
}

/* 헤더 (구버전 — 미사용) */
.inv-header {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #4ecdc8 0%, var(--teal) 58%, var(--teal-d) 100%);
    color: #fff;
    padding: 46px 46px 40px;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
}
.inv-header::before, .inv-header::after {   /* 은은한 장식 원 */
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.inv-header::before { width: 240px; height: 240px; right: -70px; top: -100px; background: rgba(255,255,255,0.10); }
.inv-header::after  { width: 130px; height: 130px; right: 110px; bottom: -80px; background: rgba(255,255,255,0.07); }
.inv-htitle, .inv-hlogo { position: relative; z-index: 1; }
.inv-htitle h1 {
    font-size: 44px; font-weight: 800; line-height: 1.02; letter-spacing: -.01em;
}
.inv-htitle h1 .nt { display: block; color: #16357e; margin-top: 2px; }
.inv-hmeta { margin-top: 22px; list-style: none; }
.inv-hmeta li { font-size: 16px; font-weight: 600; line-height: 1.85; }
.inv-hlogo { flex-shrink: 0; text-align: center; min-width: 156px; }
.inv-hlogo-cap { font-size: 12.5px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.inv-hlogo img {
    width: 140px; height: auto; display: block; margin: 0 auto;
    background: #fff; padding: 12px 16px; border-radius: 14px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}
.inv-hlogo-sub { font-size: 15px; font-weight: 800; letter-spacing: .02em; margin-top: 9px; }

/* 인사말 */
.inv-greet { padding: 34px 44px 26px; text-align: center; font-family: 'NanumMyeongjo', serif; }
.inv-greet p {
    font-size: 16px; font-weight: 600; line-height: 1.95; color: #2a3138; letter-spacing: -.01em;
    text-align: left;
}
.inv-greet .hl { color: var(--teal); font-weight: 700; }
.inv-sign { margin-top: 24px; text-align: right; padding-right: 6px; }
.inv-sign .ty { font-size: 19px; font-weight: 700; color: #2a3138; }
.inv-sign .by { font-size: 13px; color: var(--muted); margin-top: 4px; }
.inv-sign .by b { color: #2a3138; font-weight: 800; font-size: 18px; }

/* 버튼 (고도화) */
.inv-actions { display: flex; justify-content: center; gap: 18px; padding: 8px 44px 32px; flex-wrap: wrap; }
.inv-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 218px; padding: 17px 34px;
    font-size: 18px; font-weight: 800; letter-spacing: .01em; text-decoration: none;
    border-radius: 14px; color: #fff;
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.inv-btn svg { width: 19px; height: 19px; stroke: currentColor; flex-shrink: 0; position: relative; z-index: 1; transition: transform .2s; }
.inv-btn span { position: relative; z-index: 1; }
.inv-btn::after {   /* 상단 광택 */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 52%);
    pointer-events: none;
}
.inv-btn.teal { background: linear-gradient(135deg, #4ecdc8 0%, var(--teal) 60%, var(--teal-d) 100%); box-shadow: 0 12px 26px rgba(30,144,141,0.32); }
.inv-btn.navy { background: linear-gradient(135deg, #2a59c2 0%, #16357e 100%); box-shadow: 0 12px 26px rgba(22,53,126,0.32); }
.inv-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.inv-btn.teal:hover { box-shadow: 0 16px 32px rgba(30,144,141,0.40); }
.inv-btn.navy:hover { box-shadow: 0 16px 32px rgba(22,53,126,0.40); }
.inv-btn:active { transform: translateY(0); }
.inv-btn .arr { transition: transform .2s; }
.inv-btn:hover .arr { transform: translateX(4px); }

/* 섹션 배너 (Agenda / 참여방법) */
.inv-banner { position: relative; text-align: center; margin: 30px 0 22px; }
.inv-banner::before {
    content: ''; position: absolute; top: 50%; left: 30px; right: 30px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(43,183,179,0.55) 18%, rgba(43,183,179,0.55) 82%, transparent);
    transform: translateY(-50%);
}
.inv-banner span {
    position: relative; display: inline-block;
    background: linear-gradient(180deg, #41c8c4 0%, var(--teal) 100%);
    color: #fff; font-size: 21px; font-weight: 800; letter-spacing: .04em;
    padding: 12px 56px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 18px 100%);
    box-shadow: 0 8px 16px rgba(30,144,141,0.22);
}

/* Agenda 표 */
.inv-tablewrap {
    margin: 0 34px;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 20px rgba(30,144,141,0.12);
    border: 1px solid rgba(43,183,179,0.18);
}
.inv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.inv-table th {
    background: linear-gradient(180deg, #41c8c4 0%, var(--teal) 100%);
    color: #fff; font-weight: 800; font-size: 16px;
    padding: 13px 14px; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.22);
}
.inv-table th:last-child { border-right: none; }
.inv-table td {
    padding: 14px 14px; border-bottom: 1px solid rgba(43,183,179,0.18);
    color: #2a3138; font-weight: 600;
}
.inv-table td:first-child { color: var(--teal-d); font-weight: 700; white-space: nowrap; text-align: center; }
.inv-table tbody tr:nth-child(even) { background: #f4fbfb; }
.inv-table td .sub { color: var(--muted); font-weight: 500; font-size: 14px; }

/* 참여방법 단계 */
.inv-steps {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 4px; padding: 4px 24px 0; flex-wrap: wrap;
}
.inv-step { width: 128px; text-align: center; }
.inv-step-ico {
    width: 64px; height: 64px; margin: 0 auto 11px;
    border: 2.5px solid var(--teal); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal); background: #fff;
    box-shadow: 0 7px 16px rgba(30,144,141,0.16);
}
.inv-step.on .inv-step-ico {
    background: linear-gradient(180deg, #45c6c2 0%, var(--teal) 100%);
    color: #fff; border-color: transparent;
    box-shadow: 0 9px 20px rgba(30,144,141,0.32);
}
.inv-step-ico svg { width: 26px; height: 26px; stroke: currentColor; }
.inv-step-ico.qa { font-size: 16px; font-weight: 800; }
.inv-step-cap { font-size: 13px; line-height: 1.5; }
.inv-step-cap b { display: block; color: var(--teal-d); font-weight: 700; font-size: 13.5px; }
.inv-step-cap span { color: var(--muted); }

/* 참여방법 하단 안내 */
.inv-stepnote { text-align: center; margin: 20px 30px 4px; font-size: 13.5px; line-height: 1.6; color: #586068; }
.inv-stepnote b { color: var(--teal-d); font-weight: 700; }
.inv-arrow { color: #9bd3d0; font-size: 22px; font-weight: 700; padding-top: 16px; }

/* zoom 안내 */
.inv-zoomnote {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin: 22px 30px 8px; font-size: 14.5px; font-weight: 600; color: #2a3138;
}
.inv-zoomnote .ex {
    width: 22px; height: 22px; border: 2px solid #f59e0b; color: #f59e0b;
    border-radius: 50%; font-weight: 800; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.inv-zoomnote .pill {
    background: var(--teal); color: #fff; font-weight: 700;
    padding: 3px 12px; border-radius: 999px;
}

/* 안내 말씀 */
.inv-guide {
    margin: 22px 30px 36px; padding: 20px 24px;
    border: 1px solid rgba(43,183,179,0.25); border-radius: 12px;
    background: #f7fbfb;
}
.inv-guide-title { text-align: center; font-size: 16px; font-weight: 800; color: var(--teal-d); margin-bottom: 12px; }
.inv-guide p { font-size: 12.5px; line-height: 1.8; color: #5a6068; margin-bottom: 6px; }
.inv-guide p:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
    .inv-header { flex-direction: column; align-items: center; text-align: center; padding: 34px 24px 28px; }
    .inv-htitle h1 { font-size: 36px; }
    .inv-hmeta li { font-size: 15px; }
    .inv-greet { padding: 28px 24px 22px; }
    .inv-greet p { font-size: 15px; }
    .inv-actions { padding: 6px 24px 26px; gap: 14px; }
    .inv-btn { min-width: 140px; flex: 1; font-size: 17px; padding: 14px 18px; }
    .inv-tablewrap { margin: 0 16px; }
    .inv-table, .inv-table th, .inv-table td { font-size: 13.5px; }
    .inv-table td { padding: 11px 10px; }
    .inv-steps { gap: 2px; }
    .inv-step { width: 70px; }
    .inv-step-ico { width: 50px; height: 50px; }
    .inv-arrow { padding-top: 12px; font-size: 16px; }
    .inv-guide { margin: 20px 16px 28px; }
}

/* ═══════════════ 입장 후 메인 (main.php) ═══════════════ */
body.page-main {
    display: flex; flex-direction: column;
    min-height: 100vh;
    padding: 0;
    background: #f3fbfa;
}

/* 상단 네비 (로고 + 회원 상태) — watch.php 스타일 */
.site-nav {
    position: sticky; top: 0; z-index: 100; height: 64px;
    padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid rgba(43,183,179,0.16);
}
.sn-logo { display: flex; align-items: center; text-decoration: none; }
.sn-logo img { height: 27px; width: auto; display: block; }
.sn-logo-txt { font-size: 20px; font-weight: 800; color: #1E908D; letter-spacing: -.02em; }
.sn-right { display: flex; align-items: center; gap: 12px; }
.sn-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sn-info { display: flex; flex-direction: column; line-height: 1.3; }
.sn-name { font-size: 13.5px; font-weight: 700; color: var(--txt); }
.sn-hosp { font-size: 11px; color: var(--muted); }
.sn-logout { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; text-decoration: none; transition: border-color .15s, color .15s; }
.sn-logout:hover { border-color: var(--teal); color: var(--teal-d); }
/* 내 정보 수정 — 이름 클릭 버튼 */
.sn-profile { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s; }
.sn-profile:hover { background: #f0faf9; border-color: rgba(43,183,179,0.28); }
.sn-name { display: inline-flex; align-items: center; gap: 5px; }
.sn-edit-ico { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; }
.sn-profile:hover .sn-edit-ico { color: var(--teal-d); }
@media (max-width: 520px) { .site-nav { padding: 0 16px; } .sn-info { display: none; } }
/* 정보 수정 완료 토스트 */
.profile-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 700; padding: 13px 24px; border-radius: 999px; background: rgba(15,28,40,.9); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(15,28,40,.32); animation: certFade .25s ease; }
.profile-toast.hide { opacity: 0; transition: opacity .4s ease; }

/* 상단 배너 */
.main-banner {
    position: relative; overflow: hidden;
    width: 100%;
    background: #38bdb8;
}
.main-banner-inner {
    position: relative; z-index: 2;
    max-width: 972px; margin: 0 auto;   /* 하단 카드(940px)와 좌우 정렬선 일치 */
    min-height: 330px;
    padding: 30px 16px 0;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.main-bn-text { color: #fff; flex-shrink: 0; padding-bottom: 46px; }
/* 지금 진행중 — 라이브 배지(깜빡임) */
.live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 16px; padding: 7px 16px 7px 13px; border-radius: 999px;
    background: rgba(255,255,255,0.95); color: #e11d48;
    font-size: 14px; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 6px 16px rgba(15,28,40,.18);
    animation: liveBlink 1.1s ease-in-out infinite;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e11d48; animation: liveDot 1.1s ease-in-out infinite; }
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.55); } 70% { box-shadow: 0 0 0 7px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }
.main-bn-text h1 { line-height: 1.0; letter-spacing: -.01em; }
.main-bn-text h1 .t1 { display: block; font-size: 66px; font-weight: 800; color: #fff; }
.main-bn-text h1 .t2 { display: block; font-size: 56px; font-weight: 800; color: #16357e; margin-top: 4px; }
.main-bn-meta {
    margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 24px;
    font-size: 19px; font-weight: 700; color: #fff;
}
/* 배너 입장 버튼 */
.main-bn-enter {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 26px; padding: 15px 42px; border-radius: 12px; border: none;
    font-size: 18px; font-weight: 800; letter-spacing: .01em; text-decoration: none; cursor: pointer;
    background: linear-gradient(180deg, #2450b4 0%, #16357e 100%); color: #fff;
    box-shadow: 0 12px 26px rgba(20,40,100,0.32);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.main-bn-enter:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20,40,100,0.42); filter: brightness(1.06); }
.main-bn-enter svg { width: 20px; height: 20px; stroke: currentColor; }
/* 진행 예정 — 프로스티드 글래스 + 펄스(대기 느낌) */
.main-bn-enter.is-locked {
    background: rgba(255,255,255,0.16);
    color: #fff; font-weight: 700;
    border: 1.6px solid rgba(255,255,255,0.6);
    -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
    animation: enterPulse 2.4s ease-in-out infinite;
}
.main-bn-enter.is-locked:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); filter: none; }
.main-bn-enter.is-locked svg { opacity: .95; }
@keyframes enterPulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,0.14), 0 0 0 0 rgba(255,255,255,0.45); }
    55%      { box-shadow: 0 10px 24px rgba(0,0,0,0.14), 0 0 0 9px rgba(255,255,255,0); }
}

.main-bn-illust { flex-shrink: 0; align-self: flex-end; }
.main-bn-illust img { display: block; height: 300px; width: auto; max-width: 100%; }

/* 떠다니는 구름 (4개) — 우측 일러스트 뒤쪽에 겹쳐 배치 (z-index 1 < 일러스트 2) */
.main-cloud { position: absolute; z-index: 1; pointer-events: none; opacity: .96; will-change: transform; }
.main-cloud.c1 { width: 118px; top: 24px;  left: 56%; animation: cloudFloatA 5.5s ease-in-out infinite; }
.main-cloud.c2 { width: 78px;  top: 124px; left: 72%; animation: cloudFloatB 6.5s ease-in-out infinite; }
.main-cloud.c3 { width: 92px;  top: 58px;  left: 62%; animation: cloudFloatA 7s   ease-in-out infinite reverse; }
.main-cloud.c4 { width: 64px;  top: 150px; left: 78%; animation: cloudFloatB 5s   ease-in-out infinite reverse; }
.main-cloud.c5 { width: 104px; top: 40px;  left: 42%; animation: cloudFloatA 6s   ease-in-out infinite; }
.main-cloud.c6 { width: 70px;  top: 138px; left: 48%; animation: cloudFloatB 7.5s ease-in-out infinite reverse; }
@keyframes cloudFloatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(38px,-12px); } }
@keyframes cloudFloatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-32px,10px); } }

/* 카운트다운 바 (DATE & TIME · 타이머 · 입장 버튼) */
.main-info { padding: 28px 16px 6px; }
.cd-bar {
    max-width: 940px; margin: 0 auto;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    background: #fff; border: 1px solid rgba(43,183,179,0.18); border-radius: 16px;
    padding: 18px 28px;
    box-shadow: 0 14px 34px rgba(30,144,141,0.10);
}
.cd-left { flex-shrink: 0; }
.cd-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d);
}
.cd-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.cd-date { font-size: 22px; font-weight: 800; color: #1f2937; letter-spacing: -.01em; margin-top: 7px; }
.cd-divider { width: 1px; align-self: stretch; min-height: 48px; background: rgba(43,183,179,0.25); }
.cd-timer { display: flex; align-items: flex-start; gap: 8px; }
.cd-unit {
    min-width: 60px;
    display: flex; flex-direction: column; align-items: center;
    padding: 7px 9px;
    background: linear-gradient(180deg, #f4fbfb 0%, #ecf8f7 100%);
    border: 1px solid rgba(43,183,179,0.20); border-radius: 12px;
}
.cd-num { font-size: 30px; font-weight: 800; color: var(--teal-d); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd-lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #8aa0a0; margin-top: 7px; }
.cd-colon { font-size: 26px; font-weight: 700; color: #aadedb; padding-top: 8px; }
/* 생방송(LIVE) 상태 표시 */
.cd-live { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #e11d48; letter-spacing: -.01em; }
.cd-live-dot {
    width: 12px; height: 12px; border-radius: 50%; background: #e11d48;
    box-shadow: 0 0 0 0 rgba(225,29,72,0.5); animation: livePulse 1.4s ease-out infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(225,29,72,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(225,29,72,0); }
    100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
}
.cd-actions { margin-left: auto; display: flex; align-items: stretch; gap: 10px; }
.cd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 32px; border-radius: 12px;
    font-size: 17px; font-weight: 800; letter-spacing: .01em; text-decoration: none;
    background: linear-gradient(180deg, #2450b4 0%, #16357e 100%); color: #fff;
    box-shadow: 0 10px 22px rgba(22,53,126,0.26);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.cd-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.cd-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 28px rgba(22,53,126,0.34); }
.cd-btn.is-locked {
    background: #eef1f4; color: #aeb6bf; box-shadow: none;
    cursor: default; pointer-events: none;
}
/* 수료증 다운로드 — 활성 시 틸 아웃라인(잠금 시 위 is-locked 회색) */
.cd-btn-cert {
    background: #fff; color: var(--teal-d);
    border: 1.5px solid var(--teal); box-shadow: none;
}
.cd-btn-cert:hover { background: rgba(43,183,179,0.08); box-shadow: 0 6px 14px rgba(30,144,141,0.16); }

/* 콘텐츠 흰 패널 (프로세스 + 아젠다) */
.main-panel {
    flex: 1 0 auto;
    width: 100%; max-width: 940px; margin: 16px auto 46px;
    background: #fff; border: 1px solid rgba(43,183,179,0.14); border-radius: 24px;
    box-shadow: 0 22px 54px rgba(30,144,141,0.12), 0 4px 14px rgba(30,144,141,0.05);
    padding: 38px 34px 42px;
}

/* 진행 프로세스 */
.main-process { padding: 4px 0 10px; }

/* Agenda (프로세스 아래) */
.main-agenda { padding: 14px 0 0; }
.main-agenda .inv-banner { margin: 10px 0 22px; }
.main-agenda .inv-tablewrap { margin: 0; }
/* 아젠다 이미지 (관리자 업로드) — 패널 하단을 꽉 채우는 풀블리드 */
.main-agenda { padding: 0; margin: 24px -34px -42px; }
.agenda-img-wrap { line-height: 0; }
.agenda-img { display: block; width: 100%; height: auto; border: none; box-shadow: none; border-radius: 0 0 24px 24px; }
/* main.php: 패널에 아젠다만 → 상단까지 딱 붙임 */
.page-main .main-agenda { margin-top: -38px; }
.page-main .agenda-img { border-radius: 24px; }
.proc-title { text-align: center; font-size: 18px; font-weight: 800; color: var(--teal-d); letter-spacing: .02em; margin-bottom: 26px; }
.proc-steps { display: flex; align-items: flex-start; justify-content: center; gap: 6px; flex-wrap: wrap; max-width: 740px; margin: 0 auto; }
.proc-step { width: 132px; text-align: center; }
.proc-ico {
    width: 80px; height: 80px; margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f4fbfb 0%, #e7f6f5 100%);
    border: 2px solid var(--teal);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-d);
    box-shadow: 0 8px 18px rgba(30,144,141,0.16);
}
.proc-ico svg { width: 38px; height: 38px; stroke: var(--teal-d); }
.proc-num { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--teal); }
.proc-label { font-size: 14.5px; font-weight: 700; color: var(--txt); margin-top: 3px; line-height: 1.35; }
.proc-arrow { color: #9bd3d0; font-size: 26px; font-weight: 700; padding-top: 28px; }

@media (max-width: 620px) {
    .cd-bar { padding: 16px 18px; gap: 14px; }
    .cd-left { width: 100%; }
    .cd-divider { display: none; }
    .cd-timer { width: 100%; justify-content: space-between; }
    .cd-unit { min-width: 0; flex: 1; }
    .cd-num { font-size: 24px; }
    .cd-actions { margin-left: 0; width: 100%; flex-direction: column; }
    .cd-btn { width: 100%; justify-content: center; padding: 14px; }
    .main-panel { padding: 26px 14px 30px; margin: 12px auto 30px; border-radius: 18px; }
    .main-agenda { margin: 20px -14px -30px; }
    .agenda-img { border-radius: 0 0 18px 18px; }
    .page-main .main-agenda { margin-top: -26px; }
    .page-main .agenda-img { border-radius: 18px; }
    .proc-steps { gap: 2px; }
    .proc-step { width: 78px; }
    .proc-ico { width: 60px; height: 60px; }
    .proc-ico svg { width: 28px; height: 28px; }
    .proc-num { font-size: 10px; }
    .proc-label { font-size: 12.5px; }
    .proc-arrow { padding-top: 18px; font-size: 18px; }
}

@media (max-width: 760px) {
    .main-banner-inner { flex-direction: column; align-items: center; text-align: center; min-height: 0; padding: 30px 20px 0; gap: 6px; }
    .main-bn-text { padding-bottom: 6px; }
    .main-bn-text h1 .t1 { font-size: 46px; }
    .main-bn-text h1 .t2 { font-size: 38px; }
    .main-bn-meta { justify-content: center; font-size: 15px; margin-top: 16px; gap: 4px 16px; }
    .main-bn-illust img { height: 210px; }
    .main-cloud { display: none; }
    .main-enter { padding: 40px 16px; }
    .main-welcome { font-size: 21px; }
}

/* 시청 페이지(watch.php) 스타일은 watch.php 내부 <style> 에 인라인 정의 (Jeisys 룸 구조) */

/* ── 안내 카드 (시스템 가이드 / 문의) ── */
.guide-cards { width: 100%; max-width: 972px; margin: 16px auto 0; padding: 0 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.guide-card {
    flex: 1 1 0; min-width: 270px; min-height: 90px; display: flex; align-items: center; gap: 16px; text-align: left;
    text-decoration: none; color: inherit;
    padding: 16px 18px; border-radius: 16px; position: relative; overflow: hidden;
    background: linear-gradient(180deg,#ffffff,#f7fdfc);
    border: 1px solid rgba(43,183,179,0.18);
    box-shadow: 0 6px 18px rgba(30,144,141,.07); cursor: pointer; font: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.guide-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,var(--teal),var(--teal-d)); opacity:0; transition:opacity .16s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(30,144,141,.16); border-color: rgba(43,183,179,0.5); }
/* 이수증 발급 가능 시 강조 — 상태 조회로 실시간 부여 */
.guide-card.cert-ready { border-color: rgba(16,185,129,.55); box-shadow: 0 0 0 2px rgba(16,185,129,.18), 0 10px 22px rgba(16,185,129,.14); }
.guide-card:hover::before { opacity:1; }
.guide-ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(140deg,#4ecdc8 0%,var(--teal) 55%,var(--teal-d) 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(30,144,141,.30); }
.guide-ico svg { width: 28px; height: 28px; stroke: #fff; }
.guide-txt { flex: 1; display: flex; flex-direction: column; }
.guide-title { font-size: 16px; font-weight: 800; color: var(--txt); letter-spacing: -.01em; }
.guide-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.guide-arrow { flex-shrink: 0; display: flex; align-items: center; color: var(--teal); transition: transform .16s ease, color .16s ease; }
.guide-arrow svg { width: 20px; height: 20px; stroke: currentColor; }
.guide-card:hover .guide-arrow { transform: translateX(4px); color: var(--teal-d); }
.guide-card.is-disabled { cursor: default; opacity: .6; pointer-events: none; box-shadow: none; }
.guide-card.is-disabled .guide-ico { background: #c2cdd2; box-shadow: none; }
@media (max-width: 620px) { .guide-cards { flex-direction: column; } .guide-card { min-width: 0; } }

/* ── 안내 팝업 (시스템 가이드/문의 공통) ── */
.pop-modal { display:none; position:fixed; inset:0; z-index:660; background:rgba(15,28,40,.55); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); align-items:center; justify-content:center; padding:20px; }
.pop-modal.open { display:flex; animation:certFade .22s ease; }
.pop-card { background:#fff; border-radius:18px; width:100%; max-width:460px; max-height:86vh; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 26px 60px rgba(15,28,40,.32); animation:svPop .3s cubic-bezier(.16,.84,.44,1); }
.pop-head { padding:16px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #eef2f1; }
.pop-head-left { display:flex; align-items:center; gap:11px; }
.pop-head-ico { width:38px; height:38px; flex-shrink:0; border-radius:10px; background:linear-gradient(140deg,#4ecdc8,var(--teal),var(--teal-d)); display:flex; align-items:center; justify-content:center; }
.pop-head-ico svg { width:20px; height:20px; stroke:#fff; }
.pop-title { font-size:16px; font-weight:800; color:var(--txt); }
.pop-close { width:32px; height:32px; border:1px solid #e2e8f0; background:#fff; border-radius:8px; cursor:pointer; color:#94a3b8; font-size:19px; line-height:1; display:flex; align-items:center; justify-content:center; }
.pop-close:hover { border-color:#cbd5e1; color:#64748b; }
.pop-body { padding:20px 22px; overflow-y:auto; font-size:13.5px; color:#475569; line-height:1.75; }
.pop-body p { margin:0 0 12px; }
.pop-body ul { margin:0; padding-left:18px; }
.pop-body li { margin-bottom:7px; }
.pop-body b { color:var(--teal-d); font-weight:700; }
.pop-body .pop-note { margin:14px 0 0; padding-top:12px; border-top:1px solid #eef2f1; font-size:12px; color:var(--muted); }

/* ── 등록완료 모달 ── */
.done-modal { display:none; position:fixed; inset:0; z-index:650; background:rgba(15,28,40,.55); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); align-items:center; justify-content:center; padding:20px; }
.done-modal.open { display:flex; animation:certFade .22s ease; }
.done-card { background:#fff; border-radius:20px; width:100%; max-width:380px; padding:34px 28px 26px; text-align:center; box-shadow:0 26px 60px rgba(15,28,40,.32); animation:svPop .3s cubic-bezier(.16,.84,.44,1); }
.done-ico { width:64px; height:64px; margin:0 auto 18px; border-radius:50%; background:linear-gradient(180deg,#45c6c2,var(--teal)); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 22px rgba(30,144,141,.32); }
.done-ico svg { width:32px; height:32px; stroke:#fff; }
.done-title { font-size:17px; font-weight:800; color:var(--txt); line-height:1.5; letter-spacing:-.01em; }
.done-sub { font-size:13px; color:var(--muted); margin-top:10px; line-height:1.5; }
.done-btn { margin-top:22px; width:100%; padding:13px; border:none; border-radius:12px; background:linear-gradient(180deg,#38c3bf,var(--teal)); color:#fff; font-size:15px; font-weight:800; cursor:pointer; box-shadow:0 10px 22px rgba(30,144,141,.28); transition:transform .15s, filter .15s; }
.done-btn:hover { transform:translateY(-1px); filter:brightness(1.05); }

/* ── 수료증 모달 (고급 금장 액자) ── */
.cert-modal { display:none; position:fixed; inset:0; z-index:600; background:rgba(12,14,20,.74); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); align-items:center; justify-content:center; padding:26px; }
.cert-modal.open { display:flex; animation:certFade .25s ease; }
@keyframes certFade { from{opacity:0} to{opacity:1} }
.cert-modal-card { position:relative; width:100%; max-width:960px; background:transparent; animation:certPop .34s cubic-bezier(.16,.84,.44,1); }
@keyframes certPop { from{opacity:0; transform:translateY(16px) scale(.985)} to{opacity:1; transform:none} }

/* 금장 프레임 */
/* 진한 갈색 나무 질감 액자 */
.cert-frame {
    padding:20px; border-radius:5px;
    background:
        repeating-linear-gradient(90deg,
            rgba(0,0,0,0.14) 0px, rgba(0,0,0,0) 3px,
            rgba(255,225,180,0.05) 5px, rgba(0,0,0,0) 9px),       /* 나뭇결 라인 */
        linear-gradient(135deg, #4a2c16 0%, #6e421f 22%, #3a2210 48%, #5c351a 72%, #43280f 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255,214,160,0.22),                  /* 안쪽 얇은 하이라이트 */
        inset 0 0 0 7px rgba(38,20,8,0.50),                      /* 베벨(깊이) */
        inset 0 0 24px rgba(18,9,3,0.42),
        0 28px 60px rgba(0,0,0,0.50);
}
/* 매트(passe-partout) — 흰 여백 + 헤어라인 */
.cert-mat {
    padding:16px;
    background:#ffffff;
    box-shadow: inset 0 0 0 1px rgba(60,34,16,0.18);
}
.cert-canvas { width:100%; height:auto; display:block; box-shadow:0 2px 10px rgba(0,0,0,0.16); }

.cert-close {
    position:absolute; top:-16px; right:-16px; z-index:2;
    width:38px; height:38px; border-radius:50%; border:none; background:#fff; color:#475569;
    font-size:20px; line-height:1; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,0.4);
    transition:transform .15s, color .15s;
}
.cert-close:hover { color:#1e293b; transform:scale(1.06); }

.cert-actions { text-align:center; margin-top:20px; }
.cert-dl { display:inline-flex; align-items:center; gap:8px; padding:13px 34px; border:none; border-radius:11px; background:linear-gradient(180deg, #2450b4 0%, #16357e 100%); color:#fff; font-size:15px; font-weight:800; cursor:pointer; box-shadow:0 12px 26px rgba(22,53,126,.34); transition:transform .15s, box-shadow .15s, filter .15s; }
.cert-dl svg { width:18px; height:18px; stroke:#fff; }
.cert-dl:hover { transform:translateY(-1px); filter:brightness(1.08); }

@media (max-width:560px) {
    .cert-frame { padding:12px; }
    .cert-mat { padding:11px; }
    .cert-close { top:-12px; right:-12px; width:34px; height:34px; }
}

/* ── 풋터 (#2BB7B3) — 슬림, 화면 바닥 고정 ── */
.page-footer {
    position: relative; z-index: 1; width: 100%;
    background: var(--teal);
    color: #eafaf9;
    padding: 13px 24px;
    margin-top: 0;   /* card-wrap 의 margin:auto 가 바닥으로 밀어줌 */
}
.footer-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px 28px; flex-wrap: wrap;
}
.footer-logo-img { height: 24px; width: auto; display: block; opacity: .97; }
.footer-contacts { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #eafaf9; line-height: 1.5; }
.footer-contact b { font-weight: 700; letter-spacing: .01em; }
.footer-contact .muted { opacity: .82; }
.footer-contact svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }
@media (max-width: 560px) {
    .footer-inner { justify-content: center; }
    .footer-contacts { justify-content: center; gap: 4px 16px; }
}

/* ── 반응형 ── */
/* PC: 중앙 카드를 상단(로고 쪽)에 가깝게 */
@media (min-width: 861px) {
    body.page-index { padding-top: 70px; }
    .card-wrap { margin-top: 6vh; margin-bottom: auto; }
}
@media (max-width: 860px) {
    .card-wrap { flex-direction: column; align-items: stretch; max-width: 440px; transform: none; }
    .left-panel { width: 100%; padding: 44px 30px; }
    .left-panel .accent-line { left: 30px; right: 30px; }
    .right-panel { width: 100%; min-height: 200px; }
    .right-panel.has-image { width: 100%; border-left: none; border-top: 1px solid rgba(43,183,179,0.12); }
    .hero-image { max-width: 100%; max-height: 70vh; margin: 0 auto; }
    .illust-svg { width: 120px; margin-bottom: 16px; }
}
@media (max-width: 480px) {
    body.page-index { padding: 84px 12px 0; }
    .page-badge { display: none; }
    .page-logo { top: 14px; left: 14px; }
    .page-logo-img { height: 28px; }
    .left-panel { padding: 34px 22px; }
    .left-panel .accent-line { left: 22px; right: 22px; }
}
