/* =========================================
   힐링타임 디자인 시스템
   Deep Obsidian + Glassmorphism + Bento Grid
   색상 심리학 기반 전환율 최적화
   ========================================= */

/* === CSS 변수 (색상 심리학) === */
:root {
    /* 베이스 - 다크모드 통일 (로그인 전후 동일) */
    --bg-primary: #0D0D14;
    --bg-secondary: #1A1A2E;
    --bg-card: rgba(13, 13, 20, 0.45);

    /* 다크 톤 - 로그인 후: 프라이빗 공간 */
    --dark-bg: #0D0D14;
    --dark-surface: #1A1A2E;
    --dark-card: rgba(13, 13, 20, 0.45);

    /* 메인 포인트: 딥 로즈/버건디 → 고급감, 결제 전환 */
    --color-primary: #8B2252;
    --color-primary-light: #A63366;
    --color-primary-dark: #6B1A3F;

    /* 서브 포인트: 골드/샴페인 → 보상심리, 멤버십 */
    --color-gold: #C9A96E;
    --color-gold-light: #D4BC8A;
    --color-gold-dark: #A88B4A;

    /* CTA: 코랄 → 자연스러운 행동 유발 */
    --color-cta: #E8734A;
    --color-cta-hover: #D4623B;

    /* 성공: 소프트 그린 → 안심, 만족 */
    --color-success: #5B9A6B;

    /* 한정/VIP: 딥 퍼플 → 희소성 */
    --color-vip: #5B3A8C;

    /* 텍스트 - 다크모드 통일 */
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0B0;
    --text-light: #777;
    --text-white: #F5F5F5;

    /* 등급 컬러 */
    --grade-silver: #A8A8A8;
    --grade-gold: #C9A96E;

    /* Glassmorphism - 다크모드용 */
    --glass-bg: rgba(26, 26, 46, 0.4);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 16px;

    /* 그림자 - 다크모드용 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* 레이아웃 */
    --max-width: 1200px;
    --header-height: 72px;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* 폰트 */
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 36px;
    --font-size-3xl: 48px;
    --font-size-4xl: 64px;
    --line-height: 1.7;

    /* 전환 */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* === 로그인 후 다크 모드 === */
/* 다크모드: logged-in 불필요 - :root 기본값으로 통일 */

/* === 리셋 & 기본 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

/* === 페이지 전환 애니메이션 === */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.page-loading .page-transition {
    opacity: 1;
    pointer-events: all;
    /* 안전장치: 1초 후 자동으로 사라짐 (bfcache 백지 방지) */
    animation: autoHideTransition 0s 1s forwards;
}

@keyframes autoHideTransition {
    to { opacity: 0; pointer-events: none; }
}

/* 페이지 진입 fade-in */
.site-main {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 헤더 === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    background: rgba(13, 13, 20, 0.85);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.logo-sub {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* 네비게이션 */
.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 드롭다운 메뉴 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    padding: 8px 0;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--color-primary);
    background: rgba(139, 34, 82, 0.15);
}

/* CTA 네비 버튼 */
.nav-cta {
    background: linear-gradient(135deg, var(--color-cta), var(--color-primary));
    color: white !important;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 500;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 115, 74, 0.4);
}

/* 헤더 액션 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login, .btn-logout {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.btn-login:hover, .btn-logout:hover {
    color: var(--color-primary);
}

.btn-admin {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-gold);
    padding: 4px 12px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-admin:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--color-gold);
}

.user-greeting {
    font-size: var(--font-size-sm);
    color: var(--color-gold);
    font-weight: 500;
}

/* 역할 뱃지 — 힐아티스트 태그 스타일과 통일 (glass pill) */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-gold);
    letter-spacing: 0.3px;
}

/* 헤더 내 뱃지 — 소형 */
.btn-user .role-badge {
    margin-left: 6px;
    font-size: 10px;
    padding: 2px 8px;
}

/* 햄버거 메뉴 */
.btn-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.btn-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* 모바일 메뉴 열렸을 때 헤더 불투명 */
body.menu-open .site-header {
    background: #FFF8F0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.menu-open.logged-in .site-header {
    background: #0D0D14;
}

/* 모바일 메뉴 */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFF8F0;
    z-index: 1001;
    padding: 40px 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu {
    background: #0D0D14;
}

.mobile-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav a {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

/* 모바일 서브메뉴 */
.mobile-submenu-group {
    display: flex;
    flex-direction: column;
}

.mobile-submenu-toggle {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
}

.mobile-submenu-group.open .mobile-submenu {
    display: flex;
}

.mobile-submenu-group.open .mobile-submenu-toggle svg {
    transform: rotate(180deg);
}

.mobile-submenu a {
    font-size: var(--font-size-base) !important;
    color: var(--text-secondary) !important;
    padding: 6px 0 !important;
    border-bottom: none !important;
}

.mobile-submenu a:hover {
    color: var(--color-primary) !important;
}

.mobile-cta {
    background: linear-gradient(135deg, var(--color-cta), var(--color-primary));
    color: white !important;
    text-align: center;
    padding: 16px !important;
    border-radius: var(--radius);
    border-bottom: none !important;
    font-weight: 500;
}

/* === 전역 파티클 캔버스 (Seamless Canvas) === */
.global-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === 메인 콘텐츠 === */
.site-main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* === Glassmorphism 카드 === */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* === Bento Grid === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.bento-item {
    border-radius: var(--radius);
    overflow: hidden;
}

.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-md { grid-column: span 2; }
.bento-sm { grid-column: span 1; }

/* === 버튼 시스템 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 28px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    min-height: 48px; /* 터치 영역 */
}

/* CTA 버튼 - 골드 그라데이션 (결제/예약) */
.btn-cta {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 169, 110, 0.5);
}

/* 프라이머리 버튼 */
.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* 아웃라인 버튼 */
.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: #0D0D14;
}

/* === 등급 배지 === */
.badge-grade {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: white;
}

.badge-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: white;
}

.badge-vip {
    background: linear-gradient(135deg, var(--color-vip), #7B52B5);
    color: white;
}

/* === 잠금 콘텐츠 (VIP) === */
.locked-content {
    position: relative;
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    z-index: 10;
    filter: none;
    pointer-events: all;
}

.locked-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.locked-text {
    color: var(--color-gold);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* === 푸터 === */
.site-footer {
    background: transparent;
    color: var(--text-white);
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gold);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--color-gold);
}

.footer-col a {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: white;
}

.footer-business {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-business-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-business p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.7;
}

.footer-zero-tolerance {
    text-align: center;
    padding: 16px 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
}
.footer-zero-tolerance p {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    opacity: 0.6;
    text-transform: uppercase;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    color: var(--text-light);
}

.footer-legal a:hover {
    color: white;
}

/* === 유틸리티 === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 48px;
}

.text-gold { color: var(--color-gold); }
.text-primary { color: var(--color-primary); }
.text-vip { color: var(--color-vip); }

/* === 스크롤 Reveal 애니메이션 === */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === 커스텀 커서 (감정 캔버스) === */
.emotion-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.5s;
    mix-blend-mode: screen;
    opacity: 0.7;
}

.emotion-cursor.cursor-hover {
    width: 28px;
    height: 28px;
    opacity: 0.4;
    background: var(--color-primary);
}

.emotion-cursor.cursor-tension {
    background: #E85D4A;
    width: 10px;
    height: 10px;
}

.emotion-cursor.cursor-relaxation {
    background: #5B9A6B;
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.emotion-cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.15s ease, top 0.15s ease, opacity 0.3s;
    mix-blend-mode: screen;
    opacity: 0.3;
}

/* 커서 있을 때 기본 커서 숨김 */
body:has(.emotion-cursor) {
    cursor: none;
}

body:has(.emotion-cursor) a,
body:has(.emotion-cursor) button,
body:has(.emotion-cursor) [role="button"] {
    cursor: none;
}

/* 터치 디바이스에서 커서 숨김 */
@media (pointer: coarse) {
    .emotion-cursor,
    .emotion-cursor-trail {
        display: none !important;
    }
}

/* === 감정 상태 body 클래스 (배경 전환) === */
body.emotion-tension {
    --hero-glow-1: rgba(232, 93, 74, 0.45);
    --hero-glow-2: rgba(139, 34, 82, 0.30);
}

body.emotion-relaxation {
    --hero-glow-1: rgba(91, 154, 107, 0.40);
    --hero-glow-2: rgba(201, 169, 110, 0.25);
}

/* === 감정 CTA 배너 === */
.emotion-cta-banner {
    text-align: center;
    padding: 28px 24px !important;
    margin-top: 24px;
    border: 1px solid rgba(201, 169, 110, 0.3) !important;
    animation: emotionCtaGlow 4s ease-in-out infinite;
}

.emotion-cta-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.emotion-cta-sub {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--color-gold);
    text-transform: uppercase;
}

@keyframes emotionCtaGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(201, 169, 110, 0.15); }
}

/* === 시간대 body 클래스 (선택적 미세 조정) === */
body.time-morning .text-gold { color: #D4A855; }
body.time-evening .text-gold { color: #9B7DBF; }
body.time-night .text-gold { color: #7B9DBF; }

/* === 반응형 === */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --font-size-2xl: 30px;
        --font-size-3xl: 36px;
    }

    .main-nav {
        display: none;
    }

    .btn-menu {
        display: flex;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-lg, .bento-md {
        grid-column: span 1;
    }

    .bento-lg {
        grid-row: span 1;
    }

    .section {
        padding: 48px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 15px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }

    .bento-grid {
        padding: 0 16px;
        gap: 12px;
    }
}

/* =========================================
   유기체(Organic) 디자인 시스템 - 공통
   살아있는 듯한 생명력, 물 흐르듯 자연스러운 흐름
   전형적 직선 그리드 탈피 → 곡선, 비정형, 호흡
   ========================================= */

/* --- 유기체 배경 오브: Seamless Canvas에서는 파티클이 대체 --- */

/* --- 섹션: Seamless Canvas (구분선 제거) --- */
.section {
    position: relative;
}

/* --- 유기체 카드: 곡선 보더, 호흡, 내부 글로우 --- */
.glass-card {
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 34, 82, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.glass-card:hover::after {
    opacity: 1;
}

/* --- 유기체 섹션 타이틀: 필기체 느낌의 언더라인 --- */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    border-radius: 2px;
    opacity: 0.6;
}

/* 중앙 정렬 타이틀은 언더라인도 중앙 */
.section-title[style*="text-align:center"]::after,
.bento-section .section-title::after,
.google-reviews-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- 유기체 흐름 연결선 (섹션 간) --- */
.organic-flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.organic-flow-connector.visible {
    opacity: 1;
}

.organic-flow-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    opacity: 0.3;
}

.organic-flow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.5;
    animation: organicPulse 3s ease-in-out infinite;
}

/* --- 키프레임 --- */
@keyframes organicDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes organicDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -20px) scale(1.08); }
    66% { transform: translate(-15px, 25px) scale(0.92); }
}

@keyframes organicPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes organicReveal {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes subtleBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes cardBreathe {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 14px 45px rgba(0, 0, 0, 0.12), 0 0 20px rgba(139, 34, 82, 0.04);
    }
}

@keyframes quoteLinePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* --- 유기체 reveal --- */
.organic-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.organic-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- 푸터: Seamless Canvas (gradient fade 제거) --- */

/* --- CTA 버튼 유기체 빛 반사 --- */
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-cta:hover::after {
    left: 100%;
}

/* --- 유기체 다크모드 카드 그림자 --- */
.glass-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 169, 110, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after { animation: none; }
    .organic-reveal { opacity: 1; transform: none; transition: none; }
    .glass-card { transition: none; }
    .organic-flow-connector { opacity: 1; }
}

/* =========================================
   팝업/배너 시스템
   ========================================= */

/* 팝업 오버레이 */
.site-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.site-popup {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-height: 90vh;
    overflow-y: auto;
}
.site-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}
.site-popup-close:hover { background: rgba(0,0,0,0.8); }
.site-popup-content {
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
}
.site-popup-footer {
    padding: 12px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 배너 (상단/하단) */
.site-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9990;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.site-banner-top { top: 0; }
.site-banner-bottom { bottom: 0; }
.site-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.site-banner-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0 4px;
    flex-shrink: 0;
}
.site-banner-close:hover { opacity: 1; }
