.customer-page {
    background:
        radial-gradient(circle at 8% -8%, var(--peach-12), transparent 34rem),
        radial-gradient(circle at 96% 18%, var(--cream-08), transparent 36rem),
        var(--page-bg);
}

.customer-page .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1080px;
    min-height: calc(100vh - 78px);
    padding: 0 28px 96px;
    margin: 0 auto;
    background: transparent;
}

.customer-page .app-footer {
    margin-top: auto;
    padding: 40px 0 0;
    border-top: 1px solid var(--border-soft);
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
}

.customer-page .app-footer p {
    opacity: 0.72;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    background: var(--page-bg);
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

@supports (backdrop-filter: blur(18px)) {
    .app-topbar {
        background: color-mix(in srgb, var(--page-bg) 84%, transparent);
        backdrop-filter: blur(20px) saturate(1.12);
    }
}

.app-topbar-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 1180px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 28px;
}

.app-brand {
    position: relative;
    display: block;
    width: 132px;
    flex: 0 0 auto;
    margin: -20px 0 -26px;
    text-decoration: none;
}

.app-logo {
    display: block;
    width: 100%;
    height: auto;
}

.app-logo-dot {
    display: none;
}

[data-theme="light"] .app-logo {
    filter: brightness(0) invert(29%) sepia(12%) saturate(1057%) hue-rotate(131deg) brightness(93%) contrast(89%);
}

[data-theme="light"] .app-logo-dot {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    clip-path: inset(51% 22.5% 36.6% 71.7%);
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.app-nav a {
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.app-nav a:hover {
    background: var(--soft-fill);
    color: var(--text-primary);
}

.app-nav a.is-active {
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.app-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--soft-fill);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.app-theme-toggle:hover {
    background: var(--brand-peach);
    border-color: var(--brand-peach);
    color: var(--brand-teal);
    transform: rotate(8deg);
}

.app-theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
}

.app-theme-icon svg {
    width: 19px;
    height: 19px;
}

.customer-page .bottom-nav {
    display: none;
}

.customer-page .page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 18px;
    margin: 42px 0 28px;
}

.customer-page .back-link {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--soft-fill);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.customer-page .back-link:hover {
    background: var(--brand-peach);
    border-color: var(--brand-peach);
    color: var(--brand-teal);
    text-decoration: none;
}

.customer-page .page-header h2 {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 0.18em;
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.customer-page .page-header h2 .ui-icon {
    width: 1em;
    height: 1em;
    margin: 0;
    font-size: 0.82em;
    color: var(--text-accent);
}

.customer-page .step-indicator,
.customer-page .chat-status {
    grid-column: 2;
    align-self: end;
    justify-self: end;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.customer-page .chat-status:empty {
    display: none;
}

.customer-page .card {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--border-soft);
    border-radius: 34px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: 0 24px 70px var(--teal-08);
}

.customer-page .card h2,
.customer-page .card h3 {
    color: var(--text-primary);
}

.customer-page .card .subtext {
    color: var(--text-secondary);
}

.customer-page .card .btn-secondary {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.customer-page .card .btn-secondary:hover {
    border-color: var(--brand-teal);
    background: var(--brand-teal);
    color: var(--brand-cream);
}

.customer-page .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 14px 26px;
    border: 1px solid var(--btn-primary-border);
    border-radius: var(--radius-pill);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px var(--teal-26);
    transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.customer-page .btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px var(--teal-26);
}

.customer-page .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.customer-page .btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--page-bg);
    transform: translateY(-1px);
}

.customer-page .form-group {
    margin-bottom: 16px;
}

.customer-page .form-group label {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.customer-page .form-group input,
.customer-page .form-group select,
.customer-page .form-group textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-sunken);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.customer-page .form-group input::placeholder,
.customer-page .form-group textarea::placeholder {
    color: var(--field-placeholder);
    opacity: 0.68;
}

.customer-page .form-group input:focus-visible,
.customer-page .form-group select:focus-visible,
.customer-page .form-group textarea:focus-visible {
    border-color: var(--brand-peach);
    box-shadow: 0 0 0 4px var(--peach-13);
}

.customer-page .section-label {
    margin: 28px 0 12px;
    color: var(--text-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.customer-page .section-header {
    margin-bottom: 14px;
}

.customer-page .section-header h3,
.customer-page .section-header h4 {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.customer-page .section-header h3 .ui-icon,
.customer-page .section-header h4 .ui-icon {
    width: 1em;
    height: 1em;
    font-size: 0.88em;
    color: var(--text-accent);
}

.customer-page .add-btn {
    min-height: 34px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 11px;
    font-weight: 800;
}

.customer-page .add-btn:hover {
    background: var(--peach-hover);
    text-decoration: none;
}

.customer-page .view-link {
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.customer-page .view-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dashboard-page .container {
    max-width: 1020px;
}

.dash-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    min-height: 300px;
    margin: 42px 0 20px;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 40px;
    background: var(--surface-accent);
    color: var(--text-on-accent);
}

.dash-header::before,
.dash-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.dash-header::before {
    width: 440px;
    height: 440px;
    top: -260px;
    right: -80px;
    background: radial-gradient(circle, var(--cream-26), transparent 68%);
}

.dash-header::after {
    width: 360px;
    height: 360px;
    left: -180px;
    bottom: -250px;
    background: radial-gradient(circle, var(--teal-10), transparent 70%);
}

.dash-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    background: var(--brand-teal);
    color: var(--brand-cream);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dash-title {
    max-width: 14ch;
    margin: 0;
    color: var(--text-on-accent);
    font-size: clamp(38px, 5.4vw, 68px);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.dash-sub {
    max-width: 46ch;
    margin-top: 18px;
    color: var(--text-on-accent-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.dash-proof {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    flex: 0 0 auto;
    padding-bottom: 4px;
    color: var(--text-on-accent);
    font-size: 11px;
    font-weight: 700;
}

.dash-proof span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dash-proof .ui-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.dashboard-page .ready-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 28px 30px;
    border: 1px solid var(--cream-13);
    border-radius: 30px;
    background: var(--surface-inverse);
    color: var(--text-on-dark);
    cursor: pointer;
    box-shadow: 0 20px 50px var(--teal-26);
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.dashboard-page .ready-card:hover {
    transform: translateY(-3px);
    background: var(--teal-sink);
}

.dashboard-page .ready-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -100px;
    border: 1px solid var(--peach-26);
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-page .ready-row {
    position: relative;
    z-index: 1;
}

.dashboard-page .ready-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-on-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    opacity: 0.68;
}

.dashboard-page .ready-label .ui-icon {
    width: 13px;
    height: 13px;
    font-size: 13px;
}

.dashboard-page .ready-time {
    margin-top: 6px;
    color: var(--brand-peach);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.dashboard-page .ready-card .view-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 11px;
    text-decoration: none;
}

.dashboard-page .quick-actions {
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-page .action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 76px;
    padding: 18px 20px;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    box-shadow: 0 12px 30px var(--teal-06);
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.dashboard-page .action-btn:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.dashboard-page .action-btn.primary {
    background: var(--brand-peach);
    border-color: var(--brand-peach);
    color: var(--brand-teal);
}

.dashboard-page .action-btn.secondary {
    background: var(--surface);
    color: var(--text-primary);
}

.dashboard-page .action-btn .ui-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.dashboard-page .promo-banner {
    margin-bottom: 32px;
    padding: 15px 20px;
    border: 0;
    border-radius: 20px;
    background: var(--soft-fill);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.dashboard-page .promo-banner p {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dashboard-page .promo-banner .ui-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--text-accent);
}

.dashboard-page .device-list {
    margin-bottom: 0;
}

.dashboard-page .device-item,
.profile-page .device-item,
.booking-page .device-item {
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: var(--surface);
}

.dashboard-page .device-detail,
.profile-page .device-detail,
.booking-page .device-detail {
    color: var(--text-secondary);
    font-size: 12px;
}

.dashboard-page .device-name,
.profile-page .device-name,
.booking-page .device-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
}

.customer-page .use-btn {
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--soft-fill);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.customer-page .use-btn:hover {
    border-color: var(--brand-peach);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.booking-page .booking-step-copy {
    margin: -4px 0 22px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.booking-page .device-empty {
    margin: 0;
    padding: 20px 18px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.booking-page .device-item.selected {
    border-color: var(--brand-peach);
    background: var(--selected-bg);
}

.booking-page .add-device-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    background: var(--soft-fill);
    color: var(--text-accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.booking-page .add-device-btn:hover {
    border-color: var(--brand-peach);
    background: var(--selected-bg);
    color: var(--text-accent);
}

.booking-page .add-device-btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.booking-page .add-device-btn .ui-icon {
    width: 16px;
    height: 16px;
}

.booking-page .device-picker-note {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.82;
}

body.device-picker-open {
    overflow: hidden;
}

.device-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: rgba(20, 32, 32, 0.72);
    backdrop-filter: blur(8px);
}

.device-picker-overlay[hidden] {
    display: none;
}

.device-picker {
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    max-height: min(82vh, 720px);
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px 28px 20px 20px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.device-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.device-picker-head h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.device-picker-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--soft-fill);
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.device-picker-close:hover {
    border-color: var(--brand-peach);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.device-picker-copy {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

.device-picker-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0 14px;
    border: 1px solid var(--field-border);
    border-radius: 16px;
    background: var(--field-bg);
}

.device-picker-search:focus-within {
    border-color: var(--brand-peach);
    box-shadow: 0 0 0 3px var(--peach-13);
}

.device-picker-search .ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--text-accent);
}

.device-picker-search input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--field-text);
    font: inherit;
    font-size: 16px;
}

.device-picker-search input::placeholder {
    color: var(--field-placeholder);
    opacity: 0.82;
}

.device-picker-count {
    margin: 12px 0 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.device-picker-results {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.device-picker-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--soft-fill);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

.device-picker-result:hover,
.device-picker-result:focus-visible {
    border-color: var(--brand-peach);
    background: var(--selected-bg);
}

.device-picker-result-name {
    font-size: 14px;
    font-weight: 800;
}

.device-picker-result-hint {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.device-picker-empty {
    margin: 0;
    padding: 24px 12px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

@media (min-width: 680px) {
    .device-picker-overlay {
        align-items: center;
        padding: 32px;
    }

    .device-picker {
        padding: 28px;
        border-radius: 28px;
    }
}

@media (max-width: 520px) {
    .device-picker-result {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .device-picker-result-hint {
        white-space: normal;
    }
}

.repairs-page .filter-tabs {
    gap: 8px;
    margin-bottom: 22px;
    padding: 0 0 4px;
}

.repairs-page .filter-tab {
    padding: 9px 17px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
}

.repairs-page .filter-tab.active {
    border-color: var(--brand-peach);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.customer-page .repairs-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customer-page .repair-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 14px 36px var(--teal-06);
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.customer-page .repair-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface);
}

.customer-page .repair-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.customer-page .repair-card:hover::before {
    opacity: 1;
}

.customer-page .repair-id {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-page .repair-device {
    display: block;
    margin-left: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.customer-page .repair-issue {
    margin: 7px 0 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.customer-page .repair-meta {
    gap: 10px 14px;
    color: var(--text-secondary);
    font-size: 11px;
}

.customer-page .repair-meta i {
    color: var(--text-accent);
}

.customer-page .repair-payment-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-self: start;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 800;
}

.customer-page .repair-payment-status.unpaid {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.customer-page .repair-payment-status svg {
    width: 13px;
    height: 13px;
}

.customer-page .repair-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
}

.customer-page .view-details {
    color: var(--text-accent);
    font-size: 11px;
}

.customer-page .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.customer-page .status-badge svg {
    width: 12px;
    height: 12px;
}

.customer-page .empty-state,
.customer-page .chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 68px) 24px;
    border: 1px dashed var(--border);
    border-radius: 28px;
    background: var(--surface);
    text-align: center;
}

.customer-page .empty-state .empty-icon,
.customer-page .chat-empty .empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: var(--surface-accent);
    color: var(--brand-teal);
    font-size: 26px;
}

.customer-page .empty-state .empty-icon svg,
.customer-page .chat-empty .empty-icon svg {
    width: 26px;
    height: 26px;
}

.customer-page .empty-state h3,
.customer-page .chat-empty h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.customer-page .empty-state p,
.customer-page .chat-empty p {
    max-width: 36ch;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.customer-page .empty-state .btn-primary,
.customer-page .chat-empty .btn-primary {
    width: auto;
    margin-top: 18px;
}

.customer-page .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

.customer-page .loading-state i {
    color: var(--text-accent);
    font-size: 20px;
}

.profile-page .profile-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-page .profile-card > .card-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-page .profile-header {
    position: relative;
    grid-column: 1 / -1;
    overflow: hidden;
    align-items: center;
    gap: 18px;
    margin-bottom: 0;
    padding: 28px;
    border: 0;
    border-radius: 32px;
    background: var(--surface-inverse);
    color: var(--text-on-dark);
}

.profile-page .profile-header::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -120px;
    border: 1px solid var(--peach-26);
    border-radius: 50%;
    pointer-events: none;
}

.profile-page .profile-avatar {
    width: 76px;
    height: 76px;
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 28px;
    font-weight: 900;
}

.profile-page .profile-info h3 {
    color: var(--brand-cream);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.profile-page .profile-info p {
    color: var(--brand-cream);
    font-size: 12px;
    opacity: 0.66;
}

.profile-page .edit-profile-btn .ui-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.profile-page .edit-profile-btn {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-peach);
    color: var(--brand-teal);
    cursor: pointer;
}

.profile-page .profile-section {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: 26px;
    background: var(--surface);
}

.profile-page .profile-section .section-header {
    margin-bottom: 14px;
}

.profile-page .profile-section .section-header h4 {
    color: var(--text-primary);
    font-size: 17px;
}

.profile-page .profile-section .section-header h4 .ui-icon {
    color: var(--text-accent);
}

.profile-page .history-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
}

.profile-page .history-item .history-left .history-title {
    font-weight: 700;
}

.profile-page .history-item .history-left .history-date,
.profile-page .history-empty,
.profile-page .profile-note {
    color: var(--text-secondary);
    font-size: 12px;
}

.profile-page .history-right {
    font-size: 12px;
    font-weight: 800;
}

.profile-page .referral-section {
    background: var(--surface-accent);
    color: var(--text-on-accent);
}

.profile-page .referral-section .section-header h4,
.profile-page .referral-info p,
.profile-page .referral-info strong,
.profile-page .referral-code,
.profile-page .referral-earned {
    color: var(--text-on-accent);
}

.profile-page .referral-link {
    color: var(--text-on-accent-secondary);
}

.profile-page .referral-section .share-btn {
    background: var(--brand-teal);
    color: var(--brand-cream);
}

.profile-page .settings-item {
    padding: 11px 0;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
    font-size: 13px;
}

.profile-page .settings-item > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.profile-page .settings-item .ui-icon {
    width: 15px;
    height: 15px;
    font-size: 15px;
    color: var(--text-accent);
}

.profile-page .settings-link {
    color: var(--text-accent);
    font-size: 12px;
}

.profile-page .danger-btn {
    min-height: 32px;
    padding: 5px 13px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--brand-gold);
    color: var(--teal-sink);
}

.profile-page .complaint-btn {
    width: auto;
    margin-top: 4px;
}

.repair-detail-page .detail-card {
    overflow: hidden;
    margin-bottom: 0;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 20px 48px var(--teal-06);
}

.repair-detail-page .detail-card .card-content {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 20px 34px;
    padding: clamp(20px, 3vw, 34px);
}

.repair-detail-page .detail-device {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: var(--surface-sunken);
}

.repair-detail-page .detail-device .device-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 24px;
    flex-shrink: 0;
}

.repair-detail-page .detail-device .device-icon svg {
    width: 24px;
    height: 24px;
}

.repair-detail-page .detail-device h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.repair-detail-page .detail-device p {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 13px;
}

.repair-detail-page .status-timeline {
    grid-column: 1;
    grid-row: 2 / span 2;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: var(--surface-sunken);
}

.repair-detail-page .timeline-item {
    gap: 14px;
    padding: 6px 0;
}

.repair-detail-page .timeline-item:not(:last-child)::after {
    left: 18px;
    top: 40px;
    bottom: -2px;
    width: 2px;
    background: var(--divider);
}

.repair-detail-page .timeline-item .timeline-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 16px;
}

.repair-detail-page .timeline-item .timeline-icon svg {
    width: 17px;
    height: 17px;
}

.repair-detail-page .timeline-item.active .timeline-icon {
    border-color: var(--brand-peach);
    background: var(--brand-teal);
    color: var(--brand-cream);
    box-shadow: 0 0 0 3px var(--peach-12);
}

.repair-detail-page .timeline-item.completed .timeline-icon {
    border-color: transparent;
    background: var(--surface-accent);
    color: var(--brand-teal);
}

.repair-detail-page .timeline-item .timeline-label {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.repair-detail-page .timeline-item .timeline-time {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
}

.repair-detail-page .timeline-item .timeline-time svg {
    width: 12px;
    height: 12px;
}

.repair-detail-page .detail-info-grid {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    gap: 12px;
}

.repair-detail-page .detail-info-item {
    padding: 15px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--surface-sunken);
}

.repair-detail-page .detail-info-item .info-label {
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.repair-detail-page .detail-info-item .info-value {
    margin-top: 4px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
}

.repair-detail-page .detail-info-item .info-value svg {
    width: 14px;
    height: 14px;
}

.repair-detail-page .technician-note {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin: 0;
    padding: 17px 18px;
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--brand-peach);
    border-radius: 18px;
    background: var(--surface-sunken);
}

.repair-detail-page .technician-note .note-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.repair-detail-page .technician-note .note-text {
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 13px;
}

.repair-detail-page .detail-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--divider);
}

.repair-detail-page .detail-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 190px;
    width: auto;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.repair-detail-page .detail-actions .action-btn:hover {
    transform: translateY(-2px);
}

.repair-detail-page .detail-actions .action-btn svg {
    width: 16px;
    height: 16px;
}

.repair-detail-page .detail-actions .action-btn.primary-btn {
    border-color: var(--brand-peach);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.repair-detail-page .detail-actions .action-btn.primary-btn:hover {
    border-color: var(--brand-cream);
    background: var(--brand-cream);
    color: var(--brand-teal);
}

.repair-detail-page .detail-actions .action-btn.secondary-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface-accent);
}

.repair-detail-page .detail-actions .action-btn.danger-btn {
    border-color: var(--btn-danger-border);
    background: transparent;
    color: var(--btn-danger-text);
}

.repair-detail-page .detail-actions .action-btn.danger-btn:hover {
    border-color: var(--btn-danger-hover-bg);
    background: var(--btn-danger-hover-bg);
    color: var(--btn-danger-hover-text);
}

@media (max-width: 899px) {
    .chat-page.chat-thread-open .bottom-nav {
        display: none;
    }

    .chat-page.chat-thread-open .chat-input-area {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

.chat-page .chat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.chat-page .chat-item {
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 30px var(--teal-06);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.chat-page .chat-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface);
}

.chat-page .chat-item .chat-avatar {
    width: 48px;
    height: 48px;
    background: var(--surface-accent);
    color: var(--brand-teal);
}

.chat-page .chat-item .chat-avatar svg {
    width: 21px;
    height: 21px;
}

.chat-page .chat-item .chat-info .chat-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
}

.chat-page .chat-item .chat-info .chat-preview {
    color: var(--text-secondary);
    font-size: 12px;
}

.chat-page .chat-unread {
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 10px;
}

.chat-page .chat-detail-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: 0 24px 60px var(--teal-08);
}

.chat-page .chat-messages {
    min-height: 46vh;
    max-height: 56vh;
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: var(--surface-sunken);
}

.chat-page .chat-message {
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.55;
}

.chat-page .chat-message.received {
    border-bottom-left-radius: 6px;
    background: var(--surface);
    color: var(--text-primary);
}

.chat-page .chat-message.sent {
    border-bottom-right-radius: 6px;
    background: var(--brand-teal);
    color: var(--brand-cream);
}

.chat-page .msg-time {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    opacity: 0.55;
}

.chat-page .quick-replies {
    gap: 7px;
}

.chat-page .quick-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--soft-fill);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.chat-page .quick-reply-btn svg {
    width: 12px;
    height: 12px;
}

.chat-page .chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 7px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
}

.chat-page .chat-input-area input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

.chat-page .chat-input-area .send-btn {
    min-width: 70px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.warranty-page .warranty-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    border: 0;
    background: var(--surface-accent);
    color: var(--text-on-accent);
    box-shadow: none;
}

.warranty-page .warranty-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--teal-13);
    margin-bottom: 20px;
}

.warranty-page .warranty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 20px;
    background: var(--brand-teal);
    color: var(--brand-peach);
    font-size: 28px;
}

.warranty-page .warranty-icon svg {
    width: 28px;
    height: 28px;
}

.warranty-page .warranty-header h3 {
    color: var(--text-on-accent);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.warranty-page .warranty-subtext {
    color: var(--text-on-accent-secondary);
    font-size: 12px;
}

.warranty-page .rule-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 0;
    border-bottom: 1px solid var(--teal-08);
    font-size: 12px;
}

.warranty-page .rule-item:last-child {
    border-bottom: 0;
}

.warranty-page .rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--text-on-accent);
    font-size: 17px;
}

.warranty-page .rule-icon svg {
    width: 17px;
    height: 17px;
}

.warranty-page .rule-text {
    color: var(--text-on-accent);
}

.warranty-page .warranty-list-card {
    margin-bottom: 18px;
}

.warranty-page .warranty-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 11px;
    font-weight: 800;
}

.warranty-page .warranty-count.expired {
    background: var(--soft-fill);
    color: var(--text-secondary);
}

.warranty-page .warranty-item {
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
}

.warranty-page .warranty-item:last-child {
    border-bottom: 0;
}

.warranty-page .warranty-device {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
}

.warranty-page .warranty-detail {
    color: var(--text-secondary);
    font-size: 11px;
}

.warranty-page .status-badge.active {
    background: var(--brand-peach);
    color: var(--brand-teal);
    border-color: var(--brand-peach);
}

.warranty-page .status-badge.expired {
    background: var(--soft-fill);
    color: var(--text-secondary);
    border-color: var(--border);
}

.warranty-page .warranty-item .warranty-status .warranty-claim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    text-underline-offset: 0;
    white-space: nowrap;
    cursor: pointer;
}

.warranty-page .warranty-item .warranty-status .warranty-claim-btn:hover {
    border-color: var(--brand-peach);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.warranty-page .warranty-empty {
    padding: 24px 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.booking-page .page-header {
    margin-bottom: 18px;
}

.booking-progress {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: var(--surface);
    list-style: none;
}

.booking-progress li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}

.booking-progress li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
    height: 1px;
    background: var(--border);
}

.booking-progress-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 9px;
}

.booking-progress-dot svg {
    width: 13px;
    height: 13px;
}

.booking-progress li.is-done .booking-progress-dot {
    border-color: var(--brand-peach);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.booking-progress li.is-current {
    color: var(--text-primary);
}

.booking-progress li.is-current .booking-progress-dot {
    border-color: var(--brand-teal);
    background: var(--brand-teal);
    color: var(--brand-cream);
    box-shadow: 0 0 0 4px var(--peach-13);
}

.booking-page .booking-card {
    max-width: 920px;
}

.booking-page .booking-card h3 {
    display: flex;
    align-items: center;
    gap: 0.2em;
    margin-bottom: 22px;
    color: var(--text-primary);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.booking-page .booking-card h3 .ui-icon {
    width: 0.9em;
    height: 0.9em;
    font-size: 0.9em;
    color: var(--text-accent);
}

.booking-page .booking-card .subtext {
    margin-top: -10px;
    margin-bottom: 22px;
    font-size: 13px;
}

.booking-page .booking-description-group {
    margin-bottom: 26px;
}

.booking-page .booking-description-group .optional {
    margin-left: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-page .booking-description-group textarea {
    min-height: 140px;
    line-height: 1.55;
    resize: vertical;
}

.booking-page .booking-description-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.4;
}

.booking-page .booking-description-count {
    flex: 0 0 auto;
    color: var(--text-accent);
    font-weight: 800;
}

.booking-page .booking-section-title {
    margin: 30px 0 8px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.booking-page .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.booking-page .brand-btn {
    padding: 16px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: var(--soft-fill);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
}

.booking-page .brand-btn:hover {
    border-color: var(--border-strong);
    background: var(--soft-fill-hover);
}

.booking-page .brand-btn.active {
    border-color: var(--brand-peach);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.booking-page .issue-grid,
.booking-page .condition-grid,
.booking-page .situation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}

.booking-page .issue-btn,
.booking-page .condition-btn,
.booking-page .situation-btn {
    min-height: 108px;
    padding: 18px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: var(--soft-fill);
    color: var(--text-primary);
    text-align: left;
}

.booking-page .issue-btn:hover,
.booking-page .condition-btn:hover,
.booking-page .situation-btn:hover {
    border-color: var(--border-strong);
    background: var(--soft-fill-hover);
}

.booking-page .issue-btn.active,
.booking-page .condition-btn.active,
.booking-page .situation-btn.active {
    border-color: var(--brand-teal);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.booking-page .issue-icon,
.booking-page .condition-icon,
.booking-page .situation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-accent);
    font-size: 17px;
}

.booking-page .issue-btn.active .issue-icon,
.booking-page .condition-btn.active .condition-icon,
.booking-page .situation-btn.active .situation-icon {
    background: var(--brand-teal);
    color: var(--brand-peach);
}

.booking-page .issue-label,
.booking-page .condition-label,
.booking-page .situation-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
}

.booking-page .selected-device-display,
.booking-page .summary-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--surface-sunken);
    font-size: 12px;
}

.booking-page .device-label,
.booking-page .summary-label {
    color: var(--text-secondary);
    font-weight: 700;
}

.booking-page .device-name-highlight,
.booking-page .summary-value {
    color: var(--text-primary);
    font-weight: 800;
}

.booking-page .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.booking-page .location-btn,
.booking-page .delivery-btn {
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--soft-fill);
    color: var(--text-primary);
    font-size: 11px;
}

.booking-page .location-btn:hover,
.booking-page .delivery-btn:hover {
    border-color: var(--border-strong);
    background: var(--soft-fill-hover);
}

.booking-page .location-btn.active,
.booking-page .delivery-btn.active {
    border-color: var(--brand-teal);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.booking-page .location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-bottom: 6px;
    color: var(--text-accent);
    font-size: 18px;
}

.booking-page .location-icon svg {
    width: 18px;
    height: 18px;
}

.booking-page .location-btn.active .location-icon,
.booking-page .delivery-btn.active .location-icon {
    color: var(--brand-teal);
}

.booking-page .home-pickup-section {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: var(--surface-sunken);
}

.booking-page .home-pickup-section .form-group {
    margin-bottom: 10px;
}

.booking-page .detect-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.booking-page .detect-location-btn .ui-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: var(--text-accent);
}

.booking-page .distance-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
    color: var(--text-secondary);
    font-size: 11px;
}

.booking-page .distance-value,
.booking-page .distance-fee {
    color: var(--text-primary);
    font-weight: 800;
}

.booking-page .datetime-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.booking-page .datetime-row .form-group {
    margin-bottom: 0;
}

.booking-page .booking-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--divider);
}

.booking-page .booking-nav .btn-primary,
.booking-page .booking-nav .btn-secondary {
    width: auto;
    min-width: 140px;
}

.booking-page .price-summary,
.booking-page .price-breakdown,
.booking-page .order-summary {
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: var(--surface-sunken);
}

.booking-page .summary-row {
    padding: 7px 0;
    font-size: 12px;
}

.booking-page .summary-row .summary-label,
.booking-page .price-label {
    color: var(--text-secondary);
}

.booking-page .summary-row .summary-value,
.booking-page .price-amount {
    color: var(--text-primary);
}

.booking-page .price-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
    font-size: 13px;
}

.booking-page .price-row.total {
    margin-top: 6px;
    padding-top: 16px;
    border-bottom: 0;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 900;
}

.booking-page .price-row.upfront,
.booking-page .price-row.remaining {
    padding: 7px 0;
    border-bottom: 0;
    font-size: 11px;
}

.booking-page .price-row.urgent-row {
    background: var(--peach-08);
    margin: 4px -10px;
    padding: 10px;
    border-radius: 12px;
}

.booking-page .repair-time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 0;
    padding: 15px 18px;
    border-radius: 18px;
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 12px;
    font-weight: 800;
}

.booking-page .time-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.booking-page .time-label .ui-icon {
    width: 15px;
    height: 15px;
    font-size: 15px;
}

.booking-page .warning-box {
    padding: 16px 18px;
    border: 1px solid var(--gold-26);
    border-radius: 18px;
    background: var(--gold-08);
    color: var(--text-primary);
    font-size: 11px;
    line-height: 1.55;
}

.booking-page .warning-box p {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.booking-page .warning-box .ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 15px;
    color: var(--text-accent);
}

.booking-page .summary-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 14px;
}

.booking-page .order-id {
    color: var(--text-secondary);
    font-size: 11px;
}

.booking-page .order-id strong {
    color: var(--text-primary);
}

.booking-page .order-status {
    padding: 5px 12px;
    background: var(--brand-peach);
    color: var(--brand-teal);
    font-size: 9px;
    font-weight: 800;
}

.booking-page .summary-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
}

.booking-page .detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 11px;
}

.booking-page .detail-row:last-child {
    border-bottom: 0;
}

.booking-page .detail-label {
    color: var(--text-secondary);
}

.booking-page .detail-value {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
}

.booking-page .detail-row.urgent-row .detail-value {
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
    color: var(--brand-teal);
}

.booking-page .payment-options {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.booking-page .payment-label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.booking-page .payment-btn {
    margin: 0;
}

.booking-page .payment-help {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}

.booking-page .photo-upload-area {
    margin: 18px 0;
    padding: 18px;
    border: 1px dashed var(--border-strong);
    border-radius: 24px;
    background: var(--surface-sunken);
}

.booking-page .photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 180px;
    padding: 24px;
    border-radius: 18px;
    background: var(--soft-fill);
    text-align: center;
    cursor: pointer;
}

.booking-page .upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    border-radius: 17px;
    background: var(--surface-accent);
    color: var(--brand-teal);
    font-size: 24px;
}

.booking-page .upload-icon svg {
    width: 24px;
    height: 24px;
}

.booking-page .upload-text {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
}

.booking-page .upload-hint,
.booking-page .photo-counter {
    color: var(--text-secondary);
    font-size: 10px;
}

.booking-page .photo-counter {
    margin-bottom: 8px;
    text-align: center;
}

.booking-page .photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.booking-page .photo-preview-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    object-fit: cover;
}

.booking-page .confirmation-overlay {
    background: rgba(46, 66, 66, 0.72);
    backdrop-filter: blur(12px);
}

.booking-page .confirmation-content {
    max-width: 520px;
    padding: clamp(28px, 5vw, 46px);
    border-radius: 34px;
    background: var(--surface-accent);
    color: var(--text-on-accent);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.booking-page .confirmation-content h2 {
    color: var(--text-on-accent);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.booking-page .confirmation-content p {
    color: var(--text-on-accent-secondary);
}

.booking-page .confirmation-content .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: var(--brand-teal);
    color: var(--brand-peach);
    font-size: 30px;
}

.booking-page .confirmation-content .success-icon svg {
    width: 30px;
    height: 30px;
}

.booking-page .confirmation-details {
    margin: 18px 0;
    padding: 16px;
    border-radius: 20px;
    background: var(--teal-08);
}

.booking-page .confirmation-details p {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
    font-size: 12px;
}

.booking-page .confirmation-details .ui-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.booking-page .confirmation-content .btn-primary {
    margin-top: 4px;
}

.booking-page .confirmation-content .btn-secondary {
    width: 100%;
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

.auth-page {
    min-height: 100vh;
}

.auth-page .container {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 24px;
    max-width: 1180px;
    min-height: 100vh;
    padding: 32px 28px;
}

.auth-story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
    padding: clamp(28px, 4vw, 52px);
    border-radius: 40px;
    background: var(--surface-accent);
    color: var(--text-on-accent);
}

.auth-story::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 440px;
    height: 440px;
    right: -180px;
    top: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cream-26), transparent 68%);
}

.auth-story::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    left: -190px;
    bottom: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--teal-10), transparent 70%);
}

.auth-brand {
    display: inline-block;
    width: max-content;
    color: var(--brand-teal);
    text-decoration: none;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 1;
}

.auth-brand span {
    color: var(--brand-gold);
}

.auth-story-copy {
    margin: auto 0;
    padding: 48px 0;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    background: var(--brand-teal);
    color: var(--brand-cream);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-story h1 {
    max-width: 12ch;
    color: var(--text-on-accent);
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.94;
}

.auth-story h1 em {
    color: var(--brand-teal);
    font-style: normal;
}

.auth-story-copy > p:last-child {
    max-width: 42ch;
    margin-top: 22px;
    color: var(--text-on-accent-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.auth-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0;
    color: var(--text-on-accent);
    font-size: 10px;
    font-weight: 700;
    list-style: none;
}

.auth-proof li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-proof .ui-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.auth-panel .page-header {
    margin: 0 0 18px;
}

.auth-panel .page-header h2 {
    font-size: clamp(34px, 4vw, 52px);
}

.auth-panel .card {
    padding: clamp(24px, 3vw, 34px);
    border-radius: 32px;
}

.auth-panel .card h3 {
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
}

.auth-panel .card .subtext {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 12px;
}

.auth-panel .role-toggle {
    margin-bottom: 20px;
    padding: 4px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--surface-sunken);
}

.auth-panel .role-btn {
    min-height: 42px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.auth-panel .role-btn.active {
    background: var(--brand-teal);
    color: var(--brand-cream);
    box-shadow: 0 8px 18px var(--teal-26);
}

.auth-panel .role-btn .ui-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.auth-panel .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
    color: var(--text-secondary);
    font-size: 11px;
}

.auth-panel .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-panel .forgot-link {
    color: var(--text-accent);
    font-size: 11px;
    font-weight: 700;
}

.auth-panel .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-panel .auth-divider::before,
.auth-panel .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--divider);
}

.auth-panel .oauth-actions {
    display: grid;
    gap: 8px;
}

.auth-panel .btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-sunken);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.auth-panel .btn-oauth:hover:not(:disabled) {
    border-color: var(--border-strong);
    background: var(--soft-fill-hover);
}

.auth-panel .oauth-icon {
    width: 17px;
    height: 17px;
}

.auth-panel .login-link {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
}

.auth-panel .login-link a {
    color: var(--text-accent);
    font-weight: 800;
}

.auth-panel footer {
    padding-top: 18px;
    color: var(--text-secondary);
    font-size: 10px;
    text-align: center;
}

.auth-panel footer p {
    opacity: 0.7;
}

.error-page .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.error-page .brand {
    display: none;
}

.error-page .hero-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 620px;
    padding: clamp(34px, 7vw, 72px);
    border-radius: 40px;
    background: var(--surface-accent);
    color: var(--text-on-accent);
    box-shadow: 0 30px 90px var(--teal-26);
}

.error-page .hero-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    top: -190px;
    right: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cream-26), transparent 68%);
}

.error-page .card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    background: var(--brand-teal);
    color: var(--brand-cream);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.error-page .card h2 {
    margin: 18px 0 12px;
    color: var(--text-on-accent);
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.92;
}

.error-page .subtext {
    max-width: 38ch;
    margin: 0 auto 24px;
    color: var(--text-on-accent-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.error-page .hero-card .btn-primary {
    width: auto;
    min-width: 180px;
    margin: 0 auto;
    background: var(--brand-teal);
    color: var(--brand-cream);
}

.error-page .login-link {
    margin-top: 16px;
    color: var(--text-on-accent-secondary);
    font-size: 11px;
}

.error-page .login-link a {
    color: var(--text-on-accent);
    font-weight: 800;
}

.splash-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 40%, var(--peach-13), transparent 30rem),
        var(--brand-teal);
}

.splash-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: min(100%, 340px);
}

.splash-brand {
    color: var(--brand-cream);
    font-size: clamp(48px, 9vw, 76px);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
}

.splash-brand span {
    color: var(--brand-peach);
}

.splash-body .loading-bar {
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--cream-13);
}

.splash-body .loading-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--brand-peach);
}

.splash-body .loading-text {
    color: var(--brand-cream);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    opacity: 0.62;
}

.customer-page .warranty-modal-overlay {
    background: rgba(46, 66, 66, 0.72);
    backdrop-filter: blur(10px);
}

.customer-page .warranty-modal {
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.customer-page .warranty-modal h3 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.customer-page .warranty-modal .modal-subtext {
    color: var(--text-secondary);
    font-size: 12px;
}

.customer-page .warranty-modal .modal-actions {
    display: flex;
    gap: 10px;
}

.customer-page .warranty-modal .modal-actions .btn-primary,
.customer-page .warranty-modal .modal-actions .btn-secondary {
    width: auto;
    flex: 1;
}

@media (min-width: 900px) {
    .customer-page .bottom-nav {
        display: none;
    }
}

@media (max-width: 899px) {
    .app-nav {
        display: none;
    }

    .app-theme-toggle {
        margin-left: auto;
    }

    .customer-page .bottom-nav {
        display: flex;
        bottom: max(14px, env(safe-area-inset-bottom));
        width: min(calc(100% - 28px), 460px);
        min-height: 66px;
        padding: 8px 6px;
        border: 1px solid var(--cream-13);
        border-radius: 24px;
        background: var(--brand-teal);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    }

    .customer-page .nav-icon-wrap {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .customer-page .nav-icon-wrap svg {
        width: 19px;
        height: 19px;
    }

    .customer-page .nav-label {
        color: var(--brand-cream);
        font-size: 9px;
    }

    .customer-page .nav-item.active .nav-icon-wrap {
        background: var(--brand-peach);
    }

    .customer-page .nav-item.active svg {
        stroke: var(--brand-teal);
    }

    .customer-page .nav-item.active .nav-label {
        color: var(--brand-peach);
    }

    .customer-page .container {
        padding-bottom: 116px;
    }

    .auth-page .container {
        display: block;
        padding: 18px;
    }

    .auth-story {
        min-height: 0;
        padding: 20px 24px;
        border-radius: 28px;
    }

    .auth-story-copy,
    .auth-proof {
        display: none;
    }

    .auth-brand {
        font-size: 26px;
    }

    .auth-panel {
        max-width: 560px;
        padding: 24px 0;
    }

    .auth-panel .page-header {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .app-topbar-inner {
        min-height: 64px;
        padding: 0 20px;
    }

    .app-brand {
        width: 112px;
        margin: -17px 0 -22px;
    }

    .app-theme-toggle {
        width: 38px;
        height: 38px;
    }

    .customer-page .container {
        min-height: calc(100vh - 64px);
        padding-right: 20px;
        padding-left: 20px;
    }

    .customer-page .page-header {
        margin: 30px 0 22px;
        gap: 10px;
    }

    .customer-page .page-header h2 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .customer-page .step-indicator,
    .customer-page .chat-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .dash-header {
        min-height: 0;
        margin-top: 30px;
        padding: 28px 24px;
        border-radius: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dash-title {
        max-width: 12ch;
        font-size: clamp(36px, 10vw, 48px);
    }

    .dash-sub {
        font-size: 13px;
    }

    .dash-proof {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 0;
    }

    .dashboard-page .ready-card {
        padding: 22px;
        border-radius: 26px;
    }

    .dashboard-page .ready-row {
        align-items: flex-start;
    }

    .dashboard-page .ready-card .view-link {
        font-size: 10px;
    }

    .dashboard-page .quick-actions {
        gap: 10px;
    }

    .dashboard-page .action-btn {
        min-height: 66px;
        padding: 14px 16px;
        border-radius: 18px;
        font-size: 12px;
    }

    .dashboard-page .action-btn .ui-icon {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .customer-page .repairs-list,
    .chat-page .chat-list,
    .profile-page .profile-card > .card-content {
        grid-template-columns: 1fr;
    }

    .customer-page .repair-card {
        padding: 20px;
    }

    .repairs-page .filter-tabs {
        flex-wrap: wrap;
        gap: 7px;
        overflow-x: visible;
        padding-bottom: 16px;
    }

    .profile-page .profile-header {
        padding: 24px;
        border-radius: 26px;
    }

    .profile-page .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .profile-page .profile-info h3 {
        font-size: 21px;
    }

    .profile-page .profile-section {
        padding: 20px;
        border-radius: 22px;
    }

    .chat-page .chat-detail-container {
        padding: 10px;
        border-radius: 24px;
    }

    .chat-page .chat-messages {
        min-height: 44vh;
        max-height: 52vh;
        padding: 14px;
    }

    .booking-progress {
        gap: 4px;
        padding: 12px;
    }

    .booking-progress li:not(:last-child)::after {
        left: calc(50% + 15px);
        width: calc(100% - 30px);
    }

    .booking-progress-dot {
        width: 24px;
        height: 24px;
    }

    .booking-progress-label {
        display: none;
    }

    .repair-detail-page .detail-card {
        border-radius: 28px;
    }

    .repair-detail-page .detail-card .card-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .repair-detail-page .detail-device,
    .repair-detail-page .status-timeline,
    .repair-detail-page .detail-info-grid,
    .repair-detail-page .technician-note,
    .repair-detail-page .detail-actions {
        grid-column: 1;
        grid-row: auto;
    }

    .repair-detail-page .detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 18px;
    }

    .booking-page .summary-details {
        grid-template-columns: 1fr;
    }

    .booking-page .issue-grid,
    .booking-page .condition-grid,
    .booking-page .situation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-page .issue-btn,
    .booking-page .condition-btn,
    .booking-page .situation-btn {
        min-height: 100px;
        padding: 15px 12px;
    }

    .booking-page .location-grid {
        grid-template-columns: 1fr;
    }

    .booking-page .datetime-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .booking-page .booking-nav {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .booking-page .booking-nav .btn-primary,
    .booking-page .booking-nav .btn-secondary {
        width: 100%;
    }

    .booking-page .photo-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-page .warranty-modal .modal-actions {
        flex-direction: column-reverse;
    }

    .customer-page .warranty-modal .modal-actions .btn-primary,
    .customer-page .warranty-modal .modal-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .customer-page .card {
        padding: 22px;
        border-radius: 28px;
    }

    .customer-page .page-header h2 {
        line-height: 1;
    }

    .dashboard-page .ready-row {
        flex-direction: column;
        gap: 14px;
    }

    .dashboard-page .ready-card .view-link {
        width: 100%;
        justify-content: center;
    }

    .repair-detail-page .detail-actions {
        flex-direction: column;
    }

    .repair-detail-page .detail-info-item .info-value {
        font-size: 13px;
    }

    .profile-page .profile-header {
        gap: 12px;
        padding: 22px;
    }

    .profile-page .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 21px;
    }

    .profile-page .profile-info {
        min-width: 0;
    }

    .profile-page .profile-info h3 {
        font-size: 19px;
    }

    .profile-page .edit-profile-btn {
        width: 38px;
        height: 38px;
    }

    .booking-page .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-page .price-summary,
    .booking-page .price-breakdown,
    .booking-page .order-summary {
        padding: 18px;
        border-radius: 20px;
    }

    .auth-page .container {
        padding: 12px;
    }

    .auth-story {
        padding: 18px 20px;
        border-radius: 24px;
    }

    .auth-panel .card {
        padding: 22px;
        border-radius: 26px;
    }

    .auth-panel .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .error-page .hero-card {
        border-radius: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-page *,
    .customer-page *::before,
    .customer-page *::after {
        scroll-behavior: auto !important;
    }
}
