/* ========================================
   Aromek Lavandería & Boutique
   Premium Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #849171;
    --color-primary-dark: #6b7a5a;
    --color-primary-light: #a3b08f;
    --color-accent: #D88A2C;
    --color-accent-dark: #c07a25;
    --color-accent-light: #f0a94d;
    --color-bg: #ECF3DF;
    --color-bg-dark: #dce8cc;
    --color-cream: #FAF8F5;
    --color-brown: #6B5B4B;
    --color-brown-light: #8B7B6B;
    --color-text: #2d3a25;
    --color-text-light: #6b7a5a;
    --color-white: #ffffff;
    --color-dark: #1a2115;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ---- Base ---- */
body {
    font-family: var(--font-sans);
    background-color: var(--color-white);
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--color-primary-dark);
}

/* ---- Buttons ---- */
.btn { border-radius: var(--radius-sm); font-weight: 500; letter-spacing: 0.3px; transition: all 0.3s; }

.btn-primary, .btn-aromek {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}
.btn-primary:hover, .btn-aromek:hover {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.7rem 2rem;
}
.btn-accent:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    border-width: 2px;
}
.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ---- Premium Navbar ---- */
.navbar-aromek {
    background-color: var(--color-white);
    box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0;
}
.navbar-aromek .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}
.navbar-aromek .navbar-brand img {
    height: 50px;
    width: auto;
}
.navbar-aromek .navbar-brand:hover { opacity: 0.85; }

/* Logo utility */
.brand-logo { height: 50px; width: auto; }
.brand-logo-sm { height: 36px; width: auto; }
.brand-logo-lg { height: 70px; width: auto; }
.brand-logo-xl { height: 90px; width: auto; }
.navbar-aromek .nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.navbar-aromek .nav-link:hover,
.navbar-aromek .nav-link.active { color: var(--color-primary); }

.btn-nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.5rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.btn-nav-cta:hover { background: var(--color-primary-dark); color: #fff !important; }

/* ---- Hero Carousel ---- */
.hero-carousel .carousel-item {
    height: 85vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107,122,90,0.75) 0%, rgba(45,58,37,0.6) 100%);
}
.hero-carousel .carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.4rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    max-width: 700px;
}
.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    max-width: 550px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-btns .btn {
    padding: 0.8rem 2.2rem;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0;
}
.hero-btns .btn-hero-primary { background: var(--color-primary); color: #fff; border: 2px solid var(--color-primary); }
.hero-btns .btn-hero-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.hero-btns .btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.hero-btns .btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%; opacity: 0.5;
}
.carousel-indicators .active { opacity: 1; background: var(--color-accent); }

/* ---- Section Titles (Premium) ---- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    display: block;
}
.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-style: italic;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.section-divider {
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.section-subtitle {
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Pricing Cards ---- */
.pricing-card {
    background: var(--color-white);
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    height: 100%;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--color-accent);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pricing-card h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.pricing-price {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}
.pricing-price span { font-size: 1rem; font-weight: 400; opacity: 0.7; }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.pricing-features li i { color: var(--color-primary); font-size: 1.1rem; }
.pricing-card.featured .pricing-features li i { color: var(--color-accent-light); }
.pricing-card .btn-pricing {
    width: 100%;
    padding: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0;
    border: 2px solid;
}

/* ---- Service Section (with images) ---- */
.services-premium { background: var(--color-white); }
.service-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}
.service-item:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.service-item-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--color-primary);
}
.service-item h5 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; }
.service-item .price-tag { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; }
.service-item p { font-size: 0.85rem; color: var(--color-text-light); margin: 0; }

.service-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.service-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Tracking Section ---- */
.tracking-section { background: var(--color-cream); }
.tracking-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.tracking-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0;
}
.tracking-status-item .check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.tracking-status-item .check.pending { background: #ddd; }

/* ---- Testimonials ---- */
.testimonials-section { background: var(--color-white); }
.testimonial-card {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-card.featured {
    background: var(--color-primary);
    color: #fff;
}
.testimonial-card blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.testimonial-card .author {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
}

/* ---- FAQ Accordion ---- */
.faq-section { background: var(--color-bg); }
.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
}
.faq-accordion .accordion-button {
    background: transparent;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 1.3rem 0;
    box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--color-primary); }
.faq-accordion .accordion-button::after { filter: brightness(0.5); }
.faq-accordion .accordion-body { padding: 0 0 1.3rem; color: var(--color-text-light); }

/* ---- Boutique Section ---- */
.boutique-section {
    background: linear-gradient(135deg, #3a3228 0%, #2a2218 100%);
    color: #fff;
    padding: 5rem 0;
}
.boutique-product {
    text-align: center;
    transition: all 0.3s;
}
.boutique-product:hover { transform: translateY(-5px); }
.boutique-product-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.05);
}
.boutique-product-img img { width: 100%; height: 100%; object-fit: cover; }
.boutique-product h5 {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
}

/* ---- WhatsApp Button ---- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

/* ---- Cards (generic) ---- */
.card-aromek {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    background: var(--color-white);
}
.card-aromek:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ---- Auth Forms ---- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--color-bg);
}
.auth-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}
.auth-card .auth-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}
.auth-card .auth-subtitle {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(132, 145, 113, 0.25);
}

/* ---- Traffic Light ---- */
.traffic-light {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 14px;
    background: #2d2d2d;
    border-radius: 20px;
}
.traffic-light .light {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.2;
    transition: opacity 0.3s, box-shadow 0.3s;
}
.light-red    { background-color: #dc3545; }
.light-orange { background-color: #fd7e14; }
.light-yellow { background-color: #ffc107; }
.light-green  { background-color: #28a745; }
.light-blue   { background-color: #17a2b8; }

.traffic-light .light.active { opacity: 1; animation: pulse-light 2s infinite; }
.traffic-light .light.passed { opacity: 0.55; }

@keyframes pulse-light {
    0%, 100% { box-shadow: 0 0 4px 1px currentColor; }
    50%      { box-shadow: 0 0 12px 3px currentColor; }
}

.light-red.active    { box-shadow: 0 0 8px #dc3545; color: #dc3545; }
.light-orange.active { box-shadow: 0 0 8px #fd7e14; color: #fd7e14; }
.light-yellow.active { box-shadow: 0 0 8px #ffc107; color: #ffc107; }
.light-green.active  { box-shadow: 0 0 8px #28a745; color: #28a745; }
.light-blue.active   { box-shadow: 0 0 8px #17a2b8; color: #17a2b8; }

.traffic-light-lg .light { width: 28px; height: 28px; cursor: pointer; }
.traffic-light-lg .light:hover { opacity: 0.8; }

/* Status badge */
.badge-status { padding: 0.4em 0.8em; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-recibido            { background-color: #dc3545; color: #fff; }
.badge-en_lavado           { background-color: #fd7e14; color: #fff; }
.badge-en_secado_planchado { background-color: #ffc107; color: #333; }
.badge-listo               { background-color: #28a745; color: #fff; }
.badge-entregado           { background-color: #17a2b8; color: #fff; }
.badge-delivered           { background-color: #17a2b8; color: #fff; }

/* ---- Admin Sidebar ---- */
.admin-sidebar {
    background: var(--color-primary);
    min-height: 100vh;
    padding: 1.5rem 0;
    position: fixed;
    width: 260px;
    z-index: 100;
}
.admin-sidebar .sidebar-brand {
    padding: 1rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 1rem;
    text-align: center;
}
.admin-sidebar .sidebar-brand img {
    height: 55px;
    width: auto;
    border-radius: 10px;
}
.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { color: var(--color-white); background: rgba(255, 255, 255, 0.1); }
.admin-sidebar .nav-link i { width: 20px; text-align: center; }
.admin-content { margin-left: 260px; padding: 2rem; min-height: 100vh; background: var(--color-bg); }

/* ---- Client Panel (Sidebar Layout) ---- */
.client-sidebar {
    background: linear-gradient(180deg, #2d3a25 0%, #1a2115 100%);
    min-height: 100vh;
    padding: 0;
    position: fixed;
    width: 260px;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.client-sidebar .sidebar-brand {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.client-sidebar .sidebar-brand img {
    height: 55px;
    width: auto;
    border-radius: 10px;
}
.client-sidebar .sidebar-brand small {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    display: block;
    margin-top: 4px;
}
.client-sidebar .sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}
.client-sidebar .nav-link {
    color: rgba(255,255,255,0.6);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
}
.client-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(255,255,255,0.2);
}
.client-sidebar .nav-link.active {
    color: #fff;
    background: rgba(132,145,113,0.25);
    border-left-color: var(--color-accent);
}
.client-sidebar .nav-link i { width: 20px; text-align: center; font-size: 1.05rem; }
.client-sidebar .nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.3em 0.6em;
}
.client-sidebar .sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.client-sidebar .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}
.client-sidebar .sidebar-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.client-sidebar .sidebar-user .user-info {
    overflow: hidden;
}
.client-sidebar .sidebar-user .user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-sidebar .sidebar-user .user-email {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Client Topbar */
.client-topbar {
    background: var(--color-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.client-topbar .topbar-greeting h5 {
    font-family: var(--font-serif);
    font-style: italic;
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
}
.client-topbar .topbar-greeting small {
    color: var(--color-text-light);
    font-size: 0.8rem;
}
.client-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.client-topbar .topbar-actions .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all 0.2s;
    position: relative;
}
.client-topbar .topbar-actions .btn-icon:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}
.client-topbar .topbar-actions .btn-icon .notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* Client Main & Footer */
.client-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f7f2;
    display: flex;
    flex-direction: column;
}
.client-main-content {
    flex: 1;
    padding: 1.5rem 2rem;
}
.client-footer {
    padding: 1rem 2rem;
    background: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.06);
    color: var(--color-text-light);
    font-size: 0.8rem;
}
.client-footer a { color: var(--color-primary); }
.client-footer a:hover { color: var(--color-primary-dark); }

/* Quick Actions */
.quick-action-card {
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    display: block;
    height: 100%;
}
.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
    border-color: var(--color-primary-light);
}
.quick-action-card.primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.quick-action-card.primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}
.quick-action-card .action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.quick-action-card .action-icon.bg-soft {
    background: var(--color-bg);
    color: var(--color-primary);
}
.quick-action-card.primary .action-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.quick-action-card h6 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.quick-action-card p {
    font-size: 0.78rem;
    margin: 0;
    opacity: 0.7;
}

/* Stat card with icon */
.stat-card-icon {
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-white);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.stat-card-icon:hover { box-shadow: var(--shadow-md); }
.stat-card-icon .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-card-icon .stat-info .stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}
.stat-card-icon .stat-info .stat-label {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* Service check card (for order form) */
.service-check {
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.service-check:hover { border-color: var(--color-primary-light); }
.service-check.selected {
    border-color: var(--color-primary);
    background: rgba(132,145,113,0.06);
}
.service-check i { font-size: 1.5rem; color: var(--color-primary); display: block; margin-bottom: 0.5rem; }
.service-check h6 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.service-check .price { color: var(--color-primary); font-weight: 600; font-size: 0.8rem; }
.service-check input[type="checkbox"] { display: none; }

/* Client content (legacy) */
.client-content { padding: 2rem 0; }

/* ---- Order Card ---- */
.order-card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--color-white);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-id { font-weight: 700; color: var(--color-primary); font-size: 1.1rem; }

/* ---- Stats Card ---- */
.stat-card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    background: var(--color-white);
    text-align: center;
}
.stat-card .stat-number { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { color: var(--color-text-light); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--color-bg-dark); }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary); border: 2px solid var(--color-white); }
.timeline-item.status-recibido::before            { background: #dc3545; }
.timeline-item.status-en_lavado::before           { background: #fd7e14; }
.timeline-item.status-en_secado_planchado::before { background: #ffc107; }
.timeline-item.status-listo::before               { background: #28a745; }

/* ---- Footer ---- */
.footer-aromek {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}
.footer-aromek h5 {
    font-family: var(--font-serif);
    color: var(--color-white);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1rem;
}
.footer-aromek a { color: rgba(255, 255, 255, 0.6); }
.footer-aromek a:hover { color: var(--color-accent); }

/* ---- Photo Gallery ---- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.photo-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-thumb:hover img { transform: scale(1.05); }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
}
@media (max-width: 992px) {
    .client-sidebar { display: none !important; }
    .client-main { margin-left: 0; }
    .client-topbar { display: none; }
    .client-main-content { padding: 1rem; }
}
@media (max-width: 768px) {
    .hero-carousel .carousel-item { height: 70vh; min-height: 450px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.8rem; }
    .pricing-card.featured { transform: scale(1); }
    .admin-sidebar { position: relative; width: 100%; min-height: auto; }
    .admin-content { margin-left: 0; }
    .traffic-light { gap: 6px; padding: 4px 10px; }
    .traffic-light .light { width: 14px; height: 14px; }
    .stat-card .stat-number { font-size: 2rem; }
    .client-main-content { padding: 1rem; }
    .client-footer { padding: 0.8rem 1rem; }
}

/* ============================================
   AROMEK PREMIUM 2.0 - New Styles
   ============================================ */

/* ---- Progress Bar ---- */
.order-progress-bar {
    background: #e9ecef;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    position: relative;
}
.order-progress-bar .progress-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.order-progress-bar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s infinite;
}
@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.progress-label .time-estimate {
    color: var(--color-accent);
    font-weight: 600;
}

/* ---- Reward Points Card ---- */
.rewards-card {
    background: linear-gradient(135deg, #2d3436 0%, #434a4d 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.rewards-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(216, 138, 44, 0.15);
}
.rewards-card .points-display {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
}
.rewards-card .tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
}
.rewards-progress {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-top: 0.75rem;
}
.rewards-progress .fill {
    height: 100%;
    border-radius: 10px;
    background: var(--color-accent);
    transition: width 1s ease;
}

/* ---- Rating Stars ---- */
.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 1.8rem;
    flex-direction: row-reverse;
    justify-content: center;
}
.star-rating input {
    display: none;
}
.star-rating label {
    cursor: pointer;
    color: #d0d0d0;
    transition: color 0.15s, transform 0.15s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--color-accent);
    transform: scale(1.1);
}
.star-display { color: var(--color-accent); }
.star-display .empty { color: #d0d0d0; }

/* ---- Alert Cards (Admin) ---- */
.alert-card {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.alert-card.alert-danger {
    border-color: #dc3545;
    background: #fff5f5;
}
.alert-card.alert-warning {
    border-color: #ffc107;
    background: #fffdf0;
}
.alert-card.alert-info {
    border-color: #0dcaf0;
    background: #f0fcff;
}
.alert-card .alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.alert-card.alert-danger .alert-icon { background: rgba(220,53,69,0.1); color: #dc3545; }
.alert-card.alert-warning .alert-icon { background: rgba(255,193,7,0.1); color: #ffc107; }
.alert-card.alert-info .alert-icon { background: rgba(13,202,240,0.1); color: #0dcaf0; }

/* ---- Stats Insight Card ---- */
.insight-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.insight-card:hover { transform: translateY(-2px); }
.insight-card .insight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.insight-card .insight-value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}
.insight-card .insight-label {
    font-size: 0.78rem;
    color: #6c757d;
}

/* ---- Mini Chart (CSS-only bar chart) ---- */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    padding-top: 4px;
}
.mini-chart .bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--color-primary);
    opacity: 0.7;
    transition: height 0.8s ease, opacity 0.2s;
    min-height: 4px;
    position: relative;
}
.mini-chart .bar:hover { opacity: 1; }
.mini-chart .bar-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #999;
    white-space: nowrap;
}

/* ---- Personalization Stats ---- */
.personal-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}
.personal-stat:not(:last-child) { border-bottom: 1px solid #f0f0f0; }
.personal-stat .ps-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.personal-stat .ps-value {
    font-weight: 700;
    font-size: 1rem;
}
.personal-stat .ps-label {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ---- Toast Notification ---- */
.aromek-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
}
.aromek-toast.show { transform: translateX(0); }
.aromek-toast.toast-success { background: linear-gradient(135deg, #28a745, #20c997); }
.aromek-toast.toast-error { background: linear-gradient(135deg, #dc3545, #e74c3c); }
.aromek-toast.toast-info { background: linear-gradient(135deg, var(--color-primary), #6b7d5e); }
.aromek-toast .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
}
.aromek-toast .toast-close:hover { color: #fff; }

/* ---- Confetti ---- */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9998;
    opacity: 0;
    animation: confettiFall 3s ease-in forwards;
}
@keyframes confettiFall {
    0% { opacity: 1; top: -10px; transform: rotate(0deg) scale(1); }
    100% { opacity: 0; top: 100vh; transform: rotate(720deg) scale(0.3); }
}

/* ---- Tutorial Overlay ---- */
.tutorial-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tutorial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.tutorial-card .tutorial-step { font-size: 0.7rem; color: var(--color-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.tutorial-card .tutorial-icon { font-size: 3rem; color: var(--color-primary); margin: 1rem 0; }
.tutorial-card h3 { font-family: var(--font-serif); font-style: italic; color: var(--color-primary); }
.tutorial-dots { display: flex; justify-content: center; gap: 6px; margin: 1.5rem 0 1rem; }
.tutorial-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; transition: all 0.3s; }
.tutorial-dots .dot.active { background: var(--color-accent); width: 24px; border-radius: 4px; }
.tutorial-actions { display: flex; justify-content: center; gap: 0.75rem; }

/* ---- Tooltip ---- */
.aromek-tooltip {
    position: relative;
    cursor: help;
}
.aromek-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #333;
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
}
.aromek-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ---- Smooth Status Transitions ---- */
.status-transition { animation: statusPulse 0.6s ease; }
@keyframes statusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(216,138,44,0.3); }
    100% { transform: scale(1); }
}

/* ---- Pricing Estimator ---- */
.price-estimator {
    background: linear-gradient(135deg, var(--color-bg), #fff);
    border: 2px dashed var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: center;
}
.price-estimator .estimate-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}
.price-estimator .estimate-note {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
}

/* ---- Rating Modal ---- */
.rating-modal-content {
    text-align: center;
    padding: 1rem;
}
.rating-modal-content h4 {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-primary);
}

/* ---- Animate number count ---- */
.animate-count {
    transition: all 0.5s ease;
}

/* ---- Skeleton loading ---- */
@keyframes skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ============================================================
   MOBILE-FIRST APP REDESIGN — Client Panel
   ============================================================ */

:root {
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-height: 64px;
}

/* ---- Mobile Header ---- */
.client-mobile-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 56px;
}
.client-mobile-header .brand-logo-sm { height: 32px; }
.btn-icon-mobile {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: var(--color-text);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.btn-icon-mobile .notification-dot {
    position: absolute; top: 10px; right: 10px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-accent);
}

/* ---- Bottom Navigation Bar ---- */
.client-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.08);
    height: var(--bottom-nav-height);
    padding-bottom: var(--safe-area-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bottom-nav-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1; padding: 6px 0;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.65rem; font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    border: none; background: transparent;
    min-height: 44px;
}
.bottom-nav-item i {
    font-size: 1.35rem; margin-bottom: 2px;
    transition: transform 0.2s;
}
.bottom-nav-item.active { color: var(--color-primary); }
.bottom-nav-item.active i { transform: scale(1.1); }

/* Main content bottom padding for bottom nav */
@media (max-width: 991.98px) {
    .client-main {
        margin-left: 0;
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 8px);
    }
    .client-main-content { padding: 16px; }
}

/* ---- Bottom Sheet ---- */
.bottom-sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1050;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.bottom-sheet-overlay.show { opacity: 1; pointer-events: auto; }
.bottom-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1051;
    background: var(--color-white);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: var(--safe-area-bottom);
    max-height: 60vh;
}
.bottom-sheet.show { transform: translateY(0); }
.bottom-sheet-handle {
    width: 36px; height: 4px; border-radius: 2px;
    background: #d0d0d0; margin: 12px auto;
}
.bottom-sheet-content { padding: 0 20px 20px; }
.sheet-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0; color: var(--color-text);
    text-decoration: none; font-size: 0.95rem; font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}
.sheet-item:last-child { border-bottom: none; }
.sheet-item i { font-size: 1.2rem; width: 24px; text-align: center; }

/* ---- Mobile Greeting ---- */
.mobile-greeting { padding: 16px 0 8px; }
.greeting-text {
    font-family: var(--font-serif); font-style: italic;
    font-size: 1.3rem; color: var(--color-text); margin-bottom: 2px;
}
.greeting-date { font-size: 0.8rem; color: var(--color-text-light); margin: 0; }
.wave-emoji {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}
@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

/* ---- Horizontal Scroll Stats ---- */
.stats-scroll-container {
    margin: 0 -16px 16px; padding: 0 16px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stats-scroll-container::-webkit-scrollbar { display: none; }
.stats-scroll {
    display: flex; gap: 12px;
    scroll-snap-type: x mandatory;
}
.stat-pill {
    flex: 0 0 auto; min-width: 120px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 14px 16px; text-align: center;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
}
.stat-pill-icon { font-size: 1.2rem; margin-bottom: 4px; }
.stat-pill-number { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat-pill-label { font-size: 0.7rem; color: var(--color-text-light); margin-top: 2px; }

@media (min-width: 992px) {
    .stats-scroll-container { margin: 0 0 16px; padding: 0; overflow: visible; }
    .stats-scroll { display: grid; grid-template-columns: repeat(4, 1fr); }
    .stat-pill { min-width: unset; }
}

/* ---- Primary CTA Button ---- */
.primary-cta-btn {
    display: flex; align-items: center; gap: 16px;
    background: var(--color-primary); color: #fff;
    text-decoration: none; padding: 16px 20px;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(132,145,113,0.3);
}
.primary-cta-btn:hover, .primary-cta-btn:active {
    background: var(--color-primary-dark); color: #fff;
    transform: translateY(-1px);
}
.cta-icon-wrap {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.cta-text { flex: 1; }
.cta-text strong { display: block; font-size: 1rem; }
.cta-text span { font-size: 0.8rem; opacity: 0.85; }
.cta-arrow { font-size: 1.2rem; opacity: 0.7; }

/* ---- Unrated Banner ---- */
.unrated-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: #fffdf0;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}
.unrated-banner-icon { font-size: 1.3rem; color: var(--color-accent); flex-shrink: 0; }
.unrated-banner-text { flex-shrink: 0; }
.unrated-banner-text strong { display: block; font-size: 0.85rem; }
.unrated-banner-text span { font-size: 0.75rem; color: var(--color-text-light); }
.unrated-banner-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---- Horizontal Scroll Order Cards ---- */
.orders-scroll-container {
    margin: 0 -16px; padding: 0 16px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.orders-scroll-container::-webkit-scrollbar { display: none; }
.orders-scroll {
    display: flex; gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}
.order-scroll-card {
    flex: 0 0 280px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px; box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    text-decoration: none; color: var(--color-text);
    transition: box-shadow 0.2s;
}
.order-scroll-card:hover { box-shadow: var(--shadow-md); color: var(--color-text); }
.osc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.osc-traffic { text-align: center; margin-bottom: 10px; }
.osc-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.osc-progress-bar { flex: 1; height: 6px; background: #e9ecef; border-radius: 20px; overflow: hidden; }
.osc-progress-bar .progress-fill {
    height: 100%; border-radius: 20px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: width 1s ease;
}
.osc-progress-text { font-size: 0.75rem; font-weight: 600; color: var(--color-primary); }
.osc-footer { display: flex; justify-content: space-between; font-size: 0.8rem; }

@media (min-width: 992px) {
    .orders-scroll-container { margin: 0; padding: 0; overflow: visible; }
    .orders-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .order-scroll-card { flex: unset; }
}

/* ---- Section Header Row ---- */
.section-header-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 12px;
}
.section-header-row h5 {
    font-family: var(--font-serif); font-style: italic;
    margin: 0; font-size: 1.1rem;
}

/* ---- Order History Card List ---- */
.page-header-mobile {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 16px;
}
.page-header-mobile h4 {
    font-family: var(--font-serif); font-style: italic;
    color: var(--color-primary); margin: 0; font-size: 1.2rem;
}
.filter-pills {
    display: flex; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 4px;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
    flex: 0 0 auto; padding: 8px 20px;
    border-radius: 20px; border: 2px solid #e0e0e0;
    background: var(--color-white);
    font-size: 0.85rem; font-weight: 500; color: var(--color-text);
    cursor: pointer; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; display: flex; align-items: center;
}
.filter-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary); color: #fff;
}
.order-list-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--color-white);
    border-radius: var(--radius-md); margin-bottom: 8px;
    box-shadow: var(--shadow-sm); text-decoration: none;
    color: var(--color-text); transition: box-shadow 0.2s;
    min-height: 72px;
}
.order-list-card:active { background: var(--color-bg); color: var(--color-text); }
.order-list-card:hover { color: var(--color-text); }
.olc-left { flex-shrink: 0; }
.olc-id { font-weight: 700; font-size: 0.95rem; color: var(--color-primary); }
.olc-date { font-size: 0.72rem; color: var(--color-text-light); }
.olc-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.olc-traffic-mini { transform: scale(0.75); transform-origin: center; }
.olc-right { flex-shrink: 0; text-align: right; display: flex; align-items: center; gap: 8px; }
.olc-price { font-weight: 600; font-size: 0.9rem; }
.olc-arrow { color: var(--color-text-light); font-size: 1rem; }
.ptr-hint {
    text-align: center; font-size: 0.75rem;
    color: var(--color-text-light); padding: 8px 0; opacity: 0.5;
}

/* ---- Order Detail Sticky Header ---- */
.order-detail-header {
    position: sticky; top: 56px; z-index: 100;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin: -16px -16px 16px;
}
@media (min-width: 992px) {
    .order-detail-header { position: relative; top: auto; margin: 0 0 16px; border-radius: var(--radius-md); }
}
.detail-back {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--color-text);
    font-size: 1.2rem; text-decoration: none;
}
.detail-back:active { background: var(--color-bg); }
.detail-header-center { flex: 1; }
.detail-order-id { font-weight: 700; font-size: 1.05rem; display: block; color: var(--color-text); }
.detail-price { font-weight: 700; color: var(--color-accent); font-size: 1.1rem; }

/* ---- Progress Stepper ---- */
.progress-stepper {
    display: flex; align-items: flex-start;
    justify-content: center; padding: 20px 8px;
    overflow-x: auto; gap: 0;
}
.step-item {
    display: flex; flex-direction: column;
    align-items: center; flex: 0 0 auto; min-width: 56px;
}
.step-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; background: #e9ecef; color: #999;
    transition: all 0.3s;
}
.step-item.completed .step-dot { background: var(--color-primary); color: #fff; }
.step-item.current .step-dot { background: var(--color-accent); color: #fff; animation: stepPulse 2s infinite; }
.step-item.pending .step-dot { background: #e9ecef; color: #ccc; }
@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(216,138,44,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(216,138,44,0); }
}
.step-label { font-size: 0.65rem; margin-top: 6px; color: var(--color-text-light); text-align: center; }
.step-item.current .step-label { color: var(--color-accent); font-weight: 600; }
.step-item.completed .step-label { color: var(--color-primary); }
.step-line {
    flex: 1; height: 2px; background: #e9ecef;
    margin-top: 18px; min-width: 20px;
}
.step-line.completed { background: var(--color-primary); }

/* ---- Accordion Detail Sections ---- */
.detail-accordion {
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 8px; box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.accordion-trigger {
    width: 100%; display: flex;
    align-items: center; justify-content: space-between;
    padding: 16px; border: none; background: transparent;
    font-weight: 600; font-size: 0.95rem; color: var(--color-text);
    -webkit-tap-highlight-color: transparent; min-height: 52px;
}
.accordion-trigger i:first-child { margin-right: 8px; color: var(--color-primary); }
.accordion-trigger .collapse-icon { transition: transform 0.3s; color: var(--color-text-light); }
.accordion-trigger[aria-expanded="true"] .collapse-icon,
.accordion-trigger:not(.collapsed) .collapse-icon { transform: rotate(180deg); }
.accordion-body-inner { padding: 0 16px 16px; }

.garment-item {
    display: grid; grid-template-columns: 1fr auto auto;
    gap: 4px 8px; padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.85rem; align-items: center;
}
.garment-item:last-child { border-bottom: none; }
.gi-name { font-weight: 600; grid-column: 1; }
.gi-service { font-size: 0.75rem; color: var(--color-text-light); grid-column: 1; }
.gi-qty { text-align: right; color: var(--color-text-light); }
.gi-price { text-align: right; font-weight: 600; }

/* ---- Photo Scroll ---- */
.photo-scroll-container {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px; scrollbar-width: none;
}
.photo-scroll-container::-webkit-scrollbar { display: none; }
.photo-scroll {
    display: flex; gap: 10px;
    scroll-snap-type: x mandatory;
}
.photo-scroll-item {
    flex: 0 0 140px; height: 140px;
    border-radius: var(--radius-sm); overflow: hidden;
    cursor: pointer; scroll-snap-align: start;
}
.photo-scroll-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Floating Action Button (Rating) ---- */
.fab-rating {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
    right: 16px;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--color-accent); color: #fff;
    border: none; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(216,138,44,0.4);
    z-index: 1030;
    animation: fabPulse 3s infinite;
    -webkit-tap-highlight-color: transparent;
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(216,138,44,0.4); }
    50% { box-shadow: 0 4px 25px rgba(216,138,44,0.6); }
}
@media (min-width: 992px) {
    .fab-rating { bottom: 24px; }
}

/* ---- Wizard Multi-Step ---- */
.wizard-container { padding-bottom: 80px; }
.wizard-progress {
    display: flex; align-items: center;
    justify-content: center; gap: 0;
    padding: 16px 0 24px;
}
.wizard-step-indicator {
    display: flex; flex-direction: column;
    align-items: center; flex: 0 0 auto;
}
.wsi-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e9ecef; color: #999;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
    transition: all 0.3s;
}
.wizard-step-indicator.active .wsi-dot,
.wizard-step-indicator.completed .wsi-dot {
    background: var(--color-primary); color: #fff;
}
.wizard-step-indicator span {
    font-size: 0.6rem; margin-top: 4px; color: var(--color-text-light);
}
.wizard-step-indicator.active span { color: var(--color-primary); font-weight: 600; }
.wizard-step-line {
    flex: 1; height: 2px; background: #e9ecef;
    margin: 0 8px; margin-bottom: 18px;
}
.wizard-step-line.completed { background: var(--color-primary); }
.wizard-step {
    display: none;
    animation: wizardSlideIn 0.35s ease;
}
.wizard-step.active { display: block; }
@keyframes wizardSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.wizard-step-title { text-align: center; margin-bottom: 24px; }
.wizard-step-title i {
    font-size: 2rem; color: var(--color-primary);
    display: block; margin-bottom: 8px;
}
.wizard-step-title h5 {
    font-family: var(--font-serif); font-style: italic; color: var(--color-primary);
}
.wizard-nav {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    left: 0; right: 0;
    display: flex; gap: 12px;
    padding: 12px 16px;
    background: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 1035;
}
@media (min-width: 992px) {
    .wizard-nav {
        position: relative; bottom: auto;
        max-width: 600px; margin: 24px auto 0;
        border-top: none; padding: 0;
    }
}
.wizard-prev, .wizard-next, .wizard-submit {
    flex: 1; min-height: 48px;
    font-weight: 600; border-radius: var(--radius-sm);
}

/* ---- Service Cards Mobile ---- */
.services-grid-mobile {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.service-card-mobile {
    border: 2px solid #eee; border-radius: var(--radius-md);
    padding: 16px 12px; text-align: center;
    cursor: pointer; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 100px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.service-card-mobile.selected,
.service-card-mobile:has(:checked) {
    border-color: var(--color-primary);
    background: rgba(132,145,113,0.08);
}
.service-card-mobile input[type="checkbox"] { display: none; }
.scm-icon { font-size: 1.5rem; color: var(--color-primary); margin-bottom: 6px; }
.scm-name { font-weight: 600; font-size: 0.82rem; margin-bottom: 2px; }
.scm-price { font-size: 0.72rem; color: var(--color-accent); font-weight: 600; }

/* ---- Profile Mobile ---- */
.profile-header-mobile { text-align: center; padding: 24px 0; }
.profile-avatar-lg {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
    margin: 0 auto 12px;
}
.profile-name {
    font-family: var(--font-serif); font-size: 1.3rem;
    color: var(--color-text); margin-bottom: 2px;
}
.profile-email { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 10px; }
.profile-tier-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 14px; border-radius: 20px;
    color: #fff; font-size: 0.75rem; font-weight: 600;
}
.profile-section { margin-bottom: 20px; }
.profile-section-label {
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--color-text-light);
    font-weight: 600; margin-bottom: 12px; padding-left: 4px;
}

/* ---- Collapsible Section ---- */
.collapsible-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 16px;
    background: var(--color-white); border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-serif); font-style: italic;
    font-size: 1rem; color: var(--color-primary);
    box-shadow: var(--shadow-sm); min-height: 52px;
    -webkit-tap-highlight-color: transparent;
}
.collapsible-trigger .collapse-icon { transition: transform 0.3s; color: var(--color-text-light); }
.collapsible-trigger[aria-expanded="true"] .collapse-icon,
.collapsible-trigger:not(.collapsed) .collapse-icon { transform: rotate(180deg); }

/* ---- Review Card ---- */
.review-card {
    background: var(--color-bg);
    border-radius: var(--radius-md); padding: 16px;
}
.review-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.review-row:last-child { border-bottom: none; }
.review-row .label { color: var(--color-text-light); }
.review-row .value { font-weight: 600; text-align: right; max-width: 60%; }

/* ---- Page Transition ---- */
@media (max-width: 991.98px) {
    .client-main-content { animation: pageSlideIn 0.3s ease; }
}
@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Touch-Friendly Forms ---- */
@media (max-width: 991.98px) {
    .client-main .form-control,
    .client-main .form-select { min-height: 48px; font-size: 16px; }
    .client-main .form-control-lg,
    .client-main .form-select-lg { min-height: 52px; }
    .client-main .btn { min-height: 44px; }
}

/* ---- Toast Mobile Repositioning ---- */
@media (max-width: 991.98px) {
    .aromek-toast {
        top: auto !important;
        bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 12px) !important;
        left: 16px !important; right: 16px !important;
        min-width: unset !important; max-width: unset !important;
    }
}

/* ---- Rewards on mobile profile order ---- */
@media (max-width: 991.98px) {
    .profile-rewards-col { order: -1; }
}

/* ========== GPS LOCATION BUTTON ========== */
.gps-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 14px 16px;
    background: var(--color-bg); border: 2px dashed var(--color-primary-light);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all 0.3s ease; color: var(--color-primary);
    font-size: 0.9rem; font-weight: 500;
}
.gps-btn:hover { border-color: var(--color-accent); background: #f9f5ec; }
.gps-btn .gps-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-primary-light); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    flex-shrink: 0; transition: all 0.3s ease;
}
.gps-btn .gps-text small { color: var(--color-text-muted); font-weight: 400; }
.gps-btn.loading { pointer-events: none; opacity: 0.7; }
.gps-btn.loading .gps-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gps-btn.captured {
    border-color: #28a745; border-style: solid; background: #f0faf3;
}
.gps-btn.captured .gps-icon { background: #28a745; }
.gps-btn.error { border-color: #dc3545; background: #fef5f5; }
.gps-btn.error .gps-icon { background: #dc3545; }
.gps-accuracy { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px; }

/* ========== ADMIN: LOCATION CARD + WHATSAPP ========== */
.location-delivery-card {
    background: var(--color-bg); border-radius: var(--radius-sm);
    padding: 20px; margin-top: 16px;
}
.location-delivery-card h6 {
    font-family: var(--font-serif); font-style: italic;
    color: var(--color-primary); margin-bottom: 12px;
}
.location-map-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: #fff; border-radius: 8px;
    text-decoration: none; color: var(--color-primary);
    border: 1px solid #e0e0e0; transition: all 0.2s ease; margin-bottom: 12px;
}
.location-map-link:hover { border-color: var(--color-accent); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.location-map-link .map-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #ea4335; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    flex-shrink: 0;
}
.location-map-link .map-info { flex: 1; }
.location-map-link .map-info .label { font-weight: 600; font-size: 0.9rem; }
.location-map-link .map-info .coords { font-size: 0.75rem; color: var(--color-text-muted); }

.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; border: none;
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease;
    text-decoration: none;
}
.btn-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-1px); }
.btn-whatsapp i { font-size: 1.2rem; }

.gps-indicator {
    color: #28a745; font-size: 0.8rem; margin-left: 4px;
    vertical-align: middle;
}

/* ========== DRIVER SELECTION CARDS ========== */
.driver-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.driver-select-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.driver-select-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.driver-select-card.selected {
    border-color: var(--color-primary);
    background: rgba(132,145,113,0.08);
    box-shadow: 0 0 0 3px rgba(132,145,113,0.2);
}
.driver-select-photo {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    border: 3px solid var(--color-bg);
}
.driver-select-card.selected .driver-select-photo {
    border-color: var(--color-primary);
}
.driver-select-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.5rem;
    margin: 0 auto 8px;
    border: 3px solid var(--color-bg);
}
.driver-select-card.selected .driver-select-avatar {
    border-color: var(--color-primary);
    background: var(--color-primary);
}
.driver-select-name {
    font-weight: 600; font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.driver-select-meta {
    font-size: 0.72rem;
    color: var(--color-text-light);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.driver-select-meta i { font-size: 0.7rem; }

/* Branch Selector Pills (Landing Page) */
.branch-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--color-primary-light);
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.branch-pill:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.branch-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(132,145,113,0.3);
}
.branch-pill.active:hover {
    background: var(--color-primary);
    color: #fff;
}
.branch-pill i { font-size: 0.8rem; }
.branch-pill small { font-size: 0.75rem; }

/* Visit Counter Float */
.visit-counter-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(132,145,113,0.4);
    z-index: 1050;
    animation: visitFloat 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.visit-counter-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(132,145,113,0.5);
}
.visit-counter-float i {
    font-size: 1.1rem;
    opacity: 0.85;
}
.visit-counter-float small {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@keyframes visitFloat {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
