/* ==========================================================================
   NeWo Web Mode — Pure OLED Black Theme & Design System
   ========================================================================== */

:root {
    --bg-black: #000000;
    --bg-surface: #070707;
    --bg-card: #0c0c0c;
    --bg-card-hover: #121212;
    --border-subtle: #1a1a1a;
    --border-card: #1f1f1f;
    --border-hover: #2f2f2f;
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    --accent-cyan: #06b6d4;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: var(--font-sans);
}

* {
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-black);
    color: #f1f5f9;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

h2 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
}

h3 {
    font-size: 0.95rem;
    line-height: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Tabular figures for all financial values and data tables */
.tabular-nums, .num, [data-num] {
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.01em;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #383838;
}

/* Surface & Card Classes (Pure Black OLED) */
.glass-panel {
    background: #000000;
    border: 1px solid var(--border-subtle);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 1.25rem;
    border-radius: 0.875rem;
    transition: all 0.18s ease-in-out;
}

.glass-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Active navigation item */
.nav-link {
    transition: all 0.15s ease-in-out;
}

.nav-link.active {
    background: #161616;
    color: #ffffff;
    border: 1px solid #282828;
    font-weight: 600;
}

.nav-link.active svg {
    color: #ffffff;
}

/* Subtle glow badges */
.badge-gain {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.badge-loss {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(244, 63, 94, 0.1);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.22);
}

.badge-neutral {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: #a3a3a3;
    border: 1px solid #262626;
}

/* Ticker Marquee Continuous Auto Scroll */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
}

.ticker-track {
    display: inline-flex;
    width: max-content;
    will-change: transform;
    gap: 0.75rem;
}

.ticker-track.ticker-animated {
    animation: ticker-marquee 55s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Segmented Allocation Bar */
.allocation-bar {
    display: flex;
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
    background: #171717;
    gap: 2px;
}

.allocation-segment {
    height: 100%;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.allocation-segment:hover {
    filter: brightness(1.2);
    transform: scaleY(1.3);
    z-index: 10;
}

/* Monogram avatar icons */
.monogram-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    border-radius: 8px;
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* Shake animation for invalid access code */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.35s ease-in-out;
}
