/* style.css - Mahir Home Services Premium Light Mobile-App Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Premium iOS-style Royal Blue Color System */
    --primary: #007aff; /* Apple System Blue */
    --primary-glow: rgba(0, 122, 255, 0.1);
    --primary-light: rgba(0, 122, 255, 0.05);
    --primary-border: rgba(0, 122, 255, 0.15);
    --primary-dark: #0056b3;
    
    --accent: #5856d6; /* iOS System Purple */
    
    --success: #34c759; /* iOS System Green */
    --success-light: rgba(52, 199, 89, 0.06);
    
    --warning: #ff9500; /* iOS System Orange */
    
    --danger: #ff3b30; /* iOS System Red */
    --danger-light: rgba(255, 59, 48, 0.06);
    
    /* Premium Light Theme Colors */
    --bg-app: #f2f2f7; /* iOS System Light Gray background */
    --bg-card: #ffffff; /* Pure white card surfaces */
    --border-light: #e5e5ea; /* iOS System Separator */
    --border-focus: #007aff;
    
    --text-primary: #1c1c1e; /* iOS dark text */
    --text-secondary: #8e8e93; /* iOS grey text */
    --text-muted: #aeaeb2;
    
    --font: 'Outfit', sans-serif;
    
    /* Soft, Luxurious Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 16px 40px rgba(0, 122, 255, 0.06);
    
    /* Native App Rounded Corners */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Layout Rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input, textarea, select {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

body {
    background-color: #f2f2f7;
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* Base Wrapper for Desktop Scaling (Mimics Native Phone view) */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Premium Light Glass Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

header .brand span {
    color: var(--primary);
    font-weight: 900;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.btn-action.btn-call {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-action.btn-wa {
    background: rgba(52, 199, 89, 0.08);
    color: #34c759;
}

.btn-action:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Main Container Area */
main {
    padding: 20px;
    flex-grow: 1;
}

/* Hero Section / Banner Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.7) 100%);
    width: 100%;
    padding: 20px;
    color: white;
}

.slide-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

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

.dot.active {
    background: white;
    width: 16px;
    border-radius: 3px;
}

/* Category Grid Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.4px;
}

.section-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 4px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.category-card .icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f2f2f7;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.category-card .category-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.category-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Service Card Component */
.service-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.service-img-container {
    position: relative;
    width: 100%;
    height: 175px;
    overflow: hidden;
}

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

.service-badge-duration {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 750;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-badge-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--warning);
    font-size: 11px;
    font-weight: 750;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-details {
    padding: 16px;
}

.service-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.view-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.price-tag {
    font-size: 19px;
    font-weight: 900;
    color: var(--text-primary);
}

.btn-add-cart {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-add-cart.added {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(52, 199, 89, 0.2);
}

/* Callback Request Form */
.callback-container {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.callback-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.callback-subtitle {
    font-size: 12.5px;
    opacity: 0.85;
    margin-bottom: 16px;
}

.callback-form {
    display: flex;
    gap: 8px;
}

.callback-input {
    flex-grow: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.callback-input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
}

.btn-callback-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-callback-submit:hover {
    background: var(--primary-dark);
}

/* Floating Drawer / Bottom Sheet Cart Bar */
.cart-floating-bar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 448px;
    background: #1c1c1e;
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.cart-bar-qty {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 500;
}

.cart-bar-price {
    font-size: 18px;
    font-weight: 800;
}

.btn-cart-view {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 12px;
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    gap: 4px;
    transition: var(--transition);
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
}

/* Search Bar styling */
.search-container {
    position: relative;
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    background: #f2f2f7;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 14px 16px 14px 44px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    background: #ffffff;
    border-color: var(--primary-border);
    box-shadow: var(--shadow-sm);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

/* Category Detail Banner */
.category-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 24px;
}

.category-banner h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
}

.category-banner p {
    font-size: 13.5px;
    opacity: 0.9;
}

/* Card boxes (iOS rounded style) */
.card-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 750;
    font-size: 14.5px;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.btn-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-item-remove:hover {
    background: var(--danger-light);
}

/* Inputs and Forms */
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: #f2f2f7;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary-border);
    box-shadow: var(--shadow-sm);
}

.form-control.is-valid {
    border-color: var(--success) !important;
    background-color: var(--success-light) !important;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger) !important;
    background-color: var(--danger-light) !important;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.15);
}

.location-input-wrapper {
    position: relative;
}

.btn-locate-me {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

/* Date/Time slots */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Premium Horizontal Date Carousel */
#dateSlotsContainer {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: none; /* Firefox */
}
#dateSlotsContainer::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

#dateSlotsContainer .slot-option {
    min-width: 82px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#dateSlotsContainer .slot-option div:first-child {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

#dateSlotsContainer .slot-option div:nth-child(2) {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 4px;
}

#dateSlotsContainer .slot-option div:last-child {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

#dateSlotsContainer .slot-option.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.22) !important;
}

#dateSlotsContainer .slot-option.selected div {
    color: #ffffff !important;
}

/* Premium Time Rows Selection List */
#timeSlotsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#timeSlotsContainer .slot-option {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 750;
    font-size: 14px;
    position: relative;
}

#timeSlotsContainer .slot-option::before {
    content: '\f017'; /* clock icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
}

#timeSlotsContainer .slot-option.selected {
    border-color: var(--primary) !important;
    background: var(--primary-light) !important;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.08) !important;
}

#timeSlotsContainer .slot-option.selected::before {
    color: var(--primary);
    font-weight: 900;
}

#timeSlotsContainer .slot-option::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
    flex-shrink: 0;
}

#timeSlotsContainer .slot-option.selected::after {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #ffffff;
}

/* Payment option box */
.payment-option {
    border: 1px solid var(--border-light);
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
}

.payment-option.selected i {
    color: var(--primary);
}

/* Summary and grand totals */
.pricing-summary {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-row.total {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    border-top: 1px dashed var(--border-light);
    padding-top: 8px;
    margin-top: 4px;
}

.btn-submit-booking {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.15);
}

.btn-submit-booking:hover {
    background: var(--primary-dark);
}

/* Success Card details */
.success-card {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    border: 1px solid rgba(52, 199, 89, 0.15);
}

.btn-wa-confirm {
    background: #34c759;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-wa-confirm:hover {
    background: #2cb44e;
}

/* Disabled states (iOS faded out style) */
.slot-option.disabled {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: transparent !important;
    color: var(--text-muted) !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

.btn-add-more-services:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-add-cart:active, .btn-submit-booking:active, .btn-action:active {
    transform: scale(0.96);
}

.promo-input-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-promo-apply {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* SweetAlert overrides for iOS Light style */
.swal2-popup {
    background: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
}

.swal2-title, .swal2-html-container {
    color: var(--text-primary) !important;
}

.swal2-confirm {
    background: var(--primary) !important;
    border-radius: 10px !important;
}

/* List boxes details inclusions */
.list-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.list-box-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-items {
    list-style: none;
}

.list-items li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.list-items li:last-child {
    margin-bottom: 0;
}

.list-items li i {
    margin-top: 3px;
    flex-shrink: 0;
}

.inc-icon { color: var(--success); }
.exc-icon { color: var(--danger); }

.floating-action-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
}

.admin-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.admin-header {
    background: #1c1c1e;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 18px;
    font-weight: 800;
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--danger);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.admin-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition);
}

.admin-tab.active {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-box {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.badge-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.status-pending { background: #fee2e2; color: var(--danger); }
.status-confirmed { background: var(--primary-light); color: var(--primary); }
.status-completed { background: var(--success-light); color: var(--success); }
.status-cancelled { background: rgba(0,0,0,0.05); color: var(--text-secondary); }

/* 2-Column Grid Layout for Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.services-grid .service-card {
    margin-bottom: 0;
    height: 100%;
}

.services-grid .service-img-container {
    height: 110px;
}

.services-grid .service-badge-duration,
.services-grid .service-badge-rating {
    top: 6px;
    padding: 3px 6px;
    font-size: 9px;
}

.services-grid .service-badge-duration {
    left: 6px;
}

.services-grid .service-badge-rating {
    right: 6px;
}

.services-grid .service-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.services-grid .view-link {
    font-size: 10px;
    margin-bottom: 4px;
}

.services-grid .service-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.services-grid .service-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
    margin-top: auto;
}

.services-grid .price-tag {
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}

.services-grid .btn-add-cart {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 6px;
}

/* Timeline tracking styles */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 15px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border-light);
    z-index: 1;
}

.timeline-step {
    position: relative;
    margin-bottom: 24px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -30px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f2f2f7;
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    transition: var(--transition);
}

.timeline-step.active .timeline-badge {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.timeline-step.active .timeline-title {
    color: var(--text-primary);
    font-weight: 800;
}

.timeline-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.timeline-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}
