/* ==========================================================================
   FOREMAN TRADER ANALYST - COMPONENTS & DATA VISUALIZATIONS
   Pure Vanilla CSS (Flexbox & CSS Grid) - Ultra-Modern Luxury Edition
   ========================================================================== */

/* Kartlar ve Paneller */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: visible;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color-light);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Grid Düzenleri */
.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-cols-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.col-span-8 { grid-column: span 8; }
.col-span-7 { grid-column: span 7; }
.col-span-6 { grid-column: span 6; }
.col-span-5 { grid-column: span 5; }
.col-span-4 { grid-column: span 4; }
.col-span-12 { grid-column: span 12; }

/* İstatistik & Metrik Kartları */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: visible;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
  background: var(--color-primary);
}

.stat-card.variant-emerald::after { background: var(--color-primary); }
.stat-card.variant-blue::after { background: var(--status-info); }
.stat-card.variant-amber::after { background: var(--status-warning); }
.stat-card.variant-dark::after { background: var(--color-slate-muted); }

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-family: var(--font-mono);
  margin: 0.35rem 0;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Değişim Rozetleri (Badges) */
.badge-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.badge-delta.up {
  background: var(--status-up-bg);
  color: var(--status-up);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-delta.down {
  background: var(--status-down-bg);
  color: var(--status-down);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-delta.neutral {
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
  border: 1px solid var(--border-color);
}

/* Rozetler (Badges & Tags) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-border);
}

.badge-buyback {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-conversion {
  background: #EDE9FE;
  color: #5B21B6;
  border: 1px solid #DDD6FE;
}

.badge-index {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

/* Tablolar (High-Definition FinTech Table) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--bg-primary);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 1rem 1rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-color-light);
  color: var(--text-main);
  font-size: 0.88rem;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.data-table .font-mono { font-family: var(--font-mono); }
.data-table .font-bold { font-weight: 800; }

/* Butonlar (Modern FinTech Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* Filtreleme Paneli (Filter Toolbar) */
.filter-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Oran & İlerleme Çubukları (Progress / Custody Ratio Bars) */
.custody-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.custody-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--status-neutral-bg);
  display: flex;
  overflow: hidden;
  position: relative;
}

.custody-fill-foreign {
  background: #3B82F6;
  height: 100%;
}

.custody-fill-domestic {
  background: #10B981;
  height: 100%;
}

.custody-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color-light);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color-light);
  background: var(--bg-primary);
}

/* Toast Bildirim */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--color-slate-dark);
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Sayfalama (Pagination) */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color-light);
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-surface-hover);
}

.page-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Tablar (Tab Controls) */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 2px solid var(--border-color-light);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1px;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--transition-fast);
  user-select: none;
}

.tab-item:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
}

.tab-item.active {
  color: var(--color-primary-dark);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Modern Segmented Tab Navigation */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface-alt);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: fit-content;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  line-height: 1.2;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.tab-btn.active {
  background: var(--bg-surface) !important;
  color: var(--color-primary-dark) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .tab-btn.active {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: block !important;
}


/* ==========================================================================
   DEĞERLEME ÇARPANLARI & FİNANSAL BÜYÜME BİLEŞENLERİ
   ========================================================================== */

/* Çarpan Kutuları (Valuation Multipliers Grid) */
.multipliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.multiplier-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.multiplier-box:hover {
  border-color: var(--color-primary-border);
}

.multiplier-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.multiplier-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.multiplier-comparison {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Finansal Özet Kartı & Büyüme Göstergeleri */
.financial-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.financial-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color-light);
}

.financial-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-color-light);
  font-size: 0.85rem;
}

.financial-row:last-child {
  border-bottom: none;
}

.financial-row-label {
  font-weight: 600;
  color: var(--text-main);
}

.financial-row-values {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.financial-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.growth-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 110px;
}

.growth-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-surface-alt);
  border-radius: 9999px;
  overflow: hidden;
}

.growth-bar-fill.up {
  background: var(--status-up);
  height: 100%;
  border-radius: 9999px;
}

.growth-bar-fill.down {
  background: var(--status-down);
  height: 100%;
  border-radius: 9999px;
}

.growth-pill {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  min-width: 50px;
  text-align: right;
}

.growth-pill.up {
  color: var(--status-up);
}

.growth-pill.down {
  color: var(--status-down);
}

/* ==========================================================================
   FOREMAN LUXURY INSTITUTIONAL FOOTER STYLES
   ========================================================================== */
.foreman-luxury-footer {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
                #070C18 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
}
.footer-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10B981 0%, #38BDF8 35%, #818CF8 70%, #10B981 100%);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}
.footer-quick-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.footer-quick-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.footer-quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.75fr 1.1fr 1.1fr 1.35fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-nav-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-nav-link:hover {
    color: #38BDF8;
    transform: translateX(5px);
}
.footer-nav-link svg {
    color: #64748B;
    transition: color 0.22s ease;
}
.footer-nav-link:hover svg {
    color: #38BDF8;
}
.buluttekno-sleek-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.76rem;
    color: #94A3B8;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.buluttekno-sleek-credit:hover {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
    color: #F1F5F9;
    transform: translateY(-1px);
}
.buluttekno-brand-text {
    font-weight: 700;
    color: #38BDF8;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}
.buluttekno-sleek-credit:hover .buluttekno-brand-text {
    color: #7DD3FC;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}
.buluttekno-arrow {
    color: #64748B;
    transition: transform 0.2s ease, color 0.2s ease;
}
.buluttekno-sleek-credit:hover .buluttekno-arrow {
    color: #38BDF8;
    transform: translate(2px, -2px);
}
@media (max-width: 1024px) {
    .footer-quick-banner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 640px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .footer-bottom-bar-wrap {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.25rem !important;
    }
}

/* ==========================================================================
   Hero Cockpit & Master Terminal Component Styles
   ========================================================================== */
.hero-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.hero-cta-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
}
.hero-cockpit-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
}
.hero-floating-card-left {
    position: absolute;
    left: -22px;
    bottom: -20px;
}
.hero-floating-card-right {
    position: absolute;
    right: -18px;
    top: -20px;
}
.hero-live-bar {
    margin-top: 2.75rem;
    background: rgba(11, 19, 43, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 0.95rem 1.6rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

/* ==========================================================================
   ULTRA-LUXURY FINTECH DIALOG MODAL (REPLACES BROWSER ALERT)
   ========================================================================== */

.fta-dialog-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fta-dialog-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
}

.fta-dialog-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-family, 'Inter', sans-serif);
}

.fta-dialog-backdrop.active .fta-dialog-box {
    transform: scale(1) translateY(0);
}

.fta-dialog-top-stripe {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #F59E0B 0%, #10B981 100%);
}

.fta-dialog-top-stripe.warning {
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
}

.fta-dialog-top-stripe.error {
    background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
}

.fta-dialog-top-stripe.info {
    background: linear-gradient(90deg, #3B82F6 0%, #059669 100%);
}

.fta-dialog-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
}

.fta-dialog-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.fta-dialog-content-wrapper {
    padding: 1.4rem 1.4rem 1.25rem 1.4rem;
}

.fta-dialog-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.fta-dialog-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.fta-dialog-icon-bubble.warning {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.fta-dialog-icon-bubble.error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.fta-dialog-icon-bubble.info {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

.fta-dialog-icon-bubble.success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.fta-dialog-title-group {
    flex: 1;
    min-width: 0;
}

.fta-dialog-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #F1F5F9;
    color: #475569;
    margin-bottom: 0.25rem;
}

.fta-dialog-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.fta-dialog-body {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.fta-dialog-subtext {
    font-size: 0.76rem;
    color: #94A3B8;
    line-height: 1.4;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px dashed #E2E8F0;
}

.fta-dialog-footer {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.fta-dialog-btn-primary {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    font-size: 0.86rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.35);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.fta-dialog-btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

/* Dark Theme Support */
[data-theme="dark"] .fta-dialog-box {
    background: linear-gradient(145deg, #111827 0%, #0F172A 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .fta-dialog-title {
    color: #F8FAFC;
}

[data-theme="dark"] .fta-dialog-body {
    color: #CBD5E1;
}

[data-theme="dark"] .fta-dialog-badge {
    background: #1F2937;
    color: #94A3B8;
}

[data-theme="dark"] .fta-dialog-subtext {
    border-top-color: #1F2937;
    color: #64748B;
}

[data-theme="dark"] .fta-dialog-icon-bubble.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .fta-dialog-icon-bubble.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .fta-dialog-icon-bubble.info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .fta-dialog-icon-bubble.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   ULTRA-MODERN INSTITUTIONAL FUND COMPARISON MATRIX (FINTECH LUXURY)
   ========================================================================== */

.fund-comp-workspace {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.25s ease-out;
}

/* Top Toolbar */
.fund-comp-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fund-comp-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fund-comp-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

[data-theme="dark"] .fund-comp-badge-pill {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
}

.fund-comp-quick-presets {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.fund-preset-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.fund-preset-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Add Fund Autocomplete in Comparison */
.fund-comp-add-wrapper {
    position: relative;
    width: 260px;
}

.fund-comp-add-input {
    width: 100%;
    height: 34px;
    padding: 0 1rem 0 2rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.fund-comp-add-input:focus {
    background: var(--bg-surface);
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.fund-comp-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 320px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
}

.fund-comp-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color-light);
    transition: background 0.12s ease;
}

.fund-comp-dropdown-item:hover {
    background: var(--bg-surface-hover);
}

/* Interactive Visual Comparison Chart Widget */
.fund-comp-chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.fund-comp-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.fund-chart-period-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.fund-chart-period-btn:hover {
    color: var(--text-main);
    background: var(--bg-surface-hover);
}

.fund-chart-period-btn.active {
    background: var(--bg-surface) !important;
    color: var(--color-primary-dark) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .fund-chart-period-btn.active {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
}

/* Visual Bar Rows */
.fund-bar-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fund-bar-item {
    display: grid;
    grid-template-columns: 140px 1fr 90px;
    align-items: center;
    gap: 0.85rem;
}

.fund-bar-track {
    height: 10px;
    background: var(--bg-surface-alt);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color-light);
}

.fund-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Matrix Table Cards */
.fund-comp-matrix-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.fund-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.fund-comp-table th.metric-col-header,
.fund-comp-table td.metric-col-title {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    background: var(--bg-surface-alt);
    border-right: 1px solid var(--border-color);
    position: sticky;
    left: 0;
    z-index: 5;
}

.fund-comp-table th.fund-col-header {
    background: var(--bg-surface);
    padding: 0.85rem 0.75rem;
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color-light);
    vertical-align: top;
    text-align: left;
    min-width: 165px;
    transition: background 0.15s ease;
}

.fund-comp-table th.fund-col-header:hover {
    background: var(--bg-surface-hover);
}

/* Fund Header Card Inner */
.fund-header-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fund-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.fund-header-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 0.92rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.fund-header-name-text {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 30px;
}

.fund-header-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3rem;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border-color-light);
}

.fund-header-price-val {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--text-main);
}

.btn-remove-fund-card {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.btn-remove-fund-card:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* Section Separator Rows */
.fund-comp-section-row td {
    background: var(--bg-surface-alt);
    padding: 0.55rem 0.85rem;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.fund-comp-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Normal Metric Data Rows */
.fund-comp-data-row td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-color-light);
    border-right: 1px solid var(--border-color-light);
    vertical-align: middle;
}

.fund-comp-data-row:hover td {
    background: var(--bg-surface-hover);
}

.fund-comp-data-row td.metric-col-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-left: 0.85rem;
}

/* Winner / Leader Cell Glow */
.fund-val-cell.is-leader {
    background: rgba(16, 185, 129, 0.07) !important;
    position: relative;
}

.leader-trophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.6rem;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

[data-theme="dark"] .leader-trophy-badge {
    color: #34D399;
    background: rgba(16, 185, 129, 0.25);
}

/* Empty State / Preset Pickers */
.fund-comp-empty-card {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.fund-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.fund-preset-card {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.fund-preset-card:hover {
    border-color: #3B82F6;
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Fintables Segmented Sub-Tab Buttons & Category Filter Buttons
   ========================================================================== */
.viop-sub-tab-btn,
.index-cat-btn,
.radar-sub-tab-btn,
.fund-main-nav-btn,
.trading-nav-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
    line-height: 1.2;
    outline: none;
    user-select: none;
    white-space: nowrap !important;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.viop-sub-tab-btn:hover,
.index-cat-btn:hover,
.radar-sub-tab-btn:hover,
.fund-main-nav-btn:hover,
.trading-nav-tab-btn:hover {
    color: var(--text-main);
    background: var(--bg-surface-hover);
}

.viop-sub-tab-btn.active,
.index-cat-btn.active,
.radar-sub-tab-btn.active,
.fund-main-nav-btn.active,
.trading-nav-tab-btn.active {
    background: var(--bg-surface) !important;
    color: var(--color-primary-dark) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .viop-sub-tab-btn.active,
[data-theme="dark"] .index-cat-btn.active,
[data-theme="dark"] .radar-sub-tab-btn.active,
[data-theme="dark"] .fund-main-nav-btn.active,
[data-theme="dark"] .trading-nav-tab-btn.active {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   KAP INTELLIGENCE & NOTIFICATION CENTER LUXURY STYLES
   ========================================================================== */
.kap-hero-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(139, 92, 246, 0.04) 50%, var(--bg-surface) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.kap-pulse-radar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

.kap-pulse-radar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10B981;
    animation: kapPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.kap-pulse-radar::after {
    content: '';
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
}

@keyframes kapPing {
    75%, 100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.kap-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.kap-stat-chip:hover {
    border-color: var(--color-primary-border);
    transform: translateY(-1px);
}

.kap-notification-row {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.kap-notification-row:hover {
    background: var(--bg-surface-hover) !important;
    border-left-color: var(--color-primary);
}

.kap-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    user-select: none;
}

.kap-quick-pill:hover {
    color: var(--text-main);
    border-color: var(--border-color-dark);
    background: var(--bg-surface-hover);
}

.kap-quick-pill.active {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.kap-ratio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
}





