/* ===== RESET & VARIABLES (Modern Refined Premium) ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F8FA;
    --bg-card: #FFFFFF;
    --accent: #6D28D9;
    --accent-light: #8B5CF6;
    --accent-glow: rgba(109, 40, 217, 0.1);
    --accent-bg: #F3EEFF;
    --text-primary: #1A1A2E;
    --text-secondary: #5A5A72;
    --text-muted: #9E9EB0;
    --border: #EDEDF0;
    --border-light: #F5F5F7;
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== APP CONTAINER ===== */
.app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
    padding: 24px;
    padding-bottom: 110px;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-top: 12px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0px;
    color: var(--text-primary);
}

.logo span { color: var(--accent); }

.header-icons { display: flex; gap: 14px; }

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.icon-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent-light);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-title a {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 8px 32px rgba(109, 40, 217, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    display: flex;
    align-items: center;
}

/* 슬라이드별 그라데이션 배경 */
.slide-brand {
    background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
}
.slide-night {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
}
.slide-event {
    background: linear-gradient(135deg, #7C3AED 0%, #DB2777 50%, #F97316 100%);
}

/* 장식 원형 */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 1;
}

.carousel-slide h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.carousel-slide p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background: #FFFFFF;
    color: var(--accent);
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: transform var(--transition), box-shadow var(--transition);
}
.hero-btn:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/* 페이지네이션 점 */
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: #FFFFFF;
    width: 24px;
    border-radius: 4px;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 0;
    margin-bottom: 36px;
}

/* Row 1: 4개 → 각 25% */
.category-grid .cat-item {
    width: 25%;
}

/* Row 2: 3개 → 가운데 정렬 (flex justify-content:center가 처리) */

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.cat-item:hover {
    transform: translateY(-2px);
}

.cat-item:active {
    transform: scale(0.95);
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.cat-icon img {
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.cat-item:hover .cat-icon {
    background: rgba(109, 40, 217, 0.15);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.12);
}

.cat-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== STUDIO CARD ===== */
.studio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.studio-card:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.studio-image {
    height: 160px;
    background: linear-gradient(135deg, var(--accent-bg) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
}

.studio-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.studio-like {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.studio-like:hover { background: var(--accent); }
.studio-like:hover svg { stroke: white; }
.studio-like svg { width: 18px; height: 18px; stroke: var(--text-secondary); fill: none; }
.studio-like.liked svg { fill: var(--accent); stroke: var(--accent); }

.studio-info { padding: 20px; }
.studio-name { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); letter-spacing: -0.2px; }

.studio-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.studio-meta { display: flex; justify-content: space-between; align-items: center; }
.studio-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--warning); font-weight: 500; }
.studio-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.studio-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* ===== PREMIUM SPOT CARD ===== */
.premium-card {
    border: 1.5px solid #E5C500;
    box-shadow: 0 2px 12px rgba(229, 197, 0, 0.12), var(--shadow-sm);
}

.premium-card:hover {
    border-color: #FFD700;
    box-shadow: 0 8px 28px rgba(229, 197, 0, 0.18), var(--shadow-md);
}

.premium-card .studio-image {
    background: linear-gradient(135deg, #FFFDF0 0%, #FFF8E1 50%, var(--bg-secondary) 100%);
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700, #E5C500) !important;
    color: #1A1A2E !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 5px 14px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(229, 197, 0, 0.3);
}

/* ===== PLUS UP CARD ===== */
.plusup-card {
    border: 1px solid var(--border);
}

/* 거리 라벨 */
.distance-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.location-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--accent-bg);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin: -4px 0 12px;
}
.location-notice svg {
    flex-shrink: 0;
    color: var(--accent);
}

.badge-plusup {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border);
    letter-spacing: 0.5px;
}

/* ===== SEARCH ===== */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 24px;
    transition: all var(--transition);
}

.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-box svg { width: 20px; height: 20px; stroke: var(--text-muted); margin-right: 14px; flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: none; outline: none; font-size: 15px; color: var(--text-primary); font-family: inherit; }
.search-box input::placeholder { color: var(--text-muted); }

.filter-section { margin-bottom: 28px; }
.filter-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 14px; }

.price-range { display: flex; gap: 12px; align-items: center; }
.price-input { flex: 1; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--text-primary); font-family: inherit; outline: none; transition: border-color var(--transition); }
.price-input:focus { border-color: var(--accent); }

.search-btn { width: 100%; background: var(--accent); border: none; border-radius: var(--radius-md); padding: 17px; font-size: 16px; font-weight: 600; color: white; cursor: pointer; transition: all var(--transition); margin-top: 24px; }

/* ===== SEARCH PAGE HEADER ===== */
.search-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
    padding-bottom: 8px;
    margin: -24px -24px 20px;
    padding: 16px 24px 12px;
    border-bottom: 1px solid var(--border-light);
}

.search-header-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 18px;
    transition: all var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-input-wrap svg { width: 20px; height: 20px; stroke: var(--text-muted); margin-right: 12px; flex-shrink: 0; }
.search-input-wrap input { flex: 1; background: none; border: none; outline: none; font-size: 15px; color: var(--text-primary); font-family: inherit; }
.search-input-wrap input::placeholder { color: var(--text-muted); }

.filter-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}
.filter-toggle-btn:hover { border-color: var(--accent); background: var(--accent-bg); }
.filter-toggle-btn svg { width: 20px; height: 20px; stroke: var(--text-secondary); }

.filter-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.filter-panel.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 16px;
    overflow-y: auto;
}
.filter-panel .filter-section { margin-bottom: 16px; }
.filter-panel .search-btn { margin-top: 8px; padding: 14px; font-size: 15px; }

.filter-group { margin-bottom: 18px; }
.filter-group-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.filter-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.filter-reset-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.filter-reset-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-apply-btn {
    flex: 2;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    border: none;
    color: white;
    transition: all var(--transition);
}
.filter-apply-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(109, 40, 217, 0.25); }

.chip {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.chip.active, .chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

/* Section divider between search results and recommendations */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}
.search-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(109, 40, 217, 0.25); }

/* ===== MAP ===== */
.map-page .app {
    padding: 0;
    padding-bottom: 80px;
}
.map-page .header {
    padding: 16px 24px;
}
.map-container {
    width: 100%;
    height: calc(100vh - 56px - 80px);
    position: relative;
    overflow: hidden;
}

.map-placeholder { text-align: center; color: var(--text-secondary); }
.map-placeholder svg { width: 60px; height: 60px; stroke: var(--text-muted); margin-bottom: 16px; }
.map-placeholder p { font-size: 14px; }

.map-bottom-sheet {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-bottom: none;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.sheet-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 18px; }

/* ===== BOOKING ===== */
.booking-tabs { display: flex; background: var(--bg-secondary); border-radius: var(--radius-md); padding: 4px; margin-bottom: 28px; }
.booking-tab { flex: 1; padding: 13px; text-align: center; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.booking-tab.active { background: var(--accent); color: white; box-shadow: var(--shadow-sm); }

.booking-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.booking-card:hover { box-shadow: var(--shadow-md); }
.booking-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.booking-studio { font-size: 17px; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); }
.booking-room { font-size: 13px; color: var(--text-secondary); }

.booking-status { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.booking-status.confirmed { background: rgba(5, 150, 105, 0.08); color: var(--success); }
.booking-status.cancelled { background: rgba(220, 38, 38, 0.08); color: var(--error); }
.booking-status.completed { background: rgba(90, 90, 114, 0.08); color: var(--text-secondary); }

.booking-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-detail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.booking-detail svg { width: 16px; height: 16px; stroke: var(--text-muted); }

.booking-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.booking-action-btn { flex: 1; padding: 13px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.booking-action-btn.primary { background: var(--accent); border: none; color: white; }
.booking-action-btn.primary:hover { filter: brightness(1.08); box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2); }
.booking-action-btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.booking-action-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ===== PROFILE ===== */
.profile-header { text-align: center; margin-bottom: 36px; }

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 18px;
    border: 4px solid var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
    color: #FFFFFF;
}

.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); letter-spacing: -0.3px; }
.profile-email { font-size: 14px; color: var(--text-secondary); }

.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 14px; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-value { font-size: 26px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.menu-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu-item { display: flex; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background var(--transition); }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg-secondary); }

.menu-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--accent-bg); display: flex; align-items: center; justify-content: center; margin-right: 16px; }
.menu-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.menu-text { flex: 1; font-size: 15px; font-weight: 500; color: var(--text-primary); }
.menu-arrow { color: var(--text-muted); }

.menu-item.logout { color: var(--error); }
.menu-item.logout .menu-icon { background: rgba(220, 38, 38, 0.06); }
.menu-item.logout .menu-icon svg { stroke: var(--error); }
.menu-item.logout .menu-text { color: var(--error); }

/* ===== GUEST PROFILE ===== */
.guest-profile { text-align: center; padding: 72px 24px; }

.guest-icon {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.guest-icon svg { width: 48px; height: 48px; stroke: var(--text-muted); }
.guest-title { font-size: 21px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); letter-spacing: -0.3px; }
.guest-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; }

.auth-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 300px; margin: 0 auto; }
.auth-btn { padding: 17px; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; text-align: center; }
.auth-btn.primary { background: var(--accent); border: none; color: white; }
.auth-btn.primary:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(109, 40, 217, 0.25); }
.auth-btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.auth-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 72px 24px; }
.empty-state svg { width: 80px; height: 80px; stroke: var(--text-muted); margin-bottom: 24px; }
.empty-state h3 { font-size: 19px; margin-bottom: 10px; color: var(--text-primary); font-weight: 600; }
.empty-state p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    padding: 8px 12px 28px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.nav-item:hover { background: var(--accent-bg); }
.nav-item svg { width: 24px; height: 24px; stroke: var(--text-muted); margin-bottom: 4px; transition: all var(--transition); }
.nav-item span { font-size: 11px; color: var(--text-muted); font-weight: 500; transition: all var(--transition); }
.nav-item.active svg { stroke: var(--accent); }
.nav-item.active span { color: var(--accent); font-weight: 600; }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--error); color: var(--error); }

/* ===== AUTH PAGE STYLES ===== */
.auth-header { text-align: center; padding: 48px 0; }
.auth-logo { font-size: 34px; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); letter-spacing: -0.5px; }
.auth-logo span { color: var(--accent); }
.auth-subtitle { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

.auth-tabs { display: flex; background: var(--bg-secondary); border-radius: var(--radius-md); padding: 4px; margin-bottom: 32px; }
.auth-tab { flex: 1; padding: 14px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-secondary); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.auth-tab.active { background: var(--accent); color: white; box-shadow: var(--shadow-sm); }

.auth-form { display: none; flex-direction: column; gap: 18px; }
.auth-form.active { display: flex; }

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.2px; }

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 18px;
    transition: all var(--transition);
}

.input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-wrapper svg { width: 20px; height: 20px; stroke: var(--text-muted); flex-shrink: 0; }
.input-wrapper input { flex: 1; background: none; border: none; outline: none; padding: 17px 14px; font-size: 15px; color: var(--text-primary); font-family: inherit; }
.input-wrapper input::placeholder { color: var(--text-muted); }

.toggle-password { cursor: pointer; padding: 4px; }

.error-message { font-size: 12px; color: var(--error); display: none; }
.error-message.show { display: block; }

.checkbox-group { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.checkbox-wrapper { position: relative; width: 20px; height: 20px; }
.checkbox-wrapper input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.checkbox-custom { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.checkbox-wrapper input:checked + .checkbox-custom { background: var(--accent); border-color: var(--accent); }
.checkbox-custom svg { width: 12px; height: 12px; stroke: white; stroke-width: 3; opacity: 0; }
.checkbox-wrapper input:checked + .checkbox-custom svg { opacity: 1; }
.checkbox-label { font-size: 14px; color: var(--text-secondary); }
.checkbox-label a { color: var(--accent); text-decoration: none; }

.auth-submit-btn {
    width: 100%;
    padding: 17px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    background: var(--accent);
    color: white;
    transition: all var(--transition);
}
.auth-submit-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(109, 40, 217, 0.25); }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-submit-btn.loading { color: transparent; position: relative; }
.auth-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.divider { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: 13px; color: var(--text-muted); }

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    width: 100%;
    transition: all var(--transition);
}
.social-btn.kakao { background: #FEE500; border-color: #FEE500; color: #000; }

.forgot-password { text-align: center; margin-top: 20px; }
.forgot-password a { font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.forgot-password a:hover { color: var(--accent); }

.back-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
}
.back-btn:hover { border-color: var(--accent); }
.back-btn svg { width: 20px; height: 20px; stroke: var(--text-secondary); }

.password-strength { display: flex; gap: 4px; margin-top: 10px; }
.strength-bar { flex: 1; height: 4px; background: var(--bg-secondary); border-radius: 2px; }
.strength-bar.weak { background: var(--error); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }
.strength-text { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ===== ROLE TABS (Signup) ===== */
.role-tabs {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
}

.role-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.role-tab:hover {
    border-color: var(--accent-light);
    background: var(--bg-secondary);
}

.role-tab.active {
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.role-tab-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.role-tab.active .role-tab-icon {
    background: var(--accent);
}

.role-tab-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary);
    transition: all var(--transition);
}

.role-tab.active .role-tab-icon svg {
    stroke: #FFFFFF;
}

.role-tab-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.role-tab-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-tab-text span {
    font-size: 11px;
    color: var(--text-muted);
}

.role-tab.active .role-tab-text strong {
    color: var(--accent);
}

/* Owner-only field */
.owner-only {
    animation: slideDown 0.3s ease;
}

.owner-only .label-badge {
    display: inline-block;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

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

/* Signup-Login link */
.signup-login-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.signup-login-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.signup-login-link a:hover {
    text-decoration: underline;
}
