/* ── Numeric Font ── */
.font-mono,
td[data-order],
.summary-value,
.stat-pill .val,
.diff-cell,
.bar-val,
.badge,
.field-date,
table.dataTable td {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ── Nav Tabs ── */
.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    border-radius: 8px;
    transition: all .15s;
    text-decoration: none;
}
.nav-tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-tab.active { color: #fff; background: rgba(99,102,241,.5); }

/* ── Stat Pills ── */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px;
}

/* ── Field ── */
.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    margin-bottom: 4px;
}

.field-select,
.field-date {
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
}
.field-select:focus,
.field-date:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.field-date {
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

/* ── Controls Bar ── */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-primary {
    height: 38px;
    padding: 0 20px;
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-primary:hover { background: #4f46e5; }
.btn-primary:disabled { opacity: .6; cursor: wait; }

/* ── Date Presets ── */
.date-presets {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: flex-end;
    height: 38px;
}
.preset-btn {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    letter-spacing: .2px;
}
.preset-btn:hover {
    color: #6366f1;
    border-color: #c7d2fe;
    background: #eef2ff;
}
.preset-btn.active {
    color: #fff;
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 1px 3px rgba(99,102,241,.3);
}

/* ── AirDatepicker Overrides ── */
.air-datepicker {
    --adp-font-family: 'Inter', system-ui, sans-serif;
    --adp-accent-color: #6366f1;
    --adp-color-secondary: #94a3b8;
    --adp-day-name-color: #94a3b8;
    --adp-day-name-color-hover: #6366f1;
    --adp-cell-border-radius: 6px;
    --adp-background-color: #fff;
    --adp-border-color: #e2e8f0;
    --adp-cell-background-color-selected: #6366f1;
    --adp-cell-background-color-selected-hover: #4f46e5;
    --adp-cell-background-color-in-range: rgba(99,102,241,.08);
    --adp-cell-background-color-in-range-hover: rgba(99,102,241,.15);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    border: 1px solid #e2e8f0;
    font-size: 13px;
}
.air-datepicker-nav--title {
    font-weight: 600;
    font-size: 13px;
}
.air-datepicker-cell.-day- {
    font-size: 12px;
    font-weight: 500;
    width: 36px;
    height: 36px;
}
.air-datepicker-cell.-day-.-disabled- {
    color: #cbd5e1 !important;
    text-decoration: line-through;
    opacity: .5;
}
.adp-weekend-disabled {
    color: #cbd5e1 !important;
}
.air-datepicker-cell.-day-.-selected- {
    font-weight: 600;
}
.air-datepicker-cell.-day-.-in-range- {
    border-radius: 0;
}
.air-datepicker-cell.-day-.-range-from- {
    border-radius: 6px 0 0 6px;
}
.air-datepicker-cell.-day-.-range-to- {
    border-radius: 0 6px 6px 0;
}
.air-datepicker-body--day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

/* ── Tom Select Overrides ── */
.ts-wrapper.single .ts-control {
    height: 38px !important;
    padding: 0 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 13px;
    cursor: pointer;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}
.ts-wrapper.single .ts-control > .item {
    font-size: 13px;
    color: #0f172a;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-wrapper.single .ts-control > input {
    font-size: 13px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}
.ts-wrapper.single .ts-control::after {
    border-color: #94a3b8 transparent transparent !important;
    margin-top: -2px !important;
}
.ts-wrapper.single.focus .ts-control,
.ts-wrapper.single.input-active .ts-control {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1) !important;
}
.ts-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 36px rgba(0,0,0,.12) !important;
    margin-top: 4px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    z-index: 100 !important;
}
.ts-dropdown .ts-dropdown-content {
    max-height: 280px;
    padding: 4px;
}
.ts-dropdown [data-selectable] {
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: background .1s;
}
.ts-dropdown .active {
    background: #eef2ff !important;
    color: #0f172a !important;
}
.ts-dropdown .option .highlight {
    background: rgba(99,102,241,.15);
    border-radius: 2px;
}
.ts-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ts-code {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    letter-spacing: .3px;
}
.ts-desc {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-desc-sm {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}
.ts-no-results {
    padding: 12px 16px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}
.ts-wrapper .ts-control > input::placeholder {
    color: #94a3b8 !important;
    font-size: 13px;
}

/* ── Cards ── */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

/* ── Summary Cards ── */
.summary-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 3px;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.summary-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.summary-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* ── Tab Buttons ── */
.tab-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
}
.tab-btn:hover { color: #0f172a; border-color: #cbd5e1; }
.tab-btn.active {
    color: #fff;
    background: #6366f1;
    border-color: #6366f1;
}

/* ── Inner Tabs (sayfa içi sekmeler) ── */
.inner-tab-bar {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    width: fit-content;
}
.inner-tab {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.inner-tab:hover { color: #334155; background: rgba(255,255,255,.5); }
.inner-tab.active {
    color: #fff;
    background: #6366f1;
    box-shadow: 0 1px 4px rgba(99,102,241,.3);
}
.inner-tab i { font-size: 14px; }

/* ── Metric Row (horizontal) ── */
.sd-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.sd-metric-row:last-child { border-bottom: none; }
.sd-metric-row .sd-metric-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}
.sd-metric-row .sd-metric-val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* ── DataTables Reset ── */
table.dataTable { border-collapse: collapse !important; }

table.dataTable thead th {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 7px 8px !important;
    white-space: nowrap;
    background: #f8fafc !important;
}

table.dataTable tbody td {
    font-size: 12px;
    padding: 6px 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

table.dataTable tbody tr { cursor: pointer; transition: background .1s; }
table.dataTable tbody tr:hover { background: rgba(99,102,241,.03) !important; }
table.dataTable tbody tr.odd { background: transparent !important; }
table.dataTable tbody tr.even { background: transparent !important; }

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    opacity: .4;
    font-size: 10px !important;
}
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after { opacity: .8; }

/* Row number column */
table.dataTable tbody td:first-child {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.agent-name {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}

/* ── Bar cell ── */
.bar-cell { position: relative; }
.bar-cell .bar-bg {
    position: absolute;
    left: 0; top: 3px; bottom: 3px;
    background: rgba(99,102,241,.06);
    border-radius: 4px;
    transition: width .3s;
}
.bar-cell .bar-val {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

/* ── Colors ── */
.text-pos { color: #10b981; font-weight: 600; }
.text-neg { color: #ef4444; font-weight: 600; }
.bg-pos { background: #d1fae5; color: #065f46; }
.bg-neg { background: #fee2e2; color: #991b1b; }

.diff-cell {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.diff-cell.pos { color: #10b981; }
.diff-cell.neg { color: #ef4444; }
.diff-pct {
    font-size: 10px;
    font-weight: 500;
    opacity: .75;
}

/* DataTables scrollX fix — prevent wrapper from breaking layout */
.dataTables_scrollHead, .dataTables_scrollBody { overflow: visible !important; }
div.dataTables_scrollHeadInner { width: 100% !important; }
div.dataTables_scrollHeadInner table { width: 100% !important; }

/* ── DataTables wrapper ── */
.dataTables_wrapper { padding: 8px 12px; }

.dataTables_wrapper .dataTables_filter input {
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    outline: none;
    transition: border-color .15s;
    margin-left: 6px;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.dataTables_wrapper .dataTables_length select {
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 6px;
}
.dataTables_wrapper .dataTables_info {
    font-size: 12px;
    color: #94a3b8;
    padding-top: 8px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 12px !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 2px;
    color: #64748b !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #4f46e5 !important;
    color: #fff !important;
}
div.dataTables_wrapper div.dataTables_filter label,
div.dataTables_wrapper div.dataTables_length label {
    font-size: 12px;
    color: #64748b;
}

/* ── Charts ── */
.card canvas { max-height: 240px; }

/* ── Loading spinner ── */
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Page ── */
.page-content { min-height: 60vh; }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 9999px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-green { background: #ecfdf5; color: #059669; }
.badge-red   { background: #fef2f2; color: #dc2626; }
.badge-yellow{ background: #fffbeb; color: #d97706; }
.badge-blue  { background: #eff6ff; color: #2563eb; }
.badge-gray  { background: #f1f5f9; color: #64748b; }

/* ── Admin Action Buttons ── */
.act-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid #e2e8f0; background: white;
    color: #64748b; cursor: pointer; transition: all .15s;
    font-size: 14px;
}
.act-btn:hover { background: #f1f5f9; color: #334155; }
.act-edit:hover { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.act-ban:hover  { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.act-unban:hover{ color: #059669; border-color: #6ee7b7; background: #ecfdf5; }
.act-del:hover  { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }

/* ── Admin Table ── */
#admin-users-table th {
    padding: 10px 12px; font-size: 12px; font-weight: 600;
    color: #64748b; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 2px solid #e2e8f0; background: #f8fafc;
}
#admin-users-table td {
    padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
#admin-users-table tr:hover td { background: #f8fafc; }

/* ── Badge Variants (additional) ── */
.badge-success { background: #ecfdf5; color: #059669; }
.badge-danger  { background: #fef2f2; color: #dc2626; }
.badge-info    { background: #eef2ff; color: #4f46e5; }

/* ════════════════════════════════════════════
   Symbol Detail Panel
   ════════════════════════════════════════════ */

/* Mini stat boxes */
.sd-mini {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sd-mini-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #94a3b8;
}
.sd-mini-val {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* Metric boxes (fundamental) */
.sd-metric {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color .15s;
}
.sd-metric:hover {
    border-color: #c7d2fe;
}
.sd-metric-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #94a3b8;
}
.sd-metric-val {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* Tech analysis gauge */
.sd-tech-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sd-tech-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    min-width: 72px;
}
.sd-tech-gauge {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}
.sd-gauge-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease, background .4s ease;
    min-width: 2%;
}
.sd-tech-signal {
    font-size: 11px;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.sd-signal-buy    { color: #10b981; }
.sd-signal-sell   { color: #ef4444; }
.sd-signal-neutral{ color: #f59e0b; }

/* Index weight bars */
.sd-index-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f8fafc;
}
.sd-index-row:last-child { border-bottom: none; }
.sd-index-main { font-weight: 600; }
.sd-index-name {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    min-width: 56px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.sd-index-bar-bg {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.sd-index-bar-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 3px;
    transition: width .3s;
}
.sd-index-main .sd-index-bar-fill {
    background: #4f46e5;
}
.sd-index-pct {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    min-width: 48px;
    text-align: right;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* Score ring */
.sd-score-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sd-score-ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}
.sd-score-ring span {
    position: relative;
    z-index: 1;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

/* Broker offers table */
#sd-broker-table th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}
#sd-broker-table td {
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}
#sd-broker-table tr:hover td {
    background: #f8fafc;
}

/* Foreign trades table */
#sd-foreign-wrap table th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}
#sd-foreign-wrap table td {
    border-bottom: 1px solid #f1f5f9;
}

/* Detail charts height */
#sd-chart-ratio, #sd-chart-circ {
    max-height: 260px !important;
}

/* ════════════════════════════════════════════
   Virman Tarayıcı
   ════════════════════════════════════════════ */

.badge-purple { background: #f3e8ff; color: #7c3aed; }

/* ── Olay/Kurumsal Aksiyon Badge'leri (En Çok Net Toplanan tablosu) ── */
.event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: default;
    transition: opacity .15s, transform .1s;
    line-height: 1.6;
}
.event-badge.cursor-pointer:hover {
    opacity: .85;
    transform: scale(1.08);
}
.event-badge.eb-bedelli    { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.event-badge.eb-bedelsiz   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.event-badge.eb-tahsisli   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.event-badge.eb-tip        { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.event-badge.eb-diger      { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* ── Event sütun başlıkları ── */
.event-col-head {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    min-width: 30px;
    width: 34px;
    border-radius: 3px 3px 0 0;
}
.event-col-head.eb-bedelli-head  { color: #c2410c; }
.event-col-head.eb-bedelsiz-head { color: #15803d; }
.event-col-head.eb-tip-head      { color: #7e22ce; }
.event-col-head.eb-tahsisli-head { color: #1d4ed8; }

/* ── Event cell yükleniyor spinner ── */
.event-cell-spin {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1.5px solid #cbd5e1;
    border-top-color: #94a3b8;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Küçük spinner (modal içi) ── */
.spinner-sm {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid #cbd5e1;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
}

/* ── KAP içerik alanı ── */
.kap-content table { width: 100% !important; font-size: 12px; border-collapse: collapse; }
.kap-content td, .kap-content th { padding: 3px 6px; border: 1px solid #e2e8f0; }
.kap-content img { max-width: 100%; height: auto; }
.kap-content a   { color: #4f46e5; text-decoration: underline; }

/* Pair rows */
.virman-pair-row {
    transition: background .15s;
}
.virman-pair-row:hover {
    background: rgba(124, 58, 237, .04) !important;
}
#virman-pairs-table th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 12px;
}
#virman-pairs-table td {
    border-bottom: 1px solid #f1f5f9;
}

/* Virman in/out tables */
#virman-in-table th,
#virman-out-table th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}
#virman-in-table td,
#virman-out-table td {
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}
#virman-in-table tr:hover td,
#virman-out-table tr:hover td {
    background: #f8fafc;
}

/* Detail chips in market table */
.virman-detail-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    padding: 1px 6px;
    border-radius: 4px;
    margin: 1px 2px;
    white-space: nowrap;
}
.virman-detail-chip.text-positive {
    background: rgba(16, 185, 129, .08);
}
.virman-detail-chip.text-negative {
    background: rgba(239, 68, 68, .08);
}

/* Violet accent for virman summary */
.border-l-violet-500 { border-left-color: #8b5cf6; }
.border-l-emerald-500 { border-left-color: #10b981; }

/* ════════════════════════════════════════════
   Kurum Portföy Analizi
   ════════════════════════════════════════════ */

.kurum-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.kurum-sector-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kurum-weight-cell {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 70px;
}
.kurum-weight-bar {
    position: absolute;
    left: 0;
    top: -2px;
    bottom: -2px;
    background: rgba(99,102,241,.08);
    border-radius: 3px;
    transition: width .3s;
}
.kurum-weight-cell span {
    position: relative;
    z-index: 1;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
}

/* Takas movers tables */
#takas-movers-up th,
#takas-movers-down th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}
#takas-movers-up td,
#takas-movers-down td {
    border-bottom: 1px solid #f1f5f9;
}
#takas-movers-up tr:hover td,
#takas-movers-down tr:hover td {
    background: #f8fafc;
}

#kurum-movers-up th,
#kurum-movers-down th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}
#kurum-movers-up td,
#kurum-movers-down td {
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

#kurum-chart-trend,
#kurum-chart-sector,
#kurum-chart-top10 {
    max-height: 260px !important;
}

/* ── Radar ── */
.radar-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border-radius: 6px;
    margin-right: 4px;
}
#radar-streak-buy th,
#radar-streak-sell th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}
#radar-streak-buy td,
#radar-streak-sell td {
    border-bottom: 1px solid #f1f5f9;
}
#radar-streak-buy tr:hover td,
#radar-streak-sell tr:hover td {
    background: #f8fafc;
}
.radar-streak-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    font-family: 'IBM Plex Mono', monospace;
}
.radar-streak-badge.streak-buy {
    background: #d1fae5;
    color: #065f46;
}
.radar-streak-badge.streak-sell {
    background: #fee2e2;
    color: #991b1b;
}
.radar-tech-card {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.radar-tech-gauge {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
}
.radar-gauge-fill {
    height: 100%;
    width: 50%;
    border-radius: 4px;
    background: #94a3b8;
    transition: width .6s ease, background .4s ease;
}
.radar-tech-signal {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* ── Radar Agent Modal ── */
#radar-agent-modal .bg-white {
    max-height: 90vh;
    overflow-y: auto;
}
.radar-agent-row:hover {
    background: #f0f9ff !important;
}
#radar-chart-buyers, #radar-chart-sellers {
    cursor: pointer;
}

/* ── Piyasa Radar Tabloları ── */
#radar-mkt-streak-buy th, #radar-mkt-streak-sell th,
#radar-mkt-top-buyers th, #radar-mkt-top-sellers th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
    border-bottom: 2px solid #e2e8f0;
}
#radar-mkt-streak-buy td, #radar-mkt-streak-sell td,
#radar-mkt-top-buyers td, #radar-mkt-top-sellers td {
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
#radar-mkt-streak-buy tr[data-sym]:hover,
#radar-mkt-streak-sell tr[data-sym]:hover,
#radar-mkt-top-buyers tr[data-sym]:hover,
#radar-mkt-top-sellers tr[data-sym]:hover {
    background: #f0f9ff !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .summary-value { font-size: 16px; }
    .card-head { padding: 10px 12px; }
    .sd-metric { padding: 8px 10px; }
    .sd-metric-val { font-size: 13px; }
    .sd-score-ring { width: 56px; height: 56px; }
    .sd-score-ring span { font-size: 13px; }
}

/* ── AI Yorum Butonu ── */
.btn-ai {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}
.btn-ai:hover:not(:disabled)  { opacity: .88; transform: translateY(-1px); }
.btn-ai:disabled               { opacity: .6; cursor: not-allowed; }
.btn-ai .ai-typing-spinner,
.ai-typing-spinner             {
    display: inline-block;
    width: 12px; height: 12px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .65s linear infinite;
    vertical-align: middle;
}

/* ── AI Proz (markdown çıktısı) ── */
.ai-prose h1, .ai-prose h2, .ai-prose h3 {
    font-weight: 700; color: #1e293b; margin-top: 1.25em; margin-bottom: .4em;
}
.ai-prose h1 { font-size: 1.15em; }
.ai-prose h2 { font-size: 1.05em; border-bottom: 1px solid #e2e8f0; padding-bottom: .3em; }
.ai-prose h3 { font-size: .97em; color: #334155; }
.ai-prose p  { margin: .5em 0; line-height: 1.7; color: #334155; font-size: .875rem; }
.ai-prose ul, .ai-prose ol { padding-left: 1.4em; margin: .4em 0; }
.ai-prose li { margin: .25em 0; font-size: .875rem; color: #334155; line-height: 1.6; }
.ai-prose strong { font-weight: 700; color: #1e293b; }
.ai-prose hr { border-color: #e2e8f0; margin: 1em 0; }
.ai-prose code {
    background: #f1f5f9; padding: 1px 5px; border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace; font-size: .82em; color: #7c3aed;
}
