:root {
    /* TDYP inspired theme */
    --bg-body: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-panel: #e8f7f7;
    --bg-chart: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f5ffff;

    --border-light: #e8ecef;
    --border-medium: #d8dee4;
    --border-strong: #c5cdd6;

    --text-white: #ffffff;
    --text-heading: #20225b;
    --text-muted: #63657e;
    --text-dark: #474747;

    --primary: #00b172;
    --primary-light: #00c985;

    --success: #00b172;
    --success-bg: rgba(0, 177, 114, 0.1);
    --danger: #e53935;
    --danger-bg: rgba(229, 57, 53, 0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
}

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

body {
    font-family: 'Onest', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-heading);
}

.dashboard-body {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- SIDEBAR (Standard left menu) --- */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-logo {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    height: 80px;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-logo {
    padding: 20px 0;
    justify-content: center;
}

.sidebar-logo .full-logo h1 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 2px;
    line-height: 1.2;
    transition: opacity 0.2s;
}

.sidebar-logo .full-logo h1 span {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.sidebar-logo .short-logo {
    display: none;
    color: #61a9e9;
    /* matches user compass icon color */
    font-size: 1.6rem;
    transform: rotate(-45deg);
    /* Point up arrow */
}

.sidebar.collapsed .full-logo {
    display: none;
}

.sidebar.collapsed .short-logo {
    display: block;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.sidebar.collapsed .nav-item {
    padding: 16px 0;
    justify-content: center;
}

.nav-item i.icon {
    width: 24px;
    font-size: 1rem;
    margin-right: 8px;
    opacity: 0.7;
    flex-shrink: 0;
    text-align: center;
}

.sidebar.collapsed .nav-item i.icon {
    margin-right: 0;
    font-size: 1.1rem;
}

.nav-text {
    transition: opacity 0.2s ease;
    flex: 1;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    display: none;
}

.nav-item i.arrow {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.3s;
}

.sidebar.collapsed .nav-item i.arrow {
    display: none;
}

.nav-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}

/* Dropdown logic */
.nav-dropdown {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.nav-dropdown.open .arrow {
    transform: rotate(180deg);
}

.nav-dropdown.open .nav-item {
    color: var(--primary-light);
    background: transparent;
}

.nav-dropdown.open .nav-item i.icon {
    color: var(--text-muted);
}

.sub-menu {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown.open .sub-menu {
    max-height: 300px;
    opacity: 1;
    margin-top: 4px;
    margin-bottom: 8px;
    pointer-events: auto;
}

.sidebar.collapsed .sub-menu {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.sub-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-item i {
    margin-right: 12px;
    font-size: 0.85rem;
    opacity: 0.8;
    width: 20px;
}

.sub-item:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.03);
}

.sub-item.active {
    color: var(--primary-light);
}

.sub-item.active i {
    color: var(--primary-light);
    opacity: 1;
}

.sidebar-bottom {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-bottom {
    padding: 16px 0;
    justify-content: center;
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.user-mini .avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-mini .info {
    transition: opacity 0.2s;
}

.sidebar.collapsed .user-mini .info {
    display: none;
}

.user-mini .info .name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.user-mini .info .balance {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sidebar-bottom .logout i {
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-bottom .logout i:hover {
    color: var(--danger);
}

.sidebar.collapsed .logout {
    display: none;
}

/* --- TERMINAL WRAPPER (Flex Row) --- */
.terminal-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.topbar {
    height: 50px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.topbar-left a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.topbar-left a:hover {
    color: var(--text-white);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.topbar-right .icon-btn {
    cursor: pointer;
    font-size: 0.9rem;
}

.topbar-right .icon-btn:hover {
    color: var(--text-white);
}

.topbar-right .avatar {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

/* MAIN TERMINAL BODY (Columns Layout) */
.terminal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    /* required for absolute order-panel */
}

/* --- MARKET LIST MIDDLE COLUMN --- */
.market-panel {
    width: 320px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.search-box {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
}

.search-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.search-input-wrapper i {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 8px;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.8rem;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.market-tabs {
    display: flex;
    padding: 0 12px;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
}

.market-tab {
    padding: 12px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.market-tab.active {
    color: var(--success);
    border-bottom-color: var(--success);
}

.market-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.table-header .th-right {
    text-align: right;
}

.market-list-scroll {
    flex: 1;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
    align-items: center;
    cursor: pointer;
    transition: background 0.1s;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-row.active {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--success);
}

.td-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-heading);
}

.td-symbol .tiny-icon {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.td-price {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-heading);
}

.td-change {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
}

.td-change.red {
    color: var(--danger);
}

.td-change.green {
    color: var(--success);
}

/* --- MAIN CHART AREA --- */
.chart-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-chart);
    position: relative;
}

/* Top Bar of Chart */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.ch-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ch-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
}

.ch-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ch-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--danger);
    /* A1CAP price is red in screenshot */
}

.live-badge {
    background: var(--success-bg);
    color: var(--success);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-badge i {
    font-size: 0.4rem;
}

.live-delay {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ch-right {
    display: flex;
    gap: 8px;
}

.trade-btn {
    border: none;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.trade-btn:hover {
    opacity: 0.9;
}

.btn-al {
    background: var(--success);
}

.btn-sat {
    background: var(--danger);
}

/* Chart Toolbar */
.chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid var(--border-light);
}

.intervals {
    display: flex;
    gap: 16px;
}

.interval-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
}

.interval-btn:hover {
    color: var(--text-white);
}

.interval-btn.active {
    color: var(--success);
}

.tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.tool-btn:hover {
    color: var(--text-white);
}

/* Canvas / SVG Area */
.chart-canvas {
    height: 350px;
    /* Grafik alanı görseldeki gibi üstte sıkı kalacak */
    flex-shrink: 0;
    position: relative;
    background: var(--bg-chart);
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

/* Y-Axis Prices */
.y-axis {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0 60px 0;
    background: var(--bg-chart);
}

.y-price {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

.y-price.current {
    background: var(--danger);
    color: white;
    padding: 2px 0;
    font-weight: 700;
}

/* X-Axis Dates */
.x-axis {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 60px;
    height: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: var(--bg-chart);
}

.x-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Watermark & TV Logo */
.watermark {
    position: absolute;
    bottom: 40px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: -2px;
}

/* Bottom Status Area */
.chart-footer {
    flex: 1;
    /* Alt kısımdaki devasa boşluğu bu alan kaplayacak */
    padding-top: 24px;
    /* Metin grafiğin hemen altına yerleşecek */
    text-align: center;
    background: var(--bg-chart);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Mock Candlesticks SVG positioning */
.candles-svg {
    position: absolute;
    top: 40px;
    left: 40px;
    width: calc(100% - 100px);
    height: calc(100% - 70px);
}

.candle-red {
    stroke: var(--danger);
    fill: var(--danger);
}

.candle-green {
    stroke: var(--success);
    fill: var(--success);
}

/* --- ORDER PANEL --- */
.order-panel {
    width: 0;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-panel.open {
    width: 340px;
    border-left: 1px solid var(--border-light);
}

.op-inner {
    width: 339px;
    display: flex;
    flex-direction: column;
}

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

.op-header .title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
}

.op-header .close-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.op-header .close-btn:hover {
    color: var(--text-white);
}

.op-balance {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.op-balance i {
    margin-right: 8px;
    color: var(--success);
    font-size: 0.85rem;
}

.op-balance .val {
    margin-left: auto;
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 800;
}

.op-body {
    padding: 24px;
    flex: 1;
}

.op-stock {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
}

.op-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 16px;
}

.op-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.op-tab.active.buy {
    background: var(--success);
    color: var(--text-white);
}

.op-tab.active.sell {
    background: var(--danger);
    color: var(--text-white);
}

.op-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.op-pill {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.op-pill.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.1);
}

.op-pill:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.op-pill.text-only {
    border: none;
    background: transparent;
    padding: 8px;
}

.op-pill.text-only:hover {
    background: rgba(255, 255, 255, 0.03);
}

.op-input-group {
    margin-bottom: 24px;
}

.op-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-weight: 600;
}

.op-label span {
    color: var(--success);
}

.op-input-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 48px;
}

.op-input-box input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    outline: none;
    text-align: center;
}

.op-qty-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.qty-tab {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.qty-tab.active {
    color: var(--success);
    border-bottom: 2px solid var(--success);
    padding-bottom: 8px;
    margin-bottom: -9px;
}

.op-qty-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    height: 48px;
    margin-bottom: 32px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 300;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.op-qty-control input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    outline: none;
}

.op-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sum-left .stitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: 4px;
}

.sum-left .sdesc {
    font-size: 0.65rem;
    color: var(--text-dark);
    font-weight: 500;
}

.sum-right {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
}

.op-footer {
    padding: 24px;
    padding-top: 0;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #00b172 0%, #00d492 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 177, 114, 0.3) !important;
    text-transform: none;
    letter-spacing: 0.2px;
}

.btn-submit:hover {
    background: #009a61 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 177, 114, 0.35) !important;
}


/* Welcome Section */
.welcome-header {
    margin-bottom: 24px;
}

.welcome-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.welcome-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 4 Top Cards */
.top-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat-card .top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-card .icon-box {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-card .title-box {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 4px;
}

.stat-card .desc {
    font-size: 0.7rem;
    color: var(--text-muted-dark);
    font-weight: 500;
}

/* Middle Layout Container (2 Columns) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Sections Common */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.see-all {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

.see-all:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Left Column Specifics */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.action-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.action-btn i {
    font-size: 1.2rem;
    color: var(--success);
    /* the green/teal icons in image */
    opacity: 0.9;
}

.action-btn:nth-child(1) i {
    color: var(--primary-light);
}

.action-btn:nth-child(4) i {
    color: var(--text-muted);
}

.action-btn:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Market View Table */
.market-view-card {
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
}

.market-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    padding: 0 12px;
}

.market-tab {
    padding: 16px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.market-tab.active {
    color: var(--text-white);
    border-bottom-color: var(--primary-light);
}

.market-list {
    padding: 8px 0;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.market-item:last-child {
    border-bottom: none;
}

.market-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.mi-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mi-logo {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-light);
    width: 44px;
    text-align: center;
}

.mi-info .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.mi-info .meta {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted-dark);
}

.mi-right {
    text-align: right;
}

.mi-right .price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.mi-right .change {
    font-size: 0.75rem;
    font-weight: 700;
}

.change.green {
    color: var(--success);
}

.change.red {
    color: var(--danger);
}

/* Empty States */
.empty-state {
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-state .icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.empty-state .title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-blue {
    background-color: var(--primary-light);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-blue:hover {
    background-color: var(--primary);
}

/* Right Column Specifics */
.right-card {
    padding: 24px;
    margin-bottom: 24px;
}

.rc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.rc-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
    margin-bottom: 24px;
    font-weight: 500;
}

.portfolio-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 24px;
}

.portfolio-empty i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.portfolio-empty .main-t {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.portfolio-empty .sub-t {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted-dark);
}

.index-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 16px;
}

.index-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.idx-left .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.idx-left .desc {
    font-size: 0.7rem;
    color: var(--text-muted-dark);
    font-weight: 500;
}

.idx-right {
    text-align: right;
}

.idx-right .val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.idx-right .chg {
    font-size: 0.75rem;
    font-weight: 600;
}

.tip-card {
    padding: 20px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
}

.tip-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.tip-icon {
    width: 28px;
    height: 28px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
}

.tip-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

.login-container {
    width: 100%;
    max-width: 475px;
    padding: 20px;
}

.login-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 38px 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: none;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-label);
    margin-bottom: 10px;
    /* Space between label and input */
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    color: var(--text-heading);
    padding: 12px 12px;
    border-radius: var(--radius-input);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-btn);
    box-shadow: 0 0 0 2px var(--focus-ring);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-btn);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-input);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s;
}

.btn-submit:hover {
    background-color: var(--primary-btn-hover);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(1px);
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--text-label);
}

.login-footer {
    text-align: center;
    margin-top: 36px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.login-footer a {
    color: var(--primary-btn);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #7983f8;
    text-decoration: underline;
}