  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        a{
            text-decoration: none;
            color: inherit;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
            background: #FAFAFA;
            max-width: 400px;
            margin: 0 auto;
            height: 100vh;
            overflow-x: hidden;
        }

        .app-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            background: #FAFAFA;
            padding-top: 64px;
        }

        /* Header */
        .header {
            padding: 10px;
            background: #FAFAFA;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            max-width: 400px;
            margin: 0 auto;
            z-index: 100;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #E0E7FF 0%, #F3F4F6 100%);
            overflow: hidden;
        }

        .user-text h3 {
            font-size: 13px;
            color: #6B7280;
            font-weight: 400;
            margin-bottom: 3px;
        }

        .user-text h2 {
            font-size: 16px;
            font-weight: 700;
            color: #111827;
            letter-spacing: -0.3px;
        }

        .header-icons {
            display: flex;
            gap: 8px;
        }

        .icon-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid #E5E7EB;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .icon-btn:active {
            transform: scale(0.95);
        }

        /* Balance Card */
        .balance-card {
            margin: 10px;
            padding: 18px;
            background: white;
            border-radius: 20px;
            border: 1px solid #E5E7EB;
            box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        }

        .balance-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .balance-label {
            font-size: 12px;
            color: #6B7280;
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: 500;
        }

        .arrow-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #D4F34A;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .arrow-btn:active {
            transform: scale(0.9);
        }

        .balance-amount {
            display: flex;
            align-items: baseline;
            gap: 6px;
            margin-bottom: 6px;
        }

        .amount {
            font-size: 32px;
            font-weight: 700;
            color: #111827;
            letter-spacing: -0.5px;
        }

        .currency {
            font-size: 13px;
            color: #9CA3AF;
            font-weight: 500;
        }

        .profit-info {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
        }

        .profit {
            color: #6B7280;
            font-weight: 500;
        }

        .profit span {
            color: #111827;
            font-weight: 600;
        }

        .ml {
            color: #6B7280;
            font-weight: 500;
        }

        .ml span {
            color: #111827;
            font-weight: 600;
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 10px;
            margin: 0 10px 16px;
        }

        .action-btn {
            flex: 1;
            padding: 14px 8px;
            border-radius: 16px;
            /* border: 1px solid #E5E7EB; */
            /* background: white; */
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-size: 12px;
            color: #111827;
            font-weight: 500;
            transition: all 0.2s;
        }

        .action-btn:active {
            transform: scale(0.97);
        }

        .action-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgb(212 243 74 / 44%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* AI Insights */
        .ai-insights {
            margin: 0 10px 18px;
            padding: 18px;
            background: linear-gradient(135deg, #A7F3D0 0%, #D4F34A 100%);
            border-radius: 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .ai-insights:active {
            transform: scale(0.98);
        }

        .ai-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ai-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ai-text h3 {
            font-size: 15px;
            font-weight: 700;
            color: #111827;
            margin-bottom: 1px;
            letter-spacing: -0.2px;
        }

        .ai-text p {
            font-size: 12px;
            color: #374151;
            font-weight: 500;
        }

        /* Tabs */
        .tabs {
            display: flex;
            gap: 24px;
            padding: 0 10px 14px;
            overflow-x: auto;
            border-bottom: 1px solid #E5E7EB;
            background: #FAFAFA;
        }

        .tab {
            font-size: 13px;
            color: #9CA3AF;
            white-space: nowrap;
            cursor: pointer;
            padding-bottom: 10px;
            border-bottom: 2px solid transparent;
            font-weight: 500;
            transition: all 0.2s;
        }

        .tab.active {
            color: #111827;
            font-weight: 700;
            border-bottom-color: #111827;
        }

        /* Stock List */
        .stock-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 10px 90px;
            background: #FAFAFA;
        }

        .stock-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
        }

        .stock-item:not(:last-child) {
            border-bottom: 1px solid #F3F4F6;
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .stock-logo {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
        }

        .stock-details h4 {
            font-size: 15px;
            font-weight: 600;
            color: #111827;
            margin-bottom: 3px;
            letter-spacing: -0.2px;
        }

        .stock-details .stock-type {
            font-size: 11px;
            color: #9CA3AF;
            font-weight: 500;
            margin-bottom: 2px;
        }

        .stock-details p {
            font-size: 12px;
            color: #10B981;
            font-weight: 600;
        }

        .stock-details p.negative {
            color: #EF4444;
        }

        .stock-price {
            text-align: right;
        }

        .stock-price h4 {
            font-size: 16px;
            font-weight: 700;
            color: #111827;
            margin-bottom: 2px;
            letter-spacing: -0.3px;
        }

        .stock-price .price-range {
            font-size: 16px;
            font-weight: 700;
            color: #111827;
            margin-bottom: 3px;
        }

        .stock-price p {
            font-size: 10px;
            color: #9CA3AF;
            font-weight: 500;
        }

        /* Sparkline */
        .stock-volume {
            width: 60px;
            height: 30px;
            margin-right: 15px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        .stock-volume svg {
            width: 100%;
            height: 100%;
        }

        /* Bottom Navigation - Modern Floating Design */
        .bottom-nav {
            position: fixed;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 32px);
            max-width: 368px;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.95) 100%);
            border-radius: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                        0 2px 8px rgba(0, 0, 0, 0.08),
                        inset 0 1px 0 rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            z-index: 100;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            text-decoration: none;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 12px;
            background: linear-gradient(135deg, #D4F34A 0%, #A7F3D0 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .nav-item:hover::before {
            opacity: 0.15;
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .nav-icon svg {
            transition: all 0.3s ease;
            stroke: #6B7280;
        }

        .nav-label {
            font-size: 10px;
            font-weight: 500;
            color: #6B7280;
            transition: all 0.3s ease;
            letter-spacing: 0.2px;
            margin-top: 2px;
        }

        /* Active State with Gradient */
        .nav-item.active {
            background: linear-gradient(135deg, #D4F34A 0%, #A7F3D0 50%, #C8E841 100%);
            box-shadow: 0 4px 16px rgba(212, 243, 74, 0.5),
                        0 2px 4px rgba(167, 243, 208, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .nav-item.active::before {
            opacity: 0;
        }

        .nav-item.active .nav-icon svg {
            stroke: #111827;
            transform: scale(1.1);
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
        }

        .nav-item.active .nav-label {
            color: #111827;
            font-weight: 600;
        }

        /* Hover effect for non-active items */
        .nav-item:not(.active):hover {
            transform: translateY(-2px);
        }

        .nav-item:not(.active):hover .nav-icon svg {
            stroke: #374151;
        }

        .nav-item:not(.active):hover .nav-label {
            color: #374151;
        }

        /* Active indicator dot */
        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #111827;
            opacity: 0;
        }

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

        /* Press Animation */
        .nav-item:active:not(.nav-item-center) .nav-icon {
            transform: scale(0.9);
        }

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

        .stock-list::-webkit-scrollbar {
            display: none;
        }

        /* ==================== TRADE PAGE STYLES ==================== */
        
        /* Trade Header */
        .trade-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            background: #F3F4F6;
        }

        .trade-back-btn,
        .trade-menu-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .trade-back-btn:active,
        .trade-menu-btn:active {
            transform: scale(0.95);
        }

        .trade-back-btn svg,
        .trade-menu-btn svg {
            stroke: #111827;
        }

        .trade-title {
            font-size: 18px;
            font-weight: 600;
            color: #111827;
            letter-spacing: -0.3px;
        }

        .trade-ticker {
            color: #6B7280;
            font-weight: 400;
        }

        /* Trade Card */
        .trade-card {
            background: white;
            /* margin: 12px; */
            /* padding: 5px; */
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .trade-stock-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* margin-bottom: 16px; */
        }

        .trade-stock-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .trade-stock-logo img {
            width: 40px;
            height: 40px;
            border-radius: 12px;
        }

        .trade-stock-name {
            font-size: 16px;
            font-weight: 600;
            color: #111827;
        }

        .trade-stock-type {
            color: #9CA3AF;
            font-size: 14px;
            font-weight: 400;
        }

        .trade-info-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #F9FAFB;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .trade-info-btn svg {
            stroke: #9CA3AF;
        }

        .trade-price-section {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin-bottom: 24px;
        }

        .trade-price {
            font-size: 20px;
            font-weight: 700;
            color: #111827;
            letter-spacing: -1px;
        }

        .trade-price-decimal {
            color: #9CA3AF;
        }

        .trade-change {
            font-size: 12px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
            line-height: 1;
            width: fit-content;
            margin-top: 2px;
        }

        .trade-change.positive {
            color: #10B981;
            background: #D1FAE5;
        }

        .trade-change.negative {
            color: #EF4444;
            background: #FEE2E2;
        }

        .trade-chart-container {
            position: relative;
            min-height: 280px;
            background: #FAFAFA;
            border-radius: 12px;
            padding: 4px 8px 12px 8px;
        }

        #tradeChart {
            width: 100% !important;
            border-radius: 8px;
        }

        .trade-time-buttons {
            display: flex;
            gap: 8px;
            justify-content: space-between;
        }

        .trade-time-btn {
            flex: 1;
            padding: 6px;
            background: #F9FAFB;
            border: none;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            color: #6B7280;
            cursor: pointer;
            transition: all 0.2s;
        }

        .trade-time-btn.active {
            background: #10B981;
            color: white;
            font-weight: 600;
        }

        .trade-time-btn:active {
            transform: scale(0.97);
        }

        /* Order Type */
        .trade-order-type {
            display: flex;
            gap: 8px;
            margin: 0 12px 12px;
        }

        .trade-order-btn {
            flex: 1;
            padding: 10px;
            background: white;
            border: 1px solid #E5E7EB;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            color: #6B7280;
            cursor: pointer;
            transition: all 0.2s;
        }

        .trade-order-btn.active {
            background: #F9FAFB;
            border-color: #111827;
            color: #111827;
            font-weight: 600;
        }

        .trade-order-btn:active {
            transform: scale(0.98);
        }

        /* Volume Margin */
        .trade-section-title {
            font-size: 15px;
            font-weight: 600;
            color: #111827;
            margin-bottom: 16px;
        }

        .trade-volume-control {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .trade-volume-btn {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: #F9FAFB;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .trade-volume-btn:active {
            transform: scale(0.95);
            background: #F3F4F6;
        }

        .trade-volume-btn svg {
            stroke: #111827;
        }

        .trade-volume-value {
            flex: 1;
            text-align: center;
        }

        .volume-main {
            font-size: 28px;
            font-weight: 700;
            color: #111827;
            letter-spacing: -0.5px;
        }

        .volume-sub {
            font-size: 13px;
            color: #9CA3AF;
            margin-top: 4px;
        }

        /* Spread Card */
        .trade-spread-card {
            background: linear-gradient(135deg, #D4F34A 0%, #C8E841 100%);
            margin: 12px;
            padding: 16px;
            border-radius: 16px;
            box-shadow: 0 4px 16px rgba(212, 243, 74, 0.3);
        }

        .trade-spread-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .trade-spread-label {
            font-size: 14px;
            font-weight: 600;
            color: #111827;
        }

        .trade-spread-earnings {
            font-size: 12px;
            font-weight: 500;
            color: #374151;
        }

        .trade-spread-value {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .trade-spread-currency {
            width: 48px;
            height: 40px;
            background: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            color: #111827;
            cursor: pointer;
            text-align: center;
            padding: 0 8px;
        }

        .trade-spread-pips {
            font-size: 18px;
            font-weight: 700;
            color: #111827;
            letter-spacing: -0.3px;
        }

        /* Trade Actions */
        .trade-actions {
            display: flex;
            gap: 12px;
            margin: 12px 12px 100px;
        }

        .trade-action-btn {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .trade-sell-btn {
            background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
            color: white;
            box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
        }

        .trade-buy-btn {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: white;
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
        }

        .trade-action-btn:active {
            transform: scale(0.97);
        }

        .trade-sell-btn:hover {
            box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
        }

        .trade-buy-btn:hover {
            box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
        }