/* AeroJournal premium dashboard theme */

:root {
    --bg-base: #000000;
    --bg-sidebar: #050508;
    --bg-panel: rgba(18, 18, 22, 0.88);
    --bg-panel-strong: rgba(24, 24, 30, 0.95);
    --bg-panel-soft: rgba(30, 30, 38, 0.78);
    --bg-input: rgba(12, 12, 16, 0.82);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8e9bb4;
    --accent-primary: #8b6cff;
    --accent-primary-hover: #ab92ff;
    --accent-primary-glow: rgba(139, 108, 255, 0.38);
    --accent-success: #22d676;
    --accent-success-soft: rgba(34, 214, 118, 0.14);
    --accent-success-border: rgba(34, 214, 118, 0.28);
    --accent-danger: #ff4866;
    --accent-danger-soft: rgba(255, 72, 102, 0.14);
    --accent-danger-border: rgba(255, 72, 102, 0.28);
    --accent-warning: #f59e0b;
    --accent-warning-soft: rgba(245, 158, 11, 0.14);
    --accent-cyan: #1bbde8;
    --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "Courier New", monospace;
    --sidebar-width: 228px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.35);
    --transition-fast: 160ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg-base);
}

body {
    zoom: 0.75;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at 4% 92%, rgba(139, 108, 255, 0.18), transparent 27rem),
        radial-gradient(circle at 44% 8%, rgba(59, 130, 246, 0.08), transparent 34rem),
        linear-gradient(135deg, #050508 0%, #000000 44%, #08080c 100%);
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
    outline: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(171, 146, 255, 0.72);
    outline-offset: 2px;
}

[data-lucide] svg {
    display: block;
    width: 100%;
    height: 100%;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: rgba(3, 7, 18, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(171, 146, 255, 0.7);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--sidebar-width);
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 50% 88%, rgba(139, 108, 255, 0.16), transparent 18rem),
        linear-gradient(180deg, rgba(12, 12, 16, 0.98), rgba(6, 6, 8, 0.94));
    box-shadow: 18px 0 64px rgba(0, 0, 0, 0.28);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 28px;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ab92ff, #5b36df);
    box-shadow: 0 0 20px rgba(139, 108, 255, 0.45);
}

.logo-svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.6;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-name span {
    color: #9a78ff;
}

.nav-menu {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    width: 100%;
    height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: #fff;
    border-color: rgba(171, 146, 255, 0.72);
    background: linear-gradient(135deg, rgba(139, 108, 255, 0.38), rgba(139, 108, 255, 0.16));
    box-shadow: 0 0 20px rgba(139, 108, 255, 0.3), inset 0 0 16px rgba(171, 146, 255, 0.08);
}

.nav-btn i {
    width: 17px;
    height: 17px;
}

.sidebar-profile {
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 34px 1fr 16px;
    gap: 8px;
    background: rgba(11, 16, 35, 0.86);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2a315e, #1a2044);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-copy strong {
    font-size: 11px;
    font-weight: 700;
}

.profile-copy span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 9.5px;
}

.profile-copy i {
    width: 11px;
    height: 11px;
    color: #7da2ff;
}

.profile-menu-btn {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.profile-menu-btn i {
    width: 14px;
    height: 14px;
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: 24px 28px 34px;
}

.top-header {
    min-height: 54px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.header-title-section h1 {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.subtitle {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 15px;
}

.month-pill {
    height: 48px;
    min-width: 158px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(9, 14, 31, 0.76);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.month-pill i {
    width: 18px;
    height: 18px;
    color: #c9d1e5;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.stat-card,
.card,
.date-section {
    border: 1px solid var(--border-color);
    background:
        linear-gradient(180deg, rgba(18, 18, 22, 0.92), rgba(12, 12, 15, 0.9)),
        radial-gradient(circle at 100% 0, rgba(139, 108, 255, 0.12), transparent 11rem);
    box-shadow: var(--shadow-card);
}

.stat-card {
    min-height: 96px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 35%);
    opacity: 0.35;
}

.stat-copy {
    position: relative;
    min-width: 0;
    z-index: 1;
}

#stat-card-net .stat-copy {
    max-width: calc(100% - 70px);
}

.stat-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    color: #fff;
    font-family: var(--font-mono);
    font-size: clamp(20px, 1.65vw, 27px);
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

.stat-trend {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.stat-visual {
    position: relative;
    flex: 0 0 auto;
}

.stat-sparkline {
    width: 72px;
    height: 52px;
    margin-left: auto;
}

.stat-sparkline svg {
    width: 100%;
    height: 100%;
}

.stat-ring,
.stat-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #ab92ff;
    background: rgba(139, 108, 255, 0.16);
    border: 1px solid rgba(171, 146, 255, 0.42);
    box-shadow: inset 0 0 24px rgba(139, 108, 255, 0.15);
}

.stat-ring {
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(139, 108, 255, 0.18) 0 45%, transparent 46%),
        conic-gradient(var(--accent-primary) var(--ring-value, 0%), rgba(148, 163, 184, 0.14) 0);
}

.stat-ring i,
.stat-icon-box i {
    width: 25px;
    height: 25px;
    stroke-width: 2.5;
}

.stat-progress-bar-container {
    display: block;
    width: min(260px, 100%);
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.14);
}

.stat-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), #997cff);
    transition: width 320ms ease;
}

.card {
    border-radius: var(--radius-lg);
    padding: 16px;
}

.card-header {
    margin-bottom: 12px;
}

.card-header.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.card-title span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.card-title i,
.card-mini-icon {
    width: 16px;
    height: 16px;
    color: #8b95ad;
}

.card-description {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 13px;
}

.content-view {
    display: none;
    animation: viewIn 220ms ease both;
}

.content-view.active {
    display: block;
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.positive {
    color: var(--accent-success) !important;
}

.negative {
    color: var(--accent-danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-link {
    border: 0;
    background: transparent;
    color: #c3b2ff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.action-btn,
.ghost-btn,
.small-primary-btn,
.text-action-btn {
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.action-btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 15px;
}

.primary-btn,
.small-primary-btn {
    background: linear-gradient(135deg, #ab92ff, #5f37e6);
    color: #fff;
    box-shadow: 0 12px 30px rgba(139, 108, 255, 0.38);
}

.primary-btn:hover,
.small-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(139, 108, 255, 0.48);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: #fff;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-strong);
}

.danger-btn {
    background: var(--accent-danger-soft);
    border-color: var(--accent-danger-border);
    color: var(--accent-danger);
}

.danger-btn:hover {
    background: var(--accent-danger);
    color: #fff;
}

.ghost-btn {
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    color: var(--text-secondary);
    background: transparent;
    font-weight: 600;
}

.ghost-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.ghost-btn i,
.action-btn i,
.text-action-btn i {
    width: 18px;
    height: 18px;
}

.small-primary-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-chart-card {
    grid-column: span 12;
    min-height: 252px;
}

.performance-card {
    grid-column: span 5;
    min-height: 252px;
}

.dashboard-row-2 {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 30fr 70fr;
    gap: 12px;
}

.dashboard-row-2 .compact-card,
.dashboard-row-2 .performance-card {
    grid-column: auto;
}

.compact-card {
    grid-column: span 4;
    min-height: 168px;
    padding: 14px;
}

.compact-card .card-title {
    min-width: 0;
    font-size: 14px;
    white-space: nowrap;
}

.compact-card .card-title span {
    font-size: 11px;
}

.recent-trades-card {
    grid-column: span 8;
}

.score-card {
    text-align: center;
}

.dashboard-sidebar-column {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-toolbar,
.heatmap-toggle {
    height: 32px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(7, 12, 28, 0.75);
}

.chart-toolbar button,
.heatmap-toggle button {
    min-width: 44px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.chart-toolbar button.active,
.heatmap-toggle button.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(171, 146, 255, 0.92), rgba(139, 108, 255, 0.78));
}

.chart-container {
    position: relative;
    height: 190px;
}

.activity-list,
.setup-list,
.goals-list,
.best-worst-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.best-worst-panel {
    gap: 6px;
}

.activity-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    color: var(--text-secondary);
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.activity-icon.bullish {
    background: rgba(34, 214, 118, 0.16);
    color: #22d676;
    border: 1px solid rgba(34, 214, 118, 0.28);
}

.activity-icon.bearish {
    background: rgba(255, 72, 102, 0.16);
    color: #ff4866;
    border: 1px solid rgba(255, 72, 102, 0.28);
}

.activity-icon.neutral {
    background: rgba(148, 163, 184, 0.1);
    color: #aeb8cf;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.activity-icon i {
    width: 17px;
    height: 17px;
}

.activity-title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.activity-pnl {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
}

.outcome-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    min-width: 46px;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    justify-self: end;
}

.outcome-pill.positive {
    color: var(--accent-success);
    background: var(--accent-success-soft);
    border: 1px solid var(--accent-success-border);
}

.outcome-pill.negative {
    color: var(--accent-danger);
    background: var(--accent-danger-soft);
    border: 1px solid var(--accent-danger-border);
}

.outcome-pill.text-muted {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.month-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.month-nav-btn {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px;
    display: grid;
    place-items: center;
    transition: var(--transition-fast);
}

.month-nav-btn:hover {
    color: #fff;
}

.month-nav-btn i {
    width: 14px;
    height: 14px;
}

.log-month-navigator {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(7, 12, 28, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px 10px;
    backdrop-filter: blur(10px);
}

.log-month-label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    min-width: 96px;
    text-align: center;
}

.setup-row,
.goal-row,
.ticker-row {
    display: grid;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.setup-row {
    grid-template-columns: 1fr 68px 94px 54px;
}

.setup-row strong,
.ticker-row strong {
    color: #fff;
    font-weight: 600;
}

.setup-row span:nth-child(3),
.setup-row span:nth-child(4) {
    text-align: right;
    font-family: var(--font-mono);
}

.goal-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
}

.goal-row span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.goal-progress {
    grid-column: 1 / -1;
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.16);
}

.goal-progress b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), #9f7dff);
}

.capital-inline-control {
    display: none;
    grid-template-columns: 1fr 96px auto;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.capital-inline-control label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.capital-inline-control input {
    min-width: 0;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    color: #fff;
    background: var(--bg-input);
    font-family: var(--font-mono);
    outline: none;
}

.trade-callout {
    padding: 6px 9px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.025);
}

.trade-callout.best {
    border-color: rgba(34, 214, 118, 0.25);
    background: rgba(34, 214, 118, 0.08);
}

.trade-callout.worst {
    border-color: rgba(255, 72, 102, 0.25);
    background: rgba(255, 72, 102, 0.08);
}

.trade-callout small {
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trade-callout strong {
    display: block;
    color: #fff;
    font-size: 11.5px;
    line-height: 1.12;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-callout span {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 9.5px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-bar-chart {
    position: relative;
    width: 100%;
    height: 108px;
    display: grid;
    align-items: stretch;
    padding: 8px 0 0;
}

.mini-bar-chart.performance-bars-weeks {
    width: 70%;
    margin-inline: auto;
}

.mini-bar-stack {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mini-bar-stack::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
}

.mini-bar-col {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 14px;
    gap: 3px;
    height: 100%;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.bar-half {
    flex: 1;
    display: flex;
    width: 100%;
    position: relative;
}

.bar-half.top {
    align-items: flex-end;
}

.bar-half.bottom {
    align-items: flex-start;
}

.mini-bar {
    width: 100%;
    display: block;
    transition: height 0.3s ease;
}

.mini-bar.positive {
    background: linear-gradient(180deg, #22d676, rgba(34, 214, 118, 0.4));
    border-radius: 2px 2px 0 0;
}

.mini-bar.negative {
    background: linear-gradient(180deg, rgba(255, 72, 102, 0.4), #ff4866);
    border-radius: 0 0 2px 2px;
}

.mini-bar-label {
    display: block;
    min-width: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.performance-card .mini-bar-chart {
    height: 176px;
}

.monthly-performance-toggle {
    height: 24px;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(7, 12, 28, 0.75);
    margin-top: 4px;
}

.monthly-performance-toggle button {
    min-width: 52px;
    height: 18px;
    border: 0;
    border-radius: 4px;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.monthly-performance-toggle button.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(171, 146, 255, 0.92), rgba(139, 108, 255, 0.78));
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table,
.journal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-table th,
.journal-table th {
    padding: 8px 8px;
    border-bottom: 1px solid var(--border-color);
    color: #8d98b2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table td,
.journal-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
    color: var(--text-secondary);
    font-size: 12px;
    vertical-align: middle;
}

.dashboard-table tbody tr,
.journal-table tbody tr {
    transition: var(--transition-fast);
}

.dashboard-table tbody tr:hover,
.journal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.streak-sections-vertical {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 4px;
}

.streak-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    transition: var(--transition-fast);
}

.streak-row:hover {
    background: rgba(255, 255, 255, 0.015);
    border-radius: var(--radius-sm);
}

.streak-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streak-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.streak-horizontal-divider {
    height: 1px;
    background: var(--border-color);
    margin: 2px 10px;
}

.streak-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
}

.streak-icon i {
    width: 18px;
    height: 18px;
}

.streak-sec-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.streak-sec-label {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.streak-sec-best {
    display: block;
    margin-top: 1px;
    color: var(--text-secondary);
    font-size: 9.5px;
    line-height: 1.1;
}

.streak-count-large {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.score-card > strong {
    display: block;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 32px;
    line-height: 1;
}

.score-card > span {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.score-card small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.discipline-ring {
    width: 92px;
    height: 92px;
    margin: 4px auto 9px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #0c1124 0 55%, transparent 56%),
        conic-gradient(var(--accent-primary) var(--score-value, 0%), rgba(148, 163, 184, 0.14) 0);
}

.discipline-ring strong {
    grid-area: 1 / 1;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 26px;
}

.discipline-ring span {
    grid-area: 1 / 1;
    margin-top: 38px;
    color: var(--text-secondary);
    font-size: 13px;
}

.filters-bar {
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(12, 17, 35, 0.86);
    box-shadow: var(--shadow-card);
}

.filter-main-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.filter-main-row .ghost-btn {
    min-height: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
}

.filter-main-row .primary-btn {
    min-height: 38px;
    height: 38px;
    padding: 0 16px;
    font-size: 12px;
}

.filter-main-row .ghost-btn i,
.filter-main-row .primary-btn i {
    width: 15px;
    height: 15px;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #8d98b2;
    transform: translateY(-50%);
}

.search-box input,
.filter-controls select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--bg-input);
    outline: none;
    transition: var(--transition-fast);
}

.search-box input {
    height: 38px;
    padding: 0 14px 0 38px;
    font-size: 12px;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.filter-controls select {
    height: 38px;
    padding: 0 12px;
    color: #dce4f5;
    cursor: pointer;
    font-size: 12px;
}

.search-box input:focus,
.filter-controls select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.capital-inline-control input:focus {
    border-color: rgba(171, 146, 255, 0.68);
    box-shadow: 0 0 0 4px rgba(139, 108, 255, 0.12);
}

.journal-list-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.results-count {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.expand-collapse-group {
    display: flex;
    gap: 10px;
}

.text-action-btn {
    min-height: 36px;
    padding: 0 12px;
    border-color: var(--border-color);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
}

.text-action-btn:hover {
    color: #fff;
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.journal-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.date-section {
    overflow: hidden;
    border-radius: var(--radius-lg);
    max-width: 100%;
    min-width: 0;
}

.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    cursor: pointer;
}

.date-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.date-day-name {
    color: var(--text-muted);
    font-size: 11px;
}

.date-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.date-stats-summary {
    color: var(--text-secondary);
    font-size: 11px;
}

.date-pnl {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
}

.toggle-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 180ms ease;
}

.date-section.open .toggle-icon {
    transform: rotate(90deg);
}

.date-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}

.date-section.open .date-content-wrapper {
    grid-template-rows: 1fr;
}

.date-content {
    min-height: 0;
    overflow: hidden;
    max-width: 100%;
}

.journal-table-wrapper {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-top: 1px solid var(--border-color);
}

.journal-table th {
    padding: 8px 16px;
}

.journal-table td {
    padding: 8px 16px;
    font-size: 12px;
}

.journal-table th.sortable {
    cursor: pointer;
}

.journal-table th.sortable:hover {
    color: #fff;
}

.jt-date-cell {
    min-width: 120px;
    color: #e9eefb;
    font-weight: 600;
}

.jt-date-cell small {
    display: block;
    margin-top: 3px;
    color: var(--text-secondary);
    font-weight: 500;
}

.jt-title-cell {
    display: block;
    color: #fff;
    font-weight: 700;
}

.jt-notes-preview {
    display: block;
    max-width: 360px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jt-ticker-cell,
.jt-pnl-cell,
.activity-pnl {
    font-family: var(--font-mono);
}

.jt-ticker-cell {
    color: #fff;
    font-weight: 800;
}

.jt-pnl-cell {
    font-weight: 800;
}

.jt-tags-cell {
    min-width: 128px;
}

.jt-actions-cell {
    text-align: right;
    white-space: nowrap;
}

.jt-actions {
    display: inline-flex;
    gap: 8px;
}

.jt-action-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: #9aa5bd;
    background: transparent;
    cursor: pointer;
}

.jt-action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.jt-action-btn.edit:hover {
    color: #9a78ff;
}

.jt-action-btn.delete:hover {
    color: var(--accent-danger);
}

.jt-action-btn i {
    width: 18px;
    height: 18px;
}

.badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(171, 146, 255, 0.28);
    border-radius: 7px;
    color: #a587ff;
    background: rgba(139, 108, 255, 0.16);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-note {
    border-color: rgba(27, 189, 232, 0.28);
    color: #62d9f5;
    background: rgba(27, 189, 232, 0.12);
}

.badge-idea {
    border-color: rgba(245, 158, 11, 0.3);
    color: #ffbf4d;
    background: rgba(245, 158, 11, 0.13);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border: 1px solid rgba(171, 146, 255, 0.2);
    border-radius: 7px;
    color: #a989ff;
    background: rgba(139, 108, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
}

.tag.color-1 {
    border-color: rgba(27, 189, 232, 0.24);
    color: #45cef0;
    background: rgba(27, 189, 232, 0.12);
}

.tag.color-2 {
    border-color: rgba(245, 158, 11, 0.25);
    color: #ffb84d;
    background: rgba(245, 158, 11, 0.13);
}

.tag.color-3 {
    border-color: rgba(34, 214, 118, 0.24);
    color: #45df8a;
    background: rgba(34, 214, 118, 0.12);
}

.card-empty-placeholder {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 34px;
    color: var(--text-secondary);
    text-align: center;
}

.card-empty-placeholder i {
    width: 40px;
    height: 40px;
    color: #ab92ff;
}

.card-empty-placeholder h3 {
    color: #fff;
    font-size: 18px;
}

.card-empty-placeholder p {
    max-width: 360px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.analytics-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.heatmap-card {
    grid-column: span 8;
    grid-row: span 2;
}

.chart-widget {
    grid-column: span 4;
    min-height: 260px;
}

.chart-widget.weekday-card {
    grid-column: span 4;
    min-height: 270px;
    display: flex;
    flex-direction: column;
}

.ticker-card {
    grid-column: span 4;
    min-height: 270px;
    display: flex;
    flex-direction: column;
}

.chart-widget.avg-win-loss-card {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
}

.chart-widget.setup-card,
.chart-widget.sentiment-card {
    grid-column: span 6;
}

.calendar-heatmap-container {
    padding: 8px;
    border-radius: var(--radius-md);
    background: rgba(7, 12, 28, 0.38);
}

.heatmap-weekday-labels {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
    color: #b4bdd3;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.calendar-cell {
    min-width: 0;
    box-sizing: border-box;
    min-height: 68px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(16, 22, 43, 0.75);
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-cell:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.25);
}

.calendar-cell.active-inspect {
    border-color: rgba(171, 146, 255, 0.9) !important;
    box-shadow: 0 0 0 1px rgba(171, 146, 255, 0.55), 0 0 22px rgba(139, 108, 255, 0.28);
}

.cell-empty {
    visibility: hidden;
    pointer-events: none;
}

.cell-day-num {
    color: #d2daeb;
    font-size: 13px;
    font-weight: 600;
}

.cell-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cell-trade-count {
    font-size: 10px;
    font-weight: 500;
    color: #ffffff;
}

.cell-val-lbl {
    align-self: flex-end;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.calendar-week-label {
    min-width: 0;
    box-sizing: border-box;
    background: rgba(148, 163, 184, 0.05) !important;
    border: 1px dashed rgba(148, 163, 184, 0.15) !important;
    cursor: default !important;
    pointer-events: none;
}

.week-label-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.week-pnl-lbl {
    align-self: flex-end;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.week-pnl-lbl.positive {
    color: var(--accent-success);
}

.week-pnl-lbl.negative {
    color: var(--accent-danger);
}

.week-pnl-lbl.muted {
    color: var(--text-muted);
}

.cell-zero {
    background: rgba(16, 22, 43, 0.72);
}

.cell-win-l1 {
    border-color: rgba(34, 214, 118, 0.18);
    background: rgba(34, 214, 118, 0.08);
}

.cell-win-l2 {
    border-color: rgba(34, 214, 118, 0.27);
    background: rgba(34, 214, 118, 0.14);
}

.cell-win-l3 {
    border-color: rgba(34, 214, 118, 0.45);
    background: rgba(34, 214, 118, 0.22);
}

.cell-loss-l1 {
    border-color: rgba(255, 72, 102, 0.18);
    background: rgba(255, 72, 102, 0.08);
}

.cell-loss-l2 {
    border-color: rgba(255, 72, 102, 0.28);
    background: rgba(255, 72, 102, 0.15);
}

.cell-loss-l3 {
    border-color: rgba(255, 72, 102, 0.45);
    background: rgba(255, 72, 102, 0.23);
}

.cell-win-l1 .cell-val-lbl,
.cell-win-l2 .cell-val-lbl,
.cell-win-l3 .cell-val-lbl,
.cell-loss-l1 .cell-val-lbl,
.cell-loss-l2 .cell-val-lbl,
.cell-loss-l3 .cell-val-lbl {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

body.light-theme .cell-win-l1 .cell-val-lbl,
body.light-theme .cell-win-l2 .cell-val-lbl,
body.light-theme .cell-win-l3 .cell-val-lbl {
    color: #15803d;
    text-shadow: none;
}

body.light-theme .cell-loss-l1 .cell-val-lbl,
body.light-theme .cell-loss-l2 .cell-val-lbl,
body.light-theme .cell-loss-l3 .cell-val-lbl {
    color: #b91c1c;
    text-shadow: none;
}

.heatmap-legend {
    display: none !important;
}

.heatmap-summary-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(7, 12, 28, 0.35);
}

.heatmap-summary-strip div {
    min-height: 56px;
    padding: 11px 14px;
    border-right: 1px solid var(--border-color);
}

.heatmap-summary-strip div:last-child {
    border-right: 0;
}

.heatmap-summary-strip span,
.heatmap-summary-strip small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.heatmap-summary-strip strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 15px;
}

.donut-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    width: 100%;
}

.donut-widget canvas {
    display: block;
    width: 110px !important;
    height: 110px !important;
    max-width: 110px;
    max-height: 110px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 0 4px;
}

.legend-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.legend-row span:last-child {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.small-chart {
    position: relative;
    height: 126px;
}

.chart-container canvas,
.small-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.split-metric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 6px;
}

.split-metric strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 20px;
}

.split-metric span {
    color: var(--text-secondary);
    font-size: 12px;
}

.dual-daily-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 14px;
    width: 100%;
}

.btn-label-mobile {
    display: none;
}

.session-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 16px;
    align-items: end;
}

.session-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.session-card strong {
    display: block;
    margin: 4px 0 12px;
    font-family: var(--font-mono);
    font-size: 18px;
}

.session-time {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
}

.session-time i {
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 1px solid rgba(171, 146, 255, 0.42);
    border-radius: 50%;
    color: #9a78ff;
}

.session-bars {
    height: 136px;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    align-items: end;
    gap: 4px;
}

.session-bars span {
    min-height: 8px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(171, 146, 255, 0.9), rgba(139, 108, 255, 0.18));
}

.ticker-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticker-header {
    color: var(--text-muted) !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2px;
}

.ticker-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 48px minmax(0, 1.2fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.ticker-row span:last-child {
    text-align: right;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.ticker-wr-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ticker-wr-cell .ticker-progress {
    flex: 1;
    min-width: 40px;
}

.ticker-wr-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 30px;
    text-align: right;
}

.ticker-progress {
    height: 7px;
    border-radius: 99px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.14);
}

.ticker-progress b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), #9a78ff);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(12px);
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    width: min(720px, 94vw);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(18, 18, 22, 0.98);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
}

.details-card {
    width: min(760px, 94vw);
}

.modal-header {
    min-height: 70px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 800;
}

.close-modal-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.close-modal-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

#entry-form,
.details-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

#entry-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.width-30 {
    flex: 0 0 180px;
}

.form-group label,
.form-section-title,
.details-section-title,
.info-lbl {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    height: 46px;
    padding: 0 14px;
}

.form-group textarea {
    min-height: 140px;
    padding: 12px 14px;
    resize: vertical;
}

.form-section {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.form-section-title {
    margin-bottom: 14px;
}

.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.details-meta-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.details-title {
    color: #fff;
    font-size: 28px;
    line-height: 1.18;
}

.details-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-val {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.font-mono {
    font-family: var(--font-mono);
}

.details-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-notes-content {
    min-height: 150px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    line-height: 1.6;
    white-space: pre-wrap;
}

.details-footer {
    justify-content: space-between;
}

.footer-right {
    display: flex;
    gap: 12px;
}

select option {
    color: #f8fafc;
    background: #11172b;
}

@media (max-width: 1120px) {
    .main-content {
        padding: 26px 26px 32px;
    }

    .stats-row {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .dashboard-chart-card,
    .performance-card,
    .recent-trades-card {
        grid-column: span 12;
    }

    .compact-card {
        grid-column: span 6;
    }

    .dashboard-row-2 {
        grid-template-columns: 1fr;
    }

    .score-card {
        grid-column: span 6;
    }

    .heatmap-card {
        grid-column: span 12;
    }

    .chart-widget,
    .ticker-card,
    .chart-widget.outcome-card,
    .chart-widget.avg-win-loss-card,
    .chart-widget.weekday-card,
    .chart-widget.setup-card,
    .chart-widget.sentiment-card {
        grid-column: span 6;
    }
}

@media (max-width: 980px) {
    .stats-row,
    .filter-controls,
    .filter-main-row {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
    }

    .month-pill {
        align-self: stretch;
    }

    .compact-card,
    .score-card,
    .chart-widget,
    .ticker-card,
    .chart-widget.outcome-card,
    .chart-widget.avg-win-loss-card,
    .chart-widget.weekday-card,
    .chart-widget.setup-card,
    .chart-widget.sentiment-card {
        grid-column: span 12;
    }

    .heatmap-summary-strip {
        grid-template-columns: 1fr 1fr;
    }

    .heatmap-summary-strip div {
        border-bottom: 1px solid var(--border-color);
    }

    .donut-widget,
    .session-card {
        grid-template-columns: 1fr;
    }

    .donut-widget canvas {
        width: 136px !important;
        height: 136px !important;
        max-width: 136px;
        max-height: 136px;
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .main-content {
        padding: 20px 16px 26px;
    }

    .header-title-section h1 {
        font-size: 28px;
    }

    .stat-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-sparkline {
        width: 100%;
    }

    .form-row,
    .details-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    .date-header-left {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }

    .date-calendar-box {
        display: none !important;
    }

    .date-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    .date-header-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .date-trades-count {
        font-size: 11px !important;
        color: var(--text-secondary) !important;
        white-space: nowrap !important;
    }

    .date-pnl-lbl {
        display: none !important;
    }

    .date-pnl-pill {
        font-size: 11px !important;
        padding: 2px 7px !important;
        white-space: nowrap !important;
    }

    .date-header .day-sparkline-svg {
        display: none !important;
    }

    .width-30 {
        flex-basis: auto;
        width: 100%;
    }

    .capital-inline-control {
        grid-template-columns: 1fr;
    }

    .calendar-cell {
        min-height: 50px;
        padding: 6px;
    }

    .cell-val-lbl {
        font-size: 10px;
    }

    .details-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile Journal Table: Keep as clean single-line row list (no 5-line stacking) */
    .journal-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-top: 1px solid var(--border-color) !important;
    }

    .journal-table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: auto !important;
    }

    .journal-table thead {
        display: table-header-group !important;
    }

    .journal-table thead th {
        display: table-cell !important;
        padding: 6px 6px !important;
        font-size: 9.5px !important;
        letter-spacing: 0.03em !important;
        white-space: nowrap !important;
        color: var(--text-secondary) !important;
        background: rgba(14, 14, 18, 0.95) !important;
    }

    /* On phone screens, hide redundant columns so core metrics (Type, Ticker, Outcome, PnL, Actions) fit on screen */
    .journal-table th.col-desc,
    .journal-table td.col-desc,
    .journal-table th.col-lots,
    .journal-table td.col-lots,
    .journal-table th.col-tags,
    .journal-table td.col-tags,
    .journal-table th.col-time,
    .journal-table td.col-time {
        display: none !important;
    }

    .journal-table tbody {
        display: table-row-group !important;
        padding: 0 !important;
    }

    .journal-table tr {
        display: table-row !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        background: transparent !important;
        border-radius: 0 !important;
        transition: background 0.15s !important;
    }

    .journal-table tr:hover {
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .journal-table tr + tr {
        margin-top: 0 !important;
    }

    .journal-table td {
        display: table-cell !important;
        padding: 5px 5px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        vertical-align: middle !important;
    }

    .journal-table .badge,
    .journal-table .badge-trade,
    .journal-table .badge-desk-trade,
    .journal-table .badge-client-trade {
        padding: 2px 5px !important;
        font-size: 9px !important;
        gap: 2px !important;
    }

    .journal-table td::before {
        display: none !important;
        content: "" !important;
    }

    .journal-table th.col-pnl,
    .journal-table td.col-pnl {
        text-align: right !important;
        padding-right: 8px !important;
    }

    .journal-table .jt-pnl-cell {
        font-size: 11.5px !important;
        font-weight: 700 !important;
    }

    .journal-table .jt-actions-cell {
        text-align: right !important;
    }

    .journal-table .jt-actions {
        justify-content: flex-end !important;
    }

    .jt-notes-preview {
        max-width: 100%;
    }

    .journal-list-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .expand-collapse-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .text-action-btn {
        width: 100%;
        min-width: 0;
        padding-inline: 8px;
    }

    .date-title {
        font-size: 20px;
    }

    .date-stats-summary,
    .date-pnl {
        font-size: 13px;
    }
}

/* TradingJournal 2.0 dashboard pass */
:root {
    --bg-base: #08080a;
    --bg-sidebar: #111114;
    --bg-panel: rgba(23, 23, 27, 0.96);
    --bg-panel-strong: rgba(26, 26, 31, 0.98);
    --border-color: rgba(255, 255, 255, 0.075);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text-secondary: #a8a8b3;
    --text-muted: #777783;
    --accent-primary: #8b5cf6;
    --accent-primary-hover: #a855f7;
    --accent-success: #30d889;
    --accent-danger: #f04a54;
    --accent-warning: #f4a62a;
    --sidebar-width: 280px;
    --radius-lg: 10px;
    --radius-md: 9px;
    --shadow-card: none;
}

body {
    zoom: 0.75;
    background: #09090b;
}

@media (max-width: 768px) {
    body {
        zoom: 1 !important;
    }
}

.app-shell {
    background:
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05), transparent 34rem),
        linear-gradient(180deg, #09090b 0%, #050506 100%);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--sidebar-width);
    padding: 16px 12px 18px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 65%),
        #0b0a13;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), padding 0.28s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 24px 0;
    padding: 2px 2px;
    position: relative;
    min-height: 46px;
}

.brand .logo-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(28, 20, 52, 0.85), rgba(16, 11, 32, 0.95));
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand .logo-icon svg {
    display: block;
}

.brand-text-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: center;
    gap: 4px;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif);
}

.brand-name .brand-quant,
.brand-name span {
    color: #ffffff;
    font-weight: 800;
}

.brand-desk {
    color: #a855f7;
    font-weight: 800;
    background: linear-gradient(180deg, #b770fe 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.brand-pro-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: #c084fc;
    border: 1.5px solid #8b5cf6;
    border-radius: 9999px;
    padding: 2.5px 8.5px;
    background: rgba(139, 92, 246, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.23em;
    color: #94a3b8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif);
}

.brand-tagline .tagline-dot {
    color: #a855f7;
    margin: 0 4px;
    font-size: 11px;
    line-height: 1;
}

.brand-collapse-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.brand-collapse-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.brand-collapse-icon {
    width: 15px;
    height: 15px;
}

/* Navigation items */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
}

.nav-btn {
    position: relative;
    width: 100%;
    height: 46px;
    border: 1px solid transparent;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
}

.nav-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    color: inherit;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn span {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.nav-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
}

/* Active State: Glowing Purple Card + Left Neon Pill + Right Neon Dot */
.nav-btn.active {
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.32) 0%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.12), inset 0 0 10px rgba(168, 85, 247, 0.08);
}

.nav-btn.active i {
    color: #ffffff;
}

/* Left neon accent bar stuck to the sidebar edge */
.nav-btn.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 26px;
    border-radius: 0 4px 4px 0;
    background: #a855f7;
    box-shadow: 0 0 12px #a855f7, 0 0 5px #c084fc;
    z-index: 10;
}

/* Right glowing purple dot */
.nav-btn.active::after {
    content: "";
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 9px #a855f7, 0 0 4px #c084fc;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-trail-icon {
    width: 15px;
    height: 15px;
    color: #64748b;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-btn.active .nav-trail-icon {
    display: none;
}

/* Thin horizontal divider above bottom navigation */
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
    margin: auto 4px 14px 4px;
}

/* Bottom Navigation Actions */
.sidebar-bottom-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
    padding-top: 0;
}

/* Collapsed Sidebar State */
body.sidebar-collapsed {
    --sidebar-width: 68px !important;
}

body.sidebar-collapsed .sidebar {
    padding: 16px 8px !important;
}

body.sidebar-collapsed .brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    position: relative;
}

body.sidebar-collapsed .brand-text-col {
    display: none !important;
}

body.sidebar-collapsed .brand-collapse-btn {
    position: static !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 40;
}

body.sidebar-collapsed .brand-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

body.sidebar-collapsed .nav-btn {
    justify-content: center !important;
    padding: 0 !important;
    gap: 0 !important;
    height: 44px !important;
}

body.sidebar-collapsed .nav-btn span,
body.sidebar-collapsed .nav-trail-icon,
body.sidebar-collapsed .nav-btn.active::after,
body.sidebar-collapsed .sidebar-bottom-nav .nav-btn span {
    display: none !important;
}

body.sidebar-collapsed .nav-btn.active::before {
    left: -8px;
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 0 32px 42px;
    background: #08080a;
}

.app-topbar {
    min-height: 68px;
    margin: 0 -32px;
    padding: 0 28px 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    background: rgba(10, 10, 12, 0.92);
}

.connection-pill,
.profile-pill,
.topbar-icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
}

.connection-pill {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
    font-size: 14.5px;
    font-weight: 600;
}

.connection-pill strong {
    color: #4ade80;
    font-weight: 700;
    font-size: 14.5px;
}

.connection-pill i {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 10px rgba(34, 214, 118, 0.6);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    cursor: pointer;
}

.topbar-icon-btn i {
    width: 19px;
    height: 19px;
}

.topbar-icon-btn span {
    position: absolute;
    right: -2px;
    top: -5px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #6d5dfc;
    font-size: 10px;
    font-weight: 800;
}

.profile-pill {
    min-height: 50px;
    padding: 6px 14px 6px 8px;
    border-radius: 10px;
    display: inline-grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.profile-pill .profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #ffd26a;
    background: #17120b;
    font-weight: 800;
    font-size: 14px;
}

.profile-pill strong,
.profile-pill small {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-pill strong {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc;
}

.profile-pill small {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 12.5px;
}

.profile-pill .profile-logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-fast);
    padding: 0;
    margin-left: 4px;
}

.profile-pill .profile-logout-btn:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
}

.profile-pill .profile-logout-btn i,
.profile-pill .profile-logout-btn svg {
    width: 15px;
    height: 15px;
    color: currentColor;
    display: block;
}

.top-header {
    min-height: 84px;
    margin: 36px 0 28px;
    align-items: center;
}

.header-title-section h1 {
    font-size: clamp(30px, 2.15vw, 40px);
    line-height: 1.08;
    font-weight: 800;
}

.header-title-section h1 span {
    color: #8b5cf6;
}

.subtitle {
    margin-top: 6px;
    color: #8e8e98;
    font-size: 16px;
}

.sync-trades-btn {
    min-width: 136px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.24);
    font-size: 14px;
}

.sync-trades-btn i {
    color: #fff;
    width: 15px;
    height: 15px;
}

#view-dashboard {
    max-width: 100%;
}

.tj-dashboard-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.tj-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.08), transparent 14rem),
        linear-gradient(150deg, rgba(26, 26, 30, 0.98), rgba(17, 17, 20, 0.98));
    padding: 26px;
    box-shadow: none;
}

.tj-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 38%);
}

.tj-card > * {
    position: relative;
    z-index: 1;
}

.tj-today-card {
    grid-column: span 6;
    min-height: 184px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tj-balance-card,
.tj-total-card,
.tj-mini-card {
    grid-column: span 3;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tj-score-card,
.tj-activity-card {
    grid-column: span 6;
    min-height: 306px;
}

.tj-card-label,
.tj-muted {
    display: block;
    color: #8a8a94;
}

.tj-card-label {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.tj-muted {
    font-size: 13px;
}

.tj-mega-value,
.tj-card-value,
.tj-mini-card strong,
.tj-mini-card > strong {
    display: block;
    color: #f7f7fb;
    font-family: var(--font-sans);
    line-height: 1;
    letter-spacing: 0;
}

.tj-mega-value {
    margin-bottom: 20px;
    font-size: clamp(38px, 3.35vw, 56px);
    font-weight: 800;
}

.tj-card-value {
    margin-bottom: 14px;
    font-size: clamp(24px, 1.75vw, 31px);
    font-weight: 800;
}

.tj-mini-card strong,
.tj-mini-card > strong {
    margin-bottom: 12px;
    font-size: 25px;
    font-weight: 800;
}

.tj-mini-card small {
    color: #aaaab4;
    font-size: 14px;
    font-weight: 500;
}

.tj-card-tools {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 8px;
}

.tj-card-tools.mini {
    top: 24px;
    right: 22px;
}

.tj-card-tools button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #8d8d97;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.tj-card-tools button * {
    pointer-events: none !important;
    cursor: pointer !important;
}

.tj-card-tools button:hover {
    transform: scale(1.12);
    cursor: pointer !important;
}

.tj-card-tools button i,
.tj-card-tools button svg,
.tj-card-corner {
    width: 22px !important;
    height: 22px !important;
    cursor: pointer !important;
}

.tj-card-tools .tool-success {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    cursor: pointer !important;
}

.tj-card-tools .tool-success:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.45) !important;
    cursor: pointer !important;
}

.tj-card-corner {
    position: absolute;
    top: 28px;
    right: 28px;
    color: #7c5cff;
}

.tj-split-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
    color: #777783;
    font-size: 12px;
}

.tj-warning-text,
.warning {
    color: var(--accent-warning) !important;
}

.tj-score-card h2,
.tj-activity-card h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.trade-score-value {
    position: absolute;
    top: 25px;
    right: 26px;
    text-align: right;
}

.trade-score-value strong,
.trade-score-value span {
    display: block;
}

.trade-score-value strong {
    color: #e3b316;
    font-size: 38px;
    line-height: 1;
}

.trade-score-value span {
    margin-top: 4px;
    color: #d9b625;
    font-size: 14px;
    font-weight: 600;
}

.radar-wrap {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: min(330px, 78%);
    height: 205px;
    transform: translateX(-50%);
}

.radar-grid {
    position: absolute;
    inset: 26px 44px 18px;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.045) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(255, 255, 255, 0.045) 50%, transparent 50.5%);
    clip-path: polygon(50% 0, 100% 39%, 82% 100%, 18% 100%, 0 39%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.radar-shape {
    position: absolute;
    inset: 26px 44px 18px;
    display: none;
    background: rgba(139, 92, 246, 0.28);
    border: 2px solid #6d5dfc;
    clip-path: var(--radar-polygon, polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%));
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.2));
    transition: clip-path 220ms ease;
}

.radar-svg {
    position: absolute;
    inset: 26px 44px 18px;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.radar-svg-fill {
    fill: rgba(139, 92, 246, 0.30);
}

.radar-svg-stroke {
    fill: none;
    stroke: #7c5cff;
    stroke-linejoin: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.35));
}

.radar-label {
    position: absolute;
    color: #777783;
    font-size: 11px;
}

.radar-label.win {
    top: 70px;
    left: 48%;
}

.radar-label.risk {
    right: 7px;
    top: 104px;
}

.radar-label.rec {
    left: 22px;
    top: 118px;
}

.tj-activity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.activity-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777783;
    font-size: 12px;
}

.activity-legend i,
.activity-dot {
    display: block;
    border-radius: 50%;
}

.activity-legend i {
    width: 9px;
    height: 9px;
}

.activity-legend .profit,
.activity-dot.profit {
    background: #10b981;
}

.activity-legend .loss,
.activity-dot.loss {
    background: #ef4444;
}

.activity-dot.muted {
    background: rgba(255, 255, 255, 0.08);
}

.tj-activity-dots {
    min-height: 160px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.activity-month {
    min-width: 0;
}

.activity-month-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary, #94a3b8);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
}

.activity-dot-grid {
    display: grid;
    grid-template-rows: repeat(5, 14.5px);
    grid-auto-flow: column;
    grid-auto-columns: 14.5px;
    gap: 5px;
    justify-content: center;
}

.activity-dot {
    width: 14.5px;
    height: 14.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.activity-dot:hover {
    transform: scale(1.3);
    z-index: 5;
}

.activity-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.activity-totals strong {
    color: #8b5cf6;
    font-size: 28px;
    line-height: 1;
}

.tj-dashboard-layout > .dashboard-chart-card.tj-lower-card,
.tj-dashboard-layout > .recent-trades-card.tj-lower-card {
    grid-column: span 6;
    min-height: 300px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.08), transparent 14rem),
        linear-gradient(150deg, rgba(26, 26, 30, 0.98), rgba(17, 17, 20, 0.98));
    box-shadow: none;
}

.tj-dashboard-layout > .dashboard-sidebar-column.tj-lower-card {
    display: none;
}

.tj-dashboard-layout .chart-container {
    height: 220px;
}

.tj-dashboard-layout .card-title {
    font-size: 18px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 9px 8px;
}

.dashboard-table th {
    color: #7b7b86;
    font-size: 9px;
}

.dashboard-table td {
    color: #aaaab4;
    font-size: 12px;
}

.stat-ring,
.stat-icon-box,
.donut-widget canvas {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

.donut-widget {
    display: grid;
    grid-template-columns: minmax(112px, 132px) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.donut-widget canvas {
    width: 132px !important;
    height: 132px !important;
    max-width: 132px;
    max-height: 132px;
}

/* Mobile-only elements strictly hidden on desktop viewports */
.mobile-bottom-bar,
.mobile-header-brand {
    display: none !important;
}

/* Tablet & Intermediate Viewports (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --sidebar-width: 240px;
    }

    .sidebar {
        padding: 16px 10px 18px;
    }

    .brand {
        gap: 8px;
        margin: 0 0 20px 0;
    }

    .brand .logo-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-pro-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: 0.16em;
    }

    .nav-btn {
        height: 42px;
        padding: 0 10px;
        gap: 10px;
        font-size: 13.5px;
    }

    .nav-btn span,
    .sidebar-bottom-nav .nav-btn span {
        font-size: 13.5px;
    }

    .main-content {
        padding: 0 20px 32px;
    }

    .tj-dashboard-layout {
        gap: 16px;
    }

    .tj-today-card {
        grid-column: span 12 !important;
    }

    .tj-balance-card,
    .tj-total-card,
    .tj-mini-card {
        grid-column: span 6 !important;
    }

    .tj-score-card,
    .tj-activity-card,
    .dashboard-chart-card,
    .recent-trades-card {
        grid-column: span 12 !important;
    }
}

/* Mobile Devices (<= 768px - Phones & Compact Tablets) */
@media (max-width: 768px) {
    body {
        zoom: 1 !important;
        -webkit-text-size-adjust: 100%;
    }

    :root {
        --sidebar-width: 0px !important;
    }

    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none !important;
    }

    /* Full width main content container */
    .main-content {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        padding: 10px 14px 84px !important; /* extra bottom padding for mobile bar */
        overflow-x: hidden !important;
    }

    /* Mobile Brand Header in topbar */
    .mobile-header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .mobile-header-brand .logo-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        border-radius: 7px !important;
    }

    .mobile-header-brand .brand-name {
        font-size: 15px !important;
    }

    /* Sleek Mobile Topbar */
    .app-topbar {
        min-height: 50px !important;
        margin-inline: -14px !important;
        padding: 6px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        background: rgba(10, 10, 14, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }

    .app-topbar > div:first-child {
        gap: 6px !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }

    .app-topbar .connection-pill {
        display: inline-flex !important;
        padding: 4px 7px !important;
        font-size: 10.5px !important;
        gap: 4px !important;
        border-radius: 7px !important;
        max-width: 105px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        flex-shrink: 1 !important;
    }

    .app-topbar .connection-pill strong {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10.5px !important;
    }

    #header-connection-text {
        display: none !important;
    }

    .topbar-actions {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    #btn-admin-user-mgmt {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }

    #btn-admin-user-mgmt span {
        display: none !important;
    }

    #btn-admin-user-mgmt i,
    #btn-admin-user-mgmt svg {
        width: 14px !important;
        height: 14px !important;
    }

    #header-account-dropdown-menu {
        max-width: min(320px, calc(100vw - 28px)) !important;
        left: 0 !important;
    }

    .topbar-icon-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
    }

    .topbar-icon-btn i,
    .topbar-icon-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .topbar-icon-btn[title="Notifications"] {
        display: none !important;
    }

    .profile-pill {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        position: relative !important;
    }

    .profile-pill > span:not(.profile-avatar) {
        display: none !important;
    }

    .profile-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        user-select: none !important;
    }

    .profile-logout-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        border-radius: 8px !important;
        background: rgba(239, 68, 68, 0.14) !important;
        border: 1px solid rgba(239, 68, 68, 0.32) !important;
        color: #f87171 !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: all 0.18s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .profile-logout-btn:active {
        transform: scale(0.92) !important;
        background: rgba(239, 68, 68, 0.28) !important;
    }

    .profile-logout-btn i,
    .profile-logout-btn svg {
        width: 15px !important;
        height: 15px !important;
        color: #f87171 !important;
        stroke-width: 2.2 !important;
        display: block !important;
    }

    #mobile-nav-logout {
        color: #f87171 !important;
    }

    #mobile-nav-logout .mobile-nav-icon svg {
        stroke: #f87171 !important;
        width: 19px !important;
        height: 19px !important;
    }

    #mobile-nav-logout span {
        color: #f87171 !important;
        font-weight: 700 !important;
    }

    #mobile-nav-logout:active {
        transform: scale(0.92) !important;
        opacity: 0.8 !important;
    }

    /* Page title header */
    .top-header {
        margin-top: 10px !important;
        margin-bottom: 12px !important;
    }

    .header-title-section h1 {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    .header-title-section .subtitle {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    /* Portfolio Attribution Hub */
    .perf-attribution-hub {
        padding: 12px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 14px !important;
        background: rgba(18, 18, 24, 0.75) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .perf-attribution-hub h2 {
        font-size: 13.5px !important;
    }

    .perf-attr-controls-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 3px !important;
        width: 100% !important;
    }

    .perf-attr-controls-row::-webkit-scrollbar {
        display: none !important;
    }

    .dashboard-timeframe-switcher,
    .dashboard-origin-switcher {
        flex-shrink: 0 !important;
    }

    .dash-mode-btn {
        padding: 5px 9px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .dash-mode-btn span {
        font-size: 11px !important;
    }

    .btn-label-desktop {
        display: none !important;
    }

    .btn-label-mobile {
        display: inline !important;
    }

    .attr-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .attr-card {
        padding: 10px 10px !important;
        border-radius: 10px !important;
    }

    .attr-card strong {
        font-size: 16px !important;
    }

    .attr-card span {
        font-size: 10px !important;
    }

    /* Dashboard Layout & Cards on Mobile */
    .tj-dashboard-layout {
        display: grid !important;
        grid-template-columns: repeat(12, 1fr) !important;
        gap: 10px !important;
    }

    /* Today Hero Card: Full Width on Mobile */
    .tj-today-card {
        grid-column: span 12 !important;
        min-height: 130px !important;
        padding: 16px 16px !important;
        border-radius: 12px !important;
    }

    .tj-today-card .tj-card-label {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    .tj-today-card .tj-mega-value {
        font-size: clamp(28px, 7.5vw, 38px) !important;
        margin-bottom: 6px !important;
    }

    .tj-today-card .tj-card-tools {
        top: 14px !important;
        right: 14px !important;
    }

    .tj-today-card .tj-card-tools button {
        width: 36px !important;
        height: 36px !important;
    }

    /* 2 Columns for Balance and Total PnL */
    .tj-balance-card,
    .tj-total-card {
        grid-column: span 6 !important;
        min-height: 105px !important;
        padding: 12px 12px !important;
        border-radius: 12px !important;
    }

    .tj-balance-card .tj-card-label,
    .tj-total-card .tj-card-label {
        font-size: 11px !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .tj-balance-card .tj-card-value,
    .tj-total-card .tj-card-value {
        font-size: clamp(16px, 4.2vw, 20px) !important;
        margin-bottom: 4px !important;
    }

    .tj-card-corner {
        width: 20px !important;
        height: 20px !important;
        top: 10px !important;
        right: 10px !important;
        opacity: 0.22 !important;
    }

    /* 2x2 Grid for Mini Cards: Streak, June, Biggest Win, Best Day */
    .tj-mini-card {
        grid-column: span 6 !important;
        min-height: 92px !important;
        padding: 11px 11px !important;
        border-radius: 12px !important;
    }

    .tj-mini-card .tj-card-label {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }

    .tj-mini-card strong,
    .tj-mini-card > strong {
        font-size: clamp(15px, 3.8vw, 19px) !important;
        margin-bottom: 3px !important;
    }

    .tj-mini-card small {
        font-size: 10.5px !important;
    }

    .tj-mini-card .tj-card-tools.mini {
        top: 9px !important;
        right: 9px !important;
    }

    .tj-mini-card .tj-card-tools.mini button {
        width: 26px !important;
        height: 26px !important;
    }

    /* Trade Score & Activity Cards: Full Width, Natural Height */
    .tj-score-card,
    .tj-activity-card {
        grid-column: span 12 !important;
        min-height: auto !important;
        padding: 16px 14px !important;
        border-radius: 12px !important;
    }

    .trade-score-value {
        top: 14px !important;
        right: 14px !important;
    }

    .trade-score-value strong {
        font-size: 26px !important;
    }

    .radar-wrap {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 12px auto !important;
        width: 100% !important;
        max-width: 250px !important;
        height: 170px !important;
    }

    .score-metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .score-metric-grid > div {
        padding: 8px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.02) !important;
    }

    .tj-activity-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 12px !important;
    }

    .tj-activity-dots {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .activity-dot-grid {
        justify-content: center !important;
    }

    .activity-totals {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding-top: 12px !important;
    }

    .activity-totals strong {
        font-size: 18px !important;
    }

    /* Chart and Recent Trades Cards: Full Width */
    .tj-dashboard-layout > .dashboard-chart-card.tj-lower-card,
    .tj-dashboard-layout > .recent-trades-card.tj-lower-card {
        grid-column: span 12 !important;
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .tj-dashboard-layout .chart-container {
        height: 200px !important;
    }

    .recent-trades-card .dashboard-table-container,
    .recent-trades-card .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Analytics / Heatmap Layout on Mobile */
    .analytics-layout {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .heatmap-card,
    .chart-widget,
    .chart-widget.weekday-card,
    .ticker-card,
    .chart-widget.avg-win-loss-card,
    .chart-widget.setup-card,
    .chart-widget.sentiment-card,
    .chart-widget.attr-analytics-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
        padding: 14px 12px !important;
    }

    .heatmap-card .card-header.split {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* Heatmap Layout & Cells on Mobile */
    .calendar-heatmap-container {
        width: 100% !important;
        overflow: hidden !important;
    }

    .heatmap-weekday-labels {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        gap: 3px !important;
        margin-bottom: 6px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .heatmap-weekday-labels span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    .calendar-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 3px !important;
        width: 100% !important;
    }

    .calendar-cell {
        min-width: 0 !important;
        min-height: 48px !important;
        padding: 4px 3px !important;
        border-radius: 4px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .calendar-week-label {
        min-width: 0 !important;
        padding: 4px 3px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .cell-top-row {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .cell-day-num {
        font-size: 11px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
    }

    .cell-trade-count {
        font-size: 8.5px !important;
        line-height: 1 !important;
    }

    .week-label-text {
        font-size: 8.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .cell-val-lbl,
    .week-pnl-lbl {
        font-size: 8.5px !important;
        font-weight: 800 !important;
        letter-spacing: -0.04em !important;
        text-align: right !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
        align-self: flex-end !important;
    }

    /* Heatmap Summary Strip on Mobile */
    .heatmap-summary-strip {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1px !important;
        background: var(--border-color) !important;
        margin-top: 10px !important;
    }

    .heatmap-summary-strip div {
        background: rgba(10, 14, 28, 0.95) !important;
        padding: 8px 10px !important;
        min-height: auto !important;
        border-right: none !important;
    }

    .heatmap-summary-strip div:nth-child(5) {
        grid-column: span 2 !important;
    }

    .heatmap-summary-strip span {
        font-size: 10.5px !important;
    }

    .heatmap-summary-strip strong {
        font-size: 13.5px !important;
        margin-top: 2px !important;
    }

    .heatmap-summary-strip small {
        font-size: 10px !important;
    }

    /* Ticker Performance on Mobile */
    .ticker-header {
        font-size: 10px !important;
        letter-spacing: 0.02em !important;
    }

    .ticker-row {
        grid-template-columns: minmax(0, 1.2fr) 48px minmax(0, 1fr) minmax(0, 1.2fr) !important;
        gap: 6px !important;
        font-size: 11.5px !important;
        padding: 5px 0 !important;
    }

    .ticker-row strong {
        font-size: 11.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .ticker-row span:last-child {
        font-size: 11px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    .ticker-wr-cell {
        gap: 4px !important;
    }

    .ticker-wr-cell .ticker-progress {
        min-width: 18px !important;
    }

    .ticker-wr-label {
        font-size: 9.5px !important;
        min-width: 22px !important;
    }

    /* Dual Daily Charts (NSE vs MCX) on Mobile */
    .dual-daily-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Symbol / Strategy Overview Rows on Mobile */
    .symbol-row {
        height: 38px !important;
        gap: 4px !important;
    }

    .symbol-row-name {
        min-width: 90px !important;
        max-width: 130px !important;
        font-size: 11px !important;
    }

    .symbol-row-bar-outer {
        margin: 0 4px !important;
        min-width: 20px !important;
    }

    .symbol-row-value {
        min-width: 75px !important;
        font-size: 11px !important;
    }

    /* Journal Log on Mobile */
    .filter-main-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .search-box {
        width: 100% !important;
    }

    .filter-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .filter-controls select {
        width: 100% !important;
        font-size: 11.5px !important;
    }

    .journal-list-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: rgba(12, 12, 16, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 4px calc(env(safe-area-inset-bottom, 0px)) !important;
        z-index: 9000 !important;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5) !important;
    }

    .mobile-nav-btn {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        background: transparent !important;
        border: none !important;
        color: #71717a !important;
        padding: 6px 0 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-nav-btn.active {
        color: #a855f7 !important;
    }

    .mobile-nav-icon {
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: transform 0.2s ease !important;
    }

    .mobile-nav-btn.active .mobile-nav-icon {
        transform: translateY(-2px) !important;
    }

    .mobile-nav-btn span {
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
    }

    body.light-theme .mobile-bottom-bar {
        background: rgba(255, 255, 255, 0.95) !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08) !important;
    }

    body.light-theme .mobile-nav-btn {
        color: #64748b !important;
    }

    body.light-theme .mobile-nav-btn.active {
        color: #7c3aed !important;
    }

    body.light-theme #mobile-nav-logout {
        color: #dc2626 !important;
    }

    body.light-theme #mobile-nav-logout .mobile-nav-icon svg {
        stroke: #dc2626 !important;
    }

    body.light-theme #mobile-nav-logout span {
        color: #dc2626 !important;
    }

    /* Modal Mobile Adjustments */
    .modal-card {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        margin: 16px auto !important;
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }
}

/* Dashboard continuation cards */
.tj-score-card,
.tj-activity-card {
    min-height: 640px;
    padding: 32px;
}

.tj-score-card {
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

.tj-score-card h2,
.tj-activity-card h2 {
    font-size: 18px;
}

.trade-score-value {
    top: 28px;
    right: 32px;
}

.trade-score-value strong {
    font-size: 38px;
}

.radar-wrap {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(470px, 86%);
    height: 320px;
    margin: 26px auto 0;
    transform: none;
}

.radar-grid {
    inset: 46px 74px 42px;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.05) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(255, 255, 255, 0.05) 50%, transparent 50.5%),
        radial-gradient(circle at center, transparent 0 35%, rgba(255, 255, 255, 0.025) 36% 37%, transparent 38% 100%);
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.radar-shape {
    inset: 46px 74px 42px;
    display: none;
    background: rgba(139, 92, 246, 0.28);
    border: 2px solid #6d5dfc;
    clip-path: var(--radar-polygon, polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%));
}

.radar-svg {
    inset: 46px 74px 42px;
}

.radar-label {
    color: #6f6f78;
    font-size: 11px;
}

.radar-label.win {
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
}

.radar-label.risk {
    top: 111px;
    right: 34px;
}

.radar-label.consistency {
    right: 40px;
    bottom: 72px;
}

.radar-label.discipline {
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
}

.radar-label.profitability {
    left: 30px;
    bottom: 72px;
}

.radar-label.rec {
    left: 42px;
    top: 111px;
}

.score-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    text-align: center;
}

.score-metric-grid strong,
.score-metric-grid span {
    display: block;
}

.score-metric-grid strong {
    margin-bottom: 5px;
    color: #f97316;
    font-size: 20px;
    line-height: 1;
}

.score-metric-grid div:nth-child(2) strong,
.score-metric-grid div:nth-child(5) strong {
    color: #eab308;
}

.score-metric-grid div:nth-child(6) strong {
    color: var(--accent-success);
}

.score-metric-grid span {
    color: var(--text-muted);
    font-size: 12px;
}

.score-metric-label {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.score-info {
    position: relative;
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: help;
    vertical-align: middle;
}

.score-info i,
.score-info svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
    display: block;
}

.score-info::before,
.score-info::after {
    position: absolute;
    left: 50%;
    z-index: 25;
    opacity: 0;
    display: none;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.score-info::before {
    content: "";
    bottom: calc(100% + 5px);
    border: 6px solid transparent;
    border-top-color: rgba(15, 15, 18, 0.98);
}

.score-info::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 16px);
    width: min(260px, 70vw);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f7f7fb;
    background: rgba(15, 15, 18, 0.98);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

/* Leftmost column tooltips alignment */
.score-metric-grid div:nth-child(1) .score-info::after,
.score-metric-grid div:nth-child(4) .score-info::after {
    left: -10px;
    right: auto;
    transform: translate(0, 6px);
}
.score-metric-grid div:nth-child(1) .score-info:hover::after,
.score-metric-grid div:nth-child(1) .score-info:focus-visible::after,
.score-metric-grid div:nth-child(4) .score-info:hover::after,
.score-metric-grid div:nth-child(4) .score-info:focus-visible::after {
    transform: translate(0, 0);
}

/* Rightmost column tooltips alignment */
.score-metric-grid div:nth-child(3) .score-info::after,
.score-metric-grid div:nth-child(6) .score-info::after {
    left: auto;
    right: -10px;
    transform: translate(0, 6px);
}
.score-metric-grid div:nth-child(3) .score-info:hover::after,
.score-metric-grid div:nth-child(3) .score-info:focus-visible::after,
.score-metric-grid div:nth-child(6) .score-info:hover::after,
.score-metric-grid div:nth-child(6) .score-info:focus-visible::after {
    transform: translate(0, 0);
}

.score-info:hover,
.score-info:focus-visible {
    color: #fff;
}

.score-info:hover::before,
.score-info:hover::after,
.score-info:focus-visible::before,
.score-info:focus-visible::after {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
}

.tj-activity-card {
    display: flex;
    flex-direction: column;
}

.tj-activity-dots {
    position: relative;
    min-height: 168px;
    padding: 8px 0 20px 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tj-activity-dots::before {
    content: "Mon\A Tue\A Wed\A Thu\A Fri";
    position: absolute;
    left: 2px;
    top: 36px;
    white-space: pre;
    color: var(--text-muted, #64748b);
    font-size: 10px;
    font-weight: 600;
    line-height: 19.5px;
}

.activity-dot-grid {
    grid-template-rows: repeat(5, 14.5px);
    grid-auto-flow: column;
    grid-auto-columns: 14.5px;
    gap: 5px;
}

.activity-dot {
    width: 14.5px;
    height: 14.5px;
}

.activity-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 26px 0 20px;
    border-top: 0;
}

.activity-totals div {
    min-width: 0;
}

.activity-totals strong,
.activity-totals span {
    display: block;
}

.activity-totals strong {
    margin-bottom: 7px;
    color: #8b5cf6;
    font-size: 24px;
    line-height: 1;
}

.activity-totals span {
    color: #777783;
    font-size: 12px;
}

.activity-win-rate {
    padding: 20px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.activity-win-rate-label,
.activity-win-rate-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-win-rate-label {
    margin-bottom: 10px;
    color: #777783;
    font-size: 12px;
}

.activity-win-rate-label strong {
    color: var(--accent-success);
}

.activity-win-rate-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(240, 74, 84, 0.52);
}

.activity-win-rate-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #24c88a, #35d7a2);
}

.activity-win-rate-scale {
    margin-top: 7px;
    color: #777783;
    font-size: 10px;
}

.activity-win-rate-scale span:first-child {
    color: #20ba8c;
}

.activity-win-rate-scale span:last-child {
    color: #f04a54;
}

.activity-day-callouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.activity-day-card {
    min-height: 82px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.activity-day-card.best {
    background: rgba(48, 216, 137, 0.055);
}

.activity-day-card.worst {
    background: rgba(240, 74, 84, 0.055);
}

.activity-day-card span,
.activity-day-card small {
    display: block;
}

.activity-day-card span {
    margin-bottom: 5px;
    color: #777783;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.activity-day-card.best span,
.activity-day-card.best strong {
    color: var(--accent-success);
}

.activity-day-card.worst span,
.activity-day-card.worst strong {
    color: var(--accent-danger);
}

.activity-day-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 18px;
}

.activity-day-card small {
    color: #777783;
    font-size: 11px;
}

.activity-avg-day {
    margin-top: auto;
    padding-top: 22px;
    color: #777783;
    font-size: 12px;
    text-align: center;
}

.activity-avg-day strong {
    color: var(--accent-success);
}

@media (max-width: 1280px) {
    .tj-score-card,
    .tj-activity-card {
        min-height: 610px;
    }

    .radar-wrap {
        height: 290px;
    }
}

@media (max-width: 620px) {
    .tj-score-card,
    .tj-activity-card {
        min-height: auto;
    }

    .score-metric-grid,
    .activity-totals,
    .activity-day-callouts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Authentication Screen & Glassmorphic Forms styling */
.auth-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    background: #000000;
    overflow: hidden;
    font-family: var(--font-sans);
}

@media (min-width: 840px) {
    .auth-container {
        grid-template-columns: 1.15fr 1fr;
    }
}

/* Background Glowing Orbs */
.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
    transition: all 1s ease-in-out;
}

.orb-violet {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 108, 255, 0.6) 0%, rgba(139, 108, 255, 0) 70%);
    left: -100px;
    top: -100px;
    animation: orbPulse 8s infinite alternate ease-in-out;
}

.orb-blue {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    right: -150px;
    bottom: -150px;
    animation: orbFloat 10s infinite alternate ease-in-out;
}

@keyframes orbPulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.15) translate(30px, 20px);
        opacity: 0.55;
    }
}

@keyframes orbFloat {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.35;
    }
    100% {
        transform: scale(1.1) translate(-40px, -30px);
        opacity: 0.5;
    }
}

/* Left Side: Visual Column */
.auth-visual {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 80px;
    background: linear-gradient(135deg, rgba(8, 8, 12, 0.95) 0%, rgba(3, 3, 5, 0.95) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

@media (min-width: 840px) {
    .auth-visual {
        display: flex;
    }
}

.auth-visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-visual-header .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #a78bfa 100%);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 0 24px rgba(139, 108, 255, 0.35);
}

.auth-visual-header .brand-name {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-visual-header .brand-name span {
    color: var(--accent-primary);
}

.auth-visual-header .brand-name b {
    color: #d946ef;
}

.auth-visual-hero {
    margin: 40px 0;
    max-width: 480px;
}

.auth-visual-hero h1 {
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-visual-hero p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Right Side: Form Side Layout */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 30, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(18, 18, 24, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    padding: 34px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: authFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.auth-logo.mobile-only {
    display: flex;
}

@media (min-width: 840px) {
    .auth-logo.mobile-only {
        display: none;
    }
}

.auth-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #a78bfa 100%);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 0 16px rgba(139, 108, 255, 0.3);
}

.auth-logo .brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.auth-logo .brand-name span {
    color: var(--accent-primary);
}

.auth-logo .brand-name b {
    font-weight: 800;
    background: linear-gradient(135deg, #ffd26a 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3px;
}

.auth-tab {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.auth-tab:hover:not(.active) {
    color: var(--text-secondary);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.auth-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -10px;
    margin-bottom: 2px;
}

.auth-message {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 11.5px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-message.error {
    background: rgba(240, 74, 84, 0.1);
    border: 1px solid rgba(240, 74, 84, 0.2);
    color: var(--accent-danger);
}

.auth-message.success {
    background: rgba(48, 216, 137, 0.1);
    border: 1px solid rgba(48, 216, 137, 0.2);
    color: var(--accent-success);
}

.auth-btn {
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.auth-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-container label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-container label .required {
    color: var(--accent-danger);
}

.auth-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-container .input-wrapper i,
.auth-container .input-wrapper svg {
    position: absolute;
    left: 12px;
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.auth-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    transition: var(--transition-fast);
}

.auth-container .input-wrapper input {
    padding-left: 36px;
}

.auth-container input:focus {
    border-color: var(--accent-primary);
    background: rgba(12, 12, 16, 0.85);
    box-shadow: 
        0 0 0 3px rgba(139, 108, 255, 0.18),
        0 0 15px rgba(139, 108, 255, 0.1);
}

.auth-container .input-wrapper input:focus + i,
.auth-container .input-wrapper input:focus + svg {
    color: var(--accent-primary-hover);
}

/* Remember Me Checkbox */
.remember-me-container {
    margin-top: -2px;
    margin-bottom: 4px;
}

.remember-me-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
}

.remember-me-label input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    accent-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
}

/* Modern login screen */
.auth-container {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    gap: 24px;
    padding: 24px;
    align-items: stretch;
    isolation: isolate;
    background: #08080a;
    overflow: hidden;
}

.auth-market-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0.96), rgba(5, 5, 6, 1)),
        radial-gradient(circle at 65% 18%, rgba(139, 92, 246, 0.18), transparent 34rem);
}

.auth-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25));
}

.auth-bg-chart {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -12%;
    width: 116%;
    height: 78%;
    opacity: 0.72;
}

.auth-chart-fill {
    fill: url(#auth-chart-area);
}

.auth-chart-line {
    fill: none;
    stroke: rgba(48, 216, 137, 0.55);
    stroke-width: 3;
    stroke-linecap: round;
}

.auth-candle-field {
    position: absolute;
    left: 7%;
    bottom: 10%;
    display: grid;
    grid-template-columns: repeat(8, 18px);
    align-items: end;
    gap: 18px;
    opacity: 0.38;
}

.auth-candle-field span {
    position: relative;
    display: block;
    width: 12px;
    height: 44px;
    border-radius: 3px;
    background: rgba(48, 216, 137, 0.74);
}

.auth-candle-field span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -16px;
    bottom: -14px;
    width: 2px;
    transform: translateX(-50%);
    background: currentColor;
    opacity: 0.7;
}

.auth-candle-field .down {
    height: 34px;
    color: rgba(240, 74, 84, 0.75);
    background: rgba(240, 74, 84, 0.75);
}

.auth-candle-field .tall {
    height: 68px;
}

.auth-visual {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: calc(100vh - 48px);
    padding: clamp(28px, 3vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(25, 25, 30, 0.84), rgba(12, 12, 15, 0.84)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(139, 92, 246, 0.08), transparent);
}

.auth-visual-header {
    position: relative;
    z-index: 1;
}

.auth-visual-header .logo-icon,
.auth-logo .logo-icon {
    border-radius: 11px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22);
}

.auth-visual-header .brand-name,
.auth-logo .brand-name {
    letter-spacing: 0;
}

.auth-visual-hero {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: clamp(34px, 5vh, 52px) 0 18px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(48, 216, 137, 0.22);
    border-radius: 99px;
    color: #8af0bd;
    background: rgba(48, 216, 137, 0.08);
    font-size: 12px;
    font-weight: 700;
}

.auth-visual-hero h1 {
    margin: 18px 0 12px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 0.98;
    letter-spacing: 0;
}

.auth-visual-hero p {
    max-width: 430px;
    color: #9b9ba6;
    font-size: 16px;
    line-height: 1.5;
}

.auth-dashboard-preview {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background: rgba(9, 9, 12, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.preview-header span,
.preview-header small,
.preview-metrics span,
.auth-insight-card span {
    color: #82828d;
    font-size: 12px;
}

.preview-header strong {
    display: block;
    margin-top: 4px;
    color: #30d889;
    font-size: 26px;
    line-height: 1;
}

.preview-equity-chart {
    display: block;
    width: 100%;
    height: 150px;
}

.preview-grid {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
}

.preview-area {
    fill: url(#preview-area);
}

.preview-line {
    fill: none;
    stroke: #30d889;
    stroke-width: 4;
    stroke-linecap: round;
}

.preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.preview-metrics div,
.auth-insight-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.preview-metrics strong,
.auth-insight-card strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 18px;
}

.auth-insight-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 580px;
    margin-top: 12px;
}

.auth-form-side {
    z-index: 1;
    min-height: calc(100vh - 48px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(17, 17, 20, 0.86), rgba(8, 8, 10, 0.92)),
        rgba(8, 8, 10, 0.86);
}

.auth-card {
    max-width: 430px;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(19, 19, 23, 0.84);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.auth-tabs {
    min-height: 42px;
    border-color: rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.035);
}

.auth-tab {
    border-radius: 7px;
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(168, 85, 247, 0.86));
}

.auth-title {
    font-size: 28px;
    line-height: 1.1;
}

.auth-subtitle {
    margin-top: -6px;
    font-size: 13px;
}

.auth-container input {
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.auth-btn {
    min-height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

@media (max-width: 1080px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-side {
        min-height: auto;
    }

    .auth-logo.mobile-only {
        display: flex;
    }
}

@media (max-width: 720px) {
    .auth-container {
        padding: 14px;
        gap: 14px;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-side {
        padding: 16px;
    }

    .auth-card {
        max-width: none;
    }

    .auth-container .form-row {
        grid-template-columns: 1fr;
    }
}

/* TradingJournal hero-style auth screen */
#auth-screen,
.auth-container {
    position: relative;
    display: block;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 18%, rgba(139, 92, 246, 0.16), transparent 34rem),
        linear-gradient(180deg, #10091d 0%, #08050e 100%);
}

#auth-screen.hidden,
.auth-container.hidden,
#auth-screen[style*="display: none"],
#auth-screen[style*="display:none"] {
    display: none !important;
}

#app-shell.hidden,
.app-shell.hidden,
#app-shell[style*="display: none"],
#app-shell[style*="display:none"] {
    display: none !important;
}

.auth-market-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 55%, rgba(109, 93, 252, 0.08), transparent 31rem),
        linear-gradient(180deg, rgba(16, 9, 29, 0.98), rgba(8, 5, 14, 0.98));
}

.auth-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, black 0 68%, transparent 100%);
}

.auth-cross-field {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    grid-auto-rows: 120px;
    place-items: center;
    opacity: 0.9;
}

.auth-cross-field span {
    position: relative;
    width: 18px;
    height: 18px;
    color: rgba(139, 92, 246, 0.36);
    transform: rotate(45deg);
}

.auth-cross-field span:nth-child(5n),
.auth-cross-field span:nth-child(11n) {
    color: rgba(0, 186, 255, 0.26);
}

.auth-cross-field span::before,
.auth-cross-field span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 99px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.auth-cross-field span::before {
    width: 22px;
    height: 2px;
}

.auth-cross-field span::after {
    width: 2px;
    height: 22px;
}

.auth-nav {
    position: relative;
    z-index: 2;
    height: 96px;
    padding: 0 clamp(24px, 4vw, 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.auth-nav-brand,
.auth-nav-actions,
.auth-nav-links {
    display: flex;
    align-items: center;
}

.auth-nav-brand {
    gap: 14px;
    color: #fff;
    flex-shrink: 0;
}

.auth-nav-brand .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 16px 34px rgba(139, 92, 246, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-nav-brand .logo-icon span {
    font-size: 22px;
}

.auth-nav-brand .brand-name {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.auth-nav-brand .brand-name span {
    color: #a878ff;
}

.auth-nav-links {
    justify-content: center;
    gap: clamp(24px, 3vw, 46px);
}

.auth-nav-links a {
    position: relative;
    color: #9aa0b6;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.auth-nav-links a.active,
.auth-nav-links a:hover {
    color: #fff;
}

.auth-nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 3px;
    border-radius: 99px;
    background: #8b5cf6;
}

.auth-nav-actions {
    justify-content: flex-end;
    gap: 22px;
    flex-shrink: 0;
    white-space: nowrap;
}

.auth-link-btn,
.auth-nav-cta,
.auth-hero-primary,
.auth-hero-secondary {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
}

.auth-link-btn {
    color: #aab0c3;
    background: transparent;
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-nav-cta {
    min-height: 54px;
    padding: 0 28px;
    gap: 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #9b5cf6);
    box-shadow: 0 18px 48px rgba(139, 92, 246, 0.3);
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-nav-cta i,
.auth-hero-primary i,
.auth-hero-secondary i {
    width: 20px;
    height: 20px;
}

.auth-hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 96px);
    padding: clamp(46px, 8vh, 90px) 24px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-ai-badge {
    min-height: 50px;
    padding: 0 32px;
    border: 1px solid rgba(139, 92, 246, 0.38);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #bda4ff;
    background: rgba(139, 92, 246, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-ai-badge i {
    width: 20px;
    height: 20px;
}

.auth-hero h1 {
    max-width: 1160px;
    margin: 64px auto 38px;
    color: #f7f7fb;
    font-size: clamp(58px, 7.4vw, 108px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-hero h1 span {
    color: #b985ff;
}

.auth-hero p {
    max-width: 950px;
    margin: 0 auto;
    color: #939ab2;
    font-size: clamp(21px, 2vw, 30px);
    line-height: 1.42;
}

.auth-hero p strong {
    color: #fff;
}

.auth-hero-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 62px;
}

.auth-hero-primary,
.auth-hero-secondary {
    min-height: 84px;
    padding: 0 60px;
    gap: 18px;
    border-radius: 999px;
    font-size: 22px;
    text-transform: uppercase;
}

.auth-hero-primary {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a269ff);
    box-shadow: 0 24px 64px rgba(139, 92, 246, 0.34);
}

.auth-hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f4fb;
    background: rgba(255, 255, 255, 0.035);
    text-transform: none;
}

.auth-form-side {
    position: relative;
    z-index: 1;
    min-height: auto;
    max-width: 560px;
    margin: 0 auto 96px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.auth-card {
    max-width: 512px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(17, 14, 25, 0.82);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.auth-logo.mobile-only {
    display: none;
}

.auth-title {
    font-size: 28px;
}

@media (max-width: 1180px) {
    .auth-nav {
        grid-template-columns: auto 1fr auto;
    }

    .auth-nav-links {
        gap: 22px;
    }

    .auth-nav-links a {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .auth-nav {
        height: auto;
        padding: 22px;
        grid-template-columns: 1fr auto;
    }

    .auth-nav-links {
        display: none;
    }

    .auth-nav-brand .brand-name {
        font-size: 22px;
    }

    .auth-link-btn {
        display: none;
    }

    .auth-hero {
        min-height: calc(100vh - 88px);
    }

    .auth-hero h1 {
        margin-top: 44px;
        font-size: clamp(48px, 12vw, 82px);
    }

    .auth-hero-actions {
        flex-direction: column;
        width: min(420px, 100%);
    }

    .auth-hero-primary,
    .auth-hero-secondary {
        width: 100%;
        min-height: 64px;
        padding: 0 24px;
        font-size: 17px;
    }
}

@media (max-width: 560px) {
    .auth-nav-brand .logo-icon {
        width: 44px;
        height: 44px;
    }

    .auth-nav-brand .brand-name {
        font-size: 19px;
    }

    .auth-nav-cta {
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    .auth-ai-badge {
        min-height: 40px;
        padding: 0 16px;
        font-size: 11px;
    }

    .auth-hero {
        padding-inline: 16px;
    }

    .auth-hero p {
        font-size: 18px;
    }

    .auth-card {
        padding: 26px;
    }

    .auth-form-side {
        padding: 0 14px;
    }
}

/* ==========================================================================
   Light Theme Styling Overrides (High-Contrast & Vibrant)
   ========================================================================== */
body.light-theme {
    --bg-base: #f8fafc; /* Slate 50 */
    --bg-sidebar: #ffffff;
    --bg-panel: #ffffff;
    --bg-panel-strong: #ffffff;
    --bg-panel-soft: #f1f5f9;
    --bg-input: #ffffff;
    --border-color: #cbd5e1; /* Slate 300 - crisp borders! */
    --border-strong: #94a3b8; /* Slate 400 */
    --text-primary: #0f172a; /* Slate 900 - dark sharp text! */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --accent-primary: #7c3aed; /* Violet 600 */
    --accent-primary-hover: #6d28d9; /* Violet 700 */
    --accent-primary-glow: rgba(124, 58, 237, 0.2);
    --accent-success: #059669; /* Emerald 600 - rich green! */
    --accent-success-soft: rgba(16, 185, 129, 0.12);
    --accent-success-border: rgba(16, 185, 129, 0.35);
    --accent-danger: #dc2626; /* Red 600 - rich red! */
    --accent-danger-soft: rgba(239, 68, 68, 0.12);
    --accent-danger-border: rgba(239, 68, 68, 0.35);
    --accent-warning: #d97706; /* Amber 600 */
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.light-theme .app-shell,
body.light-theme .main-content,
body.light-theme .auth-container {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.light-theme .auth-market-layer {
    background: 
        radial-gradient(circle at 50% 55%, rgba(124, 58, 237, 0.05), transparent 31rem),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

body.light-theme .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #cbd5e1 !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .brand-name {
    color: #0f172a !important;
}

body.light-theme .nav-btn {
    color: #475569 !important;
}

body.light-theme .nav-btn:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

body.light-theme .nav-btn.active {
    color: #7c3aed !important;
    background: #f3e8ff !important;
    font-weight: 700 !important;
}

body.light-theme .app-topbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #cbd5e1 !important;
}

/* Header & Welcome Text */
body.light-theme .welcome-header h1,
body.light-theme .main-header h1,
body.light-theme .header-title h1,
body.light-theme h1, body.light-theme h2, body.light-theme h3 {
    color: #0f172a !important;
}

body.light-theme .welcome-header p,
body.light-theme .main-header p,
body.light-theme .header-title p,
body.light-theme .section-desc,
body.light-theme .card-description {
    color: #475569 !important;
}

/* Premium High-Contrast Dashboard Cards in Light Mode */
body.light-theme .tj-card,
body.light-theme .card,
body.light-theme .date-section,
body.light-theme .modal-card,
body.light-theme .overview-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .tj-card:hover,
body.light-theme .card:hover,
body.light-theme .overview-card:hover {
    border-color: rgba(124, 58, 237, 0.4) !important;
    box-shadow: 0 12px 28px -4px rgba(124, 58, 237, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
}

/* Card Labels & Headers */
body.light-theme .tj-card-label,
body.light-theme .card-title,
body.light-theme .overview-card-title {
    color: #334155 !important;
    font-weight: 700 !important;
}

/* Card Values & Main Figures */
body.light-theme .tj-mega-value,
body.light-theme .tj-card-value,
body.light-theme .tj-mini-card strong,
body.light-theme .tj-mini-card > strong,
body.light-theme #tj-current-balance {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* Zero/Neutral Values in Light Mode (replaces faint white text) */
body.light-theme .tj-today-card .tj-card-value,
body.light-theme .tj-card-value:not(.positive):not(.negative) {
    color: #0f172a !important;
}

/* Subtitles, notes, dates, and timestamps */
body.light-theme .tj-card-sub,
body.light-theme .tj-card-note,
body.light-theme .tj-mini-card small,
body.light-theme .tj-muted,
body.light-theme .tj-card-tools small,
body.light-theme .card-subtitle {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* P&L Colors in Light Mode */
body.light-theme .positive,
body.light-theme .tj-card-value.positive,
body.light-theme .symbol-row-value.positive {
    color: #059669 !important; /* Rich Emerald 600 */
}

body.light-theme .negative,
body.light-theme .tj-card-value.negative,
body.light-theme .symbol-row-value.negative {
    color: #dc2626 !important; /* Rich Red 600 */
}

body.light-theme .warning,
body.light-theme .tj-streak-note {
    color: #d97706 !important; /* Amber 600 */
}

/* Topbar Pills & Icon Buttons */
body.light-theme .connection-pill,
body.light-theme .profile-pill,
body.light-theme .topbar-icon-btn {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .profile-pill {
    color: #0f172a !important;
}

body.light-theme .profile-pill .profile-avatar {
    background: #f3e8ff !important;
    color: #7c3aed !important;
    font-weight: 700 !important;
}

body.light-theme .profile-pill small {
    color: #475569 !important;
}

/* Table Enhancements in Light Mode */
body.light-theme .dashboard-table,
body.light-theme .journal-table {
    background: #ffffff !important;
}

body.light-theme .dashboard-table th,
body.light-theme .journal-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

body.light-theme .dashboard-table td,
body.light-theme .journal-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.light-theme .dashboard-table tbody tr:hover,
body.light-theme .journal-table tbody tr:hover {
    background: #f8fafc !important;
}

/* Input Wrappers & Controls */
body.light-theme .input-wrapper input,
body.light-theme select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

body.light-theme .chart-toolbar,
body.light-theme .heatmap-toggle {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
}

body.light-theme .chart-toolbar button,
body.light-theme .heatmap-toggle button {
    color: #475569 !important;
}

body.light-theme .chart-toolbar button.active,
body.light-theme .heatmap-toggle button.active {
    color: #ffffff !important;
    background: #7c3aed !important;
}

body.light-theme .activity-dot.muted {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .radar-grid {
    background: linear-gradient(90deg, transparent 49.5%, rgba(0, 0, 0, 0.04) 50%, transparent 50.5%);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .radar-label {
    color: #64748b;
}

body.light-theme .radar-shape {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent-primary);
}

body.light-theme .radar-svg-fill {
    fill: rgba(124, 58, 237, 0.18);
}

body.light-theme .radar-svg-stroke {
    stroke: var(--accent-primary);
}

body.light-theme select option {
    color: #0f172a;
    background: #ffffff;
}

body.light-theme .modal-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

body.light-theme .details-notes-content {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .dashboard-table tbody tr:hover,
body.light-theme .journal-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .jt-notes-preview {
    color: #64748b;
}

body.light-theme .jt-title-cell,
body.light-theme .jt-ticker-cell,
body.light-theme .details-title,
body.light-theme .info-val {
    color: #0f172a;
}

body.light-theme .input-wrapper input {
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--accent-primary);
}

body.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

body.light-theme .auth-title,
body.light-theme .auth-logo .brand-name {
    color: #0f172a;
}

body.light-theme .auth-tab.active {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-theme .auth-tabs {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .auth-form-side {
    background: radial-gradient(circle at 50% 50%, rgba(241, 245, 249, 0.7) 0%, #f8fafc 100%);
}

body.light-theme .auth-visual {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-right-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .auth-visual-hero h1 {
    background: linear-gradient(to right, #0f172a, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .tj-lower-card,
body.light-theme .tj-dashboard-layout > .dashboard-chart-card.tj-lower-card,
body.light-theme .tj-dashboard-layout > .recent-trades-card.tj-lower-card {
    background: linear-gradient(150deg, #ffffff, #f8fafc) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .card-title {
    color: var(--text-primary) !important;
}

body.light-theme .card-title i,
body.light-theme .card-mini-icon {
    color: var(--text-muted) !important;
}

body.light-theme .dashboard-table td {
    color: var(--text-secondary) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .dashboard-table th {
    color: var(--text-muted) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .text-link {
    color: var(--accent-primary) !important;
}

body.light-theme .text-link:hover {
    color: var(--accent-primary-hover) !important;
}

body.light-theme .jt-action-btn:hover {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Analytics Overview Section */
.overview-section-title {
    margin-top: 32px;
    margin-bottom: 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

body.light-theme .overview-section-title {
    color: #0f172a;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.analytics-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .analytics-overview-grid {
        grid-template-columns: 1fr;
    }
}

.overview-card {
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.overview-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 18px;
}

body.light-theme .overview-card-title {
    color: #0f172a;
}

.overview-chart-container {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 280px;
}

.overview-list-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex-grow: 1;
    height: 100%;
}

.symbol-row {
    display: flex;
    align-items: center;
    height: 48px;
    font-family: 'Outfit', sans-serif;
}

.symbol-row-name {
    min-width: 140px;
    max-width: 240px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

body.light-theme .symbol-row-name {
    color: #475569;
}

.symbol-row-bar-outer {
    flex-grow: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    margin: 0 12px;
    position: relative;
    overflow: hidden;
}

body.light-theme .symbol-row-bar-outer {
    background: rgba(0, 0, 0, 0.08);
}

.symbol-row-bar-inner {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
}

.symbol-row-bar-inner.positive {
    background: #22d676;
    box-shadow: 0 0 10px rgba(34, 214, 118, 0.4);
}

.symbol-row-bar-inner.negative {
    background: #ff4866;
    box-shadow: 0 0 10px rgba(255, 72, 102, 0.4);
}

.symbol-row-value {
    min-width: 125px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.symbol-row-value.positive {
    color: #22d676;
}

.symbol-row-value.negative {
    color: #ff4866;
}

.symbol-row-winrate-text {
    width: 55px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 700;
}

.symbol-row-winrate-text.positive {
    color: #22d676;
}

.symbol-row-winrate-text.negative {
    color: #ff4866;
}

.symbol-row-count {
    width: 95px;
    text-align: right;
    color: #cbd5e1;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
}

body.light-theme .symbol-row-count {
    color: #64748b;
}

/* Custom Floating Cursor Tooltip for Activity Dots & Heatmap Cells */
.tj-cursor-tooltip {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 120ms ease;
}

body.light-theme .tj-cursor-tooltip {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
}

.tj-cursor-tooltip.positive {
    border-left: 4px solid #22d676;
}

.tj-cursor-tooltip.negative {
    border-left: 4px solid #ff4866;
}

/* Card Hover Effects - Smooth Scale & Accent Glow */
.tj-card,
.card,
.stat-card,
.tj-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.tj-card:hover,
.card:hover,
.stat-card:hover {
    transform: none !important;
    border-color: rgba(139, 108, 255, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
                0 0 16px rgba(139, 108, 255, 0.25);
}

/* Broker Sync Spinner & Progress Styling */
.sync-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent-primary-glow);
    border: 2px solid rgba(127, 90, 240, 0.2);
    margin-bottom: 12px;
}

.sync-spinner-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Live data source badge: pulsing green dot */
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(34, 214, 118, 0.7); transform: scale(1); }
    50%  { box-shadow: 0 0 0 5px rgba(34, 214, 118, 0);  transform: scale(1.15); }
    100% { box-shadow: 0 0 0 0 rgba(34, 214, 118, 0);    transform: scale(1); }
}

/* App Loading Splash Screen Overlay */
.app-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 150vw;
    min-height: 150vh;
    z-index: 999999;
    background: #0b0f19;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-splash-overlay.splash-dismiss {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.025);
    visibility: hidden;
}

.splash-glow-bg {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(99, 102, 241, 0.09) 45%, rgba(0,0,0,0) 70%);
    animation: splash-pulse-glow 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes splash-pulse-glow {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 42px 48px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(16, 185, 129, 0.08);
    max-width: 420px;
    width: 90%;
}

.splash-logo {
    position: relative;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    z-index: 2;
}

.splash-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    border: 2px solid rgba(16, 185, 129, 0.6);
    animation: splash-ring-pulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes splash-ring-pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.38); opacity: 0; }
}

.splash-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.splash-brand span {
    color: #34d399;
}

.splash-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 24px;
    letter-spacing: 0.2px;
}

.splash-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.splash-progress-bar {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #10b981, #34d399, #60a5fa);
    border-radius: 99px;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.85);
    animation: splash-bar-anim 1.8s ease-in-out infinite alternate;
}

@keyframes splash-bar-anim {
    0% { width: 15%; transform: translateX(0); }
    50% { width: 70%; transform: translateX(20%); }
    100% { width: 95%; transform: translateX(5%); }
}

.splash-status-text {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    letter-spacing: 0.3px;
}

/* Sidebar "This Month" Performance Widget */
.sidebar-month-widget {
    margin: 16px 12px 14px 12px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(139, 92, 246, 0.05);
}

.sm-header {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.sm-net-title {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sm-net-val {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sm-net-val.positive {
    color: #34d399;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.sm-net-val.negative {
    color: #f87171;
    text-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
}

.sm-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sm-stat-box {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 10px;
}

.sm-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

.sm-val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 2px;
}

.sm-val.positive {
    color: #34d399;
}

.sm-sparkline-box {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Enhanced Journal Date Section Header */
.date-section {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.date-section:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(15, 23, 42, 0.65);
}

.date-section.open {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
}

.date-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-calendar-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
}

.date-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

.date-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-trades-count {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.date-pnl-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-pnl-lbl {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.date-pnl-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.date-pnl-pill.positive {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.date-pnl-pill.negative {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.date-action-dots {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.date-action-dots:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.date-action-dots.date-delete-all-btn {
    color: #94a3b8;
}

.date-action-dots.date-delete-all-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
}

/* Scoped Date Bulk Selection Toolbar */
.date-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    animation: fadeInBulk 0.2s ease-out;
}

@keyframes fadeInBulk {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.date-bulk-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-bulk-count {
    font-size: 12px;
    font-weight: 600;
    color: #c7d2fe;
}

.date-bulk-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-bulk-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-bulk-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.btn-bulk-delete {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-bulk-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

.jt-select-col {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    text-align: center;
    padding: 8px 10px !important;
}

.jt-select-col input[type="checkbox"],
.date-select-all-cb {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #6366f1;
    border-radius: 4px;
    vertical-align: middle;
}

/* Bulk Action Origin Buttons */
.btn-bulk-origin {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-bulk-origin.client {
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
}

.btn-bulk-origin.client:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.6);
    color: #fde68a;
}

.btn-bulk-origin.desk {
    border-color: rgba(99, 102, 241, 0.35);
    color: #818cf8;
    background: rgba(99, 102, 241, 0.08);
}

.btn-bulk-origin.desk:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.6);
    color: #a5b4fc;
}

/* Trade Origin Badges */
.badge-client-trade {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #fbbf24 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.badge-client-trade:hover {
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

.badge-desk-trade {
    background: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #818cf8 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.badge-desk-trade:hover {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
}

.badge-client-trade *,
.badge-desk-trade * {
    pointer-events: none;
}

#btn-toggle-origin:hover {
    filter: brightness(1.2);
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Portfolio Performance Attribution & Profit Share Hub */
.perf-attribution-hub {
    background: rgba(18, 18, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dash-mode-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.dash-mode-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.dash-mode-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(129, 140, 248, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.attr-nav-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.attr-nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.attr-nav-btn:active {
    transform: scale(0.92);
}

.attr-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.attr-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.attr-desk-card {
    border-left: 3px solid #6366f1;
}

.attr-client-card {
    border-left: 3px solid #f59e0b;
}

.attr-combined-card {
    border-left: 3px solid #0ea5e9;
}

.attr-calc-card {
    border-left: 3px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), rgba(16, 185, 129, 0.08));
}

/* Journal Table & Custom Tag Pill Colors */
.journal-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.journal-table tbody tr {
    transition: background 0.18s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.journal-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.45);
}

.jt-desc-sub {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.jt-lots-cell {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin: 2px;
}

.tag-pill.tag-options { background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.35); color: #c084fc; }
.tag-pill.tag-strike { background: rgba(6, 182, 212, 0.16); border: 1px solid rgba(6, 182, 212, 0.35); color: #22d3ee; }
.tag-pill.tag-position { background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.35); color: #fbbf24; }
.tag-pill.tag-exchange { background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.35); color: #34d399; }

/* Smooth Rounded Rectangle Edges */
.card, .modal-card, .chart-widget, .overview-card, .stat-card, .modal-intraday-card, .intraday-pnl-modal-content, .overview-chart-container, .overview-list-container {
    border-radius: 16px !important;
    overflow: hidden;
}
.stat-card-inner, .modal-header, .card-header {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

/* ==========================================================================
   Option 4: Sharp Futuristic Diamond / Chevron Custom Cursor
   ========================================================================== */
html, body {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22glow%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221%22%20stdDeviation%3D%221.2%22%20flood-color%3D%22%23a855f7%22%20flood-opacity%3D%220.7%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22f1%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%2220%22%20y2%3D%2220%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%233b1578%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%230f0f18%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22f2%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%2220%22%20y2%3D%2220%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2324104d%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%2309090e%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M2%202%20L20%209%20L12%2012%20L9%2020%20Z%22%20fill%3D%22url(%23f1)%22%20stroke%3D%22%23c084fc%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%20filter%3D%22url(%23glow)%22%2F%3E%3Cpath%20d%3D%22M2%202%20L12%2012%20L20%209%20Z%22%20fill%3D%22url(%23f2)%22%2F%3E%3Cpath%20d%3D%22M2%202%20L12%2012%22%20stroke%3D%22%23f3e8ff%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") 2 2, auto !important;
}

button, 
a, 
select, 
input[type="button"], 
input[type="submit"], 
.action-btn, 
.nav-btn, 
.date-header, 
.journal-table th.sortable, 
.jt-action-btn, 
.clickable, 
[role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22glowH%22%20x%3D%22-30%25%22%20y%3D%22-30%25%22%20width%3D%22160%25%22%20height%3D%22160%25%22%3E%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221%22%20stdDeviation%3D%221.8%22%20flood-color%3D%22%23d8b4fe%22%20flood-opacity%3D%220.9%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22fh1%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%2220%22%20y2%3D%2220%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23581c87%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%231e1035%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M2%202%20L22%2010%20L13%2013%20L10%2022%20Z%22%20fill%3D%22url(%23fh1)%22%20stroke%3D%22%23f5d0fe%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%20filter%3D%22url(%23glowH)%22%2F%3E%3Cpath%20d%3D%22M2%202%20L13%2013%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%221.5%22%20fill%3D%22%23ffffff%22%2F%3E%3C%2Fsvg%3E") 2 2, pointer !important;
}

input[type="text"], 
input[type="number"], 
input[type="search"], 
textarea {
    cursor: text !important;
}

/* ==========================================================================
   Ambient Watercolor / Spotlight Glow Follower with Seamless Edge Fade
   ========================================================================== */
.ambient-cursor-glow,
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    transform-origin: center center;
    z-index: 99998;
    background: radial-gradient(
        circle at center,
        rgba(88, 28, 135, 0.36) 0%,
        rgba(78, 26, 122, 0.26) 14%,
        rgba(65, 22, 105, 0.16) 28%,
        rgba(50, 16, 82, 0.09) 44%,
        rgba(35, 11, 60, 0.04) 62%,
        rgba(20, 6, 36, 0.012) 80%,
        transparent 96%
    );
    -webkit-mask-image: radial-gradient(
        circle at center,
        black 0%,
        rgba(0, 0, 0, 0.85) 12%,
        rgba(0, 0, 0, 0.50) 30%,
        rgba(0, 0, 0, 0.20) 55%,
        rgba(0, 0, 0, 0.05) 75%,
        transparent 92%
    );
    mask-image: radial-gradient(
        circle at center,
        black 0%,
        rgba(0, 0, 0, 0.85) 12%,
        rgba(0, 0, 0, 0.50) 30%,
        rgba(0, 0, 0, 0.20) 55%,
        rgba(0, 0, 0, 0.05) 75%,
        transparent 92%
    );
    filter: blur(52px);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

/* Disable cursor glow when graph modal is opened */
body.chart-modal-open .ambient-cursor-glow,
body.chart-modal-open .cursor-glow,
#intraday-pnl-modal.open ~ .ambient-cursor-glow,
#intraday-pnl-modal.open ~ .cursor-glow,
body:has(#intraday-pnl-modal.open) .ambient-cursor-glow,
body:has(#intraday-pnl-modal.open) .cursor-glow,
body:has(#intraday-pnl-modal.show) .ambient-cursor-glow,
body:has(#intraday-pnl-modal.show) .cursor-glow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   Intraday MTM Performance Curve Modal - Responsive Full Viewport Fitting
   ========================================================================== */
#intraday-pnl-modal {
    padding: 12px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
}

#intraday-pnl-modal #intraday-pnl-modal-card {
    width: 1480px !important;
    max-width: 96vw !important;
    max-height: calc(100vh - 24px) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 20px !important;
    border-radius: 16px !important;
    background: #141414 !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.intraday-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.intraday-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0;
    flex-shrink: 0;
}

.intraday-stat-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.intraday-stat-card.positive {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}

.intraday-stat-card.negative {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.intraday-stat-card .stat-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 12px 0 0 12px;
}

.intraday-stat-card.positive .stat-accent-bar {
    background: linear-gradient(180deg, #10b981, #059669);
}

.intraday-stat-card.negative .stat-accent-bar {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.intraday-stat-card .stat-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
    padding-left: 2px;
}

.intraday-stat-card .stat-val {
    font-size: 20px;
    font-weight: 800;
    display: block;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.intraday-stat-card .stat-val.positive,
#modal-today-mtm.positive,
#modal-min-mtm.positive,
#modal-max-mtm.positive {
    color: #10b981 !important;
}

.intraday-stat-card .stat-val.negative,
#modal-today-mtm.negative,
#modal-min-mtm.negative,
#modal-max-mtm.negative,
#modal-max-drawdown.negative {
    color: #ef4444 !important;
}

.intraday-stat-card .stat-sub {
    font-size: 10px;
    color: #475569;
    display: block;
    margin-top: 2px;
    padding-left: 1px;
    font-variant-numeric: tabular-nums;
}

.intraday-chart-box {
    position: relative;
    flex: 1 1 auto;
    min-height: 250px;
    height: clamp(260px, calc(100vh - 225px), 520px);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: #111111;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.intraday-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.intraday-chart-loading-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 15;
    border-radius: 14px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    pointer-events: all;
}

.intraday-chart-loading-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.intraday-spinner-ring {
    width: 42px;
    height: 42px;
    border: 3.5px solid rgba(255, 255, 255, 0.08);
    border-top: 3.5px solid #3b82f6;
    border-right: 3.5px solid #10b981;
    border-radius: 50%;
    animation: intraday-spin 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes intraday-spin {
    to { transform: rotate(360deg); }
}

.intraday-loading-text {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    #intraday-pnl-modal {
        padding: 6px !important;
    }
    #intraday-pnl-modal #intraday-pnl-modal-card {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 98vh !important;
        padding: 10px 10px !important;
        border-radius: 12px !important;
        overflow-y: auto !important;
    }
    .intraday-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin: 6px 0 !important;
    }
    .intraday-stat-card {
        padding: 6px 10px !important;
    }
    .intraday-stat-card .stat-val {
        font-size: 16px !important;
    }
    .intraday-chart-box {
        height: clamp(240px, calc(98vh - 250px), 400px) !important;
    }
}

/* ============================================================================
   ADMIN USER MANAGEMENT MODAL LAYOUT & SCROLL CONSTRAINTS
   Ensures header & footer are always visible without needing zoom out
   ============================================================================ */
#user-management-modal {
    padding: 16px !important;
    align-items: center !important;
    justify-content: center !important;
}

#user-management-modal .modal-card {
    width: min(840px, 96vw) !important;
    max-height: calc(100vh - 32px) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8) !important;
}

#user-management-modal .modal-header {
    flex-shrink: 0 !important;
    padding: 16px 22px !important;
    min-height: auto !important;
}

#user-mgmt-list-view,
#user-mgmt-form-view,
#user-mgmt-success-view {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#user-mgmt-list-view:not([style*="display: none"]),
#user-mgmt-form-view:not([style*="display: none"]),
#user-mgmt-success-view:not([style*="display: none"]) {
    display: flex !important;
}

#admin-user-form {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.user-form-scroll-body,
.user-list-scroll-body,
.user-success-scroll-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 16px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

#user-management-modal .modal-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding: 12px 22px !important;
    border-top: 1px solid var(--border-color) !important;
    background: rgba(18, 18, 22, 0.98) !important;
    display: flex !important;
    align-items: center !important;
}

#admin-broker-checkboxes-container {
    max-height: 140px !important;
    overflow-y: auto !important;
}


