:root {
    --bg-primary: #0b0e14;
    --bg-secondary: #121622;
    --card-bg: #121622;
    --card-bg-elevated: #181d2a;
    --card-border: #1e2436;
    --card-border-light: #242c3f;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-green: #22c55e;
    --accent-green-bg: #092820;
    --accent-green-border: #14533d;
    
    --accent-amber: #f59e0b;
    --accent-amber-bg: #291c06;
    --accent-amber-border: #54390b;
    
    --accent-red: #ef4444;
    --accent-red-bg: #2a0e0e;
    --accent-red-border: #551818;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Sleek custom dark scrollbar (no ugly OS arrows) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0d1017;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #242c3f;
    border-radius: 4px;
    border: 1px solid #1a2030;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b4760;
}

::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #242c3f #0d1017;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 12px;
    display: flex;
    justify-content: center;
    line-height: 1.5;
}

.app-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-container.hidden {
    display: none !important;
}

/* Solid Clean Card Base */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: #16a34a;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-logo {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.header-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.header-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
}

.status-badge.running {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green-border);
}

.status-badge.paused {
    background: var(--accent-amber-bg);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber-border);
}

.status-badge.offline {
    background: var(--card-bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--card-border-light);
}

.status-badge.stopped {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    border: 1px solid var(--accent-red-border);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.ah-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-amber-bg);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber-border);
}

.ah-timer.hidden {
    display: none !important;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    cursor: default;
    user-select: none;
}

.stock-icon {
    width: 14px;
    height: 14px;
    color: #38bdf8;
    flex-shrink: 0;
}

.stock-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.stock-label {
    font-size: 8.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stock-val {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: #f8fafc;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.refresh-button {
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.refresh-button:active {
    background: var(--card-border);
}

.refresh-icon {
    width: 17px;
    height: 17px;
}

.refresh-button.spinning .refresh-icon {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.auto-refresh-label {
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.kpi-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-title-with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.kpi-label-with-select {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--card-bg-elevated);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border-light);
}

.kpi-tag.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border-color: var(--accent-green-border);
}

/* Solid Box Window for displaying amounts */
.kpi-value-container {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    width: fit-content;
}

.kpi-value-container.profit {
    background: var(--accent-green-bg);
    border: 1px solid var(--accent-green-border);
}

.currency-symbol {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
}

.kpi-value-container.profit .currency-symbol {
    color: var(--accent-green);
}

.kpi-value {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.kpi-value.green {
    color: var(--accent-green);
}

.kpi-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--card-border);
}

.meta-highlight {
    color: var(--accent-amber);
    font-weight: 600;
}

/* Custom Dropdown Component */
.select-wrapper {
    position: relative;
    display: inline-block;
}

.custom-dropdown-container {
    position: relative;
    display: inline-block;
}

.custom-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.custom-dropdown-toggle:hover,
.custom-dropdown-container.open .custom-dropdown-toggle {
    background: #1e2436;
    border-color: #3b4760;
}

.custom-dropdown-label {
    white-space: nowrap;
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.custom-dropdown-container.open .dropdown-chevron {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 155px;
    max-height: 220px;
    overflow-y: auto;
    background: #141824;
    border: 1px solid #22293d;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 4px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-dropdown-menu.hidden {
    display: none !important;
}

.custom-dropdown-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown-item:hover {
    background: #1e2436;
    color: #ffffff;
}

.custom-dropdown-item.selected {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    font-weight: 700;
}

/* Native select fallback styling */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 24px 4px 10px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.custom-select:hover, .custom-select:focus {
    border-color: #475569;
}

select {
    background-color: #181d2a !important;
    color: #ffffff !important;
}

option {
    background-color: #121622 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

option:checked {
    background-color: #092820 !important;
    color: #22c55e !important;
}

/* Charts */
.chart-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header.flex-col-sm {
    gap: 8px;
}

.chart-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

.chart-period-indicator {
    font-size: 11px;
    color: var(--text-muted);
}

.selectors-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Big amount window pill, exactly like user screenshot */
.chart-badge {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.chart-badge.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green-border);
}

.chart-badge.amber {
    background: var(--accent-amber-bg);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber-border);
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0d1017;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    padding: 10px 6px 4px 6px;
}

/* Recent Sales Feed */
.feed-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
}

.pulse-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
}

.feed-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.sales-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.sale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.sale-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sale-name {
    font-weight: 600;
    color: #f1f5f9;
}

.sale-time {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sale-price {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-green);
}

.sales-empty {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 24px 0;
}

/* Controls */
.control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--card-border-light);
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-control.pause {
    background: var(--accent-amber-bg);
    border-color: var(--accent-amber-border);
    color: var(--accent-amber);
}

.btn-control.pause:active {
    background: #382405;
}

.btn-control.secondary {
    background: var(--card-bg-elevated);
    border-color: var(--card-border-light);
    color: var(--text-primary);
}

.btn-control.secondary:active {
    background: var(--card-border);
}

.btn-control.danger {
    background: var(--accent-red-bg);
    border-color: var(--accent-red-border);
    color: var(--accent-red);
}

.btn-control.danger:active {
    background: #3e1212;
}

.btn-control.config {
    background: var(--accent-amber-bg);
    border-color: var(--accent-amber-border);
    color: var(--accent-amber);
}

.btn-control.config:active {
    background: #3d2a09;
}

.btn-control.success {
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
    font-weight: 700;
}

.btn-control.success:active {
    background: #15803d;
}

/* Minecraft Style Config Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.hidden {
    display: none !important;
}

.config-dialog {
    width: 100%;
    max-width: 420px;
    background: #121622;
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.btn-modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-hint {
    font-size: 10.5px;
    color: var(--text-muted);
}

.item-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.item-choice-btn {
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-align: left;
}

.item-choice-btn:hover {
    border-color: #3b4760;
}

.item-choice-btn.active {
    background: #142921;
    border-color: var(--accent-green);
}

.item-choice-icon {
    width: 17px;
    height: 17px;
    stroke-width: 2.2px;
    color: var(--text-secondary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.item-choice-btn.active .item-choice-icon {
    color: var(--accent-green);
}

.item-choice-btn:hover .item-choice-icon {
    color: var(--text-primary);
}

.item-choice-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.input-symbol {
    position: absolute;
    left: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-green);
    font-family: var(--font-mono);
}

.config-input {
    width: 100%;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px 10px 28px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.15s ease;
}

.config-input:focus {
    border-color: var(--accent-green);
}

.modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid var(--card-border);
    padding-top: 14px;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Icons Generic */
.icon-muted {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.icon-accent-green {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
}

.icon-accent-amber {
    width: 16px;
    height: 16px;
    color: var(--accent-amber);
}

.icon-inline {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.icon-inline-sm {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

/* Footer */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 10px 0;
}

/* Security Lock Screen */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0b0e14;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lock-screen.hidden {
    display: none !important;
}

.lock-modal {
    max-width: 380px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: #121622;
    border: 1px solid #1e2436;
    border-radius: var(--radius-md);
    padding: 24px 20px;
}

.lock-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #092820;
    border: 1px solid #14533d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.icon-shield {
    width: 26px;
    height: 26px;
    color: var(--accent-green);
}

.lock-title {
    font-size: 18px;
    font-weight: 800;
    color: #f1f5f9;
}

.lock-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.lock-subdesc {
    font-size: 11px;
    color: var(--text-muted);
}

.lock-input-group {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
}

.input-with-icon {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.lock-input {
    width: 100%;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px 10px 34px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
}

.lock-input:focus {
    border-color: #475569;
}

.unlock-btn {
    background: #16a34a;
    border: 1px solid #15803d;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 16px;
    gap: 6px;
    border-radius: var(--radius-sm);
}

.unlock-btn:active {
    background: #15803d;
}

.lock-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ef4444;
}

.lock-error.hidden {
    display: none !important;
}

/* Session Selector Card */
.session-selector-card {
    padding: 8px 12px;
    background: var(--card-bg-elevated);
}

.session-picker-btn {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
    color: var(--text-primary);
}

.session-picker-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.session-live-dot.completed {
    background: var(--text-muted);
    box-shadow: none;
}

.session-title-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.session-picker-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-net-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.session-net-badge.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green-border);
}

.session-net-badge.red {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    border: 1px solid var(--accent-red-border);
}

.dropdown-chevron-sm {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

/* Break-Even Progress Card */
.breakeven-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakeven-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakeven-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakeven-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.badge-pill.green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green-border);
}

.badge-pill.amber {
    background: var(--accent-amber-bg);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber-border);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #0d111a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--card-border-light);
}

.progress-fill {
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.progress-fill.green {
    background: #22c55e;
}

.progress-fill.amber {
    background: #f59e0b;
}

.breakeven-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.breakeven-hint {
    color: var(--text-secondary);
    font-weight: 500;
}

.breakeven-ratio {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.unit-economics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    margin-top: 2px;
}

.unit-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.unit-stat-label {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.unit-stat-val {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.unit-stat-val.green {
    color: var(--accent-green);
}

.unit-stat-val.red {
    color: var(--accent-red);
}

/* Sessions Modal & List */
.sessions-dialog {
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    background: #121622;
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sessions-action-row {
    margin-bottom: 2px;
}

.full-width {
    width: 100%;
}

.sessions-list-scroll {
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 4px;
}

.sessions-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-item-card {
    background: var(--card-bg-elevated);
    border: 1px solid var(--card-border-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.session-item-card:hover {
    border-color: #3b4760;
}

.session-item-card.active-session {
    border-color: var(--accent-green-border);
    background: #10211a;
}

.session-item-card.selected-session {
    border-color: #38bdf8;
}

.session-item-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.session-item-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-item-num {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.session-item-status-tag {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.session-item-status-tag.active {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green-border);
}

.session-item-status-tag.completed {
    background: #1e2436;
    color: var(--text-muted);
}

.session-item-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.session-item-meta {
    font-size: 10.5px;
    color: var(--text-muted);
}

.session-item-right {
    text-align: right;
}

.session-item-profit {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
}

.session-item-profit.green {
    color: var(--accent-green);
}

.session-item-profit.red {
    color: var(--accent-red);
}

.session-item-roi {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
