/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-color: #FC3130;
    --primary-dark: #B43228;
    --primary-light: #FF786E;
    --secondary-color: #333333;
    --text-dark: #0f0f0f;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(252, 49, 48, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(252, 49, 48, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(252, 49, 48, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(252, 49, 48, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans HK', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-icon {
    height: 40px;
    width: auto;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Increase gap on larger screens */
@media (min-width: 1025px) {
    .nav-menu {
        gap: 1rem;
    }
}

@media (min-width: 1201px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Active state for current page */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.btn-login {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.btn-login::after {
    display: none;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-register {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
}

.btn-register::after {
    display: none;
}

.btn-register:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-image: url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.85) 0%, rgba(252, 49, 48, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.badge-icon {
    width: 24px;
    height: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(252, 49, 48, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

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

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Quick Steps */
.quick-steps {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.step-card p {
    color: var(--text-light);
}

/* Location Selector */
.location-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.location-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.location-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(252, 49, 48, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.location-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.location-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.location-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.location-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Booking Section */
.booking-section {
    padding: 5rem 0;
    background: white;
}

/* DISABLED: Moved to modules/booking-section-layout.css to avoid conflicts */
/*
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.booking-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.booking-card:nth-child(2) {
    grid-column: 1 / 2;
}

.booking-summary {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    background: var(--secondary-color);
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.booking-summary .card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}
*/

/* Date Selector */
.date-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

/* Force 2-column layout on mobile */
@media (max-width: 768px) {
    .date-selector {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: row;
    }
}

.date-btn {
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.date-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.date-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.date-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-day {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.date-btn.selected .date-day {
    color: rgba(255, 255, 255, 0.8);
}

.date-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.date-month {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Time Slots */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem;
}

.time-slot {
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.time-slot:hover:not(.booked):not(.expired) {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.booked,
.time-slot.expired {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot.booked:hover,
.time-slot.expired:hover {
    transform: none;
}

.time-slot-time {
    font-size: 0.875rem;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.time-slot-price {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.8;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Booking Summary */
.summary-content {
    margin-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-label {
    font-size: 1.125rem;  /* 加大標籤文字 */
    color: rgba(255, 255, 255, 0.7);
}

.summary-value {
    font-size: 1.125rem;  /* 加大數值文字 */
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

.summary-breakdown {
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.7);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* 已經垂直置中 */
    margin-top: 2rem;  /* 與灰色線保持距雩 */
    margin-bottom: 2rem;
    padding: 1.5rem;
    /* background: rgba(252, 49, 48, 0.2); */  /* 移除粉紅色背景 */
    /* border-radius: 10px; */  /* 移除圓角 */
}

.total-label {
    font-size: 1.25rem;
    font-weight: 600;
}

.total-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 3px solid #ff9494;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.pricing-time {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.pricing-amount span {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.feature-check {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Rules Section */
.rules-section {
    padding: 5rem 0;
    background: white;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.rule-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.rule-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.rule-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.rule-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.terms-link {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-form.hidden {
    display: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.form-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none !important;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: -1;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        margin-top: 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .booking-container {
        grid-template-columns: 1fr;
    }

    .booking-card:nth-child(2),
    .booking-summary {
        grid-column: 1;
        grid-row: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .pricing-featured {
        transform: none;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .total-value {
        font-size: 1.5rem;
    }
    
    .summary-label,
    .summary-value {
        font-size: 1rem;  /* 手機版稍微調小 */
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}



/* Mobile Fixed Booking Button */
.mobile-booking-btn {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 999;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-booking-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .mobile-booking-btn {
        display: block;
    }
}

/* Image Slider */
.about-image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* View Summary Button */
.view-summary-btn-container {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Prevent time text from triggering system picker */
.pricing-time {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
}

/* Language Switcher in Mobile Menu */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 320px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem 0 3rem 0;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        overflow-y: auto;
        align-items: flex-start;
        padding-left: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .lang-switcher {
        order: 999;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
}

/* Fix registration input cursor alignment */
.modal-input {
    line-height: 1.5;
    height: auto;
    padding: 12px 16px;
    font-size: 16px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 49, 48, 0.1);
}

/* Phone input with country code */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text-dark);
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.phone-input-group .modal-input {
    flex: 1;
}



/* Language Switcher */
.lang-switcher-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    text-decoration: none;
}

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

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .lang-switcher-item {
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
        justify-content: center;
    }
}



/* --- Login State & Dropdown --- */

/* 預設狀態: 會員區域隱藏,登入按鈕顯示 */
.logged-in-item {
    display: none;
}

.logged-out-item {
    display: list-item;
}

/* 當有 hidden 類別時強制隱藏 */
.hidden {
    display: none !important;
}

/* 當有 show 類別時顯示 */
.logged-in-item.show {
    display: list-item;
}

.logged-out-item.show {
    display: list-item;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    list-style: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 160px;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
}

.dropdown-menu .dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Dropdown Header */
.dropdown-header {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.member-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FC3130 0%, #B43228 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.member-avatar svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
}

/* 首字母顯示 */
.member-avatar .avatar-initial {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

/* 驗證狀態指示器 */
.member-avatar .verification-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-size: 10px;
    font-weight: bold;
}

.member-avatar .verification-badge.verified {
    background: #3b82f6; /* 藍色 */
    color: white;
}

.member-avatar .verification-badge.unverified {
    background: #f59e0b; /* 橙色 */
    color: white;
}

.member-avatar .verification-badge svg {
    width: 10px;
    height: 10px;
    stroke: none;
    fill: white;
}

.member-avatar .verification-badge .exclamation {
    font-size: 12px;
    line-height: 1;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.member-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-phone,
.member-id {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}



/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--bg-light);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: var(--bg-light);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.footer-social .social-icon {
    width: 28px;
    height: 28px;
}

.footer-lang-switcher {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--text-light);
    border-radius: 20px;
    padding: 5px;
}

.footer-lang-switcher .lang-btn {
    padding: 0.25rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.footer-lang-switcher .lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-social {
        margin-bottom: 0;
    }
}

/* Terms Agreement Checkbox */
.terms-agreement {
    margin: 1.5rem 0 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgb(0 0 0 / 90%);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .terms-agreement {
        padding: 0.75rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* Date Expansion for Mobile */
.dates-container {
    display: contents;
}

.expand-dates-btn {
    display: none;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.expand-dates-btn:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.expand-dates-btn .expand-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.expand-dates-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Mobile styles for date expansion */
@media (max-width: 768px) {
    .expand-dates-btn {
        display: flex;
    }
    
    .date-btn.hidden-date {
        display: none;
    }
    
    .dates-container.expanded .date-btn.hidden-date {
        display: block;
    }
    
    /* Ensure all date buttons have the same size and layout */
    .date-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100px;
    }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 82, 82, 0.1);
  border-top-color: #ff5252;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Member Info Card */
.mobile-member-info {
    display: none !important;
}

@media (max-width: 1000px) {
    .mobile-member-info {
        display: block !important;
        width: 100%;
        padding: 0 !important;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem !important;
    }
    
    .mobile-member-card {
        background: linear-gradient(135deg, #FFF5F5 0%, #FFE5E5 100%);
        border-radius: 12px;
        padding: 1rem;
        margin-right: 2rem;
    }
    
    .mobile-member-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-member-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .mobile-member-avatar svg {
        width: 24px;
        height: 24px;
        stroke: var(--primary-color);
    }
    
    .mobile-member-details {
        flex: 1;
    }
    
    .mobile-member-name {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.25rem;
    }
    
    .mobile-member-phone {
        font-size: 0.875rem;
        color: #666;
    }
    
    .mobile-member-level {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-level-badge {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: white;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .mobile-level-icon {
        font-size: 1.25rem;
    }
    
    .mobile-level-text {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 1001px) {
    .mobile-only {
        display: none !important;
    }
}
