/* =========================================
   YADI NIGERIA — MEMBER AREA STYLES
   Covers: Auth pages (login/verify/set-password)
           + Member Dashboard
   ========================================= */

/* ─────────────────────────────────────────
   AUTH PAGES (login / verify / set-password)
───────────────────────────────────────── */

.member-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 10%, rgba(15, 136, 67, 0.12), transparent 38%),
        radial-gradient(circle at 82% 88%, rgba(242, 140, 40, 0.10), transparent 36%),
        var(--color-bg);
    padding: 32px 16px;
}

.member-auth-wrap {
    width: 100%;
    max-width: 480px;
    display: grid;
    gap: 24px;
}

/* Logo */
.member-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto;
    color: var(--color-primary-deep);
}

.member-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.member-logo span {
    display: grid;
    line-height: 1.05;
}

.member-logo strong {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
}

.member-logo small {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Card */
.member-auth-card {
    padding: 36px 32px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 20px;
}

.member-auth-header h1 {
    font-size: 26px;
    color: var(--color-primary-deep);
    margin-bottom: 6px;
}

.member-auth-header p {
    font-size: 15px;
    color: var(--color-muted);
}

.member-greeting-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--color-soft-green);
    color: var(--color-primary-deep);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Credentials preview (set-password page) */
.member-credentials-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.member-credentials-preview > div {
    padding: 12px 16px;
    background: var(--color-soft-green);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 136, 67, 0.14);
    display: grid;
    gap: 4px;
}

.member-credentials-preview span {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.member-credentials-preview strong {
    color: var(--color-primary-deep);
    font-size: 14px;
    word-break: break-all;
}

/* Alerts */
.member-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.member-alert-error {
    background: var(--color-soft-red);
    color: var(--color-emergency);
    border: 1px solid rgba(217, 45, 76, 0.18);
}

.member-alert-info {
    background: var(--color-soft-green);
    color: var(--color-primary-deep);
    border: 1px solid rgba(15, 136, 67, 0.18);
}

/* Form */
.member-form {
    display: grid;
    gap: 16px;
}

.member-field {
    display: grid;
    gap: 6px;
}

.member-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.member-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-field input:focus {
    border-color: rgba(15, 136, 67, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 136, 67, 0.1);
}

.member-field-hint {
    font-size: 13px;
    color: var(--color-muted);
}

/* Password input with toggle */
.member-password-wrap {
    position: relative;
}

.member-password-wrap input {
    padding-right: 48px;
}

.member-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
}

.member-toggle-pw svg {
    width: 18px;
    height: 18px;
}

.member-toggle-pw:hover {
    color: var(--color-primary);
}

/* Password strength */
.member-pw-strength {
    font-size: 13px;
    font-weight: 700;
    min-height: 18px;
}

.pw-weak  { color: var(--color-emergency); }
.pw-fair  { color: var(--color-warning); }
.pw-strong { color: var(--color-primary); }

/* Password rules */
.member-pw-rules {
    display: grid;
    gap: 4px;
    list-style: none;
    margin: 2px 0 0;
}

.member-pw-rules li {
    font-size: 13px;
    color: var(--color-muted);
    padding-left: 18px;
    position: relative;
}

.member-pw-rules li::before {
    content: "○";
    position: absolute;
    left: 0;
    font-size: 10px;
    top: 2px;
}

.member-pw-rules li.pw-rule-ok {
    color: var(--color-primary);
}

.member-pw-rules li.pw-rule-ok::before {
    content: "✓";
    font-size: 12px;
}

/* Submit button */
.member-submit-btn {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
}

/* Footer notes */
.member-auth-footer-note {
    text-align: center;
    font-size: 14px;
    color: var(--color-muted);
    margin: 4px 0 0;
}

.member-auth-footer-note a {
    color: var(--color-primary);
    font-weight: 700;
}

.member-bottom-link {
    text-align: center;
    font-size: 14px;
}

.member-bottom-link a {
    color: var(--color-muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.member-bottom-link a:hover {
    color: var(--color-primary);
}

/* ─────────────────────────────────────────
   DASHBOARD LAYOUT
───────────────────────────────────────── */

.member-dashboard-body {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
    overflow-x: hidden;
}

/* Sidebar with Disappearing Scrollbar */
.dash-sidebar {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #075C31 0%, #053e22 100%);
    height: 100vh;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
}

.dash-sidebar:hover,
.dash-sidebar.sidebar-hover {
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.dash-sidebar::-webkit-scrollbar {
    width: 5px;
}

.dash-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dash-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
    transition: background 0.2s ease-in-out;
}

.dash-sidebar:hover::-webkit-scrollbar-thumb,
.dash-sidebar.sidebar-hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45) !important;
}

.dash-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.75) !important;
}

.dash-sidebar-brand {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.dash-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 3px;
}

.dash-logo span {
    display: grid;
    line-height: 1.1;
}

.dash-logo strong {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: white;
}

.dash-logo small {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

/* Avatar */
.dash-sidebar-avatar {
    padding: 20px;
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dash-sidebar-avatar strong {
    color: white;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

.dash-sidebar-avatar span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Nav */
.dash-nav {
    padding: 16px 12px;
    display: grid;
    gap: 4px;
    flex: 1;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.dash-nav-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.dash-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dash-nav-item.active {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

.dash-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 4px;
}

.dash-logout {
    color: rgba(217, 45, 76, 0.9) !important;
}

.dash-logout:hover {
    background: rgba(217, 45, 76, 0.15) !important;
    color: #ff6b87 !important;
}

/* Main area */
.dash-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - 260px);
    max-width: 100%;
    overflow-x: hidden;
}

/* Topbar */
.dash-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    gap: 16px;
}

.dash-menu-toggle {
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.dash-menu-toggle span {
    width: 16px;
    height: 2px;
    background: var(--color-primary-deep);
    border-radius: 999px;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.dash-topbar-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-soft-green);
    padding: 5px 10px;
    border-radius: 999px;
}

.dash-topbar-logout {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-emergency);
}

.dash-topbar-logout:hover {
    text-decoration: underline;
}

/* Welcome banner */
.dash-welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 24px 0;
    padding: 16px 20px;
    background: var(--color-soft-green);
    border: 1px solid rgba(15, 136, 67, 0.2);
    border-radius: var(--radius-md);
}

.dash-welcome-banner div {
    display: grid;
    gap: 3px;
}

.dash-welcome-banner strong {
    color: var(--color-primary-deep);
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

.dash-welcome-banner span {
    color: var(--color-primary);
    font-size: 14px;
}

.dash-banner-close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dash-banner-close:hover {
    background: rgba(15, 136, 67, 0.15);
}

/* Content area */
.dash-content {
    padding: 24px 28px 60px;
    flex: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

/* Panels */
.dash-panel {
    display: none;
}

.dash-panel.active {
    display: block;
}

.dash-panel-header {
    margin-bottom: 28px;
}

.dash-panel-header h2 {
    font-size: 26px;
    color: var(--color-primary-deep);
    margin-bottom: 4px;
}

.dash-panel-header p {
    color: var(--color-muted);
    font-size: 15px;
}

/* Stats grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(7, 92, 49, 0.05);
}

.dash-stat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-stat-icon svg {
    width: 20px;
    height: 20px;
}

.dash-stat-green {
    background: var(--color-soft-green);
    color: var(--color-primary);
}

.dash-stat-orange {
    background: rgba(242, 140, 40, 0.12);
    color: var(--color-warning);
}

.dash-stat-blue {
    background: var(--color-soft-blue);
    color: #3b82f6;
}

.dash-stat-card div {
    min-width: 0;
}

.dash-stat-card strong {
    display: block;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-stat-card span {
    color: var(--color-muted);
    font-size: 13px;
}

/* Modules grid */
.dash-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dash-module-card {
    padding: 22px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-module-card.dash-module-coming {
    opacity: 0.78;
}

.dash-module-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-soft-green);
    border-radius: 10px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.dash-module-icon svg {
    width: 20px;
    height: 20px;
}

.dash-module-card h3 {
    font-size: 16px;
    color: var(--color-text);
}

.dash-module-card p {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.5;
}

.dash-coming-badge {
    margin-top: auto;
    width: fit-content;
    padding: 5px 10px;
    background: var(--color-soft-blue);
    color: #3b82f6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* Profile panel */
.dash-profile-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.dash-profile-avatar-col {
    padding: 28px 20px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.dash-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dash-profile-avatar-col strong {
    color: var(--color-text);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.dash-profile-avatar-col span {
    color: var(--color-muted);
    font-size: 13px;
}

.dash-profile-badge {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-soft-green);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dash-profile-fields {
    display: grid;
    gap: 20px;
}

/* Field groups */
.dash-field-group {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.dash-field-group h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-deep);
    padding: 14px 18px;
    background: var(--color-soft-green);
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dash-field {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(227, 232, 228, 0.6);
    border-right: 1px solid rgba(227, 232, 228, 0.6);
    display: grid;
    gap: 3px;
}

.dash-field:last-child {
    border-right: none;
}

.dash-field-full {
    grid-column: span 2;
    border-right: none;
}

.dash-field span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-field strong {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
}

/* Application panel */
.dash-application-card {
    display: grid;
    gap: 20px;
}

.dash-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.dash-app-meta > div {
    display: grid;
    gap: 3px;
    min-width: 160px;
}

.dash-app-meta span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-app-meta strong {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
}

.dash-status-badge {
    color: var(--color-primary) !important;
    background: var(--color-soft-green);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px !important;
}

.dash-motivation-text {
    padding: 14px 18px;
    color: var(--color-text) !important;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: none;
}

/* Interests panel */
.dash-interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--color-soft-green);
    border: 1px solid rgba(15, 136, 67, 0.2);
    border-radius: 999px;
    color: var(--color-primary-deep);
    font-size: 14px;
    font-weight: 600;
}

.dash-interest-tag svg {
    color: var(--color-primary);
}

.dash-empty-state {
    color: var(--color-muted);
    font-size: 15px;
    padding: 24px 0;
}

/* ─────────────────────────────────────────
   RESPONSIVE — DASHBOARD
───────────────────────────────────────── */

@media (max-width: 1024px) {
    .dash-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 900px) {
    .dash-sidebar {
        transform: translateX(-100%);
    }

    .dash-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .dash-main {
        margin-left: 0;
    }

    .dash-menu-toggle {
        display: flex;
    }

    .dash-profile-grid {
        grid-template-columns: 1fr;
    }

    .dash-profile-avatar-col {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .dash-modules-grid {
        grid-template-columns: 1fr;
    }

    .dash-field-row {
        grid-template-columns: 1fr;
    }

    .dash-field {
        border-right: none;
    }

    .dash-content {
        padding: 20px 16px 40px;
    }

    .dash-topbar {
        padding: 0 16px;
    }

    .dash-welcome-banner {
        margin: 16px 16px 0;
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE — AUTH PAGES
───────────────────────────────────────── */

@media (max-width: 520px) {
    .member-auth-card {
        padding: 24px 20px;
    }

    .member-credentials-preview {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   HANGER & CASCADING SECTIONS (PHASE 3 ENHANCEMENT)
   Friendly, approachable, non-intimidating UI
   ========================================= */

.member-hanger {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.25s ease;
}

.member-hanger:hover {
    border-color: rgba(15, 136, 67, 0.35);
    box-shadow: 0 4px 14px rgba(7, 92, 49, 0.05);
}

.member-hanger-trigger {
    padding: 16px 20px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--color-primary-deep);
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease;
}

.member-hanger-trigger:hover {
    background: #F9FAFB;
}

.member-hanger.open .member-hanger-trigger {
    border-bottom-color: var(--color-border);
    background: #F7FAF8;
}

.member-hanger-content {
    display: none;
    padding: 20px;
}

.member-hanger.open .member-hanger-content {
    display: block;
    animation: hangerFadeDown 0.25s ease-out;
}

@keyframes hangerFadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hanger-icon-rotate {
    transition: transform 0.25s ease;
}

.member-hanger.open .hanger-icon-rotate {
    transform: rotate(180deg);
}

/* Cascading Tabs */
.dash-tabs,
.member-subtabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 20px;
    padding-bottom: 2px;
    overflow-x: auto;
}

.dash-tab-btn,
.member-subtab-btn {
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.member-subtab-btn:hover {
    color: #075C31;
    background: rgba(15, 136, 67, 0.05);
}

.member-subtab-btn.active {
    color: #075C31;
    font-weight: 700;
}

.member-subtab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0F8843;
    border-radius: 999px;
}

/* Stepped Cascading Card */
.cascade-step-card {
    border-left: 3px solid #0F8843;
    padding-left: 16px;
    margin-bottom: 18px;
}

.cascade-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #0F8843;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
}

/* Global Hanger Accordion Drawer */
.yadi-hanger, .ui-hanger {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.yadi-hanger:hover, .ui-hanger:hover {
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(15, 136, 67, 0.06);
}
.yadi-hanger-header, .ui-hanger-btn {
    width: 100%;
    padding: 14px 18px;
    background: #F9FAFB;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    transition: background 0.2s;
}
.yadi-hanger-header:hover, .ui-hanger-btn:hover {
    background: #F3F4F6;
}
.yadi-hanger.open .yadi-hanger-header, .ui-hanger.is-open .ui-hanger-btn {
    background: #ffffff;
    border-bottom: 1px solid #F3F4F6;
    color: #075C31;
}
.hanger-chevron, .ui-hanger-chevron {
    transition: transform 0.25s ease;
    color: #9CA3AF;
}
.yadi-hanger.open .hanger-chevron, .ui-hanger.is-open .ui-hanger-chevron {
    transform: rotate(180deg);
    color: #0F8843;
}
.yadi-hanger-body, .ui-hanger-panel {
    display: none;
    padding: 18px 20px;
}
.yadi-hanger.open .yadi-hanger-body, .ui-hanger.is-open .ui-hanger-panel {
    display: block;
    animation: hangerIn 0.2s ease-out;
}



/* =========================================================================
   MODERN ENTERPRISE BUTTONS SYSTEM (MICRO-ANIMATED & ELEVATED)
   ========================================================================= */
.btn, .dash-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.01em;
    border-radius: 9px;
    padding: 0.45rem 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    user-select: none;
    white-space: nowrap;
}

.btn i, .btn svg, .dash-btn i, .dash-btn svg {
    font-size: 1.05em;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.btn:hover, .dash-btn:hover {
    transform: translateY(-1.5px);
}

.btn:hover i, .btn:hover svg, .dash-btn:hover i, .dash-btn:hover svg {
    transform: scale(1.15);
}

.btn:hover i.bi-arrow-right, .btn:hover i.bi-chevron-right {
    transform: translateX(3px) scale(1.1);
}

.btn:hover i.bi-arrow-left, .btn:hover i.bi-chevron-left {
    transform: translateX(-3px) scale(1.1);
}

.btn:hover i.bi-printer, .btn:hover i.bi-download {
    transform: translateY(1.5px) scale(1.1);
}

.btn:hover i.bi-gear, .btn:hover i.bi-arrow-repeat {
    transform: rotate(45deg) scale(1.1);
}

.btn:hover i.bi-plus-lg, .btn:hover i.bi-plus-circle, .btn:hover i.bi-send-fill {
    transform: rotate(15deg) scale(1.15);
}

.btn:active, .dash-btn:active {
    transform: translateY(0.5px) scale(0.985);
    transition-duration: 0.05s;
}

.btn-primary, .dash-btn-primary {
    background: linear-gradient(135deg, #0F8843 0%, #075C31 100%) !important;
    color: #ffffff !important;
    border-color: #054826 !important;
    box-shadow: 0 2px 6px rgba(7, 92, 49, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-primary:hover, .dash-btn-primary:hover {
    background: linear-gradient(135deg, #10B981 0%, #065F46 100%) !important;
    box-shadow: 0 6px 16px rgba(7, 92, 49, 0.35) !important;
    color: #ffffff !important;
}

.btn-secondary, .dash-btn-secondary {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.btn-secondary:hover, .dash-btn-secondary:hover {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07) !important;
}

/* =========================================================================
   HIGH-DENSITY SAAS SCALING (ZOOMED-OUT COMPACT PC SCREEN VIEWPORT)
   ========================================================================= */
@media (min-width: 992px) {
    .dash-sidebar {
        width: 240px;
        flex: 0 0 240px;
    }
    .dash-main {
        margin-left: 240px;
        width: calc(100% - 240px);
        font-size: 13px;
        line-height: 1.45;
    }
    .dash-topbar {
        padding: 0.45rem 1.25rem;
        height: 52px;
    }
    .dash-content {
        padding: 0.85rem 1.25rem 1.5rem;
        max-width: 1360px;
    }
    .dash-card, .profile-card {
        padding: 0.85rem 1rem !important;
        margin-bottom: 0.85rem !important;
        border-radius: 10px !important;
    }
    .stat-number, .dash-stat-number {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }
}

/* =========================================================================
   MOBILE FRIENDLINESS ENHANCEMENTS (TABLETS & SMARTPHONES)
   ========================================================================= */
@media (max-width: 991.98px) {
    .dash-sidebar {
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }
    .dash-sidebar.open, .dash-sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    }
    .dash-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .dash-content {
        padding: 1rem 1rem 2rem;
    }
}
