/**
 * Worldwide Memon Directory (WMD) - Core Design System & Components
 * Palette: Forest Green (#0E4D3C), Royal Gold (#C59B3A), Deep Night (#0B2A22)
 */

:root {
    --green: #0E4D3C;
    --green-dark: #0A3A2D;
    --night: #0B2A22;
    --gold: #C59B3A;
    --gold-dark: #8A6A1F;
    --gold-soft: #FBF1D9;
    --cream: #FBF7EC;
    --mist: #F5F6F2;
    --mint: #E3ECE7;
    --mint-2: #EEF2EE;
    --ink: #17231F;
    --ink-2: #3B4A44;
    --muted: #5B6A64;
    --line: #E1E6E2;
    --red: #A3341F;
    --blue: #1F5E8C;
    --radius: 16px;
    --font: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --display: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    margin: 0;
    color: var(--ink);
    letter-spacing: -.01em;
}

h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
p { margin: 0; }

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   Custom Scrollbars (Global & Component Specific)
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mist);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb {
    background: #c2cfc7;
    border-radius: 99px;
    border: 2px solid var(--mist);
    transition: background .2s ease;
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #c2cfc7 var(--mist);
}

/* ==========================================================================
   Select2 Green & Gold Theme + Custom Scrollbar
   ========================================================================== */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ink);
    line-height: 26px;
    padding-left: 0;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--muted);
    font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 10px;
    top: 1px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(14, 77, 60, .14);
    outline: none;
}

.select2-dropdown {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(11, 42, 34, .12);
    font-family: var(--font);
    font-size: 14px;
    overflow: hidden;
    background: #fff;
    z-index: 9999;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
    font-family: var(--font);
    font-size: 13.5px;
    transition: border-color .15s;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(14, 77, 60, .12);
}

.select2-container--default .select2-results__option {
    padding: 8px 14px;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .12s, color .12s;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--green) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--mint-2);
    color: var(--green);
    font-weight: 600;
}

/* Select2 Results Custom Scrollbar */
.select2-results__options {
    max-height: 220px;
    overflow-y: auto;
}

.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: var(--mint-2);
    border-radius: 99px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #b5c7bd;
    border-radius: 99px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.field.bad .select2-selection--single {
    border-color: var(--red) !important;
    background: #FFFDFD;
}

/* ==========================================================================
   International Telephone Input (intl-tel-input)
   ========================================================================== */
.iti {
    width: 100%;
}

.iti input#phone, .iti input[type="tel"] {
    width: 100%;
    padding-left: 52px;
}

.iti__country-list {
    z-index: 10000;
    font-family: var(--font);
    font-size: 13.5px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(11, 42, 34, .12);
}

.iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: var(--mint-2);
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: #b5c7bd;
    border-radius: 99px;
}

.phone-valid-msg {
    color: var(--green);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 5px;
}

/* ==========================================================================
   Navbar & Top Utility Header
   ========================================================================== */
.util {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-2);
}

.util .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.proto-badge {
    background: var(--gold-soft);
    color: var(--gold-dark);
    border: 1px solid #EAD9AE;
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 600;
}

header.nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}

header.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand .mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 19px;
}

.brand b {
    color: var(--gold-dark);
    font-weight: 600;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    border-color: var(--green);
    text-decoration: none;
}

.btn:active {
    transform: scale(.98);
}

.btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.pri {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.btn.pri:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn.gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--night);
}

.btn.gold:hover {
    background: #b48a2c;
    border-color: #b48a2c;
}

.btn.ghost {
    background: transparent;
    border-color: transparent;
}

.btn.ghost:hover {
    background: var(--mint-2);
}

.btn.sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.btn.onDark {
    background: transparent;
    color: var(--cream);
    border-color: rgba(197, 155, 58, .6);
}

.btn.onDark:hover {
    border-color: var(--gold);
    background: rgba(197, 155, 58, .1);
}

/* ==========================================================================
   Cards, Grids & Page Headers
   ========================================================================== */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(11, 42, 34, .03);
}

.darkcard {
    background: var(--green);
    border: 1px solid rgba(197, 155, 58, .35);
    border-radius: var(--radius);
    padding: 24px;
    color: var(--cream);
}

.grid {
    display: grid;
    gap: 18px;
}

.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pageHead {
    background: var(--green);
    color: var(--cream);
    padding: 38px 0 34px;
}

.pageHead h1 {
    color: #fff;
    font-size: clamp(26px, 3.2vw, 36px);
}

.pageHead p {
    color: var(--mint);
    margin-top: 8px;
    max-width: 720px;
    font-size: 15px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
}

.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.xs { font-size: 12px; }

/* ==========================================================================
   Form Controls & Validation States
   ========================================================================== */
input, select, textarea {
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(14, 77, 60, .12);
}

label.f {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.req, label.f .req, label .req {
    color: #D32F2F !important;
    font-weight: 700;
    margin-left: 2px;
}

.field {
    margin-bottom: 16px;
}

.err {
    color: var(--red);
    font-size: 12.5px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.field.bad .err {
    display: block;
}

.field.bad input, .field.bad select, .field.bad textarea {
    border-color: var(--red);
    background: #FFFDFD;
}

/* ==========================================================================
   Multi-Step Form Wizard Components
   ========================================================================== */
.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.steps div {
    flex: 1;
    min-width: 90px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s ease;
}

.steps div i {
    display: block;
    height: 5px;
    border-radius: 99px;
    background: var(--line);
    margin-bottom: 6px;
    transition: background .2s ease;
}

.steps div.on {
    color: var(--green);
}

.steps div.on i {
    background: var(--gold);
}

.typeOpt {
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    transition: all .2s ease;
}

.typeOpt:hover {
    border-color: var(--green);
}

.typeOpt.on {
    border-color: var(--green);
    background: var(--mint-2);
    box-shadow: 0 0 0 2px var(--green);
}

.switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.switch:last-child {
    border-bottom: none;
}

.kv {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px 16px;
    font-size: 14px;
}

.kv dt {
    color: var(--muted);
    font-weight: 600;
}

.kv dd {
    margin: 0;
    color: var(--ink);
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.notice {
    background: var(--gold-soft);
    border: 1px solid #EAD9AE;
    color: var(--gold-dark);
    border-radius: 12px;
    padding: 14px;
    font-size: 13.5px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.alert-danger {
    background: #F8E4DF;
    border: 1px solid #EFC9BF;
    color: var(--red);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-success {
    background: var(--mint);
    border: 1px solid #CFE0D7;
    color: var(--green);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* Spinner helper */
.spinner-sm {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin .7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--night);
    color: var(--mint);
    padding: 38px 0 24px;
    margin-top: auto;
}

footer h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

footer a {
    color: var(--mint);
    display: block;
    font-size: 13.5px;
    padding: 3px 0;
}

footer a:hover {
    color: var(--gold);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .g2, .g3, .g4 { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hide-sm { display: none !important; }
    .util .wrap {
        justify-content: center;
        padding: 6px 12px;
    }
    header.nav .wrap {
        height: 56px;
        padding: 0 12px;
        gap: 8px;
    }
    .brand img {
        max-width: 170px !important;
        height: 32px !important;
    }
    .navact {
        gap: 6px;
    }
    .navact .btn.sm {
        padding: 6px 12px;
        font-size: 12.5px;
        border-radius: 9px;
    }
}

/* Executive Speciality Badge Pills */
.ob-spec-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ob-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px 6px 8px;
    border-radius: 99px;
    background: #FAF6ED;
    border: 1px solid #EADBBA;
    color: var(--gold-dark);
    white-space: nowrap;
    letter-spacing: .01em;
    box-shadow: 0 1px 3px rgba(11, 42, 34, 0.03);
    transition: all .15s ease;
}

.ob-spec-pill:hover {
    transform: translateY(-1px);
}

.ob-spec-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    display: grid;
    place-items: center;
    color: currentColor;
    box-shadow: 0 1px 2px rgba(11, 42, 34, 0.08);
    flex-shrink: 0;
}

.ob-spec-icon svg {
    width: 13px;
    height: 13px;
    display: block;
}

.ob-spec-pill.green {
    background: #F0F7F3;
    border-color: #CCE3D5;
    color: var(--green);
}

.ob-spec-pill.blue {
    background: #F0F6FA;
    border-color: #CCE0EE;
    color: #17547A;
}


/* ==========================================================================
   Professional Frosted Glass Stats Cards (Modern, Clean, No Glow/AI Gimmicks)
   ========================================================================== */
.dashboard-stats-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .dashboard-stats-grid {
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* =========================================================================
   Modern Liquid Glassmorphic Stats Cards (Senior UI/UX - No AI Vibe, No Glow, No Uppercase)
   ========================================================================= */

.dashboard-stats-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.65) 100%) !important;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 18px !important;
    padding: 16px 18px 14px 18px !important;
    box-shadow: 
        0 1px 2px rgba(15, 23, 42, 0.03), 
        0 4px 14px -2px rgba(15, 23, 42, 0.04), 
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.22s ease, 
                border-color 0.22s ease;
}

@media (min-width: 640px) {
    .dashboard-stats-card {
        padding: 18px 20px 16px 20px !important;
    }
}

/* Subtle, Refined Liquid Glass Hover - Natural Elevation, NO White-Out Flash, NO Neon Glow */
.dashboard-stats-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 100%) !important;
    border-color: rgba(218, 228, 223, 0.95) !important;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px -4px rgba(15, 23, 42, 0.08), 
        0 2px 6px -1px rgba(15, 23, 42, 0.04), 
        inset 0 1px 0 #FFFFFF !important;
}

/* 1. Card Header: Micro Icon Pod + Title + Status Pill */
.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

/* Micro-Tinted Icon Pod */
.stat-card-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.stat-card-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.dashboard-stats-card:hover .stat-card-icon-wrap {
    transform: scale(1.06);
}

.stat-icon-green, .stat-icon-default {
    background: #EBF4F0;
    color: #0E4D3C;
    border: 1px solid #D2E4DC;
}

.stat-icon-amber {
    background: #FEF3E8;
    color: #B45309;
    border: 1px solid #FBD7B6;
}

.stat-icon-gold {
    background: #FAF3E6;
    color: #8C6A1F;
    border: 1px solid #EEDB9F;
}

.stat-icon-blue {
    background: #EFF6FC;
    color: #1D6FA5;
    border: 1px solid #D0E4F5;
}

/* Title: Clean Natural Case, Senior UI Crisp Muted Slate, NO UPPERCASE */
.stat-card-title,
.dashboard-stats-card .stat-card-title,
.dashboard-stats-card .text-white\/65 {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4B5563 !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status Micro-Badge Pill */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0;
    text-transform: none !important;
    line-height: 1.35;
    flex-shrink: 0;
    white-space: nowrap;
}

.stat-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-badge-green, .stat-badge-default {
    background: #EAF5EE;
    color: #0E5C46;
    border: 1px solid #CDE8D8;
}
.stat-badge-green .stat-badge-dot, .stat-badge-default .stat-badge-dot {
    background: #10B981;
}

.stat-badge-amber {
    background: #FEF3E8;
    color: #B45309;
    border: 1px solid #FBD7B6;
}
.stat-badge-amber .stat-badge-dot {
    background: #F59E0B;
}

.stat-badge-gold {
    background: #FAF3E6;
    color: #8A671C;
    border: 1px solid #EEDB9F;
}
.stat-badge-gold .stat-badge-dot {
    background: #D97706;
}

.stat-badge-blue {
    background: #EFF6FC;
    color: #1B6596;
    border: 1px solid #CFE2F4;
}
.stat-badge-blue .stat-badge-dot {
    background: #2563EB;
}

/* 2. Card Body: Bold Tabular Number + Vector Sparkline */
.stat-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.stat-card-val,
.dashboard-stats-card .stat-card-val,
.dashboard-stats-card .text-\[15px\] {
    font-size: 27px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.035em !important;
    line-height: 1 !important;
    font-family: var(--display, 'DM Sans', sans-serif) !important;
    font-variant-numeric: tabular-nums;
}

/* Sparkline Container */
.stat-card-sparkline {
    width: 72px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-stats-card:hover .stat-card-sparkline {
    opacity: 1;
    transform: scale(1.04);
}

.stat-sparkline {
    width: 100%;
    height: 100%;
    display: block;
}

/* 3. Card Footer: Context Subtitle + Trend Indicator */
.stat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid rgba(226, 232, 228, 0.7);
}

.stat-card-subtitle {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    text-transform: none !important;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-card-trend {
    font-size: 11px;
    font-weight: 600;
    padding: 1.5px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    line-height: 1.35;
    text-transform: none !important;
    flex-shrink: 0;
    white-space: nowrap;
}

.stat-card-trend.up {
    color: #0E5C46;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.16);
}

.stat-card-trend.down {
    color: #B45309;
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.16);
}

/* Fallbacks for simple 2-item cards */
.dashboard-stats-card .stat-card-inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.dashboard-stats-card .stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.dashboard-stats-card .stat-card-ico,
.dashboard-stats-card .text-\[\#BB895A\] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #FAF8F2;
    color: #8A6A1F;
    border: 1px solid #ECE4CE;
    transition: transform .2s ease;
}

.dashboard-stats-card:hover .stat-card-ico {
    transform: scale(1.04);
}

/* ==========================================================================
   Member Profile Button & Signout in Global Navbar
   ========================================================================== */
/* Authenticated Member Profile Dropdown Component */
.nav-profile-dropdown {
    position: relative;
    display: inline-block;
}

.nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 3px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid rgba(14, 77, 60, 0.18);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(14, 77, 60, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #0E4D3C;
    font-family: inherit;
    flex-shrink: 0;
    outline: none;
}

.nav-profile-btn:hover,
.nav-profile-btn.active,
.nav-profile-dropdown.is-open .nav-profile-btn {
    background: #F4FAF6;
    border-color: #0E4D3C;
    color: #0E4D3C;
    box-shadow: 0 4px 14px rgba(14, 77, 60, 0.15);
}

.nav-profile-avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: none !important;
}

.nav-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: none !important;
    background: #EDF7F2;
    display: block;
}

/* No active red or green dot */
.nav-profile-status-dot {
    display: none !important;
}

.nav-profile-name {
    font-family: var(--font, 'DM Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: #0E4D3C;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-profile-chevron {
    color: #0E4D3C;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.nav-profile-dropdown.is-open .nav-profile-chevron {
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.nav-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(14, 77, 60, 0.12);
    box-shadow: 0 16px 40px -6px rgba(11, 42, 34, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 6px;
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
}

.nav-profile-dropdown.is-open .nav-profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-profile-menu-header {
    padding: 10px 14px 8px 14px;
}

.nav-profile-menu-name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0E4D3C;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-profile-menu-sub {
    display: block;
    font-size: 11.5px;
    color: #6B7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-profile-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}

.nav-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #17231F;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-profile-menu-item svg {
    color: #0E4D3C;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.nav-profile-menu-item:hover {
    background: #F4FAF6;
    color: #0E4D3C;
}

.nav-profile-menu-item:hover svg {
    transform: scale(1.08);
}

.nav-profile-menu-item.item-danger {
    color: #DC2626;
}

.nav-profile-menu-item.item-danger svg {
    color: #DC2626;
}

.nav-profile-menu-item.item-danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

.nav-signout-btn {
    display: none !important;
}

/* Mobile-only Nav Actions Container (Hidden completely on Desktop) */
.mobile-nav-actions {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-nav-actions {
        display: flex !important;
    }
    .nav-actions-wrap .nav-signout-btn {
        display: none !important;
    }
    .nav-actions-wrap .nav-profile-name {
        display: none !important;
    }
    .nav-profile-btn {
        padding: 3px !important;
        border-radius: 50% !important;
    }
}
