/**
 * Raab & Moskowitz Vault Pro - Master Unified Stylesheet
 * Obsidian Dark & Metallic Gold Institutional Design System
 */

:root {
    --rm-bg: #0b0e11;
    --rm-bg-surface: #0f131a;
    --rm-card: #141923;
    --rm-card-alt: #1a2130;
    --rm-border: rgba(255, 255, 255, 0.08);
    --rm-border-gold: rgba(240, 185, 11, 0.25);
    --rm-gold: #f0b90b;
    --rm-gold-light: #fcd535;
    --rm-gold-gradient: linear-gradient(135deg, #FFF2A8 0%, #F0B90B 50%, #C49000 100%);
    --rm-text: #ffffff;
    --rm-text-mut: #94a3b8;
    --rm-profit: #0ecb81;
    --rm-loss: #f6465d;
    --rm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rm-font-display: 'Outfit', 'Inter', sans-serif;
    --rm-font-mono: 'JetBrains Mono', monospace;

    /* Legacy and Cross-Plugin Harmonization Tokens */
    --bg-deep: var(--rm-bg);
    --bg-glass: var(--rm-card);
    --bg-glass-hover: var(--rm-card-alt);
    --glass-border: var(--rm-border);
    --text-main: var(--rm-text);
    --text-muted: var(--rm-text-mut);
    --accent-primary: var(--rm-gold);
    --accent-secondary: var(--rm-gold-light);
    --profit-neon: var(--rm-profit);
    --loss-neon: var(--rm-loss);
    --cth-bg-main: var(--rm-bg);
    --cth-card-bg: var(--rm-card);
    --cth-card-border: var(--rm-border);
    --cth-yellow: var(--rm-gold);
    --cth-grad-gold: var(--rm-gold-gradient);
    --cth-text-primary: var(--rm-text);
    --cth-text-secondary: var(--rm-text-mut);
    --cth-green: var(--rm-profit);
    --cth-red: var(--rm-loss);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--rm-bg);
    color: var(--rm-text);
    font-family: var(--rm-font);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. Brand Preloader & Page Transition Overlay
   ========================================================================== */
.rm-page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    background: rgba(11, 14, 17, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.rm-page-transition.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.rm-page-transition.rm-transition-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.rm-transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rm-transition-emblem-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-transition-svg {
    width: 76px;
    height: 76px;
    animation: rmSubtleBreathe 2s ease-in-out infinite;
}

.rm-transition-glow-ring {
    position: absolute;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 185, 11, 0.25) 0%, rgba(240, 185, 11, 0.05) 60%, transparent 75%);
    animation: rmRingGlow 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.rm-transition-caption {
    margin-top: 15px;
    font-family: var(--rm-font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    color: rgba(240, 185, 11, 0.75);
    text-transform: uppercase;
}

@keyframes rmSubtleBreathe {
    0% { opacity: 0.48; transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.2)); }
    50% { opacity: 0.88; transform: scale(1.02); filter: drop-shadow(0 0 26px rgba(240, 185, 11, 0.48)); }
    100% { opacity: 0.48; transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.2)); }
}

@keyframes rmRingGlow {
    0% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.85; transform: scale(1.12); }
    100% { opacity: 0.3; transform: scale(0.9); }
}

/* --- Dedicated Neural OS Preloader (Arbitrage Bot & Trading Bot) --- */
.rm-neural-loader-content {
    text-align: center;
    max-width: 440px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--rm-font-mono, 'JetBrains Mono', monospace);
    z-index: 10;
}

.rm-neural-loader-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border: 2px solid var(--rm-gold, #f0b90b);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 16px rgba(240, 185, 11, 0.35);
    animation: rmNeuralPulseBorder 2s infinite;
}

.rm-neural-loader-logo::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid transparent;
    border-top-color: var(--rm-gold, #f0b90b);
    border-right-color: var(--rm-gold-light, #fcd535);
    border-radius: 50%;
    animation: rmNeuralSpin 0.9s linear infinite;
}

.rm-neural-loader-title {
    color: #ffffff;
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin: 0 0 10px;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--rm-font-display, 'Outfit', sans-serif);
}

.rm-neural-loader-version {
    font-size: 0.85rem;
    color: var(--rm-gold, #f0b90b);
    vertical-align: super;
    font-weight: 700;
    margin-left: 3px;
    background: rgba(240, 185, 11, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.rm-neural-loader-status {
    color: var(--rm-gold, #f0b90b);
    font-family: var(--rm-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    min-height: 1.2rem;
    animation: rmNeuralPulseOp 1.4s infinite;
}

.rm-neural-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rm-neural-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F0B90B, #FFF2A8);
    box-shadow: 0 0 14px #f0b90b;
    transition: width 0.25s ease-in-out;
    border-radius: 4px;
}

@keyframes rmNeuralSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rmNeuralPulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(240, 185, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0); }
}

@keyframes rmNeuralPulseOp {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ==========================================================================
   2. Public Pages Styling
   ========================================================================== */
.rm-public-wrapper {
    background-color: var(--rm-bg);
    min-height: 100vh;
}

.rm-pub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rm-container-narrow {
    max-width: 860px;
}

/* Ticker Ribbon */
.rm-ticker-ribbon {
    background: #07090c;
    border-bottom: 1px solid var(--rm-border);
    overflow: hidden;
    padding: 8px 0;
}

.rm-ticker-track {
    display: flex;
    gap: 35px;
    white-space: nowrap;
    animation: rmTickerScroll 35s linear infinite;
}

.rm-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.rm-ticker-sym { color: #fff; font-weight: 700; }
.rm-ticker-val { color: #e2e8f0; }
.rm-ticker-chg.pos { color: #00c853; }
.rm-ticker-chg.neg { color: #f6465d; }

@keyframes rmTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Public Header */
.rm-pub-header {
    background: rgba(11, 14, 17, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rm-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.rm-pub-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rm-pub-links {
    display: flex;
    gap: 24px;
}

.rm-pub-links a {
    color: var(--rm-text-mut);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.rm-pub-links a:hover, .rm-pub-links a.active {
    color: var(--rm-gold);
}

.rm-pub-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.rm-btn-gold {
    background: var(--rm-gold-gradient);
    color: #000;
    border: none;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.2s;
}

.rm-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.35);
}

.rm-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid var(--rm-border);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.rm-btn-ghost:hover {
    border-color: var(--rm-gold);
    background: rgba(240, 185, 11, 0.05);
}

.rm-btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.rm-btn-sm { padding: 6px 14px; font-size: 0.75rem; }

.rm-btn-text {
    background: none;
    border: none;
    color: var(--rm-gold);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

/* Hero */
.rm-pub-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(240, 185, 11, 0.08) 0%, transparent 60%);
}

.rm-pub-hero-sm { padding: 50px 0 35px; }

.rm-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rm-gold);
    margin-bottom: 20px;
}

.rm-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rm-gold);
    box-shadow: 0 0 8px var(--rm-gold);
}

.rm-hero-title {
    font-family: var(--rm-font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    margin: 0 auto 16px;
    max-width: 860px;
    line-height: 1.15;
}

.rm-gold-gradient {
    background: var(--rm-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rm-hero-desc {
    color: var(--rm-text-mut);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 30px;
}

.rm-hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.rm-hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.rm-metric-card {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    padding: 22px;
    border-radius: 12px;
}

.rm-metric-val {
    font-family: var(--rm-font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.rm-metric-lbl {
    font-size: 0.78rem;
    color: var(--rm-text-mut);
    font-weight: 600;
}

/* Section Common */
.rm-pub-section { padding: 60px 0; }
.rm-bg-darker { background: #07090c; }

.rm-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.rm-sub-title {
    color: var(--rm-gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.rm-section-title {
    font-family: var(--rm-font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
}

.rm-section-desc {
    color: var(--rm-text-mut);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Features Grid */
.rm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.rm-feat-card {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: 14px;
    padding: 30px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.rm-feat-card:hover {
    transform: translateY(-4px);
    border-color: var(--rm-border-gold);
}

.rm-feat-icon { font-size: 2rem; margin-bottom: 15px; }
.rm-feat-title { font-size: 1.15rem; color: #fff; margin: 0 0 10px; font-weight: 700; }
.rm-feat-desc { font-size: 0.85rem; color: var(--rm-text-mut); line-height: 1.6; margin: 0 0 18px; }
.rm-feat-link { color: var(--rm-gold); text-decoration: none; font-weight: 700; font-size: 0.85rem; }

/* Market Table */
.rm-market-table-wrap {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: 12px;
    overflow-x: auto;
}

.rm-market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.rm-market-table th {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--rm-text-mut);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rm-border);
}

.rm-market-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rm-border);
    color: #fff;
}

.rm-coin-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(240, 185, 11, 0.15);
    color: var(--rm-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
}

.rm-badge-live {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* FAQ Accordion */
.rm-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-faq-item {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: 10px;
    overflow: hidden;
}

.rm-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.rm-faq-answer {
    display: none;
    padding: 0 22px 18px;
    color: var(--rm-text-mut);
    font-size: 0.88rem;
    line-height: 1.6;
}

.rm-faq-item.active .rm-faq-answer { display: block; }
.rm-faq-item.active .rm-faq-question { color: var(--rm-gold); }
.rm-faq-item.active .rm-faq-icon { transform: rotate(45deg); }

/* Public Footer */
.rm-pub-footer {
    background: #07090c;
    border-top: 1px solid var(--rm-border);
    padding: 60px 0 40px;
}

.rm-pub-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
}

.rm-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-footer-list li { margin-bottom: 10px; }

.rm-footer-list a {
    color: var(--rm-text-mut);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* ==========================================================================
   3. Auth Pages Styling (Login & Register)
   ========================================================================== */
.rm-auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 20%, rgba(240, 185, 11, 0.06) 0%, #0b0e11 75%);
}

.rm-auth-card {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.rm-auth-header { text-align: center; margin-bottom: 25px; }
.rm-auth-title { font-family: var(--rm-font-display); font-size: 1.4rem; color: #fff; margin: 0 0 6px; }
.rm-auth-sub { font-size: 0.85rem; color: var(--rm-text-mut); margin: 0; }

.rm-auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--rm-border);
    font-size: 0.82rem;
    color: var(--rm-text-mut);
}

/* ==========================================================================
   4. Master Vault Dashboard Workspace
   ========================================================================== */
/* ==========================================================================
   4. Master Vault Dashboard Workspace & Layout Normalizer
   ========================================================================== */
.rm-vault-app {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: var(--rm-bg, #0b0e11) !important;
    overflow-x: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Sidebar */
.rm-vault-sidebar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    background: #090c10 !important;
    border-right: 1px solid var(--rm-border, rgba(255,255,255,0.08)) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 999 !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

/* Sidebar Header */
.rm-sidebar-header {
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--rm-border, rgba(255,255,255,0.08)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    box-sizing: border-box !important;
}

.rm-brand-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.rm-brand-emblem {
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.rm-brand-text {
    display: flex !important;
    flex-direction: column !important;
    white-space: nowrap !important;
}

.rm-brand-name {
    font-family: var(--rm-font-display, 'Outfit', sans-serif) !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    display: block !important;
    letter-spacing: -0.2px !important;
}

.rm-brand-badge {
    font-size: 0.62rem !important;
    color: var(--rm-gold, #f0b90b) !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
}

/* Sidebar Toggle Button */
.rm-sidebar-toggle-btn {
    background: #f0b90b !important;
    color: #000 !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(240, 185, 11, 0.35) !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
    flex-shrink: 0 !important;
}
.rm-sidebar-toggle-btn:hover {
    background: #fcd535 !important;
    transform: scale(1.05) !important;
}

/* UserShell User Card in Sidebar */
.rm-sidebar-user-card {
    padding: 16px !important;
    margin: 12px 10px !important;
    background: rgba(20, 25, 35, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.rm-sidebar-user-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2a3342 0%, #151a23 100%) !important;
    border: 2px solid var(--rm-gold, #f0b90b) !important;
    color: var(--rm-gold, #f0b90b) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
}

.rm-sidebar-balance-info {
    width: 100% !important;
    margin-bottom: 8px !important;
}

.rm-sidebar-balance-label {
    font-size: 0.72rem !important;
    color: var(--rm-text-mut, #8c96a5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.rm-balance-toggle-btn {
    background: none !important;
    border: none !important;
    color: var(--rm-gold, #f0b90b) !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

.rm-sidebar-balance-amount {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-family: var(--rm-font-display, 'Outfit', sans-serif) !important;
    letter-spacing: -0.3px !important;
    margin-top: 2px !important;
}

.rm-sidebar-user-name {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #eaecef !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    margin-bottom: 4px !important;
}

.rm-sidebar-vip-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(240, 185, 11, 0.12) !important;
    border: 1px solid rgba(240, 185, 11, 0.3) !important;
    color: var(--rm-gold, #f0b90b) !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
}

.rm-sidebar-user-actions {
    display: flex !important;
    width: 100% !important;
    gap: 8px !important;
}

.rm-sidebar-action-btn {
    flex: 1 !important;
    padding: 7px 0 !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.rm-sidebar-action-btn.rm-btn-dep {
    background: var(--rm-gold, #f0b90b) !important;
    color: #000 !important;
}
.rm-sidebar-action-btn.rm-btn-dep:hover {
    background: #fcd535 !important;
}

.rm-sidebar-action-btn.rm-btn-wth {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.rm-sidebar-action-btn.rm-btn-wth:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

/* Categorized Navigation */
.rm-sidebar-nav {
    padding: 6px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.rm-nav-section-title {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    color: rgba(148, 163, 184, 0.6) !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 10px 10px 4px 10px !important;
    user-select: none !important;
}

.rm-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 9px 12px !important;
    color: var(--rm-text-mut, #8c96a5) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    position: relative !important;
    white-space: nowrap !important;
}

.rm-nav-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
}

.rm-nav-item.active {
    background: rgba(240, 185, 11, 0.12) !important;
    color: var(--rm-gold, #f0b90b) !important;
    font-weight: 700 !important;
}

.rm-nav-icon {
    font-size: 1rem !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.rm-nav-label {
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.rm-nav-tooltip {
    display: none !important;
}

/* Sidebar Footer & Online Status */
.rm-sidebar-footer {
    padding: 12px 14px !important;
    border-top: 1px solid var(--rm-border, rgba(255,255,255,0.08)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    box-sizing: border-box !important;
}

.rm-system-status {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    color: #00c853 !important;
    font-weight: 700 !important;
}

.rm-status-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #00c853 !important;
    box-shadow: 0 0 8px #00c853 !important;
    display: inline-block !important;
    animation: rmPulseDot 2s infinite !important;
}

@keyframes rmPulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 200, 83, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.rm-nav-logout {
    color: #f6465d !important;
}
.rm-nav-logout:hover {
    background: rgba(246, 70, 93, 0.1) !important;
    color: #ff6b81 !important;
}

.rm-nav-admin-exit {
    color: var(--rm-gold, #f0b90b) !important;
    background: rgba(240, 185, 11, 0.1) !important;
}

/* ==========================================================================
   Collapsed Sidebar State (.sidebar-collapsed)
   ========================================================================== */
.rm-vault-app.sidebar-collapsed .rm-vault-sidebar {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
}

.rm-vault-app.sidebar-collapsed .rm-brand-text,
.rm-vault-app.sidebar-collapsed .rm-sidebar-user-card .rm-sidebar-balance-info,
.rm-vault-app.sidebar-collapsed .rm-sidebar-user-card .rm-sidebar-user-name,
.rm-vault-app.sidebar-collapsed .rm-sidebar-user-card .rm-sidebar-vip-badge,
.rm-vault-app.sidebar-collapsed .rm-sidebar-user-card .rm-sidebar-user-actions,
.rm-vault-app.sidebar-collapsed .rm-nav-section-title,
.rm-vault-app.sidebar-collapsed .rm-nav-label,
.rm-vault-app.sidebar-collapsed .rm-system-status .rm-status-text {
    display: none !important;
}

.rm-vault-app.sidebar-collapsed .rm-sidebar-header {
    justify-content: center !important;
    padding: 16px 8px !important;
}

.rm-vault-app.sidebar-collapsed .rm-brand-link {
    display: none !important;
}

.rm-vault-app.sidebar-collapsed .rm-sidebar-user-card {
    padding: 10px 4px !important;
    margin: 8px 6px !important;
    background: transparent !important;
    border: none !important;
}

.rm-vault-app.sidebar-collapsed .rm-sidebar-user-avatar {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 0 !important;
}

.rm-vault-app.sidebar-collapsed .rm-nav-item {
    justify-content: center !important;
    padding: 12px !important;
    position: relative !important;
}

.rm-vault-app.sidebar-collapsed .rm-nav-icon {
    font-size: 1.15rem !important;
}

.rm-vault-app.sidebar-collapsed .rm-nav-item:hover .rm-nav-tooltip {
    display: block !important;
    position: absolute !important;
    left: calc(100% + 10px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #181a20 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    pointer-events: none !important;
}

.rm-vault-app.sidebar-collapsed .rm-system-status {
    justify-content: center !important;
    padding: 6px 0 !important;
}

/* ==========================================================================
   Main Workspace & Topbar: Strict Full-Width Block Normalizer
   ========================================================================== */
.rm-vault-main {
    flex: 1 1 auto !important;
    display: block !important;
    width: calc(100% - 260px) !important;
    max-width: calc(100% - 260px) !important;
    min-width: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rm-vault-app.sidebar-collapsed .rm-vault-main {
    width: calc(100% - 72px) !important;
    max-width: calc(100% - 72px) !important;
}

/* Workspace Top Bar Header */
.rm-vault-topbar {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 14px 28px !important;
    background: rgba(11, 14, 17, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--rm-border, rgba(255,255,255,0.08)) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
}

.rm-topbar-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.rm-mobile-menu-trigger {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    background: #f2a900 !important;
    border: 1px solid rgba(242, 169, 0, 0.5) !important;
    color: #000000 !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}
.rm-mobile-menu-trigger:hover {
    background: #d99800 !important;
}

.rm-header-greeting {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    line-height: 1.25 !important;
}

.rm-greeting-eyebrow,
.rm-top-greeting {
    font-size: 0.72rem !important;
    color: var(--rm-text-mut, #8c96a5) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.rm-greeting-name,
.rm-top-user {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-size: 1.12rem !important;
    font-family: var(--rm-font-display, 'Outfit', sans-serif) !important;
    letter-spacing: -0.2px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Right-side Topbar Controls */
.rm-topbar-right,
.rm-topbar-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.rm-tier-capsule {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(240, 185, 11, 0.08) !important;
    color: var(--rm-gold, #f0b90b) !important;
    border: 1px solid rgba(240, 185, 11, 0.25) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.rm-tier-capsule .rm-tier-crown {
    color: var(--rm-gold, #f0b90b) !important;
    font-size: 0.78rem !important;
}

.rm-tier-capsule .rm-tier-text {
    color: var(--rm-gold, #f0b90b) !important;
    font-weight: 700 !important;
}

.rm-top-tier-pill {
    background: rgba(240, 185, 11, 0.1) !important;
    color: var(--rm-gold, #f0b90b) !important;
    border: 1px solid var(--rm-border-gold, rgba(240,185,11,0.25)) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.rm-top-gas-pill {
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.rm-top-gas-pill.cleared { background: rgba(0, 200, 83, 0.1) !important; color: #00c853 !important; border: 1px solid rgba(0,200,83,0.3) !important; }
.rm-top-gas-pill.req { background: rgba(246, 70, 93, 0.1) !important; color: #f6465d !important; border: 1px solid rgba(246,70,93,0.3) !important; }

.rm-notif-trigger-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.rm-icon-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--rm-border, rgba(255,255,255,0.08)) !important;
    color: var(--rm-gold, #f0b90b) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}
.rm-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(240, 185, 11, 0.4) !important;
}

.rm-notif-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #f6465d !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    min-width: 17px !important;
    height: 17px !important;
    line-height: 17px !important;
    border-radius: 9px !important;
    text-align: center !important;
    padding: 0 4px !important;
    border: 2px solid #0b0e11 !important;
}

/* Notification Flyout Dropdown */
.rm-notif-flyout {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 360px !important;
    max-width: 92vw !important;
    background: #181a1f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    animation: rmFlyoutFadeIn 0.2s ease-out !important;
}
@keyframes rmFlyoutFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rm-notif-flyout-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}
.rm-notif-flyout-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    color: #fff !important;
}
.rm-notif-pill {
    background: rgba(242, 169, 0, 0.15) !important;
    color: #f2a900 !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
}
.rm-notif-flyout-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.rm-btn-text-gold {
    background: none !important;
    border: none !important;
    color: #f2a900 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}
.rm-btn-text-gold:hover {
    background: rgba(242, 169, 0, 0.1) !important;
}
.rm-flyout-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    color: #999 !important;
    font-size: 1.2rem !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}
.rm-flyout-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.rm-notif-flyout-body {
    max-height: 320px !important;
    overflow-y: auto !important;
    padding: 8px !important;
}
.rm-notif-flyout-body::-webkit-scrollbar { width: 4px; }
.rm-notif-flyout-body::-webkit-scrollbar-track { background: transparent; }
.rm-notif-flyout-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.rm-notif-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.rm-flyout-item {
    display: flex !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    transition: background 0.2s ease !important;
    cursor: default !important;
}
.rm-flyout-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
.rm-flyout-item.unread {
    background: rgba(242, 169, 0, 0.04) !important;
    border-left: 3px solid #f2a900 !important;
}
.rm-flyout-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 0.9rem !important;
}
.rm-flyout-content {
    flex: 1 !important;
    min-width: 0 !important;
}
.rm-flyout-title {
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    color: #fff !important;
    margin-bottom: 3px !important;
}
.rm-flyout-msg {
    font-size: 0.75rem !important;
    color: #8a8f98 !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.rm-flyout-time {
    font-size: 0.65rem !important;
    color: #5e6673 !important;
    margin-top: 4px !important;
}
.rm-notif-empty {
    text-align: center !important;
    padding: 30px 20px !important;
    color: #5e6673 !important;
}
.rm-notif-empty i {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
    display: block !important;
    opacity: 0.5 !important;
}
.rm-notif-empty p {
    font-size: 0.8rem !important;
    margin: 0 !important;
}
.rm-notif-flyout-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 10px 14px !important;
}
.rm-btn-view-all {
    width: 100% !important;
    background: rgba(242, 169, 0, 0.1) !important;
    border: 1px solid rgba(242, 169, 0, 0.2) !important;
    color: #f2a900 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 10px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.rm-btn-view-all:hover {
    background: rgba(242, 169, 0, 0.2) !important;
}

/* User Profile Avatar & UserShell Dropdown */
.rm-user-dropdown-wrap {
    position: relative !important;
}

.rm-top-avatar {
    height: 36px !important;
    padding: 0 10px 0 4px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(240, 185, 11, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.rm-top-avatar:hover {
    border-color: var(--rm-gold, #f0b90b) !important;
    background: rgba(240, 185, 11, 0.1) !important;
}

.rm-avatar-text {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: var(--rm-gold-gradient, linear-gradient(135deg, #FFF2A8 0%, #F0B90B 50%, #C49000 100%)) !important;
    color: #000 !important;
    font-weight: 900 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rm-top-avatar-img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.rm-dropdown-arrow {
    color: #8c96a5 !important;
    font-size: 0.65rem !important;
    transition: transform 0.2s ease !important;
}

/* UserShell Dropdown Menu */
.rm-user-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 320px !important;
    background: #12161f !important;
    border: 1px solid rgba(240, 185, 11, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    z-index: 1001 !important;
    overflow: hidden !important;
    animation: rmDropdownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

.rm-dropdown-user-header {
    padding: 18px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.rm-dropdown-user-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2a3342 0%, #151a23 100%) !important;
    border: 2px solid var(--rm-gold, #f0b90b) !important;
    color: var(--rm-gold, #f0b90b) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.rm-dropdown-user-meta {
    flex: 1 !important;
    overflow: hidden !important;
}

.rm-dropdown-user-name {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.rm-dropdown-user-name span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.rm-copy-uid-btn {
    background: none !important;
    border: none !important;
    color: var(--rm-gold, #f0b90b) !important;
    cursor: pointer !important;
    padding: 2px !important;
    font-size: 0.8rem !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
}
.rm-copy-uid-btn:hover {
    opacity: 1 !important;
}

.rm-dropdown-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-top: 6px !important;
}

.rm-badge-pill {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.rm-badge-vip {
    background: rgba(240, 185, 11, 0.15) !important;
    color: var(--rm-gold, #f0b90b) !important;
    border: 1px solid rgba(240, 185, 11, 0.3) !important;
}

.rm-badge-verified {
    background: rgba(0, 200, 83, 0.12) !important;
    color: #00c853 !important;
    border: 1px solid rgba(0, 200, 83, 0.3) !important;
}

.rm-badge-unverified {
    background: rgba(246, 70, 93, 0.12) !important;
    color: #f6465d !important;
    border: 1px solid rgba(246, 70, 93, 0.3) !important;
}

.rm-badge-active {
    background: rgba(0, 229, 255, 0.12) !important;
    color: #00e5ff !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
}

.rm-badge-inactive {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.rm-badge-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: currentColor !important;
}

/* Dropdown Balance Card */
.rm-dropdown-balance-card {
    padding: 14px 20px !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.rm-dropdown-balance-label {
    font-size: 0.72rem !important;
    color: var(--rm-text-mut, #8c96a5) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.rm-dropdown-balance-val {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-family: var(--rm-font-display, 'Outfit', sans-serif) !important;
    letter-spacing: -0.4px !important;
    margin-top: 4px !important;
}

/* Dropdown Menu Items */
.rm-dropdown-menu-list {
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.rm-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: #eaecef !important;
    text-decoration: none !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}
.rm-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

.rm-dropdown-item-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
}

.rm-dropdown-item-logout {
    color: #f6465d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 4px !important;
    padding-top: 10px !important;
}
.rm-dropdown-item-logout:hover {
    background: rgba(246, 70, 93, 0.1) !important;
    color: #ff6b81 !important;
}

/* Impersonate Banner */
.rm-admin-impersonate-bar {
    background: rgba(240, 185, 11, 0.12) !important;
    border: 1px solid var(--rm-gold, #f0b90b) !important;
    padding: 12px 24px !important;
    margin: 15px 24px 0 !important;
    border-radius: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: var(--rm-gold, #f0b90b) !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
}

/* Content Wrap */
.rm-vault-content-wrap {
    padding: 24px 28px 60px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Strict Layout Normalizer - Override ANY external margins & width squeezes */
.rm-app-shell .binance-withdrawal-container,
.rm-app-shell .binance-withdrawal-history,
.rm-app-shell .withdrawal-wrapper,
.rm-app-shell .deposit-wrapper,
.rm-app-shell .portfolio-container,
.rm-app-shell .cth-wrapper,
.rm-app-shell .tradingbot-wrapper,
.rm-app-shell .arbitrage-dashboard-wrapper,
.rm-app-shell .ustb-dashboard-wrapper,
.rm-app-shell .ustb-selection-wrapper,
.rm-app-shell .mb-dashboard,
.rm-app-shell .cth-page-template-wrapper,
.rm-app-shell .cth-arb-wrapper,
.rm-app-shell .tws-withdrawal-page-wrapper,
.rm-app-shell .tws-deposit-page-wrapper,
.rm-app-shell .tools-wrapper,
.rm-app-shell .cth-tools-page-wrapper,
.rm-app-shell .copy-trade-wrapper,
.rm-app-shell .strike-dashboard-wrapper,
.rm-app-shell .main-content,
.rm-app-shell .entry-content,
.rm-app-shell .site-content,
.rm-app-shell #content,
.rm-vault-content-wrap .binance-withdrawal-container,
.rm-vault-content-wrap .binance-withdrawal-history,
.rm-vault-content-wrap .withdrawal-wrapper,
.rm-vault-content-wrap .deposit-wrapper,
.rm-vault-content-wrap .portfolio-container,
.rm-vault-content-wrap .cth-wrapper,
.rm-vault-content-wrap .tradingbot-wrapper,
.rm-vault-content-wrap .arbitrage-dashboard-wrapper,
.rm-vault-content-wrap .ustb-dashboard-wrapper,
.rm-vault-content-wrap .ustb-selection-wrapper,
.rm-vault-content-wrap .mb-dashboard,
.rm-vault-content-wrap #cab-crypto-dashboard-container,
.rm-vault-content-wrap .cab-crypto-card,
.rm-vault-content-wrap .trading-bot-dashboard,
.rm-vault-content-wrap .traders-grid,
.rm-vault-content-wrap .tws-withdrawal-page-wrapper,
.rm-vault-content-wrap .tws-deposit-page-wrapper,
.rm-vault-content-wrap .tools-wrapper,
.rm-vault-content-wrap .copy-trade-wrapper,
.rm-vault-content-wrap .strike-dashboard-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Tab Sections - Strict Isolation to prevent section bleeding */
.rm-tab-section {
    display: none !important;
    visibility: hidden;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.rm-tab-section.active {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
    animation: rmFadeIn 0.25s ease-out;
}

.rm-tab-section:not(.active) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Strict Normalizer for Inner Trading & Copy Trading Panels */
#sec-copytrade .ctb-dashboard,
#sec-trading #mtp-platform-wrapper,
#sec-bots .trading-bot-dashboard,
#sec-arbitrage .mb-dashboard,
.rm-copy-view-panel,
.rm-bot-view-panel,
.rm-arb-view-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

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

/* Executive KPI Cards & Grids */
.rm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) {
    .rm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .rm-kpi-grid { grid-template-columns: 1fr; }
}

.rm-kpi-card {
    background: #181a20;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.rm-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 185, 11, 0.35);
}
.rm-kpi-card.featured {
    border-left: 4px solid var(--rm-gold, #f0b90b);
    background: radial-gradient(circle at 95% 15%, rgba(240, 185, 11, 0.12) 0%, #181a20 65%);
}

.rm-kpi-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rm-kpi-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8c96a5;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.rm-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rm-gold, #f0b90b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.rm-kpi-val {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.rm-kpi-val.gold {
    color: var(--rm-gold, #f0b90b);
}
.rm-kpi-sub {
    font-size: 0.78rem;
    color: #8c96a5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rm-kpi-sub.pos { color: #00c853; font-weight: 600; }
.rm-kpi-sub.neg { color: #f6465d; font-weight: 600; }

/* Legacy rm-mini-stat fallback */
.rm-mini-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rm-mini-label {
    font-size: 0.8rem;
    color: #8c96a5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rm-mini-val {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}


/* Common Dashboard Cards */
.rm-card {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: 14px;
    padding: 24px;
}

.rm-card-title { margin: 0 0 5px; font-size: 1.2rem; color: #fff; }
.rm-card-sub { margin: 0; color: var(--rm-text-mut); font-size: 0.85rem; }

.rm-section-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hero Vault Card */
.rm-hero-vault-card {
    background: radial-gradient(circle at 85% 50%, rgba(240, 185, 11, 0.12) 0%, var(--rm-card) 60%);
    border-color: var(--rm-border-gold);
}

.rm-hero-vault-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.rm-balance-big {
    font-family: var(--rm-font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-top: 4px;
}

.rm-curr-tag { font-size: 1rem; color: var(--rm-gold); font-weight: 700; }
.rm-quick-actions { display: flex; gap: 10px; }

/* Sub Balances Grid */
.rm-sub-balances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.rm-sub-bal-card { padding: 20px; }
.rm-sbc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rm-sbc-title { font-size: 0.8rem; color: var(--rm-text-mut); font-weight: 600; text-transform: uppercase; }
.rm-sbc-icon { font-size: 1.2rem; }
.rm-sbc-val { font-family: var(--rm-font-display); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.rm-sbc-meta { font-size: 0.75rem; color: var(--rm-text-mut); }

/* Form Controls */
.rm-form-group { margin-bottom: 18px; }

.rm-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.rm-input {
    width: 100%;
    background: #090c10;
    border: 1px solid var(--rm-border);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--rm-font);
    outline: none;
    transition: border-color 0.2s;
}

.rm-input:focus {
    border-color: var(--rm-gold);
}

/* Grids */
.rm-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.rm-grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Copy Box */
.rm-copy-box { display: flex; gap: 8px; }
.rm-copy-inp { font-family: monospace; font-size: 0.85rem; }
.rm-copy-btn { flex-shrink: 0; padding: 0 20px; }

/* QR Code Container */
.rm-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
}

.rm-qr-frame {
    background: #090c10;
    border: 1px solid var(--rm-border-gold);
    border-radius: 12px;
    padding: 14px;
    display: inline-block;
}

.rm-qr-caption {
    font-size: 0.75rem;
    color: var(--rm-text-mut);
    margin-top: 10px;
    max-width: 220px;
}

/* Speed Cards */
.rm-speed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.rm-speed-card {
    background: #090c10;
    border: 1px solid var(--rm-border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.rm-speed-card.active {
    border-color: var(--rm-gold);
    background: rgba(240, 185, 11, 0.08);
}

.rm-speed-title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.rm-speed-time { font-size: 0.72rem; color: var(--rm-text-mut); margin-bottom: 4px; }
.rm-speed-fee { font-size: 0.78rem; font-weight: 800; color: var(--rm-gold); }

/* Calc Summary */
.rm-calc-summary-card {
    background: #090c10;
    border: 1px solid var(--rm-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 15px;
}

.rm-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--rm-text-mut);
    margin-bottom: 8px;
}

.rm-calc-total {
    border-top: 1px solid var(--rm-border);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1rem;
    color: #fff;
}

/* Trading Layout */
.rm-trading-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

.rm-order-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rm-order-tab {
    background: #090c10;
    border: 1px solid var(--rm-border);
    color: var(--rm-text-mut);
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.rm-order-tab.active {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    border-color: #00c853;
}

.rm-chip-btn {
    flex: 1;
    background: #090c10;
    border: 1px solid var(--rm-border);
    color: var(--rm-text-mut);
    border-radius: 6px;
    padding: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.rm-chip-btn.active {
    border-color: var(--rm-gold);
    color: var(--rm-gold);
    background: rgba(240, 185, 11, 0.1);
}

/* Bots Grid */
.rm-bot-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rm-bot-card {
    background: #090c10;
    border: 1px solid var(--rm-border);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.rm-bot-card.active {
    border-color: var(--rm-gold);
    background: rgba(240, 185, 11, 0.05);
}

.rm-bot-badge {
    font-size: 0.65rem;
    color: var(--rm-gold);
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.rm-bot-card h4 { margin: 0 0 8px; color: #fff; font-size: 1.05rem; }
.rm-bot-stat { font-size: 0.8rem; color: var(--rm-text-mut); margin-bottom: 8px; }
.rm-bot-desc { font-size: 0.75rem; color: var(--rm-text-mut); margin: 0; line-height: 1.5; }

/* Yield Cards */
.rm-yield-pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.rm-yield-card {
    background: #090c10;
    border: 1px solid var(--rm-border);
    border-radius: 12px;
    padding: 22px;
}

.rm-apy-pill {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.rm-yield-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--rm-text-mut);
    margin-bottom: 8px;
}

/* Data Tables */
.rm-table-responsive { overflow-x: auto; }

.rm-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.rm-data-table th {
    padding: 12px 16px;
    color: var(--rm-text-mut);
    font-size: 0.72rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rm-border);
}

.rm-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rm-border);
    color: #fff;
}

.rm-table-btn {
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid rgba(240, 185, 11, 0.3);
    color: var(--rm-gold);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Switch */
.rm-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.rm-switch input { opacity: 0; width: 0; height: 0; }

.rm-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 24px;
}

.rm-slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .rm-slider { background-color: var(--rm-gold); }
input:checked + .rm-slider:before { transform: translateX(20px); }

.rm-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
}

/* ==========================================================================
   5. Responsive Breakpoints & Mobile Drawer Architecture
   ========================================================================== */

/* Mobile Backdrop Overlay */
.rm-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.rm-sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.rm-sidebar-close-mobile-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.rm-sidebar-close-mobile-btn:hover {
    background: rgba(246, 70, 93, 0.2);
    color: #f6465d;
    border-color: rgba(246, 70, 93, 0.4);
}

@media (max-width: 960px) {
    .rm-vault-app {
        flex-direction: column !important;
    }

    .rm-vault-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000 !important;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.7) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .rm-vault-sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .rm-sidebar-close-mobile-btn {
        display: flex !important;
    }

    .rm-sidebar-toggle-btn {
        display: none !important;
    }

    .rm-vault-app .rm-vault-main,
    .rm-vault-app.sidebar-collapsed .rm-vault-main,
    body.sidebar-expanded .rm-vault-main,
    body.has-user-shell .rm-vault-main,
    .rm-vault-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 0 !important;
    }

    /* Neutralize all nested offsets from legacy plugins on mobile */
    body.has-user-shell .ustb-dashboard-wrapper,
    body.sidebar-expanded .ustb-dashboard-wrapper,
    body.has-user-shell .arbitrage-dashboard-wrapper,
    body.sidebar-expanded .arbitrage-dashboard-wrapper,
    body.has-user-shell .cth-page-template-wrapper,
    body.sidebar-expanded .cth-page-template-wrapper,
    body.has-user-shell .mb-dashboard,
    body.sidebar-expanded .mb-dashboard,
    .rm-vault-content-wrap .ustb-dashboard-wrapper,
    .rm-vault-content-wrap .arbitrage-dashboard-wrapper,
    .rm-vault-content-wrap .mb-dashboard,
    .rm-vault-content-wrap #cab-crypto-dashboard-container,
    .rm-vault-content-wrap .cab-crypto-card,
    .rm-vault-content-wrap .trading-bot-dashboard,
    .rm-vault-content-wrap .traders-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Prevent mobile horizontal overflow blowout */
    html, body, .rm-vault-app, .rm-vault-main, .rm-vault-content-wrap, .rm-tab-section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .rm-mobile-toggle,
    .rm-mobile-menu-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 8px !important;
        background: #f2a900 !important;
        border: 1px solid rgba(242, 169, 0, 0.5) !important;
        color: #000000 !important;
        font-size: 1.1rem !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }

    .rm-mobile-toggle:hover,
    .rm-mobile-menu-trigger:hover {
        background: #d99800 !important;
    }

    .rm-trading-layout { grid-template-columns: 1fr !important; }
    .rm-grid-2col { grid-template-columns: 1fr !important; }
    .rm-pub-links { display: none !important; }
    .traders-grid { grid-template-columns: 1fr !important; }
    .form-grid { grid-template-columns: 1fr !important; width: 100% !important; }
    .cth-account-container, .account-layout, .account-sidebar, .account-content, .tier-system-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .rm-tier-capsule,
    .rm-top-tier-pill {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .rm-vault-topbar {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    .rm-topbar-left {
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    .rm-mobile-menu-trigger {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
    }
    .rm-header-greeting {
        min-width: 0 !important;
        line-height: 1.15 !important;
    }
    .rm-greeting-eyebrow,
    .rm-top-greeting {
        display: none !important;
    }
    .rm-greeting-name,
    .rm-top-user {
        font-size: 0.96rem !important;
        line-height: 1.2 !important;
        max-width: 120px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .rm-topbar-right,
    .rm-topbar-actions {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .rm-tier-capsule,
    .rm-top-tier-pill {
        display: none !important;
    }
    .rm-icon-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.82rem !important;
    }
    .rm-top-avatar {
        height: 32px !important;
        padding: 0 6px 0 3px !important;
        gap: 5px !important;
    }
    .rm-avatar-text,
    .rm-top-avatar-img {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.72rem !important;
    }
    .rm-user-dropdown-menu {
        width: min(300px, 92vw) !important;
        right: 0 !important;
    }
    .rm-vault-content-wrap {
        padding: 12px 10px !important;
        overflow-x: hidden !important;
    }
    .rm-balance-big {
        font-size: 1.6rem !important;
    }
    .rm-hero-vault-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .rm-quick-actions {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .rm-quick-actions button {
        flex: 1 1 45% !important;
    }
    .rm-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ==========================================================================
   6. Enriched Modules & Component Styles
   ========================================================================== */

/* Identity HUD */
.rm-identity-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.95) 0%, rgba(11, 14, 17, 0.98) 100%);
    border: 1px solid rgba(240, 185, 11, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.rm-identity-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.rm-avatar-glow {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0b90b 0%, #c49000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0b0e11;
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.35);
}

.rm-identity-name {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.rm-tier-badge {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.2) 0%, rgba(240, 185, 11, 0.08) 100%);
    color: var(--rm-gold);
    border: 1px solid rgba(240, 185, 11, 0.35);
    font-weight: 700;
}

.rm-badge-verified {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.rm-badge-2fa {
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.rm-identity-meta {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--rm-text-mut);
    flex-wrap: wrap;
}

.rm-identity-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Allocation Bars & Legends */
.rm-alloc-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    margin: 8px 0;
}

.rm-alloc-slice {
    height: 100%;
    transition: width 0.4s ease;
}

.rm-alloc-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    font-size: 0.8rem;
    color: var(--rm-text-mut);
}

.rm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Gateway Grid */
.rm-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rm-gateway-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rm-border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-gateway-tile:hover {
    background: rgba(240, 185, 11, 0.04);
    border-color: rgba(240, 185, 11, 0.3);
    transform: translateY(-2px);
}

.rm-gateway-tile i { font-size: 1.5rem; margin-bottom: 8px; display: inline-block; }
.rm-gateway-tile h4 { margin: 0 0 4px; color: #fff; font-size: 0.95rem; }
.rm-gateway-tile p { margin: 0; font-size: 0.75rem; color: var(--rm-text-mut); }

/* MPro Bots Arsenal Cards */
.rm-bot-card {
    background: linear-gradient(180deg, rgba(22, 26, 30, 0.85) 0%, rgba(14, 17, 21, 0.95) 100%);
    border: 1px solid var(--rm-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.rm-bot-card:hover {
    border-color: rgba(240, 185, 11, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.rm-bot-card.featured {
    border-color: var(--rm-gold);
    box-shadow: 0 0 25px rgba(240, 185, 11, 0.15);
}

.rm-bot-ribbon {
    position: absolute;
    top: 18px;
    right: -30px;
    background: var(--rm-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 34px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.rm-bot-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.rm-bot-badge.gamma { background: rgba(0, 229, 255, 0.15); color: #00e5ff; }
.rm-bot-badge.epsilon { background: rgba(240, 185, 11, 0.15); color: var(--rm-gold); }
.rm-bot-badge.omega { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.rm-bot-icon-glow {
    font-size: 2rem;
    color: var(--rm-gold);
    margin-bottom: 10px;
}

.rm-bot-title {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
}

.rm-bot-sub {
    margin: 4px 0 12px;
    font-size: 0.8rem;
    color: var(--rm-text-mut);
}

.rm-bot-price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rm-bot-price .price-strike {
    font-size: 0.85rem;
    color: var(--rm-text-mut);
    text-decoration: line-through;
}

.rm-bot-price .price-curr {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.rm-bot-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rm-border);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.rm-bot-stats div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.rm-bot-stats div:last-child { margin-bottom: 0; }

.rm-bot-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    font-size: 0.8rem;
    color: var(--rm-text-mut);
}

.rm-bot-features li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-bot-features li i { color: #00c853; font-size: 0.75rem; }

/* Arbitrage HUD */
.rm-hud-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rm-border);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.8rem;
    color: var(--rm-text-mut);
}

.rm-hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-hud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c853;
    box-shadow: 0 0 8px #00c853;
    display: inline-block;
}

.rm-neural-badge {
    background: linear-gradient(135deg, #00e5ff 0%, #0077ff 100%);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Copy Traders */
.rm-trader-card {
    border-top: 3px solid rgba(168, 85, 247, 0.6);
}

.quick-copy-btn,
.copy-trade-btn,
#sec-copytrade .quick-copy-btn,
#sec-copytrade .copy-trade-btn,
#sec-copytrade .card-footer-actions .quick-copy-btn {
    background: #f0b90b !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
}

.quick-copy-btn:hover,
.copy-trade-btn:hover,
#sec-copytrade .quick-copy-btn:hover,
#sec-copytrade .copy-trade-btn:hover {
    background: #fcd535 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.rm-trader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rm-trader-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rm-gold);
}

/* Ticker Bar */
.rm-ticker-bar {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 14px;
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: 8px;
    scrollbar-width: none;
}

.rm-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.rm-ticker-sym { font-weight: 700; color: #fff; }
.rm-ticker-price { font-family: 'JetBrains Mono', monospace; }
.rm-ticker-chg { font-size: 0.75rem; font-weight: 700; }

/* Account List */
.rm-account-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rm-border);
    border-radius: 8px;
    transition: background 0.2s;
}

.rm-account-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.rm-acc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(240, 185, 11, 0.1);
    color: var(--rm-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.rm-acc-bal {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

/* Modals */
.rm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.rm-modal.active { display: flex; }

.rm-modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(8px);
}

.rm-modal-dialog {
    position: relative;
    z-index: 2;
    background: #12161e;
    border: 1px solid var(--rm-border);
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.rm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--rm-border);
}

.rm-modal-title { margin: 0; font-size: 1.15rem; color: #fff; }
.rm-modal-close { background: none; border: none; color: var(--rm-text-mut); font-size: 1.5rem; cursor: pointer; }
.rm-modal-close:hover { color: #fff; }

.rm-modal-body { padding: 20px 24px; }
.rm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--rm-border);
    background: rgba(0, 0, 0, 0.2);
}

/* Notification Center Tray */
.rm-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f6465d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(246, 70, 93, 0.6);
    transition: transform 0.2s;
}

/* Notification Center Tray */
.rm-notif-tray-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rm-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f6465d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(246, 70, 93, 0.6);
    transition: transform 0.2s;
    pointer-events: none;
}

.rm-notif-tray {
    position: absolute;
    top: 50px;
    right: 0;
    width: 360px;
    max-width: min(360px, calc(100vw - 24px));
    background: #12161e;
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
    z-index: 5000;
    display: none;
    overflow: hidden;
}

.rm-notif-tray.active { display: block; animation: rmTrayFadeIn 0.2s ease-out; }

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

/* Mobile backdrop for notification preview dropdown */
.rm-notif-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 4999;
    display: none;
}
.rm-notif-backdrop.active {
    display: block;
}

.rm-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rm-border);
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
}

.rm-notif-header .rm-btn-text {
    background: none;
    border: none;
    color: var(--rm-gold, #f0b90b);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s, opacity 0.2s;
}
.rm-notif-header .rm-btn-text:hover {
    background: rgba(240, 185, 11, 0.1);
}

.rm-notif-list {
    max-height: 340px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rm-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    color: var(--rm-text-mut);
    transition: background 0.2s;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.rm-notif-item:hover { background: rgba(255, 255, 255, 0.03); }
.rm-notif-item.unread {
    background: rgba(240, 185, 11, 0.05);
    border-left: 3px solid var(--rm-gold, #f0b90b);
}
.rm-notif-item strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    word-break: break-word;
}
.rm-notif-item p {
    margin: 0 0 4px;
    line-height: 1.4;
    color: #848e9c;
    word-break: break-word;
}
.rm-notif-item small { font-size: 0.7rem; color: #5e6673; }

.rm-notif-item-icon {
    font-size: 1.1rem;
    margin-top: 2px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.rm-notif-item-body {
    flex: 1;
    min-width: 0;
}

.rm-notif-single-read-btn {
    background: none;
    border: none;
    color: #5e6673;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s;
}
.rm-notif-item:hover .rm-notif-single-read-btn { opacity: 1; }
.rm-notif-single-read-btn:hover { color: var(--rm-gold, #f0b90b); background: rgba(240, 185, 11, 0.1); }

.rm-notif-tray-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--rm-border);
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
}
.rm-notif-tray-footer button {
    background: transparent;
    border: 1px solid rgba(240, 185, 11, 0.25);
    color: var(--rm-gold, #f0b90b);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.rm-notif-tray-footer button:hover {
    background: rgba(240, 185, 11, 0.12);
    border-color: var(--rm-gold, #f0b90b);
}

.rm-notif-empty-state {
    padding: 32px 20px;
    text-align: center;
    color: #5e6673;
}
.rm-notif-empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.4;
    display: block;
}
.rm-notif-empty-state p {
    margin: 0;
    font-size: 0.8rem;
    color: #848e9c;
}

/* Modal: Dedicated Institutional Notification Center */
.rm-notif-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.rm-notif-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.rm-notif-modal-card {
    background: linear-gradient(180deg, #151922 0%, #0d1117 100%);
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 14px;
    width: 94%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}

.rm-notif-modal-overlay.active .rm-notif-modal-card {
    transform: translateY(0) scale(1);
}

.rm-notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
}

.rm-notif-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.rm-notif-modal-title i {
    color: var(--rm-gold, #f0b90b);
}

.rm-modal-title-short {
    display: none;
}

.rm-notif-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-notif-modal-close {
    background: none;
    border: none;
    color: #848e9c;
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.rm-notif-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.rm-notif-filter-bar {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rm-notif-filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #848e9c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rm-notif-filter-btn:hover {
    color: #fff;
    border-color: rgba(240, 185, 11, 0.4);
}
.rm-notif-filter-btn.active {
    background: rgba(240, 185, 11, 0.14);
    color: var(--rm-gold, #f0b90b);
    border-color: var(--rm-gold, #f0b90b);
}

.rm-notif-center-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 52vh;
    -webkit-overflow-scrolling: touch;
}

.rm-notif-center-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s;
    position: relative;
    box-sizing: border-box;
}
.rm-notif-center-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}
.rm-notif-center-item.unread {
    background: rgba(240, 185, 11, 0.04);
    border-left: 3px solid var(--rm-gold, #f0b90b);
}

.rm-notif-center-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.rm-notif-center-content {
    flex: 1;
    min-width: 0;
}

.rm-notif-center-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.rm-notif-center-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}

.rm-notif-type-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.rm-notif-type-tag.tag-trade {
    background: rgba(14, 203, 129, 0.12);
    color: #0ecb81;
    border: 1px solid rgba(14, 203, 129, 0.3);
}
.rm-notif-type-tag.tag-financial {
    background: rgba(240, 185, 11, 0.12);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.3);
}
.rm-notif-type-tag.tag-system {
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
}
.rm-notif-type-tag.tag-warning {
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
    border: 1px solid rgba(246, 70, 93, 0.3);
}

.rm-notif-center-message {
    font-size: 0.8rem;
    color: #848e9c;
    line-height: 1.45;
    margin: 0 0 8px;
    word-break: break-word;
}

.rm-notif-center-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    color: #5e6673;
}

.rm-notif-center-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-notif-center-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #848e9c;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rm-notif-center-btn:hover {
    color: var(--rm-gold, #f0b90b);
    border-color: var(--rm-gold, #f0b90b);
}
.rm-notif-center-btn.is-read {
    opacity: 0.45;
    cursor: default;
    border-color: transparent;
}

/* ==========================================================================
   Mobile & Tablet Responsive Optimizations for Notifications
   ========================================================================== */
@media (max-width: 768px) {
    /* Notification Preview Dropdown on Mobile */
    .rm-notif-tray {
        position: fixed !important;
        top: 60px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 14px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(240, 185, 11, 0.25) !important;
        z-index: 5001 !important;
    }

    .rm-notif-list {
        max-height: min(360px, calc(70vh - 100px)) !important;
    }

    .rm-notif-item {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
    .rm-notif-item-icon {
        font-size: 1rem !important;
        width: 20px !important;
    }
    .rm-notif-item strong {
        font-size: 0.82rem !important;
    }
    .rm-notif-item p {
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
        margin-bottom: 3px !important;
    }

    /* Modal dialog on Mobile */
    .rm-notif-modal-card {
        width: 95% !important;
        max-height: 90vh !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
    }

    .rm-notif-modal-header {
        padding: 12px 14px !important;
    }

    .rm-modal-title-full {
        display: none !important;
    }
    .rm-modal-title-short {
        display: inline !important;
    }
    .rm-notif-modal-title {
        font-size: 0.92rem !important;
        gap: 6px !important;
    }

    .rm-notif-filter-bar {
        padding: 8px 12px !important;
        gap: 6px !important;
    }
    .rm-notif-filter-btn {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
    }

    .rm-notif-center-list {
        padding: 10px 12px !important;
        gap: 8px !important;
        max-height: calc(85vh - 130px) !important;
    }

    .rm-notif-center-item {
        padding: 11px 12px !important;
        gap: 10px !important;
    }
    .rm-notif-center-icon-wrap {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    .rm-notif-center-title {
        font-size: 0.82rem !important;
    }
    .rm-notif-center-message {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
    }
    .rm-notif-center-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .rm-notif-center-actions {
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* Floating VIP Live Chat Widget (Compact Round Icon Only) */
.rm-chat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0b90b 0%, #d4af37 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.4), 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.rm-chat-trigger:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(240, 185, 11, 0.5), 0 6px 16px rgba(0, 0, 0, 0.7);
}

.rm-chat-trigger-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0b0e11;
}

.rm-chat-trigger-text {
    display: none !important;
}

/* Hide fallback rm-chat-trigger if CTH LiveChat root exists to prevent duplicate widgets */
body:has(#cth-livechat-root) #rm-chat-trigger,
#cth-livechat-root ~ #rm-chat-trigger {
    display: none !important;
}

/* Floating Back to Top Button */
.rm-back-to-top {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(22, 26, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 185, 11, 0.4);
    color: var(--rm-gold, #f0b90b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(240, 185, 11, 0.15);
    z-index: 9980;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.rm-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rm-back-to-top:hover {
    background: var(--rm-gold, #f0b90b);
    color: #0b0e11;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(240, 185, 11, 0.4), 0 4px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .rm-back-to-top {
        bottom: 68px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
}

/* Chat Window */
.rm-chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: #101317;
    border: 1px solid rgba(240, 185, 11, 0.4);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(240, 185, 11, 0.15);
    z-index: 9995;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.rm-chat-window.active { display: flex; }

.rm-chat-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, #181d24 0%, #12161c 100%);
    border-bottom: 1px solid var(--rm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rm-chat-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(240, 185, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.rm-chat-header-btn {
    background: none;
    border: none;
    color: var(--rm-text-mut);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.rm-chat-header-btn:hover { color: #fff; }

.rm-chat-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}

.rm-chat-msg.system {
    align-self: center;
    max-width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: var(--rm-text-mut);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
}

.rm-chat-msg.support {
    align-self: flex-start;
}

.rm-chat-msg.client {
    align-self: flex-end;
}

.rm-chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.rm-chat-msg.support .rm-chat-bubble {
    background: #1e242d;
    color: #eaecef;
    border: 1px solid var(--rm-border);
    border-top-left-radius: 2px;
}

.rm-chat-msg.client .rm-chat-bubble {
    background: linear-gradient(135deg, #f0b90b 0%, #c49000 100%);
    color: #000;
    font-weight: 500;
    border-top-right-radius: 2px;
}

.rm-chat-time {
    font-size: 0.65rem;
    color: #848e9c;
    margin-top: 3px;
}

.rm-chat-msg.client .rm-chat-time { text-align: right; }

.rm-chat-typing {
    padding: 6px 18px;
    font-size: 0.75rem;
    color: var(--rm-text-mut);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rm-typing-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rm-gold);
    display: inline-block;
    animation: rmBreathe 1s infinite alternate;
}

.rm-chat-footer {
    padding: 12px 16px;
    background: #14171d;
    border-top: 1px solid var(--rm-border);
}

.rm-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rm-gold);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.rm-chat-send-btn:hover { transform: scale(1.08); }

/* ==========================================================================
   7. Team Cards & Enhanced Services Suite Styles
   ========================================================================== */
.rm-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.rm-team-card {
    background: var(--rm-card, rgba(18, 22, 30, 0.85));
    border: 1px solid var(--rm-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.rm-team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 185, 11, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.rm-team-img-wrap {
    width: 100%;
    max-width: 220px;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.rm-team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.rm-team-card:hover .rm-team-img {
    transform: scale(1.04);
}

.rm-team-name {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: #fff;
    font-family: var(--rm-font-display, 'Outfit', sans-serif);
    font-weight: 700;
}

.rm-team-role {
    margin: 0 0 12px;
    color: var(--rm-gold, #f0b90b);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.rm-team-bio {
    margin: 0;
    color: var(--rm-text-mut, #8c96a5);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Services Full Grid & Detail Cards */
.rm-services-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.rm-service-detail-card {
    background: var(--rm-card, rgba(18, 22, 30, 0.85));
    border: 1px solid var(--rm-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rm-service-detail-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 185, 11, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.rm-svc-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--rm-gold, #f0b90b);
    background: rgba(240, 185, 11, 0.12);
    border: 1px solid rgba(240, 185, 11, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    align-self: flex-start;
}

.rm-service-detail-card h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.rm-service-detail-card p {
    color: var(--rm-text-mut, #8c96a5);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;
}

.rm-svc-points {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.rm-svc-points li {
    font-size: 0.82rem;
    color: #d1d5db;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}

.rm-svc-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--rm-gold, #f0b90b);
    font-weight: 800;
}

/* ==========================================================================
   Zeel Vault Custody Portal Gateway Card (1-for-1 with RM Withdrawal System)
   ========================================================================== */
.tws-zeel-portal-wrap {
    margin: 15px 0 24px 0;
    box-sizing: border-box;
    width: 100%;
}

.tws-zeel-portal-banner-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(18, 22, 28, 0.85) 100%) !important;
    border: 1px solid rgba(240, 185, 11, 0.35) !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    gap: 16px !important;
    height: auto !important;
}

.tws-zeel-portal-banner-btn:hover {
    border-color: var(--rm-gold, #F0B90B) !important;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.16) 0%, rgba(24, 30, 38, 0.95) 100%) !important;
    box-shadow: 0 6px 24px rgba(240, 185, 11, 0.2) !important;
    transform: translateY(-1px) !important;
    color: #FFFFFF !important;
}

.tws-zeel-btn-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tws-zeel-btn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(240, 185, 11, 0.15);
    border: 1px solid rgba(240, 185, 11, 0.35);
    color: var(--rm-gold, #F0B90B);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(240, 185, 11, 0.2);
}

.tws-zeel-btn-text {
    display: flex;
    flex-direction: column;
}

.tws-zeel-btn-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.tws-zeel-btn-sub {
    font-size: 12px;
    color: var(--rm-text-mut, #848e9c);
    margin-top: 2px;
}

.tws-zeel-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(240, 185, 11, 0.15);
    border: 1px solid rgba(240, 185, 11, 0.4);
    color: var(--rm-gold, #F0B90B);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s;
}

.tws-zeel-portal-banner-btn:hover .tws-zeel-btn-cta {
    background: var(--rm-gold, #F0B90B);
    color: #000000;
    box-shadow: 0 0 14px rgba(240, 185, 11, 0.35);
}

/* ── Institutional Demo Banner & Session Concluded Styling ── */
#ustb-demo-banner {
    margin: 15px 0 20px 0;
    width: 100%;
}
.ustb-demo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}
.ustb-demo-banner-inner.is-expired {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(20, 24, 33, 0.95) 100%);
    border: 1px solid rgba(240, 185, 11, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(240, 185, 11, 0.2);
}
.ustb-demo-banner-inner.is-running {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(20, 24, 33, 0.95) 100%);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 229, 255, 0.2);
}
.ustb-demo-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.ustb-demo-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.is-expired .ustb-demo-banner-icon {
    background: rgba(240, 185, 11, 0.15);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.3);
}
.is-running .ustb-demo-banner-icon {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
}
.ustb-demo-banner-text {
    flex: 1;
    min-width: 0;
}
.ustb-demo-banner-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.ustb-demo-banner-title {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}
.ustb-demo-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.ustb-demo-status-pill.expired {
    background: rgba(240, 185, 11, 0.2);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.4);
}
.ustb-demo-status-pill.active {
    background: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.4);
}
.ustb-demo-banner-desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #a0aec0;
}
.ustb-demo-banner-desc strong {
    color: #fff;
    font-weight: 700;
}
.ustb-demo-banner-right {
    flex-shrink: 0;
}
.ustb-demo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #f0b90b 0%, #d49e00 100%);
    color: #0b0e14 !important;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(240, 185, 11, 0.3);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.ustb-demo-cta-btn:hover {
    background: linear-gradient(135deg, #fcd535 0%, #f0b90b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(240, 185, 11, 0.45);
    color: #000 !important;
}
.ustb-demo-cta-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.ustb-demo-cta-btn:hover i {
    transform: translateX(3px);
}

/* Styled Ticker / Session Concluded Notice */
#ustb-ticker {
    margin: 10px 0 20px 0;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--rm-gold, #f0b90b);
    border-radius: 8px;
    font-size: 0.88rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}
#ustb-ticker.hidden {
    display: none !important;
}
#ustb-ticker p {
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ustb-demo-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 15px;
    }
    .ustb-demo-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Mobile Typography Enhancements for Deposit & Withdrawal Portals
   ========================================================================== */
@media (max-width: 768px) {
    /* Step Titles and Descriptions */
    #sec-deposit .tws-step-title,
    #sec-withdrawal .tws-step-title,
    .tws-deposit-page-wrapper .tws-step-title,
    .tws-withdrawal-page-wrapper .tws-step-title {
        font-size: 16px !important;
        font-weight: 700 !important;
    }
    #sec-deposit .tws-step-desc,
    #sec-withdrawal .tws-step-desc,
    .tws-deposit-page-wrapper .tws-step-desc,
    .tws-withdrawal-page-wrapper .tws-step-desc {
        font-size: 13px !important;
        line-height: 1.45 !important;
        color: #a0aec0 !important;
    }

    /* Card Titles & Subtitles */
    #sec-deposit .tws-card-title,
    #sec-withdrawal .tws-card-title,
    .tws-deposit-page-wrapper .tws-card-title,
    .tws-withdrawal-page-wrapper .tws-card-title {
        font-size: 19px !important;
    }
    #sec-deposit .tws-card-subtitle,
    #sec-withdrawal .tws-card-subtitle,
    .tws-deposit-page-wrapper .tws-card-subtitle,
    .tws-withdrawal-page-wrapper .tws-card-subtitle {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
    }
    #sec-deposit .tws-header-badge,
    #sec-withdrawal .tws-header-badge,
    .tws-deposit-page-wrapper .tws-header-badge,
    .tws-withdrawal-page-wrapper .tws-header-badge {
        font-size: 12px !important;
        padding: 5px 12px !important;
    }

    /* Method Cards: Names, Descriptions, and Tags */
    #sec-deposit .tws-mc-name,
    #sec-withdrawal .tws-mc-name,
    .tws-deposit-page-wrapper .tws-mc-name,
    .tws-withdrawal-page-wrapper .tws-mc-name {
        font-size: 14.5px !important;
        font-weight: 700 !important;
    }
    #sec-deposit .tws-mc-desc,
    #sec-withdrawal .tws-mc-desc,
    .tws-deposit-page-wrapper .tws-mc-desc,
    .tws-withdrawal-page-wrapper .tws-mc-desc {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
    #sec-deposit .tws-mc-tag,
    #sec-withdrawal .tws-mc-tag,
    .tws-deposit-page-wrapper .tws-mc-tag,
    .tws-withdrawal-page-wrapper .tws-mc-tag {
        font-size: 11px !important;
        padding: 3px 7px !important;
    }

    /* Networks & Chips */
    #sec-deposit .nw-name,
    #sec-withdrawal .nw-name,
    .tws-deposit-page-wrapper .nw-name,
    .tws-withdrawal-page-wrapper .nw-name {
        font-size: 13.5px !important;
        font-weight: 600 !important;
    }
    #sec-deposit .nw-fee,
    #sec-withdrawal .nw-fee,
    .tws-deposit-page-wrapper .nw-fee,
    .tws-withdrawal-page-wrapper .nw-fee {
        font-size: 11.5px !important;
    }

    /* Balance Badges & Amount Inputs */
    #sec-deposit .tws-step-balance-badge,
    #sec-withdrawal .tws-step-balance-badge,
    .tws-deposit-page-wrapper .tws-step-balance-badge,
    .tws-withdrawal-page-wrapper .tws-step-balance-badge {
        font-size: 13.5px !important;
    }
    #sec-deposit .tws-amount-currency,
    #sec-withdrawal .tws-amount-currency,
    .tws-deposit-page-wrapper .tws-amount-currency,
    .tws-withdrawal-page-wrapper .tws-amount-currency {
        font-size: 24px !important;
    }
    #sec-deposit .tws-amount-input,
    #sec-withdrawal .tws-amount-input,
    .tws-deposit-page-wrapper .tws-amount-input,
    .tws-withdrawal-page-wrapper .tws-amount-input {
        font-size: 24px !important;
    }
    #sec-deposit .tws-percent-pill,
    #sec-withdrawal .tws-percent-pill,
    .tws-deposit-page-wrapper .tws-percent-pill,
    .tws-withdrawal-page-wrapper .tws-percent-pill {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }

    /* Summary Rows and Information Cards */
    #sec-deposit .tws-summary-row,
    #sec-withdrawal .tws-summary-row,
    .tws-deposit-page-wrapper .tws-summary-row,
    .tws-withdrawal-page-wrapper .tws-summary-row {
        font-size: 13.5px !important;
    }
    #sec-deposit .tws-summary-val,
    #sec-withdrawal .tws-summary-val,
    .tws-deposit-page-wrapper .tws-summary-val,
    .tws-withdrawal-page-wrapper .tws-summary-val {
        font-size: 14.5px !important;
        font-weight: 700 !important;
    }
    #sec-deposit .tws-crypto-addr-text,
    #sec-withdrawal .tws-crypto-addr-text,
    .tws-deposit-page-wrapper .tws-crypto-addr-text,
    .tws-withdrawal-page-wrapper .tws-crypto-addr-text {
        font-size: 13px !important;
    }
    #sec-deposit .tws-copy-btn,
    #sec-withdrawal .tws-copy-btn,
    .tws-deposit-page-wrapper .tws-copy-btn,
    .tws-withdrawal-page-wrapper .tws-copy-btn {
        font-size: 12.5px !important;
        padding: 5px 12px !important;
    }
}

/* ==========================================================================
   MPRO SERIES DETAILED COMPARISON (Pop Modal & Executive Teaser)
   ========================================================================== */
.ustb-comparison-teaser-card { 
    margin-top: 50px; 
    padding: 30px 36px; 
    background: #141923; 
    border-radius: 16px; 
    border: 1px solid rgba(240, 185, 11, 0.25); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.ustb-comparison-teaser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f0b90b;
}
.ustb-comparison-teaser-left { max-width: 680px; }
.ustb-comparison-teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f0b90b;
    background: rgba(240, 185, 11, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.ustb-comparison-teaser-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ustb-comparison-teaser-desc {
    font-size: 13.5px;
    color: #848e9c;
    margin: 0;
    line-height: 1.5;
}
.ustb-open-comparison-modal-btn {
    background: #f0b90b !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    border: none !important;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 13.5px;
    font-weight: 700 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(240, 185, 11, 0.25);
}
.ustb-open-comparison-modal-btn:hover {
    background: #fcd535 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
}

.ustb-comparison-modal-content {
    max-width: 1150px !important;
    width: 95% !important;
    max-height: 88vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 32px 36px !important;
    background: #141923 !important;
    border: 1px solid rgba(240, 185, 11, 0.35) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(240, 185, 11, 0.1) !important;
}
.ustb-comparison-modal-header { flex-shrink: 0; }
.ustb-comparison-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f0b90b;
    background: rgba(240, 185, 11, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.ustb-comparison-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.ustb-modal-scroll-hint {
    font-size: 12px;
    color: #848e9c;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ustb-modal-close-action-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ustb-modal-close-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #f0b90b;
}

@media (max-width: 768px) {
    .ustb-comparison-teaser-card {
        padding: 22px 18px;
    }
    .ustb-comparison-teaser-title {
        font-size: 19px;
    }
    .ustb-open-comparison-modal-btn {
        width: 100%;
        justify-content: center;
    }
    .ustb-comparison-modal-content {
        padding: 20px 16px !important;
        width: 96% !important;
        max-height: 92vh !important;
    }
}

/* ==========================================================================
   FLOATING MICRO-TOAST SYSTEM (Institutional Luxury Gold & Dark Glass)
   ========================================================================== */
#rm-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100vw - 40px);
}

.rm-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(20, 25, 35, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(240, 185, 11, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(240, 185, 11, 0.08);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.88rem;
    line-height: 1.4;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.rm-toast.rm-toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.rm-toast-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.rm-toast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rm-toast-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.rm-toast-msg {
    font-size: 0.85rem;
    color: #e2e8f0;
    word-break: break-word;
}

.rm-toast-close {
    background: transparent;
    border: none;
    color: #848e9c;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.rm-toast-close:hover {
    color: #ffffff;
}

.rm-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.rm-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

/* Toast Color Themes */
.rm-toast-success {
    border-left: 4px solid #0ecb81;
}
.rm-toast-success .rm-toast-icon {
    background: rgba(14, 203, 129, 0.15);
    color: #0ecb81;
}
.rm-toast-success .rm-toast-title {
    color: #0ecb81;
}
.rm-toast-success .rm-toast-progress-bar {
    background: #0ecb81;
}

.rm-toast-error {
    border-left: 4px solid #f6465d;
}
.rm-toast-error .rm-toast-icon {
    background: rgba(246, 70, 93, 0.15);
    color: #f6465d;
}
.rm-toast-error .rm-toast-title {
    color: #f6465d;
}
.rm-toast-error .rm-toast-progress-bar {
    background: #f6465d;
}

.rm-toast-warning {
    border-left: 4px solid #f0b90b;
}
.rm-toast-warning .rm-toast-icon {
    background: rgba(240, 185, 11, 0.15);
    color: #f0b90b;
}
.rm-toast-warning .rm-toast-title {
    color: #f0b90b;
}
.rm-toast-warning .rm-toast-progress-bar {
    background: #f0b90b;
}

.rm-toast-info {
    border-left: 4px solid #3b82f6;
}
.rm-toast-info .rm-toast-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.rm-toast-info .rm-toast-title {
    color: #3b82f6;
}
.rm-toast-info .rm-toast-progress-bar {
    background: #3b82f6;
}

@media (max-width: 600px) {
    #rm-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* ==========================================================================
   BINANCE PRO & FINTECH WEALTH COMMAND CENTER (Desktop & Mobile)
   ========================================================================== */

/* 1. Master Portfolio Wealth Hero Card */
.rm-hero-account-card {
    background: linear-gradient(135deg, #141821 0%, #0d1117 50%, #161b26 100%);
    border: 1px solid rgba(240, 185, 11, 0.28);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.rm-hero-account-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(240, 185, 11, 0.12) 0%, rgba(240, 185, 11, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.rm-hero-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rm-hero-account-pill {
    background: rgba(240, 185, 11, 0.12);
    border: 1px solid rgba(240, 185, 11, 0.35);
    color: var(--rm-gold, #f0b90b);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-hero-network-pill {
    background: rgba(0, 200, 83, 0.12);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: #00c853;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-hero-eye-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8c96a5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.rm-hero-eye-btn:hover {
    color: #fff;
    border-color: rgba(240, 185, 11, 0.4);
    background: rgba(240, 185, 11, 0.15);
}

.rm-hero-balance-wrap {
    margin-bottom: 22px;
}

.rm-hero-balance-label {
    font-size: 0.84rem;
    color: #8c96a5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.rm-hero-balance-val {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.rm-hero-stats-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 18px;
    width: fit-content;
    max-width: 100%;
}

.rm-hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rm-hero-stat-label {
    font-size: 0.72rem;
    color: #8c96a5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rm-hero-stat-val {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
}
.rm-hero-stat-val.pos { color: #00c853; }
.rm-hero-stat-val.neg { color: #f6465d; }

.rm-hero-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}

/* Quick Action Console inside Hero */
.rm-hero-action-console {
    background: rgba(18, 22, 31, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.rm-hero-action-title {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-hero-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rm-hero-act-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.rm-hero-act-btn i {
    font-size: 1.1rem;
    color: #94a3b8;
    transition: transform 0.2s, color 0.2s;
}

.rm-hero-act-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(240, 185, 11, 0.4);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.rm-hero-act-btn:hover i {
    transform: scale(1.1);
    color: var(--rm-gold, #f0b90b);
}

.rm-hero-act-btn.primary {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.2) 0%, rgba(240, 185, 11, 0.08) 100%);
    border-color: rgba(240, 185, 11, 0.4);
    color: var(--rm-gold, #f0b90b);
}
.rm-hero-act-btn.primary i { color: var(--rm-gold, #f0b90b); }
.rm-hero-act-btn.primary:hover {
    background: var(--rm-gold, #f0b90b);
    color: #0b0e11;
    box-shadow: 0 6px 22px rgba(240, 185, 11, 0.4);
}
.rm-hero-act-btn.primary:hover i { color: #0b0e11; }

.rm-hero-act-btn.gold-tint:hover i { color: #f0b90b; }
.rm-hero-act-btn.cyan-tint:hover i { color: #00e5ff; }
.rm-hero-act-btn.purple-tint:hover i { color: #d500f9; }

/* 2. Middle Cards Architecture */
.rm-card-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    margin-bottom: 6px;
}
.rm-card-badge-pill.gold {
    background: rgba(240, 185, 11, 0.12);
    color: var(--rm-gold, #f0b90b);
    border: 1px solid rgba(240, 185, 11, 0.25);
}
.rm-card-badge-pill.cyan {
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.25);
}

.rm-goal-edit-pill {
    background: rgba(240, 185, 11, 0.12);
    border: 1px solid rgba(240, 185, 11, 0.35);
    color: var(--rm-gold, #f0b90b);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.rm-goal-edit-pill:hover {
    background: var(--rm-gold, #f0b90b);
    color: #0b0e11;
    box-shadow: 0 0 12px rgba(240, 185, 11, 0.4);
}

.rm-goal-progress-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.rm-goal-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.rm-goal-meta-lbl {
    font-size: 0.84rem;
    color: #8c96a5;
    font-weight: 600;
}
.rm-goal-meta-pct {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
}

.rm-goal-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.rm-goal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c49000 0%, #f0b90b 100%);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(240, 185, 11, 0.6);
}

.rm-goal-bottom-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8c96a5;
}

.rm-security-health-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.rm-security-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(0, 200, 83, 0.2);
}
.rm-security-meta { flex: 1; min-width: 0; }
.rm-security-title { font-size: 0.88rem; font-weight: 700; color: #fff; }
.rm-security-desc { font-size: 0.74rem; color: #8c96a5; line-height: 1.25; margin-top: 2px; }
.rm-security-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: var(--rm-gold, #f0b90b);
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

/* 3. Multi-Sector Capital Allocation Deck */
.rm-asset-allocation-deck {
    border-radius: 18px !important;
    padding: 24px 28px !important;
}

.rm-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.rm-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    width: 100%;
}

.rm-asset-card {
    background: rgba(22, 27, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.rm-asset-card:hover {
    background: rgba(30, 36, 48, 0.95);
    border-color: rgba(240, 185, 11, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(240, 185, 11, 0.08);
}

.rm-asset-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rm-asset-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rm-asset-heading {
    flex: 1;
    min-width: 0;
}

.rm-asset-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.rm-asset-desc {
    font-size: 0.74rem;
    color: #8c96a5;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-asset-pct-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 800;
    flex-shrink: 0;
}

.rm-asset-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-asset-amount {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.rm-asset-gauge {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.rm-asset-gauge-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 900px) {
    .rm-hero-account-card {
        grid-template-columns: 1fr;
        padding: 22px 20px;
        gap: 22px;
    }
    .rm-hero-balance-val {
        font-size: 2.2rem;
    }
    .rm-hero-stats-strip {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .rm-vault-content-wrap {
        padding: 12px 10px 90px !important;
    }

    .rm-hero-account-card {
        padding: 18px 16px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }

    .rm-hero-balance-val {
        font-size: 1.85rem !important;
    }

    .rm-hero-stats-strip {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .rm-hero-stat-label {
        font-size: 0.65rem !important;
    }

    .rm-hero-stat-val {
        font-size: 0.9rem !important;
    }

    .rm-hero-action-console {
        padding: 14px 12px !important;
    }

    .rm-hero-action-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .rm-hero-act-btn {
        padding: 10px 6px !important;
        font-size: 0.72rem !important;
        gap: 5px !important;
    }
    .rm-hero-act-btn i {
        font-size: 0.95rem !important;
    }

    .rm-portfolio-mid-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .rm-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
    }

    .rm-asset-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .rm-asset-card {
        padding: 12px 14px !important;
    }

    .rm-asset-amount {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 480px) {
    .rm-hero-meta-row {
        gap: 6px;
    }
    .rm-hero-account-pill,
    .rm-hero-network-pill {
        font-size: 0.68rem;
        padding: 3px 8px;
    }
    .rm-hero-balance-val {
        font-size: 1.7rem !important;
    }
    .rm-hero-stats-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .rm-hero-stat-divider {
        display: none;
    }
    .rm-hero-action-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   Dedicated Institutional Sign Out Confirmation Modal & Tab Styling
   ========================================================================== */
.rm-signout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    padding: 16px;
}

.rm-signout-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.rm-signout-modal-card {
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border: 1px solid rgba(240, 185, 11, 0.35);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 35px rgba(240, 185, 11, 0.1);
    overflow: hidden;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.rm-signout-modal-overlay.active .rm-signout-modal-card {
    transform: translateY(0) scale(1);
}

.rm-signout-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.rm-signout-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--rm-font-display, 'Outfit', sans-serif);
}

.rm-signout-modal-title i {
    color: #f6465d;
    font-size: 1.15rem;
}

.rm-signout-modal-close {
    background: none;
    border: none;
    color: #848e9c;
    font-size: 1.15rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rm-signout-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.rm-signout-modal-body {
    padding: 24px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rm-signout-icon-halo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 70, 93, 0.18) 0%, rgba(246, 70, 93, 0.04) 70%, transparent 100%);
    border: 1px solid rgba(246, 70, 93, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #f6465d;
    font-size: 1.8rem;
    box-shadow: 0 0 24px rgba(246, 70, 93, 0.25);
}

.rm-signout-heading {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px;
    font-family: var(--rm-font-display, 'Outfit', sans-serif);
}

.rm-signout-desc {
    color: var(--rm-text-mut, #8c96a5);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 380px;
}

.rm-signout-session-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #eaecef;
    margin-bottom: 22px;
}

.rm-signout-session-pill span:first-child {
    color: var(--rm-text-mut, #8c96a5);
}

.rm-signout-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.rm-signout-btn-cancel {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.rm-signout-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.rm-signout-btn-confirm {
    flex: 1;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f6465d 0%, #cf2d44 100%);
    border: 1px solid #f6465d;
    border-radius: 8px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(246, 70, 93, 0.35);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rm-signout-btn-confirm:hover {
    background: linear-gradient(135deg, #ff536b 0%, #de334b 100%);
    box-shadow: 0 6px 20px rgba(246, 70, 93, 0.5);
    transform: translateY(-1px);
}

.rm-signout-btn-confirm:active {
    transform: translateY(0);
}

/* Dedicated Tab: #sec-signout */
#sec-signout .rm-signout-tab-card {
    background: linear-gradient(180deg, #151922 0%, #0d1117 100%);
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 16px;
    padding: 36px 28px;
    max-width: 620px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .rm-signout-modal-card {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    .rm-signout-modal-overlay.active .rm-signout-modal-card {
        transform: translateY(0);
    }
    .rm-signout-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .rm-signout-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .rm-signout-btn-confirm,
    .rm-signout-btn-cancel {
        width: 100%;
        padding: 14px;
    }
    #sec-signout .rm-signout-tab-card {
        padding: 24px 18px;
        margin: 15px auto;
    }
}

/* ==========================================================================
   GLOBAL HIGH-DENSITY CONTENT & RESPONSIVE COMPACT TYPOGRAPHY SYSTEM
   Ensures maximum information density, tight container padding, and clean
   readability across every section of the platform on desktop & mobile.
   ========================================================================== */

/* 1. Global Tablet/Desktop Moderate Density Scale */
@media (max-width: 1024px) {
    .rm-card {
        padding: 18px 20px !important;
        margin-bottom: 16px !important;
    }
    .rm-bot-card {
        padding: 18px 16px !important;
    }
    .rm-settings-header-card {
        padding: 18px 20px !important;
        margin-bottom: 18px !important;
    }
}

/* 2. Comprehensive Mobile High-Density Layout & Typography Engine */
@media (max-width: 768px) {
    /* Global Container Padding & Margin Normalization */
    .rm-vault-content-wrap {
        padding: 10px 8px 85px !important;
    }

    .rm-tab-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Cards: Tighter padding, compact radii, zero wasteful margins */
    .rm-card,
    .rm-feat-card,
    .rm-metric-card,
    .rm-bot-card,
    .rm-trader-card,
    .rm-section-card,
    .rm-settings-header-card,
    .ctb-dashboard-header,
    .ctb-stats-bar,
    .trader-card,
    .account-sidebar,
    .account-content,
    .cth-account-container {
        padding: 12px 12px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }

    /* Primary Page & Section Titles: Crisp, non-oversized, 1-line friendly */
    h1,
    .rm-hero-title,
    .rm-settings-title,
    .rm-page-title,
    .rm-bot-title,
    #sec-bots .bot-title,
    #sec-bots .dashboard-header h1,
    #sec-copytrade .ctb-dashboard-header h2 {
        font-size: 1.18rem !important;
        line-height: 1.25 !important;
        margin: 0 0 6px 0 !important;
        font-weight: 800 !important;
        letter-spacing: -0.2px !important;
    }

    /* Secondary Headings & Card Titles */
    h2,
    h3,
    .rm-card-title,
    .rm-section-title,
    .rm-deck-title,
    .rm-auth-title,
    .cth-section-title {
        font-size: 0.98rem !important;
        line-height: 1.3 !important;
        margin: 0 0 5px 0 !important;
        font-weight: 700 !important;
    }

    /* Subheadings, Meta Descriptions & Labels */
    h4,
    h5,
    p,
    .rm-hero-desc,
    .rm-card-sub,
    .rm-section-desc,
    .rm-settings-subtitle,
    .rm-deck-desc,
    .ctb-dashboard-header p,
    .account-subtitle {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        margin: 0 0 8px 0 !important;
        color: var(--rm-text-mut, #8c96a5) !important;
    }

    /* Badges & Status Pills */
    .rm-badge-pill,
    .rm-bot-badge,
    .rm-badge-live,
    .badge,
    .status-badge {
        font-size: 0.66rem !important;
        padding: 2px 7px !important;
        border-radius: 20px !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }
    .rm-pulse-dot,
    .pulse-dot {
        width: 5px !important;
        height: 5px !important;
    }

    /* Metric Values & Counters */
    .rm-metric-val,
    .rm-stat-value,
    .ctb-stat-value,
    .stat-number,
    .kpi-val {
        font-size: 1.15rem !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
    }
    .rm-metric-label,
    .rm-stat-label,
    .ctb-stat-label,
    .stat-title {
        font-size: 0.68rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Navigation & Subtab Strips: Compact, horizontally scrollable or tight 2-column */
    .rm-bot-nav-card,
    #sec-arbitrage .rm-card:first-child,
    #sec-yield .rm-card:first-child,
    #sec-liquidity .rm-card:first-child {
        padding: 8px 10px !important;
        margin-bottom: 10px !important;
    }

    .rm-bot-nav-buttons,
    #sec-arbitrage .rm-card:first-child > div > div:first-child,
    #sec-yield .rm-card:first-child > div > div:first-child,
    #sec-liquidity .rm-card:first-child > div > div:first-child {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .rm-bot-subtab-btn,
    .rm-btn-gold,
    .rm-btn-outline,
    .nav-btn,
    .dash-tab {
        padding: 7px 8px !important;
        font-size: 0.74rem !important;
        gap: 5px !important;
        border-radius: 6px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .rm-bot-subtab-btn i,
    .rm-btn-gold i,
    .rm-btn-outline i {
        font-size: 0.78rem !important;
    }

    /* Grids: Fit side-by-side or compact single column without blowing out height */
    .rm-features-grid,
    .rm-gateway-grid,
    .rm-hero-metrics,
    .rm-kpi-grid,
    .intel-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .traders-grid,
    #sec-copytrade .traders-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    /* High-Density Tables & History Ledgers */
    .rm-data-table,
    .trade-history-table,
    .ctb-table,
    table {
        font-size: 0.75rem !important;
    }
    .rm-data-table th,
    .rm-data-table td,
    .trade-history-table th,
    .trade-history-table td,
    table th,
    table td {
        padding: 7px 8px !important;
        white-space: nowrap !important;
    }

    /* Forms, Inputs & Action Buttons */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    select,
    textarea,
    .form-control,
    .rm-input {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
        min-height: 38px !important;
    }

    .form-group,
    .form-row,
    .rm-form-group {
        margin-bottom: 10px !important;
        gap: 8px !important;
    }

    label,
    .form-label,
    .rm-label {
        font-size: 0.74rem !important;
        margin-bottom: 3px !important;
        font-weight: 600 !important;
    }

    .btn-submit,
    .rm-btn-primary,
    .btn-primary,
    .submit-btn {
        padding: 10px 14px !important;
        font-size: 0.82rem !important;
        border-radius: 8px !important;
    }

    /* Identity HUD Compact Tuning */
    .rm-identity-card {
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    .rm-avatar-glow {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.15rem !important;
    }
    .rm-identity-meta h3 {
        font-size: 0.95rem !important;
    }
    .rm-identity-meta p {
        font-size: 0.72rem !important;
    }

    /* Multi-Sector Allocation Deck & Progress Gauges */
    .rm-asset-allocation-deck {
        padding: 12px 12px !important;
    }
    .rm-deck-header {
        margin-bottom: 12px !important;
    }
    .rm-asset-card {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    .rm-asset-amount {
        font-size: 1.05rem !important;
    }
    .rm-asset-gauge {
        height: 4px !important;
    }
}

/* 3. Extreme Small Phone High-Density Mode (<= 480px) */
@media (max-width: 480px) {
    .rm-vault-content-wrap {
        padding: 8px 6px 80px !important;
    }

    .rm-card {
        padding: 10px 10px !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }

    /* Reduce any oversized titles on narrow screens */
    h1,
    .rm-hero-title,
    .rm-settings-title,
    .rm-bot-title {
        font-size: 1.08rem !important;
    }

    h2,
    h3,
    .rm-card-title {
        font-size: 0.92rem !important;
    }

    /* Tighten buttons to prevent double-line wrapping */
    .rm-bot-subtab-btn,
    .rm-btn-gold,
    .rm-btn-outline {
        padding: 6px 4px !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
    }
    .rm-bot-subtab-btn span {
        letter-spacing: -0.2px !important;
    }

    /* Topbar branding on narrow viewports */
    .rm-vault-topbar {
        padding: 8px 10px !important;
    }
    .rm-top-user,
    .rm-greeting-name {
        font-size: 0.88rem !important;
        max-width: 100px !important;
    }
    .rm-topbar-right,
    .rm-topbar-actions {
        gap: 6px !important;
    }
}

/* ==========================================================================
   GLOBAL REFINEMENTS: COMPACT BUTTONS & HIGH-DENSITY SPACING
   ========================================================================== */

/* 1. Funds Allocation: Proportional Buttons */
#sec-transfer #transfer-max-btn {
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    height: auto !important;
    min-height: 0 !important;
}
#sec-transfer .transfer-submit-button {
    padding: 12px 24px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    max-width: 320px !important;
    width: 100% !important;
    margin: 16px auto 0 !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

/* 2. Deposit Page: Remove empty space between header and content & Fix copy button */
#sec-deposit {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
#sec-deposit .cth-ds-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
#sec-deposit .tws-dashboard-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#sec-deposit .tws-inline-copy-btn,
#sec-deposit .cth-ds-copy-btn,
#sec-deposit button[onclick*="copyAddress"] {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 52px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}
#sec-deposit .tws-inline-copy-btn span,
#sec-deposit .cth-ds-copy-btn span {
    white-space: nowrap !important;
    display: inline !important;
}

/* 2b. Withdrawal Page: Slight font bump for readability */
#sec-withdrawal {
    font-size: 0.88rem !important;
}
#sec-withdrawal p,
#sec-withdrawal label,
#sec-withdrawal td,
#sec-withdrawal th,
#sec-withdrawal .tws-label,
#sec-withdrawal span:not([class*="icon"]):not([class*="badge"]) {
    font-size: 0.88rem !important;
}
#sec-withdrawal h2, #sec-withdrawal h3 { font-size: 1.05rem !important; }
#sec-withdrawal h4, #sec-withdrawal h5 { font-size: 0.92rem !important; }
#sec-withdrawal input, #sec-withdrawal select, #sec-withdrawal textarea {
    font-size: 0.88rem !important;
}

/* 2c. Deposit Page: Slight font bump for readability */
#sec-deposit p,
#sec-deposit label,
#sec-deposit td,
#sec-deposit th,
#sec-deposit .tws-label,
#sec-deposit span:not([class*="copy"]):not([class*="badge"]) {
    font-size: 0.88rem !important;
}
#sec-deposit h2, #sec-deposit h3 { font-size: 1.05rem !important; }
#sec-deposit h4, #sec-deposit h5 { font-size: 0.92rem !important; }
#sec-deposit input, #sec-deposit select {
    font-size: 0.88rem !important;
}

/* 3. Settings & Security & Identity Tab: Compact Personal Info & Buttons */
#sec-settings .account-content h3 {
    font-size: 1rem !important;
}
#sec-settings .form-grid {
    gap: 10px !important;
}
#sec-settings input[type="text"],
#sec-settings input[type="email"],
#sec-settings input[type="password"],
#sec-settings input[type="tel"],
#sec-settings select {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    height: auto !important;
    min-height: 0 !important;
}
#sec-settings button,
#sec-settings .auth-btn,
#sec-settings .btn-submit,
#sec-settings #profileUpdateSubmitBtn {
    padding: 7px 14px !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
}

/* Avatar button row — keep buttons aligned side by side */
#sec-settings .cth-avatar-form-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
#sec-settings .cth-avatar-form-buttons .auth-btn {
    margin: 0 !important;
}

/* Update Profile button — compact, not full-width */
#sec-settings #profileUpdateSubmitBtn {
    display: inline-block !important;
    width: auto !important;
    max-width: 180px !important;
    margin-top: 10px !important;
    text-align: center !important;
}

/* Security subtab: Change Password, 2FA buttons — compact, not full-width */
#sec-settings #setup-2fa-btn,
#sec-settings #disable-2fa-btn,
#sec-settings #confirm-2fa-btn,
#sec-settings #cth-2fa-section .auth-btn,
#sec-settings form[id*="security"] button[type="submit"],
#sec-settings form[id*="password"] button[type="submit"],
#sec-settings .tab-pane#security button.auth-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 170px !important;
    margin-top: 10px !important;
    text-align: center !important;
    font-size: 0.74rem !important;
    padding: 6px 14px !important;
    height: 32px !important;
}
/* Security form submit (Change Password) — target by form context */
#sec-settings #security .auth-btn[type="submit"],
#sec-settings #security button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 170px !important;
    margin-top: 10px !important;
    font-size: 0.74rem !important;
    padding: 6px 14px !important;
    height: 32px !important;
}

/* Select2 rendered selection — match compact input height */
#sec-settings .select2-container .select2-selection--single {
    height: 34px !important;
    line-height: 34px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    padding: 0 28px 0 10px !important;
    display: flex !important;
    align-items: center !important;
}
#sec-settings .select2-container .select2-selection--single .select2-selection__rendered {
    font-size: 0.8rem !important;
    line-height: 34px !important;
    padding: 0 !important;
}
#sec-settings .select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
    top: 0 !important;
    right: 6px !important;
}

/* Yellow X (clear) button — compact icon */
#sec-settings .select2-container .select2-selection__clear {
    font-size: 0.7rem !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
}

/* 4. Homepage Mobile Landing: High Readability & Sleek Buttons */
@media (max-width: 768px) {
    .hero-section-premium h1.hero-headline,
    .hero-section-premium h1 {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
    }
    .hero-section-premium p.hero-subheadline,
    .hero-section-premium p {
        font-size: 0.96rem !important;
        line-height: 1.6 !important;
    }
    .hero-btn-main {
        padding: 10px 22px !important;
        font-size: 0.82rem !important;
        border-radius: 6px !important;
    }
}

/* ==========================================================================
   5. UNIFIED HIGH-DENSITY COMPACT SCALING: PORTFOLIO, TRADING, ARBITRAGE & BOTS
   Ensures cards, typography, figures, and charts are sleek, consistent, and
   proportionate to the compact Dashboard layout across desktop and mobile.
   ========================================================================== */

/* ── A. PORTFOLIO DESK (#sec-portfolio) ── */
#sec-portfolio .cth-portfolio-dashboard {
    padding: 16px 18px !important;
    border-radius: 12px !important;
}
#sec-portfolio .portfolio-header {
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
    gap: 10px !important;
}
#sec-portfolio .portfolio-header h2 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}
#sec-portfolio .cth-strategy-filter select {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
}
#sec-portfolio .cth-date-filters {
    padding: 3px !important;
    border-radius: 6px !important;
}
#sec-portfolio .cth-date-filters button {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
    border-radius: 4px !important;
}
#sec-portfolio .cth-goal-section {
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
    border-radius: 10px !important;
}
#sec-portfolio .cth-goal-header {
    font-size: 0.78rem !important;
    margin-bottom: 6px !important;
}
#sec-portfolio .cth-goal-header strong {
    font-size: 0.92rem !important;
}
#sec-portfolio .cth-progress-bar-bg {
    height: 7px !important;
}
#sec-portfolio .cth-goal-status {
    font-size: 0.72rem !important;
    margin-top: 5px !important;
}
#sec-portfolio .stats-grid {
    gap: 12px !important;
    margin-bottom: 16px !important;
}
#sec-portfolio .stat-card {
    padding: 14px 16px !important;
    border-radius: 10px !important;
}
#sec-portfolio .stat-card h3 {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.5px !important;
}
#sec-portfolio .stat-card p {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}
#sec-portfolio .stat-card p .cth-percent-change {
    font-size: 0.72rem !important;
    margin-left: 4px !important;
}
#sec-portfolio .charts-grid {
    gap: 12px !important;
    margin-bottom: 16px !important;
}
#sec-portfolio .chart-card {
    padding: 14px 16px !important;
    border-radius: 10px !important;
}
#sec-portfolio .chart-card h3,
#sec-portfolio .details-card h3 {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}
#sec-portfolio .cth-chart-wrapper {
    height: 220px !important;
}
#sec-portfolio .details-section {
    gap: 12px !important;
    margin-bottom: 16px !important;
}
#sec-portfolio .details-card {
    padding: 14px 16px !important;
    border-radius: 10px !important;
}
#sec-portfolio .system-header,
#sec-portfolio .system-row {
    padding: 7px 10px !important;
    font-size: 0.76rem !important;
}
#sec-portfolio .system-row span {
    font-size: 0.78rem !important;
}
#sec-portfolio .details-list div {
    padding: 7px 0 !important;
}
#sec-portfolio .details-list span {
    font-size: 0.76rem !important;
}
#sec-portfolio .details-list strong {
    font-size: 0.82rem !important;
}
#sec-portfolio .heatmap-day {
    padding: 5px !important;
    min-height: 44px !important;
}
#sec-portfolio .heatmap-date {
    font-size: 9px !important;
}
#sec-portfolio .heatmap-pnl {
    font-size: 9.5px !important;
    margin-top: 12px !important;
}

/* ── B. MANUAL TRADING PLATFORM (#sec-trading) ── */
#sec-trading #mtp-platform-wrapper {
    padding: 14px 16px !important;
    border-radius: 10px !important;
}
#sec-trading .mtp-header {
    margin-bottom: 16px !important;
}
#sec-trading .mtp-mode-switcher button {
    padding: 6px 14px !important;
    font-size: 0.76rem !important;
}
#sec-trading .mtp-demo-actions button {
    padding: 7px 14px !important;
    font-size: 0.72rem !important;
}
#sec-trading #mtp-demo-portfolio-stats,
#sec-trading #mtp-live-portfolio-dashboard {
    padding: 16px 18px !important;
    margin-bottom: 16px !important;
    border-radius: 10px !important;
}
#sec-trading #mtp-demo-portfolio-stats h3,
#sec-trading #mtp-live-portfolio-dashboard h3 {
    font-size: 0.95rem !important;
    margin-bottom: 14px !important;
}
#sec-trading .stats-grid {
    gap: 12px !important;
}
#sec-trading .stat-item {
    padding: 12px 14px !important;
    border-radius: 8px !important;
}
#sec-trading .stat-item-label {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
}
#sec-trading .stat-item-value {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}
#sec-trading .total-pl-card {
    padding: 14px 16px !important;
    border-radius: 8px !important;
}
#sec-trading .total-pl-value {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}
#sec-trading .charts-grid {
    gap: 14px !important;
    margin-top: 8px !important;
}
#sec-trading .chart-container {
    padding: 14px !important;
    min-height: 200px !important;
    border-radius: 8px !important;
}
#sec-trading .chart-container h4 {
    font-size: 0.78rem !important;
    margin-bottom: 10px !important;
}
#sec-trading .mtp-main-panel {
    margin-bottom: 18px !important;
}
#sec-trading #mtp-form-container {
    padding: 18px 20px !important;
    border-radius: 10px !important;
}
#sec-trading #mtp-form-container h3 {
    font-size: 1.05rem !important;
    margin-bottom: 16px !important;
}
#sec-trading #market-status-wrapper {
    height: 38px !important;
    margin-bottom: 14px !important;
}
#sec-trading #market-status {
    font-size: 0.82rem !important;
    padding: 0 10px !important;
}
#sec-trading #refresh-price-btn {
    padding: 0 12px !important;
    font-size: 0.76rem !important;
}
#sec-trading .form-group {
    margin-bottom: 12px !important;
}
#sec-trading label {
    font-size: 0.72rem !important;
    margin-bottom: 4px !important;
}
#sec-trading input[type='number'],
#sec-trading select {
    padding: 9px 12px !important;
    font-size: 0.88rem !important;
    border-radius: 6px !important;
}
#sec-trading .mtp-direction-toggle {
    margin-bottom: 14px !important;
}
#sec-trading .dir-btn {
    padding: 9px !important;
    font-size: 0.85rem !important;
}
#sec-trading .preset-btn {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
}
#sec-trading .mtp-button {
    padding: 11px !important;
    font-size: 0.88rem !important;
    margin-top: 10px !important;
    border-radius: 6px !important;
}
#sec-trading .dashboard-tabs {
    margin-bottom: 14px !important;
}
#sec-trading .dash-tab {
    padding: 8px 14px !important;
    font-size: 0.74rem !important;
}
#sec-trading .positions-header,
#sec-trading .position-row {
    font-size: 0.76rem !important;
}
#sec-trading .positions-header > div,
#sec-trading .position-row > div {
    padding: 8px 8px !important;
}

/* ── C. ARBITRAGE BOT PLATFORM (#sec-arbitrage) ── */
#sec-arbitrage .dashboard-header {
    margin-bottom: 14px !important;
}
#sec-arbitrage .dashboard-header h2 {
    font-size: 1.15rem !important;
}
#sec-arbitrage .cab-dashboard-top-nav .nav-btn,
#sec-arbitrage .cab-dashboard-top-nav .cab-nav-button {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.3px !important;
}
#sec-arbitrage .cab-dashboard-tabs {
    margin-bottom: 14px !important;
}
#sec-arbitrage .cab-dashboard-tabs .cab-dash-tab {
    padding: 7px 12px !important;
    font-size: 0.74rem !important;
}

#sec-arbitrage .mb-dashboard,
#sec-arbitrage #cab-crypto-dashboard-container {
    padding: 0 !important;
}
#sec-arbitrage .neural-bridge-map-container {
    padding: 12px 14px !important;
    margin-bottom: 16px !important;
    border-radius: 10px !important;
}
#sec-arbitrage .neural-bridge-map-container h3 {
    font-size: 0.76rem !important;
}
#sec-arbitrage .bridge-map-svg-wrapper {
    height: 120px !important;
}
#sec-arbitrage .cab-crypto-card {
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
}
#sec-arbitrage .card-header {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
}
#sec-arbitrage .card-header h3 {
    font-size: 0.95rem !important;
}
#sec-arbitrage .cab-kpi-card {
    padding: 12px 14px !important;
    border-radius: 8px !important;
}
#sec-arbitrage .cab-kpi-card h4 {
    font-size: 0.7rem !important;
    margin-bottom: 6px !important;
}
#sec-arbitrage .cab-kpi-card p {
    font-size: 1.15rem !important;
}
#sec-arbitrage #cab-portfolio-card-content p {
    font-size: 1.25rem !important;
}
#sec-arbitrage #cab-portfolio-card-content h4 {
    font-size: 0.7rem !important;
}
#sec-arbitrage .cab-crypto-table th,
#sec-arbitrage .cab-crypto-table td {
    padding: 8px 10px !important;
    font-size: 0.76rem !important;
}
#sec-arbitrage .intel-card {
    padding: 14px 16px !important;
    border-radius: 10px !important;
}
#sec-arbitrage .intel-card h3 {
    font-size: 0.88rem !important;
}
#sec-arbitrage #active-strategy-name {
    font-size: 0.95rem !important;
}
#sec-arbitrage .chart-container {
    height: 220px !important;
}
#sec-arbitrage .theme-btn {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
}

/* ── D. TRADING BOT ARSENAL (#sec-bots) ── */
#sec-bots .ustb-dashboard-wrapper {
    padding: 0 !important;
}
#sec-bots .dashboard-header {
    margin-bottom: 14px !important;
}
#sec-bots .dashboard-header h2 {
    font-size: 1.15rem !important;
}
#sec-bots .dashboard-top-nav .nav-btn {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
}
#sec-bots .dashboard-tabs {
    margin-bottom: 14px !important;
}
#sec-bots .dashboard-tabs .dash-tab {
    padding: 7px 12px !important;
    font-size: 0.74rem !important;
}
#sec-bots .dashboard-tabs .dash-tab.hidden,
#sec-bots .dashboard-tabs .dash-tab[style*="display: none"],
#sec-bots #tab-backtest.hidden,
#sec-bots #tab-backtest[style*="display: none"] {
    display: none !important;
}
#sec-bots .neural-bridge-map-container {
    padding: 12px 14px !important;
    margin-bottom: 16px !important;
    border-radius: 10px !important;
}
#sec-bots .bridge-map-svg-wrapper {
    height: 120px !important;
}
#sec-bots .trader-info {
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
}
#sec-bots .trader-info h3 {
    font-size: 0.85rem !important;
    margin-bottom: 4px !important;
}
#sec-bots .trader-info p {
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
}
#sec-bots .health-stats {
    gap: 8px !important;
}
#sec-bots .health-badge {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
    border-radius: 4px !important;
}
#sec-bots .stats-grid {
    gap: 10px !important;
    margin-bottom: 16px !important;
}
#sec-bots .stat-item {
    padding: 10px 12px !important;
    border-radius: 8px !important;
}
#sec-bots .stat-label {
    font-size: 0.66rem !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.5px !important;
}
#sec-bots .stat-value {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
#sec-bots .bot-console-section {
    padding: 14px 16px !important;
    border-radius: 10px !important;
}
#sec-bots .console-header h3 {
    font-size: 0.84rem !important;
}
#sec-bots .console-feed {
    font-size: 0.74rem !important;
    max-height: 140px !important;
}
#sec-bots .bot-catalog-grid,
#sec-bots .rm-bot-models-grid {
    gap: 12px !important;
}
#sec-bots .rm-bot-card,
#sec-bots .bot-card {
    padding: 14px !important;
    border-radius: 10px !important;
}
#sec-bots .rm-bot-card h4,
#sec-bots .bot-card h4 {
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
}
#sec-bots .rm-bot-stat,
#sec-bots .bot-stat {
    font-size: 0.74rem !important;
    margin-bottom: 6px !important;
}
#sec-bots .rm-bot-desc,
#sec-bots .bot-desc {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
}

/* Mobile high-density overrides for all 4 sections */
@media (max-width: 768px) {
    #sec-portfolio .cth-portfolio-dashboard,
    #sec-trading #mtp-platform-wrapper,
    #sec-arbitrage .cab-crypto-card,
    #sec-bots .trader-info,
    #sec-bots .bot-console-section {
        padding: 10px 10px !important;
    }
    #sec-portfolio .stat-card,
    #sec-trading .stat-item,
    #sec-arbitrage .cab-kpi-card,
    #sec-bots .stat-item {
        padding: 8px 10px !important;
    }
    #sec-portfolio .stat-card p,
    #sec-trading .stat-item-value,
    #sec-arbitrage .cab-kpi-card p,
    #sec-bots .stat-value {
        font-size: 1.1rem !important;
    }
    #sec-portfolio .stat-card h3,
    #sec-trading .stat-item-label,
    #sec-arbitrage .cab-kpi-card h4,
    #sec-bots .stat-label {
        font-size: 0.64rem !important;
    }
    #sec-portfolio .cth-chart-wrapper,
    #sec-trading .chart-container,
    #sec-arbitrage .chart-container {
        height: 180px !important;
    }
}


