* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    padding-top: 70px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== MODERN NAVBAR STYLES ========== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 30px rgba(102,126,234,0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    height: 60px;
    background: rgba(102,126,234,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .navbar {
    height: 60px;
}

.navbar-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.brand-name {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 800px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

.nav-menu a i {
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.admin-btn {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.admin-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.cart-btn {
    position: relative;
    padding: 0.6rem 0.9rem;
}

.cart-btn i {
    font-size: 1.2rem;
}

.mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-toggle.active {
    background: rgba(255,255,255,0.3);
}

.mobile-toggle.active i {
    transform: rotate(90deg);
}

.mobile-toggle i {
    transition: transform 0.3s ease;
}

/* Cart Icon Styles */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: pulse-badge 2s infinite;
}

.cart-badge.hidden {
    display: none !important;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* User Menu Dropdown */
.user-menu-container {
    position: relative;
}

.user-btn {
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
}

.user-btn:hover {
    background: rgba(255,255,255,0.25);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-menu-container:hover .user-dropdown,
.user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .navbar-wrapper {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }
    
    .nav-menu a i {
        display: none;
    }
    
    .btn-text {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .header {
        height: 60px;
    }
    .navbar {
        height: 60px;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
    }
    
    /* Mobile menu overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .navbar-center {
        position: fixed;
        top: 0;
        right: -85%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #667eea 0%, #5a3fb5 100%);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    }

    .navbar-center.active {
        right: 0 !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        display: block !important;
    }
    
    .nav-menu a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        justify-content: flex-start !important;
        font-size: 1rem !important;
        color: rgba(255,255,255,0.9) !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        transition: all 0.3s ease !important;
        border-radius: 0 !important;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.12) !important;
        color: #fff !important;
        padding-left: 2rem !important;
    }
    
    .nav-menu a i {
        display: inline-flex !important;
        font-size: 1.1rem !important;
        width: 28px !important;
        margin-right: 0.75rem !important;
        color: #ffd700 !important;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .navbar-right .admin-btn {
        display: flex !important;
    }
    
    .navbar-right .cart-btn {
        display: flex !important;
    }
    
    .user-dropdown {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .navbar-wrapper {
        padding: 0 0.75rem;
    }
    
    .brand-name {
        font-size: 0.95rem;
    }
    
    .nav-brand i {
        font-size: 1.3rem !important;
    }
    
    .nav-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .navbar-right {
        gap: 0.4rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a3fb5 100%);
    padding: 120px 0 100px;
    display: flex;
    align-items: center;
    min-height: 92vh;
    color: white;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(238,90,36,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238,90,36,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    border-color: white;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: heroImageFloat 6s ease-in-out infinite;
}

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(145deg, #f7fafc, #edf2f7);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
    display: flex !important;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    padding-bottom: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.modal-content .btn-primary[type="submit"] {
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding: 14px;
    margin-top: 8px;
    box-shadow: 0 -4px 12px rgba(255,255,255,0.9);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* Calculator Result */
.calculator-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f7fafc, #edf2f7);
    border-radius: 10px;
    display: none;
}

/* Store Section Styling */
.store {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.store h2 {
    text-align: center;
}

.store .section-intro {
    color: #64748b;
    font-size: 1rem;
    margin-top: 4px;
}

/* Store Filters */
.store-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Promotions */
.promotions {
    padding: 80px 0;
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 30%, #7c3aed 60%, #8b5cf6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.promotions::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.promo-header {
    text-align: center; margin-bottom: 3rem; position: relative; z-index: 1;
}
.promo-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.promo-subtitle {
    font-size: 1.1rem; opacity: 0.85; max-width: 500px; margin: 0 auto;
}

.promotions h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    position: relative; z-index: 1;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative; z-index: 1;
}

.promo-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    cursor: pointer;
}
.promo-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.promo-card.draw-loading {
    text-align: center; cursor: default;
}
.promo-card.draw-loading:hover { transform: none; box-shadow: none; }

/* Draw gift image */
.draw-gift-img {
    width: 100%; height: 200px; border-radius: 14px; object-fit: cover;
    margin-bottom: 1rem; border: 2px solid rgba(255,255,255,0.15);
}
.draw-gift-placeholder {
    width: 100%; height: 200px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.draw-gift-placeholder i { font-size: 3.5rem; opacity: 0.6; }

.draw-card-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.draw-card-gift { font-size: 0.95rem; opacity: 0.85; margin-bottom: 12px; }
.draw-card-value {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f7931e);
    padding: 4px 14px; border-radius: 20px;
    font-weight: 800; font-size: 0.95rem; margin-bottom: 16px;
}

.draw-qualify-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px;
}
.draw-qualify-item {
    background: rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 8px; text-align: center;
}
.draw-qualify-item i { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.draw-qualify-item .q-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.draw-qualify-item .q-amount { font-size: 13px; font-weight: 700; margin-top: 2px; }

.draw-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem; opacity: 0.8;
}

/* Draw Status Panel (logged in users) */
.draw-status-panel {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    position: relative; z-index: 1;
    border: 1px solid rgba(255,255,255,0.2);
}
.draw-status-panel h3 {
    font-size: 1.2rem; margin-bottom: 1rem;
}
.draw-progress-item {
    margin-bottom: 1rem;
}
.draw-progress-item .dp-label {
    display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.9rem;
}
.draw-progress-bar {
    height: 10px; background: rgba(255,255,255,0.15); border-radius: 10px; overflow: hidden;
}
.draw-progress-fill {
    height: 100%; border-radius: 10px; transition: width 0.6s ease;
    background: linear-gradient(90deg, #34d399, #10b981);
}
.draw-progress-fill.qualified {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* Draw detail modal */
.draw-detail-img {
    width: 100%; height: 240px; object-fit: cover; border-radius: 16px; margin-bottom: 1.5rem;
}
.draw-detail-gift-name { font-size: 1.6rem; font-weight: 800; color: #1e293b; }
.draw-detail-value {
    display: inline-block; background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #fff; padding: 4px 14px; border-radius: 20px;
    font-weight: 700; font-size: 0.9rem; margin: 8px 0 16px;
}
.draw-detail-desc { color: #475569; line-height: 1.7; margin-bottom: 1.5rem; }
.draw-detail-qualify {
    background: #faf5ff; border-radius: 14px; padding: 1rem; margin-bottom: 1rem;
}
.draw-detail-qualify h4 { color: #7c3aed; font-size: 0.9rem; margin: 0 0 8px; }
.draw-detail-qualify-row {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    font-size: 0.9rem; color: #475569;
}
.draw-detail-qualify-row i { color: #7c3aed; width: 18px; text-align: center; }

.promo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.promo-code {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-top: 1rem;
    font-weight: 600;
}

/* Spin Wheel */
.spin-wheel-container {
    text-align: center;
    position: relative;
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.newsletter p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

#newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

#newsletter-form input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: all 0.3s ease;
}

#newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

#newsletter-form input:focus {
    outline: none;
    border-color: #7c3aed;
    background: rgba(255,255,255,0.12);
}

/* Chat Assistant */
.chat-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1500;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    height: 200px;
    padding: 1rem;
    overflow-y: auto;
    display: none;
}

.chat-input {
    display: none;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.chat-input input {
    width: 70%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.chat-input button {
    width: 25%;
    padding: 0.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    margin-left: 5%;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 50px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.05rem;
}

.footer-section p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #ffd700;
    padding-left: 4px;
}

/* Responsive Design - moved to bottom */

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-store {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .store-filters {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Large Mobile Screens */
@media (min-width: 480px) and (max-width: 768px) {
    .products-store {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .filter-btn {
        min-width: auto;
        flex: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(10%); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.notification.error {
    background: #f44336;
}

/* ========== HOW IT WORKS SECTION ========== */
.how-it-works {
    padding: 80px 0;
    background: #fff;
}
.how-it-works h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.section-intro {
    text-align: center;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1rem;
    line-height: 1.6;
}
.steps-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 10px 0;
}
.flow-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 18px 20px;
    text-align: center;
    min-width: 170px;
    max-width: 195px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.flow-step:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 25px rgba(124,58,237,0.12);
    transform: translateY(-6px);
}
.flow-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.flow-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    transition: all 0.3s ease;
}
.flow-step:hover .flow-step-icon {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    transform: scale(1.1);
}
.flow-step h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}
.flow-step p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}
.flow-connector {
    color: #d4d0e8;
    font-size: 18px;
    padding-top: 60px;
    flex-shrink: 0;
    margin: 0 4px;
}

/* ========== PLATFORM FEATURES SECTION ========== */
.platform-features {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.platform-features h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.platform-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.platform-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.platform-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #7c3aed, #6d28d9);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 4px 0;
}
.platform-feature-card:hover::before {
    height: 100%;
}
.platform-feature-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 12px 32px rgba(124,58,237,0.1);
    transform: translateY(-4px);
}
.platform-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(124,58,237,0.25);
    transition: transform 0.3s ease;
}
.platform-feature-card:hover .platform-feature-icon {
    transform: scale(1.1) rotate(-5deg);
}
.platform-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}
.platform-feature-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* ========== TRENDING PRODUCTS SECTION ========== */
.trending-products {
    padding: 80px 0;
    background: #fff;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-badge.badge-green {
    background: linear-gradient(135deg, #10b981, #059669);
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.trending-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.trending-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
    cursor: pointer;
}
.trending-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(124,58,237,0.12);
    border-color: #7c3aed;
}
.trending-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}
.trending-product-image {
    height: 190px;
    background: linear-gradient(135deg, #f0ebff, #e8e0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.trending-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.trending-product-card:hover .trending-product-image img {
    transform: scale(1.05);
}
.trending-product-image .placeholder-icon {
    font-size: 3rem;
    color: #7c3aed;
    opacity: 0.5;
}
.trending-product-body {
    padding: 18px 20px 20px;
}
.trending-product-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}
.trending-product-body .product-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.trending-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #7c3aed;
}
.trending-product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #f59e0b;
}
.trending-product-rating .rating-count {
    color: #94a3b8;
    font-size: 11px;
}
.trending-product-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.trending-product-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
}
.trending-product-stats .stat i {
    color: #7c3aed;
    font-size: 10px;
}
.trending-product-footer {
    display: flex;
    gap: 8px;
}
.trending-product-footer .btn {
    flex: 1;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
}

/* ========== TRENDING INSTALLERS SECTION ========== */
.trending-installers {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.trending-installers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.installer-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.installer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(16,185,129,0.12);
    border-color: #10b981;
}
.installer-card-header {
    background: linear-gradient(135deg, #059669, #10b981);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}
.installer-card-header .verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.installer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.installer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.installer-header-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.installer-header-info .installer-title {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.installer-header-info .installer-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 12px;
    color: #fbbf24;
}
.installer-header-info .installer-rating span {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}
.installer-card-body {
    padding: 18px 22px;
}
.installer-stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.installer-stat {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    background: #f8fafc;
    border-radius: 10px;
}
.installer-stat .stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.installer-stat .stat-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.installer-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.installer-specialties .specialty-tag {
    background: #f0fdf4;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}
.installer-reviews {
    margin-bottom: 14px;
}
.installer-review-snippet {
    font-style: italic;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}
.installer-review-snippet .reviewer {
    font-style: normal;
    font-weight: 600;
    color: #1e293b;
    font-size: 12px;
    display: block;
    margin-top: 6px;
}
.installer-card-footer {
    padding: 14px 22px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 8px;
}
.installer-card-footer .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
}

/* ========== SECTION CTA ========== */
.section-cta {
    text-align: center;
    margin-top: 36px;
}
.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border: 2px solid #7c3aed;
    color: #7c3aed;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline-primary:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 0 50px;
        min-height: auto;
    }
    .hero-content {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    .hero-image {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    .hero-image img {
        max-width: 90%;
    }
    .nav-menu {
        display: none;
    }
    .chat-assistant {
        width: 280px;
        bottom: 10px;
        right: 10px;
    }
    #newsletter-form {
        flex-direction: column;
    }
    .store {
        padding: 60px 0;
    }
    .store h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    .store-filters {
        margin-bottom: 2rem;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
    .products-store {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    .products-store .product-card {
        max-width: 100%;
    }
    .products-store .product-image {
        height: 180px;
        font-size: 1.5rem;
    }
    .products-store .product-info {
        padding: 1.25rem;
    }
    .products-store .product-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    .products-store .product-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .products-store .product-specs {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .products-store .product-specs span {
        text-align: center;
        padding: 0.4rem 0.8rem;
    }
    .products-store .product-price {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    .products-store .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    .products-store .product-actions .btn {
        padding: 0.8rem;
        font-size: 0.95rem;
        font-weight: 600;
    }
    .steps-flow {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .flow-step {
        min-width: auto;
        max-width: 100%;
        width: 100%;
        max-width: 320px;
        padding: 20px 24px;
    }
    .flow-connector {
        transform: rotate(90deg);
        padding-top: 0;
        margin: 4px 0;
    }
    .platform-features-grid {
        grid-template-columns: 1fr;
    }
    .platform-features h2,
    .how-it-works h2,
    .section-header h2 {
        font-size: 1.7rem;
    }
    .trending-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .trending-product-body h3 {
        font-size: 13px;
    }
    .trending-product-price {
        font-size: 15px;
    }
    .trending-product-footer .btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    .trending-installers-grid {
        grid-template-columns: 1fr;
    }
    .installer-card-body {
        padding: 16px 18px;
    }
    .installer-card-footer {
        padding: 12px 18px;
    }
    .installer-stats-row {
        gap: 8px;
    }
    .installer-stat .stat-value {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .trending-products-grid {
        grid-template-columns: 1fr;
    }
    .trending-product-image {
        height: 160px;
    }
    .trending-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .trending-product-stats {
        flex-direction: column;
        gap: 6px;
    }
    .flow-step {
        max-width: 100%;
        width: 100%;
    }
    .platform-features-grid {
        gap: 16px;
    }
    .platform-feature-card {
        padding: 20px 18px;
    }
    .installer-card-header {
        padding: 16px;
    }
    .installer-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .installer-header-info h3 {
        font-size: 14px;
    }
    .installer-stats-row {
        gap: 6px;
    }
    .installer-stat .stat-value {
        font-size: 13px;
    }
    .installer-stat .stat-label {
        font-size: 9px;
    }
    .newsletter h2 {
        font-size: 1.5rem;
    }
    #newsletter-form {
        padding: 0 1rem;
    }
}

/* ========== ADVANCED BOOKING WIZARD STYLES ========== */
.booking-modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 650px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
    animation: bookingSlideIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
}
@keyframes bookingSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.booking-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #94a3b8;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.booking-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Header */
.booking-header {
    text-align: center;
    padding: 24px 28px 14px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5, #f0f9ff);
    flex-shrink: 0;
}
.booking-header-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #059669, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(5,150,105,0.3);
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(5,150,105,0.3); }
    50%      { box-shadow: 0 8px 32px rgba(5,150,105,0.5); }
}
.booking-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #064e3b;
    margin: 0 0 4px;
}
.booking-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Progress Steps */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #fff;
    gap: 0;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 4;
}
.bp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
}
.bp-step span {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.bp-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
}
.bp-step.active .bp-circle {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 16px rgba(5,150,105,0.35);
    transform: scale(1.1);
}
.bp-step.active span { color: #059669; }
.bp-step.completed .bp-circle {
    background: #059669;
    color: #fff;
}
.bp-step.completed .bp-circle i { display: none; }
.bp-step.completed .bp-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
}
.bp-line {
    width: 50px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 -2px 22px;
    transition: background 0.4s;
}
.bp-line.completed { background: #059669; }

/* Form Steps */
#book-installer-form {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.booking-step {
    display: none;
    padding: 20px 28px;
    animation: stepFadeIn 0.35s ease;
    flex: 1;
    overflow-y: auto;
}
.booking-step.active { display: block; }
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.booking-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.booking-step h3 i { color: #059669; margin-right: 6px; }

/* Fields */
.booking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}
.booking-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
/* Message form has no .booking-step wrapper, so it needs its own insets
   so the fields/buttons don't touch the modal's left/right edges. */
#message-installer-form {
    padding: 20px 28px;
}
.booking-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.booking-field label .required { color: #ef4444; }
.booking-input-wrap, .booking-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.booking-input-wrap i, .booking-select-wrap i {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #94a3b8;
    z-index: 1;
    pointer-events: none;
}
.booking-input-wrap input,
.booking-select-wrap select {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    transition: all 0.25s;
    outline: none;
    color: #1e293b;
}
.booking-input-wrap input:focus,
.booking-select-wrap select:focus {
    border-color: #059669;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(5,150,105,0.08);
}
.booking-input-wrap input.error,
.booking-select-wrap select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.08);
}
.booking-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    resize: vertical;
    min-height: 80px;
    transition: all 0.25s;
    outline: none;
}
.booking-field textarea:focus {
    border-color: #059669;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(5,150,105,0.08);
}
.field-error {
    font-size: 0.75rem;
    color: #ef4444;
    min-height: 4px;
    display: block;
}

/* Time Tags */
.booking-time-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.time-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.25s;
    background: #f8fafc;
}
.time-tag:hover { border-color: #10b981; background: #f0fdf4; }
.time-tag input[type="radio"] { appearance: none; -webkit-appearance: none; display: none; }
.time-tag:has(input:checked) {
    background: #ecfdf5;
    border-color: #059669;
    color: #059669;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5,150,105,0.15);
}

/* Select styling */
.booking-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Review Step */
.review-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}
.review-section {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.review-section:last-child { border-bottom: none; }
.review-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.review-rows { display: flex; flex-direction: column; gap: 4px; }
.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}
.review-row .rl { color: #64748b; font-weight: 500; }
.review-row .rv { color: #1e293b; font-weight: 600; text-align: right; }

/* Checkbox */
.booking-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    line-height: 1.5;
}
.booking-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #059669;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Navigation Buttons */
.booking-nav {
    display: flex;
    justify-content: space-between;
    padding: 14px 28px 18px;
    gap: 12px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 5;
}
.btn-booking {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-booking-next {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}
.btn-booking-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5,150,105,0.4);
}
.btn-booking-back {
    background: #f1f5f9;
    color: #475569;
}
.btn-booking-back:hover { background: #e2e8f0; }
.btn-booking-submit {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.btn-booking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124,58,237,0.4);
}

/* ========== TOAST NOTIFICATION ========== */
.booking-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    padding: 16px 24px;
    border-radius: 16px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    max-width: 420px;
}
.booking-toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.booking-toast.error   { background: linear-gradient(135deg, #ef4444, #f87171); }
.booking-toast.info    { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ========== SUCCESS STATE ========== */
.booking-success-overlay {
    text-align: center;
    padding: 40px 28px;
    animation: stepFadeIn 0.4s ease;
}
.booking-success-overlay .success-icon {
    font-size: 64px;
    color: #059669;
    margin-bottom: 16px;
}
.booking-success-overlay h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #064e3b;
    margin: 0 0 8px;
}
.booking-success-overlay p { color: #64748b; font-size: 0.9rem; margin: 0 0 20px; }

/* Responsive */
@media (max-width: 600px) {
    .booking-modal-content { max-height: 96vh; margin: 0 auto; border-radius: 20px; width: 96%; }
    .booking-row { grid-template-columns: 1fr; }
    .booking-header { padding: 20px 18px 10px; }
    .booking-step { padding: 14px 18px; }
    .booking-nav { padding: 10px 18px 16px; flex-wrap: wrap; }
    .booking-progress { padding: 10px 14px; gap: 0; }
    .bp-line { width: 20px; }
    .bp-circle { width: 34px; height: 34px; font-size: 12px; }
    .bp-step span { font-size: 9px; }
    .booking-time-tags { flex-direction: column; }
    .btn-booking { padding: 10px 18px; font-size: 0.82rem; }
    .booking-toast { left: 20px; right: 20px; bottom: 20px; max-width: none; }
}