/* Nexora Modern Dark Theme Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(30, 41, 59, 0.8);

    --primary-blue: #0066ff;
    --primary-cyan: #00d1ff;
    --primary-gradient: linear-gradient(135deg, #0066ff 0%, #00d1ff 100%);
    --card-gradient: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(9, 13, 22, 0.95) 100%);

    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-sub: #64748b;

    --accent-green: #00e676;
    --accent-green-bg: rgba(0, 230, 118, 0.12);
    --accent-red: #ff3d71;
    --accent-red-bg: rgba(255, 61, 113, 0.12);
    --accent-warning: #ffaa00;
    --accent-warning-bg: rgba(255, 170, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(0, 102, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 209, 255, 0.12) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Skeleton Loading Animation */
.skeleton-box {
    display: inline-block;
    height: 1em;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.skeleton-box::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.08) 20%,
            rgba(255, 255, 255, 0.15) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* App Layout & Base Wrapper */
.app-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #090d16;
}

.desktop-sidebar {
    display: none !important;
}

.desktop-topbar {
    display: none !important;
}

.app-main-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* App Container (Mobile Default) */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    flex: 1;
    background: #090d16;
    position: relative;
    padding-bottom: 90px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .app-container {
        max-width: 520px;
        border-left: 1px solid var(--bg-card-border);
        border-right: 1px solid var(--bg-card-border);
    }
}

/* Header Navbar */
.app-header {
    padding: 20px 24px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    display: inline-block;
}

div.brand-icon {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-text p {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
}

.icon-btn .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
}

/* User Greeting Section */
.user-welcome {
    padding: 12px 24px 8px;
}

.user-welcome h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.user-welcome p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Main Content Area */
.main-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--card-gradient);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Balance Hero Card */
.balance-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 85% 25%, rgba(0, 242, 254, 0.09) 0%, transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.balance-amount {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 4px;
    position: relative;
    z-index: 1;
}

.balance-change {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.balance-card-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 58px;
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

.balance-card:hover .balance-card-icon {
    opacity: 0.22;
    transform: translateY(-50%) scale(1.08);
}

.chart-container {
    width: 100%;
    height: 140px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.time-filters {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.time-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.4);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 58px;
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    opacity: 0.22;
    transform: translate(-3px, -3px) scale(1.06);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.stat-sub {
    font-size: 11px;
    color: var(--accent-green);
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-red {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    border: 1px solid rgba(255, 61, 113, 0.3);
}

.badge-warning {
    background: var(--accent-warning-bg);
    color: var(--accent-warning);
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.badge-blue {
    background: rgba(0, 102, 255, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 209, 255, 0.3);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.section-title a {
    font-size: 12px;
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
}

.trade-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
}

.trade-item:hover {
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

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

.crypto-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.crypto-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pair-details h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pair-details p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.trade-pnl {
    text-align: right;
}

.pnl-value {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
}

.pnl-sub {
    font-size: 11px;
    margin-top: 2px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 48px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.25);
}

.btn-primary {
    width: 100%;
    height: 52px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3d71 0%, #ff1744 100%);
    box-shadow: 0 4px 20px rgba(255, 61, 113, 0.4);
}

.wallet-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.wallet-action-btn.edit-btn {
    color: var(--primary-cyan);
    background: rgba(0, 209, 255, 0.12);
    border-color: rgba(0, 209, 255, 0.3);
}

.wallet-action-btn.edit-btn:hover {
    background: rgba(0, 209, 255, 0.25);
    border-color: var(--primary-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 209, 255, 0.3);
}

.wallet-action-btn.delete-btn {
    color: var(--accent-red);
    background: rgba(255, 61, 113, 0.12);
    border-color: rgba(255, 61, 113, 0.3);
}

.wallet-action-btn.delete-btn:hover {
    background: rgba(255, 61, 113, 0.25);
    border-color: var(--accent-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 61, 113, 0.3);
}

.profile-menu-card {
    background: var(--card-gradient);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 6px 12px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.profile-menu-item:last-child {
    border-bottom: none !important;
}

.profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.profile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.profile-menu-item:hover .profile-menu-icon {
    transform: scale(1.08);
}

.strategy-card {
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.strategy-card.selected {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

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

.strategy-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.strategy-roi {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
}

.strategy-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 72px;
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--bg-card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 520px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    padding: 8px 12px;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: var(--primary-cyan);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 24px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 0 0 4px 4px;
}

/* Floating Elevated Trade Center Button */
.nav-item-trade {
    position: relative;
    padding-top: 2px;
}

.nav-trade-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin-top: -16px;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.45), 0 0 0 4px rgba(9, 13, 22, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-trade-circle i {
    font-size: 18px;
    color: #000;
    font-weight: 800;
    transition: transform 0.4s ease;
}

.nav-item-trade:hover .nav-trade-circle,
.nav-item-trade.active .nav-trade-circle {
    transform: translateY(-4px) scale(1.08);
    background: linear-gradient(135deg, #00f2fe 0%, #00e676 100%);
    box-shadow: 0 6px 22px rgba(0, 230, 118, 0.55), 0 0 0 4px rgba(9, 13, 22, 0.95);
}

.nav-item-trade:hover .nav-trade-circle i,
.nav-item-trade.active .nav-trade-circle i {
    transform: rotate(180deg);
}

.nav-item-trade.active::after {
    display: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    background: #0f172a;
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

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

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.qr-box {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
    margin: 16px 0;
}

/* Quick Percentage Buttons */
.pct-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pct-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 8px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.pct-btn:hover,
.pct-btn.active {
    background: rgba(0, 209, 255, 0.15);
    border-color: var(--primary-cyan);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 209, 255, 0.2);
}

/* ==========================================
   DESKTOP UI & LUXURY DASHBOARD SYSTEM (>= 1024px)
   ========================================== */
@media (min-width: 1024px) {
    body:not(.auth-page) {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        overflow-x: hidden;
        background-color: #060911 !important;
    }

    .app-layout {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 100vh !important;
        background: #060911 !important;
    }

    /* Desktop Sidebar */
    .desktop-sidebar {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 270px !important;
        min-width: 270px !important;
        height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        align-self: flex-start !important;
        background: rgba(10, 15, 28, 0.92) !important;
        backdrop-filter: blur(24px) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 26px 20px !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
    }

    .desktop-sidebar-top {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .desktop-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .desktop-user-card {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        padding: 10px 14px;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .desktop-user-card:hover {
        background: rgba(0, 102, 255, 0.15);
        border-color: rgba(0, 209, 255, 0.4);
        transform: translateY(-2px);
    }

    .user-avatar-circle {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--primary-gradient);
        color: #fff;
        font-weight: 800;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
        flex-shrink: 0;
    }

    .user-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

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

    .user-role {
        font-size: 10px;
        color: var(--text-muted);
        font-weight: 500;
        margin-top: 2px;
    }

    .text-cyan {
        color: var(--primary-cyan);
    }

    /* Desktop Navigation Menu */
    .desktop-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .nav-section-label {
        font-size: 10px;
        font-weight: 800;
        color: var(--text-sub);
        letter-spacing: 1px;
        padding: 4px 10px;
    }

    .desktop-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        border-radius: var(--radius-md);
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
    }

    .desktop-nav-link i {
        font-size: 16px;
        width: 20px;
        text-align: center;
        color: var(--text-sub);
        transition: color 0.2s ease;
    }

    .desktop-nav-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        transform: translateX(3px);
    }

    .desktop-nav-link:hover i {
        color: var(--primary-cyan);
    }

    .desktop-nav-link.active {
        background: var(--primary-gradient);
        color: #fff;
        font-weight: 700;
        box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    }

    .desktop-nav-link.active i {
        color: #fff;
    }

    .desktop-badge {
        margin-left: auto;
        background: rgba(0, 230, 118, 0.2);
        color: var(--accent-green);
        border: 1px solid rgba(0, 230, 118, 0.4);
        font-size: 10px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 10px;
    }

    .nav-logout {
        color: var(--accent-red) !important;
        margin-top: 8px;
    }

    .nav-logout i {
        color: var(--accent-red) !important;
    }

    .nav-logout:hover {
        background: rgba(255, 61, 113, 0.12) !important;
    }

    .desktop-sidebar-footer {
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .engine-status-card {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        padding: 10px 12px;
    }

    .status-indicator-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent-green);
        box-shadow: 0 0 10px var(--accent-green);
        flex-shrink: 0;
    }

    .status-details {
        display: flex;
        flex-direction: column;
    }

    .status-title {
        font-size: 11px;
        font-weight: 700;
        color: #fff;
    }

    .status-sub {
        font-size: 9px;
        color: var(--text-muted);
    }

    /* Main Desktop Content Area */
    .app-main-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 36px 40px 36px !important;
        justify-content: flex-start !important;
    }

    /* Desktop Topbar Header */
    .desktop-topbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        height: 76px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 28px;
        width: 100%;
    }

    .topbar-page-name {
        font-family: var(--font-heading);
        font-size: 22px;
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.3px;
    }

    .topbar-welcome-sub {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 2px;
        display: block;
    }

    .topbar-right {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .topbar-chip {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(15, 23, 42, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 12px;
        backdrop-filter: blur(10px);
    }

    .chip-label {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
    }

    .chip-val {
        color: #fff;
        font-weight: 700;
    }

    .chip-pos {
        border-color: rgba(0, 230, 118, 0.3);
        color: var(--accent-green);
        background: rgba(0, 230, 118, 0.08);
    }

    .chip-neg {
        border-color: rgba(255, 61, 113, 0.3);
        color: var(--accent-red);
        background: rgba(255, 61, 113, 0.08);
    }

    .topbar-lang-btn {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #fff;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
    }

    .topbar-lang-btn:hover {
        background: rgba(0, 102, 255, 0.2);
        border-color: var(--primary-cyan);
    }

    .topbar-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--primary-gradient);
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
        transition: transform 0.2s ease;
    }

    .topbar-avatar:hover {
        transform: scale(1.05);
    }

    /* Container layout adjustments on Desktop (100% Full Width) */
    .app-container {
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        padding-bottom: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        margin: 0 !important;
    }

    .app-main-content {
        flex: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 40px 40px 40px !important;
        justify-content: flex-start !important;
    }

    .app-header {
        display: none !important;
    }

    .bottom-nav {
        display: none !important;
    }

    .user-welcome {
        display: none !important;
    }

    /* Full-Width Grid Layout Conversions for Desktop Cards */
    .grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    /* Open Positions & Open Trades Multi-Column Grid on Desktop */
    #open-positions-list,
    #open-trades-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
        gap: 20px !important;
    }

    .empty-state-card,
    .ai-scanner-card {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    /* Ticker Full Width */
    .ticker-container {
        width: 100% !important;
    }

    /* Compact Chart Container Height on Desktop */
    .chart-container {
        height: 200px !important;
    }

    /* Modal center alignment on Desktop */
    .modal-overlay {
        align-items: center !important;
    }

    .modal-card {
        border-radius: 24px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
    }
}

/* ==========================================
   AUTH PAGE (LOGIN & REGISTER) DESKTOP STYLING
   ========================================== */
body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #090d16;
    background-image: linear-gradient(rgba(9, 13, 22, 0.55), rgba(9, 13, 22, 0.75)), url('../img/mobile_bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

.auth-app-container {
    padding-bottom: 0 !important;
    min-height: auto !important;
    border-radius: 28px !important;
    margin: 0 auto !important;
    position: relative;
    background: rgba(11, 17, 30, 0.85) !important;
    backdrop-filter: blur(24px) !important;
}

@media (min-width: 1024px) {
    body.auth-page {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
        background-color: #060911 !important;
        background-image: linear-gradient(rgba(6, 9, 17, 0.55), rgba(6, 9, 17, 0.75)), url('../img/desktop_bg.jpg') !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-attachment: fixed !important;
        background-size: cover !important;
    }

    .auth-app-container {
        max-width: 460px !important;
        width: 100% !important;
        margin: auto !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 28px !important;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 102, 255, 0.2) !important;
        background: rgba(11, 17, 30, 0.85) !important;
        backdrop-filter: blur(24px) !important;
        overflow: hidden;
    }
}

/* ==========================================
   UI / UX PREMIUM ENHANCEMENT STYLES
   ========================================== */

/* 1. Price Flash Ticker Animations */
@keyframes priceFlashGreen {
    0% { background-color: rgba(0, 230, 118, 0.35); color: #00e676; text-shadow: 0 0 10px rgba(0, 230, 118, 0.8); }
    100% { background-color: transparent; }
}

@keyframes priceFlashRed {
    0% { background-color: rgba(255, 61, 113, 0.35); color: #ff3d71; text-shadow: 0 0 10px rgba(255, 61, 113, 0.8); }
    100% { background-color: transparent; }
}

.price-flash-up {
    animation: priceFlashGreen 0.6s ease-out;
    border-radius: 4px;
}

.price-flash-down {
    animation: priceFlashRed 0.6s ease-out;
    border-radius: 4px;
}

/* 2. Position Card Dynamic Glows */
.pos-card-profit {
    border: 1px solid rgba(0, 230, 118, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15), inset 0 0 15px rgba(0, 230, 118, 0.05) !important;
    transition: all 0.3s ease;
}

.pos-card-loss {
    border: 1px solid rgba(255, 61, 113, 0.4) !important;
    box-shadow: 0 4px 20px rgba(255, 61, 113, 0.15), inset 0 0 15px rgba(255, 61, 113, 0.05) !important;
    transition: all 0.3s ease;
}

/* 3. TP / SL Visual Progress Bar Component */
.tpsl-progress-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tpsl-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tpsl-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.tpsl-progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

/* 4. AI Strategy Terminal Log Feed */
.ai-terminal-box {
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: var(--primary-cyan);
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.08);
}

.ai-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-heading);
}

.ai-terminal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: blinkDot 1.2s infinite alternate;
}

@keyframes blinkDot {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.ai-terminal-lines {
    max-height: 60px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-terminal-line {
    opacity: 0;
    animation: fadeInLine 0.3s forwards ease-out;
}

@keyframes fadeInLine {
    to { opacity: 1; }
}

/* 5. Mobile Bottom Sheet Modal Styling */
@media (max-width: 767px) {
    .modal-overlay {
        align-items: flex-end !important;
    }

    .modal-card {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 24px !important;
        border-top-right-radius: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        margin: 0 !important;
    }

    .modal-overlay.active .modal-card {
        transform: translateY(0) !important;
    }
}

/* Toast Container & Confetti Canvas Fixed Overlays */
#synex-confetti-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 999999 !important;
}

#synex-toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 380px !important;
    pointer-events: none !important;
}

/* ==========================================================================
   MOBILE OFF-CANVAS SLIDE-OVER DRAWER MENU
   ========================================================================== */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 86vw;
    background: rgba(10, 15, 28, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 18px;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .mobile-drawer-overlay,
    .mobile-nav-drawer {
        display: none !important;
    }
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-header .drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-drawer-header .drawer-brand h2 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.mobile-drawer-header .drawer-brand p {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0;
}

.drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(255, 61, 113, 0.15);
    color: #ff3d71;
    border-color: rgba(255, 61, 113, 0.3);
}

.mobile-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    margin: 14px 0 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer-user:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(15, 23, 42, 0.9);
}

.mobile-drawer-balance {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mob-bal-label {
    font-size: 11px;
    color: var(--text-muted);
}

.mob-bal-val {
    font-size: 14px;
    font-weight: 700;
    color: #00f2fe;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.drawer-nav-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 6px 10px 2px;
    text-transform: uppercase;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.drawer-nav-link i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s;
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
    background: rgba(0, 102, 255, 0.15);
    color: #fff;
}

.drawer-nav-link:hover i,
.drawer-nav-link.active i {
    color: var(--primary-cyan);
}

.drawer-nav-link.active {
    border: 1px solid rgba(0, 242, 254, 0.25);
}

.drawer-nav-link.nav-logout:hover {
    background: rgba(255, 61, 113, 0.15);
    color: #ff3d71;
}
.drawer-nav-link.nav-logout:hover i {
    color: #ff3d71;
}

.mobile-drawer-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

/* ============================================================
   UNIFIED EMPTY STATE STYLES (MATCHING TRANSACTIONS PAGE)
============================================================ */
.empty-state-card {
    padding: 34px 20px !important;
    text-align: center !important;
    border-radius: var(--radius-lg, 16px) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.empty-state-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 162, 255, 0.08);
    border: 1px solid rgba(0, 162, 255, 0.25);
    color: var(--primary-cyan, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    box-shadow: 0 0 16px rgba(0, 162, 255, 0.18);
    flex-shrink: 0;
}

.empty-state-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.empty-state-sub {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    font-weight: 400;
    line-height: 1.45;
    max-width: 380px;
    margin: 0 auto;
}