/* YES Uniwork – Customer dashboard (redesigned) & book flow */
:root {
    --cu-bg: #f8f8f5;
    --cu-card: #ffffff;
    --cu-primary: #181710;
    --cu-primary-hover: #2d2b24;
    --cu-dark: #181710;
    --cu-muted: #57534e;
    --cu-muted-light: rgba(24, 23, 16, 0.5);
    --cu-border: #e7e5e4;
    --cu-accent: #ffd900;
    --cu-radius: 12px;
    --cu-radius-lg: 16px;
    --cu-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --cu-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
body.customer-app {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--cu-dark);
    background: var(--cu-bg);
    min-height: 100vh;
}

.customer-layout {
    display: flex;
    min-height: 100vh;
}

/* ========== Sidebar ========== */
.customer-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--cu-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand a {
    display: inline-block;
}

.sidebar-logo {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left: 3px solid var(--cu-accent);
    padding-left: 21px;
}

.nav-icon {
    font-size: 14px;
    opacity: 0.9;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cu-accent);
    color: var(--cu-dark);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.sidebar-logout {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.sidebar-logout:hover {
    color: #fff;
}

/* Legacy sidebar (book.php, profile.php) */
.customer-sidebar .brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0;
}
.customer-sidebar .brand a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
}
.customer-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.customer-sidebar nav a:hover,
.customer-sidebar nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.customer-sidebar nav a.active {
    border-left: 3px solid var(--cu-accent);
    padding-left: 21px;
}

.customer-main {
    flex: 1;
    padding: 32px 40px 48px;
    overflow-x: hidden;
    max-width: 100%;
}

/* ========== Dashboard ========== */
.dash-toast {
    padding: 14px 20px;
    border-radius: var(--cu-radius);
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14px;
}

.dash-toast-success {
    background: #d1fae5;
    color: #065f46;
}

.dash-header {
    margin-bottom: 32px;
}

.dash-welcome h1 {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cu-dark);
    letter-spacing: -0.02em;
}

.dash-welcome p {
    margin: 0 0 24px;
    color: var(--cu-muted);
    font-size: 15px;
}

.dash-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.dash-stat {
    background: var(--cu-card);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    padding: 16px 24px;
    min-width: 120px;
}

.dash-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cu-dark);
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 13px;
    color: var(--cu-muted);
}

.dash-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.dash-action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--cu-card);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    text-decoration: none;
    color: var(--cu-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-action-card:hover {
    border-color: var(--cu-dark);
    box-shadow: var(--cu-shadow-md);
}

.dash-action-primary {
    background: var(--cu-dark);
    color: #fff;
    border-color: var(--cu-dark);
}

.dash-action-primary:hover {
    background: var(--cu-primary-hover);
    border-color: var(--cu-primary-hover);
    color: #fff;
}

.dash-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(24, 23, 16, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dash-action-primary .dash-action-icon {
    background: rgba(255,255,255,0.2);
}

.dash-action-text {
    flex: 1;
    min-width: 0;
}

.dash-action-card h3 {
    margin: 0 0 4px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.dash-action-card p {
    margin: 0;
    font-size: 13px;
    color: var(--cu-muted);
}

.dash-action-primary p {
    color: rgba(255,255,255,0.85);
}

.dash-action-arrow {
    font-size: 1.25rem;
    opacity: 0.6;
}

/* Your bookings ========== */
.dash-bookings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.dash-bookings h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cu-dark);
}

.dash-bookings-filters {
    display: flex;
    gap: 6px;
}

.filter-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cu-muted);
    background: var(--cu-card);
    border: 1px solid var(--cu-border);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter-tab:hover {
    color: var(--cu-dark);
}

.filter-tab.active {
    background: var(--cu-dark);
    color: #fff;
    border-color: var(--cu-dark);
}

.dash-booking-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--cu-card);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    transition: border-color 0.2s;
}

.booking-card:hover {
    border-color: rgba(24, 23, 16, 0.2);
}

.booking-card-main {
    flex: 1;
    min-width: 0;
}

.booking-card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cu-muted);
}

.booking-card-title {
    margin: 2px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cu-dark);
}

.booking-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.booking-card-date,
.booking-card-type {
    font-size: 13px;
    color: var(--cu-muted);
}

.booking-card-address,
.booking-card-partner {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--cu-muted-light);
}

.booking-card-status {
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #dbeafe; color: #1e40af; }
.badge-done { background: #d1fae5; color: #065f46; }
.badge-cancel { background: #fee2e2; color: #b91c1c; }

/* Warranties */
.warranty-msg { padding: 12px 16px; border-radius: var(--cu-radius-md); margin-bottom: 20px; }
.warranty-msg-success { background: #d1fae5; color: #065f46; }
.warranty-msg-error { background: #fee2e2; color: #b91c1c; }
.warranty-cards { display: flex; flex-direction: column; gap: 16px; }
.warranty-card {
    background: var(--cu-card);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 20px;
    box-shadow: var(--cu-shadow-sm);
}
.warranty-card-main { margin-bottom: 12px; }
.warranty-card-service { font-size: 1rem; font-weight: 700; color: var(--cu-dark); display: block; margin-bottom: 8px; }
.warranty-card-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--cu-muted); margin-bottom: 8px; }
.warranty-claim-info, .warranty-appt-info { font-size: 13px; color: var(--cu-muted); margin: 6px 0 0; }
.warranty-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.warranty-form-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cu-border); }
.warranty-form-wrap form { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.warranty-form-wrap label { font-size: 14px; font-weight: 600; color: var(--cu-dark); }
.warranty-form-wrap input[type="date"], .warranty-form-wrap input[type="time"], .warranty-form-wrap input[type="text"], .warranty-form-wrap textarea {
    padding: 10px 14px; border: 1px solid var(--cu-border); border-radius: var(--cu-radius-md); font-size: 15px;
}
.btn-small { padding: 8px 16px; font-size: 14px; }

.dash-empty {
    text-align: center;
    padding: 56px 32px;
    background: var(--cu-card);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
}

.dash-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.dash-empty h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cu-dark);
}

.dash-empty p {
    margin: 0 0 24px;
    color: var(--cu-muted);
    font-size: 15px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--cu-dark);
}

/* Legacy (book flow) */
.bookings-list { background: var(--cu-card); border-radius: var(--cu-radius); border: 1px solid var(--cu-border); overflow: hidden; }
.booking-row { display: grid; grid-template-columns: 1fr 100px 1fr 120px 100px; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--cu-border); }
.booking-row:last-child { border-bottom: none; }
.booking-row.booking-header { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; color: var(--cu-muted); background: var(--cu-bg); }
.booking-row .svc { font-weight: 600; color: var(--cu-dark); }
.booking-row .meta { font-size: 0.875rem; color: var(--cu-muted); }
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--cu-muted); }
.empty-state p { margin: 0 0 1rem; }

@media (max-width: 900px) {
    .booking-row { grid-template-columns: 1fr 1fr; }
    .booking-row .hide-mobile { display: none; }
}

/* Responsive ========== */
@media (max-width: 1024px) {
    .customer-main { padding: 24px; }
    .dash-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .customer-layout { flex-direction: column; }
    .customer-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px;
        gap: 0;
    }
    .sidebar-brand { border: none; padding: 0; margin-right: auto; }
    .sidebar-nav {
        order: 3;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 12px 0 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .sidebar-nav a { padding: 8px 12px; font-size: 14px; border-radius: 8px; border-left: none; padding-left: 12px; }
    .sidebar-footer {
        order: 2;
        flex: 1;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .sidebar-user { margin-bottom: 0; }
    .customer-main { padding: 20px 16px 32px; }
    .dash-welcome h1 { font-size: 1.5rem; }
    .dash-stats { gap: 12px; }
    .dash-stat { padding: 12px 16px; min-width: 0; }
    .dash-stat-value { font-size: 1.25rem; }
    .booking-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dash-bookings-head { flex-direction: column; align-items: flex-start; }
}

/* Book flow */
.book-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.book-steps .step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--cu-border);
}

.book-steps .step.done { background: var(--cu-primary); }
.book-steps .step.current { background: var(--cu-primary); }

.book-card {
    background: var(--cu-card);
    border-radius: var(--cu-radius);
    box-shadow: var(--cu-shadow);
    border: 1px solid var(--cu-border);
    padding: 1.5rem;
    max-width: 560px;
}

.book-card h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.category-card {
    display: block;
    padding: 1.25rem;
    background: var(--cu-bg);
    border: 2px solid var(--cu-border);
    border-radius: var(--cu-radius);
    text-align: center;
    text-decoration: none;
    color: var(--cu-dark);
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}

.category-card:hover {
    border-color: var(--cu-primary);
    background: rgba(13, 148, 136, 0.06);
}

.service-list .service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--cu-bg);
    border: 2px solid var(--cu-border);
    border-radius: var(--cu-radius);
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--cu-dark);
    transition: border-color 0.2s, background 0.2s;
}

.service-list .service-card:hover {
    border-color: var(--cu-primary);
    background: rgba(13, 148, 136, 0.06);
}

.service-card .name { font-weight: 600; flex: 1; }
.service-card .price { color: var(--cu-primary); font-weight: 600; font-size: 1rem; }

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cu-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--cu-border);
    border-radius: 8px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 88px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cu-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

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

.btn-primary:hover {
    background: var(--cu-primary-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--cu-border);
    color: var(--cu-dark);
}

.btn-secondary:hover {
    background: #d6d3d1;
}

.btn-block { width: 100%; }

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-actions .btn { flex: 1; }

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cu-border);
}

.summary-line:last-child { border-bottom: none; }

.summary-line strong { color: var(--cu-dark); }

.partner-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--cu-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.partner-option:hover,
.partner-option.selected {
    border-color: var(--cu-primary);
    background: rgba(13, 148, 136, 0.06);
}

.partner-option input { width: auto; margin: 0; }

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.success-toast {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ========== New Dashboard (top bar + issue flow) ========== */
.customer-dashboard-new { background: #fff; }

.preheader {
    background: var(--cu-dark);
    color: rgba(255,255,255,0.85);
    padding: 8px 24px;
    font-size: 13px;
}

.preheader-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preheader-dot { opacity: 0.5; }

.dashboard-header {
    background: #fff;
    border-bottom: 1px solid var(--cu-border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-header-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 64px;
}

.dashboard-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dashboard-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cu-dark);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.dashboard-header.nav-open .dashboard-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.dashboard-header.nav-open .dashboard-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.dashboard-header.nav-open .dashboard-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.dashboard-logo { display: flex; align-items: center; }
.dashboard-logo-img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }

.dashboard-nav {
    display: flex;
    gap: 8px;
}

.dashboard-nav a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cu-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.dashboard-nav a:hover { color: var(--cu-dark); }
.dashboard-nav a.active {
    background: rgba(24, 23, 16, 0.06);
    color: var(--cu-dark);
}

.dashboard-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cu-accent);
    color: var(--cu-dark);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-name { font-size: 14px; font-weight: 600; color: var(--cu-dark); }
.dashboard-logout { font-size: 13px; color: var(--cu-muted); text-decoration: none; }
.dashboard-logout:hover { color: var(--cu-dark); }

.credits-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--cu-dark);
    background: rgba(24, 23, 16, 0.06);
    padding: 6px 12px;
    border-radius: 999px;
}

.dashboard-main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 80px 60px;
    box-sizing: border-box;
}

.issue-flow { padding: 0; }
.issue-flow.hidden { display: none; }
.issue-headline {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cu-dark);
    letter-spacing: -0.02em;
}

.issue-subline {
    margin: 0 0 32px;
    font-size: 15px;
    color: var(--cu-muted);
    line-height: 1.5;
}

/* Investigation (single-step submit) */
.investigation-flow {
    width: 100%;
}

.investigation-form.hidden {
    display: none;
}

.investigation-actions {
    margin-top: 28px;
}

.btn-submit-investigation {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}

.investigation-success {
    padding: 24px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--cu-radius-lg);
}

.investigation-success.hidden {
    display: none;
}

.investigation-success-text {
    margin: 0;
    font-size: 16px;
    color: #065f46;
    font-weight: 500;
}

/* AI progress – full width */
.ai-progress-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 48px 0;
}

.ai-progress-wrap.hidden { display: none; }

.ai-progress-inner {
    background: #0c0c0c;
    border-radius: 16px;
    padding: 40px 48px;
    color: #e5e5e5;
    border: 1px solid rgba(255,255,255,0.06);
}

.ai-progress-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.ai-progress-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cu-accent);
    animation: ai-pulse 1.2s ease-in-out infinite;
}

@keyframes ai-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.4); }
    50% { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 8px rgba(253, 224, 71, 0); }
}

.ai-progress-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fafafa;
    letter-spacing: -0.01em;
}

.ai-progress-bar-wrap {
    height: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ai-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cu-accent) 0%, #fcd34d 100%);
    border-radius: 999px;
    transition: width 0.45s ease;
}

.ai-progress-step {
    margin: 0 0 16px;
    font-size: 14px;
    color: #a3a3a3;
    text-align: center;
    font-weight: 500;
}

.ai-progress-log {
    margin: 0;
    padding-left: 24px;
    font-size: 12px;
    color: #737373;
    max-height: 72px;
    overflow-y: auto;
}

.ai-progress-log li { margin-bottom: 4px; }

/* AI result – full width */
.ai-result-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.ai-result-wrap.hidden { display: none; }

.ai-result-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--cu-border);
    overflow: hidden;
}

.ai-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 40px 24px;
    border-bottom: 1px solid var(--cu-border);
}

.ai-result-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-result-view-toggle {
    display: flex;
    background: var(--cu-bg);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--cu-border);
}

.ai-result-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cu-muted);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ai-result-tab:hover { color: var(--cu-dark); }

.ai-result-tab.active {
    background: #fff;
    color: var(--cu-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.ai-result-severity {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ai-result-severity.severity-low {
    background: #d1fae5;
    color: #065f46;
}

.ai-result-severity.severity-medium {
    background: #fef3c7;
    color: #92400e;
}

.ai-result-severity.severity-high {
    background: #fee2e2;
    color: #b91c1c;
}

.ai-result-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cu-muted);
}

.ai-result-image-block {
    padding: 24px 40px 0;
    border-bottom: 1px solid var(--cu-border);
    margin-bottom: 0;
}
.ai-result-photo-wrap {
    margin: 12px 0 20px;
    border-radius: var(--cu-radius-lg);
    overflow: hidden;
    border: 1px solid var(--cu-border);
    background: var(--cu-bg);
    max-width: 360px;
}
.ai-result-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    background: #f8f8f8;
}
.ai-result-image-analysis-label { margin-top: 16px; }
.ai-result-image-analysis {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cu-muted);
    white-space: pre-wrap;
    max-width: 720px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ai-result-image-analysis.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.ai-result-image-analysis-toggle {
    margin-top: 6px;
    padding: 0;
    font-size: 13px;
    color: var(--cu-primary, #2563eb);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}
.ai-result-image-analysis-toggle:hover { opacity: 0.85; }
.ai-result-image-analysis-toggle.hidden { display: none !important; }

.ai-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ai-result-block {
    padding: 32px 40px;
}

.ai-result-block-desc {
    border-right: 1px solid var(--cu-border);
    border-bottom: none;
}

.ai-result-block-steps {
    border-left: none;
}

.ai-result-desc.hidden,
.ai-result-steps-wrap.hidden { display: none; }

.ai-result-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--cu-dark);
}

.ai-result-label {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cu-muted);
}

.ai-result-expert-steps {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.65;
    color: var(--cu-dark);
}

.ai-result-expert-steps li {
    margin-bottom: 14px;
    padding-left: 20px;
    position: relative;
}

.ai-result-expert-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cu-dark);
    opacity: 0.4;
}

.ai-result-steps {
    margin: 0;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--cu-dark);
}

.ai-result-steps li {
    margin-bottom: 12px;
}

.ai-result-steps li:last-child {
    margin-bottom: 0;
}

.ai-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 40px 32px;
    border-top: 1px solid var(--cu-border);
    background: #fafafa;
}

.ai-result-actions .btn-book-expert {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .ai-progress-inner { padding: 28px 24px; }
    .ai-result-header,
    .ai-result-image-block { padding-left: 24px; padding-right: 24px; }
    .ai-result-block,
    .ai-result-actions { padding-left: 24px; padding-right: 24px; }
    .ai-result-header { padding-top: 24px; flex-direction: column; align-items: flex-start; }
    .ai-result-view-toggle { width: 100%; }
    .ai-result-tab { flex: 1; text-align: center; min-height: 44px; }
    .ai-result-grid { grid-template-columns: 1fr; }
    .ai-result-block-desc { border-right: none; border-bottom: 1px solid var(--cu-border); }
    .ai-result-actions { padding-bottom: 28px; }
}

@media (max-width: 480px) {
    .ai-progress-wrap,
    .ai-result-wrap { padding-left: 0; padding-right: 0; }
    .ai-progress-inner { padding: 20px 16px; }
    .ai-result-header,
    .ai-result-image-block { padding-left: 16px; padding-right: 16px; }
    .ai-result-block,
    .ai-result-actions { padding-left: 16px; padding-right: 16px; }
    .ai-result-actions { flex-direction: column; }
    .ai-result-actions .btn { width: 100%; justify-content: center; }
}

/* History page */
.history-main .issue-subline { margin-bottom: 28px; }

.history-empty {
    padding: 32px;
    background: var(--cu-bg);
    border-radius: var(--cu-radius-lg);
    text-align: center;
}

.history-empty p { margin: 0; color: var(--cu-muted); }
.history-empty a { color: var(--cu-dark); font-weight: 600; }

.history-list { display: flex; flex-direction: column; gap: 16px; }

.history-card {
    background: #fff;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 24px 28px;
}

.history-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.history-card-meta { display: flex; flex-direction: column; gap: 2px; }

.history-card-date {
    font-size: 13px;
    color: var(--cu-muted);
}

.history-card-service {
    font-size: 16px;
    font-weight: 700;
    color: var(--cu-dark);
}

.history-card-photo-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--cu-radius-md);
    overflow: hidden;
    border: 1px solid var(--cu-border);
    display: block;
}
.history-card-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-severity {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-severity.severity-low { background: #d1fae5; color: #065f46; }
.history-severity.severity-medium { background: #fef3c7; color: #92400e; }
.history-severity.severity-high { background: #fee2e2; color: #b91c1c; }

.history-card-issue {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cu-muted);
}

.history-card-toggle {
    font-size: 14px;
    font-weight: 600;
    color: var(--cu-dark);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.history-card-toggle:hover { color: var(--cu-accent); }

.history-card-detail {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cu-border);
}

.history-detail-photo-wrap { margin-bottom: 20px; }
.history-detail-photo-link {
    display: inline-block;
    max-width: 320px;
    border-radius: var(--cu-radius-md);
    overflow: hidden;
    border: 1px solid var(--cu-border);
    margin-top: 8px;
}
.history-detail-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    background: var(--cu-bg);
}
.history-detail-image-analysis {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cu-muted);
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.history-detail-image-analysis.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.history-detail-image-toggle {
    margin: 0 0 16px;
    padding: 0;
    font-size: 13px;
    color: var(--cu-primary, #2563eb);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}
.history-detail-image-toggle:hover { opacity: 0.85; }

.history-detail-label {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cu-muted);
}

.history-detail-technical {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cu-dark);
}

.history-detail-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cu-dark);
}

.history-detail-steps li { margin-bottom: 6px; }

@media (max-width: 480px) {
    .history-card { padding: 16px 18px; }
    .history-card-toggle { min-height: 44px; padding: 8px 0; }
    .dash-booking-cards { gap: 12px; }
    .booking-card { padding: 16px; }
}

.issue-step {
    display: none;
}

.issue-step.active {
    display: block;
}

.issue-step-title {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cu-dark);
}

.issue-step-desc {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--cu-muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
    background: #fff;
    border: 2px solid var(--cu-border);
    border-radius: var(--cu-radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.service-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(24, 23, 16, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.service-card .service-icon {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.service-card.selected .service-card-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
}

.service-card.selected .service-icon {
    stroke: #fff;
}

.service-card:hover {
    border-color: var(--cu-dark);
    background: var(--cu-bg);
}

.service-card.selected {
    border-color: var(--cu-dark);
    background: var(--cu-dark);
    color: #fff;
}

.service-card-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    display: block;
}

.service-card-desc {
    font-size: 13px;
    color: var(--cu-muted);
    line-height: 1.4;
}

.service-card.selected .service-card-desc {
    color: rgba(255,255,255,0.85);
}

.issue-step-selected {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--cu-muted);
    margin: 0 0 16px;
    padding: 8px 14px;
    background: var(--cu-bg);
    border-radius: 8px;
    border: 1px solid var(--cu-border);
}

.issue-step-selected.visible {
    display: block;
}

.issue-options-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.issue-option-block {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cu-dark);
    background: #fff;
    border: 2px solid var(--cu-border);
    border-radius: var(--cu-radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.issue-option-block:hover {
    border-color: var(--cu-dark);
    background: var(--cu-bg);
}

.issue-option-block.selected {
    border-color: var(--cu-dark);
    background: var(--cu-dark);
    color: #fff;
}

.issue-form-group {
    margin-bottom: 20px;
}

.issue-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--cu-dark);
}

.issue-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.issue-form-group textarea:focus {
    outline: none;
    border-color: var(--cu-dark);
}

.photo-upload {
    position: relative;
}

.photo-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed var(--cu-border);
    border-radius: var(--cu-radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.photo-label:hover {
    border-color: var(--cu-dark);
    background: var(--cu-bg);
}

.photo-placeholder {
    font-size: 14px;
    color: var(--cu-muted);
}

.photo-name {
    font-size: 13px;
    color: var(--cu-dark);
    margin-top: 6px;
}

.issue-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.issue-step-actions .btn-next,
.issue-step-actions .btn-submit {
    margin-left: auto;
}

.hidden { display: none !important; }

.issue-result-wrap {
    margin-top: 24px;
}

.result-loading {
    text-align: center;
    padding: 48px 24px;
}

.result-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--cu-border);
    border-top-color: var(--cu-dark);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-loading p {
    margin: 0;
    font-size: 14px;
    color: var(--cu-muted);
}

.result-card {
    background: var(--cu-bg);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 28px 32px;
}

.result-title {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cu-dark);
}

.result-summary {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cu-dark);
}

.result-steps-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cu-dark);
}

.result-steps {
    margin: 0 0 24px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--cu-muted);
}

.result-steps li { margin-bottom: 8px; }

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-book-expert {
    text-decoration: none;
}

@media (max-width: 768px) {
    .preheader { padding: 8px 0; }
    .preheader-inner { justify-content: center; font-size: 12px; }
    .dashboard-header { padding: 0 16px; }
    .dashboard-header-inner {
        flex-wrap: wrap;
        min-height: 56px;
        padding: 12px 0;
        gap: 12px;
    }
    .dashboard-nav-toggle {
        display: flex;
        margin-left: auto;
    }
    .dashboard-logo-img { height: 36px; max-width: 140px; }
    .dashboard-nav {
        display: none;
        order: 3;
        flex-direction: column;
        width: 100%;
        gap: 6px;
        margin-top: 12px;
        padding: 12px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
    .dashboard-header.nav-open .dashboard-nav {
        display: flex;
    }
    .dashboard-nav a {
        padding: 14px 18px;
        font-size: 15px;
        font-weight: 500;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-radius: 10px;
        color: var(--cu-dark);
        text-decoration: none;
        transition: background 0.2s;
        border: none;
    }
    .dashboard-nav a:hover {
        background: var(--cu-bg);
    }
    .dashboard-nav a.active {
        background: rgba(24, 23, 16, 0.08);
        color: var(--cu-dark);
        font-weight: 600;
    }
    .dashboard-user {
        margin-left: 0;
        gap: 8px;
        flex-wrap: wrap;
    }
    .credits-pill { font-size: 11px; padding: 6px 10px; }
    .dashboard-main { padding: 24px 24px 40px; }
    .issue-headline { font-size: 1.5rem; }
    .issue-subline { font-size: 14px; }
    .service-grid { grid-template-columns: 1fr; gap: 10px; }
    .service-card { padding: 16px; min-height: auto; }
    .issue-option-block { min-height: 44px; padding: 12px 16px; }
    .issue-form-group textarea,
    .issue-form-group input,
    .photo-label { min-height: 44px; }
    .btn { min-height: 44px; padding: 12px 20px; }
}

@media (max-width: 480px) {
    .preheader-inner { flex-wrap: wrap; justify-content: center; gap: 4px; }
    .dashboard-header-inner { padding: 10px 12px; }
    .dashboard-logo-img { height: 32px; max-width: 120px; }
    .dashboard-nav { padding: 10px; gap: 4px; }
    .dashboard-nav a { padding: 12px 16px; font-size: 15px; }
    .dashboard-name { display: none; }
    .credits-pill { font-size: 10px; padding: 5px 8px; }
    .dashboard-main { padding: 20px 20px 32px; }
    .issue-headline { font-size: 1.35rem; }
    .issue-step-actions .btn { width: 100%; }
}

/* ========== Book page ========== */
.book-page-main .page-title,
.profile-page-main .page-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cu-dark);
    letter-spacing: -0.02em;
}

.book-page-main .page-subtitle,
.profile-page-main .page-subtitle {
    margin: 0 0 28px;
    font-size: 15px;
    color: var(--cu-muted);
}

.book-steps {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    max-width: 400px;
}

.book-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cu-muted);
    background: var(--cu-bg);
    border: 1px solid var(--cu-border);
}

.book-step:first-child { border-radius: 8px 0 0 8px; }
.book-step:last-child { border-radius: 0 8px 8px 0; }
.book-step + .book-step { border-left: none; }

.book-step span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--cu-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.book-step.current {
    background: var(--cu-dark);
    color: #fff;
    border-color: var(--cu-dark);
}

.book-step.current span {
    background: var(--cu-accent);
    color: var(--cu-dark);
    border-color: var(--cu-accent);
}

.book-step.done {
    background: rgba(24, 23, 16, 0.06);
    color: var(--cu-dark);
}

.book-step.done span {
    background: var(--cu-dark);
    color: #fff;
    border-color: var(--cu-dark);
}

.book-content { width: 100%; }

.book-panel {
    background: #fff;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 28px 32px;
}

.book-panel-title {
    margin: 0 0 20px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cu-dark);
}

.book-back { margin: 0 0 16px; font-size: 14px; }
.book-back a { color: var(--cu-dark); font-weight: 500; }
.book-back a:hover { text-decoration: underline; }

.book-empty {
    margin: 0;
    font-size: 15px;
    color: var(--cu-muted);
}

.book-summary {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--cu-muted);
}

.book-change {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cu-dark);
}

.book-change:hover { text-decoration: underline; }

.category-grid-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-card-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--cu-bg);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    text-decoration: none;
    color: var(--cu-dark);
    font-weight: 600;
    font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
}

.category-card-new:hover {
    border-color: var(--cu-dark);
    background: #fff;
}

.category-card-arrow {
    font-size: 18px;
    opacity: 0.5;
}

.service-list-new { display: flex; flex-direction: column; gap: 10px; }

.service-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--cu-bg);
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    text-decoration: none;
    color: var(--cu-dark);
    transition: border-color 0.2s, background 0.2s;
}

.service-row:hover {
    border-color: var(--cu-dark);
    background: #fff;
}

.service-row-name { flex: 1; font-weight: 600; font-size: 15px; }
.service-row-price { font-weight: 600; color: var(--cu-dark); }
.service-row-arrow { font-size: 18px; opacity: 0.5; }

.book-form .form-group { margin-bottom: 20px; }
.book-form .form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--cu-dark); }
.book-form .form-group input,
.book-form .form-group select,
.book-form .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    font-size: 15px;
    font-family: inherit;
}
.book-form .form-group textarea { min-height: 80px; resize: vertical; }
.book-form .form-group input:focus,
.book-form .form-group select:focus,
.book-form .form-group textarea:focus {
    outline: none;
    border-color: var(--cu-dark);
}
.book-form .form-group-sched { margin-top: 0; }
.book-form .form-actions { margin-top: 24px; gap: 12px; }

/* ========== Profile page ========== */
.profile-page-main { width: 100%; }

.profile-toast {
    padding: 14px 18px;
    border-radius: var(--cu-radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.profile-toast.success { background: #d1fae5; color: #065f46; }
.profile-toast.error { background: #fee2e2; color: #b91c1c; }

.profile-panel {
    background: #fff;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius-lg);
    padding: 32px;
}

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--cu-border);
}

.profile-photo-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cu-bg);
    border: 2px solid var(--cu-border);
    flex-shrink: 0;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--cu-dark);
    background: var(--cu-accent);
}

.profile-photo-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.profile-photo-label {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cu-dark);
    background: var(--cu-bg);
    border: 1px solid var(--cu-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.profile-photo-label:hover {
    border-color: var(--cu-dark);
}

.profile-form .form-group { margin-bottom: 20px; }
.profile-form .form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--cu-dark); }
.profile-form .form-group input,
.profile-form .form-group select,
.profile-form .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cu-border);
    border-radius: var(--cu-radius);
    font-size: 15px;
    font-family: inherit;
}
.profile-form .form-group textarea { min-height: 80px; resize: vertical; }
.profile-form .form-group input:focus,
.profile-form .form-group select:focus,
.profile-form .form-group textarea:focus {
    outline: none;
    border-color: var(--cu-dark);
}

.input-disabled {
    background: var(--cu-bg);
    color: var(--cu-muted);
    cursor: not-allowed;
}

.profile-form .form-actions { margin-top: 28px; gap: 12px; }

@media (max-width: 768px) {
    .book-steps { flex-wrap: wrap; }
    .book-step { font-size: 12px; padding: 8px 6px; }
    .book-step span { width: 18px; height: 18px; font-size: 11px; }
    .book-panel { padding: 20px; }
    .profile-panel { padding: 24px; }
    .profile-photo-section { flex-direction: column; align-items: flex-start; }
    .form-actions .btn { min-height: 44px; }
}

@media (max-width: 480px) {
    .book-panel,
    .profile-panel { padding: 16px; }
    .category-card-new,
    .service-row { padding: 14px 16px; }
    .page-title { font-size: 1.5rem; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
}
