  body {
            background-color: #1a1a1a;
            color: #fff;
            padding: 20px;
        }

        .chart-container {
            margin-bottom: 20px;
        }

        .chart-img {
            width: 100%;
            height: auto;
            border: 2px solid #333;
            border-radius: 8px;
        }

        /* Page Header */
        .page-header {
            text-align: center;
            padding: 30px 20px;
            margin-bottom: 20px;
        }

        .page-title {
            color: #ffc107;
            font-size: clamp(1.5rem, 5vw, 2.5rem);
            font-weight: 800;
            margin: 0 0 10px 0;
            letter-spacing: -1px;
            white-space: nowrap;
        }

        .page-subtitle {
            color: rgba(255, 255, 255, 0.6);
            font-size: clamp(0.85rem, 3vw, 1rem);
            margin: 0;
            font-weight: 400;
        }

        /* Paper Trade Intro */
        .paper-trade-intro {
            text-align: center;
            padding: 30px 20px;
            margin-bottom: 10px;
        }

        .paper-trade-title {
            color: #fff;
            font-size: clamp(1.3rem, 4vw, 2rem);
            font-weight: 700;
            margin: 0 0 8px 0;
            letter-spacing: -0.5px;
        }

        .paper-trade-desc {
            color: rgba(255, 255, 255, 0.5);
            font-size: clamp(0.85rem, 2.5vw, 0.95rem);
            margin: 0;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.5;
        }

        /* --- HERO TEXT CSS --- */
        .hero-text {
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
        }

        .hero-logo {
            max-width: 250px;
            margin-bottom: 30px;
        }

        .hero-text h1 {
            color: #ffc107;
            margin-bottom: 20px;
            font-size: 2rem;
        }

        .hero-text p {
            color: #ccc;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        footer {
            margin-top: 60px;
            padding: 40px 20px;
            background-color: #0a0a0a;
            border-top: 1px solid #333;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-links {
            display: flex;
            gap: 30px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #ffc107;
        }

        .social-link img {
            width: 24px;
            height: 24px;
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        /* PAPER TRADE TERMINAL STYLES */
        #paper-trade-terminal {
            --term-bg: #0d0f14;
            --term-panel: #161a1e;
            --term-border: #2a2e33;
            --term-green: #26a69a;
            --term-red: #ef5350;
            --term-gold: #ffb74d;
            --term-text: #d1d4dc;
            --term-muted: #787b86;
            --term-accent: #2962ff;
            background: var(--term-bg);
            color: var(--term-text);
            font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
            border: 1px solid var(--term-border);
            border-radius: 12px;
            overflow: hidden;
            margin: 40px 0;
            width: 100%;
        }

        .term-header {
            background: var(--term-panel);
            border-bottom: 1px solid var(--term-border);
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .term-main {
            display: grid;
            grid-template-columns: 1fr 360px;
        }

        @media (max-width: 1200px) {
            .term-main {
                grid-template-columns: 1fr;
            }

            .term-side {
                border-left: none !important;
                border-top: 1px solid var(--term-border);
            }
        }

        @media (max-width: 768px) {
            .term-main {
                grid-template-columns: 1fr;
            }

            .term-side {
                border-left: none !important;
                border-top: 1px solid var(--term-border);
            }
        }

        .term-chart {
            position: relative;
            background: var(--term-bg);
            width: 100%;
        }

        .term-side {
            background: var(--term-panel);
            border-left: 1px solid var(--term-border);
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .term-card {
            background: #1e222d;
            border: 1px solid var(--term-border);
            border-radius: 8px;
            padding: 15px;
        }

        .term-input {
            background: #2a2e39;
            border: 1px solid var(--term-border);
            color: #fff;
            padding: 8px;
            border-radius: 4px;
            width: 100%;
            font-size: 13px;
        }

        .term-input:focus {
            outline: none;
            border-color: var(--term-accent);
        }

        .term-btn-picker {
            background: #2a2e39;
            border: 1px solid var(--term-border);
            color: var(--term-muted);
            border-radius: 4px;
            height: 38px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .term-btn-picker.active {
            background: var(--term-accent);
            color: white;
            border-color: var(--term-accent);
        }

        .term-btn-picker:hover {
            background: #3a3f4a;
        }

        .term-btn-picker.active:hover {
            background: #1e54d9;
        }

        .term-btn-trade {
            border: none;
            color: #fff;
            font-weight: bold;
            padding: 12px;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            transition: all 0.2s;
            font-size: 14px;
        }

        .term-btn-long {
            background: var(--term-green);
        }

        .term-btn-short {
            background: var(--term-red);
        }

        .term-btn-long:hover {
            background: #208f85;
        }

        .term-btn-short:hover {
            background: #d94542;
        }

        .term-pos-card {
            border: 1px solid var(--term-border);
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 10px;
            background: #1e222d;
        }

        .term-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            padding: 12px 20px;
            border-radius: 6px;
            color: #fff;
            display: none;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            pointer-events: none;
        }

        .tf-btn-term {
            background: transparent;
            border: none;
            color: var(--term-muted);
            padding: 6px 14px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .tf-btn-term.active {
            background: var(--term-accent);
            color: white;
        }

        .tf-btn-term:hover {
            background: #2a2e39;
            color: #fff;
        }

        /* Sticky Toolbar Styles */
        .sticky-toolbar {
            position: sticky;
            top: 0;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #333;
            z-index: 1000;
            padding: 16px 0;
            margin-bottom: 20px;
        }

        .toolbar-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .toolbar-left {
            display: flex;
            align-items: center;
        }

        .toolbar-logo {
            height: 32px;
            width: auto;
        }

        @media (max-width: 768px) {
            .toolbar-logo {
                height: 32px;
                width: 32px;
                content: url('/img/logo-wite-transp.png');
            }
        }

        .toolbar-right {
            display: flex;
            align-items: center;
        }

        .user-dropdown {
            position: relative;
        }

        .user-icon-btn {
            background: transparent;
            border: none;
            color: #fff;
            cursor: pointer;
            padding: 0;
            border-radius: 50%;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .user-icon-btn svg,
        .user-icon-btn img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .user-icon-btn:hover {
            background: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }

        .user-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 8px;
            min-width: 150px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            display: none;
            padding: 8px 0;
            margin-top: 8px;
        }

        .user-dropdown-menu.show {
            display: block;
        }

        .dropdown-item {
            display: block;
            padding: 10px 16px;
            color: #fff;
            text-decoration: none;
            transition: all 0.3s;
        }

        .dropdown-item:hover {
            background: rgba(255, 193, 7, 0.1);
        }

        .login-btn {
            color: #ffc107;
            font-weight: 600;
        }

        .login-btn:hover {
            background: rgba(255, 193, 7, 0.15);
        }

        /* User Profile Styles */
        .user-profile-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .user-profile-item:last-child {
            border-bottom: none;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .user-info {
            flex: 1;
            min-width: 0;
        }

        .user-name {
            color: #fff;
            font-weight: 600;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-email {
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .logout-btn {
            color: #ef5350;
            font-weight: 600;
            cursor: pointer;
            background: transparent;
            border: none;
            padding: 8px 12px;
            transition: all 0.3s;
        }

        .logout-btn:hover {
            background: rgba(239, 83, 80, 0.1);
        }

        /* BTC Price Display in Nav */
        .btc-price-display {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            margin-right: 20px;
            padding-right: 20px;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            gap: 4px;
        }

        .btc-price-value {
            color: rgba(255, 255, 255, 0.6);
            font-size: 16px;
            font-weight: 700;
        }

        .btc-price-change {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        .btc-price-change.positive {
            color: #26a69a;
        }

        .btc-price-change.negative {
            color: #ef5350;
        }

        .change-value {
            white-space: nowrap;
        }

        /* Image Modal */
        .image-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .image-modal.show {
            display: flex;
            opacity: 1;
        }

        .image-modal-content {
            position: relative;
            width: 80vw;
            height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image-modal-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 8px;
        }

        .image-modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: transparent;
            border: none;
            color: #fff;
            font-size: 32px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .image-modal-close:hover {
            color: #ffc107;
            transform: scale(1.2);
        }

        /* Snack Bar Notification */
        .snackbar {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #1a1a1a;
            color: #fff;
            padding: 14px 28px;
            border-radius: 50px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 10001;
            opacity: 0;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            min-width: 280px;
            justify-content: center;
        }

        .snackbar.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .snackbar.success {
            border-color: #26a69a;
            background: linear-gradient(135deg, rgba(38, 166, 154, 0.1), #1a1a1a);
        }

        .snackbar.info {
            border-color: #ffc107;
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), #1a1a1a);
        }

        .snackbar.warning {
            border-color: #ff9800;
            background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), #1a1a1a);
        }

        .snackbar-icon {
            font-size: 18px;
        }

        .snackbar.success .snackbar-icon {
            color: #26a69a;
        }

        .snackbar.info .snackbar-icon {
            color: #ffc107;
        }

        .snackbar.warning .snackbar-icon {
            color: #ff9800;
        }

        .snackbar-message {
            font-size: 14px;
            font-weight: 500;
        }

        /* Notification Bell Styles */
        .chart-container {
            position: relative;
        }

        .notification-bell {
            position: absolute;
            top: 10px;
            left: 55px;
            background: rgba(0, 0, 0, 0.7);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
        }

        .notification-bell svg {
            width: 20px;
            height: 20px;
            fill: #787b86;
        }

        .notification-bell.active svg {
            fill: #ffc107;
        }

        .notification-bell.inactive svg {
            fill: #787b86;
        }

        .notification-bell:hover {
            background: rgba(255, 193, 7, 0.3);
            transform: scale(1.1);
        }

        .notification-bell.disabled {
            cursor: not-allowed;
            opacity: 0.4;
        }

        .notification-bell.disabled:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: none;
        }

        .chart-view-btn {
            position: absolute;
            top: 10px;
            left: 95px;
            background: rgba(0, 0, 0, 0.7);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
            opacity: 0.4;
        }

        .chart-view-btn svg {
            width: 20px;
            height: 20px;
            fill: #787b86;
        }

        .chart-view-btn:hover {
            background: rgba(255, 193, 7, 0.3);
            transform: scale(1.1);
            opacity: 1;
        }

        .chart-view-btn:hover svg {
            fill: #ffc107;
        }

        /* Signal Glow Effects */
        .chart-container.signal-buy {
            box-shadow: 0 0 30px rgba(38, 166, 154, 0.4), inset 0 0 20px rgba(38, 166, 154, 0.1);
            border: 2px solid rgba(38, 166, 154, 0.5);
            border-radius: 8px;
            transition: all 0.5s ease;
        }

        .chart-container.signal-sell {
            box-shadow: 0 0 30px rgba(239, 83, 80, 0.4), inset 0 0 20px rgba(239, 83, 80, 0.1);
            border: 2px solid rgba(239, 83, 80, 0.5);
            border-radius: 8px;
            transition: all 0.5s ease;
        }

        .signal-info-btn {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 6px 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            font-weight: 600;
            opacity: 0;
            visibility: hidden;
            min-width: 36px;
        }

        .signal-info-btn:hover {
            background: rgba(255, 193, 7, 0.2);
            border-color: #ffc107;
            color: #ffc107;
        }

        .chart-container.signal-buy .signal-info-btn,
        .chart-container.signal-sell .signal-info-btn {
            opacity: 1;
            visibility: visible;
        }

        /* Signal Info Tooltip */
        .signal-tooltip {
            position: absolute;
            top: 55px;
            left: 10px;
            background: rgba(10, 10, 10, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 14px;
            min-width: 260px;
            max-width: 320px;
            z-index: 100;
            font-size: 13px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            display: none;
        }

        .signal-tooltip.show {
            display: block;
        }

        .signal-tooltip-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            gap: 12px;
        }

        .signal-tooltip-row:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .signal-tooltip-label {
            color: rgba(255, 255, 255, 0.6);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .signal-tooltip-value {
            color: #fff;
            font-weight: 600;
            text-align: right;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .signal-tooltip-close {
            position: absolute;
            top: 4px;
            right: 8px;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
        }

        .signal-tooltip-close:hover {
            color: #fff;
        }

        /* PWA Install Banner */
        #pwaInstallBanner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), rgba(255, 152, 0, 0.3));
            border-top: 1px solid rgba(255, 193, 7, 0.6);
            padding: 14px 20px;
            display: none;
            align-items: center;
            justify-content: center;
            gap: 15px;
            z-index: 9999;
            backdrop-filter: blur(15px);
            box-shadow: 0 -8px 30px rgba(255, 193, 7, 0.3);
        }

        #pwaInstallBanner.show {
            display: flex;
        }

        .pwa-banner-icon {
            font-size: 20px;
            color: #ffc107;
        }

        .pwa-banner-text {
            color: #fff;
            font-size: 14px;
            font-weight: 500;
        }

        .pwa-banner-btn {
            background: #ffc107;
            color: #000;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .pwa-banner-btn:hover {
            background: #ffb300;
            transform: scale(1.05);
        }

        .pwa-banner-close {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .pwa-banner-close:hover {
            color: #fff;
        }

        /* PWA Notification Banner (shown after install) */
        #pwaNotificationBanner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, rgba(38, 166, 154, 0.4), rgba(76, 175, 80, 0.3));
            border-top: 1px solid rgba(38, 166, 154, 0.6);
            padding: 14px 20px;
            display: none;
            align-items: center;
            justify-content: center;
            gap: 15px;
            z-index: 9999;
            backdrop-filter: blur(15px);
            box-shadow: 0 -8px 30px rgba(38, 166, 154, 0.3);
        }

        #pwaNotificationBanner.show {
            display: flex;
        }

        .pwa-notif-icon {
            font-size: 20px;
            color: #26a69a;
        }

        .pwa-notif-text {
            color: #fff;
            font-size: 14px;
            font-weight: 500;
        }

        .pwa-notif-btn {
            background: #26a69a;
            color: #fff;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .pwa-notif-btn:hover {
            background: #208f85;
            transform: scale(1.05);
        }

        .pwa-notif-btn.enabled {
            background: rgba(38, 166, 154, 0.3);
            cursor: default;
        }

        .pwa-notif-btn.enabled:hover {
            transform: none;
        }