:root {
    --bg-color: #060810;
    --glass-bg: rgba(18, 22, 40, 0.85);
    --glass-border: rgba(0, 210, 255, 0.25);
    --glass-glow: rgba(0, 210, 255, 0.12);
    --theme-color: #00e5ff;
    --theme-glow: rgba(0, 229, 255, 0.45);
    --text-primary: #ffffff;
    --text-secondary: #a0b0d0;
    --positive: #00fa9a;
    --negative: #ff4d4d;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

/* Color Themes Engine */
body.theme-cyan {
    --bg-color: #060810;
    --glass-bg: rgba(18, 22, 40, 0.85);
    --glass-border: rgba(0, 210, 255, 0.3);
    --theme-color: #00e5ff;
}

body.theme-gold {
    --bg-color: #120e06;
    --glass-bg: rgba(35, 26, 12, 0.88);
    --glass-border: rgba(255, 189, 46, 0.4);
    --theme-color: #ffbd2e;
}

body.theme-emerald {
    --bg-color: #04120a;
    --glass-bg: rgba(10, 32, 20, 0.88);
    --glass-border: rgba(0, 250, 154, 0.4);
    --theme-color: #00fa9a;
}

body.theme-purple {
    --bg-color: #0d0614;
    --glass-bg: rgba(28, 14, 42, 0.88);
    --glass-border: rgba(168, 85, 247, 0.4);
    --theme-color: #a855f7;
}

body.theme-crimson {
    --bg-color: #140608;
    --glass-bg: rgba(42, 12, 18, 0.88);
    --glass-border: rgba(255, 77, 109, 0.4);
    --theme-color: #ff4d6d;
}

/* Owned Stock Card Highlight */
.asset-card.owned-highlight {
    border: 1px solid rgba(0, 250, 154, 0.55) !important;
    background: linear-gradient(135deg, rgba(0, 250, 154, 0.12), rgba(18, 22, 40, 0.85)) !important;
    box-shadow: 0 0 16px rgba(0, 250, 154, 0.25) !important;
}

/* Global Interactive Pointer Fix */
button, .btn, .filter-chip, .tf-btn, .chart-type-btn, .nav-item, .asset-card, .portfolio-card-compact, .leaderboard-card, .shop-item-card, [onclick], input[type="checkbox"], input[type="range"] {
    cursor: pointer !important;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

button, input, a {
    user-select: auto;
    -webkit-user-select: auto;
    pointer-events: auto !important;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100%;
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
}

/* 100% Fluid Responsive Layout Container */
.app-container {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at 50% 0%, #101830 0%, #060810 100%);
    overflow: hidden;
}

/* Background Ambient Glows */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.sphere-1 {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--theme-color);
    top: -100px;
    left: -100px;
}

.sphere-2 {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: #7000ff;
    bottom: -150px;
    right: -150px;
}

/* Glassmorphism Containers */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-glow);
    border-radius: 16px;
}

/* News Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 8px 12px 0 12px;
    padding: 0 12px;
    border-radius: 10px;
    z-index: 10;
    gap: 10px;
    overflow: hidden;
}

.ticker-label {
    background: var(--theme-color);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.ticker-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Top Header Bar */
.top-bar {
    margin: 6px 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-radius: 14px;
}

.top-bar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

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

.balance-main {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-metrics {
    font-size: clamp(0.68rem, 2.8vw, 0.8rem);
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-val {
    font-weight: 800;
}

.positive { color: var(--positive); }
.negative { color: var(--negative); }

.xp-bar-container {
    width: 100%;
    max-width: 180px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    width: 25%;
    background: var(--theme-color);
    box-shadow: 0 0 10px var(--theme-glow);
    transition: width 0.3s ease;
}

.top-bar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.gem-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-rank-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--theme-color);
}

.level-badge {
    background: var(--theme-color);
    color: #000;
    font-weight: 900;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 6px;
}

.network-btn {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

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

/* Multi-Line Scrollable Activity Feed Panel */
.activity-feed-panel {
    margin: 2px 12px 10px 12px;
    padding: 10px 16px;
    z-index: 10;
    border-radius: 14px;
    font-size: 0.88rem;
    max-height: 140px;
    display: flex;
    flex-direction: column;
}

.activity-feed-header {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--theme-color);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.activity-feed-list {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 100px;
    overflow-y: auto;
    padding-right: 4px;
}

.activity-feed-list::-webkit-scrollbar {
    width: 4px;
}

.activity-feed-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.activity-feed-list::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 4px;
}

/* Main Scrollable Content Area */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 4px 12px 140px 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.35);
    border-radius: 4px;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.tab-content.active {
    display: flex;
}

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

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sector-filters {
    display: flex;
    gap: 6px;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    min-height: 34px;
}

.filter-chip.active {
    background: var(--theme-color);
    color: #000;
    border-color: var(--theme-color);
    box-shadow: 0 0 10px var(--theme-glow);
}

/* Timeframe Selector Styling (1H, 1D, 7D, 30D, 1Y, 5Y) */
.timeframe-selector {
    display: flex;
    gap: 6px;
    margin: 2px 0 6px 0;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.tf-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tf-btn.active {
    background: var(--theme-color);
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 10px var(--theme-glow);
}

/* Chart Type Mode Switcher Selector Bar */
.chart-type-selector {
    display: flex;
    gap: 6px;
    margin: 2px 0 8px 0;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.chart-type-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.chart-type-btn.active {
    background: var(--theme-color);
    color: #000;
    box-shadow: 0 0 10px var(--theme-glow);
}

/* Auto-Fitting Grid */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    width: 100%;
}

.asset-card {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    min-height: 78px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.asset-card:active {
    transform: scale(0.98);
}

.asset-symbol-group {
    min-width: 110px;
    flex: 0 0 auto;
    overflow: hidden;
}

.asset-sparkline {
    flex: 1 1 auto;
    height: 42px;
    margin: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 40px;
}

.asset-symbol {
    font-weight: 900;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-name {
    font-size: clamp(0.7rem, 0.9vw, 0.78rem);
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-sector-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-block;
    margin-top: 3px;
}

.asset-prices {
    text-align: right;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 45%;
    overflow: hidden;
}

.asset-price-val {
    font-family: var(--font-mono);
    font-size: clamp(0.82rem, 1.1vw, 1.05rem);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-change-val {
    font-size: clamp(0.72rem, 0.9vw, 0.82rem);
    font-weight: 800;
    margin-top: 2px;
    white-space: nowrap;
}

/* Portfolio Stats */
.portfolio-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 14px;
    text-align: center;
    gap: 10px;
}

.p-stat .label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 800;
}

.p-stat .value {
    font-size: 1.15rem;
    font-weight: 900;
    margin-top: 4px;
}

/* Portfolio Grid & Cards (Multi-Column Layout) */
.portfolio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.portfolio-item {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 100px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    background: rgba(10, 14, 26, 0.8);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.portfolio-item:hover {
    transform: translateY(-2px);
    border-color: #00e5ff;
}

/* Leaderboards */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-card {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lb-rank {
    font-weight: 900;
    font-size: 1.2rem;
    width: 36px;
    color: var(--theme-color);
}

.lb-user-info {
    flex-grow: 1;
}

.lb-name {
    font-weight: 800;
    font-size: 1rem;
}

.lb-score {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--positive);
}

.friends-input-box {
    padding: 12px;
    display: flex;
    gap: 10px;
}

.friends-input-box input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.9rem;
}

/* Daily Rewards & Ad Cards Grid */
.ad-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.ad-card {
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ad-card-icon {
    font-size: 2.2rem;
}

.ad-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
}

.ad-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.shop-item-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.shop-title {
    font-weight: 800;
    font-size: 0.95rem;
}

.shop-price {
    font-weight: 900;
    color: var(--theme-color);
    font-size: 1.15rem;
}

.shop-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Detailed Career Stats Grid */
.detail-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.detail-stat-row:last-child {
    border-bottom: none;
}

/* Extended 2-Column Analytics Layout inside Stock Detail Panel */
.analytics-grid-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

/* Settings Container */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.setting-input-group input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: scale(0.96);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-neon {
    background: var(--theme-color);
    color: #000;
    box-shadow: 0 0 16px var(--theme-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-buy {
    background: var(--positive);
    color: #000;
    width: 100%;
}

.btn-danger {
    background: var(--negative);
    color: #fff;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 74px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 6px;
    z-index: 100;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    background: rgba(10, 14, 28, 0.96);
    border-top: 1px solid rgba(0, 210, 255, 0.25);
    backdrop-filter: blur(20px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 6px;
    flex: 1;
    min-width: 48px;
    max-width: 72px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-label {
    font-size: 0.68rem;
    font-weight: 800;
}

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

.nav-item.active .nav-icon {
    transform: translateY(-2px);
}

/* Stock Detail Panel Overlay */
.detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(6, 8, 16, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.detail-panel.active {
    display: flex;
}

.detail-panel-container {
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    background: rgba(14, 18, 34, 0.96);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

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

.btn-back {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
}

.detail-symbol-group h2 {
    font-size: 1.3rem;
    font-weight: 900;
}

.detail-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chart-wrapper {
    height: 260px;
    min-height: 220px;
    width: 100%;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.timeframe-selector, .chart-type-selector {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tf-btn, .chart-type-btn {
    flex: 1;
    min-width: 44px;
    padding: 4px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a0b0d0;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.tf-btn.active, .chart-type-btn.active {
    background: var(--theme-color);
    color: #000;
    border-color: var(--theme-color);
}

/* Bottom Navigation Bar Styling */
.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 6px 6px 6px;
    z-index: 100;
    background: rgba(6, 9, 18, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #00e5ff rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
}

.bottom-nav::-webkit-scrollbar {
    height: 3px;
    display: block;
}

.bottom-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00e5ff, #00fa9a);
    border-radius: 3px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #90a0c0;
    padding: 4px 10px;
    min-width: 58px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

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

.nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.15);
    filter: drop-shadow(0 0 6px var(--theme-color));
}

.nav-icon {
    font-size: 1.3rem;
    transition: transform 0.15s ease;
}

.nav-label {
    font-size: 0.68rem;
    font-weight: 800;
    margin-top: 2px;
}

/* Glowing Pulse Animation for Chat notification */
.nav-item.chat-glow {
    position: relative;
    animation: chatPulseGlow 1.5s infinite alternate ease-in-out;
}

.nav-item.chat-glow .nav-icon {
    animation: chatIconBounce 0.8s infinite alternate ease-in-out;
}

.nav-item.chat-glow::after {
    content: "NEW";
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: 0.55rem;
    font-weight: 900;
    background: #ff007f;
    color: #fff;
    padding: 1px 4px;
    border-radius: 6px;
    box-shadow: 0 0 8px #ff007f;
    animation: badgePulse 1s infinite alternate;
}

@keyframes chatPulseGlow {
    0% {
        color: #00e5ff;
        filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.4));
    }
    100% {
        color: #ff007f;
        filter: drop-shadow(0 0 12px rgba(255, 0, 127, 0.9));
    }
}

@keyframes chatIconBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px) scale(1.15); }
}

@keyframes badgePulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Chat Tab Message Bubbles */
.chat-msg-card {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.15s ease;
}

.chat-msg-card.chat-msg-self {
    background: rgba(0, 229, 255, 0.09);
    border-color: rgba(0, 229, 255, 0.3);
    margin-left: 20px;
}

.chat-msg-card.chat-msg-dm {
    background: rgba(255, 0, 127, 0.08);
    border-color: rgba(255, 0, 127, 0.3);
}

/* Tutorial Interactive Spotlight & Flashing Glow Animations */
.tutorial-spotlight-active {
    position: relative !important;
    z-index: 99999 !important;
    animation: tutorialSpotlightPulse 1.2s infinite alternate ease-in-out !important;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.9), inset 0 0 20px rgba(0, 229, 255, 0.35) !important;
    border: 2px solid #00e5ff !important;
    transform: scale(1.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes tutorialSpotlightPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.2);
        border-color: #00e5ff;
    }
    100% {
        box-shadow: 0 0 45px rgba(0, 250, 154, 1), 0 0 25px rgba(0, 229, 255, 0.8), inset 0 0 25px rgba(0, 250, 154, 0.5);
        border-color: #00fa9a;
    }
}

.tutorial-nav-spotlight {
    position: relative !important;
    z-index: 99999 !important;
    animation: tutorialNavPulse 1s infinite alternate ease-in-out !important;
    color: #00fa9a !important;
}

@keyframes tutorialNavPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px #00e5ff);
    }
    100% {
        transform: scale(1.25) translateY(-4px);
        filter: drop-shadow(0 0 16px #00fa9a);
    }
}
