:root {
    --bg: #ffffff;
    --bg-alt: #f9f9f9;
    --surface: rgba(0, 0, 0, 0.025);
    --surface-hover: rgba(0, 0, 0, 0.05);
    --surface-active: rgba(0, 0, 0, 0.08);
    --surface-glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-glow: rgba(0, 0, 0, 0.45);
    --text-primary: #111111;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-muted: rgba(0, 0, 0, 0.4);
    --text-faint: rgba(0, 0, 0, 0.1);
    --accent: #000000;
    --accent-bright: #1a1a1a;
    --accent-dim: rgba(0, 0, 0, 0.65);
    --accent-glow: rgba(0, 0, 0, 0.14);
    --accent-bg: rgba(0, 0, 0, 0.06);
    --accent-border: rgba(0, 0, 0, 0.2);
    --green: #34d399;
    --green-bg: rgba(52, 211, 153, 0.07);
    --green-border: rgba(52, 211, 153, 0.2);
    --red: #f87171;
    --red-bg: rgba(248, 113, 113, 0.07);
    --red-border: rgba(248, 113, 113, 0.2);
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --top-bar-h: 58px;
    --player-h: 68px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-brand: "Michroma", monospace;
    --font:
        "Michroma", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 0 30px rgba(0, 0, 0, 0.08);
}

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

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    will-change: transform;
    animation: float 70s infinite alternate ease-in-out;
}
.blob:nth-child(1) {
    width: 55vw;
    height: 55vw;
    top: -15%;
    left: -8%;
    background: rgba(0, 0, 0, 0.04);
    animation-duration: 80s;
}
.blob:nth-child(2) {
    width: 45vw;
    height: 45vw;
    top: 55%;
    left: 55%;
    background: rgba(0, 0, 0, 0.03);
    animation-duration: 72s;
    animation-delay: -5s;
}
.blob:nth-child(3) {
    width: 50vw;
    height: 50vw;
    top: 8%;
    left: 65%;
    background: rgba(0, 0, 0, 0.025);
    animation-duration: 85s;
    animation-delay: -9s;
}
.blob:nth-child(4) {
    width: 40vw;
    height: 40vw;
    top: 65%;
    left: 8%;
    background: rgba(0, 0, 0, 0.025);
    animation-duration: 68s;
    animation-delay: -14s;
}
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -25px) scale(1.02);
    }
    100% {
        transform: translate(-25px, 40px) scale(0.98);
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(0, 0, 0, 0.025) 0%,
        transparent 60%
    );
}

input,
button,
select,
textarea {
    font-family: var(--font);
    outline: none;
}
input::-ms-reveal,
input::-ms-clear,
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    display: none !important;
}
.hidden {
    display: none !important;
}

/* ─── AUTH ─────────────────────────────────────────────── */
#auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}
.auth-ring-deco {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
    animation: ring-pulse 4s ease-in-out infinite;
}
.auth-ring-deco::before {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
@keyframes ring-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.6;
    }
}
.auth-box {
    width: 400px;
    max-width: 90vw;
    text-align: center;
    padding: 3rem 2.4rem 2.8rem;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    position: relative;
    z-index: 1;
}
.auth-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0.6;
}
.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
}
.auth-brand {
    font-family: var(--font-brand);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: var(--accent);
    margin-bottom: 1.6rem;
    text-transform: uppercase;
    opacity: 0.8;
}
.auth-box h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.auth-box .auth-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1.8rem;
}
.auth-error {
    color: rgba(248, 113, 113, 0.75);
    font-size: 0.76rem;
    margin-top: 0.7rem;
    display: none;
    letter-spacing: 0.03em;
}

/* ─── INPUTS ────────────────────────────────────────────── */
.fi {
    width: 100%;
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.72rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
    transition: all 0.2s var(--ease);
}
.fi::placeholder {
    color: var(--text-muted);
}
.fi:focus {
    background: var(--surface-hover);
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
select.fi {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 2.6rem;
}
input[type="date"].fi,
input[type="time"].fi {
    color-scheme: light;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
button {
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.58rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.16s var(--ease);
    box-shadow: var(--shadow-sm);
    font-family: var(--font);
}
button:hover {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}
button:active {
    transform: scale(0.96);
    opacity: 0.85;
    box-shadow: var(--shadow-sm);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--accent-border);
    box-shadow: none;
    transform: translateY(-1px);
}
.btn-danger {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-xs);
}
.btn-danger:hover {
    background: var(--red-bg);
    color: var(--red);
    box-shadow: none;
    transform: none;
}

/* ─── SHELL ─────────────────────────────────────────────── */
#shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    opacity: 0;
    position: relative;
    z-index: 2;
}

/* ─── TOP BAR ───────────────────────────────────────────── */
.top-bar {
    height: var(--top-bar-h);
    min-height: var(--top-bar-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}
.top-bar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 30%,
        rgba(0, 0, 0, 0.18) 50%,
        rgba(0, 0, 0, 0.12) 70%,
        transparent 100%
    );
}
.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.6rem;
    height: 100%;
    border-right: 1px solid var(--border);
}
.brand-name {
    font-family: var(--font-brand);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
}
.brand-name::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
}
.top-bar-center {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.6rem;
    height: 100%;
}
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}
.nav-drop-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    transition: color 0.18s;
    box-shadow: none;
    font-family: var(--font-brand);
}
.nav-drop-btn:hover {
    color: var(--accent);
    background: transparent;
    transform: none;
    box-shadow: none;
}
.nav-drop-content {
    position: absolute;
    top: calc(100% + 4px);
    left: -10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    min-width: 155px;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 0.2s,
        transform 0.2s var(--ease);
    z-index: 300;
    box-shadow: var(--shadow-lg);
}
.nav-drop-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.3),
        transparent
    );
    border-radius: var(--radius) var(--radius) 0 0;
}
.nav-drop-content::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
}
.nav-dropdown:hover .nav-drop-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.tnav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    text-align: left;
    width: 100%;
    text-transform: none;
    transition: all 0.14s;
    box-shadow: none;
}
.tnav-btn:hover {
    background: var(--accent-bg);
    color: var(--accent-bright);
    transform: none;
    box-shadow: none;
}
.tnav-btn.active {
    background: var(--accent-bg);
    color: var(--accent);
    font-weight: 600;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1.5rem;
    height: 100%;
    border-left: 1px solid var(--border);
}
.tb-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--accent-border);
    transition:
        transform 0.2s var(--ease),
        box-shadow 0.2s;
}
.tb-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.18);
}
.tb-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s;
    letter-spacing: 0.02em;
}
.tb-name:hover {
    color: var(--accent);
}

/* ─── BODY / VIEWS ──────────────────────────────────────── */
.body-row {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.main {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: transparent;
}
.view {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    padding: 2rem 2.5rem;
    transition: opacity 0.25s var(--ease);
    scroll-behavior: smooth;
}
.view.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.pg-hd {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.pg-ttl {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1;
    font-family: var(--font-brand);
}
.pg-sub {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── PANEL ─────────────────────────────────────────────── */
.panel {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.2),
        transparent
    );
}
.panel:hover {
    border-color: var(--border-strong);
}
.panel-title {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 1.1rem;
    font-family: var(--font-brand);
}
.label-sm {
    display: block;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.pnl-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.1rem;
}
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

/* ─── STATS ROW ─────────────────────────────────────────── */
.stats-row {
    display: flex;
    gap: 0;
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    margin-bottom: 1.4rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.stats-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.15),
        transparent
    );
}
.sc {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: transparent;
    transition: background 0.2s;
    position: relative;
}
.sc:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
.sc:hover {
    background: var(--surface-hover);
}
.sc-lbl {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    font-family: var(--font-brand);
}
.sc-val {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1;
    font-family: var(--font-brand);
}

/* ─── HOME ──────────────────────────────────────────────── */
.home-layout {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.home-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.home-date {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.sessions-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.6rem;
}
.sess-pill {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font-brand);
}
.sess-pill.active {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}
.home-pnl-card {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.home-pnl-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.3),
        transparent
    );
}
.home-pnl-label {
    font-family: var(--font-brand);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
}
.home-pnl-amount {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.7px;
    color: var(--text-primary);
    line-height: 1;
}
.clocks-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.clocks-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.15),
        transparent
    );
    z-index: 1;
}
.clk-card {
    background: transparent;
    padding: 1.1rem 1.3rem;
    transition: background 0.2s;
    position: relative;
}
.clk-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
}
.clk-card:hover {
    background: var(--surface-hover);
}
.clk-city {
    display: block;
    font-family: var(--font-brand);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.clk-t {
    font-family: var(--font-brand);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ticker-wrap {
    background: transparent;
    height: 46px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.market-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.1rem;
    height: 380px;
}
.chart-link-card {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.65rem;
}
.sym-inp {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.2s var(--ease);
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-brand);
}
.sym-inp:focus {
    background: var(--surface-hover);
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.mo-wrap {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.mo-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.2),
        transparent
    );
}
.mo-header {
    padding: 0.9rem 1.2rem;
    font-family: var(--font-brand);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    border-bottom: 1px solid var(--border);
}
.mo-body {
    padding: 0.9rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mo-label {
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mo-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}
.mo-value.highlight {
    color: var(--accent);
}
.mo-divider {
    border-top: 1px solid var(--border);
}
.mo-link {
    color: var(--text-secondary);
    font-size: 0.73rem;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.18s;
    padding: 0.15rem 0;
}
.mo-link:hover {
    color: var(--accent);
}
.news-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.home-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.quote-card {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.quote-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        var(--accent),
        transparent
    );
    opacity: 0.4;
}
.quote-text {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.01em;
}
.scratch-area {
    width: 100%;
    min-height: 105px;
    resize: none;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.3rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
}
.scratch-area:focus {
    background: var(--surface-hover);
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── P&L CALENDAR ──────────────────────────────────────── */
.cal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    margin-bottom: 0.6rem;
}
.cal-mn {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}
.cal-nav-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    box-shadow: none;
    transition: all 0.2s;
    font-family: var(--font-brand);
}
.cal-nav-btn:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent-border);
    transform: none;
    box-shadow: none;
}
.wdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 3px;
}
.wday {
    text-align: center;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.3rem 0;
    font-family: var(--font-brand);
}
.cgrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.cday {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.35rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s var(--ease);
}
.cday:hover {
    background: var(--surface-hover);
    border-color: var(--accent-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cday-n {
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1;
}
.cday-p {
    font-size: 0.56rem;
    margin-top: 0.15rem;
    line-height: 1.3;
    font-family: var(--font-brand);
}
.cday.profit {
    background: var(--green-bg);
    border-color: var(--green-border);
}
.cday.profit .cday-p,
.cday.profit .cday-n {
    color: var(--green);
    font-weight: 700;
}
.cday.loss {
    background: var(--red-bg);
    border-color: var(--red-border);
}
.cday.loss .cday-p,
.cday.loss .cday-n {
    color: var(--red);
    font-weight: 700;
}
.record-btn {
    width: 100%;
    padding: 0.78rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

/* ─── MODAL ─────────────────────────────────────────────── */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-bg.on {
    display: flex;
}
.modal {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    width: 420px;
    max-width: 92vw;
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}
.modal-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.modal-dt {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.modal-sum {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    background: var(--surface);
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius);
}
.modal-tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.9rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-family: var(--font-brand);
}

/* ─── LIST ITEMS ────────────────────────────────────────── */
.list-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
}
.list-item:last-child {
    border-bottom: none;
}
.task-check {
    appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.task-check:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.task-check:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        center/10px no-repeat;
}
.task-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-done .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}
.bm-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    flex: 1;
    font-weight: 450;
    transition: color 0.15s;
}
.bm-link:hover {
    color: var(--accent);
}

/* ─── DATA TABLE ────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table td {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    vertical-align: middle;
    color: var(--text-primary);
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tr:hover td {
    background: var(--surface-hover);
}
.td-title {
    color: var(--text-primary);
    font-weight: 600;
}
.td-sub {
    color: var(--text-secondary);
}
.td-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-brand);
}
.td-action {
    text-align: right;
}

/* ─── LIBRARY ───────────────────────────────────────────── */
.lib-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.lib-srch {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.72rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
}
.lib-srch:focus {
    background: var(--surface-hover);
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.lib-srch::placeholder {
    color: var(--text-muted);
}
.lib-count {
    font-family: var(--font-brand);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─── NOTES EDITOR ──────────────────────────────────────── */
.wr-lay {
    display: flex;
    height: calc(100vh - 5rem);
    gap: 1rem;
}
.wr-sb {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.add-ch-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.15s;
    font-family: var(--font);
}
.add-ch-btn:hover {
    background: var(--accent-bg);
    color: var(--accent);
    transform: none;
    box-shadow: none;
}
.ch-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}
.ch-li {
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: all 0.14s;
}
.ch-li:hover,
.ch-li.active {
    background: var(--surface-hover);
    color: var(--text-primary);
}
.ch-li.active {
    font-weight: 600;
    border-left: 2px solid var(--accent);
}
.wr-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.wr-bar {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: transparent;
}
.bk-title-in {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font);
}
.bk-title-in::placeholder {
    color: var(--text-muted);
}
.wc {
    font-family: var(--font-brand);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.wr-edit {
    flex: 1;
    overflow-y: auto;
    padding: 1.8rem 1.4rem;
}
.ch-ti {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    font-family: var(--font-brand);
}
.ch-ti::placeholder {
    color: var(--text-muted);
}
.editor {
    width: 100%;
    min-height: 45vh;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.9;
    resize: none;
    font-family: var(--font);
}
.editor::placeholder {
    color: var(--text-muted);
}

/* ─── FOCUS TIMER ───────────────────────────────────────── */
.focus-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}
.focus-ring-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.focus-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.focus-ring-track {
    fill: none;
    stroke: rgba(0, 0, 0, 0.04);
    stroke-width: 3;
}
.focus-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 603;
    stroke-dashoffset: 0;
    transition:
        stroke-dashoffset 1s linear,
        stroke 0.3s;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}
.focus-display {
    font-family: var(--font-brand);
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}
.focus-controls {
    display: flex;
    gap: 0.6rem;
}

/* ─── HABITS ────────────────────────────────────────────── */
.habits-layout {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.habits-add-row {
    display: flex;
    gap: 0.6rem;
}
.habits-week-header {
    display: grid;
    grid-template-columns: 1fr repeat(7, 38px);
    gap: 4px;
    align-items: center;
    padding: 0 0.3rem;
}
.habits-week-day {
    text-align: center;
    font-family: var(--font-brand);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1.4;
}
.habits-week-day.today-col {
    color: var(--accent);
}
.habit-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.habit-row {
    display: grid;
    grid-template-columns: 1fr repeat(7, 38px);
    gap: 4px;
    align-items: center;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 0.5rem;
    transition: border-color 0.2s;
}
.habit-row:hover {
    border-color: var(--accent-border);
}
.habit-name-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.habit-name-text {
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.habit-streak {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.7;
    white-space: nowrap;
    margin-left: auto;
    padding-right: 0.3rem;
}
.habit-del-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    padding: 0.15rem 0.35rem;
    flex-shrink: 0;
    border-radius: var(--radius-pill);
    box-shadow: none;
}
.habit-del-btn:hover {
    background: var(--red-bg);
    color: var(--red);
    transform: none;
    box-shadow: none;
}
.habit-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: transparent;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    justify-self: center;
    cursor: pointer;
    box-shadow: none;
}
.habit-dot:hover {
    background: var(--surface-hover);
    border-color: var(--accent-border);
    transform: scale(1.08);
    box-shadow: none;
}
.habit-dot.done {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    box-shadow: 0 0 12px var(--accent-glow);
}
.habit-dot.done::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.habit-dot.future {
    opacity: 0.2;
    cursor: default;
}

/* ─── GOALS ─────────────────────────────────────────────── */
.goals-stats {
    display: flex;
    gap: 0;
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    margin-bottom: 1.3rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.goals-progress-wrap {
    margin-bottom: 1.3rem;
}
.goals-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.goals-bar-track {
    height: 4px;
    background: var(--border);
    border-radius: 9999px;
    overflow: hidden;
}
.goals-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    border-radius: 9999px;
    transition: width 0.5s var(--ease);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.goal-add-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
    flex-wrap: wrap;
}
.goal-add-row .fi {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
}
.goal-add-row select.fi {
    flex: 0 0 130px;
}
.goal-add-row input[type="date"].fi {
    flex: 0 0 140px;
}
.goals-section-label {
    font-family: var(--font-brand);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.6;
    margin: 0.5rem 0;
}
.goal-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1rem;
}
.goal-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 0.95rem;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.goal-item:hover {
    border-color: var(--accent-border);
}
.goal-item.completed {
    opacity: 0.35;
}
.goal-check {
    appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.goal-check:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.goal-check:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        center/10px no-repeat;
}
.goal-body {
    flex: 1;
    min-width: 0;
}
.goal-title {
    font-size: 0.86rem;
    font-weight: 400;
    color: var(--text-primary);
}
.goal-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.12rem;
}
.goal-badge {
    font-family: var(--font-brand);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
}
.goal-badge.long {
    color: var(--accent);
    background: var(--accent-bg);
    border-color: var(--accent-border);
}

/* ─── ROUTINE ───────────────────────────────────────────── */
.rt-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
}
.rt-item:last-child {
    border-bottom: none;
}
.rt-time {
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 50px;
    letter-spacing: -0.3px;
}
.rt-label {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-primary);
}

/* ─── CALC OUTPUT ───────────────────────────────────────── */
.calc-output {
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--border);
}
.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.calc-row-label {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.calc-row-value {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}
.calc-row-value.lg {
    font-size: 1.8rem;
    letter-spacing: -0.6px;
    color: var(--accent-bright);
}

/* ─── CAPITAL ───────────────────────────────────────────── */
.cap-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 0.95rem;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: border-color 0.2s;
}
.cap-item:hover {
    border-color: var(--accent-border);
}
.cap-item-info {
    flex: 1;
    min-width: 0;
}
.cap-item-name {
    font-size: 0.86rem;
    font-weight: 400;
    color: var(--text-primary);
}
.cap-item-meta {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cap-item-value {
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ─── TEMIRLAN PROFILE ──────────────────────────────────── */
.me-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.me-name {
    font-family: var(--font-brand);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -3px;
    color: var(--text-primary);
    line-height: 0.9;
    margin-bottom: 0.4rem;
}
.me-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-brand);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-top: 0.6rem;
}
.me-location-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.5);
    }
}
.bio {
    font-size: 0.92rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-top: 1.4rem;
    max-width: 700px;
    font-weight: 300;
}
.bio p {
    margin-bottom: 1rem;
}
.me-section-label {
    font-family: var(--font-brand);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.me-section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.me-photo-section {
    margin-bottom: 2rem;
}
.photo-gallery-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}
.photo-full-item {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    aspect-ratio: 4/5;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.photo-full-item:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}
.photo-full-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        filter 0.4s,
        transform 0.4s var(--ease);
    filter: grayscale(25%) brightness(0.9);
}
.photo-full-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.04);
}
.photo-full-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(3, 3, 8, 0.75) 0%,
        transparent 60%
    );
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
}
.photo-full-item:hover .photo-full-overlay {
    opacity: 1;
}
.photo-full-num {
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
}

/* ─── LIGHTBOX ──────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}
.lightbox.open {
    opacity: 1;
    pointer-events: all;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: none;
}
.lightbox-close:hover {
    background: var(--surface-hover);
    color: var(--accent);
    border-color: var(--accent-border);
    transform: none;
    box-shadow: none;
}

/* ─── SYSTEM ────────────────────────────────────────────── */
.sys-actions {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
    flex-wrap: wrap;
}
.sys-info {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.3rem;
}
.sys-wipe {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: rgba(248, 113, 113, 0.45);
    font-size: 0.76rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    box-shadow: none;
}
.sys-wipe:hover {
    background: rgba(248, 113, 113, 0.06);
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.35);
    transform: none;
    box-shadow: none;
}

/* ─── HEATMAP ───────────────────────────────────────────── */
.heatmap-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: calc(100vh - 10rem);
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ─── INPUT ROW ─────────────────────────────────────────── */
.input-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}
.input-row .fi {
    margin-bottom: 0;
    flex: 1;
    min-width: 100px;
}

/* ─── ADMIN ─────────────────────────────────────────────── */
.admin-section {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.admin-section h3 {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 0.9rem;
}
.admin-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    align-items: center;
}
.admin-row input {
    flex: 1;
    min-width: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.5rem 0.9rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font);
    transition: all 0.2s;
}
.admin-row input:focus {
    background: var(--surface-hover);
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.admin-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    background: transparent;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.admin-item span {
    flex: 1;
}
.admin-shared {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.admin-shared h3 {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 0.9rem;
}

/* ─── BOTTOM TABS ───────────────────────────────────────── */
.bottom-tabs {
    display: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid var(--border);
    padding: 0 0.4rem env(safe-area-inset-bottom);
    z-index: 100;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}
.bottom-tabs::-webkit-scrollbar {
    display: none;
}
.bottom-tabs-inner {
    display: flex;
    align-items: center;
    min-width: max-content;
    gap: 1px;
    padding: 0.4rem 0;
}
.bt-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.12s;
    box-shadow: none;
    font-family: var(--font-brand);
}
.bt-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}
.bt-btn.active {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    color: var(--accent);
}

/* ─── MINI PLAYER ───────────────────────────────────────── */
#mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-top: 1px solid var(--border);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.6rem;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    visibility: hidden;
}
#mini-player::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.25),
        transparent
    );
}
#mini-player.active {
    transform: translateY(0);
    visibility: visible;
}
.mp-track-info {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    flex: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    pointer-events: none;
}
.mp-title {
    font-family: var(--font-brand);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 26vw;
}
.mp-artist {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 22px;
    position: absolute;
    right: 7.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}
#mini-player.playing .mp-waveform {
    opacity: 1;
}
.mp-waveform span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
    animation: wave 1s ease-in-out infinite;
}
.mp-waveform span:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}
.mp-waveform span:nth-child(2) {
    height: 14px;
    animation-delay: 0.1s;
}
.mp-waveform span:nth-child(3) {
    height: 20px;
    animation-delay: 0.2s;
}
.mp-waveform span:nth-child(4) {
    height: 12px;
    animation-delay: 0.3s;
}
.mp-waveform span:nth-child(5) {
    height: 6px;
    animation-delay: 0.4s;
}
@keyframes wave {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.35);
    }
}
.mp-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}
.mp-controls button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    letter-spacing: 0;
    font-weight: 400;
    box-shadow: none;
}
.mp-controls button:hover {
    background: var(--accent-bg);
    color: var(--accent);
    transform: none;
    box-shadow: none;
}
#mp-play {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    width: 40px;
    height: 40px;
}
#mp-play:hover {
    background: var(--accent);
    color: #ffffff;
}
.mp-progress {
    width: 100%;
    height: 2px;
    background: var(--border);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    cursor: pointer;
}
.mp-progress:hover {
    height: 4px;
    transition: height 0.15s;
}
.mp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    width: 0%;
    transition: width 0.3s linear;
    border-radius: 0 2px 2px 0;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
    .view {
        padding: 1.2rem 1rem;
    }
    .bottom-tabs {
        display: flex;
    }
    .top-bar-center {
        display: none;
    }
    .top-bar-brand {
        padding: 0 1rem;
        border-right: none;
    }
    .top-bar-right {
        padding: 0 1rem;
        border-left: none;
    }
    #mini-player {
        bottom: 44px;
        padding: 0 0.5rem;
        gap: 0.3rem;
    }
    .mp-track-info {
        left: 0.4rem;
        max-width: 28%;
    }
    .mp-title {
        font-size: 0.65rem;
        max-width: 100%;
    }
    .mp-artist {
        font-size: 0.56rem;
        max-width: 100%;
    }
    .mp-controls {
        gap: 0.1rem;
    }
    .mp-controls button {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        padding: 0;
    }
    .pg-ttl {
        font-size: 1.5rem;
    }
    .pg-hd {
        margin-bottom: 1.2rem;
    }
    .two-col,
    .pnl-grid {
        grid-template-columns: 1fr;
    }
    .market-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .clocks-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-bottom {
        grid-template-columns: 1fr;
    }
    .photo-gallery-full {
        grid-template-columns: repeat(2, 1fr);
    }
    .wr-lay {
        flex-direction: column;
        height: auto;
    }
    .wr-sb {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-radius: var(--radius);
    }
    .ch-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
    }
    .ch-li {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    .add-ch-btn {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    .wr-main {
        min-height: 60vh;
    }
    .focus-ring-wrap {
        width: 180px;
        height: 180px;
    }
    .focus-display {
        font-size: 3.8rem;
        letter-spacing: -3px;
    }
    .me-name {
        font-size: 2.8rem;
        letter-spacing: -2px;
    }
    .stats-row {
        flex-wrap: wrap;
    }
    .sc:not(:last-child)::after {
        display: none;
    }
    .sc {
        flex: 1 1 50%;
        min-width: 120px;
    }
    .goal-add-row {
        flex-direction: column;
    }
    .goal-add-row select.fi,
    .goal-add-row input[type="date"].fi {
        flex: 1;
        width: 100%;
    }
    .habits-week-header {
        grid-template-columns: 1fr repeat(7, 30px);
        gap: 2px;
    }
    .habit-row {
        grid-template-columns: 1fr repeat(7, 30px);
        gap: 2px;
        padding: 0.5rem 0.4rem;
    }
    .habit-dot {
        width: 26px;
        height: 26px;
    }
    .mp-waveform {
        display: none;
    }
}
@media (max-width: 480px) {
    .view {
        padding: 1rem 0.7rem;
    }
    .pg-ttl {
        font-size: 1.3rem;
    }
    .top-bar-brand {
        padding: 0 0.7rem;
    }
    .brand-name {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    .top-bar-right {
        padding: 0 0.7rem;
    }
    .clocks-row {
        grid-template-columns: 1fr 1fr;
        border-radius: var(--radius);
    }
    .clk-card {
        padding: 0.7rem 0.9rem;
    }
    .clk-t {
        font-size: 1.1rem;
    }
    .photo-gallery-full {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .focus-ring-wrap {
        width: 160px;
        height: 160px;
    }
    .focus-display {
        font-size: 3rem;
        letter-spacing: -2px;
    }
    .me-name {
        font-size: 2.2rem;
        letter-spacing: -1.5px;
    }
    .habits-week-header {
        grid-template-columns: 1fr repeat(7, 24px);
        gap: 1px;
    }
    .habit-row {
        grid-template-columns: 1fr repeat(7, 24px);
        gap: 1px;
        padding: 0.4rem 0.3rem;
    }
    .habit-dot {
        width: 22px;
        height: 22px;
        border-width: 1px;
    }
    .habit-dot.done::after {
        width: 6px;
        height: 6px;
    }
    .habit-name-text {
        font-size: 0.76rem;
    }
    .habit-streak {
        font-size: 0.62rem;
    }
    .sc-val {
        font-size: 1.3rem;
    }
    #mini-player {
        bottom: 44px;
        padding: 0 0.3rem;
        gap: 0.15rem;
    }
    .mp-track-info {
        left: 0.25rem;
        max-width: 22%;
    }
    .mp-title {
        font-size: 0.56rem;
    }
    .mp-artist {
        font-size: 0.5rem;
    }
    .mp-controls {
        gap: 0;
    }
    .mp-controls button {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}
