/* BinaryVetex Modern Fintech Design System
 * Clean, Flat, High-Trust Cryptocurrency Brokerage UI
 * Light Mode Default | Dark Mode Toggle | Tabular Figures
 */

/* Universal Fintech Tokens */
:root {
    --accent-primary: #0052fe;
    --accent-primary-hover: #0045d8;
    --accent-primary-subtle: rgba(0, 82, 254, 0.08);
    --accent-green: #16a34a;
    --accent-green-hover: #15803d;
    --accent-green-subtle: rgba(22, 163, 74, 0.1);
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --accent-red-subtle: rgba(220, 38, 38, 0.1);
    --accent-amber: #d97706;
    --accent-amber-subtle: rgba(217, 119, 6, 0.1);
    --accent-cyan: #0284c7;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* Light Theme Variables (Default) */
:root, [data-bs-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-subtle: #f1f5f9;
    --bg-subtle-accent: #e2e8f0;
    --bg-input: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --border-focus: #0052fe;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --navbar-bg: rgba(255, 255, 255, 0.96);
    --footer-bg: #05080f;
    --footer-main-bg: #0c1220;
    --footer-bottom-bg: #05080f;
    --text-gradient-start: #0f172a;
    --text-gradient-end: #334155;
    --hero-tag-bg: rgba(0, 82, 254, 0.08);
    --hero-tag-border: rgba(0, 82, 254, 0.2);
    --hero-tag-text: #0052fe;
    --table-header-bg: #f8fafc;
    --table-hover-bg: #f1f5f9;
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
    --bg-main: #0b0e14;
    --bg-card: #121722;
    --bg-card-hover: #171f2d;
    --bg-subtle: #171d2b;
    --bg-subtle-accent: #1e2638;
    --bg-input: #0d121c;
    --border-color: #1e2638;
    --border-light: #2c3852;
    --border-focus: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --navbar-bg: rgba(11, 14, 20, 0.96);
    --footer-bg: #05080f;
    --footer-main-bg: #0c1220;
    --footer-bottom-bg: #05080f;
    --text-gradient-start: #ffffff;
    --text-gradient-end: #94a3b8;
    --hero-tag-bg: rgba(59, 130, 246, 0.12);
    --hero-tag-border: rgba(59, 130, 246, 0.25);
    --hero-tag-text: #60a5fa;
    --table-header-bg: #0e121a;
    --table-hover-bg: rgba(255, 255, 255, 0.03);
}

/* Zero Muddy Box-Shadows Across Entire Interface */
*, *::before, *::after,
.card, .card-glow, .bg-theme-card, .stat-widget, .btn, .btn-primary-glow,
.dropdown-menu, .modal-content, .brand-icon, .coin-icon-badge,
.form-control, .form-control-custom, .alert, .badge {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Base Document Typography */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    font-size: 0.95rem;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s ease, color 0.2s ease;
}

main {
    flex: 1 0 auto;
}

footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-subtle);
    margin-top: auto;
}

/* Tabular numbers for financial balances, coins, prices, percentages */
.tabular-nums, .stat-value, .table-dark-custom td, .order-book-row, .ticker-pill {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Typography Scale */
h1, .h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--text-primary); }
h2, .h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--text-primary); }
h3, .h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--text-primary); }
h4, .h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
h5, .h5 { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
h6, .h6 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* Semantic Text Colors */
.text-main { color: var(--text-primary) !important; }
.text-sub { color: var(--text-secondary) !important; }
.text-dim { color: var(--text-muted) !important; }

/* Custom Surfaces */
.bg-surface {
    background-color: var(--bg-card) !important;
}
.bg-subtle-box {
    background-color: var(--bg-subtle) !important;
}

/* Clean Cards */
.bg-theme-card, .card-glow {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.bg-theme-card:hover, .card-glow:hover {
    border-color: var(--border-light);
}

/* Stat Widgets */
.stat-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: border-color 0.15s ease;
}
.stat-widget:hover {
    border-color: var(--border-light);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: block;
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Navbar */
.navbar-custom {
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
}
.brand-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}
.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-subtle);
}
.nav-link.active {
    color: var(--accent-primary) !important;
    font-weight: 600;
    background-color: var(--accent-primary-subtle);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    transition: all 0.15s ease-in-out;
}
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-primary-glow {
    background: var(--accent-primary) !important;
    border: 1px solid var(--accent-primary) !important;
    color: #ffffff !important;
}
.btn-primary-glow:hover {
    background: var(--accent-primary-hover) !important;
    border-color: var(--accent-primary-hover) !important;
    color: #ffffff !important;
}

.btn-outline-glow {
    background: transparent;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.btn-outline-glow:hover {
    border-color: var(--border-light) !important;
    background-color: var(--bg-subtle) !important;
    color: var(--text-primary) !important;
}
.btn-outline-glow.active,
.btn-outline-theme.active {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #ffffff !important;
}

.btn-success {
    background: var(--accent-green) !important;
    border: 1px solid var(--accent-green) !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background: var(--accent-green-hover) !important;
    border-color: var(--accent-green-hover) !important;
}

.btn-danger {
    background: var(--accent-red) !important;
    border: 1px solid var(--accent-red) !important;
    color: #ffffff !important;
}
.btn-danger:hover {
    background: var(--accent-red-hover) !important;
    border-color: var(--accent-red-hover) !important;
}

/* Theme Toggle Button */
.btn-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-theme-toggle:hover {
    border-color: var(--border-light);
    color: var(--accent-primary);
}

/* Form Controls */
.form-control-custom, .form-select.form-control-custom {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease;
}
.form-control-custom:focus, .form-select.form-control-custom:focus {
    background-color: var(--bg-input);
    border-color: var(--border-focus);
    color: var(--text-primary);
    outline: none;
}
.form-control-custom::placeholder {
    color: var(--text-muted);
}
.input-group-text {
    background-color: var(--bg-subtle) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

/* Financial Badges */
.badge-up {
    background-color: var(--accent-green-subtle) !important;
    color: var(--accent-green) !important;
    border: 1px solid rgba(22, 163, 74, 0.25) !important;
    font-weight: 600;
}
.badge-down {
    background-color: var(--accent-red-subtle) !important;
    color: var(--accent-red) !important;
    border: 1px solid rgba(220, 38, 38, 0.25) !important;
    font-weight: 600;
}
.badge-neutral {
    background-color: var(--bg-subtle) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    font-weight: 500;
}

/* Coin Badge & Logo */
.coin-icon-badge {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff !important;
    background-color: var(--accent-primary);
    flex-shrink: 0;
}
.crypto-coin-logo {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
}

/* Tables */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--table-hover-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.table-dark-custom th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.75rem;
    background-color: var(--table-header-bg);
}
.table-dark-custom td {
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
}

/* Tabs & Pills */
.nav-pills .nav-link {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm);
}
.nav-pills #buy-tab.active {
    background-color: var(--accent-green) !important;
    color: #ffffff !important;
}
.nav-pills #sell-tab.active {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
}

/* Order Book Depth Styling */
.order-book-row {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.order-book-row.ask {
    background-color: var(--accent-red-subtle);
}
.order-book-row.bid {
    background-color: var(--accent-green-subtle);
}
.order-book-row.flash-update {
    background-color: rgba(0, 82, 254, 0.16) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem !important;
}
.dropdown-item {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown-item:hover {
    background-color: var(--bg-subtle) !important;
    color: var(--text-primary) !important;
}
.dropdown-header {
    color: var(--text-muted) !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem 0.25rem;
}
.dropdown-divider {
    border-top: 1px solid var(--border-color) !important;
    margin: 0.4rem 0 !important;
}

/* Accordion */
.accordion-item {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.accordion-button {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
}
.accordion-button:not(.collapsed) {
    color: var(--accent-primary) !important;
    background-color: var(--bg-subtle) !important;
}
.accordion-body {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}
.alert-success {
    background-color: var(--accent-green-subtle) !important;
    border-color: rgba(22, 163, 74, 0.25) !important;
    color: var(--accent-green) !important;
}
.alert-danger {
    background-color: var(--accent-red-subtle) !important;
    border-color: rgba(220, 38, 38, 0.25) !important;
    color: var(--accent-red) !important;
}
.alert-warning {
    background-color: var(--accent-amber-subtle) !important;
    border-color: rgba(217, 119, 6, 0.25) !important;
    color: var(--accent-amber) !important;
}
.alert-info {
    background-color: var(--accent-primary-subtle) !important;
    border-color: rgba(0, 82, 254, 0.25) !important;
    color: var(--accent-primary) !important;
}

/* Footer */
footer {
    margin-top: auto;
}
.footer-main {
    background-color: var(--footer-main-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-main .text-main {
    color: #ffffff !important;
}
.footer-main .text-sub,
.footer-main p {
    color: #94a3b8 !important;
}
.footer-main h6 {
    color: #64748b !important;
    letter-spacing: 0.05em;
}
.footer-main a.text-sub {
    color: #94a3b8 !important;
    transition: color 0.15s ease;
}
.footer-main a.text-sub:hover {
    color: #ffffff !important;
}
.footer-bottom {
    background-color: var(--footer-bottom-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-bottom .text-dim,
.footer-bottom div,
.footer-bottom span {
    color: #64748b !important;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1.25rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    body { font-size: 0.9rem; }
    h1, .h1 { font-size: 1.85rem; }
    h2, .h2 { font-size: 1.5rem; }
    .stat-widget { padding: 1rem; }
    .stat-value { font-size: 1.35rem; }
    .table-dark-custom th, .table-dark-custom td { padding: 0.75rem 0.5rem; font-size: 0.85rem; }
}

@media (max-width: 575.98px) {
    h1, .h1 { font-size: 1.65rem; }
    .btn-responsive-full { width: 100%; margin-bottom: 0.5rem; }
}

/* Infinite Scrolling Marquee */
.ticker-bar {
    position: relative;
    user-select: none;
}
.ticker-label {
    position: relative;
    background-color: var(--bg-subtle-box);
}
.ticker-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
}
.ticker-marquee-track {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: ticker-marquee 32s linear infinite;
    will-change: transform;
}
.ticker-marquee-wrapper:hover .ticker-marquee-track {
    animation-play-state: paused;
}
.ticker-marquee-group {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding-left: 2.25rem;
    flex-shrink: 0;
}
.ticker-item {
    transition: opacity 0.15s ease;
}
.ticker-item:hover {
    opacity: 0.8;
}
@keyframes ticker-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-marquee-track {
        animation: none;
        overflow-x: auto;
    }
}

/* Beautiful How It Works Workflow Container Card */
.workflow-card-container {
    background: linear-gradient(145deg, #eaf0f8 0%, #edf2f9 100%);
    border: 1px solid #d8e2ee;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .workflow-card-container {
    background: linear-gradient(145deg, #131926 0%, #0f1521 100%);
    border: 1px solid #222d42;
}

.workflow-step-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .workflow-step-card {
    background: #161e2e;
    border: 1px solid #26334a;
}

.workflow-step-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary) !important;
}

/* Split Card with Image Panel (Login / Register / Deposit / Withdraw / Portfolio) */
.split-card { border-radius: var(--radius-lg); }
.media-panel {
    position: relative;
    height: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.media-panel-compact {
    min-height: 240px;
}
.media-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.08) 20%, rgba(8, 12, 22, 0.90) 100%);
}
.media-panel-content {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2rem;
    width: 100%;
}
.media-panel-text { color: rgba(255, 255, 255, 0.78); line-height: 1.6; }

@media (max-width: 991.98px) {
    .media-panel {
        min-height: 230px;
    }
    .media-panel-compact {
        min-height: 200px;
    }
    .media-panel-content {
        padding: 1.25rem 1.5rem;
    }
}

/* Step Card Image Header (How It Works & Feature Cards) */
.step-card-img-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 135px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}
.step-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.workflow-step-card:hover .step-card-img-wrap img,
.stat-widget:hover .step-card-img-wrap img {
    transform: scale(1.04);
}
.step-card-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.02) 40%, rgba(8, 12, 22, 0.55) 100%);
    pointer-events: none;
}

/* Live Market Tick Flash Transitions */
.price-flash-up {
    color: var(--accent-green) !important;
    background-color: rgba(22, 163, 74, 0.14);
    border-radius: 4px;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.price-flash-down {
    color: var(--accent-red) !important;
    background-color: rgba(220, 38, 38, 0.14);
    border-radius: 4px;
    transition: color 0.25s ease, background-color 0.25s ease;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.live-pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-green);
    animation: pulse-dot 1.8s infinite ease-in-out;
}

/* Account / Profile Menu */
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.user-avatar-lg {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}
.min-w-0 { min-width: 0; }
.user-menu-toggle { max-width: 240px; }

.user-menu-panel {
    width: 300px;
    padding: 0;
    margin-top: 0.5rem !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
}
.user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}
.user-menu-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}
.user-menu-section {
    padding: 0.4rem;
}
.user-menu-panel .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.user-menu-panel .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
}
.user-menu-panel .dropdown-item:hover,
.user-menu-panel .dropdown-item:focus {
    background: var(--bg-subtle);
    color: var(--text-primary);
}
.user-menu-panel .dropdown-item.text-danger,
.user-menu-panel .dropdown-item.text-danger i {
    color: var(--accent-red) !important;
}
.user-menu-panel .dropdown-item.text-danger:hover {
    background: var(--accent-red-subtle);
}

/* Small screens: render the account menu as a full-width inline card inside the collapsed nav */
@media (max-width: 991.98px) {
    .navbar-actions {
        border-top: 1px solid var(--border-color);
        padding-top: 0.85rem;
    }
    .navbar-actions .user-menu {
        width: 100%;
    }
    .navbar-actions .user-menu-toggle {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        padding: 0.55rem 0.75rem !important;
        border-radius: var(--radius-md);
    }
    .navbar-actions .user-menu-toggle::after {
        margin-left: auto;
    }
    .navbar-actions .user-menu-panel {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        width: 100%;
        margin-top: 0.6rem !important;
        float: none;
    }
}
