 
        :root {
            --gold-primary: #D4AF37;
            --gold-secondary: #B8860B;
            --gold-light: #F5EFD5;
            --deep-blue: #14213D;
            --dark-gray: #333333;
            --light-gray: #F5F5F5;
            --success: #4CAF50;
            --warning: #FF9800;
            --danger: #F44336;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #FAFAFA;
            color: var(--dark-gray);
        }

        .app-container {
            max-width: 768px;
            margin: 0 auto;
            padding: 0;
            background-color: white;
            min-height: 100vh;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
        }

        .header-section {
            background: linear-gradient(to right, var(--deep-blue), #1c2e50);
            color: white;
            padding: 20px;
            border-radius: 0 0 15px 15px;
            position: relative;
            overflow: hidden;
        }

        .header-content {
            position: relative;
            z-index: 1;
        }

        .portfolio-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .portfolio-subtitle {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .card {
            background-color: white;
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            border: none;
        }

        .portfolio-summary-card {
            background: linear-gradient(135deg, white, var(--gold-light));
            border-left: 4px solid var(--gold-primary);
        }

        .portfolio-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--deep-blue);
        }

        .portfolio-change {
            font-size: 1rem;
            margin-left: 10px;
        }

        .change-positive {
            color: var(--success);
        }

        .change-negative {
            color: var(--danger);
        }

        .value-breakdown {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }

        .breakdown-item {
            flex: 1;
            min-width: 120px;
            padding: 10px;
            background-color: rgba(255, 255, 255, 0.6);
            border-radius: 10px;
        }

        .breakdown-label {
            font-size: 0.8rem;
            color: #777;
        }

        .breakdown-value {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--deep-blue);
        }

        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .section-title h2 {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
        }

        .action-link {
            font-size: 0.9rem;
            color: var(--gold-primary);
            text-decoration: none;
            cursor: pointer;
        }

        .action-link:hover {
            color: var(--gold-secondary);
        }

        .asset-item {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid var(--light-gray);
        }

        .asset-item:last-child {
            border-bottom: none;
        }

        .asset-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            background-color: var(--gold-light);
            color: var(--gold-secondary);
            font-size: 1.2rem;
        }

        .asset-details {
            flex: 1;
        }

        .asset-name {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 2px;
        }

        .asset-info {
            font-size: 0.8rem;
            color: #777;
        }

        .asset-value {
            text-align: right;
        }

        .asset-amount {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 2px;
        }

        .asset-price {
            font-size: 0.8rem;
            color: #777;
        }

        .performance-box {
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .performance-box.profit {
            background-color: rgba(76, 175, 80, 0.1);
        }

        .performance-box.loss {
            background-color: rgba(244, 67, 54, 0.1);
        }

        .performance-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
        }

        .profit .performance-icon {
            background-color: rgba(76, 175, 80, 0.2);
            color: var(--success);
        }

        .loss .performance-icon {
            background-color: rgba(244, 67, 54, 0.2);
            color: var(--danger);
        }

        .performance-details {
            flex: 1;
        }

        .performance-title {
            font-weight: 600;
            font-size: 1rem;
        }

        .performance-value {
            font-size: 1.2rem;
            font-weight: 700;
        }

        .profit .performance-value {
            color: var(--success);
        }

        .loss .performance-value {
            color: var(--danger);
        }

        .time-filters {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
            overflow-x: auto;
            padding-bottom: 5px;
        }

        .time-filter {
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            background-color: var(--light-gray);
            color: var(--dark-gray);
            white-space: nowrap;
        }

        .time-filter.active {
            background-color: var(--deep-blue);
            color: white;
        }

        .chart-container {
            height: 250px;
            margin-top: 15px;
        }

        .allocation-pie {
            max-width: 150px;
            max-height: 150px;
            margin: 0 auto;
        }

        .allocation-legend {
            margin-top: 20px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .legend-color {
            width: 15px;
            height: 15px;
            border-radius: 3px;
            margin-right: 10px;
        }

        .legend-label {
            flex: 1;
            font-size: 0.9rem;
        }

        .legend-value {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .action-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 20px 0;
        }

        .btn-gold {
            background-color: var(--gold-primary);
            border: none;
            color: white;
            font-weight: 600;
            padding: 12px;
        }

        .btn-gold:hover {
            background-color: var(--gold-secondary);
            color: white;
        }

        .btn-outline-gold {
            border: 2px solid var(--gold-primary);
            background-color: transparent;
            color: var(--gold-primary);
            font-weight: 600;
            padding: 10px;
        }

        .btn-outline-gold:hover {
            background-color: var(--gold-primary);
            color: white;
        }
        .bottom-navigation {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            max-width: 768px;
            margin: 0 auto;
            border-top: 1px solid rgba(0,0,0,0.05);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #777;
            font-size: 0.8rem;
            text-decoration: none;
        }

        .nav-item.active {
            color: var(--gold-primary);
        }

        .nav-icon {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }

        /* Investment Goals Progress */
        .goal-item {
            margin-bottom: 15px;
        }

        .goal-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }

        .goal-title {
            font-weight: 600;
            font-size: 0.95rem;
        }

        .goal-target {
            font-size: 0.85rem;
            color: #777;
        }

        .goal-progress {
            height: 8px;
            border-radius: 4px;
            background-color: var(--light-gray);
            margin-bottom: 5px;
        }

        .goal-progress-bar {
            height: 100%;
            border-radius: 4px;
        }

        .goal-progress-bar.retirement {
            background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
        }

        .goal-progress-bar.emergency {
            background: linear-gradient(to right, #4CAF50, #8BC34A);
        }

        .goal-progress-bar.education {
            background: linear-gradient(to right, #2196F3, #03A9F4);
        }

        .goal-stats {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #777;
        }

        /* Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .card {
            animation: fadeIn 0.5s ease forwards;
        }

        .card:nth-child(2) { animation-delay: 0.1s; }
        .card:nth-child(3) { animation-delay: 0.2s; }
        .card:nth-child(4) { animation-delay: 0.3s; }
        .card:nth-child(5) { animation-delay: 0.4s; }

        /* Tab Navigation */
        .portfolio-tabs {
            display: flex;
            border-bottom: 1px solid var(--light-gray);
            margin-bottom: 20px;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
        }

        .portfolio-tabs::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .portfolio-tab {
            padding: 12px 20px;
            cursor: pointer;
            color: #777;
            font-weight: 500;
            position: relative;
        }

        .portfolio-tab.active {
            color: var(--deep-blue);
            font-weight: 600;
        }

        .portfolio-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background-color: var(--gold-primary);
            border-radius: 3px 3px 0 0;
        }

        /* Badge styles */
        .badge-custom {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .badge-premium {
            background-color: rgba(212, 175, 55, 0.2);
            color: var(--gold-secondary);
        }

        .tab-content {
            padding-bottom: 80px; /* Space for bottom navigation */
        } 


        .tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.portfolio-tab {
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-tab:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.portfolio-tab.active {
    background-color: #D4AF37;
    color: white;
}