:root {
    --bg-dark: #05070b; --panel-dark: #0d111a; --panel-sub: #121824; --accent-glow: #00ff87;
    --neon-green: #00ff87; --neon-red: #ff0055; --text-main: #e2e8f0; --text-muted: #4a5568;
    --transition-snappy: cubic-bezier(0.25, 0.8, 0.25, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    min-height: 100vh; 
    width: 100%;
}

/* Base Application Wrapper Flex Alignment Container */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.main-content {
    min-width: 0;
}

/* Sidebar - Position Fixed Locks the Container and Border to the Glass Viewport Screen */
.sidebar { 
    width: 280px; 
    min-width: 280px; 
    background: var(--panel-dark); 
    border-right: 1px solid #172030; 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    gap: 15px; 
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh; 
    z-index: 10;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
}

/* Interactive Branding Logo */
.logo { 
    font-size: 1.4rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    color: var(--text-main); 
    margin-bottom: 10px;
    flex-shrink: 0; 
    text-decoration: none; 
    cursor: pointer;       
    display: block;        
}
.logo span { color: var(--accent-glow); text-shadow: 0 0 12px var(--accent-glow); }

.nav-tabs { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.account-tab { background: var(--panel-sub); padding: 14px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(255,255,255,0.03); display: flex; justify-content: space-between; align-items: center; transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.25,1,0.5,1), box-shadow 0.3s; transform: translateY(0); position: relative !important; overflow: hidden !important; }
.account-tab:not(.active)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.041) 50%, transparent 100%); width: 500%; transform: translateX(-100%); pointer-events: none; opacity: 0; transition: opacity 0.15s ease-out; }
.account-tab:not(.active):hover { border-color: rgba(0,230,118,0.2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.account-tab:not(.active):hover::before { opacity: 1; animation: luxurious-glide 8s ease-in-out infinite; }
@keyframes luxurious-glide { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(0%); } }
.account-tab.active { background: linear-gradient(90deg, #070a10 0%, #101726 25%, rgba(0, 230, 119, 0.116) 50%, #101726 75%, #070a10 100%); background-size: 380% 380%; animation: wave 9s ease infinite; border: 1px solid var(--accent-glow); box-shadow: 0 0 20px rgba(0,230,118,0.2), inset 0 0 12px rgba(255,255,255,0.05); }
@keyframes wave { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.account-tab.active:hover { transform: translateY(0); box-shadow: 0 0 25px rgba(0,230,118,0.3); }

.add-tab-btn { background: var(--panel-sub); padding: 14px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.03); display: flex; justify-content: center; align-items: center; font-weight: bold; color: #ffffff; flex-shrink: 0; transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s; transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02); }
.add-tab-btn:hover { border-color: rgba(0, 230, 118, 0.4); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 230, 118, 0.08); }
.add-tab-btn:active { background: linear-gradient(135deg, #070a10 0%, #101726 35%, rgba(0, 230, 118, 0.15) 50%, #101726 65%, #070a10 100%); background-size: 300% 300%; animation: wave 6s ease infinite; border: 1px solid rgba(0, 230, 118, 0.8); box-shadow: 0 0 20px rgba(0, 230, 118, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.05); transform: translateY(0); }

.settings-toggle-btn { background: #151f32; border: 1px solid #233350; color: var(--text-main); padding: 12px; border-radius: 6px; cursor: pointer; font-weight: bold; text-align: left; transition: background 0.2s; flex-shrink: 0; margin-bottom: 20px; }
.settings-toggle-btn:hover { background: #202e4a; border-color: var(--accent-glow); }

/* Main Content Workspace Layer */
.main-content { 
    flex-grow: 1;
    min-width: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    min-height: 100vh;
    margin-left: 280px;
}

.dashboard-header { display: flex; justify-content: space-between; align-items: center; }
.account-badge { background: rgba(0, 210, 255, 0.05); border: 1px solid #172a45; color: var(--accent-glow); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; }

/* Balanced 5-Column Metrics Row Matrix Grid */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; width: 100%; flex-shrink: 0; }
.stat-card { background: var(--panel-dark); border-radius: 10px; padding: 16px 18px; border: 1px solid #172030; }
.stat-card h3 { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; margin-bottom: 6px; }
.stat-card .value { font-size: 1.5rem; font-weight: 800; }

/* Fluid Full-Width Calendar Container Layout */
.calendar-container { background: var(--panel-dark); border-radius: 14px; padding: 10px; border: 1px solid #172030; overflow: hidden; box-sizing: border-box; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; min-height: 450px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; }
.calendar-header button { background: var(--panel-sub); border: 1px solid #172030; color: white; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }

/* Centered Day Grid Matrix Cells */
.day-cell { background: var(--panel-sub); aspect-ratio: 1.6; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.day-cell:hover { background: #141c2b; border-color: #2e3b52; }

.day-num { position: absolute; top: 6px; left: 8px; font-weight: bold; color: #475569; font-size: 0.8rem; }
.day-pnl { font-weight: 800; font-size: 1.15rem; text-align: center; margin-bottom: 2px; }
.day-trades { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

.day-cell.today-highlight { border: 2px solid var(--accent-glow) !important; box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
.day-cell.today-highlight .day-num { color: var(--text-main); font-weight: 900; }

.day-cell.overtraded-alert { border: 1px dashed #ff9900 !important; }
.day-cell.overtraded-alert .day-trades { color: #ff9900; font-weight: bold; }

.day-cell.profit { background: rgba(0, 255, 135, 0.02); border-color: rgba(0, 255, 135, 0.1); }
.day-cell.profit:hover { border-color: var(--neon-green); background: rgba(0, 255, 135, 0.05); }
.day-cell.profit .day-pnl { color: var(--neon-green); text-shadow: 0 0 10px rgba(0, 255, 135, 0.3); }

.day-cell.loss { background: rgba(255, 0, 85, 0.02); border-color: rgba(255, 0, 85, 0.1); }
.day-cell.loss:hover { border-color: var(--neon-red); background: rgba(255, 0, 85, 0.05); }
.day-cell.loss .day-pnl { color: var(--neon-red); text-shadow: 0 0 10px rgba(255, 0, 85, 0.3); }

.chart-panel {
    background: var(--panel-dark);
    border-radius: 14px;
    padding: 24px 30px;
    border: 1px solid #172030;
    width: 100%;
    height: 350px; 
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 50px;
}
#analyticsChart { width: 100%; height: 100%; display: block; }

.chart-title-label {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    pointer-events: none; 
    z-index: 5;
}

.emoji-tag-btn.selected-active {
    border-color: var(--accent-glow) !important;
    background: rgba(0, 210, 255, 0.1) !important;
    text-shadow: 0 0 8px var(--accent-glow);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

.day-emoji-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
    height: 16px;
    font-size: 0.85rem;
    pointer-events: none;
    user-select: none;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #172030; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #233350; }
* { scrollbar-width: thin; scrollbar-color: #172030 var(--bg-dark); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(3, 5, 8, 0.95); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 100; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--panel-dark); padding: 30px; border-radius: 12px; width: 100%; max-width: 420px; border: 1px solid #172030; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: var(--text-muted); font-size: 0.85rem; }
.form-group input, .form-group select { background: var(--panel-sub); border: 1px solid #172030; padding: 12px; border-radius: 6px; color: white; font-size: 1rem; outline: none; }
.form-group input:focus { border-color: var(--accent-glow); }
.modal-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 25px; }
.cancel-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; }
.confirm-btn { background: #1d4ed8; border: none; padding: 10px 20px; color: white; font-weight: bold; border-radius: 6px; cursor: pointer; }
.modal-alert-icon { font-size: 3.5rem; margin-bottom: 15px; animation: pulseGlow 1.5s infinite alternate; }
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.05); opacity: 1; } }
.hold-action-container { position: relative; width: 100%; margin-top: 15px; }
.hold-confirm-execute { position: relative; width: 100%; height: 55px; background: #151a26; border: 1px solid #2d3954; border-radius: 8px; color: #f43f5e; font-weight: 800; font-size: 0.9rem; letter-spacing: 1px; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hold-confirm-execute .progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, #990033, var(--neon-red)); transition: none; z-index: 1; }
.hold-confirm-execute .btn-text { position: relative; z-index: 2; pointer-events: none; user-select: none; }
.single-delete-btn { background: transparent; border: 1px solid #3b0712; color: var(--neon-red); padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; font-weight: 600; }
.single-delete-btn:hover { background: #4c0519; }
.account-manage-list { display: flex; flex-direction: column; gap: 10px; max-height: 200px; overflow-y: auto; padding-right: 5px; }
.account-manage-list::-webkit-scrollbar { width: 4px; }
.account-manage-list::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
@keyframes jackpotFlash { 0% { background-color: var(--bg-dark); } 25% { background-color: rgba(0, 255, 135, 0.08); } 50% { background-color: var(--bg-dark); } 75% { background-color: rgba(0, 255, 135, 0.08); } 100% { background-color: var(--bg-dark); } }
.jackpot-flash { animation: jackpotFlash 0.6s ease-in-out; }

/* ==========================================================================
   COMMUNITY CHAT
   ========================================================================== */

.trader-chat-setup-gate {
    flex-grow: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
    position: relative;
}

.trader-chat-setup-card {
    width: 100%;
    max-width: 560px;
    min-height: 360px;
    background: linear-gradient(135deg, rgba(13, 17, 25, 0.95), rgba(7, 10, 16, 0.98));
    border: 1px solid #172030;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,255,135,0.04);
    text-align: center;
}

.trader-chat-setup-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.trader-chat-setup-card p {
    color: #9aa8ba;
    line-height: 1.6;
    max-width: 460px;
}

.trader-chat-setup-bolt {
    font-size: 2.2rem;
    margin-bottom: 14px;
    color: var(--accent-glow);
    text-shadow: 0 0 18px rgba(0,255,135,0.4);
    animation: traderChatBoltPulse 1.8s ease-in-out infinite;
}

@keyframes traderChatBoltPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

.trader-chat-setup-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.trader-chat-unlock-sweep {
    position: absolute;
    top: -30%;
    left: -220%;
    width: 80%;
    height: 170%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18),
        rgba(0,255,135,0.10),
        transparent
    );
    transform: skewX(-25deg);
    opacity: 0;
    pointer-events: none;
}

.chat-unlock-active .trader-chat-unlock-sweep {
    animation: traderChatUnlockSweep 1.1s ease forwards;
}

@keyframes traderChatUnlockSweep {
    0% {
        left: -220%;
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    100% {
        left: 220%;
        opacity: 0;
    }
}

.chat-unlock-active .trader-chat-setup-card {
    animation: traderChatUnlockFlash 1.1s ease;
}

@keyframes traderChatUnlockFlash {
    0% { box-shadow: 0 0 0 rgba(0,255,135,0); }
    30% { box-shadow: 0 0 50px rgba(0,255,135,0.18); }
    100% { box-shadow: 0 0 30px rgba(0,255,135,0.04); }
}

.chat-message-row {
    display: flex;
    width: 100%;
}

.chat-message-bubble {
    width: 100%;
    background: #0e131d;
    border: 1px solid #172030;
    border-radius: 10px;
    padding: 10px 12px;
}

.chat-message-bubble.own-message {
    border-color: rgba(0,255,135,0.18);
    box-shadow: 0 0 14px rgba(0,255,135,0.03);
}

.chat-message-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.chat-message-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2px;
}

.chat-message-text {
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.chat-username-standard {
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 135, 0.22);
}

.chat-username-owner {
    display: inline-block;
    position: relative;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: 0.2px;

    /* High-contrast electric light blue text */
    color: #00d9ff;

    /* Clean, tight neon accent that keeps text sharp */
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.6);
}

.chat-message-username,
#chatUsernameBadge,
#communityUsernameStatusText {
    overflow: visible !important;
}


/* Optimization Layer for Widescreens */
@media (min-width: 2200px) {
    .day-cell { aspect-ratio: 2.2; }
    .stats-grid { gap: 20px; }
}

/* Mobile Phone Viewport Core Adaptations */
@media (max-width: 768px) {
    body, .app-container { overflow-y: auto; height: auto; }
    .sidebar { width: 100vw; min-width: 100vw; height: auto; position: relative; border-right: none; border-bottom: 1px solid #172030; padding: 15px; gap: 10px; }
    .logo { margin-bottom: 5px; text-align: center; }
    .nav-tabs { flex-direction: row; overflow-x: auto; gap: 8px; width: 100%; padding-bottom: 5px; }
    .account-tab { padding: 8px 12px; flex-shrink: 0; }
    .add-tab-btn, .settings-toggle-btn { padding: 10px; font-size: 0.85rem; margin-bottom: 0; }
    .main-content { margin-left: 0; padding: 15px; gap: 15px; height: auto; min-height: auto; max-height: none; overflow-y: visible; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 12px; }
    .stat-card .value { font-size: 1.2rem; }
    .chart-panel { height: 180px; padding: 12px; margin-bottom: 15px; }
    .workspace { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
    .calendar-container { min-width: 650px; padding: 15px; min-height: auto; }
    .day-cell { aspect-ratio: 1.4; padding: 6px; }
    .day-pnl { font-size: 0.95rem; }
    .day-trades { font-size: 0.7rem; }

    .trader-chat-setup-card {
        min-height: 320px;
        padding: 22px 18px;
    }
}

/* Low-Profile Sidebar Signature */
.sidebar-signature {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: auto;
    padding-top: 15px;
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
}

/* Low-Profile Top Right Calendar News Flags */
.day-news-flag-container {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    gap: 3px;
    pointer-events: none;
}
.news-flag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.news-flag-dot.high-impact {
    background-color: var(--neon-red);
    box-shadow: 0 0 6px var(--neon-red);
}
.news-flag-dot.med-impact {
    background-color: #ffaa00;
    box-shadow: 0 0 6px #ffaa00;
}

/* Financial Terminal Row Matrix Layout styles */
.news-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel-sub);
    padding: 16px 20px;
    transition: background 0.15s ease;
    text-decoration: none;
}
.news-data-row:hover {
    background: #162032;
}
.news-row-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    max-width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-row-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
}
.news-toggle-link:hover {
    border-color: var(--accent-glow) !important;
}
.news-toggle-link.active-view {
    background: linear-gradient(135deg, #101726, #070a10) !important;
    border: 1px solid var(--accent-glow) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

/* ==========================================================================  
   ASCENDX VISUAL REFINEMENTS - HOVER TRANSITIONS & DYNAMIC SHADOWS  
   ========================================================================== */

body {
    background: radial-gradient(circle at 15% 15%, #0d1527 0%, #05070b 70%) !important;
}

.logo {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), text-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.logo:hover {
    transform: scale(1.01) rotate(0deg) !important;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.85), 0 0 6px rgba(255, 255, 255, 0.4) !important;
}

.nav-tab-btn, .settings-toggle-btn, .add-tab-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
}
.nav-tab-btn:hover, .settings-toggle-btn:hover {
    color: #e2e8f0 !important;
    background: #0d1322 !important;
    padding-left: 20px !important;
    box-shadow: inset 3px 0 0 #00ff87, inset 0 0 10px rgba(0, 210, 255, 0.05);
}

.nav-tab-btn.active {
    background: #0e182b !important;
    border-color: #1e355e !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.12) !important;
    color: #00ff87 !important;
}

.stat-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: #23334d !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================  
   ASCENDX VISUAL REFINEMENTS - CALENDAR POPS & JACKPOT SCREEN FLASHES  
   ========================================================================== */

.calendar-day-box {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.calendar-day-box:hover {
    transform: scale(1.03) translateY(-1px);
    border-color: #3b5278 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 5;
}

.calendar-day-box.win-day:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 10px rgba(57, 255, 20, 0.2) !important;
    border-color: #39ff14 !important;
}

.calendar-day-box.loss-day:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 10px rgba(255, 0, 85, 0.2) !important;
    border-color: #ff0055 !important;
}

.modal-overlay {
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease !important;
}

.modal {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.emoji-tag-btn {
    transition: transform 0.15s ease, background 0.15s ease !important;
}
.emoji-tag-btn:hover {
    transform: scale(1.06);
}
.emoji-tag-btn.selected-active {
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.3) !important;
}

.jackpot-flash::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(57, 255, 20, 0.08);
    box-shadow: inset 0 0 80px rgba(57, 255, 20, 0.3);
    pointer-events: none;
    z-index: 99999;
    animation: jackpotFlashPulse 1.75s cubic-bezier(0.19, 1, 0.22, 1) both;
}
@keyframes jackpotFlashPulse {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ==========================================================================  
   ASCENDX REACTIVE MAGNETIC CURSOR GLOW CIRCLE STYLES  
   ========================================================================== */

.stat-card, .nav-tab-btn, .settings-toggle-btn, .add-tab-btn, .calendar-day-box {
    position: relative !important;
    overflow: hidden !important;
}

.cursor-glow-circle-follower {
    position: absolute !important;
    left: var(--cursor-x, 0px) !important;
    top: var(--cursor-y, 0px) !important;
    width: 350px !important;
    height: 350px !important;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.06) 0%, rgba(0, 210, 255, 0) 75%) !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    z-index: 1 !important;
}

.stat-card:hover .cursor-glow-circle-follower,
.nav-tab-btn:hover .cursor-glow-circle-follower,
.settings-toggle-btn:hover .cursor-glow-circle-follower,
.add-tab-btn:hover .cursor-glow-circle-follower,
.calendar-day-box:hover .cursor-glow-circle-follower {
    opacity: 1 !important;
}

.calendar-day-box.win-day .cursor-glow-circle-follower {
    background: radial-gradient(circle, rgba(57, 255, 20, 0.07) 0%, rgba(57, 255, 20, 0) 75%) !important;
}

.calendar-day-box.loss-day .cursor-glow-circle-follower {
    background: radial-gradient(circle, rgba(255, 0, 85, 0.07) 0%, rgba(255, 0, 85, 0) 75%) !important;
}

/* ==========================================================================  
   ASCENDX PERFORMANCE LOSS DYNAMIC SCREEN FLASH PIPELINE  
   ========================================================================== */

.loss-flash::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 0, 85, 0.12);
    box-shadow: inset 0 0 100px rgba(255, 0, 85, 0.45);
    pointer-events: none;
    z-index: 99999;
    animation: lossFlashPulse 1.75s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes lossFlashPulse {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* =====================================================
   ASCENDX PREMIUM GREEN ACTION BUTTONS
   ===================================================== */

.confirm-btn,
.create-tracker-btn,
.lock-trade-btn,
.auth-submit,
.auth-toggle-btn.active,
button.primary-action {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #00ff87 0%,
        #00d66f 35%,
        #00ff87 70%,
        #00b85f 100%
    ) !important;
    color: #04110a !important;
    font-weight: 800;
    border: 1px solid rgba(0,255,135,0.35) !important;
    border-radius: 10px;
    box-shadow:
        0 0 18px rgba(0,255,135,0.18),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transition:
        transform .25s cubic-bezier(.34,1.56,.64,1),
        box-shadow .25s ease,
        filter .25s ease;
}

.confirm-btn:hover,
.create-tracker-btn:hover,
.lock-trade-btn:hover,
.auth-submit:hover,
button.primary-action:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 28px rgba(0,255,135,0.35),
        0 8px 20px rgba(0,0,0,0.35);
    filter: brightness(1.05);
}

.confirm-btn:active,
.create-tracker-btn:active,
.lock-trade-btn:active,
.auth-submit:active,
button.primary-action:active {
    transform: translateY(0);
}

.confirm-btn::before,
.create-tracker-btn::before,
.lock-trade-btn::before,
.auth-submit::before,
.auth-toggle-btn.active::before,
button.primary-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transform: skewX(-25deg);
    animation: ascendxShimmer 3s linear infinite;
}

@keyframes ascendxShimmer {
    0% { left: -150%; }
    100% { left: 250%; }
}

#activeAccountTitle { display: none !important; }

/* ==========================================================================  
   AUTH SCREEN (Login / Create Account / Reset) — matches dashboard theme  
   ========================================================================== */
.auth-shell {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 135, 0.06), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 135, 0.05), transparent 40%),
        var(--bg-dark);
    overflow-y: auto;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #0d1119, #070a10);
    border: 1px solid #172030;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 0 40px rgba(0, 255, 135, 0.08);
}
.auth-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    color: var(--text-main);
}
.auth-logo span { color: var(--accent-glow); text-shadow: 0 0 14px var(--accent-glow); }
.auth-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
    margin-bottom: 24px;
}
.auth-toggle {
    display: flex;
    background: var(--panel-sub);
    border: 1px solid #172030;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 20px;
}
.auth-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s var(--transition-snappy);
}
.auth-toggle-btn.active {
    position: relative;
    overflow: hidden;
    color: #04110a;
    box-shadow: 0 0 14px rgba(0, 255, 135, 0.2);
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-help { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 18px; }
.auth-submit {
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
    cursor: pointer;
}
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; filter: none; }
.auth-links { text-align: center; margin-top: 16px; }
.auth-links a {
    color: var(--accent-glow);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}
.auth-links a:hover { text-decoration: underline; }
.auth-banner {
    display: none;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.4;
}
.auth-banner.show { display: block; }
.auth-banner.error { background: rgba(255, 0, 85, 0.08); border: 1px solid rgba(255, 0, 85, 0.3); color: #ff6b95; }
.auth-banner.success { background: rgba(0, 255, 135, 0.08); border: 1px solid rgba(0, 255, 135, 0.25); color: var(--neon-green); }
.auth-banner.info { background: rgba(0, 255, 135, 0.06); border: 1px solid rgba(0, 255, 135, 0.25); color: var(--accent-glow); }
.auth-signature {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-top: 26px;
}

/* Logout control in the dashboard sidebar */
.logout-btn {
    background: transparent;
    border: 1px solid #3b0712;
    color: var(--neon-red);
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}
.logout-btn:hover { background: rgba(255, 0, 85, 0.08); border-color: var(--neon-red); }
.user-email-chip {
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 2px 2px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}