/* ==========================================================================
   FOREMAN TRADER ANALYST - MASTER RESPONSIVE SYSTEM
   Strictly Vanilla CSS Media Queries for Full Mobile & Tablet Responsiveness
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GENEL GRID VE YAPI SINIFLARI (DESKTOP BASELINE)
   -------------------------------------------------------------------------- */
.hero-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-main-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.12;
}
.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-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
}
.hero-price-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-cockpit-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}
.hero-cta-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-cta-main,
.hero-cta-sub {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.hero-floating-cards-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.hero-floating-card-left {
  position: absolute;
  left: -22px;
  bottom: -22px;
  z-index: 10;
  pointer-events: auto;
}
.hero-floating-card-right {
  position: absolute;
  right: -15px;
  top: -24px;
  z-index: 10;
  pointer-events: auto;
}
.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;
}
.hero-live-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.platform-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.screener-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.index-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.movers-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dividends-bedelsiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  min-height: 90px;
}

/* --------------------------------------------------------------------------
   2. LARGE TABLET & LAPTOP (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-span-8, .col-span-7, .col-span-6, .col-span-5, .col-span-4 {
    grid-column: span 12 !important;
  }
  .brand-subtitle {
    display: none;
  }
  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
  }
  .hero-main-grid {
    gap: 2rem !important;
  }
  .hero-main-title {
    font-size: 2.5rem;
  }
  .hero-live-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }
  .screener-tab-pane, .cal-tab-pane {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --------------------------------------------------------------------------
   3. SMALL TABLET & PHABLET (max-width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .navbar-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 0.35rem 0 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 0.35rem;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .global-search-container {
    width: 170px;
  }
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  .platform-metrics-ribbon {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  .screener-presets-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dividends-bedelsiz-grid {
    grid-template-columns: 1fr !important;
  }
  .index-flow-grid {
    grid-template-columns: 1fr !important;
  }
  .radar-mode-switcher-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .radar-mode-switcher-wrap::-webkit-scrollbar {
    display: none;
  }
  .radar-mode-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE & TABLET PORTRAIT (max-width: 860px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-section-wrap {
    padding: 1.75rem 1rem 2.25rem 1rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .hero-main-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-main-grid > div,
  .hero-cockpit-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-main-title {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }
  .hero-desc-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-search-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-search-form > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  #heroSearchInput {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.88rem !important;
  }
  .hero-search-btn {
    padding: 0 1.25rem !important;
    font-size: 0.88rem !important;
    flex-shrink: 0 !important;
  }
  .hero-chips-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-chips-scroll {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.4rem !important;
    padding-bottom: 4px !important;
    box-sizing: border-box !important;
  }
  .hero-chips-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .hero-stock-chip {
    flex-shrink: 0 !important;
  }
  .hero-cta-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-cta-main,
  .hero-cta-sub {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
  }
  .hero-trust-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 1rem !important;
    margin-top: 0.5rem !important;
  }
  .hero-trust-badge-item {
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hero-cockpit-window {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }
  .hero-cockpit-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0.65rem 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-cockpit-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .hero-mac-dots {
    display: flex !important;
    gap: 0.35rem !important;
  }
  .hero-mac-dots span {
    width: 9px !important;
    height: 9px !important;
  }
  .hero-cockpit-badge {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.45rem !important;
  }
  .hero-cockpit-body {
    padding: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-price-band {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }
  .hero-title-name {
    max-width: 140px !important;
    font-size: 0.8rem !important;
  }
  .hero-price-band-rate {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    padding-top: 0.45rem !important;
  }
  #heroLivePrice {
    font-size: 1.4rem !important;
    padding: 0 !important;
  }
  #heroLiveChange {
    font-size: 0.74rem !important;
    padding: 0.15rem 0.45rem !important;
  }
  .hero-cockpit-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-chart-card,
  .hero-depth-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem !important;
  }
  .hero-floating-cards-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    margin-top: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: static !important;
  }
  .hero-floating-card-left,
  .hero-floating-card-right {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    animation: none !important;
    transform: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 0.85rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
    z-index: 1 !important;
  }
  .hero-live-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0.85rem !important;
    margin-top: 1.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-live-item {
    border-right: none !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* --------------------------------------------------------------------------
   5. MOBILE SCREENS (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section-wrap {
    padding: 1.75rem 0.85rem 2.25rem 0.85rem !important;
  }
  .dashboard-main-content-wrap {
    padding: 1.25rem 0.85rem !important;
    gap: 2rem !important;
  }
  .hero-main-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }
  .hero-chips-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }
  .hero-chips-scroll {
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    display: flex !important;
    gap: 0.4rem !important;
    padding-bottom: 4px !important;
  }
  .hero-chips-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .hero-stock-chip {
    flex-shrink: 0 !important;
    font-size: 0.78rem !important;
    padding: 0.22rem 0.55rem !important;
  }
  .hero-cta-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }
  .hero-cta-main,
  .hero-cta-sub {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.88rem !important;
  }
  .hero-trust-badges {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem 0.75rem !important;
    padding-top: 1rem !important;
    margin-top: 0.5rem !important;
  }
  .hero-cockpit-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .movers-split-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-live-item {
    border-right: none !important;
  }
  .radar-control-toolbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  .radar-filter-group-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .radar-tf-group, .radar-idx-group {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
  }
  .radar-tf-group::-webkit-scrollbar, .radar-idx-group::-webkit-scrollbar {
    display: none;
  }
  .radar-tf-btn, .radar-idx-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .stock-demo-switcher-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex-wrap: nowrap !important;
  }
  .stock-demo-switcher-wrap::-webkit-scrollbar {
    display: none;
  }
  .stock-demo-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .screener-tab-btn-wrap, .cal-tab-btn-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    flex-wrap: nowrap !important;
  }
  .screener-tab-btn-wrap::-webkit-scrollbar, .cal-tab-btn-wrap::-webkit-scrollbar {
    display: none;
  }
  .screener-tab-btn, .cal-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   6. SMALL MOBILE & COMPACT PHONES (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .content-container {
    padding: 1rem 0.85rem;
  }
  .top-navbar {
    padding: 0.65rem 0.85rem;
  }
  .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .card {
    padding: 1rem;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-title {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  .hero-desc-text {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-search-form {
    padding: 0.35rem !important;
  }
  .hero-search-btn {
    padding: 0 1.15rem !important;
    font-size: 0.88rem !important;
  }
  .hero-cockpit-body {
    padding: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-price-band {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-title-name {
    max-width: 130px !important;
    font-size: 0.78rem !important;
  }
  .hero-price-band-sub {
    font-size: 0.66rem !important;
    gap: 0.45rem !important;
    flex-wrap: wrap !important;
  }
  .hero-price-band-rate {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 0.4rem !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
  }
  #heroLivePrice {
    font-size: 1.35rem !important;
    padding: 0 !important;
  }
  #heroLiveChange {
    font-size: 0.72rem !important;
    padding: 0.15rem 0.45rem !important;
  }
  .hero-live-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0.85rem !important;
    gap: 0.85rem !important;
  }
  .platform-metrics-ribbon {
    grid-template-columns: 1fr !important;
    padding: 0.85rem;
  }
  .platform-metrics-ribbon > div {
    border-left: none !important;
    border-top: 1px solid var(--border-color-light);
    padding-top: 0.75rem;
  }
  .platform-metrics-ribbon > div:first-child {
    border-top: none !important;
    padding-top: 0;
  }
  .screener-presets-grid {
    grid-template-columns: 1fr !important;
  }
  .screener-tab-pane, .cal-tab-pane {
    grid-template-columns: 1fr !important;
  }
  .watchlist-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .nav-clock-badge {
    display: none !important;
  }
  .global-search-container {
    flex: 1;
    width: auto;
    max-width: none;
  }
  .info-guide-content {
    max-width: calc(100vw - 32px) !important;
  }
  .dividend-item-card, .bonus-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
  }
  .dividend-item-card > div, .bonus-item-card > div {
    width: 100%;
  }
  .kap-showcase-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    padding: 0.85rem !important;
  }
  .kap-showcase-main {
    width: 100% !important;
  }
  .kap-showcase-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }
  .kap-showcase-badge {
    max-width: 130px !important;
  }
  .kap-showcase-title {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.35 !important;
    font-size: 0.82rem !important;
  }
  .kap-showcase-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.45rem !important;
  }
}

/* --------------------------------------------------------------------------
   7. ULTRA-COMPACT SMARTPHONES (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-section-wrap {
    padding: 1.5rem 0.75rem 2rem 0.75rem !important;
  }
  .dashboard-main-content-wrap {
    padding: 1.25rem 0.75rem !important;
    gap: 1.75rem !important;
  }
  .hero-main-title {
    font-size: 1.55rem !important;
    line-height: 1.22 !important;
  }
  .hero-live-badge-top {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.65rem !important;
  }
  .hero-cta-sub {
    font-size: 0.84rem !important;
    padding: 0.7rem 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-trust-badges {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }
  .hero-trust-badge-item {
    font-size: 0.72rem !important;
  }
  .hero-floating-cards-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .hero-floating-card-left,
  .hero-floating-card-right {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-live-bar {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
  .btn-icon-theme {
    width: 34px;
    height: 34px;
  }
  .sector-heatmap-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }
  .sector-heatmap-chip {
    padding: 0.45rem 0.55rem !important;
  }
  .radar-stock-row {
    padding: 0.65rem 0.75rem !important;
  }
}

/* --------------------------------------------------------------------------
   Mobil Navbar Dropdown Menü (Doğrudan Tıklanabilir - Karartmasız Kristal Netlik)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .top-navbar {
    z-index: 999999 !important;
  }

  .nav-dropdown-menu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    transform: translateY(-8px) scale(0.98) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s !important;
    z-index: 1000000 !important;
    max-height: calc(100vh - 130px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    padding: 0.5rem !important;
    border-radius: var(--radius-lg) !important;
  }

  [data-theme="dark"] .nav-dropdown-menu {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
  }

  .nav-dropdown-menu .nav-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 0.75rem 0.9rem !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1000001 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2) !important;
  }

  [data-theme="dark"] .nav-dropdown-menu .nav-dropdown-item {
    color: #f8fafc !important;
  }

  .nav-dropdown-menu .nav-dropdown-item:hover,
  .nav-dropdown-menu .nav-dropdown-item:active,
  .nav-dropdown-menu .nav-dropdown-item.active {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
  }

  [data-theme="dark"] .nav-dropdown-menu .nav-dropdown-item:hover,
  [data-theme="dark"] .nav-dropdown-menu .nav-dropdown-item:active,
  [data-theme="dark"] .nav-dropdown-menu .nav-dropdown-item.active {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
  }

  .nav-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg) !important;
  }

  .nav-dropdown.is-open > .nav-link {
    background: var(--color-primary-subtle) !important;
    color: var(--color-primary-dark) !important;
    border-color: var(--color-primary) !important;
  }
}

/* ==========================================================================
   FUNDS RADAR & COMPARISON MATRIX MOBILE & TABLET SYSTEM
   ========================================================================== */
@media (max-width: 991px) {
  .fund-top-header-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .fund-main-tabs {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    padding: 0.3rem !important;
  }
  .fund-main-tabs::-webkit-scrollbar {
    display: none;
  }

  .fund-main-nav-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .fund-sync-info-bar {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .fund-controls-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .fund-subtabs-group {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    padding-bottom: 3px !important;
  }
  .fund-subtabs-group::-webkit-scrollbar {
    display: none;
  }

  .fund-metric-subtab-btn,
  .fund-filter-pill-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .fund-search-filter-group {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .fund-search-input-wrap {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .fund-filter-select-founder,
  .fund-filter-select-umbrella {
    max-width: none !important;
    width: 100% !important;
  }

  .fund-export-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Comparison Page Responsive (Tablet & Below) */
  .fund-comp-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
  }

  .fund-comp-title-group {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .fund-comp-quick-presets {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding-bottom: 2px !important;
  }
  .fund-comp-quick-presets::-webkit-scrollbar {
    display: none;
  }

  .fund-preset-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .fund-comp-add-wrapper {
    width: 100% !important;
  }

  .fund-comp-add-input {
    width: 100% !important;
  }

  .fund-comp-dropdown-menu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .fund-comp-chart-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
  }
}

@media (max-width: 576px) {
  .fund-top-header-card,
  .fund-content-card {
    padding: 0.65rem 0.55rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .fund-page-title-box h1 {
    font-size: 1.05rem !important;
  }

  .fund-main-nav-btn {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.6rem !important;
  }

  .fund-sync-info-bar {
    font-size: 0.7rem !important;
    gap: 0.35rem !important;
  }

  .fund-table-container {
    border-radius: var(--radius-sm) !important;
  }

  .fund-table th,
  .fund-table td {
    padding: 0.4rem 0.3rem !important;
    font-size: 0.73rem !important;
  }

  .fund-name-mobile-truncate {
    max-width: 95px !important;
  }

  .fund-bar-item {
    grid-template-columns: 80px 1fr 60px !important;
    gap: 0.45rem !important;
  }

  .fund-bar-item strong {
    font-size: 0.75rem !important;
  }

  .fund-comp-table th.metric-col-header,
  .fund-comp-table td.metric-col-title {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    font-size: 0.68rem !important;
    padding: 0.45rem 0.35rem !important;
  }

  .fund-comp-table th.fund-col-header {
    min-width: 120px !important;
    padding: 0.5rem 0.4rem !important;
  }

  .fund-header-price-val {
    font-size: 0.82rem !important;
  }

  .fund-preset-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
}

