@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #080a11;
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 1.5rem 1rem;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Ambient Neon Lighting Background */
body::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
}

/* Main Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* TradingView Ticker Tape Wrapper */
.tradingview-widget-container-tape {
    margin-bottom: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

/* Header Navbar Card */
.navbar-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    gap: 1rem;
}

.logo-section h1 {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-section p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    font-weight: 500;
}

.brand-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 0.35rem;
}

.live-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.system-status-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.header-btn {
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.pnl-btn {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #38bdf8;
}

.pnl-btn:hover {
    background: rgba(6, 182, 212, 0.25);
    transform: translateY(-2px);
}

.cta-button {
    background: var(--gradient-blue);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* KPI Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.card-cyan::before { background: var(--gradient-cyan); }
.card-emerald::before { background: var(--gradient-emerald); }
.card-purple::before { background: var(--gradient-purple); }
.card-blue::before { background: var(--gradient-blue); }
.card-amber::before { background: var(--gradient-gold); }

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-icon {
    font-size: 1rem;
}

.card-value {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 0.1rem 0;
}

.card-value.success { color: #34d399; }
.card-value.danger { color: #f87171; }

.card-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Dashboard Body Split Panels */
.dashboard-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
}

.dashboard-body.split-2 {
    grid-template-columns: 1fr 1fr;
}

.section-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.panel-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Chart Canvas Wrapper */
.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-container.chart-height-sm {
    height: 240px;
}

/* League Table Styling */
.league-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.league-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.league-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.strat-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strat-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.strat-stats strong.win { color: #34d399; }
.strat-stats strong.loss { color: #f87171; }

/* Filter Controls Bar */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.timeframe-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--gradient-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.filter-dropdowns {
    display: flex;
    gap: 0.5rem;
}

.custom-select {
    background: #0f172a;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    outline: none;
    cursor: pointer;
}

/* Position Ledger Table */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

th, td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-weight: 500;
}

td.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

.badge {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge.win {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.loss {
    background-color: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.badge.be {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.buy {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge.sell {
    background-color: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Modals System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

/* Viral PnL Card Styling */
.pnl-card {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pnl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pnl-card-header .brand {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fire-badge {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.asset-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.verified-tag {
    font-size: 0.65rem;
    color: #34d399;
    font-weight: 800;
}

.pnl-stat-columns {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.pnl-stat-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pnl-percent-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1px;
}

.pnl-big-number {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #34d399;
    margin: 0.2rem 0;
}

.pnl-dollar-sub {
    font-size: 0.78rem;
    font-weight: 700;
    color: #34d399;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
}

.pnl-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.pnl-stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.pnl-stat-item .label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.pnl-stat-item .val {
    font-size: 0.85rem;
    font-weight: 800;
}

.pnl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.75rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.model-tag {
    font-size: 0.65rem;
    color: #60a5fa;
    font-weight: 800;
}

.handle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.qr-placeholder {
    background: var(--gradient-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
}

.download-btn {
    background: var(--gradient-blue);
    color: #ffffff;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

/* Pricing Modal Customization */
.pricing-info-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.pricing-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

.pricing-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pricing-card-item.featured {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid #3b82f6;
    position: relative;
}

.value-tag {
    position: absolute;
    top: -10px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.pricing-card-title {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.pricing-card-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #38bdf8;
    margin: 0.2rem 0;
}

.pricing-card-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.pricing-card-badge {
    font-size: 0.72rem;
    color: #34d399;
    font-weight: 800;
}

.pricing-specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* High-Converting Get NEXUS License Pill Button */
.checkout-pill {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.checkout-pill:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

/* Glassmorphism / Modern Stripe SaaS Checkout Modal */
.checkout-modal-box {
    max-width: 820px;
    width: 95%;
    max-height: 90vh;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(59, 130, 246, 0.15);
    position: relative;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.checkout-modal-box::-webkit-scrollbar {
    width: 6px;
}

.checkout-modal-box::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.checkout-modal-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.checkout-modal-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.stripe-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.stripe-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    transform: scale(1.05);
}

.stripe-checkout-layout {
    display: flex;
    width: 100%;
    min-height: 520px;
}

/* Left Sidebar - Order Summary */
.stripe-sidebar {
    width: 42%;
    background: linear-gradient(180deg, #0b0f19 0%, #0d1424 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stripe-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.stripe-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.stripe-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.product-summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.product-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.price-display-box {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.stripe-price {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stripe-period {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.checkout-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.summary-val {
    font-weight: 700;
    color: var(--text-primary);
}

.delivery-tag {
    color: #34d399;
    font-weight: 700;
    font-size: 0.8rem;
}

.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.6rem;
    margin-top: 0.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.total-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fbbf24;
}

.sidebar-security-badge {
    margin-top: auto;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}

.security-text {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
}

.security-text strong {
    color: #34d399;
}

/* Right Column - Main Form */
.stripe-main {
    width: 58%;
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stripe-form-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stripe-form-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input with inline Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.85rem;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.checkout-input {
    width: 100%;
    background: rgba(8, 10, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

select.checkout-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
    padding-left: 2.6rem;
}

.checkout-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

.input-with-icon:focus-within .input-icon {
    color: #3b82f6;
}

/* Card Section Header */
.card-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-section-header label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-brands {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-brand-icon {
    width: 32px;
    height: 20px;
    border-radius: 4px;
}

.card-input-box {
    background: rgba(8, 10, 17, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.card-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.card-num-input {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.card-detected-tag {
    position: absolute;
    right: 0.85rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
}

/* Pay Button */
.stripe-pay-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    padding: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.stripe-pay-btn:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

.stripe-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.checkout-status-msg {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.checkout-status-msg.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.checkout-status-msg.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.stripe-footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    margin-top: 0.25rem;
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #080a11;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader-overlay.hidden {
    display: none !important;
}

.spinner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

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

/* ==========================================
   📱 COMPREHENSIVE MOBILE RESPONSIVE OVERHAUL
   ========================================== */

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.75rem 0.5rem;
    }
    
    .container {
        gap: 1rem;
    }
    
    /* Header layout */
    .navbar-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.85rem;
    }
    
    .logo-section {
        text-align: center;
    }
    
    .brand-badge-row {
        justify-content: center;
    }
    
    .logo-section h1 {
        font-size: 1.4rem;
    }
    
    .logo-section p {
        font-size: 0.78rem;
    }
    
    .header-actions {
        width: 100%;
        gap: 0.5rem;
    }
    
    .action-pill-btn, .cta-button {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.55rem 0.5rem;
        justify-content: center;
        text-align: center;
    }
    
    /* KPI Metrics Cards (2 columns on mobile) */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    
    .card {
        padding: 0.85rem;
        border-radius: 14px;
    }
    
    .card-title {
        font-size: 0.7rem;
    }
    
    .card-value {
        font-size: 1.3rem;
    }
    
    .card-desc {
        font-size: 0.68rem;
    }
    
    /* Dashboard Split Grids */
    .dashboard-body, .dashboard-body.split-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-panel {
        padding: 1rem;
        border-radius: 14px;
    }
    
    .chart-container {
        height: 220px;
    }
    
    /* MT5 Controls */
    .table-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .timeframe-pills {
        width: 100%;
        justify-content: space-between;
    }
    
    .pill-btn {
        flex: 1;
        padding: 0.4rem 0.25rem;
        font-size: 0.72rem;
    }
    
    .filter-dropdowns {
        width: 100%;
    }
    
    .custom-select {
        flex: 1;
        font-size: 0.75rem;
    }
    
    /* Pricing Card Grid on Mobile */
    .pricing-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .pnl-stat-columns {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat-divider {
        width: 80%;
        height: 1px;
    }
    
    .pnl-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-value {
        font-size: 1.15rem;
    }
    
    .pnl-big-number {
        font-size: 1.8rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* ==========================================
 * 🌟 HERO BANNER STYLING
 * ========================================== */
.hero-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.65) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 1.75rem auto;
    line-height: 1.6;
}

.hero-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.25s ease;
}

.hero-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 1.75rem 1.25rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.875rem;
    }
}
