/* ==================== CUSTOMER STYLES ==================== */

/* Header Gradient */
.cust-header-bg {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
}

/* Search CTA */
.search-cta {
    margin-top: -0.75rem;
}

.search-cta-card {
    background: white;
    border-radius: 14px;
    padding: 0.875rem 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Promo Slider */
.promo-slider {
    overflow: hidden;
    position: relative;
}

.promo-track {
    transition: transform 0.5s ease;
    width: max-content;
}

.promo-card {
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

/* Cara Kerja Card */
.cara-kerja-card {
    background: linear-gradient(135deg, #0F172A 0%, #0058e9 100%);
    position: relative;
    overflow: hidden;
}

.cara-kerja-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cara-kerja-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cara-kerja-card > div {
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Statistik */
.stat-number {
    font-weight: 800;
    font-size: 1.25rem;
}

/* Category Card */
.category-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.category-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 1.25rem;
}

.category-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Item Card */
.item-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.item-card:active {
    transform: scale(0.98);
}

.item-card.selected {
    border-color: var(--bs-primary);
    background: linear-gradient(135deg, rgba(2,132,199,0.05), rgba(2,132,199,0.1));
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
}

/* Text Truncate */
.text-truncate-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== PROMO HERO SLIDER ==================== */
.promo-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 -4px;
}

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

.promo-hero-slide {
    flex: 0 0 100%;
    padding: 0 4px;
}

.promo-hero-card {
    position: relative;
    border-radius: 16px;
    padding: 16px;
    min-height: 160px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.promo-hero-bubble {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.promo-hero-bubble-2 {
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.promo-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-hero-row-1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-hero-name-wrap {
    flex: 1;
    min-width: 0;
}

.promo-hero-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.promo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    backdrop-filter: blur(4px);
}

.promo-hero-badge-green {
    background: rgba(255, 255, 255, 0.25);
}

.promo-hero-badge-purple {
    background: rgba(255, 255, 255, 0.25);
}

.promo-hero-name {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-hero-row-2 {
    display: flex;
    align-items: center;
}

.promo-hero-location {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.promo-hero-row-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.promo-hero-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.promo-hero-rating i {
    color: #FBBF24;
    font-size: 0.7rem;
}

.promo-hero-reviews {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 0.65rem;
}

.promo-hero-price-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.promo-hero-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.promo-hero-price-old {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    text-decoration: line-through;
}

.promo-hero-price-new {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-hero-btn {
    background: white;
    color: #0284C7;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.promo-hero-btn-green {
    color: #059669;
}

.promo-hero-btn-purple {
    color: #7C3AED;
}

/* ==================== STATISTIK PREMIUM ==================== */
.statistik-premium {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(2, 132, 199, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.statistik-premium-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 40%, #0C4A6E 100%);
    z-index: 0;
}

.statistik-premium-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.statistik-premium-bg::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.statistik-premium-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
}

.statistik-premium-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.125rem;
}

.statistik-premium-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.statistik-premium-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.statistik-premium-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.6875rem;
    font-weight: 500;
    margin: 0;
}

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

.statistik-premium-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.875rem 0.625rem;
    text-align: center;
    transition: all 0.3s ease;
}

.statistik-premium-item:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.18);
}

.statistik-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.625rem;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.statistik-item-icon.bg-primary {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
}

.statistik-item-icon.bg-success {
    background: linear-gradient(135deg, #34D399, #10B981);
}

.statistik-item-icon.bg-warning {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
}

.statistik-item-number {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.statistik-item-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.statistik-item-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.statistik-item-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.statistik-item-bar-fill.bg-primary {
    background: linear-gradient(90deg, #0EA5E9, #38BDF8);
}

.statistik-item-bar-fill.bg-success {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.statistik-item-bar-fill.bg-warning {
    background: linear-gradient(90deg, #F59E0B, #FCD34D);
}

/* Animasi masuk */
@keyframes statistikFadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.statistik-premium-item {
    animation: statistikFadeInUp 0.5s ease-out both;
}

.statistik-premium-item:nth-child(1) { animation-delay: 0.1s; }
.statistik-premium-item:nth-child(2) { animation-delay: 0.2s; }
.statistik-premium-item:nth-child(3) { animation-delay: 0.3s; }

/* Indikator Dot */
.promo-hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.promo-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s;
}

.promo-hero-dot.active {
    background: #0284C7;
    width: 24px;
    border-radius: 4px;
}

/* ==================== RESPONSIVE — Desktop & Tablet ==================== */
@media (min-width: 768px) {
    .cust-header-bg {
        padding: 2rem 2rem 3rem;
    }
    .cust-header-bg h5 {
        font-size: 1.25rem;
    }
    .search-cta-card {
        padding: 1rem 1.25rem;
    }
    .promo-hero-card {
        min-height: 220px;
    }
    .promo-hero-name {
        font-size: 1.125rem;
    }
}

@media (min-width: 992px) {
    .cust-header-bg {
        padding: 2.5rem 3rem 3.5rem;
    }
    .cust-header-bg h5 {
        font-size: 1.5rem;
    }
}

/* Desktop: grid for quick actions */
@media (min-width: 768px) {
    .quick-actions-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Desktop: booking list */
@media (min-width: 768px) {
    .booking-list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .booking-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: promo slider — 2 cards */
@media (min-width: 768px) {
    .promo-hero-slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .promo-hero-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem;
        transform: none !important;
    }
    .promo-hero-slide {
        min-width: 0;
        flex: 0 0 calc((100% - 0.75rem) / 2);
    }
    .promo-hero-card {
        min-height: 160px;
    }
    .promo-hero-dots {
        display: none;
    }
}

/* Desktop: promo slider — 3 cards */
@media (min-width: 1024px) {
    .promo-hero-slide {
        flex: 0 0 calc((100% - 1.5rem) / 3) !important;
    }
    .promo-hero-card {
        min-height: 180px;
    }
}

/* Desktop: statistik grid */
@media (min-width: 768px) {
    .statistik-premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Desktop: card hover */
@media (min-width: 768px) {
    .booking-mini-card:hover {
        background: #EFF6FF;
        transform: translateY(-1px);
    }
}

/* ==================== SEARCH PAGE RESPONSIVE ==================== */
@media (min-width: 768px) {
    .premium-step-indicator {
        padding: 12px 0;
    }
    .step-item {
        min-width: 60px;
    }
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .step-label {
        font-size: 0.625rem;
    }
    .search-category-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .search-item-card {
        padding: 1rem;
    }
    .search-result-card {
        padding: 1rem;
    }
    .provider-result-card {
        padding: 1.25rem;
    }
    .filter-drawer {
        position: static;
        border-radius: 16px;
        transform: none;
        max-height: none;
        overflow: visible;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .filter-drawer-handle,
    .filter-drawer-header {
        display: none;
    }
}

@media (min-width: 992px) {
    .search-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .search-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
    .search-result-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
}

/* ==================== PROFILE PAGE RESPONSIVE ==================== */
@media (min-width: 768px) {
    .profile-header {
        padding: 2rem 2rem 3rem;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .profile-name {
        font-size: 1.25rem;
    }
    .profile-tabs {
        display: flex;
        gap: 0.5rem;
        overflow-x: visible;
        flex-wrap: wrap;
    }
    .profile-tab {
        flex: 0 0 auto;
        padding: 0.625rem 1.25rem;
    }
    .profile-content {
        max-width: 600px;
        margin: 0 auto;
    }
    .profile-card {
        padding: 1.5rem;
    }
    .profile-form-group {
        margin-bottom: 1.25rem;
    }
    .profile-btn {
        padding: 0.75rem 2rem;
    }
}

@media (min-width: 992px) {
    .profile-header {
        padding: 2.5rem 3rem 3.5rem;
    }
    .profile-avatar {
        width: 96px;
        height: 96px;
        font-size: 2.5rem;
    }
    .profile-name {
        font-size: 1.5rem;
    }
    .profile-content {
        max-width: 700px;
    }
    .profile-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
}

/* ==================== RATING PAGE RESPONSIVE ==================== */
@media (min-width: 768px) {
    .rating-summary-card {
        padding: 2rem;
    }
    .rating-avg {
        font-size: 3rem;
    }
    .rating-bar {
        height: 8px;
    }
    .review-card {
        padding: 1.25rem;
    }
    .review-avatar {
        width: 44px;
        height: 44px;
    }
    .review-form-card {
        padding: 1.5rem;
    }
    .rating-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .rating-content {
        max-width: 700px;
    }
    .review-card:hover {
        background: #F8FAFC;
        transform: translateY(-1px);
    }
}
