/**
 * CONSTRONEX — Customer Web App (PWA)
 */

:root {
    --c-primary: #fe8a09;
    --c-dark: #012c6c;
    --c-bg: #f4f5f7;
    --c-surface: #ffffff;
    --c-text: #012c6c;
    --c-muted: #6b7280;
    --c-border: rgba(1, 44, 108, 0.08);
    --c-danger: #ef4444;
    --c-success: #22c55e;
    --header-h: 56px;
    --bottom-nav-h: 78px;
    --bottom-nav-offset: 0px;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(1, 44, 108, 0.08);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
}

.customer-app-body {
    overscroll-behavior: none;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ── Auth (login / register) ── */
.customer-auth-body {
    min-height: 100dvh;
    margin: 0;
    background: #010d22;
}

.customer-auth {
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.customer-auth--single {
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(160deg, #012c6c 0%, #011f4f 50%, #010d22 100%);
}

.customer-auth__shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    min-height: 100dvh;
    margin: 0 auto;
}

.customer-auth__hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 280px;
}

.customer-auth__hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.customer-auth__hero:hover .customer-auth__hero-bg {
    transform: scale(1.1);
}

.customer-auth__hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(1, 44, 108, 0.55) 0%, rgba(1, 13, 34, 0.92) 100%),
        linear-gradient(90deg, rgba(254, 138, 9, 0.12) 0%, transparent 50%);
}

.customer-auth__hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(254, 138, 9, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(254, 138, 9, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
}

.customer-auth__hero-content {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    color: #fff;
}

.customer-auth__badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fe8a09;
    background: rgba(254, 138, 9, 0.15);
    border: 1px solid rgba(254, 138, 9, 0.35);
    border-radius: 100px;
}

.customer-auth__hero-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.customer-auth__hero-text {
    margin: 0 0 28px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    max-width: 380px;
}

.customer-auth__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customer-auth__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.customer-auth__features .material-icons {
    font-size: 20px;
    color: #fe8a09;
    background: rgba(254, 138, 9, 0.15);
    border-radius: 8px;
    padding: 4px;
}

.customer-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
        linear-gradient(160deg, #012c6c 0%, #011f4f 50%, #010d22 100%);
    position: relative;
    overflow: hidden;
}

.customer-auth__panel::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(254, 138, 9, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.customer-auth__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(1, 44, 108, 0.06) inset;
}

.customer-auth__logo {
    max-height: 52px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.customer-auth__header h1 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--c-dark);
    letter-spacing: -0.02em;
}

.customer-auth__header p {
    margin: 0 0 28px;
    color: var(--c-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.customer-field { margin-bottom: 18px; }

.customer-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--c-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.customer-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.customer-input-wrap__icon {
    position: absolute;
    left: 12px;
    font-size: 20px !important;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.customer-input-wrap__toggle {
    position: absolute;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.customer-input-wrap__toggle:hover {
    color: var(--c-primary);
    background: rgba(254, 138, 9, 0.1);
}

.customer-input-wrap__toggle .material-icons { font-size: 20px; }

.customer-field input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid rgba(1, 44, 108, 0.12);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8fafc;
    color: var(--c-dark);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.customer-field input::placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
}

.customer-field input:focus {
    outline: none;
    border-color: var(--c-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(254, 138, 9, 0.18);
}

.customer-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.customer-btn--glow {
    box-shadow: 0 4px 20px rgba(254, 138, 9, 0.4);
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
}

.customer-btn--glow:hover {
    box-shadow: 0 6px 28px rgba(254, 138, 9, 0.5);
}

.customer-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px;
    color: var(--c-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.customer-auth__divider::before,
.customer-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

@media (max-width: 860px) {
    .customer-auth__shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .customer-auth__hero {
        min-height: 200px;
        align-items: center;
    }

    .customer-auth__hero-content {
        padding: 28px 24px;
    }

    .customer-auth__hero-title {
        font-size: 1.25rem;
    }

    .customer-auth__hero-text,
    .customer-auth__features {
        display: none;
    }

    .customer-auth__panel {
        padding: 24px 16px 32px;
        align-items: flex-start;
    }

    .customer-auth__card {
        padding: 28px 22px 22px;
        border-radius: 18px;
    }
}

.customer-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.customer-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--c-muted);
}

.customer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.customer-btn:active { transform: scale(0.98); }
.customer-btn--primary {
    background: var(--c-primary);
    color: var(--c-dark);
}
.customer-btn--dark {
    background: var(--c-dark);
    color: #fff;
}
.customer-btn--outline {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text);
}
.customer-btn--block { width: 100%; }
.customer-btn--sm { padding: 8px 14px; font-size: 0.85rem; }

.customer-auth__footer {
    text-align: center;
    margin: 0;
    font-size: 0.875rem;
    color: var(--c-muted);
}

.customer-auth__footer a {
    color: var(--c-primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.customer-auth__footer a:hover {
    text-decoration: underline;
}

.customer-auth__skip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-muted);
    text-decoration: none;
    border: 1.5px dashed rgba(1, 44, 108, 0.15);
    border-radius: 12px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.customer-auth__skip .material-icons {
    font-size: 18px;
}

.customer-auth__skip:hover {
    color: var(--c-dark);
    border-color: var(--c-primary);
    background: rgba(254, 138, 9, 0.06);
}

/* App shell */
#customer-app {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 768px;
    margin: 0 auto;
    background: var(--c-bg);
    position: relative;
}

.customer-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    padding: 0 12px;
    padding-top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}

.customer-header__back {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--c-dark);
    border-radius: 8px;
}
.customer-header__back:hover { background: var(--c-bg); }

.customer-header__title {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.customer-header__icon {
    position: relative;
    display: flex;
    padding: 8px;
    color: var(--c-dark);
    text-decoration: none;
    border-radius: 8px;
}

.customer-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--c-primary);
    color: var(--c-dark);
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-main {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));
}

/* ── Bottom nav — dock CONSTRONEX ── */
.customer-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, #013a82 0%, #012c6c 45%, #011a42 100%);
    border: none;
    border-top: 3px solid #fe8a09;
    border-radius: 22px 22px 0 0;
    box-shadow:
        0 -12px 40px rgba(1, 44, 108, 0.45),
        0 -4px 0 rgba(254, 138, 9, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.customer-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 90% 80% at 50% -20%, rgba(254, 138, 9, 0.22), transparent 55%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 24px 100%;
    pointer-events: none;
}

.customer-bottom-nav__item {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 0 2px 2px;
    min-height: 58px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease;
}

.customer-bottom-nav__item:active {
    transform: scale(0.92);
}

.customer-bottom-nav__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 44px;
    border-radius: 16px;
    transition:
        transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
        background 0.28s ease,
        box-shadow 0.28s ease;
}

.customer-bottom-nav__item .material-icons {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.25s ease, transform 0.25s ease;
}

.customer-bottom-nav__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease, font-weight 0.2s, transform 0.25s ease;
}

.customer-bottom-nav__indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fe8a09;
    box-shadow: 0 0 10px rgba(254, 138, 9, 0.9);
    transform: translateX(-50%) scale(0);
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Item ativo — pill laranja elevada */
.customer-bottom-nav__item.active .customer-bottom-nav__icon {
    transform: translateY(-8px);
    background: linear-gradient(145deg, #ffb84d 0%, #fe8a09 45%, #e67a00 100%);
    box-shadow:
        0 10px 28px rgba(254, 138, 9, 0.55),
        0 4px 12px rgba(1, 44, 108, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.customer-bottom-nav__item.active .material-icons {
    color: #fff;
    transform: scale(1.08);
    filter: drop-shadow(0 1px 2px rgba(1, 44, 108, 0.2));
}

.customer-bottom-nav__item.active .customer-bottom-nav__label {
    color: #fe8a09;
    font-weight: 800;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(254, 138, 9, 0.35);
}

.customer-bottom-nav__item.active .customer-bottom-nav__indicator {
    transform: translateX(-50%) scale(1);
}

/* Loading */
.customer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--c-muted);
}
.customer-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--c-border);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards & lists */
.customer-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.customer-card {
    background: var(--c-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}
.customer-card:active { transform: scale(0.98); }

.customer-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--c-bg);
}

.customer-card__body { padding: 12px; }
.customer-card__title {
    margin: 0 0 4px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.customer-card__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-dark);
}

/* Cards de tipo de serviço — ícone PNG */
.customer-card--icon {
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid rgba(1, 44, 108, 0.08);
}

.customer-card--icon .customer-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 0.5rem 0.75rem 0.25rem;
    background: transparent;
    border-bottom: none;
    position: relative;
}

.customer-card--icon .customer-card__icon-wrap::after {
    display: none;
}

.customer-card--icon .customer-card__icon-wrap .material-icons,
.customer-card--icon .customer-card__icon-fallback {
    font-size: 3.5rem;
    color: var(--c-dark);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-card--icon .customer-card__icon-img {
    width: 92%;
    height: 92%;
    max-width: 148px;
    max-height: 148px;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.customer-card--icon .customer-card__body {
    padding: 4px 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customer-card--icon .customer-card__title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-dark);
    -webkit-line-clamp: 3;
}

.customer-card--icon .customer-card__sub {
    font-size: 0.7rem;
    margin-top: 2px;
}

.customer-card--icon .customer-card__hint {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.75rem;
}

.customer-card--store .customer-card__img--logo {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    padding: 16px;
    background: #fff;
}

.customer-card--product .customer-card__price small {
    font-weight: 500;
    color: var(--c-muted);
}

.customer-store-hero {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--c-surface);
    border-radius: var(--c-radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--c-shadow);
}

.customer-store-hero__logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.customer-store-hero__name {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--c-dark);
}

.customer-store-hero__desc,
.customer-store-hero__addr {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--c-muted);
}

.customer-store-hero__addr .material-icons {
    font-size: 16px;
    vertical-align: middle;
}

.customer-store-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.customer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.customer-btn--primary {
    background: var(--c-primary);
    color: #fff;
}

.customer-btn--outline {
    border: 1px solid var(--c-border);
    color: var(--c-dark);
}

.customer-chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.customer-chip-scroll::-webkit-scrollbar { display: none; }

.customer-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.customer-chip.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    font-weight: 700;
}

.customer-banner {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/7;
    background: var(--c-dark);
}
.customer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.customer-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
}

.customer-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--c-surface);
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}
.customer-list-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(254, 138, 9, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-dark);
}
.customer-list-item__content { flex: 1; min-width: 0; }
.customer-list-item__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.customer-list-item__sub {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--c-muted);
}

.customer-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.customer-status--pending { background: #fef3c7; color: #92400e; }
.customer-status--accepted { background: #dbeafe; color: #1e40af; }
.customer-status--ongoing { background: #e0e7ff; color: #3730a3; }
.customer-status--completed { background: #d1fae5; color: #065f46; }
.customer-status--canceled { background: #fee2e2; color: #991b1b; }

.customer-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--c-muted);
}
.customer-empty .material-icons {
    font-size: 48px;
    opacity: 0.4;
    margin-bottom: 12px;
}

.customer-detail-hero {
    border-radius: var(--radius);
    overflow: hidden;
    margin: -16px -16px 16px;
    aspect-ratio: 16/10;
    background: var(--c-bg);
}
.customer-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.customer-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--c-bg);
    border-radius: 10px;
    padding: 4px;
}
.customer-qty-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--c-surface);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}

.customer-cart-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--c-surface);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}
.customer-cart-item__img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--c-bg);
}
.customer-cart-item__info { flex: 1; }
.customer-cart-item__name {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 600;
}
.customer-cart-footer {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--bottom-nav-offset) + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    padding: 12px 16px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 90;
}

.customer-checkout-summary {
    background: var(--c-surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.customer-checkout-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--c-border);
}
.customer-checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    font-size: 1.05rem;
    font-weight: 700;
}
.customer-checkout-form {
    background: var(--c-surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.customer-checkout-submit {
    margin-top: 8px;
}
.customer-booking-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.customer-profile-header {
    text-align: center;
    padding: 24px 16px;
    background: var(--c-surface);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.customer-profile-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--c-primary);
}

.customer-menu {
    background: var(--c-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.customer-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.9rem;
    font-weight: 500;
}
.customer-menu__logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: none;
    background: none;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}
.customer-menu a:last-child,
.customer-menu__logout { border-bottom: none; }
.customer-menu a .material-icons,
.customer-menu__logout .material-icons { color: var(--c-muted); }

.customer-chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}
.customer-chat-thread {
    min-height: 50vh;
    margin-bottom: 70px;
    padding-bottom: 8px;
}
.customer-chat-compose {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--bottom-nav-offset) + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    padding: 10px 16px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    display: flex;
    gap: 8px;
    z-index: 90;
}
.customer-chat-compose input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}
.customer-chat-bubble--sent {
    background: var(--c-primary);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.customer-chat-bubble--received {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-bottom-left-radius: 4px;
}

.customer-form-group {
    margin-bottom: 16px;
}
.customer-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--c-muted);
}
.customer-form-group input,
.customer-form-group select,
.customer-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

.customer-toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--bottom-nav-offset) + 24px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    z-index: 200;
    animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Provider list & profile */
.customer-filter-row {
    margin-bottom: 12px;
}
.customer-select-sm {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--c-surface);
    color: var(--c-text);
}
.customer-provider-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.customer-provider-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}
.customer-provider-card:active { transform: scale(0.99); }
.customer-provider-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--c-bg);
}
.customer-provider-card__body { flex: 1; min-width: 0; }
.customer-provider-card__name {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.customer-provider-card__title {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: var(--c-primary);
    font-weight: 600;
}
.customer-provider-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--c-muted);
}
.customer-provider-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.customer-provider-card__meta .material-icons { font-size: 14px; color: var(--c-primary); }
.customer-provider-card__chevron { color: var(--c-muted); font-size: 20px; }

.customer-provider-hero {
    position: relative;
    margin: -16px -16px 16px;
    min-height: 200px;
    background: linear-gradient(135deg, var(--c-dark), #023a8f);
    overflow: hidden;
}
.customer-provider-hero img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.customer-provider-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(1, 13, 34, 0.85) 100%);
}
.customer-provider-hero__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px;
    min-height: 200px;
}
.customer-provider-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #fff;
    flex-shrink: 0;
    background: var(--c-bg);
}
.customer-provider-hero__info { flex: 1; min-width: 0; color: #fff; }
.customer-provider-hero__info h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    line-height: 1.2;
}
.customer-provider-hero__title {
    margin: 0 0 8px;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}
.customer-provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    opacity: 0.95;
}
.customer-provider-meta span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.customer-provider-meta .material-icons { font-size: 14px; }
.customer-provider-fav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.customer-provider-fav.active { background: var(--c-primary); color: var(--c-dark); }

.customer-provider-section {
    margin-bottom: 20px;
}
.customer-provider-section h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
}
.customer-provider-subcat {
    margin: 12px 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-muted);
}
.customer-provider-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--c-muted);
}
.customer-provider-portfolio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.customer-provider-portfolio__item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--c-surface);
    box-shadow: var(--shadow);
}
.customer-provider-portfolio__item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.customer-provider-portfolio__item figcaption {
    padding: 6px 8px;
    font-size: 0.7rem;
    color: var(--c-muted);
}
.customer-grid--compact { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.customer-review {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--c-surface);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.customer-review__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.customer-review__rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--c-primary);
    font-weight: 600;
}
.customer-review__rating .material-icons { font-size: 14px; }
.customer-review p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--c-muted);
    line-height: 1.45;
}

/* Booking detail & notifications */
.customer-booking-alert {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}
.customer-booking-alert .material-icons { flex-shrink: 0; font-size: 22px; }
.customer-booking-alert strong { display: block; margin-bottom: 2px; }
.customer-booking-alert p { margin: 0; opacity: 0.9; line-height: 1.4; }
.customer-booking-alert--pending { background: rgba(254, 138, 9, 0.12); color: var(--c-dark); }
.customer-booking-alert--pending .material-icons { color: var(--c-primary); }
.customer-booking-alert--success { background: rgba(34, 197, 94, 0.12); color: #166534; }
.customer-booking-alert--success .material-icons { color: var(--c-success); }
.customer-booking-alert--warning { background: rgba(239, 68, 68, 0.1); color: #991b1b; }
.customer-booking-alert--warning .material-icons { color: var(--c-danger); }

.customer-booking-card {
    background: var(--c-surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.customer-booking-card__label {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: var(--c-muted);
}
.customer-booking-card__value {
    margin: 0 0 14px;
    font-size: 1.3rem;
    font-weight: 700;
}
.customer-booking-card__value--sm {
    font-size: 0.95rem;
    font-weight: 500;
}

.customer-booking-provider {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    background: var(--c-surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.customer-booking-provider__avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--c-bg);
}
.customer-booking-provider__label {
    margin: 0 0 2px;
    font-size: 0.75rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.customer-booking-provider__name {
    margin: 0 0 2px;
    font-weight: 700;
    font-size: 1rem;
}
.customer-booking-provider__title {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: var(--c-primary);
    font-weight: 600;
}
.customer-booking-provider__rating {
    margin: 0 0 10px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.customer-booking-provider__rating .material-icons { font-size: 14px; color: var(--c-primary); }
.customer-booking-provider__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-booking-timeline {
    border-left: 2px solid var(--c-border);
    margin-left: 8px;
    padding-left: 16px;
}
.customer-booking-timeline__item {
    position: relative;
    margin-bottom: 14px;
}
.customer-booking-timeline__dot {
    position: absolute;
    left: -23px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 2px solid var(--c-surface);
}
.customer-booking-timeline__item strong { font-size: 0.85rem; }
.customer-booking-timeline__item p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: var(--c-muted);
}

.customer-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--c-surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}
.customer-notification-item--booking:active { transform: scale(0.99); }
.customer-notification-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(254, 138, 9, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.customer-notification-item__icon .material-icons { font-size: 20px; color: var(--c-primary); }
.customer-notification-item__body { flex: 1; min-width: 0; }
.customer-notification-item__title {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 700;
}
.customer-notification-item__sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--c-muted);
    line-height: 1.4;
}
.customer-notification-item__chevron { color: var(--c-muted); font-size: 20px; }

.customer-nav-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(145deg, #ff6b6b, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9px;
    border: 2px solid #012c6c;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.customer-bottom-nav__item.active .customer-nav-badge {
    border-color: #fe8a09;
}

@media (min-width: 768px) {
    .customer-grid { grid-template-columns: repeat(3, 1fr); }
    .customer-main { padding: 24px; }
    .customer-provider-portfolio { grid-template-columns: repeat(3, 1fr); }
}

.customer-page-hint {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--c-muted);
    line-height: 1.45;
}
.customer-card__sub {
    margin: 0;
    font-size: 0.75rem;
    color: var(--c-muted);
}
.customer-card__hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-primary);
}
.customer-provider-card__bio {
    margin: 0 0 6px;
    font-size: 0.78rem;
    color: var(--c-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.customer-provider-card__price {
    font-weight: 700;
    color: var(--c-dark) !important;
}
.customer-provider-hire-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.customer-provider-hire-bar span {
    display: block;
    font-size: 0.75rem;
    color: var(--c-muted);
}
.customer-provider-subcat-price {
    margin: -4px 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-dark);
}
.customer-filter-row--hidden { display: none; }
