/* =========================================================
   MTAAHELP CUSTOMER DASHBOARD
   Modern Green Theme
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================================
   ROOT
========================================================= */

:root {
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-100: #d1fae5;
    --green-50: #ecfdf5;

    --white: #ffffff;
    --bg: #f5f8f7;
    --bg-soft: #f0fdf4;

    --text-dark: #10231d;
    --text: #33463f;
    --text-light: #71827b;

    --border: #e2ebe7;

    --red: #dc2626;
    --red-light: #fef2f2;

    --orange: #d97706;
    --orange-light: #fffbeb;

    --blue: #2563eb;
    --blue-light: #eff6ff;

    --shadow-sm: 0 2px 8px rgba(15, 50, 40, 0.06);
    --shadow: 0 8px 25px rgba(15, 50, 40, 0.08);
    --shadow-lg: 0 18px 45px rgba(15, 50, 40, 0.12);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    --transition: all 0.25s ease;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(16, 185, 129, 0.07),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   HEADER
========================================================= */

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 78px;
    padding: 12px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(16, 185, 129, 0.12);

    box-shadow: 0 4px 20px rgba(15, 50, 40, 0.06);
}

/* =========================================================
   BRAND
========================================================= */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #ffffff;
    border-radius: 10px;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(22, 163, 74, 0.25);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.08);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.logo > span:nth-child(2) {
    color: #10231d;
}

.logo > span:nth-child(3) {
    color: #16a34a;

}

/* =========================================================
   USER AREA
========================================================= */

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 44px;
    height: 44px;

    border: 2px solid var(--green-100);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--green-600),
            var(--green-800)
        );

    color: white;
    font-size: 0.95rem;
    font-weight: 800;

    overflow: hidden;

    box-shadow:
        0 4px 12px rgba(5, 150, 105, 0.25);

    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.06);
    box-shadow:
        0 7px 18px rgba(5, 150, 105, 0.35);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info span {
    color: var(--text-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.profile-photo-message {
    min-height: 16px;
    font-size: 0.68rem;
    color: var(--text-light);
}

.profile-photo-message.success {
    color: var(--green-600);
}

.profile-photo-message.error {
    color: var(--red);
}

/* =========================================================
   NOTIFICATIONS
========================================================= */

.notification-wrapper {
    position: relative;
}

.notification-button {
    position: relative;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--white);

    font-size: 1.15rem;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: var(--transition);
}

.notification-button:hover {
    border-color: var(--green-400);
    background: var(--green-50);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -2px;

    min-width: 19px;
    height: 19px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50px;

    background: var(--red);
    color: white;

    border: 2px solid white;

    font-size: 0.6rem;
    font-weight: 800;
}

.hidden {
    display: none !important;
}

/* Notification panel */

.notification-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: -90px;

    width: 360px;
    max-height: 480px;

    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-lg);

    overflow: hidden;
    z-index: 2000;
}

.notification-header {
    padding: 18px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    background:
        linear-gradient(
            135deg,
            var(--green-50),
            white
        );

    border-bottom: 1px solid var(--border);
}

.notification-header h3 {
    color: var(--text-dark);
    font-size: 1rem;
}

.notification-header span {
    color: var(--text-light);
    font-size: 0.72rem;
}

.close-notification {
    width: 30px;
    height: 30px;

    border: none;
    border-radius: 8px;

    background: transparent;
    color: var(--text-light);

    font-size: 1.4rem;

    transition: var(--transition);
}

.close-notification:hover {
    background: var(--green-100);
    color: var(--green-700);
}

.notifications-container {
    max-height: 390px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;

    padding: 15px 17px;

    border-bottom: 1px solid #edf2ef;

    transition: var(--transition);
}

.notification-item:hover {
    background: var(--green-50);
}

.notification-item.unread {
    background: #f0fdf7;
}

.notification-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--green-100);
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;

    color: var(--text-dark);
    font-size: 0.78rem;
}

.notification-content p {
    margin-top: 3px;

    color: var(--text-light);
    font-size: 0.72rem;
    line-height: 1.5;
}

.notification-content small {
    display: block;
    margin-top: 6px;

    color: #9aa9a3;
    font-size: 0.64rem;
}

.mark-read-button {
    width: 27px;
    height: 27px;

    border: none;
    border-radius: 50%;

    background: var(--green-100);
    color: var(--green-700);

    font-weight: 800;

    align-self: center;

    transition: var(--transition);
}

.mark-read-button:hover {
    background: var(--green-600);
    color: white;
}

/* =========================================================
   LOGOUT
========================================================= */

.logout-button {
    padding: 9px 16px;

    border: 1px solid #cfe3da;
    border-radius: 10px;

    background: white;
    color: var(--green-800);

    font-size: 0.78rem;
    font-weight: 700;

    transition: var(--transition);
}

.logout-button:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    color: white;
    transform: translateY(-2px);
}

/* =========================================================
   MAIN
========================================================= */

.dashboard-main {
    width: min(1400px, 90%);
    margin: 0 auto;
    padding: 35px 0 70px;
}

section {
    margin-bottom: 55px;
}

/* =========================================================
   WELCOME
========================================================= */

.welcome-section {
    position: relative;
    overflow: hidden;

    min-height: 235px;

    display: flex;
    align-items: center;

    padding: 45px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(52, 211, 153, 0.22),
            transparent 25%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(6, 95, 70, 0.5),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #064e3b,
            #047857 60%,
            #059669
        );

    box-shadow:
        0 20px 45px rgba(6, 95, 70, 0.18);

    color: white;
}

.welcome-section::after {
    content: "";
    position: absolute;

    width: 250px;
    height: 250px;

    right: -80px;
    bottom: -120px;

    border: 45px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.welcome-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.welcome-label {
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    border-radius: 50px;

    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.14);

    font-size: 0.72rem;
    font-weight: 600;
}

.welcome-content h2 {
    margin-top: 14px;

    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.welcome-content h2 span {
    color: #a7f3d0;
}

.welcome-content p {
    margin-top: 10px;

    color: rgba(255,255,255,0.82);

    font-size: 0.92rem;
}

/* =========================================================
   SEARCH
========================================================= */

.search-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.search-box {
    max-width: 850px;
    margin: 0 auto;

    padding: 8px;

    display: flex;
    align-items: center;

    background: white;

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(15, 50, 40, 0.12);

    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--green-400);

    box-shadow:
        0 12px 35px rgba(15, 50, 40, 0.1),
        0 0 0 4px rgba(16,185,129,0.08);
}

.search-icon {
    margin-left: 14px;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;

    min-width: 0;

    padding: 13px 12px;

    border: none;
    outline: none;

    color: var(--text-dark);
    background: transparent;

    font-size: 0.86rem;
}

.search-box input::placeholder {
    color: #9aa9a3;
}

.search-box > button {
    padding: 12px 23px;

    border: none;
    border-radius: 11px;

    background: var(--green-600);
    color: white;

    font-size: 0.8rem;
    font-weight: 700;

    transition: var(--transition);
}

.search-box > button:hover {
    background: var(--green-700);
    transform: translateY(-1px);
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading,
.requests-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 24px;
}

.section-label {
    display: inline-block;

    color: var(--green-600);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.section-heading h2,
.requests-heading h2 {
    margin-top: 4px;

    color: var(--text-dark);

    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;

    letter-spacing: -0.6px;
}

.section-heading p,
.requests-heading p {
    margin-top: 6px;

    color: var(--text-light);

    font-size: 0.82rem;
}

/* =========================================================
   SERVICES
========================================================= */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 13px;
}

.service-card {
    min-height: 125px;

    padding: 18px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: white;

    color: var(--text-dark);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: var(--green-300, #6ee7b7);

    background: linear-gradient(
        145deg,
        white,
        var(--green-50)
    );

    box-shadow:
        0 12px 28px rgba(15, 50, 40, 0.11);
}

.service-card.selected {
    border-color: var(--green-500);

    background:
        linear-gradient(
            145deg,
            var(--green-600),
            var(--green-700)
        );

    color: white;

    box-shadow:
        0 12px 25px rgba(5,150,105,0.25);

    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--green-50);

    font-size: 1.5rem;

    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
}

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

.service-name {
    text-align: center;

    font-size: 0.73rem;
    font-weight: 700;
}

/* =========================================================
   SHOW ALL
========================================================= */

.show-all-button,
.refresh-button {
    padding: 9px 16px;

    border: 1px solid var(--green-100);
    border-radius: 10px;

    background: var(--green-50);
    color: var(--green-700);

    font-size: 0.76rem;
    font-weight: 700;

    white-space: nowrap;

    transition: var(--transition);
}

.show-all-button:hover,
.refresh-button:hover {
    background: var(--green-600);
    border-color: var(--green-600);
    color: white;

    transform: translateY(-2px);
}

/* =========================================================
   PROVIDERS
========================================================= */

.providers-container {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.provider-card {
    position: relative;

    padding: 23px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.provider-card:hover {
    transform: translateY(-5px);

    border-color: rgba(16,185,129,0.25);

    box-shadow: var(--shadow);
}

.provider-top {
    display: flex;
    gap: 13px;
    align-items: center;
}

.provider-avatar,
.request-provider-avatar {
    flex-shrink: 0;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--green-100),
            #bbf7d0
        );

    color: var(--green-800);

    font-weight: 800;
}

.provider-info {
    min-width: 0;
    flex: 1;
}

.provider-name-row {
    display: flex;
    align-items: center;
    gap: 7px;

    flex-wrap: wrap;
}

.provider-name-row h3 {
    color: var(--text-dark);

    font-size: 0.92rem;
    line-height: 1.3;
}

.verified-badge {
    padding: 3px 7px;

    border-radius: 50px;

    background: var(--green-100);
    color: var(--green-700);

    font-size: 0.58rem;
    font-weight: 800;
}

.provider-service {
    margin-top: 3px;

    color: var(--text-light);

    font-size: 0.7rem;
}

.provider-rating {
    margin-top: 18px;

    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 0.76rem;
    font-weight: 700;
}

.stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.provider-rating small {
    color: var(--text-light);
    font-weight: 500;
}

.provider-location {
    margin-top: 13px;

    color: var(--text-light);

    font-size: 0.73rem;
}

.provider-description {
    margin-top: 13px;

    color: #61726b;

    font-size: 0.74rem;
    line-height: 1.65;

    display: -webkit-box;
-webkit-line-clamp: 3;
   line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.provider-price {
    margin-top: 16px;

    padding: 11px 13px;

    border-radius: 11px;

    background: var(--green-50);

    color: var(--text-light);

    font-size: 0.7rem;
}

.provider-price strong {
    margin-left: 5px;

    color: var(--green-700);

    font-size: 0.86rem;
}

.provider-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    margin-top: 18px;
}

.profile-button,
.request-service-button {
    padding: 10px 9px;

    border-radius: 10px;

    font-size: 0.69rem;
    font-weight: 700;

    transition: var(--transition);
}

.profile-button {
    border: 1px solid var(--border);

    background: white;
    color: var(--text);

}

.profile-button:hover {
    border-color: var(--green-400);
    background: var(--green-50);
    color: var(--green-700);
}

.request-service-button {
    border: none;

    background:
        linear-gradient(
            135deg,
            var(--green-600),
            var(--green-700)
        );

    color: white;

    box-shadow:
        0 4px 12px rgba(5,150,105,0.18);
}

.request-service-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 16px rgba(5,150,105,0.25);
}

/* =========================================================
   REQUEST FORM
========================================================= */

.request-form {
    margin-top: 20px;
    padding: 20px;

    border: 1px solid var(--green-100);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #f8fffb,
            var(--green-50)
        );

    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.request-form-header {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 18px;
}

.request-form-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: white;

    box-shadow: var(--shadow-sm);
}

.request-form-header h4 {
    color: var(--text-dark);
    font-size: 0.85rem;
}

.request-form-header p {
    margin-top: 2px;

    color: var(--text-light);
    font-size: 0.68rem;
}

.request-form label {
    display: block;

    margin: 13px 0 6px;

    color: var(--text-dark);

    font-size: 0.68rem;
    font-weight: 700;
}

.request-form input,
.request-form textarea {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: white;
    color: var(--text-dark);

    font-size: 0.72rem;

    transition: var(--transition);
}

.request-form textarea {
    resize: vertical;
}

.request-form input:focus,
.request-form textarea:focus {
    border-color: var(--green-400);

    box-shadow:
        0 0 0 3px rgba(16,185,129,0.08);
}

.request-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.provider-request-location {
    display: flex;
    gap: 9px;

    margin-top: 15px;
    padding: 11px;

    border-radius: 10px;

    background: white;
}

.provider-request-location strong {
    color: var(--text-dark);
    font-size: 0.68rem;
}

.provider-request-location p {
    color: var(--text-light);
    font-size: 0.65rem;
}

.request-form-actions {
    display: flex;
    gap: 9px;

    margin-top: 17px;
}

.cancel-request-button,
.submit-request-button {
    flex: 1;

    padding: 10px;

    border-radius: 10px;

    font-size: 0.7rem;
    font-weight: 700;
}

.cancel-request-button {
    border: 1px solid var(--border);

    background: white;
    color: var(--text);
}

.submit-request-button {
    border: none;

    background: var(--green-600);
    color: white;
}

.submit-request-button:hover {
    background: var(--green-700);
}

.request-message,
.review-message {
    margin-top: 9px;

    font-size: 0.68rem;
}

.request-message.success,
.review-message.success {
    color: var(--green-700);
}

.request-message.error,
.review-message.error {
    color: var(--red);
}

/* =========================================================
   LOADING
========================================================= */

.provider-loading,
.requests-loading-card {
    min-height: 180px;

    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px dashed var(--border);
    border-radius: var(--radius);

    background: rgba(255,255,255,0.7);

    color: var(--text-light);

    font-size: 0.76rem;
}

.loading-spinner {
    width: 35px;
    height: 35px;

    border: 3px solid var(--green-100);
    border-top-color: var(--green-600);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

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

/* =========================================================
   EMPTY STATES
========================================================= */

.no-providers,
.empty-requests,
.enhanced-request-error {
    grid-column: 1 / -1;

    padding: 45px 25px;

    text-align: center;

    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);

    background: white;
}

.empty-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: var(--green-50);

    font-size: 1.6rem;
}

.no-providers h3,
.empty-requests h3,
.enhanced-request-error h3 {
    color: var(--text-dark);
    font-size: 1rem;
}

.no-providers p,
.empty-requests p,
.enhanced-request-error p {
    max-width: 500px;
    margin: 7px auto 0;

    color: var(--text-light);

    font-size: 0.75rem;
}

.retry-button,
.browse-providers-button {
    margin-top: 17px;

    padding: 10px 17px;

    border: none;
    border-radius: 10px;

    background: var(--green-600);
    color: white;

    font-size: 0.7rem;
    font-weight: 700;

    transition: var(--transition);
}

.retry-button:hover,
.browse-providers-button:hover {
    background: var(--green-700);
    transform: translateY(-2px);
}

/* =========================================================
   REQUESTS SECTION
========================================================= */

.requests-section {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            white,
            #f9fcfa
        );

    box-shadow: var(--shadow-sm);
}

.request-summary {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 13px;

    margin-bottom: 22px;
}

.request-summary-card {
    position: relative;

    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: white;

    overflow: hidden;

    box-shadow: var(--shadow-sm);
}

.request-summary-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: var(--green-500);
}

.request-summary-card.pending::before {
    background: #f59e0b;
}

.request-summary-card.accepted::before {
    background: var(--green-500);
}

.request-summary-card.rejected::before {
    background: var(--red);
}

.request-summary-card span {
    display: block;

    color: var(--text-light);

    font-size: 0.68rem;
    font-weight: 600;
}

.request-summary-card strong {
    display: block;

    margin-top: 3px;

    color: var(--text-dark);

    font-size: 1.5rem;
    line-height: 1.2;
}

/* =========================================================
   REQUEST FILTERS
========================================================= */

.request-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 20px;

    padding-bottom: 17px;

    border-bottom: 1px solid var(--border);
}

.request-filter-button {
    padding: 8px 14px;

    border: 1px solid var(--border);
    border-radius: 50px;

    background: white;
    color: var(--text-light);

    font-size: 0.68rem;
    font-weight: 700;

    transition: var(--transition);
}

.request-filter-button:hover {
    border-color: var(--green-400);
    color: var(--green-700);
}

.request-filter-button.active {
    border-color: var(--green-600);

    background: var(--green-600);
    color: white;

    box-shadow:
        0 4px 10px rgba(5,150,105,0.18);
}

/* =========================================================
   CUSTOMER REQUEST CARDS
========================================================= */

.customer-requests-container {
    display: grid;
    gap: 16px;
}

.customer-request-card {
    padding: 21px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: white;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.customer-request-card:hover {
    border-color: rgba(16,185,129,0.25);
    box-shadow: var(--shadow);
}

.request-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.request-provider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.request-provider h3 {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.request-provider span {
    color: var(--text-light);
    font-size: 0.68rem;
}

.request-status {
    padding: 6px 11px;

    border-radius: 50px;

    font-size: 0.64rem;
    font-weight: 800;

    background: var(--orange-light);
    color: var(--orange);
}

.request-status.status-accepted {
    background: var(--green-100);
    color: var(--green-700);
}

.request-status.status-rejected {
    background: var(--red-light);
    color: var(--red);
}

.request-status.status-completed {
    background: var(--blue-light);
    color: var(--blue);
}

/* =========================================================
   REQUEST PROGRESS
========================================================= */

.request-progress {
    display: flex;
    align-items: center;

    margin: 22px 0;

    max-width: 600px;
}

.progress-step {
    min-width: 60px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;

    color: #a3b0aa;

    text-align: center;
}

.progress-step span {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf2ef;

    font-size: 0.68rem;
    font-weight: 800;
}

.progress-step small {
    font-size: 0.58rem;
    font-weight: 600;
}

.progress-step.active span {
    background: var(--green-600);
    color: white;

    box-shadow:
        0 0 0 5px rgba(16,185,129,0.1);
}

.progress-step.completed span {
    background: var(--green-100);
    color: var(--green-700);
}

.progress-step.rejected-step span {
    background: var(--red-light);
    color: var(--red);
}

.progress-line {
    flex: 1;

    height: 2px;

    background: #e4ebe7;

    margin-bottom: 17px;
}

.progress-line.completed {
    background: var(--green-400);
}

/* =========================================================
   REQUEST DETAILS
========================================================= */

.request-details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 15px;
}

.request-detail {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    padding: 12px;

    border-radius: 11px;

    background: #f8faf9;
}

.request-detail > span {
    font-size: 1rem;
}

.request-detail small {
    display: block;

    color: #8a9993;

    font-size: 0.6rem;
}

.request-detail strong {
    display: block;

    margin-top: 2px;

    color: var(--text-dark);

    font-size: 0.7rem;
    line-height: 1.4;
}

.request-status-message {
    display: flex;

    gap: 11px;

    margin-top: 17px;
    padding: 13px;

    border-radius: 12px;

    background: var(--green-50);
}

.request-status-message > span {
    font-size: 1.2rem;
}

.request-status-message strong {
    color: var(--green-800);

    font-size: 0.72rem;
}

.request-status-message p {
    margin-top: 2px;

    color: var(--text-light);

    font-size: 0.67rem;
}

.request-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 17px;
}

.view-request-provider-button,
.request-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 13px;

    border-radius: 9px;

    font-size: 0.67rem;
    font-weight: 700;

    transition: var(--transition);
}

.view-request-provider-button {
    border: 1px solid var(--border);

    background: white;
    color: var(--text);
}

.view-request-provider-button:hover {
    border-color: var(--green-400);
    background: var(--green-50);
    color: var(--green-700);
}

.request-contact-button {
    background: var(--green-600);
    color: white;
}

.request-contact-button:hover {
    background: var(--green-700);
    transform: translateY(-1px);
}

.request-date {
    display: block;

    margin-top: 15px;

    color: #9aa9a3;

    font-size: 0.62rem;
}

/* =========================================================
   REVIEWS
========================================================= */

.review-section,
.review-completed {
    margin-top: 18px;
    padding: 18px;

    border-radius: 14px;

    border: 1px solid var(--green-100);

    background:
        linear-gradient(
            145deg,
            #fafffc,
            var(--green-50)
        );
}

.review-section h4 {
    color: var(--text-dark);
    font-size: 0.82rem;
}

.review-section > p {
    margin-top: 3px;

    color: var(--text-light);
    font-size: 0.68rem;
}

.rating-stars {
    display: flex;
    gap: 2px;

    margin: 12px 0;
}

.rating-button {
    border: none;
    background: transparent;

    color: #f59e0b;

    font-size: 1.5rem;
    line-height: 1;

    transition: var(--transition);
}

.rating-button:hover {
    transform: scale(1.15);
}

.review-comment {
    width: 100%;

    min-height: 80px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    resize: vertical;

    background: white;

    font-size: 0.7rem;
}

.review-comment:focus {
    border-color: var(--green-400);
}

.submit-review-button {
    margin-top: 10px;

    padding: 9px 15px;

    border: none;
    border-radius: 9px;

    background: var(--green-600);
    color: white;

    font-size: 0.68rem;
    font-weight: 700;

    transition: var(--transition);
}

.submit-review-button:hover {
    background: var(--green-700);
}

.review-completed strong {
    display: block;

    color: var(--text-dark);

    font-size: 0.78rem;
}

.review-completed > div {
    margin-top: 7px;

    color: #f59e0b;

    letter-spacing: 2px;
}

.review-completed p {
    margin-top: 8px;

    color: var(--text-light);

    font-size: 0.7rem;
    font-style: italic;
}

/* =========================================================
   EMPTY NOTIFICATIONS
========================================================= */

.empty-notifications {
    padding: 35px 20px;

    text-align: center;
}

.empty-notifications > div {
    font-size: 1.7rem;
}

.empty-notifications h4 {
    margin-top: 8px;

    color: var(--text-dark);
    font-size: 0.8rem;
}

.empty-notifications p {
    margin-top: 3px;

    color: var(--text-light);
    font-size: 0.68rem;
}

.notification-loading,
.notification-error {
    padding: 30px 20px;

    text-align: center;

    color: var(--text-light);

    font-size: 0.72rem;
}

/* =========================================================
   SCROLLBARS
========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #eef4f1;
}

::-webkit-scrollbar-thumb {
    background: #b9d9cc;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-500);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .service-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {

    .dashboard-header {
        padding: 12px 4%;
    }

    .dashboard-main {
        width: 92%;
    }

    .service-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .request-details {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .dashboard-header {
        min-height: auto;

        padding: 12px 4%;

        align-items: center;
    }

    .dashboard-brand p {
        display: none;
    }

    .dashboard-brand h1 {
        font-size: 1.35rem;
    }

    .dashboard-user {
        gap: 8px;
    }

    .profile-info {
        display: none;
    }

    .logout-button {
        padding: 8px 11px;
        font-size: 0.7rem;
    }

    .notification-panel {
        position: fixed;

        top: 70px;
        left: 5%;
        right: 5%;

        width: auto;

        max-height: 75vh;
    }

    .dashboard-main {
        width: 94%;
        padding-top: 22px;
    }

    .welcome-section {
        min-height: 210px;

        padding: 30px 25px;

        border-radius: 22px;
    }

    .welcome-content h2 {
        font-size: 1.8rem;
    }

    .search-section {
        margin-top: -25px;
    }

    .search-box {
        padding: 6px;
    }

    .search-box > button {
        padding: 10px 14px;
    }

    .section-heading,
    .requests-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .show-all-button,
    .refresh-button {
        align-self: flex-start;
    }

    .service-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 9px;
    }

    .service-card {
        min-height: 105px;
        padding: 13px 7px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .service-name {
        font-size: 0.64rem;
    }

    .providers-container {
        grid-template-columns: 1fr;
    }

    .requests-section {
        padding: 20px 15px;

        border-radius: 20px;
    }

    .request-summary {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .request-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .dashboard-header {
        gap: 10px;
    }

    .dashboard-brand h1 {
        font-size: 1.15rem;
    }

    .user-avatar {
        width: 39px;
        height: 39px;
    }

    .notification-button {
        width: 38px;
        height: 38px;
    }

    .logout-button {
        padding: 7px 9px;
    }

    .welcome-section {
        min-height: 190px;
        padding: 25px 20px;
    }

    .welcome-content h2 {
        font-size: 1.55rem;
    }

    .welcome-content p {
        font-size: 0.78rem;
    }

    .search-box {
        border-radius: 13px;
    }

    .search-box input {
        font-size: 0.72rem;
        padding: 11px 6px;
    }

    .search-icon {
        margin-left: 8px;
        font-size: 0.9rem;
    }

    .search-box > button {
        font-size: 0.68rem;
        padding: 9px 11px;
    }

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

    .service-card {
        min-height: 100px;
    }

    .provider-card {
        padding: 18px;
    }

    .provider-actions {
        grid-template-columns: 1fr;
    }

    .request-form-row {
        grid-template-columns: 1fr;
    }

    .request-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-progress {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .request-summary-card {
        padding: 14px;
    }

    .request-summary-card strong {
        font-size: 1.3rem;
    }

    .request-filters {
        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 10px;
    }

    .request-filter-button {
        flex-shrink: 0;
    }

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

    .view-request-provider-button,
    .request-contact-button {
        width: 100%;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(16,185,129,0.3);
    outline-offset: 2px;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.danger-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.danger-button:hover {
    background: #b02a37;
}

.danger-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   CUSTOMER PROVIDERS MAP
========================================================= */

.customer-providers-map {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.use-customer-location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 18px;

    background: #0f766e;
    color: #ffffff;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.use-customer-location-button:hover {
    background: #0d5f59;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.use-customer-location-button:active {
    transform: translateY(0);
}

.use-customer-location-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   MTAAHELP AI SUPPORT
===================================================== */

.ai-support-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;
    border: none;
    border-radius: 30px;

    background: #0b7a75;
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.ai-support-button:hover {
    transform: translateY(-2px);
}

.ai-support-chat {
    position: fixed;
    right: 25px;
    bottom: 85px;
    z-index: 9999;

    width: 360px;
    max-width: calc(100vw - 30px);

    height: 500px;

    display: flex;
    flex-direction: column;

    background: white;

    border-radius: 15px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);

    overflow: hidden;
}

.ai-support-chat.hidden {
    display: none;
}

.ai-support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px;

    background: #0b7a75;
    color: white;
}

.ai-support-header div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ai-support-header small {
    opacity: 0.85;
}

#closeAiSupport {
    border: none;
    background: transparent;
    color: white;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.ai-support-messages {
    flex: 1;

    padding: 15px;

    overflow-y: auto;

    background: #f5f7f7;
}

.ai-message,
.user-message {
    max-width: 80%;

    padding: 10px 13px;
    margin-bottom: 10px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.4;

    word-wrap: break-word;
}

.ai-message {
    margin-right: auto;

    background: white;

    border: 1px solid #e1e5e5;
}

.user-message {
    margin-left: auto;

    background: #0b7a75;
    color: white;
}

.ai-support-input {
    display: flex;

    padding: 10px;

    border-top: 1px solid #ddd;

    background: white;
}

#aiSupportInput {
    flex: 1;

    padding: 10px;

    border: 1px solid #ccc;
    border-radius: 8px;

    outline: none;
}

.ai-support-input button {
    margin-left: 8px;

    padding: 10px 15px;

    border: none;
    border-radius: 8px;

    background: #0b7a75;
    color: white;

    cursor: pointer;
}

.ai-support-input button:hover {
    opacity: 0.9;
}

/* =========================================================
   MTAAHELP — MTAABUDDY AI SUPPORT
   Modern Chat Interface
========================================================= */

.ai-support-button {
    position: fixed;
    right: 24px;
    bottom: 24px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;

    border: none;
    border-radius: 18px;

 background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.88),
    rgba(34, 197, 94, 0.88)
);
    color: #ffffff;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(22, 163, 74, 0.30);

    z-index: 9998;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ai-support-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 35px rgba(22, 163, 74, 0.40);
}

.ai-button-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.18);

    border-radius: 12px;

    font-size: 21px;
}

.ai-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.ai-button-text strong {
    font-size: 14px;
}

.ai-button-text small {
    margin-top: 3px;

    font-size: 11px;

    opacity: 0.85;
}


/* =========================================================
   CHAT WINDOW
========================================================= */

.ai-support-chat {
    position: fixed;

    right: 24px;
    bottom: 90px;

    width: 390px;
    max-width: calc(100vw - 30px);

    height: 590px;
    max-height: calc(100vh - 120px);

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.07);

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.18);

    z-index: 9999;

    animation: mtaabuddyOpen 0.25s ease;
}

@keyframes mtaabuddyOpen {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   HEADER
========================================================= */

.ai-support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 18px;

    background:
        linear-gradient(
            135deg,
            #15803d,
            #16a34a,
            #22c55e
        );

    color: #ffffff;
}

.mtaabuddy-profile {
    display: flex;
    align-items: center;
    gap: 11px;
}

.mtaabuddy-avatar {
    position: relative;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.18);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 14px;

    font-size: 23px;
}

.online-dot {
    position: absolute;

    right: -2px;
    bottom: -2px;

    width: 12px;
    height: 12px;

    background: #86efac;

    border: 2px solid #15803d;

    border-radius: 50%;
}

.mtaabuddy-info {
    display: flex;
    flex-direction: column;
}

.mtaabuddy-info strong {
    font-size: 16px;
    font-weight: 700;
}

.mtaabuddy-info small {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 3px;

    font-size: 11px;

    opacity: 0.9;
}

.status-dot {
    width: 6px;
    height: 6px;

    background: #bbf7d0;

    border-radius: 50%;
}

.close-ai-support {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.14);

    color: #ffffff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.close-ai-support:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(90deg);
}


/* =========================================================
   MESSAGES
========================================================= */

.ai-support-messages {
    flex: 1;

    padding: 20px 16px;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );

    scroll-behavior: smooth;
}

.ai-support-messages::-webkit-scrollbar {
    width: 5px;
}

.ai-support-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}


/* =========================================================
   AI MESSAGE
========================================================= */

.ai-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-bottom: 15px;

    animation: messageAppear 0.25s ease;
}

@keyframes messageAppear {

    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.message-avatar {
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dcfce7;

    border-radius: 10px;

    font-size: 16px;
}

.message-content {
    max-width: 82%;

    padding: 11px 13px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 5px 16px 16px 16px;

    color: #1f2937;

    font-size: 13px;

    line-height: 1.5;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.04);
}

.message-content strong {
    display: block;

    margin-bottom: 4px;

    color: #15803d;

    font-size: 13px;
}

.message-content p {
    margin: 0;
}

.message-time {
    display: block;

    margin-top: 6px;

    color: #9ca3af;

    font-size: 9px;
}


/* =========================================================
   USER MESSAGE
========================================================= */

.user-message {
    width: fit-content;
    max-width: 80%;

    margin-left: auto;
    margin-bottom: 15px;

    padding: 11px 14px;

    background:
        linear-gradient(
            135deg,
            #16a34a,
            #22c55e
        );

    color: #ffffff;

    border-radius: 16px 5px 16px 16px;

    font-size: 13px;
    line-height: 1.5;

    box-shadow:
        0 4px 12px rgba(22, 163, 74, 0.16);

    animation: messageAppear 0.25s ease;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: 2px 0 17px 40px;
}

.ai-quick-button {
    padding: 8px 11px;

    border: 1px solid #bbf7d0;

    border-radius: 20px;

    background: #f0fdf4;

    color: #15803d;

    font-size: 11px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.ai-quick-button:hover {
    background: #dcfce7;

    border-color: #86efac;

    transform: translateY(-1px);
}


/* =========================================================
   INPUT AREA
========================================================= */

.ai-support-input {
    padding: 12px 14px 14px;

    background: #ffffff;

    border-top: 1px solid #eef0f2;
}

.ai-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 5px 5px 5px 13px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ai-input-wrapper:focus-within {
    border-color: #4ade80;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.10);
}

.ai-input-wrapper input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    color: #1f2937;

    font-size: 13px;
}

.ai-input-wrapper input::placeholder {
    color: #9ca3af;
}

.ai-send-button {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 11px;

    background: #16a34a;

    color: #ffffff;

    cursor: pointer;

    font-size: 18px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.ai-send-button:hover {
    background: #15803d;

    transform: scale(1.05);
}

.ai-send-button:active {
    transform: scale(0.95);
}

.ai-support-disclaimer {
    display: block;

    margin-top: 7px;

    color: #9ca3af;

    text-align: center;

    font-size: 9px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ai-support-button {
        right: 15px;
        bottom: 15px;

        padding: 10px 13px;

        border-radius: 15px;
    }

    .ai-button-icon {
        width: 35px;
        height: 35px;
    }

    .ai-support-chat {
        right: 10px;
        bottom: 75px;

        width: calc(100vw - 20px);

        height: min(600px, calc(100vh - 95px));

        border-radius: 20px;
    }

    .ai-support-header {
        padding: 14px;
    }

    .ai-support-messages {
        padding: 15px 12px;
    }

    .message-content {
        max-width: 88%;
    }

    .ai-quick-actions {
        margin-left: 39px;
    }

}

/* =========================================================
   MTAABUDDY — REAL MASCOT IMAGE
========================================================= */

.ai-button-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.18);

    border-radius: 13px;
}

.ai-button-icon img {
    width: 52px;
    height: 52px;

    object-fit: contain;

    display: block;

    transform: translateY(2px);
}


/* =========================================================
   CHAT HEADER MASCOT
========================================================= */

.mtaabuddy-avatar {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;

    background: rgba(255, 255, 255, 0.18);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 15px;
}

.mtaabuddy-avatar img {
    width: 62px;
    height: 62px;

    object-fit: contain;

    display: block;

    transform: translateY(5px);

    filter: drop-shadow(
        0 4px 7px rgba(0, 0, 0, 0.15)
    );
}


/* =========================================================
   MESSAGE MASCOT
========================================================= */

.message-avatar {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dcfce7;

    border-radius: 11px;

    overflow: hidden;
}

.message-avatar img {
    width: 48px;
    height: 48px;

    object-fit: contain;

    display: block;
}


/* =========================================================
   SUBTLE MASCOT ANIMATION
========================================================= */

.mtaabuddy-avatar img {
    animation: mtaaBuddyFloat 3s ease-in-out infinite;
}

@keyframes mtaaBuddyFloat {

    0%,
    100% {
        transform: translateY(5px);
    }

    50% {
        transform: translateY(1px);
    }

}

.mtaabuddy-welcome {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.mtaabuddy-welcome-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* =====================================================
   MTAABUDDY MESSAGE AVATAR
   ===================================================== */

.mtaabuddy-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.mtaabuddy-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #22c55e;
    background: #ffffff;
}

.mtaabuddy-message .ai-message {
    margin: 0;
}

/* =====================================================
   MTAABUDDY — THINKING ANIMATION
   ===================================================== */

.mtaabuddy-thinking .mtaabuddy-avatar {
    animation: mtaabuddyPulse 1.2s ease-in-out infinite;
}

@keyframes mtaabuddyPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================================
   MTAAHELP HUMAN SUPPORT MESSAGES
   ========================================================= */

.human-support-message {
    align-items: flex-start;
}

.human-agent-message {
    border-left: 3px solid #22c55e;
    position: relative;
}

.human-agent-message::before {
    content: "MtaaHelp Support";
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.75;
}

/* =========================================================
   HUMAN SUPPORT AGENT
   ========================================================= */

.human-support-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
}

.human-support-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    font-size: 20px;
}

.human-support-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 80%;
}

.human-support-label {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 4px;
}

.human-agent-message {
    margin: 0;
}

/* ======================================================
   HUMAN SUPPORT NAVIGATION
   ====================================================== */

.back-to-mtaabuddy-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: none;
    border-radius: 10px;

    padding: 7px 12px;

    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.back-to-mtaabuddy-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.human-support-mode
.back-to-mtaabuddy-button {
    display: inline-flex;
}

/* =========================================================
   MTAAHELP CUSTOMER DASHBOARD
   PREMIUM DARK MODE
========================================================= */

body.dark-mode {

    --white: #111a17;
    --bg: #07110e;
    --bg-soft: #0b1914;

    --text-dark: #ecfdf5;
    --text: #c7d8d1;
    --text-light: #8fa69c;

    --border: #1d332b;

    --green-50: #0d251c;
    --green-100: #123d2c;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --green-900: #064e3b;

    --red-light: #321416;
    --orange-light: #30230d;
    --blue-light: #111f38;

    --shadow-sm:
        0 2px 10px rgba(0, 0, 0, 0.25);

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.30);

    --shadow-lg:
        0 20px 55px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   BODY
========================================================= */

body.dark-mode {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(16, 185, 129, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(6, 95, 70, 0.08),
            transparent 25%
        ),
        #07110e;

    color: var(--text);
}


/* =========================================================
   HEADER
========================================================= */

body.dark-mode .dashboard-header {

    background: rgba(8, 20, 16, 0.92);

    border-bottom:
        1px solid rgba(52, 211, 153, 0.12);

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.30);
}

body.dark-mode .logo > span:nth-child(2) {
    color: #ecfdf5;
}

body.dark-mode .logo > span:nth-child(3) {
    color: #4ade80;
}


/* =========================================================
   USER AREA
========================================================= */

body.dark-mode .profile-info span {
    color: #ecfdf5;
}

body.dark-mode .profile-photo-message {
    color: #8fa69c;
}

body.dark-mode .user-avatar {
    border-color: #164e3b;

    box-shadow:
        0 4px 15px rgba(16, 185, 129, 0.20);
}


/* =========================================================
   NOTIFICATIONS
========================================================= */

body.dark-mode .notification-button {

    background: #101d18;

    border-color: #244138;

    color: #d1fae5;
}

body.dark-mode .notification-button:hover {

    background: #123025;

    border-color: #34d399;
}

body.dark-mode .notification-badge {
    border-color: #101d18;
}

body.dark-mode .notification-panel {

    background: #101a16;

    border-color: #263d34;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55);
}

body.dark-mode .notification-header {

    background:
        linear-gradient(
            135deg,
            #0d281e,
            #101a16
        );

    border-bottom-color: #263d34;
}

body.dark-mode .notification-header h3 {
    color: #ecfdf5;
}

body.dark-mode .notification-header span {
    color: #8fa69c;
}

body.dark-mode .notification-item {

    border-bottom-color: #20342d;
}

body.dark-mode .notification-item:hover {
    background: #10291f;
}

body.dark-mode .notification-item.unread {
    background: #0d261d;
}

body.dark-mode .notification-content strong {
    color: #e5f8ef;
}

body.dark-mode .notification-content p {
    color: #91a79e;
}

body.dark-mode .notification-content small {
    color: #647970;
}

body.dark-mode .close-notification:hover {
    background: #123d2c;
}


/* =========================================================
   LOGOUT
========================================================= */

body.dark-mode .logout-button {

    background: #101d18;

    border-color: #29483c;

    color: #a7f3d0;
}

body.dark-mode .logout-button:hover {

    background: #047857;

    border-color: #047857;

    color: white;
}


/* =========================================================
   SEARCH
========================================================= */

body.dark-mode .search-box {

    background: #101c18;

    border-color: #263f35;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35);
}

body.dark-mode .search-box:focus-within {

    border-color: #34d399;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 0 0 4px rgba(16, 185, 129, 0.10);
}

body.dark-mode .search-box input {
    color: #ecfdf5;
}

body.dark-mode .search-box input::placeholder {
    color: #667b72;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

body.dark-mode .section-heading h2,
body.dark-mode .requests-heading h2 {
    color: #ecfdf5;
}

body.dark-mode .section-heading p,
body.dark-mode .requests-heading p {
    color: #8fa69c;
}

body.dark-mode .section-label {
    color: #34d399;
}


/* =========================================================
   SERVICE CARDS
========================================================= */

body.dark-mode .service-card {

    background:
        linear-gradient(
            145deg,
            #101d18,
            #0d1915
        );

    border-color: #203a30;

    color: #e7f8f0;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.25);
}

body.dark-mode .service-card:hover {

    background:
        linear-gradient(
            145deg,
            #13291f,
            #10251c
        );

    border-color: #2f8062;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode .service-icon {

    background: #123d2c;

    color: #a7f3d0;
}

body.dark-mode .service-card.selected {

    background:
        linear-gradient(
            145deg,
            #047857,
            #065f46
        );

    border-color: #34d399;

    color: white;
}

body.dark-mode .service-card.selected .service-icon {
    background: rgba(255, 255, 255, 0.16);
}


/* =========================================================
   SHOW ALL / REFRESH
========================================================= */

body.dark-mode .show-all-button,
body.dark-mode .refresh-button {

    background: #0d281e;

    border-color: #1d4f3c;

    color: #6ee7b7;
}

body.dark-mode .show-all-button:hover,
body.dark-mode .refresh-button:hover {

    background: #059669;

    border-color: #059669;

    color: white;
}


/* =========================================================
   PROVIDER CARDS
========================================================= */

body.dark-mode .provider-card {

    background:
        linear-gradient(
            145deg,
            #101d18,
            #0c1713
        );

    border-color: #20382f;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25);
}

body.dark-mode .provider-card:hover {

    border-color: rgba(52, 211, 153, 0.35);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35);
}

body.dark-mode .provider-avatar,
body.dark-mode .request-provider-avatar {

    background:
        linear-gradient(
            135deg,
            #123d2c,
            #14532d
        );

    color: #a7f3d0;
}

body.dark-mode .provider-name-row h3,
body.dark-mode .request-provider h3 {
    color: #ecfdf5;
}

body.dark-mode .provider-service,
body.dark-mode .provider-location,
body.dark-mode .provider-rating small,
body.dark-mode .provider-description {
    color: #8fa69c;
}

body.dark-mode .verified-badge {

    background: #123d2c;

    color: #6ee7b7;
}

body.dark-mode .provider-price {

    background: #0d281e;

    color: #8fa69c;
}

body.dark-mode .provider-price strong {
    color: #6ee7b7;
}


/* =========================================================
   PROVIDER BUTTONS
========================================================= */

body.dark-mode .profile-button {

    background: #101d18;

    border-color: #294239;

    color: #c7d8d1;
}

body.dark-mode .profile-button:hover {

    background: #123d2c;

    border-color: #34d399;

    color: #6ee7b7;
}


/* =========================================================
   REQUEST FORM
========================================================= */

body.dark-mode .request-form {

    background:
        linear-gradient(
            145deg,
            #0d241b,
            #102c20
        );

    border-color: #1d4f3c;
}

body.dark-mode .request-form-icon {

    background: #13251f;

    color: #a7f3d0;
}

body.dark-mode .request-form-header h4,
body.dark-mode .request-form label {
    color: #ecfdf5;
}

body.dark-mode .request-form-header p {
    color: #8fa69c;
}

body.dark-mode .request-form input,
body.dark-mode .request-form textarea {

    background: #0c1713;

    border-color: #294239;

    color: #ecfdf5;
}

body.dark-mode .request-form input::placeholder,
body.dark-mode .request-form textarea::placeholder {
    color: #61756c;
}

body.dark-mode .provider-request-location {

    background: #0c1915;

    border: 1px solid #20382f;
}

body.dark-mode .provider-request-location strong {
    color: #e5f8ef;
}

body.dark-mode .provider-request-location p {
    color: #8fa69c;
}

body.dark-mode .cancel-request-button {

    background: #101d18;

    border-color: #294239;

    color: #c7d8d1;
}


/* =========================================================
   LOADING / EMPTY STATES
========================================================= */

body.dark-mode .provider-loading,
body.dark-mode .requests-loading-card {

    background: rgba(16, 29, 24, 0.65);

    border-color: #294239;

    color: #8fa69c;
}

body.dark-mode .no-providers,
body.dark-mode .empty-requests,
body.dark-mode .enhanced-request-error {

    background: #101d18;

    border-color: #294239;
}

body.dark-mode .no-providers h3,
body.dark-mode .empty-requests h3,
body.dark-mode .enhanced-request-error h3 {
    color: #ecfdf5;
}

body.dark-mode .no-providers p,
body.dark-mode .empty-requests p,
body.dark-mode .enhanced-request-error p {
    color: #8fa69c;
}

body.dark-mode .empty-icon {
    background: #123d2c;
}


/* =========================================================
   REQUESTS SECTION
========================================================= */

body.dark-mode .requests-section {

    background:
        linear-gradient(
            145deg,
            #0f1c17,
            #0b1713
        );

    border-color: #20382f;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);
}

body.dark-mode .request-summary-card {

    background: #101d18;

    border-color: #243d34;
}

body.dark-mode .request-summary-card span {
    color: #8fa69c;
}

body.dark-mode .request-summary-card strong {
    color: #ecfdf5;
}


/* =========================================================
   REQUEST FILTERS
========================================================= */

body.dark-mode .request-filters {
    border-bottom-color: #20382f;
}

body.dark-mode .request-filter-button {

    background: #101d18;

    border-color: #294239;

    color: #8fa69c;
}

body.dark-mode .request-filter-button:hover {

    border-color: #34d399;

    color: #6ee7b7;
}

body.dark-mode .request-filter-button.active {

    background: #059669;

    border-color: #059669;

    color: white;
}


/* =========================================================
   CUSTOMER REQUEST CARDS
========================================================= */

body.dark-mode .customer-request-card {

    background:
        linear-gradient(
            145deg,
            #101d18,
            #0d1915
        );

    border-color: #243d34;
}

body.dark-mode .customer-request-card:hover {

    border-color: rgba(52, 211, 153, 0.35);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode .request-provider span {
    color: #8fa69c;
}


/* =========================================================
   REQUEST DETAILS
========================================================= */

body.dark-mode .request-detail {

    background: #0c1915;

    border: 1px solid #1e352c;
}

body.dark-mode .request-detail small {
    color: #71877e;
}

body.dark-mode .request-detail strong {
    color: #e5f8ef;
}

body.dark-mode .request-date {
    color: #647970;
}


/* =========================================================
   REQUEST STATUS
========================================================= */

body.dark-mode .request-status {

    background: #33270f;

    color: #fbbf24;
}

body.dark-mode .request-status.status-accepted {

    background: #123d2c;

    color: #6ee7b7;
}

body.dark-mode .request-status.status-rejected {

    background: #351619;

    color: #fca5a5;
}

body.dark-mode .request-status.status-completed {

    background: #122542;

    color: #93c5fd;
}


/* =========================================================
   REQUEST PROGRESS
========================================================= */

body.dark-mode .progress-step {
    color: #63766e;
}

body.dark-mode .progress-step span {
    background: #1b2b25;
}

body.dark-mode .progress-step.active span {

    background: #059669;

    box-shadow:
        0 0 0 5px rgba(16, 185, 129, 0.12);
}

body.dark-mode .progress-step.completed span {

    background: #123d2c;

    color: #6ee7b7;
}

body.dark-mode .progress-step.rejected-step span {

    background: #351619;

    color: #fca5a5;
}

body.dark-mode .progress-line {
    background: #263a32;
}

body.dark-mode .progress-line.completed {
    background: #10b981;
}


/* =========================================================
   STATUS MESSAGE
========================================================= */

body.dark-mode .request-status-message {

    background: #0d281e;

    border: 1px solid #1d4f3c;
}

body.dark-mode .request-status-message strong {
    color: #a7f3d0;
}

body.dark-mode .request-status-message p {
    color: #8fa69c;
}


/* =========================================================
   REQUEST ACTIONS
========================================================= */

body.dark-mode .view-request-provider-button {

    background: #101d18;

    border-color: #294239;

    color: #c7d8d1;
}

body.dark-mode .view-request-provider-button:hover {

    background: #123d2c;

    border-color: #34d399;

    color: #6ee7b7;
}


/* =========================================================
   REVIEWS
========================================================= */

body.dark-mode .review-section,
body.dark-mode .review-completed {

    background:
        linear-gradient(
            145deg,
            #0d241b,
            #10291f
        );

    border-color: #1d4f3c;
}

body.dark-mode .review-section h4,
body.dark-mode .review-completed strong {
    color: #ecfdf5;
}

body.dark-mode .review-section > p,
body.dark-mode .review-completed p {
    color: #8fa69c;
}

body.dark-mode .review-comment {

    background: #0b1713;

    border-color: #294239;

    color: #ecfdf5;
}

body.dark-mode .review-comment::placeholder {
    color: #61756c;
}


/* =========================================================
   MAP
========================================================= */

body.dark-mode .customer-providers-map {

    border-color: #294239;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   LOCATION BUTTON
========================================================= */

body.dark-mode .use-customer-location-button {

    background: #047857;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.30);
}

body.dark-mode .use-customer-location-button:hover {
    background: #059669;
}


/* =========================================================
   SCROLLBARS
========================================================= */

body.dark-mode ::-webkit-scrollbar-track {
    background: #09140f;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #29483c;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}


/* =========================================================
   MTAABUDDY — DARK MODE
========================================================= */

body.dark-mode .ai-support-chat {

    background: #0d1814;

    border-color: #234036;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.60);
}

body.dark-mode .ai-support-messages {

    background:
        linear-gradient(
            180deg,
            #09140f 0%,
            #0d1814 100%
        );
}

body.dark-mode .ai-message .message-content {

    background: #13211b;

    border-color: #294239;

    color: #d5e7df;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.20);
}

body.dark-mode .message-content strong {
    color: #4ade80;
}

body.dark-mode .message-time {
    color: #657970;
}

body.dark-mode .message-avatar {
    background: #123d2c;
}

body.dark-mode .ai-quick-button {

    background: #0d281e;

    border-color: #246044;

    color: #6ee7b7;
}

body.dark-mode .ai-quick-button:hover {

    background: #123d2c;

    border-color: #34d399;
}


/* =========================================================
   AI INPUT
========================================================= */

body.dark-mode .ai-support-input {

    background: #0d1814;

    border-top-color: #20382f;
}

body.dark-mode .ai-input-wrapper {

    background: #101f19;

    border-color: #294239;
}

body.dark-mode .ai-input-wrapper input {
    color: #ecfdf5;
}

body.dark-mode .ai-input-wrapper input::placeholder {
    color: #647970;
}

body.dark-mode .ai-support-disclaimer {
    color: #657970;
}


/* =========================================================
   HUMAN SUPPORT
========================================================= */

body.dark-mode .human-support-avatar {

    background: #123d2c;

    color: #a7f3d0;
}

body.dark-mode .human-support-label {
    color: #4ade80;
}

body.dark-mode .human-agent-message {
    border-left-color: #22c55e;
}


/* =========================================================
   AI BUTTON
========================================================= */

body.dark-mode .ai-support-button {

    background:
        linear-gradient(
            135deg,
            rgba(5, 150, 105, 0.92),
            rgba(22, 163, 74, 0.92)
        );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.40);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

body.dark-mode .close-ai-support {
    background: rgba(255, 255, 255, 0.10);
}

body.dark-mode .close-ai-support:hover {
    background: rgba(255, 255, 255, 0.18);
}


/* =========================================================
   MTAABUDDY MASCOT
========================================================= */

body.dark-mode .mtaabuddy-avatar {

    background: rgba(16, 40, 30, 0.85);

    border-color: rgba(52, 211, 153, 0.30);
}

body.dark-mode .mtaabuddy-welcome-image {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

body.dark-mode button:focus-visible,
body.dark-mode input:focus-visible,
body.dark-mode textarea:focus-visible,
body.dark-mode a:focus-visible {

    outline:
        3px solid rgba(52, 211, 153, 0.35);

    outline-offset: 2px;
}

/* =========================================================
   MTAABUDDY — FINAL DARK MODE OVERRIDE
========================================================= */

html.dark-mode .ai-support-chat {
    background: #0d1814 !important;
    border-color: #234036 !important;
}

html.dark-mode .ai-support-messages {
    background: #0b1712 !important;
}

/* AI MESSAGE OUTER CONTAINER */

html.dark-mode .ai-message {
    background: transparent !important;
    color: #d5e7df !important;
}

/* AI MESSAGE BUBBLE */

html.dark-mode .ai-message .message-content,
html.dark-mode .message-content {
    background: #13211b !important;
    border: 1px solid #294239 !important;
    color: #d5e7df !important;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.30) !important;
}

html.dark-mode .message-content strong {
    color: #4ade80 !important;
}

html.dark-mode .message-content p {
    color: #d5e7df !important;
}

html.dark-mode .message-time {
    color: #71877e !important;
}

/* AI AVATAR */

html.dark-mode .message-avatar {
    background: #123d2c !important;
    border-color: #24543f !important;
}

/* HUMAN SUPPORT MESSAGE */

html.dark-mode .human-support-message {
    background: transparent !important;
}

html.dark-mode .human-agent-message {
    background: #13211b !important;
    border-left: 3px solid #22c55e !important;
    color: #d5e7df !important;
}

html.dark-mode .human-agent-message::before {
    color: #86efac !important;
}

html.dark-mode .human-support-content {
    color: #d5e7df !important;
}

/* HUMAN SUPPORT AVATAR */

html.dark-mode .human-support-avatar {
    background: #123d2c !important;
}

/* INPUT AREA */

html.dark-mode .ai-support-input {
    background: #0d1814 !important;
    border-top-color: #294239 !important;
}

html.dark-mode .ai-input-wrapper {
    background: #101f19 !important;
    border-color: #294239 !important;
}

html.dark-mode .ai-input-wrapper input {
    background: transparent !important;
    color: #ecfdf5 !important;
}

html.dark-mode .ai-input-wrapper input::placeholder {
    color: #71877e !important;
}

/* QUICK ACTIONS */

html.dark-mode .ai-quick-button {
    background: #0d281e !important;
    border-color: #246044 !important;
    color: #6ee7b7 !important;
}

html.dark-mode .ai-quick-button:hover {
    background: #123d2c !important;
    border-color: #34d399 !important;
}

/* CHAT SCROLLBAR */

html.dark-mode .ai-support-messages::-webkit-scrollbar-track {
    background: #09140f !important;
}

html.dark-mode .ai-support-messages::-webkit-scrollbar-thumb {
    background: #29483c !important;
}

html.dark-mode .ai-support-messages::-webkit-scrollbar-thumb:hover {
    background: #10b981 !important;
}

/* MTAABUDDY CHAT WINDOW TEXT */

html.dark-mode .ai-support-chat,
html.dark-mode .ai-support-chat p,
html.dark-mode .ai-support-chat span {
    color: #d5e7df;
}

/* KEEP HEADER WHITE TEXT */

html.dark-mode .ai-support-header,
html.dark-mode .ai-support-header strong,
html.dark-mode .ai-support-header small {
    color: #ffffff !important;
}


/* =====================================================
   CUSTOMER PROFILE PHOTO MENU
===================================================== */

.profile-avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Profile Avatar */

.user-avatar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}


/* Profile Image */

.user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


/* Hidden Utility */

.hidden {
    display: none !important;
}


/* Popup Menu */

.profile-photo-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;

    width: 235px;
    padding: 8px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    animation: profileMenuAppear 0.18s ease;
}


/* Menu Buttons */

.profile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    border: none;
    border-radius: 9px;

    background: transparent;
    color: #10231d;

    font-size: 14px;
    font-weight: 600;

    text-align: left;
    cursor: pointer;

    transition: background 0.2s ease;
}


/* Hover */

.profile-menu-item:hover {
    background: #e8f7f1;
}


/* Remove Button */

.profile-menu-item.remove-profile-photo {
    color: #dc2626;
}


.profile-menu-item.remove-profile-photo:hover {
    background: #fef2f2;
}


/* Animation */

@keyframes profileMenuAppear {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* Dark Mode */

.dark-mode .profile-photo-menu {
    background: #162d26;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}


.dark-mode .profile-menu-item {
    color: #ffffff;
}


.dark-mode .profile-menu-item:hover {
    background: rgba(15, 157, 117, 0.18);
}


.dark-mode .profile-menu-item.remove-profile-photo {
    color: #ff7777;
}


.dark-mode .profile-menu-item.remove-profile-photo:hover {
    background: rgba(220, 38, 38, 0.15);
}


/* Mobile */

@media (max-width: 600px) {

    .profile-photo-menu {
        right: -10px;
        width: 220px;
    }

}

/* =========================================================
   PROFILE PHOTO MENU
========================================================= */

.profile-menu-wrapper {
    position: relative;
}

.profile-photo-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 7px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 2500;
}

.profile-photo-menu[hidden] {
    display: none !important;
}

.profile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-dark);
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--transition);
}

.profile-menu-item:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.profile-menu-item.danger {
    color: var(--red);
}

.profile-menu-item.danger:hover {
    background: var(--red-light);
    color: var(--red);
}


/* =====================================================
   PROFILE PHOTO POPUP
===================================================== */

.profile-menu-wrapper {
    position: relative;
}

/* Profile popup */

.profile-photo-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;

    width: 260px;

    background: #ffffff;
    border: 1px solid rgba(15, 157, 117, 0.18);
    border-radius: 18px;

    padding: 16px;

    box-shadow:
        0 18px 45px rgba(16, 35, 29, 0.18);

    z-index: 1000;
}

/* Popup header */

.profile-photo-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;

    color: #10231d;
}

.profile-photo-menu-header strong {
    font-size: 15px;
}

.close-profile-photo-menu {
    width: 28px;
    height: 28px;

    border: none;
    border-radius: 50%;

    background: #f1f5f3;
    color: #10231d;

    font-size: 20px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo preview */

.profile-photo-preview {
    width: 105px;
    height: 105px;

    margin: 0 auto 18px;

    border-radius: 50%;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #0f9d75,
        #19c996
    );

    display: flex;
    align-items: center;
    justify-content: center;

    border: 4px solid rgba(15, 157, 117, 0.12);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}

.profile-photo-initial {
    font-size: 38px;
    font-weight: 700;

    color: #ffffff;
}

/* Menu buttons */

.profile-menu-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    margin-top: 8px;

    border: none;
    border-radius: 12px;

    background: #f5f8f6;

    color: #10231d;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    text-align: left;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.profile-menu-item:hover {
    background: #e3f5ed;
    transform: translateY(-1px);
}

.profile-menu-item.danger {
    color: #dc2626;
    background: #fff1f1;
}

.profile-menu-item.danger:hover {
    background: #ffe0e0;
}

/* Hidden state */

.profile-photo-menu[hidden] {
    display: none;
}

/* Mobile */

@media (max-width: 600px) {

    .profile-photo-menu {
        right: -65px;
        width: 250px;
    }

}

/* =========================================================
   MTAAHELP — PERSONAL SERVICES
   Favorites + Recently Used
========================================================= */

.personal-services-section {
    width: 100%;
    margin: 0 auto 35px;
    padding: 0 4px;
}

.personal-service-group {
    margin-bottom: 28px;
    animation: personalServicesFadeIn 0.45s ease;
}

.personal-service-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.personal-service-heading > div {
    max-width: 700px;
}

.personal-service-heading .section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #059669;
}

.personal-service-heading h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
    color: #064e3b;
}

.personal-service-heading p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   SERVICE GRID
========================================================= */

.personal-service-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(245px, 1fr)
    );
    gap: 15px;
}


/* =========================================================
   PERSONAL SERVICE CARD
========================================================= */

.personal-service-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding: 15px 16px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fffc
        );
    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    overflow: hidden;
}

.personal-service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        #10b981,
        #059669
    );
}

.personal-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow:
        0 12px 28px rgba(5, 150, 105, 0.12);
}


/* =========================================================
   CARD MAIN AREA
========================================================= */

.personal-service-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.personal-service-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #d1fae5
        );
    font-size: 25px;
    box-shadow:
        inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.personal-service-info {
    min-width: 0;
}

.personal-service-info h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.personal-service-info p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;

   display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================================================
   FAVORITE BUTTON
========================================================= */

.personal-service-favorite-button,
.service-favorite-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.personal-service-favorite-button:hover,
.service-favorite-button:hover {
    transform: scale(1.08);
    background: #ecfdf5;
    color: #059669;
}

.personal-service-favorite-button:active,
.service-favorite-button:active {
    transform: scale(0.94);
}


/* Active favorite */

.personal-service-favorite-button.active,
.service-favorite-button.active {
    background: #ecfdf5;
    color: #f59e0b;
}


/* =========================================================
   ALL SERVICES FAVORITE STAR
========================================================= */

.service-card {
    position: relative;
}

.service-card .service-favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    z-index: 5;
}


/* =========================================================
   SELECTED PERSONAL SERVICE
========================================================= */

.personal-service-card.selected {
    border-color: #10b981;
    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.10),
        0 12px 28px rgba(5, 150, 105, 0.12);
}

.personal-service-card.selected
.personal-service-icon {
    background:
        linear-gradient(
            135deg,
            #d1fae5,
            #a7f3d0
        );
}


/* =========================================================
   EMPTY STATE
========================================================= */

.personal-service-empty {
    padding: 25px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #64748b;
    background: #f8fafc;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes personalServicesFadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   DARK MODE
========================================================= */

html.dark-mode .personal-service-heading h2 {
    color: #ecfdf5;
}

html.dark-mode .personal-service-heading p {
    color: #94a3b8;
}

html.dark-mode .personal-service-heading .section-label {
    color: #34d399;
}

html.dark-mode .personal-service-card {
    background:
        linear-gradient(
            145deg,
            #111827,
            #0f172a
        );
    border-color: rgba(52, 211, 153, 0.12);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);
}

html.dark-mode .personal-service-card:hover {
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3);
}

html.dark-mode .personal-service-info h3 {
    color: #f8fafc;
}

html.dark-mode .personal-service-info p {
    color: #94a3b8;
}

html.dark-mode .personal-service-icon {
    background:
        linear-gradient(
            135deg,
            #064e3b,
            #065f46
        );
}

html.dark-mode
.personal-service-favorite-button,
html.dark-mode
.service-favorite-button {
    background: #1e293b;
    color: #94a3b8;
}

html.dark-mode
.personal-service-favorite-button:hover,
html.dark-mode
.service-favorite-button:hover {
    background: #064e3b;
    color: #34d399;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .personal-services-section {
        padding: 0;
    }

    .personal-service-heading h2 {
        font-size: 21px;
    }

    .personal-service-heading p {
        font-size: 13px;
    }

    .personal-service-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .personal-service-card {
        min-height: 84px;
        padding: 13px;
        border-radius: 16px;
    }

    .personal-service-icon {
        width: 47px;
        height: 47px;
        min-width: 47px;
        font-size: 22px;
    }

    .personal-service-info h3 {
        font-size: 14px;
    }

    .personal-service-info p {
        font-size: 11px;
    }
}

/* =========================================================
   MATCH PERSONAL SERVICES TO ALL SERVICES CARD SIZE
========================================================= */

.personal-service-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 16px;
}

.personal-service-card {
    position: relative;
    box-sizing: border-box;

    min-height: 140px;
    height: 140px;

    padding: 18px;

    border-radius: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* Icon */

.personal-service-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;

    margin-bottom: 8px;

    border-radius: 14px;

    font-size: 24px;
}


/* Text */

.personal-service-info {
    width: 100%;
}

.personal-service-info h3 {
    font-size: 14px;
    margin: 0;
}

.personal-service-info p {
    margin: 4px 0 0;
    font-size: 11px;

    -webkit-line-clamp: 2;
    line-clamp: 2;
}


/* Favorite button */

.personal-service-favorite-button {
    position: absolute;

    top: 9px;
    right: 9px;

    width: 30px;
    height: 30px;

    margin: 0;

    border-radius: 9px;
    font-size: 17px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .personal-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .personal-service-card {
        height: 130px;
        min-height: 130px;
        padding: 12px;
    }

    .personal-service-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 21px;
    }
}

/* =========================================================
   MTAAHELP INTERACTIVE MAP
========================================================= */

.mtaahelp-map-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

#customerProvidersMap {
    width: 100%;
    height: 480px;
    border-radius: 20px;
}


/* Search */

.mtaahelp-map-search {
    position: absolute;
    z-index: 1000;
    top: 15px;
    left: 15px;
    width: min(430px, calc(100% - 30px));
}

.mtaahelp-map-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(10px);
}

.map-search-icon {
    padding-left: 7px;
    font-size: 17px;
}

.mtaahelp-map-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
    padding: 9px 4px;
}

.mtaahelp-map-search-box button {
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    background: #059669;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.mtaahelp-map-search-box button:hover {
    background: #047857;
}


/* Search results */

.map-search-results {
    margin-top: 7px;
    overflow: hidden;
    border-radius: 13px;
    background: white;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.16);
}

.map-search-result {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    color: #334155;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
}

.map-search-result:hover {
    background: #ecfdf5;
}

.map-result-icon {
    font-size: 16px;
}

.map-search-loading,
.map-search-message {
    padding: 14px;
    background: white;
    color: #64748b;
    font-size: 13px;
}


/* Rotation controls */

.mtaahelp-map-controls {
    position: absolute;
    z-index: 1000;
    right: 15px;
    top: 15px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mtaahelp-map-controls button {
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.96);
    color: #064e3b;

    font-size: 19px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(15, 23, 42, 0.14);

    backdrop-filter: blur(8px);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.mtaahelp-map-controls button:hover {
    transform: scale(1.06);
    background: #ecfdf5;
}


/* Hide utility */

.hidden {
    display: none !important;
}


/* Dark mode */

html.dark-mode .mtaahelp-map-search-box,
html.dark-mode .map-search-results,
html.dark-mode .map-search-result,
html.dark-mode .map-search-loading,
html.dark-mode .map-search-message,
html.dark-mode .mtaahelp-map-controls button {
    background: #111827;
    color: #f8fafc;
}

html.dark-mode .mtaahelp-map-search-box input {
    color: #f8fafc;
}

html.dark-mode .map-search-result {
    border-bottom-color: #1e293b;
}

html.dark-mode .map-search-result:hover {
    background: #064e3b;
}


/* Mobile */

@media (max-width: 700px) {

    #customerProvidersMap {
        height: 400px;
        border-radius: 16px;
    }

    .mtaahelp-map-wrapper {
        border-radius: 16px;
    }

    .mtaahelp-map-search {
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }

    .mtaahelp-map-controls {
        top: 70px;
        right: 10px;
    }

    .mtaahelp-map-controls button {
        width: 36px;
        height: 36px;
    }
}

/* =========================================================
   MAP PROVIDER POPUP
========================================================= */

.mtaahelp-map-provider-popup {
    min-width: 220px;
    padding: 4px;
    text-align: center;
}

.map-provider-popup-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    font-size: 24px;
}

.map-provider-popup-content h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #064e3b;
}

.map-provider-location {
    margin: 0 0 7px;
    color: #64748b;
    font-size: 12px;
}

.map-provider-rating {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
}

.map-view-provider-button {
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: #059669;
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.map-view-provider-button:hover {
    background: #047857;
    transform: translateY(-1px);
}

html.dark-mode .map-provider-popup-icon {
    background: #064e3b;
}

html.dark-mode .map-provider-popup-content h3 {
    color: #a7f3d0;
}

html.dark-mode .map-provider-location {
    color: #94a3b8;
}

 /* =========================================================
   MTAAHELP MAP PROVIDER POPUP — DARK MODE
========================================================= */

html.dark-mode .leaflet-popup-content-wrapper,
html.dark-mode .leaflet-popup-tip {
    background: #111827;
    color: #f8fafc;
}

html.dark-mode .leaflet-popup-content {
    color: #f8fafc;
}

html.dark-mode .mtaahelp-map-provider-popup {
    color: #f8fafc;
}

html.dark-mode .map-provider-popup-icon {
    background: #064e3b;
    color: #a7f3d0;
}

html.dark-mode .map-provider-popup-content h3 {
    color: #a7f3d0;
}

html.dark-mode .map-provider-location {
    color: #cbd5e1;
}

html.dark-mode .map-provider-rating {
    color: #fbbf24;
}

html.dark-mode .map-view-provider-button {
    background: #059669;
    color: #ffffff;
}

html.dark-mode .map-view-provider-button:hover {
    background: #10b981;
}

/* Leaflet popup close button */

html.dark-mode .leaflet-popup-close-button {
    color: #cbd5e1 !important;
}

html.dark-mode .leaflet-popup-close-button:hover {
    color: #ffffff !important;
}

/* =========================================================
   MAP PROVIDER MINI PROFILE
========================================================= */

.mtaahelp-map-provider-profile {
    width: 250px;
    padding: 4px;
}

.map-provider-profile-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.map-provider-profile-photo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #059669;
    background: #ecfdf5;
}

.map-provider-profile-name {
    min-width: 0;
}

.map-provider-profile-name h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.25;
    color: #064e3b;
}

.map-provider-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
}

.map-provider-profile-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.map-provider-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
    font-size: 11px;
    line-height: 1.4;
}

.map-provider-detail span:first-child {
    width: 18px;
    flex-shrink: 0;
}

.map-provider-profile-description {
    margin: 10px 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.map-view-provider-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #059669;
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-view-provider-button:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* =========================================================
   MAP PROVIDER MINI PROFILE — DARK MODE
========================================================= */

html.dark-mode .leaflet-popup-content-wrapper,
html.dark-mode .leaflet-popup-tip {
    background: #111827;
    color: #f8fafc;
}

html.dark-mode .leaflet-popup-content {
    color: #f8fafc;
}

html.dark-mode .map-provider-profile-name h3 {
    color: #a7f3d0;
}

html.dark-mode .map-provider-profile-photo {
    background: #064e3b;
    border-color: #10b981;
}

html.dark-mode .map-provider-verified {
    background: #064e3b;
    color: #86efac;
}

html.dark-mode .map-provider-profile-details {
    border-color: #1e293b;
}

html.dark-mode .map-provider-detail {
    color: #cbd5e1;
}

html.dark-mode .map-provider-profile-description {
    color: #94a3b8;
}

html.dark-mode .map-view-provider-button {
    background: #059669;
    color: #ffffff;
}

html.dark-mode .map-view-provider-button:hover {
    background: #10b981;
}

html.dark-mode .leaflet-popup-close-button {
    color: #cbd5e1 !important;
}

html.dark-mode .leaflet-popup-close-button:hover {
    color: #ffffff !important;
}

.map-provider-profile-photo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #059669;
    background: #ecfdf5;
}


.mtaahelp-map-provider-profile {
    width: 205px;
    max-width: 205px;
    padding: 2px;
}

.map-provider-profile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.map-provider-profile-photo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #059669;
    background: #ecfdf5;
}

.map-provider-profile-name {
    min-width: 0;
}

.map-provider-profile-name h3 {
    margin: 0 0 3px;
    font-size: 13px;
    line-height: 1.2;
    color: #064e3b;
}

.map-provider-verified {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 9px;
    font-weight: 700;
}

.map-provider-profile-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.map-provider-detail {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #475569;
    font-size: 10px;
    line-height: 1.25;
}

.map-provider-detail span:first-child {
    width: 15px;
    min-width: 15px;
    flex-shrink: 0;
}

.map-provider-profile-description {
    margin: 7px 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
}

.map-view-provider-button {
    width: 100%;
    margin-top: 7px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: #059669;
    color: white;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-view-provider-button:hover {
    background: #047857;
    transform: translateY(-1px);
}


/* =========================================================
   LEAFLET POPUP SIZE
========================================================= */

.leaflet-popup-content {
    margin: 8px 10px !important;
    width: auto !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
}

.leaflet-popup-tip {
    width: 12px;
    height: 12px;
}


/* =========================================================
   DARK MODE
========================================================= */

html.dark-mode .leaflet-popup-content-wrapper,
html.dark-mode .leaflet-popup-tip {
    background: #111827;
    color: #f8fafc;
}

html.dark-mode .leaflet-popup-content {
    color: #f8fafc;
}

html.dark-mode .map-provider-profile-name h3 {
    color: #a7f3d0;
}

html.dark-mode .map-provider-profile-photo {
    background: #064e3b;
    border-color: #10b981;
}

html.dark-mode .map-provider-verified {
    background: #064e3b;
    color: #86efac;
}

html.dark-mode .map-provider-profile-details {
    border-color: #1e293b;
}

html.dark-mode .map-provider-detail {
    color: #cbd5e1;
}

html.dark-mode .map-provider-profile-description {
    color: #94a3b8;
}

html.dark-mode .map-view-provider-button {
    background: #059669;
    color: #ffffff;
}

html.dark-mode .map-view-provider-button:hover {
    background: #10b981;
}

html.dark-mode .leaflet-popup-close-button {
    color: #cbd5e1 !important;
}

html.dark-mode .leaflet-popup-close-button:hover {
    color: #ffffff !important;
}

/* ============================================================
   SERVICE IMAGE + NAME OVERLAY
   ============================================================ */

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 175px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #dcfce7;
}

/* Service image */
.service-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* Zoom image slightly on hover */
.service-card:hover .service-image {
    transform: scale(1.07);
}

/* Dark gradient over image */
.service-image-wrapper::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.38) 45%,
        rgba(0, 0, 0, 0.05) 75%,
        transparent 100%
    );

    pointer-events: none;
}

/* ============================================================
   SERVICE NAME IN FRONT OF IMAGE
   ============================================================ */

.service-photo-overlay {
    position: absolute;
    z-index: 4;

    left: 18px;
    right: 18px;
    bottom: 16px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.65),
        0 1px 2px rgba(0, 0, 0, 0.8);

    pointer-events: none;
}

/* ============================================================
   CLEAN SERVICE IMAGE
   ============================================================ */

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 175px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #e5e7eb;
}

.service-image {
    position: relative;
    z-index: 1;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.service-card:hover .service-image {
    transform: scale(1.07);
}

/* Dark gradient behind the name */
.service-image-wrapper::after {
    content: "";

    position: absolute;
    z-index: 2;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.25) 55%,
        transparent 100%
    );

    pointer-events: none;
}

/* ============================================================
   SERVICE NAME ON IMAGE
   ============================================================ */

.service-photo-overlay {
    position: absolute;
    z-index: 4;

    left: 18px;
    right: 18px;
    bottom: 16px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.9);

    pointer-events: none;
}

/* =========================================================
   MINIMIZED DELETE ACCOUNT BUTTON
========================================================= */

#deleteAccountButton {
    width: auto;
    min-width: 0;

    padding: 6px 10px;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.2;

    border-radius: 6px;

    opacity: 0.75;

    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}


/* Hover */

#deleteAccountButton:hover {
    opacity: 1;
    transform: translateY(-1px);
}


/* Active */

#deleteAccountButton:active {
    transform: translateY(0);
}


/* Mobile */

@media (max-width: 600px) {

    #deleteAccountButton {
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 5px;
    }

}

/* =========================================================
   CUSTOMER REQUEST — CANCEL BUTTON
========================================================= */

.cancel-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    border: 1px solid #dc2626;
    border-radius: 8px;

    background: transparent;
    color: #dc2626;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.cancel-request-button:hover {
    background: #dc2626;
    color: #ffffff;

    transform: translateY(-1px);
}


.cancel-request-button:active {
    transform: translateY(0);
}


.cancel-request-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   CUSTOMER DELETE REQUEST BUTTON
======================================== */

.delete-customer-request-button {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.delete-customer-request-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.delete-customer-request-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}