/* ===== In-App Browser Banner ===== */
.inapp-browser-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #e05555 100%);
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(224, 85, 85, 0.4);
}

.inapp-browser-banner.show {
    display: block !important;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.inapp-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.inapp-banner-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.inapp-banner-text {
    flex: 1;
    min-width: 0;
}

.inapp-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.inapp-banner-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin: 2px 0 0;
    line-height: 1.3;
}

.inapp-banner-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #e05555;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.inapp-banner-btn:hover {
    background: #f8f8f8;
    transform: scale(1.02);
}

.inapp-banner-btn:active {
    transform: scale(0.98);
}

.inapp-banner-btn svg {
    flex-shrink: 0;
}

.inapp-banner-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.inapp-banner-close:hover {
    color: #fff;
}

/* Body padding when banner is shown */
body.inapp-banner-visible {
    padding-top: 70px;
}

body.inapp-banner-visible .inapp-browser-banner {
    display: block;
}

/* ===== CSS Variables ===== */
:root {
    /* Navy Blue - Slightly Brighter */
    --bg-primary: #1a2747;
    --bg-secondary: #212f54;
    --bg-card: #263561;
    --bg-card-hover: #2d3d6a;
    
    /* Accent Colors */
    --accent-primary: #ffffff;
    --accent-secondary: #e8e8e8;
    --accent-soft: rgba(255, 255, 255, 0.15);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c4e0;
    --text-muted: #8090b8;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 255, 255, 0.4);
    
    /* Status Colors */
    --success: #7dd3a8;
    --warning: #f0c674;
    --error: #e07a7a;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Fonts */
    --font-primary: 'Pretendard', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
}

/* ===== App Container ===== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 60px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding: 16px 20px;
    margin: 0 -20px 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
    text-align: left;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.tagline {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    margin-top: 2px;
}

.language-btn:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.lang-flag {
    font-size: 14px;
}

.lang-text {
    font-weight: 500;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.language-dropdown.active .lang-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.language-option:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.language-option.active {
    color: var(--text-primary);
    background: rgba(125, 211, 168, 0.1);
}

.language-option .lang-flag {
    font-size: 16px;
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 20px 0 28px;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.hero-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-sub strong {
    color: var(--success);
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-cta-group > button,
.hero-cta-group > .hero-cta-right {
    flex: 1;
    min-width: 0;
}

.hero-cta-primary {
    flex: 1;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-cta-primary:hover {
    background: var(--accent-secondary);
}

.hero-cta-secondary {
    flex: 1;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-cta-secondary .btn-main {
    font-size: 14px;
    font-weight: 600;
}

.hero-cta-secondary .btn-sub {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.7;
}

.hero-cta-small:active {
    transform: scale(0.98);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-stat strong {
    color: var(--success);
    font-weight: 600;
}

.hero-divider {
    color: var(--text-muted);
}

.hero-discount {
    font-size: 12px;
    color: var(--success);
    margin-top: -2px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.hero-discount::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        100deg,
        transparent,
        rgba(125, 211, 168, 0.35),
        transparent
    );
    animation: discount-shine 4s ease-in-out infinite;
}

@keyframes discount-shine {
    0% { left: -50%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

/* Channel logo in modal */
.channel-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

/* ===== Location Modal ===== */
.location-modal-content {
    max-width: 300px;
}

.modal-icon.location {
    background: rgba(125, 211, 168, 0.15);
    font-size: 28px;
}

/* ===== Map Section - Uber Style ===== */
.map-section {
    margin-bottom: 24px;
}

/* Walk Time Overlay - Clean Mint */
.walk-time-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.walk-time-overlay svg {
    display: none;
}

.walk-time-overlay::before {
    content: '🚶';
    font-size: 16px;
}

.map-container {
    position: relative;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-float);
    background: rgba(255, 255, 255, 0.05);
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1000;
}

#map {
    width: 100%;
    height: 100%;
    filter: saturate(0.9) brightness(1.35) contrast(1.0);
}

.leaflet-control-zoom,
.leaflet-control-attribution {
    display: none;
}

/* Address Row */
.address-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 10px;
}

.destination-text {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-color: var(--border-active);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* ===== Toast - Glassmorphism ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    background: rgba(125, 211, 168, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0f1a3a;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(125, 211, 168, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast svg {
    flex-shrink: 0;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ===== Size Section ===== */
.size-section {
    margin-bottom: 24px;
}

.size-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.size-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.size-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.size-card.selected {
    border-color: var(--text-primary);
    background: var(--bg-card-hover);
}

.size-card.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.size-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.size-label {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.size-available {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--success);
    background: rgba(125, 211, 168, 0.15);
    white-space: nowrap;
}

.size-available.limited {
    color: var(--warning);
    background: rgba(240, 198, 116, 0.15);
}

.size-available.sold-out {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.size-visual {
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 8px;
}

.locker-icon {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    position: relative;
}

.locker-icon::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: var(--success);
    border-radius: 50%;
}

.locker-icon.small {
    width: 24px;
    height: 20px;
}

.locker-icon.medium {
    width: 28px;
    height: 30px;
}

.locker-icon.large {
    width: 32px;
    height: 40px;
}

.size-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.size-desc {
    font-size: 10px;
    color: var(--text-primary);
}

.size-example {
    font-size: 9px;
    color: var(--text-muted);
}

.selected-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ===== Time Section ===== */
.time-section {
    margin-bottom: 24px;
}

.reservation-policy {
    background: rgba(125, 211, 168, 0.08);
    border: 1px solid rgba(125, 211, 168, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.policy-icon {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.policy-text strong {
    color: var(--success);
    font-weight: 600;
}

.time-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.time-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.time-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.time-card.selected {
    border-color: var(--text-primary);
    background: var(--bg-card-hover);
}

.time-card.disabled {
    opacity: 0.4;
    pointer-events: none;
    border-color: var(--border-color);
    background: var(--bg-card);
}

.time-card.disabled .time-badge,
.time-badge.sold-out {
    background: #ff6b6b !important;
    color: #fff !important;
}

.time-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.time-badge.best-value {
    background: var(--success);
    color: var(--bg-primary);
}

.time-hours {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.time-price {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}

.time-discount-notice {
    text-align: center;
    font-size: 12px;
    color: var(--success);
    margin-top: 12px;
    margin-bottom: 4px;
}

.time-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.time-notice {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* ===== Date/Time Selection ===== */
.datetime-section {
    margin-bottom: 24px;
}

.datetime-picker {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.datetime-input-group {
    display: flex;
    gap: 6px;
}

.datetime-label {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.datetime-label:hover,
.datetime-label:focus-within {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.datetime-label:active {
    transform: scale(0.98);
}

.datetime-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.datetime-display {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.datetime-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.datetime-notice {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* ===== Custom Time Picker Modal ===== */
.time-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 26, 58, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.time-picker-modal.active {
    opacity: 1;
    visibility: visible;
}

.time-picker-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.time-picker-modal.active .time-picker-content {
    transform: translateY(0);
}

.time-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.time-picker-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.time-picker-body {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.time-picker-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
}

.time-picker-column::-webkit-scrollbar {
    display: none;
}

.time-option {
    padding: 12px 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-option:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.time-option.selected {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.time-picker-confirm {
    width: 100%;
    padding: 14px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-picker-confirm:hover {
    background: var(--accent-secondary);
}

.time-picker-confirm:active {
    transform: scale(0.98);
}

/* ===== Summary Section ===== */
.summary-section {
    margin-bottom: 24px;
}

.current-time-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-top: 16px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.time-label {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.time-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.time-deadline {
    font-size: 10px;
    color: var(--success);
    background: rgba(125, 211, 168, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.time-deadline span {
    font-weight: 600;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* 자동 시작 안내 (태그 스타일 - 칸 남음과 동일) */
.summary-row.auto-start-row {
    padding-top: 0;
    margin-top: 0;
}

.auto-start-notice {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--success);
    background: rgba(125, 211, 168, 0.15);
    white-space: nowrap;
}

.discount-notice {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--success);
    background: rgba(125, 211, 168, 0.15);
    white-space: nowrap;
}

.summary-row.discount-row {
    padding-top: 0;
    margin-top: 0;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.summary-row.total {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.summary-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== CTA Button ===== */
.cta-button {
    width: 100%;
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.cta-arrow {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-button-group {
    display: flex;
    gap: 10px;
}

.cta-button-group .cta-button {
    flex: 1;
}

.cta-button-secondary {
    flex: 1;
    background: transparent;
    border: 1px solid var(--text-primary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-notice {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 26, 58, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-primary);
    margin: 0 auto 16px;
}

.modal-icon.error {
    background: rgba(224, 122, 122, 0.15);
    color: var(--error);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--text-primary);
    margin-bottom: 8px;
}

.modal-btn.primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.modal-btn.primary:hover {
    background: var(--accent-secondary);
}

.modal-btn.secondary {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
}

.modal-btn.secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-active);
}

/* ===== Error Page ===== */
.error-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 3000;
    text-align: center;
}

.error-code {
    font-size: 72px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 12px;
}

.error-message {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.error-desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.6;
}

/* ===== Custom Map Markers ===== */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-current {
    width: 17px;
    height: 17px;
    background: var(--success);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.marker-station-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.marker-station {
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border: 2px solid var(--text-primary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.marker-station-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.marker-destination-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-logo {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--bg-card);
    border: 2px solid var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 360px) {
    .size-cards {
        gap: 6px;
    }
    
    .size-card {
        padding: 12px 6px;
    }
    
    .size-label {
        font-size: 18px;
    }
    
    .current-time-banner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .time-deadline {
        font-size: 9px;
    }
    
    .map-container {
        height: 220px;
    }
}

/* ===== Section Title Highlight Effect ===== */
.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.start-here-tag {
    display: inline-block;
    background: var(--success);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    opacity: 0;
    animation: toast-appear 2.5s ease-in-out forwards;
}

@keyframes toast-appear {
    0% { opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== Save Modal (저장하고 할인받기) ===== */
.save-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.save-modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.save-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

.save-modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.save-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.save-modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.save-modal-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    margin-bottom: 12px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.save-modal-input:focus {
    outline: none;
    border-color: var(--success);
}

.save-modal-input::placeholder {
    color: var(--text-muted);
}

.save-modal-btn {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.save-modal-btn:hover {
    background: var(--accent-secondary);
}

.save-modal-note {
    font-size: 11px;
    color: var(--text-muted);
}

/* 이메일 수집 모달 */
.email-modal {
    text-align: center;
}

.email-modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.email-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    border-color: var(--text-tertiary);
}

.email-input.error {
    border-color: #ff6b6b;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.email-submit-btn {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-submit-btn:hover {
    background: var(--accent-secondary);
}

.email-privacy {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

.save-modal-desc strong {
    color: var(--success);
    font-weight: 600;
}

/* Channel Options */
.channel-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.channel-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.channel-option:hover {
    border-color: var(--success);
    background: rgba(125, 211, 168, 0.05);
}

.channel-icon {
    font-size: 24px;
}

.channel-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 구분선 */
.channel-divider {
    display: flex;
    align-items: center;
    margin: 16px 0 12px;
    gap: 12px;
}

.channel-divider::before,
.channel-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.channel-divider span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 공유/복사 버튼 (secondary) */
.channel-options-secondary {
    margin-top: 0;
    flex-direction: row;
    gap: 8px;
}

.channel-option-secondary {
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    text-align: center;
    justify-content: center;
}

.channel-option-secondary .channel-icon {
    font-size: 20px;
}

.channel-option-secondary .channel-name {
    font-size: 12px;
}

.channel-option-secondary.copied {
    border-color: var(--success);
    background: rgba(125, 211, 168, 0.1);
}

.channel-option-secondary.copied .channel-name {
    color: var(--success);
}
