/* 로컬씨엠에스 공용 디자인 시스템 — 모든 페이지에서 로드 */
/* =========================================================
   Design System — 로컬씨엠에스
   8px 기반 간격 · Slate 무채색 팔레트 · 단일 Accent(Blue)
   ========================================================= */
:root {
    /* Accent */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-active: #1e40af;
    --accent-soft: #eff6ff;
    --accent-soft-2: #dbeafe;
    --accent-ring: rgba(37, 99, 235, 0.28);

    /* Slate */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic */
    --bg: #ffffff;
    --bg-subtle: var(--slate-50);
    --bg-muted: var(--slate-100);
    --border: var(--slate-200);
    --border-strong: var(--slate-300);
    --text: var(--slate-900);
    --text-2: var(--slate-600);
    --text-3: var(--slate-500);
    --text-muted: var(--slate-400);   /* 장식용 아이콘 전용 (본문 텍스트 금지) */

    /* 반전(어두운) 서피스: 연락처 박스, 로그인 버튼, 플로팅 버튼 등 */
    --inverse-bg: var(--slate-900);
    --inverse-bg-hover: var(--slate-700);
    --inverse-text: #ffffff;
    --inverse-text-2: var(--slate-400);
    --header-bg: rgba(255, 255, 255, 0.85);
    --overlay: rgba(15, 23, 42, 0.6);
    --pattern-dot: var(--slate-200);
    --kakao: #FEE500;
    --kakao-hover: #F5DC00;
    --kakao-text: #191919;
    color-scheme: light;

    --success: #16a34a;  --success-soft: #f0fdf4;  --success-border: #bbf7d0;  --success-text: #15803d;
    --warning: #d97706;  --warning-soft: #fffbeb;  --warning-border: #fde68a;  --warning-text: #b45309;
    --danger:  #dc2626;  --danger-soft:  #fef2f2;  --danger-border:  #fecaca;  --danger-text:  #b91c1c;

    /* Legacy alias (하위 호환) */
    --blue-600: var(--accent);
    --blue-700: var(--accent-hover);
    --blue-800: var(--accent-active);
    --blue-50: var(--accent-soft);
    --gray-50: var(--slate-50);
    --gray-100: var(--slate-100);
    --gray-200: var(--slate-200);
    --gray-300: var(--slate-300);
    --gray-400: var(--slate-400);
    --gray-500: var(--slate-500);
    --gray-600: var(--slate-600);
    --gray-700: var(--slate-700);
    --gray-800: var(--slate-800);
    --gray-900: var(--slate-900);

    /* Spacing (8px scale) */
    --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
    --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

    /* Typography */
    --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 15px;
    --fs-lg: 16px; --fs-xl: 18px; --fs-2xl: 20px; --fs-3xl: 24px;
    --fs-4xl: 32px; --fs-5xl: 44px;

    /* Radius */
    --r-sm: 6px; --r: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 20px;

    /* Shadow (부드럽고 낮은 그림자) */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(15, 23, 42, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur: 160ms;
    --dur-slow: 240ms;

    /* Layout */
    --header-h: 64px;
    --container: 1200px;
    --gutter: 24px;
}

/* ---------- Dark mode ---------- */
/* 시스템 다크 + 사용자 미지정, 또는 사용자가 명시적으로 dark 선택 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { 
        color-scheme: dark;
        --bg: #0b1220;
        --bg-subtle: #0f172a;
        --bg-muted: #1e293b;
        --border: #1f2a3d;
        --border-strong: #334155;
        --text: #f1f5f9;
        --text-2: #cbd5e1;
        --text-3: #94a3b8;
        --text-muted: #64748b;

        --accent: #3b82f6;
        --accent-hover: #60a5fa;
        --accent-active: #2563eb;
        --accent-soft: rgba(59, 130, 246, 0.14);
        --accent-soft-2: rgba(59, 130, 246, 0.32);
        --accent-ring: rgba(96, 165, 250, 0.35);

        --success: #22c55e;  --success-soft: rgba(34, 197, 94, 0.14);  --success-border: rgba(34, 197, 94, 0.35);  --success-text: #4ade80;
        --warning: #f59e0b;  --warning-soft: rgba(245, 158, 11, 0.14); --warning-border: rgba(245, 158, 11, 0.35); --warning-text: #fbbf24;
        --danger:  #ef4444;  --danger-soft:  rgba(239, 68, 68, 0.14);  --danger-border:  rgba(239, 68, 68, 0.35);  --danger-text:  #f87171;

        --inverse-bg: #f1f5f9;
        --inverse-bg-hover: #e2e8f0;
        --inverse-text: #0f172a;
        --inverse-text-2: #475569;
        --header-bg: rgba(11, 18, 32, 0.8);
        --overlay: rgba(2, 6, 23, 0.7);
        --pattern-dot: #263248;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
        --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.7);

        /* 다크에서는 slate 스케일을 반전시켜 직접 참조도 대체로 자연스럽게 */
        --slate-50: #0f172a;
        --slate-100: #1e293b;
        --slate-200: #263248;
        --slate-300: #334155;
        --slate-400: #64748b;
        --slate-500: #94a3b8;
        --slate-600: #cbd5e1;
        --slate-700: #e2e8f0;
        --slate-800: #f1f5f9;
        --slate-900: #f8fafc;
     }
}
:root[data-theme="dark"] { 
        color-scheme: dark;
        --bg: #0b1220;
        --bg-subtle: #0f172a;
        --bg-muted: #1e293b;
        --border: #1f2a3d;
        --border-strong: #334155;
        --text: #f1f5f9;
        --text-2: #cbd5e1;
        --text-3: #94a3b8;
        --text-muted: #64748b;

        --accent: #3b82f6;
        --accent-hover: #60a5fa;
        --accent-active: #2563eb;
        --accent-soft: rgba(59, 130, 246, 0.14);
        --accent-soft-2: rgba(59, 130, 246, 0.32);
        --accent-ring: rgba(96, 165, 250, 0.35);

        --success: #22c55e;  --success-soft: rgba(34, 197, 94, 0.14);  --success-border: rgba(34, 197, 94, 0.35);  --success-text: #4ade80;
        --warning: #f59e0b;  --warning-soft: rgba(245, 158, 11, 0.14); --warning-border: rgba(245, 158, 11, 0.35); --warning-text: #fbbf24;
        --danger:  #ef4444;  --danger-soft:  rgba(239, 68, 68, 0.14);  --danger-border:  rgba(239, 68, 68, 0.35);  --danger-text:  #f87171;

        --inverse-bg: #f1f5f9;
        --inverse-bg-hover: #e2e8f0;
        --inverse-text: #0f172a;
        --inverse-text-2: #475569;
        --header-bg: rgba(11, 18, 32, 0.8);
        --overlay: rgba(2, 6, 23, 0.7);
        --pattern-dot: #263248;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
        --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.7);

        /* 다크에서는 slate 스케일을 반전시켜 직접 참조도 대체로 자연스럽게 */
        --slate-50: #0f172a;
        --slate-100: #1e293b;
        --slate-200: #263248;
        --slate-300: #334155;
        --slate-400: #64748b;
        --slate-500: #94a3b8;
        --slate-600: #cbd5e1;
        --slate-700: #e2e8f0;
        --slate-800: #f1f5f9;
        --slate-900: #f8fafc;
     }

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
    font-size: var(--fs-md);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    letter-spacing: -0.01em;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
:root[data-theme="dark"] .logo img, :root[data-theme="dark"] .promo-popup-img { filter: none; }
a { color: inherit; }
button { font-family: inherit; }
ul { list-style: none; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

::selection { background: var(--accent-soft-2); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    min-height: 44px;
}

.logo img { height: 26px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    margin-right: 0;
}

.nav a {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--r);
    white-space: nowrap;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav a:hover { color: var(--text); background: var(--bg-muted); }
.nav a.active { color: var(--text); font-weight: 600; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.header-link {
    padding: 6px 8px;
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--r);
    white-space: nowrap;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.header-link:hover { color: var(--text); background: var(--bg-muted); }

.header-login {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-left: var(--sp-1);
    padding: 0 var(--sp-3);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--inverse-text);
    background: var(--inverse-bg);
    border-radius: var(--r);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.header-login:hover { background: var(--inverse-bg-hover); }
.header-login:active { transform: scale(0.97); }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -10px;
    background: none;
    border: none;
    border-radius: var(--r);
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
    transition: background-color var(--dur) var(--ease);
}

.menu-toggle:hover { background: var(--bg-muted); }

/* 테마 토글 */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 34px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--r);
    color: var(--text-2);
    font-size: 15px;
    cursor: pointer;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--text); background: var(--bg-muted); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.mobile-menu .theme-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; padding: 0 var(--sp-3);
    font-size: var(--fs-lg); font-weight: 500; color: var(--text-2);
}
.mobile-menu .theme-toggle-row .theme-toggle { width: 40px; height: 40px; border-color: var(--border); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    height: calc(100dvh - var(--header-h));
    background: var(--bg);
    z-index: 99;
    padding: var(--sp-3) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
}

.mobile-menu.open { display: flex; animation: menuIn var(--dur-slow) var(--ease); }

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-height: 48px;
    padding: 0 var(--sp-3);
    font-size: var(--fs-lg);
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--r-md);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.mobile-menu a:hover,
.mobile-menu a.active { background: var(--bg-muted); color: var(--text); }

.mobile-menu a i {
    width: 20px;
    text-align: center;
    font-size: var(--fs-base);
    color: var(--text-muted);
}

.mobile-menu a.active i { color: var(--accent); }

.mobile-menu-divider { height: 1px; background: var(--border); margin: var(--sp-2) 0; }

.mobile-menu .btn-login-mobile {
    justify-content: center;
    margin-top: var(--sp-2);
    font-weight: 600;
    color: var(--inverse-text);
    background: var(--inverse-bg);
}

.mobile-menu .btn-login-mobile i { color: var(--inverse-text); opacity: 0.8; width: auto; }
.mobile-menu .btn-login-mobile:hover { background: var(--inverse-bg-hover); color: var(--inverse-text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 44px;
    padding: 0 var(--sp-5);
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--r-md);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}

.btn i { font-size: 0.93em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-sm); }
.btn-primary:active { background: var(--accent-active); }

.btn-outline { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: var(--border-strong); background: var(--bg-subtle); }

.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--accent-soft); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }

/* ---------- Section primitives ---------- */
.section-header { text-align: center; margin-bottom: var(--sp-12); }

.section-label,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: var(--sp-4);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.section-description {
    margin-top: var(--sp-3);
    font-size: var(--fs-lg);
    color: var(--text-3);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer { padding: var(--sp-16) 0 calc(var(--sp-16) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg); }

.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-8); }

.footer-brand { font-size: var(--fs-xl); font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: var(--sp-3); }
.footer-info { font-size: var(--fs-base); color: var(--text-3); line-height: 1.8; }

.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--fs-base); color: var(--text-2); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--text); }

.footer-sns { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer-sns a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    color: var(--text-2);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-decoration: none;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.footer-sns a:hover { color: var(--text); background: var(--bg); border-color: var(--border-strong); }
.footer-sns .sns-ig { font-size: 16px; }
.footer-sns .sns-blog { font-size: 11px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Floating buttons ---------- */
.floating-buttons {
    position: fixed;
    right: var(--sp-6);
    bottom: calc(var(--sp-6) + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: var(--sp-3);
    z-index: 98;
}

.floating-btn {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.floating-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.floating-btn:active { transform: scale(0.96); }
.floating-btn i { font-size: 22px; }
.floating-remote { background: var(--inverse-bg); }
.floating-remote i { color: var(--inverse-text); }
.floating-remote:hover { background: var(--inverse-bg-hover); }
.floating-kakao { background: var(--kakao); }
.floating-kakao i { color: var(--kakao-text); }
.floating-kakao:hover { background: var(--kakao-hover); }

/* ---------- Forms (shared) ---------- */
.form-group { margin-bottom: var(--sp-5); }
.form-group label { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--text-2); margin-bottom: var(--sp-2); }
.form-group input, .form-group textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px var(--sp-4);
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.form-group textarea { resize: vertical; }
.form-submit { width: 100%; min-height: 48px; font-size: var(--fs-lg); font-weight: 600; color: #fff; background: var(--accent); border: none; border-radius: var(--r-md); cursor: pointer; transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.form-submit:hover { background: var(--accent-hover); }
.form-submit:active { transform: scale(0.99); }

/* ---------- Promo popup ---------- */
.promo-popup-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 2000;
    background: var(--overlay);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: var(--sp-5);
    align-items: center; justify-content: center;
}
.promo-popup-overlay.show { display: flex; }
.promo-popup {
    display: flex; flex-direction: column;
    width: 100%; max-width: 420px; max-height: 92dvh;
    background: var(--bg);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.promo-popup-img { width: 100%; height: auto; max-height: calc(92dvh - 52px); object-fit: contain; }
.promo-popup-foot { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) var(--sp-4); background: var(--inverse-bg); flex-shrink: 0; }
.promo-popup-foot label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: var(--fs-sm); color: var(--inverse-text); cursor: pointer; user-select: none; }
.promo-popup-foot input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.promo-popup-close { min-height: 32px; padding: 0 var(--sp-2); background: none; border: none; color: var(--inverse-text); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; border-radius: var(--r-sm); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.promo-popup-close:hover { opacity: 0.85; background: var(--inverse-bg-hover); }

/* ---------- Page header (서브페이지 공용) ---------- */
.page-header {
    position: relative;
    padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-12);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--pattern-dot) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
    opacity: 0.7; pointer-events: none;
}
.page-header .container { position: relative; }
.page-header-label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; margin-bottom: var(--sp-4);
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.page-header h1, .page-title {
    font-size: var(--fs-5xl); font-weight: 800; color: var(--text);
    letter-spacing: -0.04em; line-height: 1.2; margin-bottom: var(--sp-4);
}
.page-header p, .page-desc { font-size: var(--fs-xl); color: var(--text-3); line-height: 1.7; max-width: 640px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--text-3); }
.breadcrumb a { color: var(--text-3); text-decoration: none; transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i { font-size: 10px; color: var(--text-muted); }
.breadcrumb span:last-child { color: var(--text-2); font-weight: 500; }

/* 공용 콘텐츠 프리미티브 */
.section { padding: var(--sp-24) 0; }
.section-bg, .section.section-bg { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.surface { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: var(--fs-xs); font-weight: 600; border-radius: 999px; background: var(--bg-muted); color: var(--text-2); border: 1px solid var(--border); }
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft-2); }
.badge-success { background: var(--success-soft); color: var(--success-text); border-color: var(--success-border); }
.badge-warning { background: var(--warning-soft); color: var(--warning-text); border-color: var(--warning-border); }
.badge-danger { background: var(--danger-soft); color: var(--danger-text); border-color: var(--danger-border); }
.callout { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.7; border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text-2); }
.callout > i { margin-top: 4px; flex-shrink: 0; font-size: var(--fs-base); color: var(--text-2); }
.callout strong { color: var(--text); }
.callout-info { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.callout-info > i { color: var(--accent); }
.callout-warning { background: var(--warning-soft); border-color: var(--warning-border); color: var(--warning-text); }
.callout-warning > i { color: var(--warning); }
.callout-danger { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger-text); }
.callout-danger > i { color: var(--danger); }

/* 공용 폼 컨트롤 (select / checkbox / radio) */
.form-group select {
    width: 100%; min-height: 44px; padding: 10px var(--sp-4); font-size: 16px; font-family: inherit;
    color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.form-group input[type="checkbox"], .form-group input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--accent); }
.form-hint { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.form-error { margin-top: 6px; font-size: var(--fs-xs); color: var(--danger-text); }

/* 공용 테이블 */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th { padding: var(--sp-3) var(--sp-4); text-align: left; font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); background: var(--bg-subtle); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: var(--sp-3) var(--sp-4); color: var(--text-2); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background-color var(--dur) var(--ease); }
.table tbody tr:hover td { background: var(--bg-subtle); }

@media (max-width: 768px) {
    .page-header { padding: calc(var(--header-h) + var(--sp-10)) 0 var(--sp-8); }
    .page-header h1, .page-title { font-size: 30px; }
    .page-header p, .page-desc { font-size: var(--fs-md); }
    .section { padding: var(--sp-16) 0; }
}

/* ---------- Responsive (shared) ---------- */
@media (max-width: 1024px) {
    .nav, .header-actions { display: none; }
    .menu-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; --gutter: 16px; }
    body { font-size: var(--fs-base); }
    .logo { font-size: var(--fs-lg); }
    .logo img { height: 22px; }
    .section-header { margin-bottom: var(--sp-8); }
    .section-title { font-size: 26px; }
    .section-description { font-size: var(--fs-md); }
    .footer { padding-top: var(--sp-10); }
    .footer-inner { flex-direction: column; gap: var(--sp-6); }
    .floating-buttons { right: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom)); gap: var(--sp-2); }
    .floating-btn { width: 50px; height: 50px; }
    .floating-btn i { font-size: 20px; }
    .promo-popup-overlay { padding: var(--sp-4); }
}

