/* =====================================================
   MEKANO CORPORATE DESIGN SYSTEM
===================================================== */

:root {
    --primary: #075dcc;
    --primary-dark: #06489d;
    --primary-deep: #073875;
    --primary-soft: #eaf3ff;
    --primary-faint: #f4f8ff;
    --secondary: #12a9c7;
    --success: #07966d;
    --danger: #d54855;
    --warning: #d99212;
    --navy: #10223f;
    --text: #17263c;
    --text-secondary: #64748b;
    --text-light: #8492a6;
    --background: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #dde6f0;
    --border-light: #edf2f7;
    --shadow-xs: 0 2px 8px rgba(15, 35, 65, 0.05);
    --shadow-sm: 0 8px 24px rgba(15, 35, 65, 0.08);
    --shadow-md: 0 16px 45px rgba(15, 35, 65, 0.11);
    --shadow-lg: 0 28px 70px rgba(15, 35, 65, 0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --header-height: 82px;
    --transition: 180ms ease;
}

/* =====================================================
   GLOBAL
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body,
html {
    margin: 0;
    padding: 0;
}

    body.mekano-body {
        position: relative;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        background: var(--background);
        color: var(--text);
        font-family: "Segoe UI", Tahoma, Arial, sans-serif;
        line-height: 1.6;
        direction: rtl;
        text-align: right;
    }

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.layout-container {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

.global-background {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    pointer-events: none;
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.orb-one {
    width: 520px;
    height: 520px;
    top: -260px;
    right: -180px;
    background: rgba(7, 93, 204, 0.08);
}

.orb-two {
    width: 460px;
    height: 460px;
    bottom: -240px;
    left: -180px;
    background: rgba(18, 169, 199, 0.07);
}

.background-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: linear-gradient(rgba(11, 91, 211, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 91, 211, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

/* =====================================================
   TOP INFORMATION BAR
===================================================== */

.top-information-bar {
    position: relative;
    z-index: 10;
    min-height: 36px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient( 100deg, var(--primary-deep), var(--primary-dark) );
}

.top-information-content {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 12px;
}

.top-information-start,
.top-information-end {
    display: flex;
    align-items: center;
    gap: 20px;
}

.system-status,
.top-date,
.top-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5cf0bd;
    box-shadow: 0 0 0 4px rgba(92, 240, 189, 0.12);
}

.top-date svg,
.top-time svg {
    width: 15px;
    height: 15px;
}

/* =====================================================
   HEADER AND NAVBAR
===================================================== */

.main-header {
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.main-navbar {
    min-height: var(--header-height);
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(218, 228, 240, 0.9);
    box-shadow: 0 7px 25px rgba(16, 34, 63, 0.06);
    backdrop-filter: blur(18px);
}

.navbar-container {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.brand-area {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-inline-end: 24px;
}

.brand-logo-container {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(7, 93, 204, 0.12);
    border-radius: 16px;
    background: linear-gradient( 145deg, #ffffff, var(--primary-soft) );
    box-shadow: 0 9px 22px rgba(7, 93, 204, 0.12), inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 145deg, var(--primary), var(--secondary) );
    font-size: 24px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .brand-text strong {
        color: var(--navy);
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -0.4px;
    }

    .brand-text small {
        margin-top: 5px;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 600;
    }

.navbar-collapse {
    flex-grow: 1;
}

.main-navigation-list {
    align-items: center;
    gap: 3px;
    margin-inline: auto 0;
}

    .main-navigation-list .nav-item {
        position: relative;
    }

.main-nav-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    color: #536277;
    background: transparent;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

    .main-nav-link svg {
        width: 18px;
        height: 18px;
    }

    .main-nav-link:hover {
        color: var(--primary);
        background: var(--primary-faint);
        transform: translateY(-1px);
    }

    .main-nav-link.is-active {
        color: var(--primary);
        background: linear-gradient( 135deg, var(--primary-soft), #f6faff );
        box-shadow: inset 0 0 0 1px rgba(7, 93, 204, 0.09);
    }

        .main-nav-link.is-active::after {
            content: "";
            position: absolute;
            right: 18px;
            bottom: -18px;
            left: 18px;
            height: 3px;
            border-radius: 3px 3px 0 0;
            background: var(--primary);
        }

.admin-dropdown-button {
    cursor: pointer;
}

.dropdown-toggle::after {
    margin-right: 7px;
    margin-left: 0;
    vertical-align: middle;
}

.navbar-account-area {
    min-width: max-content;
    margin-inline-start: 22px;
    padding-inline-start: 22px;
    border-inline-start: 1px solid var(--border);
}

/* =====================================================
   DROPDOWN
===================================================== */

.institutional-dropdown {
    min-width: 285px;
    margin-top: 14px !important;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    text-align: right;
    overflow: hidden;
}

.dropdown-heading {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 8px;
}

    .dropdown-heading strong {
        color: var(--navy);
        font-size: 14px;
        font-weight: 750;
    }

    .dropdown-heading small {
        margin-top: 3px;
        color: var(--text-secondary);
        font-size: 11px;
    }

.institutional-dropdown .dropdown-divider {
    margin: 5px 0 8px;
    border-color: var(--border-light);
}

.institutional-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border-radius: 12px;
    color: var(--text);
    white-space: normal;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

    .institutional-dropdown .dropdown-item:hover {
        color: var(--primary);
        background: var(--primary-faint);
        transform: translateX(-2px);
    }

.dropdown-item-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-soft);
}

    .dropdown-item-icon svg {
        width: 18px;
        height: 18px;
    }

.institutional-dropdown .dropdown-item > span:last-child {
    display: flex;
    flex-direction: column;
}

.institutional-dropdown .dropdown-item strong {
    font-size: 12px;
    font-weight: 700;
}

.institutional-dropdown .dropdown-item small {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 10px;
}

/* =====================================================
   MOBILE TOGGLER
===================================================== */

.custom-navbar-toggler {
    width: 44px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

    .custom-navbar-toggler:focus {
        box-shadow: 0 0 0 4px rgba(7, 93, 204, 0.1);
    }

    .custom-navbar-toggler span {
        width: 19px;
        height: 2px;
        border-radius: 3px;
        background: var(--navy);
        transition: var(--transition);
    }

/* =====================================================
   MAIN CONTENT
===================================================== */

.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1 0 auto;
}

/* =====================================================
   ALERTS
===================================================== */

.notification-container {
    padding-top: 18px;
}

.system-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 14px;
    box-shadow: var(--shadow-xs);
    font-size: 13px;
    font-weight: 600;
    transition: opacity 250ms ease, transform 250ms ease;
}

.system-alert-success {
    color: #07694e;
    border-color: #b9eadb;
    background: #ecfbf6;
}

.system-alert-danger {
    color: #9d2938;
    border-color: #f1c3c9;
    background: #fff1f3;
}

.alert-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.65);
}

    .alert-icon svg {
        width: 17px;
        height: 17px;
    }

.alert-close {
    margin-inline-start: auto;
    padding: 0 4px;
    border: 0;
    color: currentColor;
    background: transparent;
    font-size: 21px;
    line-height: 1;
    opacity: 0.65;
    cursor: pointer;
}

    .alert-close:hover {
        opacity: 1;
    }

.system-alert.is-closing {
    opacity: 0;
    transform: translateY(-6px);
}

/* =====================================================
   FOOTER
===================================================== */

.main-footer {
    position: static !important;
    inset: auto !important;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    color: #cbd7e8;
    background: linear-gradient( 115deg, #0d203d, #0b2c52 );
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main-row {
    min-height: 105px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 44px;
    padding-block: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.footer-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient( 145deg, var(--primary), var(--secondary) );
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.footer-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 15px;
}

.footer-brand small {
    margin-top: 3px;
    color: #91a7c2;
    font-size: 10px;
}

.footer-description {
    max-width: 570px;
    color: #a9b9cc;
    font-size: 12px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .footer-links a {
        color: #b9c8da;
        font-size: 12px;
        transition: color var(--transition);
    }

        .footer-links a:hover {
            color: #ffffff;
        }

.footer-bottom-row {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #8196b0;
    font-size: 11px;
}

.footer-system-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

    .footer-system-note::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #4ee4b4;
    }

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1199.98px) {

    .custom-navbar-toggler {
        display: flex;
        margin-inline-start: auto;
    }

    .navbar-container {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: 12px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--surface);
        box-shadow: var(--shadow-md);
    }

    .main-navigation-list {
        align-items: stretch;
        gap: 5px;
    }

    .main-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding-inline: 14px;
    }

        .main-nav-link.is-active::after {
            top: 12px;
            right: 0;
            bottom: 12px;
            left: auto;
            width: 3px;
            height: auto;
            border-radius: 0 4px 4px 0;
        }

    .navbar-account-area {
        margin: 12px 0 0;
        padding: 14px 0 0;
        border-top: 1px solid var(--border);
        border-inline-start: 0;
    }

    .institutional-dropdown {
        position: static !important;
        width: 100%;
        margin-top: 5px !important;
        transform: none !important;
        box-shadow: none;
    }

    .footer-main-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-description {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 767.98px) {

    .layout-container {
        width: min(100% - 28px, 1440px);
    }

    .top-information-start {
        display: none;
    }

    .top-information-content {
        justify-content: center;
    }

    .desktop-only {
        display: none !important;
    }

    .brand-area {
        padding-inline-end: 0;
    }

    .brand-logo-container {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .brand-logo {
        width: 37px;
        height: 37px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        font-size: 9px;
    }

    .footer-main-row {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-brand,
    .footer-links {
        justify-content: center;
    }

    .footer-description {
        grid-column: auto;
        grid-row: auto;
        margin-inline: auto;
    }

    .footer-bottom-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .layout-container {
        width: min(100% - 20px, 1440px);
    }

    .main-navbar {
        min-height: 70px;
    }

    .navbar-container {
        min-height: 70px;
    }

    .brand-logo-container {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-logo {
        width: 33px;
        height: 33px;
    }

    .brand-text small {
        display: none;
    }

    .custom-navbar-toggler {
        width: 41px;
        height: 40px;
    }

    .navbar-collapse {
        padding: 10px;
        border-radius: 15px;
    }

    .main-nav-link {
        min-height: 43px;
        font-size: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(7, 93, 204, 0.25);
    outline-offset: 2px;
}
/* =====================================================
   DYNAMIC SERVICES DROPDOWNS
===================================================== */

.services-nav-dropdown {
    position: relative;
}

.services-dropdown-button {
    position: relative;
    cursor: pointer;
}

.services-dropdown-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-inline-start: 2px;
    color: var(--primary);
    border: 1px solid rgba(7, 93, 204, .12);
    border-radius: 999px;
    background: var(--primary-soft);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.services-dropdown-button:hover
.services-dropdown-count,
.services-dropdown-button.show
.services-dropdown-count {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.services-dropdown-menu {
    width: 330px;
    min-width: 330px;
    max-width: calc(100vw - 28px);
    padding: 10px;
}

.service-dropdown-item {
    position: relative;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 10px !important;
}

.service-dropdown-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 17px;
}

.service-dropdown-content {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
}

    .service-dropdown-content strong {
        display: block;
        overflow: hidden;
        color: var(--text);
        font-size: 12px !important;
        font-weight: 750 !important;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .service-dropdown-content small {
        display: block;
        overflow: hidden;
        margin-top: 3px !important;
        color: var(--text-secondary);
        font-size: 10px !important;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.service-record-count {
    display: inline-grid;
    place-items: center;
    min-width: 31px;
    height: 27px;
    padding: 0 7px;
    color: #586a80;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-soft);
    font-size: 10px;
    font-weight: 800;
}

.service-dropdown-item:hover
.service-record-count {
    color: var(--primary);
    border-color: rgba(7, 93, 204, .18);
    background: var(--primary-soft);
}

/* السهم الخاص بالقائمة */

.services-dropdown-button.dropdown-toggle::after {
    margin-right: 7px;
    margin-left: 0;
    transition: transform var(--transition);
}

.services-dropdown-button.show::after {
    transform: rotate(180deg);
}

/* =====================================================
   SERVICES DROPDOWNS RESPONSIVE
===================================================== */

@media (max-width: 1199.98px) {

    .services-nav-dropdown {
        width: 100%;
    }

    .services-dropdown-button {
        width: 100%;
        justify-content: flex-start;
    }

    .services-dropdown-count {
        margin-inline-start: auto;
    }

    .services-dropdown-menu {
        position: static !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 5px !important;
        transform: none !important;
        box-shadow: none;
    }
}

@media (max-width: 480px) {

    .services-dropdown-menu {
        padding: 7px;
    }

    .service-dropdown-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        min-height: 57px;
        gap: 9px;
        padding: 8px !important;
    }

    .service-dropdown-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 15px;
    }

    .service-dropdown-content strong {
        max-width: 170px;
        font-size: 11px !important;
    }

    .service-dropdown-content small {
        max-width: 170px;
        font-size: 9px !important;
    }

    .service-record-count {
        min-width: 27px;
        height: 25px;
        padding-inline: 5px;
        font-size: 9px;
    }
}
/* =====================================================
   ACCOUNT NAVIGATION
===================================================== */

.account-navigation {
    display: flex;
    align-items: center;
    min-width: max-content;
}

.account-dropdown {
    position: relative;
}

.account-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 5px 10px 5px 12px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

    .account-menu-button:hover,
    .account-menu-button.show {
        color: var(--primary);
        border-color: rgba(7, 93, 204, .22);
        background: var(--primary-faint);
        box-shadow: 0 8px 22px rgba(7, 93, 204, .09);
        transform: translateY(-1px);
    }

    .account-menu-button.dropdown-toggle::after {
        margin-right: 4px;
        margin-left: 0;
        color: var(--text-secondary);
        transition: transform var(--transition);
    }

    .account-menu-button.show::after {
        transform: rotate(180deg);
    }

.account-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    overflow: hidden;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, .88);
    border-radius: 12px;
    background: linear-gradient( 145deg, var(--primary), var(--secondary) );
    box-shadow: 0 6px 14px rgba(7, 93, 204, .18);
    font-size: 14px;
    line-height: 1;
    font-weight: 850;
    text-transform: uppercase;
}

.account-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
}

    .account-user-info small {
        color: var(--text-light);
        font-size: 9px;
        font-weight: 600;
    }

    .account-user-info strong {
        overflow: hidden;
        max-width: 130px;
        margin-top: 4px;
        color: var(--navy);
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

/* =====================================================
   ACCOUNT DROPDOWN
===================================================== */

.account-dropdown-menu {
    width: 315px;
    min-width: 315px;
    max-width: calc(100vw - 26px);
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
}

.account-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px 9px;
}

.account-dropdown-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient( 145deg, var(--primary), var(--secondary) );
    box-shadow: 0 8px 20px rgba(7, 93, 204, .16);
    font-size: 17px;
    font-weight: 850;
    text-transform: uppercase;
}

.account-dropdown-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .account-dropdown-identity strong {
        overflow: hidden;
        max-width: 205px;
        color: var(--navy);
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .account-dropdown-identity small {
        overflow: hidden;
        max-width: 205px;
        margin-top: 4px;
        color: var(--text-secondary);
        font-size: 10px;
        direction: ltr;
        text-align: right;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.account-logout-form {
    margin: 0;
    padding: 0;
}

.account-logout-button {
    width: 100%;
    border: 0;
    text-align: right;
}

    .account-logout-button:hover {
        color: var(--danger) !important;
        background: #fff4f5 !important;
    }

.account-logout-icon {
    color: var(--danger);
    background: #fff0f2;
}

/* =====================================================
   GUEST ACTIONS
===================================================== */

.guest-account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-login-link,
.account-register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 9px 13px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

    .account-login-link svg,
    .account-register-link svg {
        width: 17px;
        height: 17px;
    }

.account-login-link {
    color: var(--primary);
    border-color: rgba(7, 93, 204, .18);
    background: var(--primary-faint);
}

    .account-login-link:hover {
        color: var(--primary-dark);
        border-color: rgba(7, 93, 204, .30);
        background: var(--primary-soft);
        transform: translateY(-1px);
    }

.account-register-link {
    color: #fff;
    border-color: var(--primary);
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    box-shadow: 0 8px 18px rgba(7, 93, 204, .17);
}

    .account-register-link:hover {
        color: #fff;
        border-color: var(--primary-dark);
        background: linear-gradient( 135deg, var(--primary-dark), var(--primary-deep) );
        transform: translateY(-1px);
    }

/* =====================================================
   ACCOUNT RESPONSIVE
===================================================== */

@media (max-width: 1199.98px) {

    .account-navigation {
        width: 100%;
    }

    .account-dropdown {
        width: 100%;
    }

    .account-menu-button {
        width: 100%;
        justify-content: flex-start;
        padding: 7px 10px;
    }

        .account-menu-button.dropdown-toggle::after {
            margin-inline-start: auto;
        }

    .account-user-info {
        flex: 1;
    }

        .account-user-info strong {
            max-width: none;
        }

    .account-dropdown-menu {
        position: static !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 6px !important;
        transform: none !important;
        box-shadow: none;
    }

    .guest-account-actions {
        width: 100%;
    }

    .account-login-link,
    .account-register-link {
        flex: 1;
    }
}

@media (max-width: 480px) {

    .account-menu-button {
        min-height: 45px;
    }

    .account-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
        font-size: 12px;
    }

    .account-user-info strong {
        font-size: 10px;
    }

    .guest-account-actions {
        flex-direction: column;
    }

    .account-login-link,
    .account-register-link {
        width: 100%;
    }

    .account-dropdown-header {
        padding-inline: 8px;
    }
}


