/* ======================================================
   RESET
====================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #05070d;
    color: #ffffff;

    overflow-x: hidden;
}


/* ======================================================
   APP PAGES
====================================================== */

.app-page {
    width: 100%;
    min-height: 100vh;
}

.app-page:not(.active) {
    display: none !important;
}

.app-page.active {
    display: flex;
}


/* ======================================================
   WELCOME
====================================================== */

#welcomePage {
    position: relative;

    align-items: center;
    justify-content: center;

    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(65, 130, 255, 0.18),
            transparent 35%
        ),
        #05070d;
}

#welcomePage:not(.active) {
    display: none !important;
}

#welcomePage.active {
    display: flex !important;
}

.welcome-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(26, 48, 100, 0.18),
            transparent 45%
        );

    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 2;

    width: min(92%, 520px);

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    animation:
        welcomeIn 0.8s ease forwards;
}

@keyframes welcomeIn {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.main-logo {
    width: 130px;
    height: 130px;

    object-fit: contain;

    margin-bottom: 18px;

    filter:
        drop-shadow(
            0 0 30px
            rgba(70, 160, 255, 0.35)
        );
}

.brand-name {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.welcome-tagline {
    margin-top: 8px;

    color: #9da7bd;

    font-size: 16px;
}

.large-btn {
    margin-top: 36px;

    max-width: 300px;
}


/* ======================================================
   BUTTONS
====================================================== */

button {
    font: inherit;
}

.primary-btn,
.secondary-btn,
.text-btn,
.resend-btn,
.logout-btn,
.back-btn,
.dashboard-card,
.modal-close {
    cursor: pointer;
}

.primary-btn {
    width: 100%;

    border: 0;

    padding: 14px 20px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #328cff,
            #6d5cff
        );

    color: #ffffff;

    font-weight: 700;

    box-shadow:
        0 12px 30px
        rgba(60, 110, 255, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 35px
        rgba(60, 110, 255, 0.30);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    width: 100%;

    padding: 13px 20px;

    border-radius: 13px;

    border: 1px solid
        rgba(115, 165, 255, 0.30);

    background:
        rgba(70, 130, 255, 0.08);

    color: #dce7ff;

    font-weight: 650;

    transition:
        0.2s ease;
}

.secondary-btn:hover {
    background:
        rgba(70, 130, 255, 0.16);

    border-color:
        rgba(115, 165, 255, 0.5);
}

.text-btn {
    width: 100%;

    border: 0;

    background: transparent;

    color: #8eb7ff;

    padding: 12px;

    margin-top: 8px;

    font-weight: 600;
}

.text-btn:hover {
    color: #ffffff;
}

.resend-btn {
    width: 100%;

    margin-top: 10px;

    padding: 10px;

    border-radius: 10px;

    border: 1px solid
        rgba(100, 150, 255, 0.25);

    background:
        rgba(100, 150, 255, 0.07);

    color: #8eb7ff;

    font-size: 14px;

    font-weight: 650;
}

.resend-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* ======================================================
   AUTH PAGE
====================================================== */

#authPage {
    position: relative;

    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    background: #05070d;

    overflow: hidden;
}

.auth-background {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(52, 112, 255, 0.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(116, 75, 255, 0.12),
            transparent 30%
        );

    pointer-events: none;
}

.auth-wrapper {
    position: relative;
    z-index: 2;

    width: min(100%, 480px);

    perspective: 1600px;
}


/* ======================================================
   BACK
====================================================== */

.back-btn {
    border: 0;

    background: transparent;

    color: #aab5cc;

    font-size: 14px;

    padding: 8px 0;

    margin-bottom: 14px;
}

.back-btn:hover {
    color: #ffffff;
}


/* ======================================================
   AUTH SECTION
====================================================== */

.auth-section {
    width: 100%;
}

.auth-section:not(.active) {
    display: none !important;
}

.auth-section.active {
    display: block !important;
}


/* ======================================================
   PAPER FLIP
====================================================== */

.auth-section.flip-in-right {
    animation:
        paperFlipInRight
        0.65s
        cubic-bezier(0.22, 0.61, 0.36, 1)
        both;
}

.auth-section.flip-in-left {
    animation:
        paperFlipInLeft
        0.65s
        cubic-bezier(0.22, 0.61, 0.36, 1)
        both;
}

@keyframes paperFlipInRight {

    0% {
        opacity: 0;

        transform:
            rotateY(-90deg)
            translateX(35px);

        transform-origin: left center;
    }

    55% {
        opacity: 1;
    }

    100% {
        opacity: 1;

        transform:
            rotateY(0deg)
            translateX(0);

        transform-origin: center;
    }

}

@keyframes paperFlipInLeft {

    0% {
        opacity: 0;

        transform:
            rotateY(90deg)
            translateX(-35px);

        transform-origin: right center;
    }

    55% {
        opacity: 1;
    }

    100% {
        opacity: 1;

        transform:
            rotateY(0deg)
            translateX(0);

        transform-origin: center;
    }

}


/* ======================================================
   AUTH CARD
====================================================== */

.auth-card {
    width: 100%;

    padding: 32px;

    border-radius: 25px;

    border: 1px solid
        rgba(130, 160, 220, 0.16);

    background:
        linear-gradient(
            145deg,
            rgba(20, 28, 49, 0.96),
            rgba(9, 13, 25, 0.97)
        );

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.45),

        inset 0 1px 0
        rgba(255,255,255,0.04);
}


/* ======================================================
   AUTH LOGO
====================================================== */

.auth-logo-area {
    text-align: center;

    margin-bottom: 28px;
}

.auth-logo {
    width: 68px;
    height: 68px;

    object-fit: contain;

    margin-bottom: 12px;
}

.auth-logo-area h1 {
    font-size: 27px;

    letter-spacing: -0.5px;
}

.auth-logo-area p {
    margin-top: 7px;

    color: #8994ac;

    font-size: 14px;
}


/* ======================================================
   FORMS
====================================================== */

.form-group {
    margin-bottom: 17px;
}

.form-group label,
.otp-area label {
    display: block;

    margin-bottom: 8px;

    color: #d8deed;

    font-size: 13px;

    font-weight: 650;
}

.form-group input,
.otp-area input {
    width: 100%;

    border: 1px solid
        rgba(135, 160, 210, 0.17);

    outline: none;

    border-radius: 12px;

    padding: 13px 14px;

    background:
        rgba(2, 5, 13, 0.68);

    color: #ffffff;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.otp-area input:focus {
    border-color:
        rgba(77, 143, 255, 0.7);

    box-shadow:
        0 0 0 3px
        rgba(77, 143, 255, 0.10);
}

.form-group input::placeholder,
.otp-area input::placeholder {
    color: #626d83;
}


/* ======================================================
   OTP
====================================================== */

.otp-area {
    width: 100%;

    margin: 10px 0 18px;

    padding: 17px;

    border-radius: 15px;

    background:
        rgba(57, 116, 220, 0.065);

    border: 1px solid
        rgba(100, 155, 255, 0.16);

    display: none;
}

.otp-area.visible {
    display: block;
}

.otp-status {
    min-height: 21px;

    margin-top: 9px;

    font-size: 13px;

    text-align: center;
}

.otp-timer {
    margin-top: 9px;

    text-align: center;

    color: #8995ad;

    font-size: 12px;

    min-height: 18px;
}

.otp-timer.ready {
    color: #73e6bd;
}

.otp-area .primary-btn {
    margin-top: 3px;
}


/* ======================================================
   NEW PASSWORD
====================================================== */

.new-password-area {
    display: none;

    margin-top: 12px;

    padding-top: 5px;
}

.new-password-area.visible {
    display: block;
}


/* ======================================================
   MESSAGES
====================================================== */

.form-message {
    min-height: 22px;

    margin: 8px 0;

    text-align: center;

    font-size: 13px;

    line-height: 1.5;
}

.success {
    color: #73e6bd !important;
}

.error {
    color: #ff8d9c !important;
}

.warning {
    color: #ffd479 !important;
}


/* ======================================================
   DIVIDER
====================================================== */

.auth-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 18px 0;

    color: #5d687d;

    font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        rgba(130, 150, 190, 0.12);
}


/* ======================================================
   CHECKBOX
====================================================== */

.checkbox-row {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin: 5px 0 12px;

    color: #8995aa;

    font-size: 12px;

    line-height: 1.5;
}

.checkbox-row input {
    margin-top: 3px;

    accent-color: #4f8cff;
}

.inline-link {
    border: 0;

    background: transparent;

    color: #79a9ff;

    cursor: pointer;

    font-size: inherit;
}

.inline-link:hover {
    text-decoration: underline;
}


/* ======================================================
   DASHBOARD
====================================================== */

#dashboardPage {
    display: none;
}

#dashboardPage.active {
    display: block;
}

.dashboard {
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(57, 120, 255, 0.11),
            transparent 30%
        ),
        #05070d;
}

.dashboard-header {
    min-height: 78px;

    padding: 15px 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(140, 160, 200, 0.10);
}

.dashboard-header > div {
    display: flex;

    align-items: center;

    gap: 12px;
}

.dashboard-logo {
    width: 45px;
    height: 45px;

    object-fit: contain;
}

.dashboard-header h1 {
    font-size: 19px;
}

.dashboard-header p {
    margin-top: 2px;

    color: #7e899e;

    font-size: 12px;
}

.logout-btn {
    border: 1px solid
        rgba(255, 100, 120, 0.20);

    background:
        rgba(255, 80, 100, 0.07);

    color: #ff9baa;

    padding: 9px 15px;

    border-radius: 10px;

    font-weight: 650;
}

.dashboard-content {
    width: min(1100px, 92%);

    margin: auto;

    padding: 50px 0;
}

.dashboard-welcome h2 {
    font-size: 31px;
}

.dashboard-welcome p {
    color: #8995aa;

    margin-top: 8px;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 35px;
}

.dashboard-card {
    min-height: 180px;

    padding: 24px;

    text-align: left;

    border-radius: 20px;

    border: 1px solid
        rgba(130, 160, 220, 0.13);

    background:
        rgba(18, 25, 43, 0.75);

    color: #ffffff;

    transition: 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(100, 155, 255, 0.35);
}

.dashboard-card span {
    display: block;

    font-size: 30px;

    margin-bottom: 20px;
}

.dashboard-card strong {
    display: block;

    font-size: 17px;
}

.dashboard-card small {
    display: block;

    margin-top: 6px;

    color: #7f8ba1;
}


/* ======================================================
   SIMPLE PAGES
====================================================== */

.simple-page {
    width: min(100%, 900px);

    margin: auto;

    padding: 35px 20px;
}

.simple-card {
    margin-top: 30px;

    padding: 35px;

    border-radius: 22px;

    border: 1px solid
        rgba(130, 160, 220, 0.13);

    background:
        rgba(16, 22, 38, 0.82);
}

.simple-card h1 {
    font-size: 30px;
}

.simple-card p {
    margin-top: 10px;

    color: #8d98ad;
}


/* ======================================================
   MODAL
====================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.72);

    backdrop-filter:
        blur(8px);
}

.modal.active {
    display: flex;
}

.modal-card {
    position: relative;

    width: min(100%, 600px);

    max-height: 85vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 22px;

    background: #11182a;

    border:
        1px solid
        rgba(130, 160, 220, 0.17);

    box-shadow:
        0 30px 100px
        rgba(0,0,0,0.5);
}

.modal-card h2 {
    margin-bottom: 20px;
}

.modal-card p {
    color: #a6afc1;

    line-height: 1.7;

    margin-bottom: 15px;
}

.modal-close {
    position: absolute;

    top: 13px;
    right: 15px;

    width: 34px;
    height: 34px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.06);

    color: #ffffff;

    font-size: 22px;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

    .brand-name {
        font-size: 39px;
    }

    .main-logo {
        width: 105px;
        height: 105px;
    }

    #authPage {
        padding: 30px 14px;
    }

    .auth-card {
        padding: 23px 18px;

        border-radius: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        padding: 13px 15px;
    }

    .dashboard-content {
        padding-top: 35px;
    }

}

/* =========================================================
   MEDZONEX PROFESSIONAL DASHBOARD
========================================================= */

#dashboardPage {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 70% 10%,
            rgba(65, 110, 255, 0.14),
            transparent 35%
        ),
        #05070d;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}


/* ================= SIDEBAR ================= */

.dashboard-sidebar {
    width: 235px;
    min-width: 235px;
    min-height: 100vh;
    padding: 22px 14px;
    background: rgba(8, 12, 23, 0.96);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-text strong {
    color: #fff;
    font-size: 17px;
}

.sidebar-brand-text span {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    margin-top: 3px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-item {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: rgba(255,255,255,0.62);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar-item.active {
    background: linear-gradient(
        135deg,
        rgba(75, 111, 255, 0.30),
        rgba(87, 65, 210, 0.20)
    );
    color: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(105,130,255,0.18);
}

.sidebar-icon {
    width: 22px;
    text-align: center;
    font-size: 17px;
}

.logout-item {
    color: #ff8ba6;
}

.logout-item:hover {
    background: rgba(255, 70, 110, 0.09);
    color: #ff9bb0;
}


/* ================= MAIN ================= */

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 27px 34px 50px;
    overflow: hidden;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 27px;
}

.dashboard-small-title {
    color: rgba(255,255,255,0.42);
    font-size: 12px;
    margin: 0 0 4px;
}

.dashboard-topbar h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    letter-spacing: -0.8px;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dashboard-user-info strong {
    color: #fff;
    font-size: 13px;
}

.dashboard-user-info span {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    margin-top: 3px;
}

.dashboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg,#536dff,#885cff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}


/* ================= SECTIONS ================= */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.section-kicker {
    display: block;
    color: #7188ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.section-heading h2,
.panel-heading h2 {
    color: #fff;
    margin: 0;
    font-size: 19px;
}


/* ================= ADS ================= */

.dashboard-ad-section {
    margin-bottom: 29px;
}

.ad-carousel {
    height: 225px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #101522;
    border: 1px solid rgba(255,255,255,0.08);
}

.ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.ad-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.ad-slide img,
.ad-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-overlay {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(
            transparent 20%,
            rgba(0,0,0,0.78)
        );
}

.ad-overlay span {
    color: #9aaaff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.ad-overlay h3 {
    color: white;
    font-size: 23px;
    max-width: 500px;
    margin: 6px 0 0;
}

.ad-controls {
    display: flex;
    gap: 6px;
}

.ad-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9px;
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.ad-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.ad-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

.ad-dot.active {
    width: 20px;
    border-radius: 10px;
    background: #7389ff;
}


/* ================= STATS ================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.stat-card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.075);
}

.stat-card:hover {
    border-color: rgba(115,137,255,0.25);
}

.stat-label {
    display: block;
    color: rgba(255,255,255,0.52);
    font-size: 11px;
}

.stat-value {
    display: block;
    color: white;
    font-size: 26px;
    margin: 8px 0 4px;
}

.stat-card small {
    color: rgba(255,255,255,0.34);
    font-size: 10px;
}

.sales-card {
    background:
        linear-gradient(
            135deg,
            rgba(77,111,255,0.20),
            rgba(255,255,255,0.035)
        );
}

.warning-stat {
    background:
        linear-gradient(
            135deg,
            rgba(255,160,70,0.10),
            rgba(255,255,255,0.035)
        );
}


/* ================= LOWER ================= */

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.dashboard-panel {
    padding: 20px;
    border-radius: 17px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.075);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.text-btn {
    border: 0;
    background: transparent;
    color: #7d91ff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.empty-dashboard {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.35);
}

.empty-dashboard span {
    font-size: 25px;
}

.empty-dashboard p {
    color: rgba(255,255,255,0.62);
    margin: 7px 0 2px;
}

.empty-dashboard small {
    font-size: 10px;
}


/* ================= QUICK ACTIONS ================= */

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action {
    width: 100%;
    padding: 13px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.quick-action:hover {
    background: rgba(255,255,255,0.07);
}

.quick-action > span {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: rgba(99,123,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action div {
    display: flex;
    flex-direction: column;
}

.quick-action strong {
    font-size: 12px;
}

.quick-action small {
    color: rgba(255,255,255,0.38);
    font-size: 9px;
    margin-top: 3px;
}


/* ================= BUTTON ================= */

.primary-small-btn {
    border: 0;
    border-radius: 9px;
    padding: 9px 13px;
    background: #657cff;
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}


/* ================= CUSTOMER CARE ================= */

.dashboard-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dashboard-modal.visible {
    display: flex;
}

.dashboard-modal-card {
    width: min(420px, calc(100% - 30px));
    background: #101522;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 27px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 13px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 25px;
    cursor: pointer;
}

.care-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(100,125,255,0.16);
    color: #91a2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.dashboard-modal-card h2 {
    color: white;
    margin: 0 0 8px;
}

.dashboard-modal-card > p {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.care-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    margin-top: 8px;
    color: white;
    text-decoration: none;
}

.care-contact > span {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100,125,255,0.13);
}

.care-contact div {
    display: flex;
    flex-direction: column;
}

.care-contact small {
    color: rgba(255,255,255,0.4);
    font-size: 9px;
}

.care-contact strong {
    font-size: 12px;
    margin-top: 3px;
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .dashboard-sidebar {
        width: 72px;
        min-width: 72px;
        padding: 18px 9px;
    }

    .sidebar-brand-text,
    .sidebar-item span:not(.sidebar-icon) {
        display: none;
    }

    .sidebar-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-item {
        justify-content: center;
        padding: 0;
    }

    .dashboard-main {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .dashboard-main {
        padding: 16px 12px 35px;
    }

    .dashboard-topbar h1 {
        font-size: 24px;
    }

    .dashboard-user-info {
        display: none;
    }

    .ad-carousel {
        height: 185px;
    }

    .ad-overlay h3 {
        font-size: 17px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 20px;
    }
}