/* ============================================================
   consultations.css — Paid consultation module styles
   Consultance.online
   ============================================================ */

/* ----------------------------------------------------------
   Booking flow — breadcrumb & progress
   ---------------------------------------------------------- */
.booking-breadcrumb {
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface-bright) 0%, var(--surface-alt) 100%);
}
.booking-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-body-sm);
}
.booking-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.booking-breadcrumb__item + .booking-breadcrumb__item::before {
    content: '›';
    color: var(--on-surface-muted);
    font-weight: 700;
}
.booking-breadcrumb__link {
    color: var(--on-surface-muted);
    text-decoration: none;
    transition: color 200ms ease;
    white-space: nowrap;
}
.booking-breadcrumb__link:hover,
.booking-breadcrumb__link:focus-visible {
    color: var(--color-accent);
    text-decoration: underline;
}
.booking-breadcrumb__current {
    color: var(--on-surface);
    font-weight: var(--fw-semibold);
}
.booking-breadcrumb__consultant {
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-progress {
    margin-bottom: var(--space-7);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    background: var(--surface-bright);
}
.booking-progress__list {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: var(--space-2);
}
.booking-progress__step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}
.booking-progress__dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid var(--outline-variant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--on-surface-muted);
    background: var(--surface-alt);
    font-size: 12px;
    font-weight: var(--fw-bold);
}
.booking-progress__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.booking-progress__label {
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-semibold);
    color: var(--on-surface);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.booking-progress__hint {
    font-size: var(--fs-body-xs);
    color: var(--on-surface-muted);
}
.booking-progress__connector {
    height: 2px;
    width: 100%;
    background: var(--outline-variant);
    border-radius: 999px;
}
.booking-progress__connector.is-done {
    background: #86efac;
}
.booking-progress__step.is-current .booking-progress__dot {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}
.booking-progress__step.is-current .booking-progress__label {
    color: var(--color-accent);
}
.booking-progress__step.is-done .booking-progress__dot {
    border-color: #86efac;
    background: #d1fae5;
    color: #047857;
}
.booking-progress__step.is-done .booking-progress__label {
    color: var(--on-surface);
}
.booking-progress__step.is-upcoming .booking-progress__dot {
    background: var(--surface-alt);
    color: var(--on-surface-muted);
}
.booking-progress__step.is-upcoming .booking-progress__label {
    color: var(--on-surface-muted);
}

.booking-step-label {
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}
.booking-form-card__title {
    font-size: var(--fs-heading-sm);
    font-weight: var(--fw-bold);
    margin: 0 0 var(--space-1);
}
.booking-form-card__subtitle {
    color: var(--on-surface-muted);
    font-size: var(--fs-body-sm);
    margin: 0;
}

@media (max-width: 640px) {
    .booking-progress {
        padding: var(--space-3);
        margin-bottom: var(--space-5);
    }
    .booking-progress__list {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    .booking-progress__connector { display: none; }
    .booking-breadcrumb__consultant { max-width: 16ch; }
}

/* ----------------------------------------------------------
   Booking Grid Layout
   ---------------------------------------------------------- */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-6);
    align-items: start;
}
@media (max-width: 900px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

/* Detail grid (show pages) */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-5);
    align-items: start;
}
.detail-grid--dashboard { grid-template-columns: 1fr 280px; }
.detail-grid--admin     { grid-template-columns: 1fr 300px; }
@media (max-width: 860px) {
    .detail-grid,
    .detail-grid--dashboard,
    .detail-grid--admin { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   Card variants
   ---------------------------------------------------------- */
.booking-form-card { padding: var(--space-6); }
.booking-summary-col { position: sticky; top: 72px; }

.booking-pkg-card {
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    background: var(--surface);
}
.booking-pkg-card__title { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); margin: 0 0 var(--space-1); }
.booking-pkg-card__price { font-size: var(--fs-heading-sm); font-weight: var(--fw-bold); color: var(--color-accent); margin: var(--space-2) 0; }

/* ----------------------------------------------------------
   Booking status badges
   ---------------------------------------------------------- */
.booking-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
}
.booking-status-badge--pending_payment    { background: #fef9c3; color: #854d0e; }
.booking-status-badge--pending_verification { background: #fef3c7; color: #92400e; }
.booking-status-badge--confirmed          { background: #d1fae5; color: #065f46; }
.booking-status-badge--in_progress        { background: #dbeafe; color: #1e40af; }
.booking-status-badge--completed          { background: #f0fdf4; color: #14532d; border: 1px solid #86efac; }
.booking-status-badge--cancelled          { background: #fee2e2; color: #991b1b; }
.booking-status-badge--disputed           { background: #fce7f3; color: #9d174d; }
.booking-status-badge--refunded           { background: #ede9fe; color: #4c1d95; }

.booking-payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.booking-payment-badge--unpaid               { background: #f1f5f9; color: #475569; }
.booking-payment-badge--pending              { background: #fef3c7; color: #92400e; }
.booking-payment-badge--paid                 { background: #d1fae5; color: #065f46; }
.booking-payment-badge--failed               { background: #fee2e2; color: #991b1b; }
.booking-payment-badge--refunded             { background: #ede9fe; color: #4c1d95; }

/* ----------------------------------------------------------
   Payment Method Cards (checkout)
   ---------------------------------------------------------- */
.payment-method-cards { display: flex; flex-direction: column; gap: var(--space-3); }

.payment-method-card {
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.payment-method-card:hover { border-color: var(--color-accent); }
.payment-method-card.is-selected {
    border-color: var(--color-accent);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.pm-detail { margin-top: var(--space-3); }
.pm-account-number {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--surface-container);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    font-family: monospace;
    font-size: 15px;
    font-weight: 600;
}
.pm-instructions {
    background: var(--surface-container);
    border-left: 3px solid var(--color-accent);
    padding: var(--space-3);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--fs-body-sm);
    white-space: pre-wrap;
}

/* ----------------------------------------------------------
   File Upload Area
   ---------------------------------------------------------- */
.file-upload-area {
    border: 2px dashed var(--outline-variant);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.file-upload-area:hover,
.file-upload-area.is-drag-over {
    border-color: var(--color-accent);
    background: #eff6ff;
}
.file-upload-area__inner { pointer-events: none; }
.file-upload-area__icon { color: var(--on-surface-muted); margin-bottom: var(--space-2); }
.file-upload-area__label { font-size: var(--fs-body-sm); color: var(--on-surface-muted); }
.file-upload-area__preview {
    max-width: 260px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin: var(--space-2) auto 0;
    display: none;
}

/* ----------------------------------------------------------
   Booking success page
   ---------------------------------------------------------- */
.bk-success-page {
    padding-top: var(--space-8);
    padding-bottom: var(--space-16);
}

.bk-success-progress {
    margin-bottom: var(--space-6);
}

.bk-success-grid {
    align-items: start;
}

/* Hero status card */
.bk-success-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-5);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    border: 1px solid var(--outline-variant);
    overflow: hidden;
    position: relative;
}

.bk-success-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
}

.bk-success-hero--success::before { background: linear-gradient(90deg, #059669, #10b981); }
.bk-success-hero--verify::before  { background: linear-gradient(90deg, #d97706, #f59e0b); }
.bk-success-hero--pending::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.bk-success-hero--muted::before   { background: var(--outline-variant); }

.bk-success-hero__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.bk-success-hero--success .bk-success-hero__icon { background: #d1fae5; color: #047857; }
.bk-success-hero--verify .bk-success-hero__icon  { background: #fef3c7; color: #b45309; }
.bk-success-hero--pending .bk-success-hero__icon { background: #dbeafe; color: #1d4ed8; }
.bk-success-hero--muted .bk-success-hero__icon,
.bk-success-hero--neutral .bk-success-hero__icon { background: var(--surface-container); color: var(--on-surface-muted); }

.bk-success-hero__eyebrow {
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    color: var(--on-surface-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 var(--space-1);
}

.bk-success-hero__title {
    font-size: var(--fs-heading-md);
    font-weight: var(--fw-bold);
    margin: 0 0 var(--space-2);
    line-height: 1.2;
    color: var(--on-surface);
}

.bk-success-hero__lede {
    font-size: var(--fs-body-md);
    color: var(--on-surface-muted);
    line-height: 1.55;
    margin: 0 0 var(--space-5);
    max-width: 52ch;
}

.bk-success-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Trust strip */
.bk-success-trust {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.bk-success-trust li {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--surface-bright);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    font-size: var(--fs-body-sm);
    color: var(--on-surface-muted);
    line-height: 1.45;
}

.bk-success-trust li strong {
    display: block;
    color: var(--on-surface);
    font-size: var(--fs-body-sm);
    margin-bottom: 2px;
}

.bk-success-trust__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: #eff6ff;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Timeline */
.bk-success-timeline {
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-4);
}

.bk-success-timeline__title {
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    margin: 0 0 var(--space-4);
}

.bk-success-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bk-success-steps__item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    position: relative;
}

.bk-success-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -4px;
    width: 2px;
    background: var(--outline-variant);
}

.bk-success-steps__item.is-done:not(:last-child)::after {
    background: #86efac;
}

.bk-success-steps__marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: var(--fw-bold);
    background: var(--surface-container);
    color: var(--on-surface-muted);
    border: 2px solid var(--outline-variant);
    position: relative;
    z-index: 1;
}

.bk-success-steps__item.is-done .bk-success-steps__marker {
    background: #d1fae5;
    border-color: #86efac;
    color: #047857;
}

.bk-success-steps__item.is-pending .bk-success-steps__marker {
    background: var(--surface-bright);
}

.bk-success-steps__label {
    display: block;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-body-sm);
    color: var(--on-surface);
}

.bk-success-steps__note {
    display: block;
    font-size: var(--fs-caption);
    color: var(--on-surface-muted);
    margin-top: 2px;
}

.bk-success-notes {
    padding: var(--space-5) var(--space-6);
}

/* Sidebar summary */
.bk-success-summary .booking-order-summary__title {
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    margin: 0 0 var(--space-4);
}

.bk-success-consultant {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.bk-success-consultant__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 1px solid var(--outline-variant);
}

.bk-success-consultant__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    font-weight: var(--fw-bold);
    font-size: 18px;
}

.bk-success-consultant__label {
    display: block;
    font-size: var(--fs-caption);
    color: var(--on-surface-muted);
}

.bk-success-consultant__meta strong {
    display: block;
    font-size: var(--fs-body-md);
}

.bk-success-consultant__link {
    font-size: var(--fs-caption);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--fw-medium);
}

.bk-success-consultant__link:hover { text-decoration: underline; }

.bk-success-divider {
    border: 0;
    border-top: 1px solid var(--outline-variant);
    margin: var(--space-3) 0;
}

.bk-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

.order-line--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
}

.bk-success-summary__status {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.bk-success-summary__help {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--surface-container);
    border-radius: var(--radius-md);
    font-size: var(--fs-caption);
    color: var(--on-surface-muted);
    line-height: 1.45;
}

.bk-success-summary__help i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
}

.bk-success-summary__help a {
    color: var(--color-accent);
    font-weight: var(--fw-medium);
}

@media (max-width: 900px) {
    .bk-success-trust {
        grid-template-columns: 1fr;
    }
    .bk-success-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bk-success-hero__icon {
        margin: 0 auto;
    }
    .bk-success-hero__actions {
        justify-content: center;
    }
    .bk-success-hero__lede {
        max-width: none;
    }
}

@media (max-width: 540px) {
    .bk-success-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Legacy (kept for any old references) */
.booking-success-card {
    max-width: 600px;
    margin: var(--space-12) auto;
    text-align: center;
    padding: var(--space-8);
}
.booking-success-card__icon { font-size: 56px; margin-bottom: var(--space-4); }
.booking-success-card__title { font-size: var(--fs-heading-md); font-weight: var(--fw-bold); margin-bottom: var(--space-2); }

/* ----------------------------------------------------------
   Order Summary
   ---------------------------------------------------------- */
.booking-order-summary { padding: var(--space-4); }
.booking-order-summary__title {
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    margin: 0 0 var(--space-4);
}
.order-line { display: flex; justify-content: space-between; padding: var(--space-2) 0; font-size: var(--fs-body-sm); color: var(--on-surface-muted); border-bottom: 1px solid var(--outline-variant); }
.order-line:last-child { border-bottom: none; }
.order-line--total { font-weight: var(--fw-bold); color: var(--on-surface); font-size: var(--fs-body-md); }

/* Admin payment proof preview */
.booking-proof-preview {
    padding: var(--space-4);
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
}
.booking-proof-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.booking-proof-preview__frame {
    display: block;
    max-width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--outline-variant);
    background: #fff;
}
.booking-proof-preview__frame img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ----------------------------------------------------------
   Status Activity Log
   ---------------------------------------------------------- */
.status-log { display: flex; flex-direction: column; gap: 0; }
.status-log-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--outline-variant);
    position: relative;
}
.status-log-item:last-child { border-bottom: none; }
.status-log-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    background: var(--on-surface-muted);
}
.status-dot--confirmed          { background: #059669; }
.status-dot--completed          { background: #16a34a; }
.status-dot--cancelled          { background: #dc2626; }
.status-dot--pending_payment    { background: #d97706; }
.status-dot--pending_verification { background: #f59e0b; }
.status-dot--in_progress        { background: #2563eb; }
.status-dot--refunded           { background: #7c3aed; }
.status-log-item__title { font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }
.status-log-item__note  { font-size: var(--fs-body-xs); color: var(--on-surface-muted); margin-top: 2px; }
.status-log-item__time  { font-size: var(--fs-body-xs); color: var(--on-surface-muted); margin-top: 2px; }

/* ----------------------------------------------------------
   Price / info notes
   ---------------------------------------------------------- */
.booking-price-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    background: #eff6ff;
    border-left: 3px solid var(--color-accent);
    padding: var(--space-3);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--fs-body-sm);
    color: #1e40af;
}

/* ----------------------------------------------------------
   Star Rating Input (CSS-only)
   ---------------------------------------------------------- */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.star-rating-input input { display: none; }
.star-rating-input label {
    font-size: 28px;
    cursor: pointer;
    color: var(--outline-variant);
    transition: color .1s;
    line-height: 1;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #f59e0b;
}

/* ----------------------------------------------------------
   Filter Tabs
   ---------------------------------------------------------- */
.filter-tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 2px solid var(--outline-variant);
    /* padding-bottom: 0; */
    overflow-x: auto;
    flex-wrap: nowrap;
}
.filter-tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-body-sm);
    font-weight: 500;
    color: var(--on-surface-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.filter-tab:hover { color: var(--on-surface); }
.filter-tab.is-active { color: var(--color-accent); border-bottom-color: var(--color-accent); font-weight: 600; }

/* ----------------------------------------------------------
   Availability editor
   ---------------------------------------------------------- */
.avail-editor { display: flex; flex-direction: column; gap: 0; }
.avail-editor-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--outline-variant);
    flex-wrap: wrap;
}
.avail-editor-row:last-child { border-bottom: none; }
.avail-editor-row__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 120px;
    cursor: pointer;
}
.avail-day-name { font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }
.avail-editor-row__fields { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.avail-editor-row__fields.is-hidden { display: none; }
.avail-time-range { display: flex; align-items: center; gap: var(--space-2); }
.avail-slot-meta  { display: flex; align-items: center; gap: var(--space-2); }
.avail-label { font-size: var(--fs-body-xs); color: var(--on-surface-muted); white-space: nowrap; }
.avail-input, .avail-input--sm { max-width: 100px; }

/* ----------------------------------------------------------
   Detail list (dl)
   ---------------------------------------------------------- */
.detail-list { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-2) var(--space-4); font-size: var(--fs-body-sm); }
.detail-list dt { font-weight: 500; color: var(--on-surface-muted); }
.detail-list dd { margin: 0; }
@media (max-width: 540px) {
    .detail-list { grid-template-columns: 1fr; }
    .detail-list dt { margin-bottom: -4px; }
}

/* ----------------------------------------------------------
   Package type badges
   ---------------------------------------------------------- */
.pkg-type-badge, .booking-pkg-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.pkg-type-badge--call           { background: #dbeafe; color: #1e40af; }
.pkg-type-badge--chat           { background: #fce7f3; color: #9d174d; }
.pkg-type-badge--document_review{ background: #fef9c3; color: #854d0e; }
.pkg-type-badge--retainer       { background: #d1fae5; color: #065f46; }
.pkg-type-badge--custom         { background: #ede9fe; color: #4c1d95; }

/* ----------------------------------------------------------
   Package manage card (consultant dashboard)
   ---------------------------------------------------------- */
.packages-grid { display: flex; flex-direction: column; gap: var(--space-3); }
.pkg-manage-card { transition: opacity .15s; }
.pkg-manage-card--inactive { opacity: .6; }
.pkg-manage-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-2); }
.pkg-manage-card__title { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); margin: var(--space-1) 0 0; }
.pkg-manage-card__meta { font-size: var(--fs-body-sm); color: var(--on-surface-muted); }
.pkg-manage-card__price { font-size: var(--fs-heading-sm); font-weight: var(--fw-bold); color: var(--color-accent); white-space: nowrap; }
.pkg-manage-card__desc { font-size: var(--fs-body-sm); color: var(--on-surface-muted); margin: 0 0 var(--space-3); }
.pkg-manage-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--outline-variant); }

/* ----------------------------------------------------------
   Admin payment method cards
   ---------------------------------------------------------- */
.pm-list { display: flex; flex-direction: column; gap: var(--space-3); }
.pm-admin-card { transition: opacity .15s; }
.pm-admin-card--inactive { opacity: .6; }
.pm-admin-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.pm-admin-card__info { display: flex; align-items: center; gap: var(--space-3); }
.pm-admin-card__icon img,
.pm-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-container);
    font-size: 12px;
    font-weight: 700;
    color: var(--on-surface-muted);
}
.pm-admin-card__actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ----------------------------------------------------------
   Card section title
   ---------------------------------------------------------- */
.card-section-title {
    font-size: var(--fs-body-md);
    font-weight: var(--fw-semibold);
    margin: 0 0 var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--outline-variant);
}

/* ----------------------------------------------------------
   Booking packages display on consultant profile
   ---------------------------------------------------------- */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}
.pkg-card {
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--surface);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pkg-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 6px 20px rgba(37,99,235,.10);
    transform: translateY(-2px);
}
/* Top row: type badge + duration pill */
.pkg-card__top-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}
/* Duration pill */
.pkg-duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 8px;
    border-radius: var(--radius-full);
    background: var(--surface-alt, #f8fafc);
    font: var(--fw-medium) 11px/1 var(--font-sans);
    color: var(--on-surface-muted);
    border: 1px solid var(--outline-variant);
}
.pkg-card__title { font: var(--fw-semibold) var(--fs-body-md)/1.3 var(--font-sans); color: var(--on-surface); margin: 0; }
/* Mode row */
.pkg-card__mode {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-body-sm);
    color: var(--on-surface-variant);
}
.pkg-card__mode svg { color: var(--color-accent); flex-shrink: 0; }
.pkg-card__desc  { font-size: var(--fs-body-sm); color: var(--on-surface-muted); margin: 0; line-height: 1.5; }
.pkg-card__price {
    font: var(--fw-bold) var(--fs-heading-sm)/1 var(--font-sans);
    color: var(--color-primary);
}
.pkg-price--free { color: var(--color-success); font-weight: var(--fw-bold); }
.pkg-card__cta   { margin-top: auto; }
/* Type badges */
.pkg-type-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: var(--radius-full);
    font: var(--fw-bold) 10px/1 var(--font-sans);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pkg-type-badge--call             { background: #dbeafe; color: #1e40af; }
.pkg-type-badge--chat             { background: #d1fae5; color: #065f46; }
.pkg-type-badge--document_review  { background: #fef3c7; color: #92400e; }
.pkg-type-badge--retainer         { background: #ede9fe; color: #4c1d95; }
.pkg-type-badge--custom           { background: #f1f5f9; color: #475569; }
/* Booking CTA button on listing cards */
.consultant-card-book-btn { display: inline-flex; align-items: center; gap: 6px; }
/* Sidebar package list */
.pkg-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-3);
}
.pkg-sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--on-surface);
    transition: background .15s, border-color .15s;
    border: 1px solid transparent;
}
.pkg-sidebar-item:hover {
    background: var(--surface-alt, #f8fafc);
    border-color: var(--outline-variant);
    text-decoration: none;
}
.pkg-sidebar-item__icon { font-size: 18px; flex-shrink: 0; width: 32px; text-align: center; }
.pkg-sidebar-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkg-sidebar-item__name { font: var(--fw-semibold) var(--fs-body-sm)/1.2 var(--font-sans); color: var(--on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-sidebar-item__meta { font-size: 11px; color: var(--on-surface-muted); }
.pkg-sidebar-item__price { font: var(--fw-bold) var(--fs-body-sm)/1 var(--font-sans); color: var(--color-primary); flex-shrink: 0; white-space: nowrap; }

/* ----------------------------------------------------------
   Reviews section on consultant profile
   ---------------------------------------------------------- */
.reviews-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
.review-card { border-left: 3px solid var(--outline-variant); padding: var(--space-3) var(--space-4); }
.review-card__stars { color: #f59e0b; letter-spacing: 2px; font-size: 15px; }
.review-card__text  { margin: var(--space-1) 0; font-size: var(--fs-body-sm); }
.review-card__meta  { font-size: var(--fs-body-xs); color: var(--on-surface-muted); }

/* ----------------------------------------------------------
   Nav group label in dashboard sidebar
   ---------------------------------------------------------- */
.dash__nav-group {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--on-surface-muted);
    padding: var(--space-4) var(--space-3) var(--space-1);
}

/* ----------------------------------------------------------
   Misc helpers
   ---------------------------------------------------------- */
.text-danger  { color: #dc2626 !important; }
.text-success { color: #059669 !important; }
.text-accent  { color: var(--color-accent) !important; }
.card--danger-outline { border: 1.5px solid #fca5a5; }
