/**
 * Mobile Navigation Styles
 * Bottom navigation bar and mobile-optimized header
 * Only applies to screens < 768px
 */

/* ============================================
   MOBILE HEADER WITH ACCOUNT DROPDOWN
   ============================================ */

@media (max-width: 768px) {
    /* Hide the old mobile header hamburger button */
    .mobile-header .mobile-menu-button {
        display: none;
    }

    /* New mobile header layout */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--card-bg, rgba(15, 23, 34, 0.95));
        border-bottom: 1px solid var(--border-color, rgba(102, 126, 234, 0.2));
        z-index: 1000;
        padding: 0 12px;
        align-items: center;
        justify-content: space-between;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Logo only - no text */
    .mobile-header-logo {
        display: flex;
        align-items: center;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-header-logo svg {
        width: 36px;
        height: 36px;
    }

    /* Hide the text on mobile */
    .mobile-header-title {
        display: none;
    }

    /* Account dropdown container */
    .mobile-account-dropdown {
        flex: 1;
        margin: 0 12px;
        position: relative;
    }

    /* Account dropdown button (matches year-dropdown-button) */
    .mobile-account-button {
        width: 100%;
        padding: 8px 16px;
        background: var(--input-bg, rgba(30, 41, 59, 0.5));
        border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
        border-radius: 8px;
        color: var(--text-primary, #f1f5f9);
        font-size: 0.95em;
        font-weight: 500;
        cursor: pointer;
        outline: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        transition: background 0.3s;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .mobile-account-button:hover,
    .mobile-account-button:focus {
        background: rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.4);
    }

    #mobileAccountText {
        flex: 1;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-account-arrow {
        font-size: 10px;
        color: var(--text-secondary, #94a3b8);
        flex-shrink: 0;
        transition: transform 0.2s;
    }

    .mobile-account-dropdown.open .mobile-account-arrow {
        transform: rotate(180deg);
    }

    /* Account dropdown menu (matches year-dropdown-menu) */
    .mobile-account-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 4px;
        background: var(--card-bg, rgba(15, 23, 34, 0.98));
        border: 1px solid var(--border-color, rgba(102, 126, 234, 0.2));
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        display: none;
        max-height: 300px;
        overflow-y: auto;
    }

    .mobile-account-menu.show {
        display: block;
    }

    .mobile-account-item {
        padding: 10px 16px;
        color: var(--text-primary, #f1f5f9);
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-account-item:hover {
        background: rgba(102, 126, 234, 0.2);
    }

    .mobile-account-item.selected {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 600;
    }

    .mobile-account-item.separator {
        padding: 4px 16px;
        color: var(--text-secondary, #94a3b8);
        font-size: 0.8em;
        cursor: default;
        border-top: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
        margin-top: 4px;
    }

    .mobile-account-item.separator:hover {
        background: transparent;
    }

    /* Menu button in header */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        color: var(--text-primary, #f1f5f9);
        cursor: pointer;
        border-radius: 8px;
        flex-shrink: 0;
        transition: background 0.2s;
    }

    .mobile-menu-btn:hover {
        background: rgba(102, 126, 234, 0.1);
    }

    /* Slide-out menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1100;
    }

    .mobile-menu-overlay.show {
        display: block;
    }

    /* Slide-out menu panel */
    .mobile-slide-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: var(--card-bg, rgba(15, 23, 34, 0.98));
        border-left: 1px solid var(--border-color, rgba(102, 126, 234, 0.2));
        z-index: 1101;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .mobile-slide-menu.open {
        right: 0;
    }

    .mobile-slide-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid var(--border-color, rgba(102, 126, 234, 0.2));
        font-weight: 600;
        font-size: 1.1em;
        color: var(--text-primary, #f1f5f9);
    }

    .mobile-slide-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        color: var(--text-secondary, #94a3b8);
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.2s;
    }

    .mobile-slide-menu-close:hover {
        background: rgba(102, 126, 234, 0.1);
        color: var(--text-primary, #f1f5f9);
    }

    .mobile-slide-menu-content {
        padding: 16px;
        flex: 1;
        overflow-y: auto;
    }

    .mobile-menu-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color, rgba(102, 126, 234, 0.1));
    }

    .mobile-menu-item:last-child {
        border-bottom: none;
    }

    .mobile-menu-label {
        font-size: 0.95em;
        color: var(--text-primary, #f1f5f9);
        font-weight: 500;
    }

    .mobile-menu-toggle {
        display: flex;
        background: var(--input-bg, rgba(30, 41, 59, 0.5));
        border-radius: 8px;
        padding: 4px;
        border: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
    }

    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: var(--text-secondary, #94a3b8);
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
    }

    .mobile-toggle-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    }

    /* Make text icons in View toggle match SVG icon size */
    .mobile-toggle-btn span {
        font-size: 18px;
        line-height: 18px;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   BOTTOM NAVIGATION BAR
   ============================================ */

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--card-bg, rgba(15, 23, 34, 0.98));
        border-top: 1px solid var(--border-color, rgba(102, 126, 234, 0.2));
        z-index: 1000;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 0;
        color: var(--text-secondary, #94a3b8);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
        gap: 4px;
        border: none;
        background: transparent;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item:active {
        transform: scale(0.95);
    }

    .mobile-nav-item.active {
        color: var(--primary-color, #667eea);
    }

    .mobile-nav-item.active .mobile-nav-icon {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    }

    .mobile-nav-icon {
        width: 40px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        transition: background 0.2s ease;
    }

    .mobile-nav-icon svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
    }

    .mobile-nav-label {
        font-size: 11px;
        line-height: 1;
    }

    /* Adjust body padding for fixed header and nav */
    body.mobile-nav-active {
        padding-top: 56px;
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }

    /* Adjust container for mobile */
    body.mobile-nav-active .container {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    /* Detail page needs more padding from header */
    body.mobile-nav-active #detailPage {
        padding-top: 16px;
    }

    /* Hide desktop side menu on mobile */
    body.mobile-nav-active .side-menu {
        display: none !important;
    }

    /* Hide menu overlay on mobile nav */
    body.mobile-nav-active .menu-overlay {
        display: none !important;
    }

    /* Hide old mobile header hamburger approach */
    body.mobile-nav-active .mobile-menu-button {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }

    .mobile-account-dropdown {
        display: none !important;
    }

    .mobile-header-status {
        display: none !important;
    }

    .mobile-slide-menu {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-open-trades-page {
        display: none !important;
    }

    .mobile-analysis-page {
        display: none !important;
    }
}

/* ============================================
   MOBILE CARD OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    /* Summary page container - fit viewport */
    body.mobile-nav-active #summaryPage {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 8px 2px;
        box-sizing: border-box;
    }

    /* Settings page container - fit viewport */
    body.mobile-nav-active #settingsPage {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 8px 2px;
        box-sizing: border-box;
    }

    /* Settings sections mobile */
    body.mobile-nav-active .settings-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    body.mobile-nav-active .settings-section h3 {
        font-size: 1em;
    }

    body.mobile-nav-active .settings-icon {
        width: 18px;
        height: 18px;
    }

    body.mobile-nav-active .settings-section p {
        font-size: 0.8em;
    }

    /* Settings account items - stack on mobile */
    body.mobile-nav-active .settings-account-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.mobile-nav-active .settings-account-info {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    body.mobile-nav-active .settings-account-name {
        font-size: 0.9em;
        word-break: break-word;
    }

    body.mobile-nav-active .settings-account-number {
        font-size: 0.75em;
        word-break: break-all;
    }

    body.mobile-nav-active .settings-ea-version {
        font-size: 0.75em;
        display: block;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 4px;
    }

    body.mobile-nav-active .settings-account-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* First row: Copy Link, Hide #, Unshare (or Share) */
    /* Second row: Edit Name, Delete */
    body.mobile-nav-active .settings-account-btn[data-account-number] {
        flex-basis: calc(50% - 3px);
    }

    body.mobile-nav-active .settings-account-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }

    /* Share checkbox label */
    body.mobile-nav-active .settings-account-actions label {
        font-size: 0.75em;
    }

    /* Info and warning boxes */
    body.mobile-nav-active .info-box,
    body.mobile-nav-active .warning-box {
        font-size: 0.8em;
        padding: 10px;
    }

    /* API key display */
    body.mobile-nav-active #apiKeyDisplay {
        font-size: 0.75em;
        word-break: break-all;
    }

    /* Subscription card on mobile */
    body.mobile-nav-active #currentSubscriptionCard {
        padding: 16px !important;
    }

    body.mobile-nav-active #currentSubscriptionCard h4 {
        font-size: 1.1em !important;
    }

    body.mobile-nav-active #currentSubscriptionCard p {
        font-size: 0.8em !important;
    }

    body.mobile-nav-active #currentSubscriptionCard #currentTierBadge {
        font-size: 0.65em !important;
        padding: 3px 8px !important;
    }

    body.mobile-nav-active #currentSubscriptionCard #currentTierFeatures {
        font-size: 0.8em;
    }

    body.mobile-nav-active #currentSubscriptionCard .btn-secondary {
        font-size: 0.8em;
        padding: 8px 12px;
    }

    /* Full width cards on mobile */
    body.mobile-nav-active #accountsContainer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.mobile-nav-active .account-card {
        width: 100% !important;
        max-width: calc(100vw - 4px) !important;
        min-width: 0 !important;
        margin: 0;
        padding: 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

    body.mobile-nav-active .account-card * {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Reduce account card text sizes on mobile */
    body.mobile-nav-active .account-card .account-name {
        font-size: 1em;
    }

    body.mobile-nav-active .account-card .account-number {
        font-size: 0.75em;
    }

    body.mobile-nav-active .account-card .label {
        font-size: 0.65em;
    }

    body.mobile-nav-active .account-card .balance-value {
        font-size: 1em;
    }

    body.mobile-nav-active .account-card .gain-value {
        font-size: 0.9em;
    }

    body.mobile-nav-active .account-card .stat-label {
        font-size: 0.7em;
    }

    body.mobile-nav-active .account-card .stat-value {
        font-size: 0.9em;
    }

    body.mobile-nav-active .account-card .stat-item {
        padding: 8px;
    }

    /* Portfolio summary mobile layout */
    body.mobile-nav-active .portfolio-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
        width: 100%;
    }

    body.mobile-nav-active .summary-card {
        padding: 10px 8px;
        min-width: 0;
        overflow: hidden;
    }

    body.mobile-nav-active .summary-label {
        font-size: 0.65em;
        white-space: nowrap;
    }

    body.mobile-nav-active .summary-value {
        font-size: 0.85em;
        word-break: break-word;
    }

    body.mobile-nav-active .summary-subtext {
        font-size: 0.7em;
    }

    /* Hide dashboard toggles on mobile (available in slide-out menu) */
    body.mobile-nav-active #dashboardToggles {
        display: none !important;
    }

    /* Hide some controls on mobile */
    body.mobile-nav-active #summaryPage > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    /* Container adjustments */
    body.mobile-nav-active .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    /* Detail tab content overflow control */
    .detail-tab-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Chart containers must stay within viewport */
    .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* Canvas elements responsive */
    .chart-container canvas,
    .chart-wrapper canvas {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ============================================
   OPEN TRADES PAGE (Mobile Bottom Nav)
   ============================================ */

@media (max-width: 768px) {
    /* Common mobile page container styling */
    .mobile-open-trades-page,
    .mobile-analysis-page {
        display: none;
        padding: 8px 2px calc(72px + env(safe-area-inset-bottom, 0px)) 2px;
        min-height: calc(100vh - 56px - 64px - env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .mobile-open-trades-page.active,
    .mobile-analysis-page.active {
        display: block;
    }

    .mobile-trades-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .mobile-trades-title {
        font-size: 1em;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-trades-count {
        background: var(--primary-color);
        color: white;
        padding: 3px 8px;
        border-radius: 10px;
        font-size: 0.75em;
        font-weight: 600;
    }

    /* Position cards for mobile */
    .mobile-position-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 8px;
    }

    .mobile-position-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }

    .mobile-position-symbol {
        font-weight: 600;
        font-size: 0.9em;
        color: var(--text-primary);
    }

    .mobile-position-profit {
        font-weight: 600;
        font-size: 0.9em;
    }

    .mobile-position-profit.positive {
        color: #48bb78;
    }

    .mobile-position-profit.negative {
        color: #ef4444;
    }

    .mobile-position-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        font-size: 0.75em;
        color: var(--text-secondary);
    }

    .mobile-position-detail {
        display: flex;
        justify-content: space-between;
    }

    .mobile-position-detail-label {
        color: var(--text-secondary);
    }

    .mobile-position-detail-value {
        color: var(--text-primary);
        font-weight: 500;
    }

    .mobile-position-detail-value.positive {
        color: #48bb78;
    }

    .mobile-position-detail-value.negative {
        color: #ef4444;
    }

    /* Account header card styling */
    .mobile-account-header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
        margin-top: 15px;
    }

    /* Expandable account container */
    .mobile-account-expandable {
        margin-bottom: 4px;
    }

    /* Expand/collapse arrow */
    .mobile-expand-arrow {
        display: inline-block;
        margin-right: 8px;
        font-size: 0.8em;
        color: var(--text-secondary, #94a3b8);
        transition: transform 0.2s;
    }

    /* Trades container (collapsible) */
    .mobile-trades-container {
        padding-left: 12px;
        border-left: 2px solid var(--border-color, rgba(102, 126, 234, 0.2));
        margin-left: 8px;
        margin-top: 4px;
    }

    .mobile-trades-loading,
    .mobile-no-trades {
        padding: 16px;
        text-align: center;
        color: var(--text-secondary, #94a3b8);
        font-size: 0.9em;
    }

    /* Individual trade card styling */
    .mobile-trade-card {
        margin-left: 12px;
        border-left: 2px solid var(--border-color);
        padding-left: 12px;
    }

    /* Buy/Sell type badges */
    .mobile-trade-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.75em;
        font-weight: 600;
        text-transform: uppercase;
        margin-right: 6px;
    }

    .mobile-trade-type.buy {
        background: rgba(72, 187, 120, 0.15);
        color: #48bb78;
    }

    .mobile-trade-type.sell {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
    }
}

/* ============================================
   ANALYSIS PAGE (Mobile Bottom Nav)
   ============================================ */

@media (max-width: 768px) {
    .mobile-analysis-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: sticky;
        top: 56px;
        background: var(--bg-primary);
        padding: 10px 0;
        z-index: 10;
    }

    .mobile-analysis-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-analysis-tab {
        flex-shrink: 0;
        padding: 10px 16px;
        background: var(--input-bg);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        color: var(--text-secondary);
        font-size: 0.9em;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-analysis-tab.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: transparent;
    }

    /* Portfolio grid for analysis page */
    .mobile-portfolio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 4px;
    }

    .mobile-portfolio-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-left: 4px solid var(--card-color, #667eea);
    }

    .mobile-portfolio-card:active {
        transform: scale(0.98);
    }

    .mobile-portfolio-card .portfolio-name {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.9em;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-portfolio-card .portfolio-account {
        font-size: 0.75em;
        color: var(--text-secondary);
    }

    .mobile-portfolio-card .portfolio-balance {
        font-size: 0.85em;
        font-weight: 600;
        color: var(--text-primary);
        margin-top: 8px;
    }

    .mobile-portfolio-card .portfolio-gain {
        font-size: 0.75em;
        margin-top: 2px;
    }

    .mobile-portfolio-card .portfolio-gain.positive {
        color: #48bb78;
    }

    .mobile-portfolio-card .portfolio-gain.negative {
        color: #f56565;
    }

    /* Loading spinner */
    .loading-spinner {
        width: 30px;
        height: 30px;
        border: 3px solid var(--border-color);
        border-top-color: #667eea;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

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

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

@media (max-width: 768px) {
    /* Light theme mobile header */
    body.light-theme .mobile-header {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    }

    /* Light theme mobile bottom nav */
    body.light-theme .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(102, 126, 234, 0.15);
    }

    body.light-theme .mobile-nav-item {
        color: #64748b;
    }

    body.light-theme .mobile-nav-item.active {
        color: #667eea;
    }

    /* Light theme slide-out menu */
    body.light-theme .mobile-slide-menu {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid rgba(102, 126, 234, 0.15);
    }

    body.light-theme .mobile-slide-menu-header {
        border-bottom: 1px solid rgba(102, 126, 234, 0.15);
        color: #0f172a;
    }

    body.light-theme .mobile-menu-label {
        color: #0f172a;
    }

    body.light-theme .mobile-menu-item {
        border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    }

    /* Light theme account dropdown */
    body.light-theme .mobile-account-button {
        background: rgba(241, 245, 249, 0.8);
        border-color: rgba(102, 126, 234, 0.2);
        color: #0f172a;
    }

    body.light-theme .mobile-account-menu {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(102, 126, 234, 0.15);
    }

    body.light-theme .mobile-account-item {
        color: #0f172a;
    }

    body.light-theme .mobile-account-item:hover {
        background: rgba(102, 126, 234, 0.1);
    }
}
