﻿.masteradmin-wrap {
    max-width: 1480px;
}

.masteradmin-shell {
    display: grid;
    gap: 24px;
    margin-top: 18px;
}

.masteradmin-hero,
.masteradmin-stats,
.masteradmin-layout {
    display: grid;
    gap: 24px;
}

.masteradmin-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.9fr);
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #172554 100%);
    color: #fff;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.masteradmin-kicker,
.masteradmin-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.masteradmin-hero-copy h1 {
    margin: 18px 0 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #fff;
}

.masteradmin-hero-copy p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 17px;
    line-height: 1.75;
}

.masteradmin-link-grid {
    display: grid;
    gap: 14px;
    align-content: start;
}

.masteradmin-link-card,
.masteradmin-panel,
.masteradmin-stat {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
}

.masteradmin-link-card {
    display: block;
    padding: 22px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.masteradmin-link-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.masteradmin-link-card strong {
    display: block;
    color: #fff;
    font-size: 20px;
}

.masteradmin-link-card span {
    display: block;
    margin-top: 8px;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.6;
}

.masteradmin-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.masteradmin-stat {
    padding: 22px;
}

.masteradmin-stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.masteradmin-stat strong {
    display: block;
    margin-top: 14px;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.masteradmin-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.9fr);
    align-items: start;
}

.masteradmin-main,
.masteradmin-sidebar {
    display: grid;
    gap: 24px;
}

.masteradmin-panel {
    padding: 24px;
}

.masteradmin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.masteradmin-panel-head h2 {
    margin: 10px 0 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.05;
}

.masteradmin-count {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.masteradmin-inline-link {
    color: #0369a1;
    text-decoration: none;
    font-weight: 700;
}

.masteradmin-pandit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.masteradmin-pokecard {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.masteradmin-pokecard:hover,
.masteradmin-pokecard.is-active {
    transform: translateY(-2px);
    border-color: #38bdf8;
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.12);
}

.masteradmin-pokecard img,
.masteradmin-profile img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 22px;
    border: 3px solid #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.masteradmin-pokecard-body strong,
.masteradmin-profile strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
}

.masteradmin-pokecard-body span,
.masteradmin-profile span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.masteradmin-status {
    grid-column: 2;
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.masteradmin-status.is-live {
    background: #dcfce7;
    color: #15803d;
}

.masteradmin-status.is-offline {
    background: #fee2e2;
    color: #b91c1c;
}

.masteradmin-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
}

.masteradmin-table {
    width: 100%;
    border-collapse: collapse;
}

.masteradmin-table thead th {
    padding: 16px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
}

.masteradmin-table tbody td {
    padding: 16px;
    border-top: 1px solid #eef2f7;
    color: #0f172a;
}

.masteradmin-table code {
    padding: 8px 10px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
}

.masteradmin-sticky {
    position: sticky;
    top: 46px;
}

.masteradmin-profile {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.masteradmin-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.masteradmin-mini-stats div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.masteradmin-mini-stats span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.masteradmin-mini-stats strong {
    display: block;
    margin-top: 10px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.masteradmin-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.masteradmin-form label {
    color: #0f172a;
    font-weight: 700;
}

.masteradmin-form input {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
}

.masteradmin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px;
}

.masteradmin-checkbox input {
    min-height: auto;
}

.masteradmin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.masteradmin-actions .button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.masteradmin-empty {
    margin: 0;
    padding: 18px 20px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.pandit-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pandit-page-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}

.pandit-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.pandit-filter-btn {
    padding: 6px 16px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}

.pandit-filter-btn:hover,
.pandit-filter-btn.active {
    background: #e8f0fb;
    color: #1a5fd4;
    border-color: transparent;
}

.pandit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.pandit-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.pandit-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-banner {
    height: 80px;
    background: linear-gradient(135deg, #e8f0fb, #d0e8ff);
    position: relative;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.live { background: #fde8e8; color: #c0392b; }
.status-badge.available { background: #e8f8f0; color: #1a7a4a; }
.status-badge.offline { background: #f0f0f0; color: #888; }

.card-avatar,
.card-avatar-initial {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    position: absolute;
    bottom: -32px;
    left: 16px;
}

.card-avatar {
    object-fit: cover;
}

.card-avatar-initial {
    background: #3C3489;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.card-body {
    padding: 40px 16px 16px;
}

.verified-badge {
    font-size: 11px;
    color: #1a7a4a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.check-icon {
    width: 13px;
    height: 13px;
    background: #1a7a4a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 8px;
}

.pandit-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.pandit-specialty {
    font-size: 13px;
    color: #777;
    margin: 0 0 8px;
}

.pandit-stars {
    color: #e6a817;
    font-size: 13px;
    letter-spacing: 1px;
}

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    gap: 12px;
}

.pandit-rate {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.pandit-rate span {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.view-profile-btn {
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
}

.view-profile-btn:hover {
    background: #f5f5f5;
}

.reviews-section {
    margin-top: 0;
}

.pandit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pandit-overlay.open {
    display: flex;
}

.pandit-popup {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #eee;
}

.popup-banner {
    height: 100px;
    background: linear-gradient(135deg, #e8f0fb, #d0e8ff);
    position: relative;
    flex-shrink: 0;
}

.popup-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    position: absolute;
    bottom: -40px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
}

.popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.popup-body {
    padding: 50px 24px 24px;
}

.popup-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.popup-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.popup-spec {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.popup-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.popup-status-badge.live { background: #fde8e8; color: #c0392b; }
.popup-status-badge.available { background: #e8f8f0; color: #1a7a4a; }
.popup-status-badge.offline { background: #f0f0f0; color: #888; }

.popup-verified {
    font-size: 12px;
    color: #1a7a4a;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.popup-stars {
    color: #e6a817;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.popup-rating-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}

.popup-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.info-box {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px 14px;
}

.info-label {
    font-size: 11px;
    color: #888;
    margin: 0 0 2px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.popup-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.call-btn {
    flex: 1;
    padding: 11px;
    background: #1a7a4a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.call-btn:hover { background: #155f3a; }
.call-btn.live-mode { background: #c0392b; }
.call-btn.live-mode:hover { background: #a93226; }
.call-btn.offline-mode { background: #888; }
.call-btn.offline-mode:hover { background: #666; }

.msg-btn {
    flex: 1;
    padding: 11px;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.msg-btn:hover { background: #f5f5f5; }

.reviews-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.review-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.reviewer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.reviewer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3C3489;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.reviewer-date {
    font-size: 11px;
    color: #aaa;
    margin: 0;
}

.review-stars-small {
    color: #e6a817;
    font-size: 11px;
    margin-left: auto;
}

.review-text {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.write-review {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.write-review-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.star-select {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.star-select span {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    line-height: 1;
    transition: color 0.1s;
}

.star-select span.selected {
    color: #e6a817;
}

.review-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    resize: vertical;
    font-family: inherit;
}

.review-textarea:focus {
    outline: none;
    border-color: #185FA5;
}

.submit-review-btn {
    margin-top: 8px;
    padding: 8px 20px;
    background: #185FA5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.submit-review-btn:hover { background: #0c447c; }

@media (max-width: 1280px) {
    .masteradmin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .masteradmin-pandit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .masteradmin-hero,
    .masteradmin-layout {
        grid-template-columns: 1fr;
    }

    .masteradmin-sticky {
        position: static;
    }
}

@media (max-width: 782px) {
    .masteradmin-hero,
    .masteradmin-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .masteradmin-stats,
    .masteradmin-pandit-grid,
    .masteradmin-mini-stats,
    .masteradmin-actions {
        grid-template-columns: 1fr;
    }

    .masteradmin-pokecard,
    .masteradmin-profile {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .masteradmin-pokecard img,
    .masteradmin-profile img {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .pandit-grid {
        grid-template-columns: 1fr;
    }

    .pandit-popup {
        max-height: 95vh;
    }

    .popup-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .popup-actions {
        flex-direction: column;
    }
}

/* Public pandit profile redesign */
.pandit-page {
    --pandit-ink: #24160b;
    --pandit-muted: #6f6255;
    --pandit-gold: #c58a2f;
    --pandit-border: rgba(95, 67, 34, 0.12);
    --pandit-shadow: 0 30px 60px rgba(73, 43, 17, 0.14);
    --pandit-font-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --pandit-font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 16px 40px;
    color: var(--pandit-ink);
    font-family: var(--pandit-font-body);
}

.pandit-page::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 230px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 223, 156, 0.92), transparent 34%),
        linear-gradient(135deg, #342614 0%, #6f4c24 48%, #c58a2f 100%);
    box-shadow: var(--pandit-shadow);
}

.pandit-page-title,
.pandit-filters,
.pandit-grid {
    position: relative;
    z-index: 1;
}

.pandit-page-title {
    margin: 0;
    padding: 30px 28px 26px;
    color: #fff8ef;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    font-family: var(--pandit-font-display);
}

.pandit-page-title::before {
    content: 'TRUSTED GUIDANCE';
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 244, 226, 0.84);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--pandit-font-body);
}

.pandit-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 0 28px;
}

.pandit-filter-btn {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 245, 229, 0.16);
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.18);
    color: #fff4df;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pandit-filter-btn:hover,
.pandit-filter-btn.active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #fff4d7 0%, #f2d4a2 100%);
    color: #5c3c16;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(197, 138, 47, 0.2);
}

.pandit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.pandit-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--pandit-border);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(250, 245, 237, 0.98) 100%);
    box-shadow: 0 22px 38px rgba(73, 43, 17, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.pandit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 138, 47, 0.28);
    box-shadow: 0 32px 58px rgba(73, 43, 17, 0.16);
}

.card-banner {
    position: relative;
    min-height: 176px;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 245, 215, 0.7), transparent 38%),
        linear-gradient(135deg, #342614 0%, #6f4c24 54%, #c58a2f 100%);
}

.card-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -54px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 251, 242, 0.16);
}

.status-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fffaf2;
    box-shadow: 0 10px 18px rgba(32, 20, 10, 0.18);
}

.status-badge.live { background: rgba(194, 65, 12, 0.82); }
.status-badge.available { background: rgba(47, 133, 90, 0.78); }
.status-badge.offline { background: rgba(71, 85, 105, 0.76); }

.card-avatar,
.card-avatar-initial {
    position: absolute;
    left: 22px;
    bottom: -42px;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    border: 4px solid rgba(255, 250, 243, 0.94);
    box-shadow: 0 18px 30px rgba(27, 17, 8, 0.26);
}

.card-avatar {
    object-fit: cover;
}

.card-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #734717 0%, #c58a2f 100%);
    color: #fff8ef;
    font-size: 34px;
    font-weight: 800;
    font-family: var(--pandit-font-display);
}

.card-body {
    padding: 56px 22px 22px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 244, 219, 0.92);
    color: #5a451d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.check-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7b5a23;
    color: #fff9ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.pandit-name {
    margin: 12px 0 0;
    color: var(--pandit-ink);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.05em;
    font-family: var(--pandit-font-display);
}

.pandit-specialty {
    margin: 10px 0 0;
    color: #8b6c44;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pandit-stars {
    margin-top: 14px;
    color: var(--pandit-gold);
    font-size: 15px;
    letter-spacing: 0.18em;
}

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(95, 67, 34, 0.1);
}

.pandit-rate {
    color: #2c1e11;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-family: var(--pandit-font-display);
}

.pandit-rate span {
    display: block;
    margin-top: 6px;
    color: #8c755a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--pandit-font-body);
}

.view-profile-btn {
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f2b16 0%, #6f4c24 45%, #c58a2f 100%);
    color: #fff7ec;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(102, 68, 23, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.view-profile-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 22px 34px rgba(102, 68, 23, 0.24);
    color: #fff7ec;
}

.pandit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(21, 14, 8, 0.66);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.pandit-overlay.open {
    display: flex;
}

.pandit-popup {
    width: 100%;
    max-width: 760px;
    max-height: min(92vh, 960px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 34px;
    border: 1px solid rgba(255, 244, 226, 0.18);
    background: linear-gradient(180deg, #fffdfa 0%, #f7efe2 100%);
    box-shadow: 0 40px 70px rgba(21, 14, 8, 0.32);
}

.popup-banner {
    position: relative;
    min-height: 188px;
    background: linear-gradient(135deg, #3f2b16 0%, #8a5b24 50%, #c58a2f 100%);
}

.popup-banner::after {
    content: '';
    position: absolute;
    right: -48px;
    bottom: -42px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 251, 244, 0.12);
}

.popup-avatar {
    position: absolute;
    left: 28px;
    bottom: -52px;
    width: 108px;
    height: 108px;
    border-radius: 32px;
    border: 5px solid rgba(255, 250, 243, 0.94);
    box-shadow: 0 20px 36px rgba(26, 18, 11, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
    color: #fff8ef;
    overflow: hidden;
    font-family: var(--pandit-font-display);
}

.popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 250, 243, 0.92);
    color: #3b2715;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(21, 14, 8, 0.18);
}

.popup-body {
    padding: 72px 28px 28px;
}

.popup-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.popup-name {
    margin: 0;
    color: var(--pandit-ink);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-family: var(--pandit-font-display);
}

.popup-spec {
    margin: 10px 0 0;
    color: var(--pandit-muted);
    font-size: 16px;
}

.popup-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.popup-status-badge.live { background: rgba(194, 65, 12, 0.88); color: #fff8ef; }
.popup-status-badge.available { background: rgba(47, 133, 90, 0.84); color: #fff8ef; }
.popup-status-badge.offline { background: rgba(100, 116, 139, 0.84); color: #fff8ef; }

.popup-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-top: 16px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 244, 219, 0.92);
    color: #5a451d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.popup-stars {
    color: var(--pandit-gold);
    font-size: 20px;
    letter-spacing: 0.16em;
    margin: 18px 0 6px;
}

.popup-rating-text {
    margin: 0 0 22px;
    color: #76624d;
    font-size: 14px;
    font-weight: 700;
}

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

.info-box {
    min-height: 108px;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(95, 67, 34, 0.1);
    background: rgba(255, 252, 247, 0.9);
}

.info-label {
    margin: 0;
    color: #8c755a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.info-value {
    margin: 14px 0 0;
    color: #2e2011;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-family: var(--pandit-font-display);
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin: 24px 0 0;
}

.call-btn,
.msg-btn {
    flex: 1;
    min-height: 52px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.call-btn {
    border: none;
    background: linear-gradient(135deg, #3f2b16 0%, #6f4c24 45%, #c58a2f 100%);
    color: #fff7ec;
    box-shadow: 0 18px 28px rgba(102, 68, 23, 0.2);
}

.call-btn.live-mode {
    background: linear-gradient(135deg, #5b1f15 0%, #a73617 54%, #e06622 100%);
}

.call-btn.offline-mode {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.msg-btn {
    border: 1px solid rgba(95, 67, 34, 0.14);
    background: rgba(255, 252, 247, 0.86);
    color: #4f3821;
}

.call-btn:hover,
.msg-btn:hover {
    transform: translateY(-1px);
}

.call-btn:hover,
.call-btn.live-mode:hover,
.call-btn.offline-mode:hover {
    color: #fff7ec;
}

.msg-btn:hover {
    color: #4f3821;
    background: rgba(255, 252, 247, 0.96);
}

.reviews-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(95, 67, 34, 0.1);
}

.reviews-title {
    margin: 0 0 14px;
    color: var(--pandit-ink);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-family: var(--pandit-font-display);
}

.pandit-reviews-empty {
    margin: 0;
    padding: 18px;
    border-radius: 20px;
    border: 1px dashed rgba(95, 67, 34, 0.18);
    background: rgba(255, 252, 247, 0.9);
    color: var(--pandit-muted);
}

.review-card {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(95, 67, 34, 0.1);
    background: rgba(255, 252, 247, 0.9);
    margin-bottom: 12px;
}

.reviewer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-avatar,
.reviewer-avatar-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reviewer-avatar {
    object-fit: cover;
}

.reviewer-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #734717 0%, #cc9443 100%);
    color: #fff9ef;
    font-size: 14px;
    font-weight: 800;
}

.reviewer-name {
    margin: 0;
    color: #2e2011;
    font-size: 14px;
    font-weight: 800;
}

.reviewer-date {
    margin: 2px 0 0;
    color: #8c755a;
    font-size: 12px;
}

.review-stars-small {
    margin-left: auto;
    color: var(--pandit-gold);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.review-text {
    margin: 0;
    color: #5a4837;
    font-size: 14px;
    line-height: 1.65;
}

.write-review {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(95, 67, 34, 0.1);
}

.write-review-title {
    margin: 0 0 12px;
    color: #2e2011;
    font-size: 15px;
    font-weight: 800;
}

.star-select {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.star-select span {
    color: rgba(197, 138, 47, 0.26);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.12s ease, color 0.12s ease;
}

.star-select span:hover,
.star-select span.selected {
    color: var(--pandit-gold);
    transform: translateY(-1px);
}

.review-textarea {
    width: 100%;
    min-height: 116px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(95, 67, 34, 0.14);
    border-radius: 18px;
    background: #fffdfa;
    color: #2e2011;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: var(--pandit-font-body);
}

.review-textarea:focus {
    outline: none;
    border-color: rgba(197, 138, 47, 0.45);
    box-shadow: 0 0 0 4px rgba(245, 220, 176, 0.34);
}

.submit-review-btn {
    min-height: 48px;
    margin-top: 12px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f2b16 0%, #6f4c24 45%, #c58a2f 100%);
    color: #fff8ef;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.submit-review-btn:hover {
    color: #fff8ef;
    filter: brightness(1.04);
}

@media (max-width: 1100px) {
    .pandit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .pandit-page {
        padding: 24px 12px 28px;
    }

    .pandit-page::before {
        height: 210px;
        border-radius: 28px;
    }

    .pandit-page-title {
        padding: 24px 20px 20px;
    }

    .pandit-filters {
        padding: 0 20px;
    }

    .pandit-grid,
    .popup-info-grid {
        grid-template-columns: 1fr;
    }

    .rate-row,
    .popup-top,
    .popup-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-profile-btn,
    .call-btn,
    .msg-btn {
        width: 100%;
    }

    .pandit-popup {
        max-height: 95vh;
        border-radius: 28px;
    }

    .popup-banner {
        min-height: 160px;
    }

    .popup-avatar {
        width: 92px;
        height: 92px;
        bottom: -46px;
    }

    .popup-body {
        padding: 64px 18px 20px;
    }
}

@media (max-width: 640px) {
    .pandit-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .pandit-popup {
        width: min(100%, 100vw - 24px);
        max-height: min(88vh, 920px);
        border-radius: 24px;
    }

    .popup-banner {
        min-height: 148px;
    }

    .popup-banner::after {
        width: 170px;
        height: 170px;
        right: -36px;
        bottom: -38px;
    }

    .popup-avatar {
        left: 18px;
        bottom: -38px;
        width: 84px;
        height: 84px;
        border-radius: 24px;
        border-width: 4px;
    }

    .popup-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .popup-body {
        padding: 54px 16px 18px;
    }

    .popup-top {
        gap: 10px;
    }

    .popup-name {
        font-size: 28px;
    }

    .popup-spec {
        font-size: 14px;
    }

    .popup-status-badge {
        min-height: 34px;
        padding: 0 12px;
        font-size: 11px;
        white-space: normal;
    }

    .popup-stars {
        font-size: 18px;
        letter-spacing: 0.12em;
    }

    .popup-rating-text {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .popup-info-grid {
        gap: 10px;
    }

    .info-box {
        min-height: 92px;
        padding: 14px 15px;
        border-radius: 18px;
    }

    .info-value {
        margin-top: 10px;
        font-size: 20px;
    }

    .popup-actions {
        gap: 10px;
        margin-top: 18px;
    }

    .call-btn,
    .msg-btn {
        min-height: 48px;
        font-size: 12px;
    }

    .reviews-section {
        margin-top: 22px;
        padding-top: 20px;
    }

    .reviews-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .review-card {
        padding: 14px;
        border-radius: 18px;
    }

    .reviewer-row {
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .review-stars-small {
        width: 100%;
        margin-left: 52px;
    }

    .review-text {
        font-size: 13px;
        line-height: 1.55;
    }

    .write-review {
        margin-top: 14px;
        padding-top: 14px;
    }

    .star-select span {
        font-size: 26px;
    }

    .review-textarea {
        min-height: 100px;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .pandit-overlay {
        padding: 8px;
    }

    .pandit-popup {
        width: min(100%, 100vw - 16px);
        max-height: min(90vh, 900px);
        border-radius: 20px;
    }

    .popup-banner {
        min-height: 132px;
    }

    .popup-avatar {
        left: 14px;
        width: 72px;
        height: 72px;
        bottom: -34px;
        border-radius: 20px;
    }

    .popup-body {
        padding: 48px 14px 16px;
    }

    .popup-name {
        font-size: 24px;
    }

    .popup-kicker {
        font-size: 10px;
    }

    .popup-spec {
        font-size: 13px;
    }

    .popup-status-badge,
    .popup-verified {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .popup-info-grid {
        gap: 8px;
    }

    .info-box {
        padding: 12px 13px;
    }

    .info-value {
        font-size: 18px;
    }

    .call-btn,
    .msg-btn,
    .submit-review-btn {
        min-height: 46px;
    }

    .reviews-title {
        font-size: 22px;
    }

    .review-stars-small {
        margin-left: 46px;
    }
}
