/* CSS Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #F7F6F5;
    --bg-tertiary: #F5F4F2;
    --bg-quaternary: #E9E7E2;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #7E7E7E;
    --text-quaternary: #999;
    --border-primary: #EDEDED;
    --border-secondary: #DCDCDA;
    --accent-green: #00A86B;
    --accent-green-light: #E8F5E9;
    --accent-green-dark: #2E7D32;
    --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.dark-mode {
    --bg-primary: #181818;
    --bg-secondary: #212121;
    --bg-tertiary: #2a2a2a;
    --bg-quaternary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #999999;
    --text-quaternary: #666666;
    --border-primary: #333333;
    --border-secondary: #444444;
    --accent-green: #00A86B;
    --accent-green-light: #1a3d2f;
    --accent-green-dark: #4CAF50;
    --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Dark Mode Toggle */
.dark-mode-toggle { padding: 0 12px !important; display: flex; align-items: center; gap: 8px; }
.dark-mode-toggle .sun-icon { display: none; }
.dark-mode-toggle .moon-icon { display: block; }
body.dark-mode .dark-mode-toggle .sun-icon { display: block; }
body.dark-mode .dark-mode-toggle .moon-icon { display: none; }
.dark-mode-label { font-size: 14px; }

/* iOS Keyboard Fix - Prevent layout shifts on mobile */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        body {
            position: fixed;
            width: 100%;
        }
        
        .main-content {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
        }
        
        /* Ensure top-bar never scrolls on iOS */
        .top-bar {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 10000 !important;
            padding-top: max(12px, env(safe-area-inset-top));
            transform: translate3d(0, 0, 0);
            -webkit-transform: translate3d(0, 0, 0);
            will-change: transform;
        }
        
        .input-container {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* Font Face Declarations */
@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayXXThin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayXXThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayXThin.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayXThinItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayThin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayThinItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayLight.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayLightItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayRomanItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayMediu.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayMediumItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayBoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('./fonts/neue-haas/NeueHaasDisplayBlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; letter-spacing: 0.04em; }
html { height: 100%; overflow: hidden; }
body { font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; background: var(--bg-primary); color: var(--text-primary); display: flex; height: 100vh; overflow: hidden; font-weight: 500; letter-spacing: 0.04em; transition: background 0.3s ease, color 0.3s ease; }

/* Left Sidebar Styles */
.left-sidebar { width: 300px; background: var(--bg-primary); border-right: 1px solid var(--border-primary); display: flex; flex-direction: column; padding: 8px 16px; transition: all 0.3s ease; position: relative; z-index: 30; }
.left-sidebar.collapsed { width: 88px; padding: 0px 6px; }
.sidebar-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; position: relative; justify-content: flex-start; cursor: pointer; transition: opacity 0.2s; }
.sidebar-logo:hover { opacity: 0.7; }
.left-sidebar.collapsed .sidebar-logo { justify-content: center; }
.sidebar-logo-img { height: 24px; width: auto; transition: opacity 0.3s ease; }
.sidebar-logo-img.light { display: none; }
.sidebar-logo-img.dark { display: block; }
.left-sidebar.collapsed .sidebar-logo-img { opacity: 0; width: 0; overflow: hidden; }
.sidebar-logo-collapsed { display: none; font-size: 28px; font-weight: 600; color: var(--text-primary); transition: opacity 0.3s ease; position: absolute; left: 50%; transform: translateX(-50%); }
.left-sidebar.collapsed .sidebar-logo-collapsed { display: block; opacity: 1; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item-sidebar { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; cursor: pointer; transition: all 0.2s; color: #7E7E7E; font-size: 14px; white-space: nowrap; position: relative; text-decoration: none; }
.left-sidebar.collapsed .nav-item-sidebar { justify-content: center; padding: 12px; gap: 0; flex-direction: column; }
.nav-item-sidebar:hover { background: #F5F4F2; color: #000; }
.nav-item-sidebar.active { background: #F5F4F2; color: #000000; font-weight: 500; }
.nav-item-sidebar svg { flex-shrink: 0; width: 20px; height: 20px; stroke: #7E7E7E; }
.nav-item-sidebar img { filter: brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(0%) hue-rotate(173deg) brightness(91%) contrast(88%); }
.nav-item-sidebar:hover svg { stroke: #000; }
.nav-item-sidebar:hover img { filter: brightness(0) saturate(100%) invert(0%); }
.nav-item-sidebar.active svg { stroke: #000000; }
.nav-item-sidebar.active img { filter: brightness(0) saturate(100%) invert(0%); }
.nav-item-sidebar span { transition: opacity 0.3s ease; }
.left-sidebar.collapsed .nav-item-sidebar span:not(.nav-tooltip):not(.nav-label-collapsed) { opacity: 0; width: 0; overflow: hidden; }
.nav-label-collapsed { display: none; font-size: 11px; color: #7E7E7E; margin-top: 2px; text-align: center; }
.left-sidebar.collapsed .nav-label-collapsed { display: block; opacity: 1; width: auto; overflow: visible; margin-top: -10px; }
.nav-item-sidebar:hover .nav-label-collapsed { color: #000; }
.nav-item-sidebar.active .nav-label-collapsed { color: #000000; }
.nav-tooltip { position: absolute; left: calc(100% + 12px); background: #1a1a1a; color: #ffffff; padding: 8px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; z-index: 200; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); width: auto; overflow: visible; }
.nav-tooltip::before { content: ''; position: absolute; left: -4px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-right: 4px solid #1a1a1a; }
.sidebar-divider-line { height: 1px; background: #EDEDED; margin: 16px 16px; }
.sidebar-footer { margin-top: auto; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.left-sidebar.collapsed .sidebar-user { justify-content: center; padding: 16px 18px; gap: 0; align-items: center; }
.sidebar-user:hover { background: #F5F4F2; }
.sidebar-user:hover .sidebar-user-avatar { background: #ffffff; }
.left-sidebar.collapsed .sidebar-user:hover { background: #F5F4F2; }
.left-sidebar.collapsed .sidebar-user:hover .sidebar-user-avatar { background: #ffffff; }
.sidebar-user-avatar { width: 40px; height: 40px; border-radius: 50%; background: #F5F4F2; color: #000000; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.sidebar-user-info { flex: 1; transition: opacity 0.3s ease; }
.left-sidebar.collapsed .sidebar-user-info { opacity: 0; width: 0; overflow: hidden; }
.sidebar-user-name { font-size: 14px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.left-sidebar.collapsed .sidebar-user-name { display: none; }
.sidebar-user-plan { font-size: 12px; color: #999; white-space: nowrap; }
.left-sidebar.collapsed .sidebar-user-plan { display: none; }
.sidebar-user-dropdown { width: 20px; height: 20px; color: #999; transition: opacity 0.3s ease, transform 0.3s ease; }
.left-sidebar.collapsed .sidebar-user-dropdown { opacity: 0; width: 0; overflow: hidden; }
.sidebar-user.profile-open .sidebar-user-dropdown { transform: rotate(180deg); }
.minimize-icon-expanded { width: 20px; height: 20px; filter: brightness(0) saturate(100%) invert(59%) sepia(0%) saturate(0%) hue-rotate(189deg) brightness(90%) contrast(89%); transition: filter 0.2s; flex-shrink: 0; }
#minimizeBtn:hover .minimize-icon-expanded { filter: brightness(0) saturate(100%) invert(0%); }
.nav-item-sidebar:hover .minimize-icon-expanded { filter: brightness(0) saturate(100%) invert(0%); }
.minimize-icon-collapsed { display: none; width: 20px; height: 20px; filter: brightness(0) saturate(100%) invert(59%) sepia(0%) saturate(0%) hue-rotate(189deg) brightness(90%) contrast(89%); transition: filter 0.2s; flex-shrink: 0; }
#minimizeBtn:hover .minimize-icon-collapsed { filter: brightness(0) saturate(100%) invert(0%); }
.nav-item-sidebar:hover .minimize-icon-collapsed { filter: brightness(0) saturate(100%) invert(0%); }
.left-sidebar.collapsed .minimize-icon-expanded { display: none; }
.left-sidebar.collapsed .minimize-icon-collapsed { display: block; }

/* Transfer Modal Styles */
.transfer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 200; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.transfer-overlay.active { display: flex; opacity: 1; }
.transfer-popup { background: #ffffff; border-radius: 24px; padding: 32px; width: 90%; max-width: 500px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); position: relative; z-index: 201; transform: scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.transfer-overlay.active .transfer-popup { transform: scale(1); opacity: 1; }
.transfer-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.transfer-popup-title { font-size: 24px; font-weight: 500; color: #1a1a1a; }
.transfer-popup-close { width: 32px; height: 32px; border: none; background: #F5F4F2; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #1a1a1a; transition: background 0.2s; }
.transfer-popup-close:hover { background: #E9E7E2; }
.transfer-tabs { display: flex; gap: 8px; margin-bottom: 32px; background: #F5F4F2; padding: 4px; border-radius: 12px; transition: opacity 0.3s ease; }
.transfer-tabs.hidden { opacity: 0; pointer-events: none; height: 0; margin-bottom: 0; overflow: hidden; }
.transfer-tab { flex: 1; padding: 12px; border: none; background: transparent; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; color: #7E7E7E; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.transfer-tab.active { background: #ffffff; color: #000000; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.transfer-content { display: none; }
.transfer-content.active { display: block; }
.transfer-field { margin-bottom: 24px; }
.transfer-label { display: block; font-size: 13px; font-weight: 500; color: #666; margin-bottom: 8px; }
.transfer-input { width: 100%; padding: 14px 16px; border: 1px solid #EDEDED; border-radius: 12px; font-size: 15px; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; outline: none; transition: border 0.2s; }
.transfer-input:focus { border-color: #999; }
.transfer-select { width: 100%; padding: 14px 16px; padding-right: 40px; border: 1px solid #EDEDED; border-radius: 12px; font-size: 15px; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; outline: none; transition: border 0.2s; background: #ffffff; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237E7E7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.transfer-select:focus { border-color: #999; }
.transfer-info { background: #F5F4F2; padding: 16px; border-radius: 12px; margin-bottom: 24px; font-size: 13px; color: #666; line-height: 1.5; }
.transfer-button { width: 40%; padding: 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-left: auto; display: block; }
.transfer-button:hover { background: #333; }
.transfer-button:disabled { opacity: 0.4; cursor: not-allowed; }
.transfer-button:disabled:hover { background: #1a1a1a; }
.transfer-button.loading { position: relative; color: transparent; pointer-events: none; }
.transfer-button.loading::after { content: ''; position: absolute; top: calc(50% - 10px); left: calc(50% - 10px); width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.transfer-success-view { display: none; text-align: center; padding: 0; }
.transfer-success-view.active { display: block; animation: fadeIn 0.4s ease; }
.transfer-success-icon { width: 80px; height: 80px; margin: 0 auto 24px; background: #00A86B; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: successPop 0.5s ease; }
.transfer-success-icon svg { width: 40px; height: 40px; stroke: #ffffff; stroke-width: 3; }
.transfer-success-title { font-size: 24px; font-weight: 500; color: #000; margin-bottom: 12px; }
.transfer-success-text { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.transfer-success-amount { font-size: 32px; font-weight: 500; color: #000; margin-bottom: 24px; }
.transfer-success-info { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 32px; background: #F5F4F2; padding: 16px; border-radius: 12px; }
.transfer-success-button { width: 30%; padding: 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-left: auto; display: block; }
.transfer-success-button:hover { background: #333; }

/* Bank Modal Styles */
.bank-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 200; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.bank-overlay.active { display: flex; opacity: 1; }
.bank-popup { background: #ffffff; border-radius: 24px; padding: 32px; width: 600px; max-width: 600px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); position: relative; z-index: 201; transform: scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.bank-overlay.active .bank-popup { transform: scale(1); opacity: 1; }
.bank-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.bank-popup-title { font-size: 24px; font-weight: 500; color: #1a1a1a; }
.bank-popup-subtitle { font-size: 14px; color: #666; margin-bottom: 32px; line-height: 1.5; }
.bank-popup-close { width: 32px; height: 32px; border: none; background: #F5F4F2; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #1a1a1a; transition: background 0.2s; }
.bank-popup-close:hover { background: #E9E7E2; }
.bank-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bank-item { padding: 20px; border: 1px solid #EDEDED; border-radius: 12px; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.bank-item:hover { border-color: #999; background: #F7F6F5; }
.bank-logo { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px; color: #ffffff; }
.bank-logo.blabank { background: #fb4f00; }
.bank-logo.norrbank { background: #00005e; }
.bank-logo.ostbank { background: #003824; }
.bank-logo.vastbank { background: #005fa5; }
.bank-logo.sydbank { background: #038069; }
.bank-logo.vastavik { background: #07383e; }
.bank-logo.nordvast { background: #005aa0; }
.bank-logo.prima { background: #e13205; }
.bank-logo.other { background: #F5F4F2; color: #1a1a1a; }
.bank-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.bank-step { display: none; }
.bank-step.active { display: block; }
.bank-back { display: flex; align-items: center; gap: 8px; color: #7E7E7E; font-size: 14px; cursor: pointer; margin-bottom: 24px; transition: color 0.2s; }
.bank-back:hover { color: #1a1a1a; }
.account-list { display: flex; flex-direction: column; gap: 12px; }
.account-item { padding: 16px 20px; border: 1px solid #EDEDED; border-radius: 12px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-item:hover { border-color: #999; background: #F7F6F5; }
.account-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.account-name { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.account-number { font-size: 13px; color: #666; }
.account-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #EDEDED; flex-shrink: 0; }
.account-bank-logo { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px; color: #ffffff; flex-shrink: 0; background: #E0E0E0; }
.account-bank-logo.blabank { background: #fb4f00; }
.account-bank-logo.norrbank { background: #00005e; }
.account-bank-logo.ostbank { background: #003824; }
.account-bank-logo.vastbank { background: #005fa5; }
.account-bank-logo.sydbank { background: #038069; }
.account-bank-logo.vastavik { background: #07383e; }
.account-bank-logo.nordvast { background: #005aa0; }
.account-bank-logo.prima { background: #e13205; }
.account-bank-logo.other { background: #F5F4F2; color: #1a1a1a; }
.account-item.selected .account-check { background: #1a1a1a; border-color: #1a1a1a; position: relative; }
.account-item.selected .account-check::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; background: #ffffff; border-radius: 50%; }
.bank-button-container { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.bank-cancel-button { padding: 16px 24px; background: #F5F4F2; color: #1a1a1a; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.bank-cancel-button:hover { background: #E9E7E2; }
.bank-connect-button { padding: 16px 24px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.bank-connect-button:hover { background: #333; }
.bank-connect-button:disabled { opacity: 0.4; cursor: not-allowed; }
.bank-connect-button:disabled:hover { background: #1a1a1a; }
.bank-connect-button.loading { position: relative; color: transparent; pointer-events: none; }
.bank-connect-button.loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.bank-success-view { display: none; text-align: center; }
.bank-success-view.active { display: block; animation: fadeIn 0.4s ease; }
.bank-success-icon { width: 80px; height: 80px; margin: 0 auto 24px; background: #00A86B; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: successPop 0.5s ease; transform-origin: center; }
.bank-success-icon svg { width: 40px; height: 40px; stroke: #ffffff; stroke-width: 3; }
.bank-success-title { font-size: 24px; font-weight: 500; color: #1a1a1a; margin-bottom: 12px; }
.bank-success-text { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 32px; }
.bank-success-button { width: 100%; padding: 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.bank-success-button:hover { background: #333; }
.bank-bankid-view { display: none; padding: 0; }
.bank-bankid-view.active { display: block; }
.bank-bankid-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: #F5F4F2; padding: 4px; border-radius: 12px; }
.bank-bankid-tab { flex: 1; padding: 12px; border: none; background: transparent; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; color: #7E7E7E; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.bank-bankid-tab.active { background: #ffffff; color: #000000; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.bank-bankid-instruction { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 24px; text-align: left; }
.bank-bankid-qr { width: 200px; height: 200px; margin: 0 auto 32px; background: #ffffff; border: 1px solid #EDEDED; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.bank-bankid-qr svg { width: 180px; height: 180px; }
.bank-bankid-spinner { width: 40px; height: 40px; border: 4px solid #F5F4F2; border-top-color: #1a1a1a; border-radius: 50%; animation: spin 0.8s linear infinite; }
.bank-bankid-divider { display: flex; align-items: center; gap: 16px; margin: 32px 0 24px; }
.bank-bankid-divider-line { flex: 1; height: 1px; background: #EDEDED; }
.bank-bankid-divider-text { font-size: 14px; color: #666; }
.bank-bankid-alternate { font-size: 14px; color: #1a1a1a; text-align: center; margin-bottom: 24px; }
.bank-bankid-card-content { display: none; text-align: left; }
.bank-bankid-card-content.active { display: block; }
.bank-bankid-card-content ol { margin: 0; padding-left: 20px; }
.bank-bankid-card-content li { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 12px; }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes successPop { 0% { transform: scale(0); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes messageAppear { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}
@keyframes sparkle {
    0% { opacity: 0.4; transform: scale(0.9) rotate(0deg); }
    25% { opacity: 1; transform: scale(1.1) rotate(90deg); }
    50% { opacity: 0.5; transform: scale(0.95) rotate(180deg); }
    75% { opacity: 1; transform: scale(1.15) rotate(270deg); }
    100% { opacity: 0.4; transform: scale(0.9) rotate(360deg); }
}

/* Package Sidebar Styles */
.package-sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 300; display: none; opacity: 0; transition: opacity 0.4s ease; }
.package-sidebar-overlay.active { display: block; opacity: 1; }
.package-sidebar { position: fixed; top: 0; right: -500px; width: 500px; height: 100%; background: #ffffff; z-index: 301; overflow-y: auto; transition: right 0.4s ease, box-shadow 0.4s ease; box-shadow: none; display: flex; flex-direction: column; }
.package-sidebar.active { right: 0; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1); }
.package-sidebar-header { padding: 32px; border-bottom: 1px solid #EDEDED; display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.package-sidebar-close { width: 32px; height: 32px; border: none; background: #F5F4F2; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #1a1a1a; transition: background 0.2s; flex-shrink: 0; }
.package-sidebar-close:hover { background: #E9E7E2; }
.package-sidebar-content { padding: 32px; flex: 1; overflow-y: auto; }
.package-sidebar-title { font-size: 24px; font-weight: 500; color: #1a1a1a; margin-bottom: 8px; }
.package-sidebar-subtitle { font-size: 14px; color: #666; line-height: 1.5; }
.package-sidebar-section { margin-bottom: 32px; }
.package-sidebar-section-title { font-size: 16px; font-weight: 500; color: #1a1a1a; margin-bottom: 16px; }
.package-sidebar-allocation { display: flex; align-items: center; gap: 16px; padding: 20px; background: #F7F6F5; border-radius: 12px; margin-bottom: 16px; }
.package-sidebar-pie { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.package-sidebar-breakdown { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.package-sidebar-breakdown-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; font-size: 14px; }
.package-sidebar-breakdown-item:last-child { margin-bottom: 0; }
.package-sidebar-breakdown-label { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.package-sidebar-breakdown-value { font-weight: 600; color: #1a1a1a; font-size: 16px; }
.package-sidebar-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.package-sidebar-detail { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px; background: #F7F6F5; border-radius: 12px; }
.package-sidebar-detail-label { font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.package-sidebar-detail-value { font-size: 18px; font-weight: 600; color: #1a1a1a; }
.package-sidebar-button { padding: 20px 32px; background: #ffffff; border-top: 1px solid #EDEDED; flex-shrink: 0; }
.package-sidebar-button button { width: 100%; padding: 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.package-sidebar-button button:hover { background: #333; }
.package-sidebar-holdings { display: flex; flex-direction: column; gap: 8px; }
.package-sidebar-holding { display: flex; align-items: center; gap: 12px; padding: 12px; background: #F7F6F5; border-radius: 8px; }
.package-sidebar-holding-flag { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.package-sidebar-holding-info { flex: 1; min-width: 0; }
.package-sidebar-holding-name { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px; }
.package-sidebar-holding-detail { font-size: 12px; color: #666; }
.package-sidebar-holding-value { font-size: 14px; font-weight: 500; color: #1a1a1a; text-align: right; flex-shrink: 0; }

/* Profile Sidebar */
.profile-sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 300; display: none; opacity: 0; transition: opacity 0.4s ease; }
.profile-sidebar-overlay.active { display: block; opacity: 1; }
.profile-sidebar { position: fixed; top: 0; right: -500px; width: 500px; height: 100%; background: #ffffff; z-index: 301; overflow-y: auto; transition: right 0.4s ease, box-shadow 0.4s ease; box-shadow: none; display: flex; flex-direction: column; }
.profile-sidebar.active { right: 0; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1); }
.profile-sidebar-header { padding: 32px; border-bottom: 1px solid #EDEDED; display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.profile-sidebar-close { width: 32px; height: 32px; border: none; background: #F5F4F2; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #1a1a1a; transition: background 0.2s; flex-shrink: 0; }
.profile-sidebar-close:hover { background: #E9E7E2; }
.profile-sidebar-content { padding: 32px; flex: 1; overflow-y: auto; }
.profile-sidebar-title { font-size: 24px; font-weight: 500; color: #1a1a1a; margin-bottom: 8px; }
.profile-sidebar-subtitle { font-size: 14px; color: #666; line-height: 1.5; }
.profile-sidebar-section { margin-bottom: 32px; }
.profile-sidebar-section:last-child { margin-bottom: 0; }
.profile-sidebar-section-title { font-size: 16px; font-weight: 500; color: #1a1a1a; margin-bottom: 16px; }
.profile-sidebar-user { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px 0px; }
.profile-sidebar-avatar { width: 88px; height: 88px; border-radius: 50%; background: #1a1a1a; color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 32px; flex-shrink: 0; }
.profile-sidebar-user-info { text-align: center; }
.profile-sidebar-user-name { font-size: 24px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.profile-sidebar-user-email { font-size: 14px; color: #666; }
.profile-sidebar-subscription { display: flex; gap: 16px; }
.profile-sidebar-subscription-plan { flex: 1; padding: 16px; background: url('img/premiumbg.png'); background-size: cover; background-position: center; border-radius: 12px; }
.profile-sidebar-subscription-status { flex: 1; padding: 16px; background: #F7F6F5; border-radius: 12px; }
.profile-sidebar-subscription-label { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.profile-sidebar-subscription-plan .profile-sidebar-subscription-label { color: rgba(255, 255, 255, 0.8); }
.profile-sidebar-subscription-value { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.profile-sidebar-subscription-plan .profile-sidebar-subscription-value { color: #fff; }
.profile-sidebar-status-badge { display: inline-block; padding: 4px 12px; background: #E8F5E9; color: #2E7D32; border-radius: 12px; font-size: 13px; font-weight: 500; }
.profile-sidebar-info-list { display: flex; flex-direction: column; gap: 12px; }
.profile-sidebar-info-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #F7F6F5; border-radius: 8px; }
.profile-sidebar-info-label { font-size: 14px; color: #666; }
.profile-sidebar-info-value { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.profile-sidebar-settings { display: flex; flex-direction: column; gap: 8px; }
.profile-sidebar-setting-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #F7F6F5; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; color: #1a1a1a; width: 100%; text-align: left; }
.profile-sidebar-setting-item:hover { background: #E9E7E2; }
.profile-sidebar-button { padding: 20px 32px; background: #ffffff; border-top: 1px solid #EDEDED; flex-shrink: 0; }
.profile-logout-btn { width: 100%; padding: 16px; background: #F5F4F2; color: #1a1a1a; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.profile-logout-btn:hover { background: #E9E7E2; }

/* Left Panel Styles */
.left-panel { width: 300px; background: #ffffff; display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 20; margin: 24px 0 24px 24px; border-radius: 20px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02); max-height: 100vh; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.left-panel.collapsed { max-height: 72px; }
.panel-header { padding: 16px; overflow: visible; position: relative; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.panel-title { font-size: 16px; font-weight: 500; color: #1a1a1a; }
.panel-collapse-btn { width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #7E7E7E; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 0; flex-shrink: 0; border-radius: 6px; position: relative; }
.panel-collapse-btn:hover { color: #1a1a1a; background: #F5F4F2; }
.panel-header:hover .panel-collapse-btn { color: #1a1a1a; background: #F5F4F2; }
.panel-collapse-icon-expanded { width: 20px; height: 20px; filter: brightness(0) saturate(100%) invert(80%); transition: filter 0.3s; }
.panel-collapse-icon-collapsed { width: 20px; height: 20px; filter: brightness(0) saturate(100%) invert(80%); transition: filter 0.3s; display: none; }
.panel-collapse-btn:hover .panel-collapse-icon-expanded,
.panel-header:hover .panel-collapse-icon-expanded { filter: brightness(0) saturate(100%) invert(0%); }
.panel-collapse-btn:hover .panel-collapse-icon-collapsed,
.panel-header:hover .panel-collapse-icon-collapsed { filter: brightness(0) saturate(100%) invert(0%); }
.left-panel.collapsed .panel-collapse-icon-expanded { display: none; }
.left-panel.collapsed .panel-collapse-icon-collapsed { display: block; }
.left-panel > *:not(.panel-header) { opacity: 1; transform: translateY(0); transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s; }
.left-panel.collapsed > *:not(.panel-header) { opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.nav-section { padding: 0px 16px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; cursor: pointer; transition: background 0.2s; position: relative; }
.nav-item:hover { background: #F5F4F2; }
.nav-item.active { background: #F5F4F2; }
.nav-item.active:hover { background: #F5F4F2; }
.nav-item::after { content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%) translateX(-4px); width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18l6-6-6-6' stroke='%237E7E7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; }
.nav-item:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.nav-item.active:hover::after { opacity: 0; transform: translateY(-50%) translateX(-4px); }
.nav-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; transition: background 0.2s, color 0.2s; }
.nav-icon.blue { background: url('img/fonder.png'); background-size: 44px 44px; background-repeat: no-repeat; background-position: center; }
.nav-icon.orange { background: url('img/aktier.png'); background-size: 44px 44px; background-repeat: no-repeat; background-position: center; }
.nav-icon.purple { background: url('img/podd.png'); background-size: 44px 44px; background-repeat: no-repeat; background-position: center; }
.nav-text-wrapper { display: flex; flex-direction: column; gap: 2px; }
.nav-text { font-size: 14px; color: #1a1a1a; }
.nav-label { font-size: 12px; color: #999; }
.section-header { padding: 16px; margin: 0px 16px 0px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.2s; border-radius: 6px; font-weight: 500; }
.section-header[data-section="today"] { display: none; }
.section-header[data-section="today"].has-items { display: flex; }
.section-header:hover { background: #F5F4F2; }
.section-title { font-size: 13px; color: #666; font-weight: 500; }
.section-arrow { transition: transform 0.3s ease; color: #999; display: flex; align-items: center; transform: rotate(180deg); }
.section-arrow.collapsed { transform: rotate(0deg); }
.section-list { padding: 0 16px; max-height: 500px; overflow: hidden; transition: max-height 0.3s ease; opacity: 1; }
.section-list.collapsed { max-height: 0; }
.section-list-item { padding: 8px 16px; font-size: 13px; color: #1a1a1a; cursor: pointer; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform 0.3s ease, opacity 0.3s ease; transform: translateY(0); opacity: 1; }
.section-list.collapsed .section-list-item { transform: translateY(-8px); opacity: 0; }
.section-list-item:nth-child(1) { transition-delay: 0s; }
.section-list-item:nth-child(2) { transition-delay: 0.05s; }
.section-list-item:nth-child(3) { transition-delay: 0.1s; }
.section-list-item:nth-child(4) { transition-delay: 0.15s; }
.section-list.collapsed .section-list-item:nth-child(1) { transition-delay: 0.15s; }
.section-list.collapsed .section-list-item:nth-child(2) { transition-delay: 0.1s; }
.section-list.collapsed .section-list-item:nth-child(3) { transition-delay: 0.05s; }
.section-list.collapsed .section-list-item:nth-child(4) { transition-delay: 0s; }
.section-list-item:hover { background: #F5F4F2; }
.ai-fund-box { margin: 16px; padding: 20px; background: #ffffff; border-radius: 12px; border: 1px solid #EDEDED; margin-top: auto; position: relative; }
.ai-fund-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: #F5F4F2; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #666; transition: all 0.2s; }
.ai-fund-close:hover { background: #E9E7E2; color: #1a1a1a; }
.ai-fund-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ai-fund-description { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 16px; }
.ai-fund-button { width: 100%; padding: 0 16px; height: 50px; background: #F5F4F2; border: none; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.ai-fund-button:hover { background: #E9E7E2; }

/* Main Content Styles */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #F7F6F5; }
.content-wrapper { display: flex; flex: 1; overflow: hidden; }
.top-bar { padding: 16px 24px; border-bottom: 1px solid #EDEDED; display: flex; align-items: center; justify-content: space-between; background: #fff; gap: 8px; position: relative; }
.top-bar-logo { height: 24px; margin-right: 192px; }
.top-bar-logo.light { display: none; }
.top-bar-logo.dark { display: block; }
.balance-display { width: 135px; display: flex; flex-direction: column; gap: 4px; }
.balance-label { font-size: 12px; color: #7E7E7E; font-weight: 500; }
.balance-amount { font-size: 20px; color: #1a1a1a; font-weight: 600; }
.top-bar-deposit-btn { padding: 0px 12px; border: none; background: #F5F4F2; color: #000; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; height: 40px; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-right: 83px; }
.top-bar-deposit-btn:hover { background: #E9E7E2; }
.top-bar-deposit-btn svg { flex-shrink: 0; }
.top-bar-divider { width: 1px; background: #EDEDED; position: absolute; top: 0; bottom: 0; left: calc(295px + 40px + 4px); }
.search-bar { flex: 1; max-width: 100%; position: relative; z-index: 100; width: 100%; }
.search-input { width: 100%; padding: 0 120px 0 40px; border: none; border-radius: 12px; font-size: 14px; outline: none; transition: background 0.2s; height: 40px; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; background: #F5F4F2; }
.search-input::placeholder { color: #999999; }
.search-input:focus { background: #fff; }
.search-icon { position: absolute; left: 12px; top: 52%; transform: translateY(-50%); color: #999; }
.top-bar-actions { display: flex; gap: 0; align-items: center; }
.top-bar-button { padding: 0 16px; border: none; background: transparent; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; height: 40px; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.top-bar-button:hover { background: #F5F4F2; }
.avatar-container { position: relative; display: flex; align-items: center; margin-left: 8px; }
.top-bar-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; cursor: pointer; transition: opacity 0.2s; }
.top-bar-avatar:hover { opacity: 0.8; }
.avatar-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); padding: 8px; min-width: 260px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 1000; }
.avatar-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.avatar-dropdown-header { padding: 12px 16px; }
.avatar-dropdown-name { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.avatar-dropdown-plan { font-size: 12px; font-weight: 500; color: #8b5cf6; margin-bottom: 4px; }
.avatar-dropdown-email { font-size: 13px; color: #666; }
.avatar-dropdown-divider { height: 1px; background: #EDEDED; margin: 8px 0; }
.avatar-dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; cursor: pointer; transition: background 0.2s; font-size: 14px; color: #1a1a1a; text-decoration: none; border: none; background: none; width: 100%; text-align: left; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.avatar-dropdown-item:hover { background: #F5F4F2; }
.avatar-dropdown-item svg { flex-shrink: 0; color: #666; }
.avatar-dropdown-item span { flex: 1; }
.mode-toggle { position: relative; display: inline-block; width: 68px; height: 34px; }
.mode-toggle input { opacity: 0; width: 0; height: 0; }
.mode-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #F5F4F2; transition: 0.3s; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; }
#modeToggleItem:hover .mode-toggle-slider { background-color: #E9E7E3; }
#modeToggleItem:hover .mode-toggle input:checked + .mode-toggle-slider { background-color: #404040; }
.mode-toggle-icon { position: relative; z-index: 1; transition: all 0.3s; color: #999; pointer-events: none; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; }
.mode-toggle-icon.sun { color: #fff; }
.mode-toggle-icon.moon { color: #999; }
.mode-toggle-thumb { position: absolute; content: ""; height: 28px; width: 28px; left: 3px; top: 3px; background-color: #1a1a1a; transition: 0.3s; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.mode-toggle input:checked + .mode-toggle-slider { background-color: #303030; }
.mode-toggle input:checked + .mode-toggle-slider .mode-toggle-icon.sun { color: #999; }
.mode-toggle input:checked + .mode-toggle-slider .mode-toggle-icon.moon { color: #ffffff; }
.mode-toggle input:checked + .mode-toggle-slider .mode-toggle-thumb { transform: translateX(34px); background-color: #ffffff; }

/* Chat Area Styles */
.chat-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; overflow-y: auto; background: #F7F6F5; margin: 0; border-radius: 0; position: relative; transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.left-panel.collapsed ~ .chat-area { margin-left: -330px; }
.welcome-message { font-size: 40px; font-weight: 500; margin-bottom: 32px; text-align: center; }

.suggestions-wrapper { width: 100%; max-width: 768px; }
.suggestions-heading { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 16px; text-align: left; }
.suggestions-container { display: flex; gap: 12px; max-width: 768px; width: 768px; margin-bottom: 24px; }
.chat-messages .suggestions-container { width: 100%; max-width: 70%; display: grid; grid-template-columns: repeat(2, 1fr); }
.suggestion-card { flex: 1; padding: 20px; background: #ffffff; border: none; border-radius: 20px; cursor: pointer; font-size: 13px; color: #1a1a1a; min-height: 100px; display: flex; flex-direction: column; justify-content: space-between; position: relative; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02); gap: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.chat-messages .suggestion-card { font-size: 13px; min-height: 60px; display: flex; justify-content: center; }
.suggestion-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04); }
.suggestion-icon { width: 20px; height: 20px; color: #000000; background: #fff; border: 1px solid #ededed; padding: 10px; border-radius: 12px; box-sizing: content-box; }
.help-text { text-align: left; color: #000000; font-size: 20px; margin-bottom: 16px; width: calc(100% - 0px); max-width: 768px; align-self: flex-start; }
.input-container { position: relative; padding: 0; background: transparent; border-top: none; max-width: 768px; margin: 0 auto 32px; width: 768px; }
.chat-area.chat-active .input-container { position: fixed; bottom: 32px; margin: 0 auto; z-index: 10; transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.chat-area.chat-active .input-container::before { content: ''; position: fixed; bottom: 0; left: 0; right: 0; width: 100%; height: 188px; background: linear-gradient(to bottom, rgba(247, 246, 245, 0) 0%, rgba(247, 246, 245, 1) 50%); pointer-events: none; z-index: -1; }
.left-panel.collapsed ~ .chat-area.chat-active .input-container { margin-left: 0px; }
.chat-input-wrapper { max-width: 768px; margin: 0 auto; position: relative; width: 100%; }
.chat-input { width: 100%; padding: 16px 16px 60px 16px; border: 1px solid #fff; border-radius: 20px; font-size: 16px; outline: none; transition: all 0.2s; resize: none; line-height: 1.5; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; background: #FFFFFF; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05); min-height: calc(1.5em * 2 + 28px + 60px); max-height: 150px; }
.chat-input::placeholder { color: #999999; }
.chat-input:focus { border-color: #999; box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.input-actions { position: absolute; left: 16px; right: 16px; bottom: 20px; display: flex; gap: 8px; justify-content: space-between; }
.input-action-btn { width: 50px; height: 50px; border: none; background: #1a1a1a; color: white; border-radius: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.input-action-btn:hover { background: #333; }
.input-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.input-action-btn:disabled:hover { background: #1a1a1a; }
.input-action-btn.voice { background: #ffffff; color: #1a1a1a; border: 1px solid #F1F0F0; }
.input-action-btn.voice img { width: 40px; height: 40px; }
.input-action-btn.voice:hover { background: #F5F4F2; border: 1px solid #F5F4F2; }
.input-action-btn.attach { background: #ffffff; color: #1a1a1a; border: 1px solid #F1F0F0; width: auto; padding: 0 16px; gap: 4px; font-size: 14px; font-weight: 500; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.input-action-btn.attach:hover { background: #F5F4F2; border: 1px solid #F5F4F2; }
.welcome-content { display: flex; flex-direction: column; align-items: center; }
.welcome-content.hidden { display: none; }
.home-view { display: none; width: 100%; padding: 48px; overflow-y: auto; }
.home-view.active { display: block; }
.chat-messages { width: calc(100% - 48px); max-width: 768px; display: none; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.chat-messages.active { display: flex; padding: 0 24px; }
.chat-message { display: flex; gap: 12px; align-items: flex-start; opacity: 0; animation: messageAppear 0.4s ease forwards; }
.chat-message.user { justify-content: flex-end; }
.message-content { max-width: 70%; padding: 0; border-radius: 16px; background: transparent; font-size: 15px; line-height: 1.6; color: #000000; margin-top: 32px; }
.message-content b { font-weight: 600; }
.chat-message.user .message-content { background: #ffffff; color: #000000; border-radius: 16px 16px 0 16px; padding: 16px; }
.typing-indicator { display: flex; gap: 4px; padding: 16px 20px; }
.typing-star { width: 20px; height: 20px; animation: sparkle 2s ease-in-out infinite; }

/* Analysis Animation Styles */
.analysis-message { }
.analysis-description { font-size: 15px; color: #000; line-height: 1.5; margin-bottom: 24px; min-height: 1.5em; }
.analysis-container { padding: 0 24px; background: #ffffff; border-radius: 16px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02); position: relative; width: 504px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease; }
.analysis-container.active { padding: 24px; max-height: 1000px; opacity: 1; }
.analysis-steps { display: flex; flex-direction: column; gap: 28px; }
.analysis-step { display: flex; align-items: center; gap: 16px; position: relative; opacity: 0; transform: translateY(8px); max-height: 0; }
.analysis-step.visible { opacity: 1; transform: translateY(0); max-height: 100px; transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease; }
.analysis-step-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.analysis-step-icon.completed { background: transparent; border: none; border-radius: 50%; }
.analysis-step-icon.completed img { width: 16px; height: 16px; filter: none; animation: iconCheckPop 0.4s ease; }
@keyframes iconCheckPop { 
    0% { opacity: 0; transform: scale(0.5); } 
    60% { transform: scale(1.1); } 
    100% { opacity: 1; transform: scale(1); } 
}
.analysis-step-icon.pending .step-circle { width: 12px; height: 12px; border-radius: 50%; background: #DCDCDA; border: 2px solid #DCDCDA; }
.analysis-step-content { flex: 1; display: flex; align-items: center; gap: 12px; }
.analysis-step-title { font-size: 14px; font-weight: 400; color: #666; line-height: 1.4; display: flex; align-items: center; gap: 8px; }
.analysis-badge { background: #F5F4F2; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: #000; opacity: 0; animation: badgeFadeIn 0.3s ease forwards; }
@keyframes badgeFadeIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
.step-progress-circle { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#000 0deg, #EDEDED 0deg); position: relative; opacity: 0; transition: opacity 0.3s ease; }
.step-progress-circle.active { opacity: 1; }
.progress-circle-fill { position: absolute; top: 1.5px; left: 1.5px; right: 1.5px; bottom: 1.5px; border-radius: 50%; background: #ffffff; }
.analysis-step-spacer { flex: 1; }

/* Connecting lines between steps */
.analysis-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 30px;
    width: 1px;
    height: 16px;
    background: #DCDCDA;
    transition: background 0.3s ease;
}

/* Spinner styles */
.analysis-spinner { display: flex; justify-content: flex-start; align-items: center; padding: 20px 0; margin-top: 16px; }
.typing-star { width: 20px; height: 20px; animation: sparkle 2s ease-in-out infinite; color: #1a1a1a; }
.chat-area.chat-active { justify-content: flex-start; padding-bottom: 200px; position: relative; }

/* Search Styles */
.search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 90; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; }
.search-overlay.active { opacity: 1; visibility: visible; }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #FFFFFF; border: none; border-radius: 12px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); padding: 16px 0; max-height: 400px; overflow-y: auto; z-index: 102; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; visibility: hidden; pointer-events: none; }
.search-dropdown.active { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; transition: opacity 0.2s ease, transform 0.2s ease; }
.dropdown-header { display: grid; grid-template-columns: 3fr 2fr 1fr 1fr; padding: 8px 24px; font-size: 14px; color: #999; font-weight: 500; border-bottom: 1px solid #EDEDED; margin-bottom: 8px; }
.dropdown-item { display: grid; grid-template-columns: 3fr 2fr 1fr 1fr; padding: 12px 24px; cursor: pointer; transition: background 0.2s; align-items: center; font-size: 14px; }
.dropdown-item:hover { background: #F5F4F2; }
.dropdown-name { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #1a1a1a; }
.dropdown-info { font-size: 13px; color: #666; }
.flag-icon { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.dropdown-fee { font-size: 14px; color: #999; }
.dropdown-return { font-size: 14px; font-weight: 500; text-align: right; }
.dropdown-return.positive { color: #00A86B; }
.dropdown-return.negative { color: #E74C3C; }

/* AI Suggestions and Content Styles */
.ai-suggestions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; width: 100%; }
.ai-suggestion-card { padding: 16px; background: #F5F4F2; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s; font-size: 13px; color: #1a1a1a; text-align: left; }
.ai-suggestion-card:hover { background: #E9E7E2; transform: translateY(-1px); }
.savings-packages { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; width: 100%; max-width: 100%; }
.funds-list { display: flex; flex-direction: column; gap: 0; border: 1px solid #EDEDED; border-radius: 12px; overflow: hidden; background: #FFFFFF; margin-bottom: 24px; }
.chat-message .funds-list { max-width: 70%; }
.fund-header { display: grid; grid-template-columns: 40px 2fr 1fr 1fr 24px; padding: 12px 20px; align-items: center; gap: 16px; background: #F5F4F2; border-bottom: 1px solid #EDEDED; font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.fund-header-return { text-align: right; }
.fund-item { display: grid; grid-template-columns: 40px 2fr 1fr 1fr 24px; padding: 16px 20px; align-items: center; gap: 16px; border-bottom: 1px solid #EDEDED; transition: background 0.2s; cursor: pointer; }
.fund-item:last-child { border-bottom: none; }
.fund-item:hover { background: #F7F6F5; }
.fund-rank { font-size: 14px; font-weight: 500; color: #999; }
.fund-name { display: flex; align-items: center; gap: 12px; }
.fund-flag { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.fund-chevron { color: #999; }
.fund-title { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.fund-fee { font-size: 14px; color: #666; }
.fund-return { font-size: 15px; font-weight: 500; text-align: right; }
.fund-return.positive { color: #00A86B; }
.fund-return.negative { color: #E74C3C; }
.package-card { width: 70%; max-width: 70%; background: #FFFFFF; border: none; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; transition: all 0.2s; box-sizing: border-box; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02); }
.package-card:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02); }
.package-header { display: flex; flex-direction: column; gap: 6px; }
.package-title { font-size: 18px; font-weight: 600; color: #1a1a1a; }
.package-subtitle { font-size: 13px; color: #666; line-height: 1.4; }
.package-allocation { display: flex; align-items: center; gap: 24px; padding: 12px 0; border-top: 1px solid #EDEDED; border-bottom: 1px solid #EDEDED; }
.package-pie { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; }
.allocation-breakdown { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; flex: 1; }
.allocation-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.allocation-label { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.allocation-value { font-weight: 600; color: #1a1a1a; font-size: 16px; }
.package-details { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.detail-row { display: flex; flex-direction: column; gap: 8px; }
.detail-row.full-width { grid-column: 1 / -1; }
.detail-label { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-size: 18px; font-weight: 600; color: #1a1a1a; }
.detail-subvalue { font-size: 12px; color: #666; margin-top: 8px; }
.package-buttons { display: flex; gap: 8px; margin-top: 8px; }
.package-secondary-btn { flex: 1; height: 50px; padding: 0 16px; background: #F5F4F2; color: #1a1a1a; border: none; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.package-secondary-btn:hover { background: #E9E7E2; }
.package-content-btn { flex: 1; height: 50px; padding: 0 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.package-content-btn:hover { background: #333; }
.toggle-expanded { display: none; }

/* AI Carousel Styles */
.ai-carousel-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 400; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.ai-carousel-overlay.active { display: flex; opacity: 1; }
.ai-carousel-popup { background: #ffffff; border-radius: 24px; width: 90%; max-width: 600px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); position: relative; z-index: 401; overflow: hidden; transform: scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.ai-carousel-overlay.active .ai-carousel-popup { transform: scale(1); opacity: 1; }
.ai-carousel-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: rgba(255, 255, 255, 0.9); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #1a1a1a; transition: background 0.2s; z-index: 10; }
.ai-carousel-close:hover { background: #ffffff; }
.ai-carousel-container { position: relative; width: 100%; }
.ai-carousel-slides { display: flex; transition: transform 0.4s ease; }
.ai-carousel-slide { min-width: 100%; display: flex; flex-direction: column; }
.ai-carousel-image { width: 100%; height: 300px; object-fit: cover; background: #F5F4F2; display: flex; align-items: center; justify-content: center; font-size: 48px; background-size: cover; background-position: center; }
.ai-carousel-image.slide1 { background-image: url('img/carousel1.png'); }
.ai-carousel-image.slide2 { background-image: url('img/carousel2.png'); }
.ai-carousel-image.slide3 { background-image: url('img/carousel3.png'); }
.ai-carousel-content { padding: 40px; }
.ai-carousel-title { font-size: 24px; font-weight: 500; color: #1a1a1a; margin-bottom: 16px; }
.ai-carousel-text { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 32px; }
.ai-carousel-nav { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.ai-carousel-nav-btn { padding: 12px 24px; border: none; background: #F5F4F2; color: #1a1a1a; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.ai-carousel-nav-btn:hover { background: #E9E7E2; }
.ai-carousel-nav-btn.primary { background: #1a1a1a; color: #ffffff; }
.ai-carousel-nav-btn.primary:hover { background: #333; }
.ai-carousel-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ai-carousel-nav-btn:disabled:hover { background: #F5F4F2; }
.ai-carousel-bullets { display: flex; gap: 8px; justify-content: center; padding: 0 40px 32px; }
.ai-carousel-bullet { width: 8px; height: 8px; border-radius: 50%; background: #EDEDED; cursor: pointer; transition: all 0.3s; }
.ai-carousel-bullet.active { background: #1a1a1a; width: 24px; border-radius: 4px; }

/* Financial Dashboard Styles */
.dashboard-container { 
    padding: 40px; 
    max-width: 1440px; 
    width: 100%; 
    margin: 0 auto; 
    min-height: calc(100vh - 98px); 
    background: #F7F6F5; 
    color: white; 
}

.dashboard-header { 
    margin-bottom: 40px; 
}

.dashboard-title { 
    font-size: 40px; 
    font-weight: 500; 
    color: #1a1a1a; 
    margin: 0 0 16px 0; 
    line-height: 1.2; 
}

.dashboard-description { 
    font-size: 18px; 
    color: #1a1a1a; 
    margin: 0; 
    line-height: 1.4; 
}

.portfolio-header { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    margin-bottom: 24px; 
}

.portfolio-value-section { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.portfolio-value { 
    font-size: 32px; 
    font-weight: 500; 
    color: #1a1a1a; 
    margin: 0 0 8px 0; 
    line-height: 1.2; 
}

.portfolio-description { 
    font-size: 14px; 
    color: #1a1a1a; 
    margin: 0; 
    line-height: 1.4; 
}

.portfolio-change { 
    display: flex; 
    align-items: center; 
}

.change-badge { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 500; 
}

.change-badge.positive { 
    background: #EFF9F4; 
    color: #27AE60; 
}

.change-arrow { 
    flex-shrink: 0; 
}

.dashboard-content { 
    display: flex; 
    gap: 16px; 
    align-items: stretch; 
}

.dashboard-left-column { 
    flex: 2; 
    width: calc(66.666% - 8px); 
}

.dashboard-right-column { 
    flex: 1; 
    width: calc(33.333% - 8px); 
}

.dashboard-card { 
    background: white; 
    border-radius: 16px; 
    padding: 24px; 
    height: 100%; 
}

.chart-container { 
    height: 100%; 
}

.chart-header { 
    margin-bottom: 24px; 
}

.chart-title { 
    font-size: 18px; 
    font-weight: 500; 
    color: #1a1a1a; 
    margin: 0; 
}

.chart-area { 
    width: 100%; 
    height: 300px; 
}

.portfolio-chart { 
    width: 100%; 
    height: 100%; 
}

.chart-label { 
    font-size: 12px; 
    fill: #666; 
    font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}

.tooltip-text { 
    font-size: 12px; 
    fill: #1a1a1a; 
    font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}

.buy-securities { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    gap: 20px; 
}

.amount-section { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}

.buy-title { 
    font-size: 18px; 
    font-weight: 500; 
    color: #1a1a1a; 
    margin: 0; 
}

.security-selector { 
    width: 100%; 
    position: relative; 
}

.security-dropdown { 
    width: 100%; 
    height: 56px; 
    padding: 0 16px; 
    background: #F5F4F2; 
    border: none; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer; 
    transition: background 0.2s; 
    font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}

.security-dropdown:hover { 
    background: #E9E7E2; 
}

.flag-icon { 
    flex-shrink: 0; 
}

.security-name { 
    flex: 1; 
    text-align: left; 
    font-size: 14px; 
    color: #1a1a1a; 
}

.dropdown-arrow { 
    color: #666; 
    flex-shrink: 0; 
    transition: transform 0.2s; 
}

.security-dropdown.active .dropdown-arrow { 
    transform: rotate(180deg); 
}

.security-dropdown-menu { 
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0; 
    right: 0; 
    background: white; 
    border: 1px solid #EDEDED; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    z-index: 100; 
    max-height: 379px; 
    overflow-y: auto; 
    display: none; 
}

.security-dropdown-menu.active { 
    display: block; 
}

.security-dropdown-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 16px; 
    cursor: pointer; 
    transition: background 0.2s; 
    border-bottom: 1px solid #F5F4F2; 
}

.security-dropdown-item:last-child { 
    border-bottom: none; 
}

.security-dropdown-item:hover { 
    background: #F5F4F2; 
}

.security-dropdown-item .flag-icon { 
    flex-shrink: 0; 
}

.security-dropdown-item span { 
    font-size: 14px; 
    color: #1a1a1a; 
}

.security-search-container { 
    position: sticky; 
    top: 0; 
    background: #fff; 
    z-index: 10; 
    padding: 16px; 
    border-bottom: 1px solid #e0e0e0; 
}

.security-search-input { 
    width: 100%; 
    height: 50px; 
    padding: 0 12px; 
    border: 1px solid #ededed; 
    border-radius: 8px; 
    font-size: 14px; 
    color: #1a1a1a; 
    background: #fff; 
    outline: none; 
    transition: all 0.2s ease; 
}

.security-search-input:focus { 
    border-color: #1a1a1a; 
    background: white; 
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1); 
}

.security-search-input::placeholder { 
    color: #999; 
}

.amount-display { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.amount-input-container { 
    position: relative; 
    width: 100%; 
}

.amount-input { 
    font-size: 48px; 
    font-weight: 500; 
    color: #1a1a1a; 
    font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    border: none; 
    background: #fff; 
    outline: none; 
    text-align: center; 
    width: 100%; 
    padding: 8px; 
    border-radius: 12px; 
    transition: background-color 0.2s ease; 
}

.amount-input::placeholder { 
    color: #D4D3D0; 
}

.amount-input:focus { 
    background-color: #F5F4F2; 
}

.balance-info { 
    text-align: center; 
    margin-top: 16px; 
}

.balance-text { 
    font-size: 14px; 
    color: #1a1a1a; 
    line-height: 1.4; 
}

.action-buttons { 
    display: flex; 
    gap: 12px; 
    margin-top: auto; 
}

.action-btn { 
    flex: 1; 
    height: 50px; 
    border: none; 
    border-radius: 12px; 
    font-size: 14px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: all 0.2s; 
    font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}

.action-btn.secondary { 
    background: #F5F4F2; 
    color: #1a1a1a; 
}

.action-btn.secondary:hover { 
    background: #E9E7E2; 
}

.card-content { 
    padding: 24px; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
}

.card-title { 
    font-size: 18px; 
    font-weight: 500; 
    color: #1a1a1a; 
    margin: 0 0 8px 0; 
}

.card-description { 
    font-size: 14px; 
    color: #666; 
    margin: 0; 
}

.section-title { 
    font-size: 18px; 
    font-weight: 500; 
    color: #1a1a1a; 
    margin: 0 0 20px 0; 
}

.section-title.small { 
    font-size: 12px; 
    margin: 0;
    color: #7E7E7E;
}

.accounts-section, .holdings-section { 
    height: 100%; 
}

.accounts-header { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 16px auto; 
    padding: 0 0 12px 0; 
    border-bottom: 1px solid #f0f0f0; 
}

.accounts-list { 
    display: flex; 
    flex-direction: column; 
}

.account-row { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 16px auto; 
    align-items: center; 
    padding: 20px 0; 
    border-bottom: 1px solid #f0f0f0; 
    cursor: pointer; 
    transition: background-color 0.2s ease; 
}

.account-row:hover { 
    background-color: #F5F4F2; 
}

.account-row:last-child { 
    border-bottom: none; 
    padding-bottom: 20px; 
}


.account-info { 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 12px; 
}

.account-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    background-color: #F5F4F2; 
    border-radius: 50%; 
    color: #1a1a1a; 
    flex-shrink: 0; 
}

.account-details { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.account-name { 
    font-size: 16px; 
    font-weight: 500; 
    color: #1a1a1a; 
}

.account-type { 
    font-size: 14px; 
    color: #666; 
}

.account-balance { 
    font-size: 14px; 
    font-weight: 500; 
    color: #1a1a1a; 
    margin-right: 16px; 
}

.account-type { 
    font-size: 12px; 
    color: #999; 
}

.account-change { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    font-size: 14px; 
    font-weight: 500; 
    color: #27AE60; 
    justify-content: flex-end; 
}

.account-chevron { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #999; 
    cursor: pointer; 
    transition: color 0.2s ease; 
}

.account-chevron:hover { 
    color: #666; 
}

.holdings-header { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    padding: 0 0 12px 0; 
    border-bottom: 1px solid #f0f0f0; 
}

.header-cell { 
    font-size: 12px; 
    font-weight: 500; 
    color: #999; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.header-cell:nth-child(2), 
.header-cell:nth-child(3) { 
    text-align: right; 
}

.accounts-header .header-cell:nth-child(2), 
.accounts-header .header-cell:nth-child(3), 
.accounts-header .header-cell:nth-child(4), 
.accounts-header .header-cell:nth-child(5) { 
    text-align: right; 
}

.account-row > div:nth-child(5) { 
    text-align: right; 
}

.account-remaining { 
    font-size: 14px; 
    font-weight: 500; 
    color: #1a1a1a; 
    text-align: right; 
}

.account-shared { 
    font-size: 14px; 
    font-weight: 500; 
    color: #666; 
    text-align: right; 
}

.holdings-list { 
    display: flex; 
    flex-direction: column; 
}

.holding-item { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    align-items: center; 
    padding: 20px 0; 
    border-bottom: 1px solid #f0f0f0; 
}

.holding-item:last-child { 
    border-bottom: none; 
    padding-bottom: 0; 
}

.holding-info { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.holding-name { 
    font-size: 16px; 
    font-weight: 500; 
    color: #1a1a1a; 
}

.holding-dev { 
    font-size: 12px; 
    color: #999; 
}

.dev-value.positive { 
    color: #27AE60; 
    font-weight: 500; 
}

.holding-value { 
    font-size: 14px; 
    font-weight: 500; 
    color: #1a1a1a; 
    text-align: right; 
}

.holding-change { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    font-size: 14px; 
    font-weight: 500; 
    color: #27AE60; 
    justify-content: flex-end; 
}

.holding-item > div:nth-child(2), 
.holding-item > div:nth-child(3) { 
    text-align: right; 
}

.change-arrow { 
    color: #27AE60; 
}

.action-btn.primary { 
    background: #1a1a1a; 
    color: white; 
}

.action-btn.primary:hover { 
    background: #333; 
}

/* ISK Modal Styles */
/* Podcast Popup */
.podcast-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 200; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.podcast-overlay.active { display: flex; opacity: 1; }
.podcast-popup { background: #ffffff; border-radius: 24px; padding: 32px; width: 500px; max-width: 500px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); position: relative; z-index: 201; transform: scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.podcast-overlay.active .podcast-popup { transform: scale(1); opacity: 1; }
.podcast-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.podcast-popup-title { font-size: 24px; font-weight: 500; color: #1a1a1a; }
.podcast-popup-close { width: 32px; height: 32px; border: none; background: #F5F4F2; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #1a1a1a; transition: background 0.2s; }
.podcast-popup-close:hover { background: #E9E7E2; }
.podcast-hero { display: flex; justify-content: center; margin-bottom: 24px; }
.podcast-hero-icon { width: 120px; height: 120px; border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.podcast-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.podcast-content { display: flex; flex-direction: column; gap: 24px; }
.podcast-description { font-size: 15px; color: #666; line-height: 1.6; text-align: center; }
.podcast-features { display: flex; flex-direction: column; gap: 16px; }
.podcast-feature { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: #F5F4F2; border-radius: 12px; }
.podcast-feature-icon { width: 24px; height: 24px; flex-shrink: 0; stroke: #1a1a1a; margin-top: 2px; }
.podcast-feature-title { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 4px; }
.podcast-feature-text { font-size: 13px; color: #666; line-height: 1.4; }
.podcast-cta-button { width: 100%; padding: 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.podcast-cta-button:hover { background: #333; }

/* ISK Popup */
.isk-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); z-index: 200; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.isk-overlay.active { display: flex; opacity: 1; }
.isk-popup { background: #ffffff; border-radius: 24px; padding: 32px; width: 600px; max-width: 600px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); position: relative; z-index: 201; transform: scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.isk-overlay.active .isk-popup { transform: scale(1); opacity: 1; }
.isk-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.isk-popup-title { font-size: 24px; font-weight: 500; color: #1a1a1a; }
.isk-popup-close { width: 32px; height: 32px; border: none; background: #F5F4F2; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #1a1a1a; transition: background 0.2s; }
.isk-popup-close:hover { background: #E9E7E2; }
.isk-progress-container { margin-bottom: 32px; }
.isk-progress-steps { display: flex; gap: 8px; margin-bottom: 8px; }
.isk-progress-step { flex: 1; height: 4px; background: #EDEDED; border-radius: 2px; transition: background 0.3s; }
.isk-progress-step.active { background: #1a1a1a; }
.isk-step-indicator { font-size: 13px; color: #666; text-align: right; }
.isk-step { display: none; }
.isk-step.active { display: block; }
.isk-subtitle { font-size: 16px; color: #000000; margin-bottom: 16px; line-height: 1.5; font-weight: 500; }
.isk-selected-category { display: flex; align-items: center; gap: 12px; padding: 16px; background: #F5F4F2; border-radius: 12px; margin-bottom: 24px; }
.isk-selected-category-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #ffffff; }
.isk-selected-category-icon svg { width: 20px; height: 20px; stroke: #1a1a1a; }
.isk-selected-category-info { flex: 1; }
.isk-selected-category-name { font-size: 16px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px; }
.isk-selected-category-description { font-size: 12px; color: #666; line-height: 1.4; }
.category-grid { display: flex; flex-direction: column; gap: 12px; }
.category-item { padding: 16px; border: 1px solid #EDEDED; border-radius: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 16px; width: 100%; }
.category-item:hover { border-color: #CCCCCC; background: #F7F6F5; }
.category-item:hover .category-icon { background: #fff; }
.category-item.selected { border-color: #000000; background: #F5F4F2; }
.category-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #F5F4F2; transition: background 0.2s; }
.category-icon svg { width: 20px; height: 20px; stroke: #1a1a1a; }
.category-info { flex: 1; }
.category-chevron { width: 20px; height: 20px; flex-shrink: 0; color: #999; }
.category-chevron svg { width: 100%; height: 100%; stroke: currentColor; }
.category-name { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px; }
.category-description { font-size: 12px; color: #666; line-height: 1.4; }
.isk-field { margin-bottom: 24px; }
.isk-label { display: block; font-size: 13px; font-weight: 500; color: #666; margin-bottom: 8px; }
.isk-input { width: 100%; padding: 14px 16px; border: 1px solid #EDEDED; border-radius: 12px; font-size: 15px; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; outline: none; transition: border 0.2s; }
.isk-input:focus { border-color: #999; }
.isk-checkbox-group { margin-bottom: 24px; }
.isk-checkbox-item { display: flex; gap: 12px; margin-bottom: 16px; cursor: pointer; }
.isk-checkbox { width: 20px; height: 20px; border: 2px solid #EDEDED; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.isk-checkbox-item input[type="checkbox"] { display: none; }
.isk-checkbox-item input[type="checkbox"]:checked + .isk-checkbox { background: #1a1a1a; border-color: #333; }
.isk-checkbox-item input[type="checkbox"]:checked + .isk-checkbox::after { content: '✓'; color: #ffffff; font-size: 14px; }
.isk-checkbox-content { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.isk-checkbox-label { font-size: 14px; color: #1a1a1a; line-height: 1.5; }
.isk-checkbox-link { font-size: 13px; color: #0066cc; text-decoration: underline; transition: color 0.2s; }
.isk-checkbox-link:hover { color: #004499; }
.isk-button-container { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }
.isk-button { width: 30%; padding: 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.isk-button:hover { background: #333; }
.isk-button:disabled { opacity: 0.4; cursor: not-allowed; }
.isk-button:disabled:hover { background: #1a1a1a; }
.isk-button-secondary { width: 30%; padding: 16px; background: #F5F4F2; color: #1a1a1a; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.isk-button-secondary:hover { background: #E9E7E2; }
.isk-button.loading { position: relative; color: transparent; pointer-events: none; }
.isk-button.loading::after { content: ''; position: absolute; top: calc(50% - 10px); left: calc(50% - 10px); width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.isk-success-view { display: none; text-align: center; padding: 0; }
.isk-success-view.active { display: block; animation: fadeIn 0.4s ease; }
.isk-success-icon { width: 80px; height: 80px; margin: 0 auto 24px; background: #00A86B; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: successPop 0.5s ease; }
.isk-success-icon svg { width: 40px; height: 40px; stroke: #ffffff; stroke-width: 3; }
.isk-success-title { font-size: 24px; font-weight: 500; color: #1a1a1a; margin-bottom: 12px; }
.isk-success-text { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 32px; }
.isk-success-actions-title { font-size: 16px; font-weight: 500; color: #1a1a1a; margin-bottom: 16px; text-align: left; }
.isk-success-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.isk-success-action-item { padding: 16px; border: 1px solid #EDEDED; border-radius: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: #ffffff; }
.isk-success-action-item:hover { border-color: #000000; background: #F7F6F5; }
.isk-success-action-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #F5F4F2; }
.isk-success-action-icon svg { width: 20px; height: 20px; stroke: #1a1a1a; }
.isk-success-action-info { flex: 1; }
.isk-success-action-name { font-size: 16px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px; }
.isk-success-action-description { font-size: 12px; color: #666; line-height: 1.4; }
.isk-success-action-chevron { width: 20px; height: 20px; flex-shrink: 0; color: #999; }
.isk-success-action-chevron svg { width: 100%; height: 100%; stroke: currentColor; }
.isk-success-button { width: 40%; padding: 16px; background: #1a1a1a; color: #ffffff; border: none; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-left: auto; display: block; }
.isk-success-button:hover { background: #333; }

/* Dark Mode Overrides */
body.dark-mode {
    /* Sidebars and panels */
    .left-sidebar { background: var(--bg-primary); border-right-color: #242424; }
    .sidebar-logo-img.dark { display: none; }
    .sidebar-logo-img.light { display: block; }
    .sidebar-logo-collapsed { color: var(--text-primary); }
    .nav-item-sidebar { color: var(--text-tertiary); }
    .nav-item-sidebar:hover { background: var(--bg-tertiary); color: #fff; }
    .nav-item-sidebar.active { background: var(--bg-tertiary); color: var(--text-primary); }
    .nav-item-sidebar svg { stroke: var(--text-tertiary); }
    .nav-item-sidebar img { filter: brightness(0) saturate(100%) invert(60%); }
    .nav-item-sidebar:hover svg { stroke: #fff; }
    .nav-item-sidebar:hover img { filter: brightness(0) saturate(100%) invert(100%); }
    .nav-item-sidebar.active svg { stroke: var(--text-primary); }
    .nav-item-sidebar.active img { filter: brightness(0) saturate(100%) invert(100%); }
    .minimize-icon-expanded { filter: brightness(0) saturate(100%) invert(60%); }
    #minimizeBtn:hover .minimize-icon-expanded { filter: brightness(0) saturate(100%) invert(100%); }
    .minimize-icon-collapsed { filter: brightness(0) saturate(100%) invert(60%); }
    #minimizeBtn:hover .minimize-icon-collapsed { filter: brightness(0) saturate(100%) invert(100%); }
    .nav-label-collapsed { color: #999; }
    .nav-item-sidebar:hover .nav-label-collapsed { color: #fff; }
    .nav-item-sidebar.active .nav-label-collapsed { color: #fff; }
    .sidebar-divider-line { background: #242424; }
    .sidebar-user { }
    .sidebar-user:hover { background: var(--bg-tertiary); }
    .sidebar-user-avatar { background: var(--bg-tertiary); color: var(--text-primary); }
    .sidebar-user:hover .sidebar-user-avatar { background: var(--bg-quaternary); }
    .left-sidebar.collapsed .sidebar-user:hover { background: var(--bg-tertiary); }
    .left-sidebar.collapsed .sidebar-user:hover .sidebar-user-avatar { background: var(--bg-quaternary); }
    .sidebar-user-name { color: var(--text-primary); }
    .sidebar-user-plan { color: var(--text-quaternary); }
    
    /* Left Panel */
    .left-panel { background: var(--bg-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
    .panel-header { box-shadow: none; }
    .panel-title { color: var(--text-primary); }
    .panel-collapse-btn { color: var(--text-tertiary); }
    .panel-collapse-btn:hover, .panel-header:hover .panel-collapse-btn { color: var(--text-primary); background: var(--bg-tertiary); }
    .panel-collapse-icon-expanded,
    .panel-collapse-icon-collapsed { filter: brightness(0) saturate(100%) invert(27%); }
    .panel-collapse-btn:hover .panel-collapse-icon-expanded,
    .panel-header:hover .panel-collapse-icon-expanded,
    .panel-collapse-btn:hover .panel-collapse-icon-collapsed,
    .panel-header:hover .panel-collapse-icon-collapsed { filter: brightness(0) saturate(100%) invert(100%); }
    .nav-section { }
    .nav-item { }
    .nav-item:hover { background: var(--bg-tertiary); }
    .nav-item.active { background: var(--bg-tertiary); }
    .nav-item.active:hover { background: var(--bg-tertiary); }
    .nav-text { color: var(--text-primary); }
    .nav-label { color: var(--text-quaternary); }
    .section-header:hover { background: var(--bg-tertiary); }
    .section-title { color: var(--text-secondary); }
    .section-arrow { color: var(--text-quaternary); }
    .section-list-item { color: var(--text-primary); }
    .section-list-item:hover { background: var(--bg-tertiary); }
    .ai-fund-box { background: #303030; border-color: #414141; }
    .ai-fund-close { background: #414141; color: var(--text-tertiary); }
    .ai-fund-close:hover { background: #505050; color: var(--text-primary); }
    .ai-fund-title { color: var(--text-primary); }
    .ai-fund-description { color: var(--text-secondary); }
    .ai-fund-button { background: #414141; color: var(--text-primary); }
    .ai-fund-button:hover { background: #505050; }
    .isk-progress-step { background: #242424; }
    .isk-progress-step.active { background: #999; }
    
    /* Carousel Dark Mode */
    .ai-carousel-overlay { background: rgba(0, 0, 0, 0.6); }
    .ai-carousel-popup { background: #303030; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
    .ai-carousel-close { background: rgba(255, 255, 255, 0.1); color: #fff; }
    .ai-carousel-close:hover { background: rgba(255, 255, 255, 0.2); }
    .ai-carousel-title { color: #fff; }
    .ai-carousel-text { color: #b3b3b3; }
    .ai-carousel-nav-btn { background: #414141; color: #fff; }
    .ai-carousel-nav-btn:hover { background: #505050; }
    .ai-carousel-nav-btn.primary { background: #fff; color: #1a1a1a; }
    .ai-carousel-nav-btn.primary:hover { background: #f0f0f0; }
    .ai-carousel-nav-btn:disabled { background: #414141; opacity: 0.4; }
    .ai-carousel-nav-btn:disabled:hover { background: #414141; }
    .ai-carousel-bullet { background: #505050; }
    .ai-carousel-bullet.active { background: #fff; }
    
    /* Top Bar */
    .top-bar { background: var(--bg-primary); border-bottom-color: #242424; }
    .top-bar-logo.dark { display: none; }
    .top-bar-logo.light { display: block; }
    .balance-label { color: var(--text-tertiary); }
    .balance-amount { color: var(--text-primary); }
    .top-bar-divider { background: #242424; }
    .search-input { background: var(--bg-tertiary); color: var(--text-primary); }
    .search-input::placeholder { color: var(--text-quaternary); }
    .search-input:focus { background: var(--bg-quaternary); }
    .search-icon { color: var(--text-quaternary); }
    #cmdKBadge { background: #404040 !important; color: #fff !important; }
    .top-bar-button { background: transparent; color: var(--text-primary); }
    .top-bar-button:hover { background: var(--bg-tertiary); }
    .top-bar-deposit-btn { background: var(--bg-tertiary); color: var(--text-primary); }
    .top-bar-deposit-btn:hover { background: var(--bg-quaternary); }
    .avatar-dropdown { background: var(--bg-primary); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); }
    .avatar-dropdown-name { color: var(--text-primary); }
    .avatar-dropdown-plan { color: #a78bfa; }
    .avatar-dropdown-email { color: var(--text-secondary); }
    .avatar-dropdown-divider { background: var(--border-primary); }
    .avatar-dropdown-item { color: var(--text-primary); }
    .avatar-dropdown-item:hover { background: var(--bg-tertiary); }
    .avatar-dropdown-item svg { color: var(--text-tertiary); }
    .mode-toggle-slider { background-color: var(--bg-tertiary); }
    .mode-toggle-thumb { background-color: #ffffff; }
    .mode-toggle input:checked + .mode-toggle-slider { background-color: #505050; }
    .mode-toggle input:checked + .mode-toggle-slider .mode-toggle-thumb { background-color: #1a1a1a; }
    
    
    /* Content Wrapper */
    .content-wrapper { background: #212121; }
    
    /* Chat Area */
    .chat-area { background: var(--bg-secondary); }
    .welcome-message { color: var(--text-primary); }
    .suggestions-heading { color: var(--text-primary); }
    .suggestion-card { background: #303030; color: var(--text-primary); box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.1); }
    .suggestion-card:hover { box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.15); }
    .suggestion-icon { background: #303030; border-color: #505050; color: #fff; }
    .suggestion-icon svg { stroke: #fff; }
    .help-text { color: var(--text-primary); }
    .chat-input { background: #303030; color: var(--text-primary); border-color: #414141; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); }
    .chat-input::placeholder { color: var(--text-quaternary); }
    .chat-input:focus { border-color: var(--border-primary); }
    .input-action-btn { background: var(--text-primary); color: var(--bg-primary); }
    .input-action-btn:hover { background: var(--text-secondary); }
    .input-action-btn.voice, .input-action-btn.attach { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border-primary); }
    .input-action-btn.voice { background: #303030; border: none; }
    .input-action-btn.voice:hover { background: #181818; }
    .input-action-btn.voice img { filter: brightness(0) invert(1); }
    .input-action-btn.attach { background: #303030; border: none; }
    .input-action-btn.attach:hover { background: #181818; }
    .input-action-btn.voice:hover, .input-action-btn.attach:hover { background: var(--bg-tertiary); border-color: var(--border-primary); }
    .chat-message.user .message-content { background: #323232; color: var(--text-primary); }
    .message-content { color: var(--text-primary); }
    .chat-area.chat-active .input-container::before { background: linear-gradient(to bottom, rgba(33, 33, 33, 0) 0%, rgba(33, 33, 33, 1) 50%); }
    
    /* Analysis */
    .analysis-container { background: #303030; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); }
    .analysis-description { color: var(--text-primary); }
    .analysis-step-title { color: #b3b3b3; }
    .analysis-step-icon.pending .step-circle { background: #505050; border-color: #505050; }
    .analysis-step-icon.completed img { filter: brightness(0) invert(1); }
    .analysis-badge { background: #414141; color: var(--text-primary); }
    .analysis-step:not(:last-child)::after { background: #505050; }
    .typing-star { color: #fff; }
    .step-progress-circle { background: conic-gradient(#606060 0deg, #fff 90deg, #606060 90deg); }
    .progress-circle-fill { background: #303030; }
    
    /* Search */
    .search-overlay { background: rgba(0, 0, 0, 0.5); }
    .search-dropdown { background: var(--bg-primary); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); border-color: var(--border-primary); }
    .dropdown-header { color: var(--text-quaternary); border-bottom-color: var(--border-primary); }
    .dropdown-item:hover { background: var(--bg-tertiary); }
    .dropdown-name { color: var(--text-primary); }
    .dropdown-info { color: var(--text-secondary); }
    .dropdown-fee { color: var(--text-quaternary); }
    
    /* AI Suggestions */
    .ai-suggestion-card { background: var(--bg-tertiary); color: var(--text-primary); }
    .ai-suggestion-card:hover { background: var(--bg-quaternary); }
    
    /* Packages */
    .package-card { background: var(--bg-primary); box-shadow: var(--shadow-sm); }
    .package-title { color: var(--text-primary); }
    .package-subtitle { color: var(--text-secondary); }
    .package-allocation { border-top-color: var(--border-primary); border-bottom-color: var(--border-primary); }
    .allocation-label { color: var(--text-secondary); }
    .allocation-value { color: var(--text-primary); }
    .detail-label { color: var(--text-secondary); }
    .detail-value { color: var(--text-primary); }
    .detail-subvalue { color: var(--text-secondary); }
    .package-secondary-btn { background: var(--bg-tertiary); color: var(--text-primary); }
    .package-secondary-btn:hover { background: var(--bg-quaternary); }
    .package-content-btn { background: var(--text-primary); color: var(--bg-primary); }
    .package-content-btn:hover { background: var(--text-secondary); }
    
    /* Funds */
    .funds-list { background: var(--bg-primary); border-color: var(--border-primary); }
    .fund-header { background: var(--bg-tertiary); border-bottom-color: var(--border-primary); color: var(--text-tertiary); }
    .fund-item { border-bottom-color: var(--border-primary); }
    .fund-item:hover { background: var(--bg-secondary); }
    .fund-rank { color: var(--text-quaternary); }
    .fund-title { color: var(--text-primary); }
    .fund-fee { color: var(--text-secondary); }
    .fund-chevron { color: var(--text-quaternary); }
    
    /* Package Sidebar */
    .package-sidebar-overlay { background: rgba(0, 0, 0, 0.5); }
    .package-sidebar { background: var(--bg-primary); }
    .package-sidebar.active { box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5); }
    .package-sidebar-header { border-bottom-color: var(--border-primary); }
    .package-sidebar-close { background: var(--bg-tertiary); color: var(--text-primary); }
    .package-sidebar-close:hover { background: var(--bg-quaternary); }
    .package-sidebar-title { color: var(--text-primary); }
    .package-sidebar-subtitle { color: var(--text-secondary); }
    .package-sidebar-section-title { color: var(--text-primary); }
    .package-sidebar-allocation { background: var(--bg-secondary); }
    .package-sidebar-breakdown-label { color: var(--text-secondary); }
    .package-sidebar-breakdown-value { color: var(--text-primary); }
    .package-sidebar-detail { background: var(--bg-secondary); }
    .package-sidebar-detail-label { color: var(--text-secondary); }
    .package-sidebar-detail-value { color: var(--text-primary); }
    .package-sidebar-button { background: var(--bg-primary); border-top-color: var(--border-primary); }
    .package-sidebar-button button { background: var(--text-primary); color: var(--bg-primary); }
    .package-sidebar-button button:hover { background: var(--text-secondary); }
    .package-sidebar-holding { background: var(--bg-secondary); }
    .package-sidebar-holding-name { color: var(--text-primary); }
    .package-sidebar-holding-detail { color: var(--text-secondary); }
    .package-sidebar-holding-value { color: var(--text-primary); }
    
    /* Profile Sidebar */
    .profile-sidebar-overlay { background: rgba(0, 0, 0, 0.5); }
    .profile-sidebar { background: var(--bg-primary); }
    .profile-sidebar.active { box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5); }
    .profile-sidebar-header { border-bottom-color: var(--border-primary); }
    .profile-sidebar-close { background: var(--bg-tertiary); color: var(--text-primary); }
    .profile-sidebar-close:hover { background: var(--bg-quaternary); }
    .profile-sidebar-title { color: var(--text-primary); }
    .profile-sidebar-subtitle { color: var(--text-secondary); }
    .profile-sidebar-section-title { color: var(--text-primary); }
    .profile-sidebar-avatar { background: var(--text-primary); color: var(--bg-primary); }
    .profile-sidebar-user-name { color: var(--text-primary); }
    .profile-sidebar-user-email { color: var(--text-secondary); }
    .profile-sidebar-subscription-plan { background: url('img/premiumbg.png'); }
    .profile-sidebar-subscription-status { background: var(--bg-secondary); }
    .profile-sidebar-subscription-label { color: var(--text-secondary); }
    .profile-sidebar-subscription-value { color: var(--text-primary); }
    .profile-sidebar-info-item { background: var(--bg-secondary); }
    .profile-sidebar-info-label { color: var(--text-secondary); }
    .profile-sidebar-info-value { color: var(--text-primary); }
    .profile-sidebar-setting-item { background: var(--bg-secondary); color: var(--text-primary); }
    .profile-sidebar-setting-item:hover { background: var(--bg-quaternary); }
    .profile-sidebar-button { background: var(--bg-primary); border-top-color: var(--border-primary); }
    .profile-logout-btn { background: var(--bg-tertiary); color: var(--text-primary); }
    .profile-logout-btn:hover { background: var(--bg-quaternary); }
    
    /* Modals */
    .transfer-overlay, .bank-overlay, .isk-overlay, .podcast-overlay { background: rgba(0, 0, 0, 0.7); }
    .transfer-popup, .bank-popup, .isk-popup, .podcast-popup { background: var(--bg-primary); box-shadow: var(--shadow-lg); }
    .transfer-popup-title, .bank-popup-title, .isk-popup-title, .podcast-popup-title { color: var(--text-primary); }
    .transfer-popup-close, .bank-popup-close, .isk-popup-close, .podcast-popup-close { background: var(--bg-tertiary); color: var(--text-primary); }
    .transfer-popup-close:hover, .bank-popup-close:hover, .isk-popup-close:hover, .podcast-popup-close:hover { background: var(--bg-quaternary); }
    .transfer-tabs, .bank-bankid-tabs { background: var(--bg-tertiary); }
    .transfer-tab, .bank-bankid-tab { color: var(--text-tertiary); }
    .transfer-tab.active, .bank-bankid-tab.active { background: #606060; color: var(--text-primary); }
    .transfer-label, .isk-label { color: var(--text-secondary); }
    .transfer-input, .isk-input, .transfer-select { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border-primary); }
    .transfer-input:focus, .isk-input:focus, .transfer-select:focus { border-color: var(--border-secondary); }
    .transfer-info { background: var(--bg-tertiary); color: var(--text-secondary); }
    .transfer-button, .isk-button { background: var(--text-primary); color: var(--bg-primary); }
    .transfer-button:hover, .isk-button:hover { background: var(--text-secondary); }
    .isk-button-secondary { background: var(--bg-tertiary); color: var(--text-primary); }
    .isk-button-secondary:hover { background: var(--bg-quaternary); }
    .bank-list { }
    .bank-item { border-color: var(--border-primary); }
    .bank-item:hover { border-color: var(--text-primary); background: var(--bg-secondary); }
    .bank-name { color: var(--text-primary); }
    .account-item { border-color: var(--border-primary); }
    .account-item:hover { border-color: var(--border-secondary); background: var(--bg-secondary); }
    .account-name { color: var(--text-primary); }
    .account-number { color: var(--text-secondary); }
    .category-item { border-color: var(--border-primary); }
    .category-item:hover { border-color: var(--border-secondary); background: var(--bg-secondary); }
    .category-item:hover .category-icon { background: #505050; }
    .category-item.selected { border-color: var(--text-primary); background: var(--bg-tertiary); }
    .category-icon { background: var(--bg-tertiary); }
    .category-icon svg { stroke: var(--text-primary); }
    .category-name { color: var(--text-primary); }
    .category-description { color: var(--text-secondary); }
    .isk-subtitle { color: var(--text-primary); }
    .isk-selected-category { background: var(--bg-tertiary); }
    .isk-selected-category-icon { background: #404040; border-radius: 12px; }
    .isk-selected-category-icon svg { stroke: #fff; }
    .isk-selected-category-name { color: var(--text-primary); }
    .isk-selected-category-description { color: var(--text-secondary); }
    .isk-success-action-item { background: #303030; border-color: var(--border-primary); }
    .isk-success-action-item:hover { border-color: var(--text-primary); background: #414141; }
    .isk-success-action-icon { background: var(--bg-tertiary); }
    .isk-success-action-icon svg { stroke: var(--text-primary); }
    .isk-success-action-name { color: var(--text-primary); }
    .isk-success-action-description { color: var(--text-secondary); }
    .isk-success-actions-title { color: #fff; }
    .isk-success-title { color: #fff; }
    .isk-success-button { background: #fff; color: #1a1a1a; }
    .isk-success-button:hover { background: #f0f0f0; }
    .bank-cancel-button { background: var(--bg-tertiary); color: var(--text-primary); }
    .bank-cancel-button:hover { background: var(--bg-quaternary); }
    .bank-connect-button { background: #ffffff; color: #1a1a1a; }
    .bank-connect-button:hover { background: #f0f0f0; }
    .bank-connect-button:disabled:hover { background: #ffffff; }
    .bank-connect-button.loading::after { border: 3px solid rgba(26,26,26,0.3); border-top-color: #1a1a1a; }
    .bank-bankid-divider-line { background: #333; }
    .bank-bankid-alternate { color: #fff; }
    .account-item.selected .account-check { background: #606060; border-color: #606060; }
    .isk-checkbox { border-color: var(--border-primary); }
    .isk-checkbox-label { color: var(--text-primary); }
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn { display: none; }
.mobile-header-left { display: none; }
.mobile-logo { display: none; }

/* Mobile Menu - Hidden by default */
.mobile-menu {
    display: none;
}
.mobile-menu-overlay {
    display: none;
}
.mobile-avatar-menu {
    display: none;
}
.mobile-avatar-overlay {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide top bar logo in mobile */
    .top-bar-logo {
        display: none !important;
    }
    
    /* Fix keyboard behavior on mobile */
    html {
        height: 100%;
    }
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Mobile Menu Button */
    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mobile-menu-btn { 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        width: 40px; 
        height: 40px; 
        background: transparent; 
        border: none; 
        cursor: pointer; 
        color: #1a1a1a;
        transition: background 0.2s;
        border-radius: 8px;
    }
    .mobile-menu-btn:hover { background: #F5F4F2; }
    .mobile-logo { display: none; height: 20px; width: auto; cursor: pointer; transition: opacity 0.2s; }
    .mobile-logo:hover { opacity: 0.7; }
    .mobile-logo.dark { display: block; }
    body.dark-mode .mobile-logo.dark { display: none; }
    body.dark-mode .mobile-logo.light { display: block; }
    
    /* Mobile Menu Display */
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        bottom: 0;
        background: #ffffff;
        z-index: 400;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        flex-direction: column;
    }
    .mobile-menu.active { transform: translateX(0); }
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 350;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Avatar Menu */
    .mobile-avatar-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        bottom: 0;
        background: #ffffff;
        z-index: 400;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        flex-direction: column;
    }
    .mobile-avatar-menu.active { transform: translateX(0); }
    .mobile-avatar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 350;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .mobile-avatar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .mobile-menu-title {
        font-size: 18px;
        font-weight: 600;
        color: #000;
    }
    .mobile-avatar-name {
        padding: 0px 24px 4px 24px;
        color: #000;
        font-size: 24px;
        font-weight: 600;
    }
    .mobile-avatar-email {
        padding: 0 24px 12px 24px;
        color: #666;
        font-size: 14px;
    }
    .mobile-mode-toggle-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 24px;
        cursor: pointer;
        border-radius: 12px;
        transition: background 0.2s;
    }
    .mobile-mode-toggle-item:hover {
        background: #F5F4F2;
    }
    .mobile-avatar-logout {
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        background: none;
    }
    
    /* Hide desktop avatar dropdown on mobile */
    .avatar-dropdown {
        display: none !important;
    }
    
    /* Mobile mode toggle icons - smaller size */
    .mobile-mode-toggle-item .mode-toggle-icon {
        width: 14px;
        height: 14px;
    }
    .mobile-mode-toggle-item .mode-toggle-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #EDEDED;
    }
    .mobile-menu-logo {
        display: flex;
        align-items: center;
    }
    .mobile-menu-logo-img {
        display: none;
        height: 24px;
        width: auto;
    }
    .mobile-menu-logo-img.dark {
        display: block;
    }
    .mobile-menu-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #F5F4F2;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #1a1a1a;
        transition: background 0.2s;
    }
    .mobile-menu-close:hover { background: #E9E7E2; }
    
    /* Mobile Menu Items */
    .mobile-menu-items {
        padding: 16px;
        display: flex;
        flex-direction: column;
    }
    .mobile-menu-divider {
        height: 1px;
        background: #EDEDED;
        margin: 8px 0;
    }
    .mobile-menu-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        border-radius: 12px;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s;
        font-size: 13px;
        font-weight: 500;
        color: #1a1a1a;
    }
    .mobile-menu-item svg {
        width: 24px;
        height: 24px;
        color: #666;
        flex-shrink: 0;
    }
    .mobile-menu-item img {
        filter: brightness(0) saturate(100%) invert(42%) sepia(0%) saturate(0%) hue-rotate(173deg) brightness(98%) contrast(89%);
    }
    .mobile-menu-item.active {
        background: #F5F4F2;
        color: #000000;
    }
    .mobile-menu-item.active svg {
        color: #000000;
    }
    .mobile-menu-item.active img {
        filter: brightness(0) saturate(100%) invert(0%);
    }
    .mobile-menu-item:not(.active):hover {
        background: #F5F4F2;
    }
    
    /* Hide left sidebar on mobile */
    .left-sidebar { display: none; }
    
    /* Mobile layout containment */
    html, body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .main-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .content-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* Hide left panel on mobile */
    .left-panel { display: none; }
    
    /* Hide suggestion cards and help text on mobile */
    .suggestion-card { display: none; }
    .suggestions-container { display: none; }
    .help-text { display: none; }
    
    /* Adjust top bar for mobile */
    .top-bar { 
        padding: 12px 16px; 
        background: #F7F6F5; 
        border-bottom: none; 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        right: 0 !important; 
        width: 100% !important; 
        z-index: 10000 !important;
        box-sizing: border-box;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    .balance-display { display: none; }
    .top-bar-deposit-btn { display: none; }
    .top-bar-divider { display: none; }
    .search-bar { display: none; }
    .top-bar-button { display: none; }
    
    /* Adjust chat area */
    .chat-area { 
        padding: 16px;
        padding-top: 80px;
        padding-bottom: 140px;
        margin-left: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
        height: 100dvh; /* Use dynamic viewport height on supported browsers */
        box-sizing: border-box;
    }
    .left-panel.collapsed ~ .chat-area { margin-left: 0 !important; }
    .chat-area.chat-active { 
        padding-bottom: 120px;
    }
    
    /* Ensure chat area adjusts when keyboard is visible */
    @supports (height: 100dvh) {
        .chat-area {
            height: 100dvh;
        }
    }
    
    /* Welcome content centering */
    .welcome-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 80px - 140px);
    }
    .chat-messages.active { 
        padding: 0;
        width: 100%;
    }
    .chat-messages { width: 100%; max-width: 100%; }
    .message-content { max-width: 100%; }
    .chat-messages .suggestions-container { width: 100%; max-width: 100%; }
    .package-card { width: 100%; max-width: 100%; }
    .analysis-container { width: 100%; max-width: 100%; }
    .welcome-message { font-size: 28px; margin-bottom: 24px; }
    
    /* Adjust input container */
    .input-container { 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0; 
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 900;
        background: #F7F6F5;
        box-sizing: border-box;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        will-change: bottom;
    }
    .input-container.sticky {
        width: 100% !important;
        max-width: 100% !important;
        position: fixed !important;
        bottom: 0 !important;
        background: #F7F6F5;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .chat-area.chat-active .input-container { 
        position: fixed !important;
        bottom: 0 !important; 
        left: 0 !important; 
        right: 0 !important; 
        width: 100% !important;
        margin: 0 !important;
        background: #F7F6F5;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .chat-input-wrapper { 
        max-width: 100% !important; 
        width: 100% !important; 
        padding: 16px 16px 16px 16px; 
        margin: 0; 
        box-sizing: border-box;
        background: #F7F6F5;
    }
    .chat-input { 
        border-radius: 24px; 
        border: 1px solid #fff; 
        padding: 13px 120px 12px 16px; 
        height: 51px; 
        min-height: 51px; 
        max-height: 150px; 
        overflow-y: auto; 
        box-sizing: border-box; 
        font-size: 14px;
        -webkit-appearance: none;
        appearance: none;
    }
    .chat-input::placeholder { font-size: 14px; }
    .input-actions { 
        position: absolute; 
        bottom: 26px; 
        right: 22px; 
        left: auto; 
        transform: none; 
        justify-content: flex-end; 
        margin: 0; 
    }
    .input-action-btn { width: 40px; height: 40px; border-radius: 999px; }
    .input-action-btn.voice { border: none; }
    .input-action-btn.attach { display: none; }
    .input-container::before { 
        display: none !important;
    }
    
    /* Adjust modals for mobile */
    .transfer-popup, .bank-popup, .isk-popup, .podcast-popup { 
        width: calc(100% - 32px); 
        max-width: calc(100% - 32px);
        padding: 24px;
    }
}

/* Dark mode mobile styles */
body.dark-mode .mobile-menu {
    background: var(--bg-primary);
}
body.dark-mode .mobile-avatar-menu {
    background: var(--bg-primary);
}
body.dark-mode .mobile-menu-header {
    border-bottom-color: var(--border-primary);
}
body.dark-mode .mobile-menu-divider {
    background: var(--border-primary);
}
body.dark-mode .mobile-menu-logo-img.dark {
    display: none;
}
body.dark-mode .mobile-menu-logo-img.light {
    display: block;
}
body.dark-mode .mobile-menu-close {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
body.dark-mode .mobile-menu-close:hover {
    background: var(--bg-quaternary);
}
body.dark-mode .mobile-menu-item {
    color: var(--text-primary);
}
body.dark-mode .mobile-menu-item svg {
    color: var(--text-tertiary);
}
body.dark-mode .mobile-menu-item img {
    filter: brightness(0) saturate(100%) invert(60%);
}
body.dark-mode .mobile-menu-item.active img {
    filter: brightness(0) saturate(100%) invert(100%);
}
body.dark-mode .mobile-menu-item.active {
    background: #242424;
    color: #fff;
}
body.dark-mode .mobile-menu-item.active svg {
    color: #fff;
}
body.dark-mode .mobile-menu-item:not(.active):hover {
    background: var(--bg-tertiary);
}
body.dark-mode .mobile-menu-title {
    color: var(--text-primary);
}
body.dark-mode .mobile-avatar-name {
    color: var(--text-primary);
}
body.dark-mode .mobile-avatar-email {
    color: #999;
}
body.dark-mode .mobile-mode-toggle-item:hover {
    background: var(--bg-tertiary);
}

@media (max-width: 768px) {
    body.dark-mode .mobile-menu-btn { color: var(--text-primary); }
    body.dark-mode .mobile-menu-btn:hover { background: var(--bg-tertiary); }
    body.dark-mode .top-bar { 
        background: #212121 !important; 
        border-bottom: none;
        position: fixed !important;
        top: 0 !important;
        z-index: 10000 !important;
    }
    body.dark-mode .top-bar-logo.dark { display: none; }
    body.dark-mode .top-bar-logo.light { display: block; }
    body.dark-mode .input-container { background: #212121 !important; }
    body.dark-mode .input-container.sticky { background: #212121 !important; }
    body.dark-mode .chat-area.chat-active .input-container { background: #212121 !important; }
    body.dark-mode .chat-input-wrapper { background: #212121 !important; }
    body.dark-mode .chat-area { background: #212121; }
}
