
/* ── Brand lockup (navbar / nav-sidebar / footer) ────────────────────────────
   Mark = SVG image; wordmark = real HTML text so it always renders in the
   page's Inter with the theme tokens — no theme-swapped image pairs needed
   (SVG <text> inside <img> falls back to unpredictable system fonts). */
.logo-dark { display: none; }   /* legacy pairs elsewhere (register page etc.) */

.main-logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    line-height: 0;
}
.main-logo-lockup__mark { width: 32px; height: 32px; display: block; }
/* Two-tone mark: charcoal-tick variant on light surfaces, cream-tick on dark. */
.main-logo-lockup__mark--dark { display: none; }
[data-theme="dark"] .main-logo-lockup__mark--default { display: none; }
[data-theme="dark"] .main-logo-lockup__mark--dark    { display: block; }
.main-logo-lockup__word {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-primary);
}
.main-logo-lockup__word em { font-style: normal; color: var(--accent); }

/* Smaller variant (slide-over nav sidebar) */
.main-logo-lockup--sm .main-logo-lockup__mark { width: 26px; height: 26px; }
.main-logo-lockup--sm .main-logo-lockup__word { font-size: 17px; }

/* Auth surfaces (login / register / contact / modals) — centered lockup */
.main-logo-lockup--auth {
    justify-content: center;
    margin: 0 auto;
}

/* Mobile navbar: mark only (matches the old mini-logo behavior) */
@media (max-width: 767px) {
    .nav-bar .main-logo-lockup__word { display: none; }
    .nav-bar .main-logo-lockup__mark { width: 30px; height: 30px; }
}

/* Dark mode — Login: ghost with muted border → orange on hover */
[data-theme="dark"] .button-login {
    color: #cbd5e1 !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}
[data-theme="dark"] .button-login:hover {
    background-color: #ff4a00 !important;
    border-color: #ff4a00 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(255, 74, 0, 0.32) !important;
}
/* Signup: inherits global #buttons dark mode (orange pill) */
[data-theme="dark"] .button-signup {
    color: #ffffff !important;
}



.main-logo-large {
    height: auto;
    width: 150px;
}
.main-logo-wrapper{
    position: static;
    top: 220px;
    left: 100px;
    margin-left: -330px;
    margin-bottom: 40px;
}

.main-logo-signup {
    width: 150px;
    position: relative;
}

.main-logo-small {
    height: 50px;
    margin-left: 0;
}


.main-logo-aspire-mobile{
    font-size: 9px;
    position: relative;
    left: -64px;
    bottom: -6px;}

.main-logo-aspire{
    font-size: 11px;
    position: relative;
    font-weight: lighter;
    right: 140px;
    bottom: -2px;
    color: darkgrey;
    font-style: italic;
}

.nav-bar-start-item{
    border-radius: 8px !important;
}

.nav-bar-start-item:hover{
    background-color: rgba(241, 136, 5, 0.5) !important;
    border-radius: 8px !important;
}

/* ── Feedback modal ──────────────────────────────────────────────────────── */
.fb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fb-fade 0.18s ease;
}
@keyframes fb-fade { from { opacity: 0; } to { opacity: 1; } }

.fb-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: fb-rise 0.2s ease;
}
@keyframes fb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.fb-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border: none; background: transparent;
    color: var(--text-muted);
    font-size: 15px; cursor: pointer; border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.fb-close:hover { background: var(--bg-muted); color: var(--text-primary); }

.fb-eyebrow {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.fb-title {
    font-size: 19px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 18px; line-height: 1.3;
}

.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fb-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.fb-chip:hover { border-color: var(--text-muted); color: var(--text-primary); }
.fb-chip.is-active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.fb-chip-icon { font-size: 14px; }

.fb-textarea {
    width: 100%; min-height: 130px; resize: vertical;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--bg-muted);
    color: var(--text-primary); font-size: 14px; line-height: 1.55;
    font-family: inherit;
}
.fb-textarea:focus { outline: none; border-color: var(--accent); }
.fb-textarea::placeholder { color: var(--text-muted); }

.fb-error { margin-top: 10px; font-size: 13px; color: #dc2626; font-weight: 600; }

.fb-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-top: 16px;
}
.fb-foot-note { font-size: 12px; color: var(--text-muted); flex: 1; }
.fb-submit {
    background: var(--accent); color: #fff; border: none;
    border-radius: 10px; padding: 9px 18px;
    font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
}
.fb-submit:hover:not(:disabled) { background: var(--accent-hover); }
.fb-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.fb-done { text-align: center; padding: 14px 6px 4px; }
.fb-done-icon { font-size: 40px; margin-bottom: 10px; }
.fb-done-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.fb-done-sub { font-size: 14px; color: var(--text-secondary); margin: 0 0 20px; line-height: 1.5; }

.search-bar {
    height: calc(1.5em + 0.75rem - 3px);
    padding: 0 10px;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 10px;
    position: relative;
    vertical-align: middle;
    background: #ffffff;
}

.search-bar:focus {
    box-shadow: 0 0 10px #f18805 !important;
    border-color: #f18805 !important;
    text-shadow: none !important;
    outline: none !important;
}

.formSearchNav {
    display: flex;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}

.side-bar-toggle {
    height: 32px;
    width: 32px;
    margin: 0 10px 0 20px;
    cursor: pointer;
}

.nav-bar-wrapper {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    height: 100vh;
    position: fixed;
    width: 100vw;
    z-index: 100;
    top: 0;
    left: 0;

}

.nav-bar {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
    height: 66px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
    display: flex;
    justify-content: space-between;
    padding: 5px calc(((100vw - 1400px) / 2 + 20px)) 5px calc(((100vw - 1400px) / 2) + 10px);
    z-index: 999;
}

.nav-bar-start {
    display: flex;
    flex-direction: row;
    flex: auto;
    margin-right: 30px;
}

.nav-bar-start a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease-in-out, background-color 0.3s ease;
}

.nav-bar-start a:hover, .nav-bar-start a:active {
    color: #fff;
    background-color: #c4c4c4;
    border-radius: 5px;
}

.nav-bar-end {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.nav-not-logged-in {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    min-width: 216px;
    width: max-content !important;
    left: auto;
    right: 0;
    background-color: white;
    border-radius: 20px !important;
    box-shadow: 0 10px 20px 0 #00000026;
    padding: 16px 0 16px 0;
    margin-top: -11px;
}

.nav-bar .dropdown-item {
    color: #4F5674 !important;
}

.nav-bar .dropdown-item .navbar-settings{
    color: #5c5aff !important;
    font-weight: bolder;
}

.nav-bar .dropdown-item:hover {
    background-color: #ced4da;
}

.nav-dropdown-username, .nav-dropdown-email {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #1C1E29 !important;
    pointer-events: none;
    padding: 0 16px;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100%;
}

.nav-dropdown-email {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    padding-bottom: 16px;
    color: #4F5674 !important;
}

.nav-dropdown-logout,
.nav-dropdown-admin {
    font-size: 14px !important;
    line-height: 16px !important;
    color: #828AAA !important;
}

.nav-dropdown-saved-created {
    display: flex;
    justify-content: space-between;
    min-width: max-content;
}

#collapsible-nav-dropdown {
    border-bottom: none !important;
    margin-left: 30px;
    padding: 16px 0;
    line-height: 24px;
}

.dropdown-toggle::after {
    display: none;
}

.nav-sidebar-body {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.nav-sidebar-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,.8);
    z-index: 2;
}

.nav-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    max-width: 500px;
    width: 75%;
    height: 100%;
    background-color: var(--bg-primary);
    overflow-y: auto;
    z-index: 1000;
}

.nav-sidebar-logo {
    max-width: 100%;
    padding: 16px;
}

[data-theme="dark"] .nav-sidebar {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .nav-sidebar-logo.logo-default { display: none !important; }
[data-theme="dark"] .nav-sidebar-logo.logo-dark    { display: inline !important; }

/* ─────────────────────────────────────────────────────────────────────────
   Mobile Nav Sidebar — v2 redesign
   ───────────────────────────────────────────────────────────────────────── */
.nav-sidebar--v2 {
    display: flex;
    flex-direction: column;
    width: 88%;
    max-width: 380px;
    background: var(--bg-page);
    color: var(--text-primary);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: ns-slide-in 0.24s cubic-bezier(0.22, 0.8, 0.32, 1);
}

@keyframes ns-slide-in {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

[data-theme="dark"] .nav-sidebar--v2 {
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
}

.nav-sidebar--v2 .ns-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-sidebar--v2 .ns-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.nav-sidebar--v2 .ns-logo {
    height: 28px;
    width: auto;
}
.nav-sidebar--v2 .ns-logo.logo-dark { display: none; }
[data-theme="dark"] .nav-sidebar--v2 .ns-logo.logo-default { display: none; }
[data-theme="dark"] .nav-sidebar--v2 .ns-logo.logo-dark    { display: inline; }

.nav-sidebar--v2 .ns-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-sidebar--v2 .ns-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-color: var(--accent);
}

.nav-sidebar--v2 .ns-switch-admin {
    margin: 12px 18px 0;
    padding: 9px 14px;
    border: none;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.nav-sidebar--v2 .ns-switch-admin:hover {
    background: rgba(216, 90, 48, 0.18);
}

.nav-sidebar--v2 .ns-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 24px;
    scrollbar-width: thin;
}

/* Profile card */
.nav-sidebar--v2 .ns-profile-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.nav-sidebar--v2 .ns-profile-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--text-primary);
}
[data-theme="dark"] .nav-sidebar--v2 .ns-profile-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.nav-sidebar--v2 .ns-profile-avatar {
    flex: 0 0 auto;
    position: relative;
}
.nav-sidebar--v2 .ns-profile-avatar .nav-profile-pic-small,
.nav-sidebar--v2 .ns-profile-avatar .skeleton-xlarge {
    width: 64px;
    height: 64px;
    font-size: 28px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 1px var(--border);
}

.nav-sidebar--v2 .ns-profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-sidebar--v2 .ns-profile-fullname {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-sidebar--v2 .ns-profile-username {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-sidebar--v2 .ns-profile-cta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.nav-sidebar--v2 .ns-profile-role {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-sage);
    background: rgba(110, 139, 116, 0.14);
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
}

/* Sections */
.nav-sidebar--v2 .ns-section {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-sidebar--v2 .ns-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0 12px 8px;
}

/* Links */
.nav-sidebar--v2 .ns-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s, transform 0.12s;
}
.nav-sidebar--v2 .ns-link:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
    text-decoration: none;
}
.nav-sidebar--v2 .ns-link:active {
    transform: scale(0.98);
}

.nav-sidebar--v2 .ns-link-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    stroke-width: 2;
}
.nav-sidebar--v2 .ns-link:hover .ns-link-icon {
    color: var(--accent);
}

.nav-sidebar--v2 .ns-link-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-sidebar--v2 .ns-link-arrow {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s, transform 0.15s;
}
.nav-sidebar--v2 .ns-link:hover .ns-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.nav-sidebar--v2 .ns-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Admin link - distinct treatment */
.nav-sidebar--v2 .ns-link--admin {
    background: linear-gradient(135deg, rgba(110, 139, 116, 0.12) 0%, rgba(110, 139, 116, 0.05) 100%);
    border: 1px solid rgba(110, 139, 116, 0.25);
    color: var(--accent-sage);
    font-weight: 600;
}
.nav-sidebar--v2 .ns-link--admin:hover {
    background: rgba(110, 139, 116, 0.18);
    border-color: var(--accent-sage);
    color: var(--accent-sage);
}
.nav-sidebar--v2 .ns-link--admin .ns-link-icon {
    color: var(--accent-sage);
}
.nav-sidebar--v2 .ns-link--admin:hover .ns-link-icon {
    color: var(--accent-sage);
}
.nav-sidebar--v2 .ns-link--admin .ns-link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-sage);
}

/* Support section - smaller, muted */
.nav-sidebar--v2 .ns-section--support {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}
.nav-sidebar--v2 .ns-link--muted {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
}
.nav-sidebar--v2 .ns-link--muted .ns-link-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

/* Auth (logged-out state) */
.nav-sidebar--v2 .ns-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-sidebar--v2 .ns-auth-blurb {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-subtle);
    margin-bottom: 6px;
}
.nav-sidebar--v2 .ns-auth-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.nav-sidebar--v2 .ns-auth-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.nav-sidebar--v2 .ns-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    border: 1px solid transparent;
}
.nav-sidebar--v2 .ns-btn:active {
    transform: scale(0.98);
}
.nav-sidebar--v2 .ns-btn--primary {
    background: var(--accent);
    color: #fff;
}
.nav-sidebar--v2 .ns-btn--primary:hover {
    background: var(--accent-hover);
}
.nav-sidebar--v2 .ns-btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.nav-sidebar--v2 .ns-btn--ghost:hover {
    background: var(--bg-muted);
    border-color: var(--text-secondary);
}

/* Footer (logout) */
.nav-sidebar--v2 .ns-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-page);
}
.nav-sidebar--v2 .ns-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-sidebar--v2 .ns-logout:hover {
    background: rgba(192, 57, 43, 0.08);
    border-color: rgba(192, 57, 43, 0.4);
    color: #c0392b;
}
.nav-sidebar--v2 .ns-logout-icon {
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .nav-sidebar--v2 .ns-logout {
    color: #f87171;
}
[data-theme="dark"] .nav-sidebar--v2 .ns-logout:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

/* ── Legacy sidebar styles below (only used if .nav-sidebar--v2 absent) ── */
[data-theme="dark"] .sidebar-links,
[data-theme="dark"] .sidebar-links-admin {
    color: #f1f5f9;
}
[data-theme="dark"] .sidebar-logout-link {
    color: #f87171;
}
[data-theme="dark"] .sidebar-logout-link:hover {
    color: #fca5a5;
}
[data-theme="dark"] .sidebar-links-wrapper:hover .sidebar-links,
[data-theme="dark"] .sidebar-links-wrapper:hover .sidebar-links-admin {
    color: #ffffff;
}
[data-theme="dark"] .nav-sidebar .dropdown-divider {
    border-color: var(--border);
}
[data-theme="dark"] .button-login-sidebar {
    color: #cbd5e1 !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}
[data-theme="dark"] .button-login-sidebar:hover {
    background-color: #ff4a00 !important;
    border-color: #ff4a00 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .button-signup-sidebar {
    color: #ffffff !important;
}

.navbar-brand {
    display: flex;
    align-items: flex-end;
    margin-right: 0;
}

.nav-bar .dropdown-item.nav-dropdown-admin {
    color: #007D47 !important;
    line-height: 24px !important;
    font-weight: 900 !important;
}

.nav-bar .dropdown-item.nav-dropdown-logout {
    color: #c0392b !important;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

/* Light mode (default) */
.ft-root {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    width: 100%;
    margin-top: 96px;
}

.ft-logo-dark  { display: none; }

.ft-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Brand column */
.ft-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ft-logo-link {
    display: inline-block;
    line-height: 0;
}

.ft-logo {
    height: 30px;
    width: 140px;
}

.ft-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    max-width: 250px;
}

.ft-socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.ft-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.ft-social-btn:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
    border-color: var(--border);
}

.ft-social-btn svg {
    width: 16px;
    height: 16px;
}

/* Shared column */
.ft-col {
    display: flex;
    flex-direction: column;
}

.ft-col-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 18px;
}

/* Newsletter column */
.ft-newsletter-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.ft-form {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 360px;
}

.ft-email-input {
    flex: 1;
    min-width: 0;
    background: var(--bg-primary);
    border: none;
    color: var(--text-primary);
    padding: 11px 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: background 0.2s;
}

.ft-email-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.ft-email-input:focus {
    background: var(--bg-secondary);
}

.ft-submit-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ft-submit-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.ft-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ft-submit-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ft-spin 0.7s linear infinite;
    display: inline-block;
}

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

.ft-subscribed-msg {
    background: var(--accent-light);
    border: 1px solid rgba(216, 90, 48, 0.25);
    color: var(--accent);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin: 0;
    max-width: 360px;
}

/* Bottom bar */
.ft-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ft-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.ft-legal {
    display: flex;
    gap: 24px;
}

.ft-legal-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ft-legal-link:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

/* "Cookie Settings" is a <button> (re-opens the consent panel) styled to sit
   inline with the legal links — strip the native button chrome. */
.ft-legal-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* ── Footer — Dark mode ──────────────────────────────────────────────────── */

[data-theme="dark"] .ft-root {
    background: var(--bg-secondary);
    border-top-color: var(--border);
}

[data-theme="dark"] .ft-logo-default { display: none; }
[data-theme="dark"] .ft-logo-dark    { display: block; }

[data-theme="dark"] .ft-tagline      { color: var(--text-secondary); }
[data-theme="dark"] .ft-col-heading  { color: var(--text-muted); }

[data-theme="dark"] .ft-newsletter-desc { color: var(--text-secondary); }

[data-theme="dark"] .ft-social-btn {
    background: var(--bg-muted);
    border-color: var(--border);
    color: var(--text-muted);
}
[data-theme="dark"] .ft-social-btn:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
    border-color: var(--border);
}

[data-theme="dark"] .ft-form          { border-color: var(--border); }
[data-theme="dark"] .ft-email-input   { background: var(--bg-muted); color: var(--text-primary); }
[data-theme="dark"] .ft-email-input::placeholder { color: var(--text-muted); }
[data-theme="dark"] .ft-email-input:focus        { background: var(--bg-secondary); }

[data-theme="dark"] .ft-subscribed-msg {
    background: var(--accent-light);
    border-color: rgba(224, 101, 53, 0.3);
    color: var(--accent);
}

[data-theme="dark"] .ft-bottom        { border-top-color: var(--border); }
[data-theme="dark"] .ft-copy          { color: var(--text-muted); }
[data-theme="dark"] .ft-legal-link    { color: var(--text-muted); }
[data-theme="dark"] .ft-legal-link:hover { color: var(--text-secondary); }

/* ── Footer — Mobile ─────────────────────────────────────────────────────────
   The desktop footer is a 2-up grid with an 80px gutter + 40px side padding.
   On a phone that crushed both columns to ~100px each — the newsletter heading
   and email input ran off the right edge and the bottom bar's copy + 3 legal
   links collided. Collapse to a single column and let everything use full width. */
@media (max-width: 767px) {
    .ft-root { margin-top: 56px; }

    .ft-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 22px 8px;
    }

    .ft-tagline { max-width: 100%; }

    /* Form + confirmation fill the column instead of being clipped at 360px. */
    .ft-form,
    .ft-subscribed-msg { max-width: 100%; }

    .ft-col-heading    { margin-bottom: 12px; }
    .ft-newsletter-desc { margin-bottom: 16px; max-width: 100%; }

    /* Stack copyright above the legal links; let the links wrap if needed. */
    .ft-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 22px;
    }

    .ft-legal {
        flex-wrap: wrap;
        gap: 10px 20px;
    }
}

/* The old navbar Feedback CTA (.nav-feedback) is gone — the floating
   bottom-right .bh-feedback pill (stylingScope.css) replaced it. */

/* ── Dark Mode Toggle ──────────────────────────────────────────────────────── */

.dark-toggle {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    /* font-size: 15px; */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    margin-right: 8px;
    color: #374151;
    /* line-height: 1; */
}

.dark-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

[data-theme="dark"] .dark-toggle {
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .dark-toggle:hover {
    background: var(--bg-muted);
    border-color: var(--border);
}

/* Signup page toggle — fixed top-right since navbar is hidden */
.signup-dark-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 100;
}

/* ── Dark Mode — Navbar ────────────────────────────────────────────────────── */

[data-theme="dark"] .nav-bar {
    background-color: var(--bg-secondary) !important;
    border-bottom-color: var(--border) !important;
}

[data-theme="dark"] .nav-bar-start a {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-bar-start a:hover,
[data-theme="dark"] .nav-bar-start a:active {
    color: var(--text-primary);
    background-color: var(--bg-muted);
}

[data-theme="dark"] .nav-bar-start-item.active-nav-item {
    color: var(--text-primary);
    background-color: var(--bg-muted);
}

[data-theme="dark"] .nav-bar .dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="dark"] .nav-bar .dropdown-item {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .nav-bar .dropdown-item:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary) !important;
}

[data-theme="dark"] .nav-bar .dropdown-item.navbar-settings {
    color: #818cf8 !important;
}

[data-theme="dark"] .nav-bar .dropdown-item.nav-dropdown-admin {
    color: #34d399 !important;
}

[data-theme="dark"] .nav-bar .dropdown-item.nav-dropdown-logout {
    color: #f87171 !important;
}

[data-theme="dark"] .nav-dropdown-username {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .nav-dropdown-email {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .nav-dropdown-divider {
    border-color: var(--border);
}

/* Footer is always dark — no theme overrides needed */

/* ── End Dark Mode — Navbar & Footer ───────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────
   Desktop User Dropdown — v2 redesign
   Scoped via .nav-dd-v2 (added to NavDropdown root <div>)
   ───────────────────────────────────────────────────────────────────────── */
.nav-bar .nav-dd-v2 .dropdown-menu {
    min-width: 280px;
    width: 280px !important;
    padding: 8px;
    /* margin-top: 8px; */
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    animation: nav-dd-fade 0.16s ease;
}

@keyframes nav-dd-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] .nav-bar .nav-dd-v2 .dropdown-menu {
    background: var(--bg-secondary);
    border-color: var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Header */
.nav-dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-dd-avatar {
    flex: 0 0 auto;
}
.nav-dd-avatar .nav-profile-pic-large,
.nav-dd-avatar .skeleton-large {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border: 1px solid var(--border);
}

.nav-dd-user {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-dd-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-dd-email {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sections */
.nav-dd-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 0;
}
.nav-dd-section + .nav-dd-section {
    margin-top: 2px;
}
.nav-dd-section--support {
    margin-top: 6px !important;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.nav-dd-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 4px 12px 6px;
}

/* Items — override Bootstrap .dropdown-item defaults */
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 9px 12px !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary) !important;
    background: transparent;
    transition: background 0.12s, color 0.12s, transform 0.12s;
    white-space: nowrap;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item:hover,
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item:focus {
    background: var(--bg-muted) !important;
    color: var(--text-primary) !important;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item:active {
    background: var(--accent-light) !important;
    color: var(--text-primary) !important;
    transform: scale(0.99);
}

.nav-dd-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--text-secondary);
    stroke-width: 2;
    transition: color 0.12s;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item:hover .nav-dd-icon {
    color: var(--accent);
}

.nav-dd-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dd-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Admin item */
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--admin {
    background: linear-gradient(135deg, rgba(110, 139, 116, 0.12) 0%, rgba(110, 139, 116, 0.05) 100%) !important;
    border: 1px solid rgba(110, 139, 116, 0.25);
    color: var(--accent-sage) !important;
    font-weight: 600;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--admin:hover,
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--admin:focus {
    background: rgba(110, 139, 116, 0.18) !important;
    border-color: var(--accent-sage);
    color: var(--accent-sage) !important;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--admin .nav-dd-icon,
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--admin:hover .nav-dd-icon {
    color: var(--accent-sage);
}

/* Muted items (Contact Us, etc.) */
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--muted {
    color: var(--text-secondary) !important;
    font-weight: 500;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--muted:hover {
    color: var(--text-primary) !important;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--muted .nav-dd-icon {
    color: var(--text-muted);
}

/* Logout item */
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout {
    color: #c0392b !important;
    font-weight: 500;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout:hover {
    background: rgba(192, 57, 43, 0.08) !important;
    color: #c0392b !important;
}
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout .nav-dd-icon,
.nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout:hover .nav-dd-icon {
    color: #c0392b;
}

[data-theme="dark"] .nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout {
    color: #f87171 !important;
}
[data-theme="dark"] .nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout:hover {
    background: rgba(248, 113, 113, 0.1) !important;
    color: #fca5a5 !important;
}
[data-theme="dark"] .nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout .nav-dd-icon,
[data-theme="dark"] .nav-bar .nav-dd-v2 .dropdown-item.nav-dd-item--logout:hover .nav-dd-icon {
    color: #f87171;
}
