/* ==========================================================================
   글로벌 CSS 디자인 시스템 (Pretendard & Vanilla CSS)
   ========================================================================== */

/* 1. 디자인 토큰 및 변수 정의 */
:root {
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    
    /* 기본 인터페이스 컬러 (대시보드 및 랜딩용) */
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-border: #e9ecef;
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-primary-light: #eff6ff;
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    
    /* 폰 미리보기 / 프로필 공통 변수 */
    --profile-bg: #ffffff;
    --profile-text: #111827;
    --profile-muted: #4b5563;
    --profile-accent: #3b82f6;
    --profile-accent-hover: #2563eb;
    --profile-accent-light: #eff6ff;
    --profile-card-bg: #f3f4f6;
    --profile-border: #e5e7eb;

    /* 그림자 & 둥글기 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* 전환 효과 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. 테마별 변수 재정의 */
/* [테마 1] 럭셔리 골드 (Dark & Luxury) */
.theme-gold {
    --profile-bg: #121212;
    --profile-text: #f3f4f6;
    --profile-muted: #9ca3af;
    --profile-accent: #d4af37; /* Metallic Gold */
    --profile-accent-hover: #b8901c;
    --profile-accent-light: rgba(212, 175, 55, 0.1);
    --profile-card-bg: #1e1e1e;
    --profile-border: #2e2e2e;
}

/* [테마 2] 모던 인디고 (Light & Tech) */
.theme-indigo {
    --profile-bg: #f0f4f8;
    --profile-text: #0f172a;
    --profile-muted: #475569;
    --profile-accent: #4f46e5; /* Indigo */
    --profile-accent-hover: #4338ca;
    --profile-accent-light: #e0e7ff;
    --profile-card-bg: #ffffff;
    --profile-border: #e2e8f0;
}

/* [테마 3] 에메랄드 포레스트 (Nature & Eco) */
.theme-forest {
    --profile-bg: #f4f6f3;
    --profile-text: #1b2e22;
    --profile-muted: #536b5c;
    --profile-accent: #15803d; /* Forest Green */
    --profile-accent-hover: #166534;
    --profile-accent-light: #dcfce7;
    --profile-card-bg: #ffffff;
    --profile-border: #e8ede9;
}

/* 기본 리셋 및 글로벌 스타일 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    font-size: 15px;
    transition: var(--transition-fast);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
    outline: none;
}

.hide {
    display: none !important;
}

/* 유틸리티 버튼 스타일 */
.btn-primary-sm {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}
.btn-primary-sm:hover {
    background-color: var(--color-primary-hover);
}

.btn-primary-lg {
    background-color: var(--color-primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow-md);
}
.btn-primary-lg:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary-block {
    display: block;
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.btn-primary-block:hover {
    background-color: var(--color-primary-hover);
}

.btn-outline-sm {
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}
.btn-outline-sm:hover {
    background-color: var(--color-bg);
}

.btn-text {
    color: var(--color-text);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
}
.btn-text:hover {
    color: var(--color-primary);
}

.btn-text-sm {
    color: var(--color-text-muted);
    font-size: 14px;
    padding: 6px 10px;
}
.btn-text-sm:hover {
    color: var(--color-danger);
}

/* ==========================================================================
   1. 랜딩 페이지 스타일
   ========================================================================== */
.app-view {
    display: none;
    min-height: 100vh;
}
.app-view.active {
    display: block;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text .badge {
    display: inline-block;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-text .highlight {
    color: var(--color-primary);
}

.hero-text p {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    margin-bottom: 30px;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-features li {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-features li i {
    color: var(--color-primary);
}

/* 스마트폰 목업 스타일 */
.phone-mockup {
    width: 320px;
    height: 640px;
    background-color: #000000;
    border: 12px solid #222222;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
    background-color: #222222;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    position: relative;
    overflow-y: auto;
}
.phone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mockup-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mockup-header {
    background-color: #ffffff;
    padding: 15px 10px 5px;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}
.mockup-body {
    flex: 1;
    overflow-y: auto;
}

/* ==========================================================================
   2. 회원가입 / 로그인 모달형 페이지
   ========================================================================== */
#auth-view.active {
    display: flex;
}
#auth-view {
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0.05) 90%);
}

.auth-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: var(--color-text-muted);
}
.btn-close:hover {
    color: var(--color-text);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-header .logo {
    justify-content: center;
    margin-bottom: 15px;
}
.auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}
.auth-header p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.input-wrapper {
    position: relative;
}
.input-wrapper input {
    padding-left: 45px;
}
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

/* ==========================================================================
   3. 대시보드 (편집기) 레이아웃
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}
#user-display-name {
    font-weight: 700;
}

#dashboard-view {
    background-color: var(--color-bg);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: calc(100vh - 127px); /* 헤더(67px) + 마진 상하(60px) 고려 */
    max-width: 1300px;
    width: 92%; /* 양옆의 최소 여백 보장 */
    margin: 30px auto;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

/* 왼쪽 편집기 패널 */
.editor-pane {
    padding: 40px;
    overflow-y: auto;
    background-color: var(--color-surface);
    border-right: 1px solid var(--color-border);
}

.section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    margin-top: 30px;
}
.section-title:first-child {
    margin-top: 0;
}
.section-title h3 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.required {
    color: var(--color-danger);
}

.help-text {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* 프로필 이미지 업로더 */
.profile-pic-uploader {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar-preview-container {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-border);
    background-color: var(--color-bg);
}
.avatar-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 어필 포인트 */
.appeal-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 브로셔 이미지 업로더 박스 */
.image-uploader-box {
    width: 100%;
}
.uploader-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    background-color: var(--color-primary-light);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}
.uploader-dropzone:hover {
    background-color: rgba(59, 130, 246, 0.15);
}
.uploader-dropzone i {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.uploader-dropzone span {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.uploader-dropzone p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 브로셔 프리뷰 썸네일 리스트 */
.brochure-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.brochure-thumb-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
}
.brochure-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-around;
    padding: 4px;
}
.thumb-actions button {
    color: #ffffff;
    font-size: 12px;
    padding: 2px 6px;
}
.thumb-actions button:hover {
    color: var(--color-primary);
}
.thumb-actions .btn-delete-thumb:hover {
    color: var(--color-danger);
}

/* 레이아웃 선택기 */
.layout-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}
.layout-option {
    cursor: pointer;
}
.layout-option input {
    display: none;
}
.layout-card {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    background-color: var(--color-surface);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.layout-card i {
    font-size: 24px;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}
.layout-card strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text);
}
.layout-card p {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
    word-break: keep-all;
}
.layout-option input:checked + .layout-card {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}
.layout-option input:checked + .layout-card i {
    color: var(--color-primary);
}
.layout-option input:checked + .layout-card strong {
    color: var(--color-primary);
}

/* 테마 선택기 */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.theme-option input {
    display: none;
}
.theme-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    transition: var(--transition-fast);
}
.theme-option input:checked + .theme-preview {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.theme-gold { background: linear-gradient(135deg, #121212 50%, #d4af37 50%); }
.theme-indigo { background: linear-gradient(135deg, #f0f4f8 50%, #4f46e5 50%); }
.theme-forest { background: linear-gradient(135deg, #f4f6f3 50%, #15803d 50%); }

/* 고유주소 식별자 인풋 */
.slug-input-wrapper {
    display: flex;
    align-items: center;
}
.domain-prefix {
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px;
    white-space: nowrap;
}
.slug-input-wrapper input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.editor-actions {
    margin-top: 40px;
}

/* 오른쪽 실시간 모바일 프리뷰 패널 */
.preview-pane {
    background-color: var(--color-bg);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    overflow-y: auto;
}
.preview-sticky {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.preview-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* ==========================================================================
   4. 공개 프로필 뷰어 (공개 페이지 및 프리뷰 공용)
   ========================================================================== */
.profile-page-rendered {
    background-color: var(--profile-bg);
    color: var(--profile-text);
    min-height: 100%;
    width: 100%;
    position: relative;
    padding-bottom: 75px; /* 하단바용 여백 */
    display: flex;
    flex-direction: column;
}

/* 프로필 헤더 */
.profile-header-card {
    background-color: var(--profile-card-bg);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--profile-border);
    position: relative;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--profile-accent);
    box-shadow: var(--shadow-md);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-site-tag {
    display: inline-block;
    background-color: var(--profile-accent-light);
    color: var(--profile-accent);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.03);
}

.profile-name-text {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}
.profile-title-text {
    font-size: 13px;
    color: var(--profile-muted);
    margin-bottom: 12px;
}

.profile-slogan-box {
    background-color: var(--profile-bg);
    border: 1px solid var(--profile-border);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 10px;
    word-break: keep-all;
}

/* 강점 리스트 */
.profile-strengths-section {
    padding: 20px;
}
.profile-strengths-section h4 {
    font-size: 14px;
    color: var(--profile-muted);
    margin-bottom: 10px;
}
.strengths-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.strength-card {
    background-color: var(--profile-card-bg);
    border: 1px solid var(--profile-border);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.strength-card i {
    color: var(--profile-accent);
}

/* ==========================================================================
   신규 레이아웃 관련 스타일 (탑 커버형 & 링크 목록형)
   ========================================================================== */

/* 탑 커버 이미지 배너 */
.profile-cover-banner {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}
.profile-cover-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 커버 이미지 플레이스홀더 (기본 빌딩 이미지 느낌) */
.profile-cover-banner .cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--profile-accent) 0%, var(--profile-bg) 100%);
    opacity: 0.15;
}

/* 탑 커버형 아바타 오버랩 스타일 */
.layout-cover .profile-header-card {
    padding-top: 10px; /* 기존 상단 여백 축소 */
}
.layout-cover .profile-avatar {
    margin-top: -75px; /* 배너 위로 아바타를 겹침 */
    border: 4px solid var(--profile-card-bg);
    position: relative;
    z-index: 10;
}

/* 링크 목록형 알약형 버튼 리스트 스타일 */
.profile-link-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
}
.profile-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    text-decoration: none !important;
}
.profile-link-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.profile-link-item i.link-item-icon {
    position: absolute;
    left: 20px;
    font-size: 18px;
}

/* 링크별 스타일링 */
.link-call {
    background-color: var(--profile-accent);
    color: #ffffff !important;
}
.link-call:hover {
    background-color: var(--profile-accent-hover);
}
.link-sms {
    background-color: var(--profile-card-bg);
    color: var(--profile-text) !important;
    border: 1px solid var(--profile-border);
}
.link-sms:hover {
    background-color: var(--profile-bg);
}
.link-kakao {
    background-color: #FEE500;
    color: #181600 !important;
}
.link-kakao:hover {
    background-color: #Fada0a;
}
.link-custom {
    background-color: var(--profile-card-bg);
    color: var(--profile-text) !important;
    border: 1px solid var(--profile-border);
}

/* 분양 정보 스크롤러 */
.profile-brochures-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.profile-brochures-section h4 {
    font-size: 14px;
    color: var(--profile-muted);
    padding: 10px 20px;
}
.brochures-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.brochures-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-bottom: 1px solid var(--profile-border);
}

/* SNS 주소 버튼 */
.profile-sns-section {
    padding: 20px;
    text-align: center;
}
.btn-kakao-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FEE500;
    color: #181600;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
}
.btn-kakao-chat:hover {
    background-color: #Fada0a;
}

/* 하단 고정 전화/문자 버튼 바 */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    display: flex;
    padding: 12px 20px;
    gap: 10px;
    z-index: 1000;
}
/* 실시간 미리보기 모드 안의 하단바는 fixed가 아닌 absolute로 phone-mockup 내부 바닥에 고정됨 */
.phone-screen .sticky-cta-bar {
    position: absolute;
    background-color: var(--profile-bg);
    border-top: 1px solid var(--profile-border);
}

.cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    text-align: center;
}
.cta-call {
    background-color: var(--profile-accent);
    color: #ffffff;
}
.cta-call:hover {
    background-color: var(--profile-accent-hover);
}
.cta-sms {
    background-color: var(--profile-card-bg);
    color: var(--profile-text);
    border: 1px solid var(--profile-border);
}
.cta-sms:hover {
    background-color: var(--profile-bg);
}

/* ==========================================================================
   5. 모달, 토스트, 스피너 등 글로벌 컴포넌트
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-message {
    background-color: rgba(0,0,0,0.85);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.3s ease, fadeOutDown 0.3s ease 2.7s forwards;
    white-space: nowrap;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 30px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal-card h3 {
    font-size: 20px;
    font-weight: 800;
}
.share-url-box {
    display: flex;
    gap: 10px;
}
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.spinner-box {
    text-align: center;
    color: #ffffff;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.2);
    border-top: 5px solid var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   6. 반응형 대응 (Responsive Design)
   ========================================================================== */

/* 태블릿 이하 (랜딩 페이지 레이아웃 조정 및 편집기 반응형) */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-features {
        align-items: center;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr; /* 편집기 폼을 가로 전체로 */
        height: auto;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .preview-pane {
        display: none; /* 태블릿/모바일에서는 우측 프리뷰 패널 제거 */
    }
}

/* 스마트폰 전용 대응 */
@media (max-width: 576px) {
    .landing-header {
        padding: 15px 4%;
    }
    .hero-text h1 {
        font-size: 30px;
    }
    .editor-pane {
        padding: 20px 15px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .theme-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .slug-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .domain-prefix {
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        border-right: 1px solid var(--color-border);
        border-bottom: none;
    }
    .slug-input-wrapper input {
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }
    .auth-card {
        padding: 30px 20px;
        margin: 15px;
    }
}
