
/* ===========================
   DEMO BANNER
=========================== */

.demo-banner {
  position: sticky;
  top: var(--header-h, 128px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 1.5rem;
  background: linear-gradient(90deg, #92400e, #b45309);
  color: #fef3c7;
  font-size: .82rem;
  flex-wrap: wrap;
}

.demo-banner a {
  color: #fde68a;
  font-weight: 600;
  text-decoration: underline;
}

.demo-banner a:hover { color: #fff; }

.demo-banner__back {
  white-space: nowrap;
  border: 1px solid rgba(253,230,138,.4);
  border-radius: 6px;
  padding: .2rem .65rem;
  text-decoration: none !important;
  font-size: .78rem;
}

.demo-banner__back:hover {
  background: rgba(253,230,138,.15);
}

:root {
  --bg-dark: #2a2f38; /* světlejší než původní #1b1f26 */
  --accent-blue: #00d9ff;
  --text-light: #e6f7ff; /* mírně světlejší text */
  --bg-light: #e5e9ec; /* tmavší než původní #f7f9fa */
  --text-dark: #2a2f38; /* ladící tmavý text */
  --elev: 0 10px 24px rgba(0,0,0,.25);
  --radius: 18px;
  --header-h: 128px;
  --navbar-h: calc(60px + 2rem);
  --accent: var(--accent-blue);
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --text: var(--text-light);
  --accent: var(--accent-blue);
  --card: #222831;
}


body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
  background-color: rgba(42, 47, 56, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  transition: background-color 0.3s;
}


.navbar a.logo-link {
  display: flex;
  align-items: center;
}

.navbar a.logo-link img {
  display: block;
  height: 60px;
  transition: transform 0.3s;
}

.navbar a.logo-link:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-shrink: 0;      /* drží přirozenou šířku – JS měří stabilní hodnotu */
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
}


/* Hero Section */
.hero {
  padding-top: 20px;
  text-align: center;
  padding-bottom: 100px;
}

.hero h1 {
  color: var(--accent);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero button {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  background-color: var(--accent);
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero button:hover {
  background-color: #00aacc;
}

/*
.section {
  padding: 60px 20px;
  text-align: center;
}
*/
.section {
  padding: 20px 20px 60px;
  text-align: center;
}


.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.feature {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 10px;
  width: min(360px, 100%);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

footer {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* Responsive – layout (padding, logo, touch targets).
   Hamburger/collapse je řízen třídou .nav-collapsed (přidává JS). */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .navbar a.logo-link img {
    height: 44px;
  }

  .profile-icon {
    min-width: 44px;
    min-height: 44px;
    margin: 0;
  }

  .navbar-actions {
    gap: 0.25rem;
    margin: 0;
    flex-shrink: 0;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }
}


html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper > main, 
.page-wrapper > .hero, 
.page-wrapper > .section {
  flex: 1;
}

#footer {
  margin-top: auto;
}

.user-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding: 0.5rem;
  padding-right: 0rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.input-with-icon i {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent);
  cursor: pointer;
}

#passwordStrength {
  margin-top: 0.5rem;
  height: 8px;
  background-color: #ddd;
  border-radius: 4px;
  overflow: hidden;
}

#strengthBar {
  height: 100%;
  width: 0%;
  background-color: transparent;
  transition: width 0.3s;
}

#strengthText, #matchIndicator {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.btn-submit {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  background-color: var(--accent);
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.btn-submit:hover {
  background-color: #00aacc;
}

.btn-back {
  display: inline-block;
  padding: 0.65rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-back:hover {
  background-color: rgba(0, 217, 255, 0.1);
}

.features-list {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 15rem;
  line-height: 1.6;
  list-style: none;
}

.features-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Responzivní úprava pro mobily */
@media (max-width: 600px) {
  .features-list {
    padding-left: 1rem;
  }
}

.auth-button {
  background-color: var(--accent);
  color: #000;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.3s;
  margin-right: 1rem;
}

.auth-button:hover {
  background-color: #00aacc;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}



#passwordCriteria {
  margin-top: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

#passwordCriteria ul {
  list-style-type: none;
  padding-left: 1rem;
}

#passwordCriteria li {
  margin-bottom: 0.3rem;
}


.profile-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.profile-icon:hover {
  color: white;
  transform: scale(1.1);
}

.profile-menu {
  display: none;
  position: absolute;
  top: 100%;     /* těsně pod ikonu */
  right: 0;      /* pravý okraj zarovnán s pravým okrajem ikony */
  left: auto;    /* zamezí přetékání doleva */
  margin-top: 8px;
  background-color: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 0.5rem 0;
  width: max-content;
  z-index: 1100; /* nad ostatními prvky navbaru */
}

.profile-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.profile-menu a:hover {
  background-color: rgba(0, 217, 255, 0.1);
}

.profile-menu span {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  cursor: default;
  transition: background-color 0.2s;
}


.subscription-table {
  width: 100%;
  max-width: 500px;
  margin: 1rem auto;
  border-collapse: collapse;
  background-color: var(--card);
  color: var(--text);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.subscription-table th,
.subscription-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.subscription-table th {
  width: 40%;
  background-color: rgba(0, 217, 255, 0.05);
  font-weight: 600;
}

.subscription-table tr:last-child td {
  border-bottom: none;
}


.badge {
  display: inline-block;
  padding: 0.3em 0.75em;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.badge-active {
  background-color: #2ecc71; /* zelená */
  color: #fff;
}

.badge-paused {
  background-color: #f39c12; /* oranžová */
  color: #fff;
}

.badge-inactive {
  background-color: #e74c3c; /* červená */
  color: #fff;
}


.subscription-warning {
  margin-bottom: 1.5rem;
  background: rgba(0, 217, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  color: var(--text);
}

.subscription-button {
      width: 100%;
      padding: 0.6rem 0;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
      font-weight: 700;
      transition: background-color 0.3s, color 0.3s;
    }

.subscription-button.select {
  background-color: var(--accent);
  color: black;
}

.subscription-button.select:hover {
  background-color: #00aacc;
}

.subscription-button.cancel {
  background-color: #444;
  color: white;
}

.subscription-button.cancel:hover {
  background-color: #666;
}

.feature-list li i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.subscription-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Loader styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.spinner {
  border: 8px solid #f3f3f3; /* Light gray */
  border-top: 8px solid var(--accent); /* Blue */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

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

.info-box {
  background-color: var(--card);
  border-left: 5px solid var(--accent);
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 600px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.1);
}

.info-box h3 {
  margin-top: 0;
  color: var(--accent);
}

.info-box p {
  font-size: 1rem;
  line-height: 1.6;
}

.info-box code {
  background-color: rgba(0, 217, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.info-box a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s;
}

.info-box a:hover {
  color: white;
  text-decoration: none;
}

.risk-slider-wrapper {
  max-width: 700px;
  margin: 2rem auto 1rem;
  text-align: center;
  background: var(--card);
  border-radius: 16px;
  padding: 1.75rem 2.5rem 1.5rem;
  border: 1px solid rgba(0, 217, 255, 0.12);
}

.risk-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0 2px;
}

.risk-slider-labels span {
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.risk-slider-labels span.active-label {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.risk-slider {
  width: 100%;
  appearance: none;
  height: 10px;
  background: linear-gradient(to right, #007acc, #00d9ff);
  border-radius: 6px;
  outline: none;
  margin-top: 0.75rem;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
  cursor: pointer;
}

.risk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
  border: 3px solid #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.risk-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.9);
}

.risk-slider::-moz-range-thumb {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
  border: 3px solid #fff;
  transition: transform 0.2s ease;
}

.risk-output {
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}

.bar {
  position: relative;
  background: #444;
  border-radius: 8px;
  height: 16px;
  margin: 4px 0 12px 0;
  overflow: hidden;
}

.bar-inner {
  height: 100%;
  transition: width 0.3s;
  border-radius: 8px 0 0 8px;
}

.bar-label {
  position: absolute;
  top: 0;
  left: 8px;
  height: 100%;
  line-height: 16px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.bar.short .bar-label {
  color: #000;
  left: 100%;
  margin-left: 6px;
}

.undervalued { background: #4caf50; }
.overvalued { background: #f44336; }
.neutral     { background: #ff9800; }

.tooltip {
  border-bottom: 1px dotted white;
  cursor: help;
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  top: 24px;
  left: 0;
  font-size: 0.8rem;
  z-index: 10;
  max-width: 250px;
}

/* Obal celého bloku s grafem */
.finance-chart-wrapper {
  max-width: 1060px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  color: var(--text);    /* 🔥 barva textu */
  background-color: var(--card); 
  border-radius: 12px;
  text-align: center;
}

.feature.enhanced {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.05);
}

.valuation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .valuation-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.metric-card {
  background: var(--bg-light);
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: var(--text-dark);
}

[data-theme="dark"] .metric-card {
  background: #2a2f3a;
  color: var(--text-light);
}

.extra-metrics {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Férové ceny – karet grid ─────────────────────────── */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) { .fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .fp-grid { grid-template-columns: 1fr; } }

.fp-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color .25s, box-shadow .25s;
}
.fp-card--up   { border-color: rgba(0,230,118,.45);  box-shadow: 0 0 18px rgba(0,230,118,.07); }
.fp-card--down { border-color: rgba(239,68,68,.4);   box-shadow: 0 0 18px rgba(239,68,68,.07); }

.fp-card__label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
/* .hint span uvnitř fp-card__label musí být inline-flex, jinak baseline alignment posune odznak dolů */
.fp-card__label .hint {
  display: inline-flex;
  align-items: center;
}
.fp-hint-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  font-size: .65rem;
  font-weight: 700;
  font-family: inherit;
  cursor: help;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.fp-hint-badge:hover {
  background: rgba(0,217,255,.2);
  color: var(--accent);
}

.fp-card__price {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-top: .15rem;
}
.fp-card__cur {
  font-size: .8rem;
  font-weight: 400;
  color: rgba(255,255,255,.4);
}

.fp-card__diff {
  font-size: .82rem;
  font-weight: 600;
  display: block;
}


.quick-analysis-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    text-align: left;
    min-width: 480px;
}

.quick-analysis-table th,
.quick-analysis-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-analysis-table th {
    background-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
}

.quick-analysis-table tr:hover {
    background-color: rgba(0, 217, 255, 0.05);
}


.sentiment-section {
    text-align: center;
    margin-top: 0rem;
}

.sentiment-value {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sentiment-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 80%;
    margin: 0 auto;
}

.sentiment-label {
    font-size: 0.9rem;
}

.sentiment-label.negative {
    color: red;
}

.sentiment-label.positive {
    color: green;
}

.sentiment-bar-container {
    flex-grow: 1;
    background: linear-gradient(to right, red, rgb(255, 255, 255), green);
    height: 20px;
    border-radius: 10px;
    position: relative;
}

.sentiment-bar {
    height: 100%;
    width: 4%;
    background-color: #00d9ff;
    border: 2px solid white;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.5s ease;
}

.sentiment-rating {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.sentiment-rating.strong-positive {
    color: green;
}

.sentiment-rating.mild-positive {
    color: #80e27e;
}

.sentiment-rating.neutralando {
    color: #b0bec5;
}

.sentiment-rating.mild-negative {
    color: #ff8a65;
}

.sentiment-rating.strong-negative {
    color: red;
}


.stock-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
  color: var(--text);
}

.stock-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.stock-list li:last-child {
  margin-bottom: 1rem;
}

.stock-list li i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.15rem;
}

/* === StockSelector DataTable === */

/* Wrapper pro odsazení tabulky */
.table-wrapper {
  margin: 0 2vw;
  overflow-x: auto;
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.1);
}

/* Základní tabulka */
table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.dataTable thead {
  background-color: rgba(0, 217, 255, 0.05);
}

table.dataTable th,
table.dataTable td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

/* Zvýraznění aktivního sloupce + vlastní šipky */
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  color: var(--accent);
  position: relative;
}


table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  font-family: FontAwesome;
  position: absolute;
  right: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  opacity: 0.8;
}

table.dataTable thead th.sorting:after {
  content: "\f0dc"; /* fa-sort */
}

table.dataTable thead th.sorting_asc:after {
  content: "\f0de"; /* fa-sort-up */
}

table.dataTable thead th.sorting_desc:after {
  content: "\f0dd"; /* fa-sort-down */
}

/* Hover řádek */
table.dataTable tbody tr:hover {
  background-color: rgba(0, 217, 255, 0.03);
  transition: background-color 0.2s ease-in-out;
}

/* === Ovládací prvky (hledání, stránkování, atd.) === */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin: 1rem 0;
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dataTables_wrapper select,
.dataTables_wrapper input[type="search"] {
  background-color: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-family: 'Poppins', sans-serif;
}

/* Zarovnání filtru a výběru */
.dataTables_wrapper .dataTables_filter {
  float: right !important;
}

.dataTables_wrapper .dataTables_length {
  float: left !important;
}

/* Stránkování */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 1rem;
  text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background-color: transparent;
  color: var(--accent) !important;
  border: none;
  padding: 0.3rem 0.6rem;
  margin: 0 0.2rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: rgba(0, 217, 255, 0.1);
}

footer.footer {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

footer .disclaimer {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 600px) {
  footer.footer {
    padding: 1.5rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  footer .disclaimer {
    font-size: 0.8rem;
  }
}

/* ==== METRIKY - BARVY PODLE HODNOCENÍ ==== */

/* Hodnocení metrik */
.metric-good {
  color: #00cc66; /* Zelená */
  font-weight: 600;
}

.metric-warn {
  color: orange; /* Oranžová */
  font-weight: 600;
}

.metric-bad {
  color: #ff4d4d; /* Červená */
  font-weight: 600;
}


/* DCF, Graham, Analyst – procenta */
small.green {
  color: #00cc66;
  font-weight: 500;
}

small.red {
  color: #ff4d4d;
  font-weight: 500;
}

td small {
  opacity: 0.7;
  font-size: 0.85em;
  margin-left: 4px;
}

/* Dropdown v navbaru */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem; border: 0; background: transparent; color: var(--accent);
  font: inherit; cursor: pointer;
}
.nav-dropdown-trigger:hover { color: white; }
.nav-dropdown-trigger:focus         { outline: none; }
.nav-dropdown-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }


/* Viditelnost při otevření */
.nav-dropdown.open > .nav-dropdown-menu { display: block; }

/* ── Dynamický kolaps navbaru – třídu .nav-collapsed přidává JS ── */

/* Skrytí textového menu + zobrazení hamburgeru */
.navbar.nav-collapsed .nav-links {
  display: none;
  flex-direction: column;
  background-color: var(--bg);
  position: absolute;
  top: 100%;      /* těsně pod navbar – funguje při jakékoli výšce lišty */
  left: auto;
  transform: none;
  width: 200px;
  margin-top: 8px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 1100;
  /* right: nastavuje JS dynamicky podle pozice hamburger ikony */

  /* Omezení výšky + scrollování, aby položky nepřetékaly dolů z displeje */
  max-height: calc(100vh - 80px);  /* fallback – starší iOS Safari nezná dvh */
  max-height: calc(100dvh - 80px); /* dvh = viewport bez dynamické lišty prohlížeče */
  overflow-y: auto;                /* scrollovat, pokud se nevejde */
  -webkit-overflow-scrolling: touch; /* plynulé scrollování prstem na iOS */
}

.navbar.nav-collapsed .nav-links a    { margin: 0.5rem 0; }
.navbar.nav-collapsed .nav-links.active { display: flex; }

.navbar.nav-collapsed .menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
}

/* Roztažení dropdown Burzy přes celou šířku vysunutého menu */
.navbar.nav-collapsed .nav-dropdown         { width: 100%; }
.navbar.nav-collapsed .nav-dropdown-menu    { position: static; width: calc(100% - 1rem); box-shadow: none; border: 0; border-radius: 10px; margin: .25rem auto 0; min-width: 0; }
.navbar.nav-collapsed .nav-dropdown-menu a  { white-space: normal; }
.navbar.nav-collapsed .nav-dropdown-trigger { width: 100%; justify-content: center; }

/* ať se nic neořízne (desktop: dropdown nesmí být clipped) */
.navbar { overflow: visible; }
.nav-links { overflow: visible; }
/* V collapsed (mobilním) stavu přebíjí specifičtější pravidlo výše: overflow-y: auto */

/* dropdown menu – podsekce Burzy (odlišené accent pruhem nahoře) */
.nav-dropdown-menu {
  background-color: rgba(30, 36, 46, 0.98); /* o tón světlejší než var(--bg) */
  color: var(--accent);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--accent);      /* accent pruh – vizuální kotva k tlačítku */
  border-radius: 0 0 8px 8px;              /* zaoblení jen dole – nahoře navazuje na pruh */
  box-shadow: 0 6px 16px rgba(0,0,0,0.55);
  position: absolute; top: 100%; right: 0; left: auto;
  min-width: 180px;
  padding: .5rem;
  margin-top: 8px;
  display: none;
  z-index: 1100;
}
.nav-dropdown-menu a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  display: block;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .92rem;
  transition: color .15s, background .15s;
}
.nav-dropdown-menu a:hover { color: var(--accent); background: rgba(0,217,255,.06); }

/* otevření */
.nav-dropdown.open > .nav-dropdown-menu{ display: block; }

.loader-overlay{ display:none; /* pointer-events: none; */ }
.loader-overlay.active{ display:flex; /* pointer-events: auto; */ }


.stocks-legend {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid white;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: left; /* zarovnání vlevo */
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid white;
}

.stocks-legend h4 {
  margin-top: 0;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: left; /* zarovnání vlevo */
}

.stocks-legend ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px 24px;
}

.stocks-legend li {
  margin: 4px 0;
}

.stocks-legend strong {
  color: var(--accent-blue);
}
/* ===========================
LAYOUT (bez změn :root)
=========================== */

/* Hero (centrálně) */
.stock-page .hero,
.search-page .hero {
  padding-top: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stock-page .hero h1,
.search-page .hero h1 {
  display: block;
  color: var(--accent);
  margin: 0 0 .25rem;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.15;
}

.stock-page .hero .hero__sub,
.search-page .hero .hero__sub {
  color: var(--muted-foreground, #9aa3b2);
}

/* Sekce */
.section--narrow { max-width: 920px; margin: 1.5rem auto 3rem; padding: 0 1rem; }
.section--wide   { max-width: 1120px; margin: 1rem auto 3rem;  padding: 0 1rem; }

/* Obsahové bloky vlevo (header/hero se nemění) */
.section, .stock-card, .stock-item, .empty,
.metrics__table, .details__content, .facts, .kpi, .more, .empty__list {
  text-align: left;
}


/* ===========================
CARDS & ZNAČKA
=========================== */

.card {
  background: var(--card, var(--surface));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: var(--radius);
  box-shadow: var(--elev);
}

.stock-card { padding: 1.25rem; }

.brand { display: flex; align-items: center; gap: .9rem; }
.brand__logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: contain;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border, rgba(255,255,255,.08));
}
.brand__logo--placeholder { display: grid; place-items: center; font-size: 1.25rem; color: #9aa3b2; }
.brand__meta { display: flex; flex-direction: column; gap: .25rem; }
.brand__name { margin: 0; font-size: 1.25rem; }
.brand__ticker { display: flex; align-items: center; gap: .5rem; }
.ticker { color: var(--accent); font-weight: 700; letter-spacing: .3px; }
.muted { color: var(--muted-foreground, #9aa3b2); }

/* Chipy & pilly */
.chip,
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  background: rgba(255,255,255,.06);
}
.pillbar { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip--positive { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25); color: #86efac; }
.chip--negative { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.25); color: #fca5a5; }


/* ===========================
GRIDY & FAKTA
=========================== */

.stock-card__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px) { .stock-card__grid { grid-template-columns: 1.1fr .9fr; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.facts li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: .5rem; align-items: center;
  padding: .55rem .75rem; border: 1px dashed var(--border, rgba(255,255,255,.08)); border-radius: 12px;
}
.facts i { opacity: .8; }
.facts span { color: var(--muted-foreground, #9aa3b2); }
.facts strong { font-weight: 600; }


/* ===========================
KPI BLOKY
=========================== */

.stock-card__kpis { display: grid; gap: .6rem; }
.kpi {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1rem; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  transition: transform .2s ease, box-shadow .2s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.kpi__label { font-size: .9rem; color: var(--muted-foreground, #9aa3b2); display: flex; align-items: center; gap: .5rem; }
.kpi__value { font-weight: 700; font-feature-settings: "tnum" 1, "lnum" 1; }

/* inline varianta pro list */
.kpi--inline { padding: .5rem .7rem; }


/* ===========================
DETAILS + TABULKY
=========================== */

.details { margin-top: .75rem; }
.details__summary { cursor: pointer; color: var(--accent); font-weight: 700; list-style: none; }
.details__summary::-webkit-details-marker { display: none; }
.details[open] .details__summary { opacity: .9; }
.details__content { padding-top: .75rem; }

.metrics__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.metrics__table td { padding: .6rem .5rem; border-bottom: 1px solid var(--border, rgba(255,255,255,.08)); }
.metrics__table tr:last-child td { border-bottom: 0; }

/* kompaktnější tabulka pro list */
.details.compact .metrics__table { font-size: .9rem; }
.metrics__table--compact td { padding: .45rem .4rem; border-bottom: 1px solid var(--border, rgba(255,255,255,.08)); }
.metrics__table--compact tr:last-child td { border-bottom: 0; }

.more { margin-top: .75rem; }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }


/* ===========================
  EMPTY STATE (1x)
=========================== */

.empty { text-align: center; padding: 2rem 1.25rem; }
.empty__icon { font-size: 2rem; color: var(--muted-foreground, #9aa3b2); margin-bottom: .5rem; }
.empty__list { list-style: disc; margin: .5rem auto; padding-left: 1.2rem; max-width: 520px; text-align: left; }


/* ===========================
  AKCE & TLAČÍTKA
=========================== */

.actions {
  display: flex; gap: .75rem; margin-top: 1rem;
  justify-content: flex-end; align-items: stretch; /* stejné výšky */
}
.actions > * { display: flex; align-items: stretch; } /* sjednocení wrapperů (form/div/a) */


/* 1 třída pro <a> i <button> — musí mít oba class=\"button\" */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; box-sizing: border-box;
  background: var(--accent); color: #0b0d12; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.button--ghost { background: transparent; color: var(--accent); border-color: rgba(255,255,255,.12); }
.button--sm { padding: .55rem .8rem; border-radius: 10px; font-size: .9rem; }

/* patička karty ve výpisu */
.stock-item { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.stock-item__head { display: flex; flex-direction: column; gap: .75rem; }
.stock-item__body { display: flex; flex-direction: column; gap: .5rem; }
.stock-item__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: .5rem;
  margin-top: auto; /* tlačítko zůstane dole, když je obsah kratší */
}

/* grid výpisu */
.stock-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 680px)  { .stock-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .stock-list { grid-template-columns: 1fr 1fr 1fr; } }


.button--sm {
  padding: .55rem 1rem;
  font-size: .9rem;
  border-radius: 10px;
}

/* základní šipečka před summary */
.details__summary::before {
  content: "▸";                /* nebo \"➤\" apod. */
  display: inline-block;
  margin-right: .5rem;
  transition: transform .2s ease;
  color: var(--accent);
}

/* když je details otevřené, šipka se otočí */
details[open] > .details__summary::before {
  transform: rotate(90deg);
}

/* Vertikální informační seznam – neovlivní jiné stock-list gridy */
.stock-list.tight.list--notes {
  display: block;                 /* zruší grid rozložení */
  list-style: none;
  margin: 0;
  padding: 0;
}

.stock-list.tight.list--notes li {
  display: flex;                  /* ikona vlevo, text vedle a pod sebe se zalomí */
  align-items: flex-start;
  gap: .6rem;
  padding: .0rem 0;
}

.stock-list.tight.list--notes i {
  flex: 0 0 auto;
  margin-top: .15rem;             /* optické srovnání s prvním řádkem textu */
  opacity: .9;
}

.stock-list.tight.list--notes span {
  display: block;                 /* jistota zalomení textu pod sebe */
  line-height: 1.4;
}

.vision-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.accent-icon {
  color: var(--accent);
  font-size: 1.2rem;
}

.score-container {
  width: 100%;
  text-align: center;
  margin: 1.5rem 0;
}

.score-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}

.score-bar {
  width: 100%;
  height: 18px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}

.score-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease, background-color 0.5s ease;
}

.score-value {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

.buffett-icon {
  color: #28a745; /* zelená */
  margin-left: 0.5rem;
  font-size: 1.2rem;
  vertical-align: middle;
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem 2rem;
  margin-bottom: 2rem;
}

.filter-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  flex: 1 1 300px;
  max-width: 400px;
}

.filter-label input[type="checkbox"] {
  margin-top: 0.35em;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.filter-container {
  background-color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ss-select {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
}

.ss-btn {
  background-color: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.ss-btn:hover {
  background-color: #00aacc;
}

.multi-select-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 250px;
  margin-top: 10px;
}

.multi-option {
  background-color: var(--card);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.25s;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.multi-option:hover {
  transform: scale(1.05);
}

/* ✅ Aktivní (vybraná) položka */
.multi-option.selected {
  background-color: var(--accent) !important;
  color: #000 !important;
  opacity: 1 !important;
  z-index: 2;
}

/* ⚪ Nevybraná (přeškrtnutá) položka */
.multi-option.unselected {
  position: relative;
  opacity: 0.55;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

/* 🔹 Bílé X od rohu do rohu */
.multi-option.unselected::before,
.multi-option.unselected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%; /* přes oba rohy */
  height: 2.5px;
  background-color: white;
  transform-origin: center;
  opacity: 0.9;
  border-radius: 2px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; /* aby X neblokovalo kliknutí */
}

.multi-option.unselected::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.multi-option.unselected::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ✨ X plynule zmizí, když je položka aktivní */
.multi-option.selected::before,
.multi-option.selected::after {
  opacity: 0;
}

.gauges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 0rem;
}

.gauge-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-label {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  font-size: 1rem;
}

#finance-metrics {
  padding: 40px 20px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.08);
  margin: 40px auto;
  max-width: 1060px;
}

#finance-metrics h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 2rem;
}

#finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 24px;
}

#finance-grid .card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.05);
  padding: 24px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#finance-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.1);
}

#finance-grid .metric-name {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  text-align: center;
  font-size: 1.1rem;
}

#finance-grid .status,
#finance-grid .growth {
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  color: white;
}

#finance-grid canvas {
  width: 100%;
  height: auto;
}

.good {
  color: #00e676;
}

.bad {
  color: #ff5252;
}

.neutral {
  color: #b0bec5;
}

.analysis-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.5rem auto 2rem;
    padding: 0.8rem 1.2rem;
    background: var(--card);
    border-radius: 16px;
    max-width: 1060px;
    box-shadow: 0 0 25px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.07);
}

.analysis-nav button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.85;
    backdrop-filter: blur(6px);
    transition: 
        background-color 0.2s ease,
        transform 0.15s ease,
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.analysis-nav button i {
    font-size: 1rem;
}

.analysis-nav button:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.20);
}

.analysis-nav button.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

.price-period-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    padding: 0.3rem 0.85rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.price-period-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.price-period-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .analysis-nav {
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 12px;
        padding: 0.6rem;
        justify-content: flex-start;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }

    .analysis-nav::-webkit-scrollbar {
        height: 6px;
    }

    .analysis-nav::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 6px;
    }

    .analysis-nav button {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
        border-radius: 8px;
    }
}

.chart-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
}

.chart-container {
  background-color: var(--card);
  border-radius: 12px;
  padding: 1rem;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .chart-container {
    width: 100%;
    height: auto;
  }
}


.hint {
  position: relative;
  cursor: help;
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
}

.hint::after {
  content: attr(data-hint);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  word-break: break-word;
  width: max-content;
  max-width: 260px;
  text-align: left;

  background-color: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  z-index: 1000;
}

.hint:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.buffett-hint::after {
  white-space: pre-wrap;
  max-width: 520px;
  width: max-content;
}

/* Férové ceny — tooltip kotví zleva od ikonky, neteče mimo kontejner */
.fp-card .hint::after {
  left: 0;
  transform: none;
}
.fp-card .hint:hover::after {
  transform: translateY(-5px);
}

/* JS tooltip — position: fixed, nikdy neoříznut overflow kontejnerem */
.js-hints .hint::after,
.js-hints .hint:hover::after { display: none; }

.js-hint-tooltip {
  position: fixed;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  max-width: 260px;
  word-break: break-word;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.js-hint-tooltip--visible { opacity: 1; }

/* =====================================================
   GLOBÁLNÍ FORM STYLING – tmavý theme
   ===================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}


select,
.form-select {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}


/* =====================================================
   UTILITY TŘÍDY
   ===================================================== */

/* Nadpisy stránek s accent barvou */
.section-title {
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title--left {
  text-align: left;
}

/* Karty předplatného */
.plan-card {
  flex: 1 1 280px;
  max-width: 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 2px solid var(--accent);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.15);
}

.plan-card--active {
  background-color: rgba(0, 217, 255, 0.05);
}

.plan-card__title {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Tabulka popisu funkcí */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: 1rem;
}

.feature-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}


.feature-table td:first-child {
  width: 210px;
  white-space: nowrap;
}

.feature-table tr:last-child td {
  border-bottom: none;
}

/* Kontaktní položky */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

/* Formulář centrovaný */
.form-page {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.form-page--narrow {
  max-width: 400px;
}

/* Label nad formulářovým polem */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

/* Zprávy (success/error) */
.message-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.message-list li {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.message-list li.error {
  color: #ff8c42;
  background: rgba(255, 100, 0, 0.1);
}

.message-list li.success {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

/* Dividendová historie – badge + přepínač */
.div-freq-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: var(--accent);
  white-space: nowrap;
}

.div-mode-btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 8px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  background: rgba(0, 217, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin: 0 0.25rem;
}

.div-mode-btn:hover {
  background: rgba(0, 217, 255, 0.14);
  border-color: var(--accent);
}

.div-mode-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}


/* ===========================
   VYHLEDÁVÁNÍ — SEARCH RESULT CARDS
=========================== */

/* Hlavička výsledků */
.src-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem;
}

/* Karta */
.src-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--elev);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.src-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

/* Hero: logo + company */
.src-hero {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1rem .6rem;
}
.src-logo {
  width: 44px; height: 44px; border-radius: 10px; object-fit: contain;
  flex-shrink: 0; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.src-logo--placeholder { display: grid; place-items: center; font-size: 1.1rem; color: #9aa3b2; }
.src-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.src-company {
  margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.src-meta { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.src-exch { font-size: .71rem; font-weight: 600; color: #9aa3b2; letter-spacing: .3px; }

/* Cena + DCF diff */
.src-prices {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.025);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.src-price-main { display: flex; flex-direction: column; gap: .1rem; }
.src-price-lbl  {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #9aa3b2;
}
.src-price-val  {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.3px;
  font-feature-settings: "tnum" 1;
}
.src-price-cur  { font-size: .78rem; font-weight: 600; opacity: .6; }

.src-dcf {
  display: flex; flex-direction: column; gap: .1rem; text-align: right;
  padding: .4rem .65rem; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  transition: transform .15s;
}
.src-dcf:hover { transform: translateY(-1px); }
.src-dcf__lbl { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .45px; color: #9aa3b2; }
.src-dcf__val { font-size: .82rem; font-weight: 700; font-feature-settings: "tnum" 1; }
.src-dcf--up  { border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.04); }
.src-dcf--up  .src-dcf__val { color: #86efac; }
.src-dcf--down { border-color: rgba(239,68,68,.22); background: rgba(239,68,68,.03); }
.src-dcf--down .src-dcf__val { color: #fca5a5; }

/* Info pills */
.src-pills {
  display: flex; flex-wrap: wrap; gap: .3rem;
  padding: .5rem 1rem;
}
.src-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 20px; font-size: .72rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: var(--muted-foreground, #9aa3b2);
}
.src-pill i { color: var(--accent); font-size: .63rem; flex-shrink: 0; }
.src-pill--div { background: rgba(255,213,79,.07); border-color: rgba(255,213,79,.25); color: #ffd54f; }
.src-pill--div i { color: #ffd54f; }

/* Metriky */
.src-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .32rem; padding: .5rem 1rem;
  flex: 1;
}
.src-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: .38rem .5rem; border-radius: 7px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.src-metric span   { font-size: .68rem; color: #9aa3b2; }
.src-metric strong { font-size: .82rem; font-weight: 700; font-feature-settings: "tnum" 1; }
.src-metric.metric-good { border-color: rgba(34,197,94,.25); }
.src-metric.metric-good strong { color: #86efac; }
.src-metric.metric-bad  { border-color: rgba(239,68,68,.2); }
.src-metric.metric-bad  strong { color: #fca5a5; }

/* Footer akce */
.src-footer {
  padding: .7rem 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.06);
}
.src-footer form    { width: 100%; }
.src-footer .button { width: 100%; justify-content: center; }


/* ===========================
   AKCIE DNE — SPOTLIGHT
=========================== */

.sod-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--elev);
  overflow: hidden;
  position: relative;
}
.sod-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, var(--accent) 60%, transparent 100%);
  z-index: 1;
}

/* Hero */
.sod-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.5rem; flex-wrap: wrap;
}
.sod-brand { display: flex; align-items: center; gap: 1rem; }
.sod-brand__info { display: flex; flex-direction: column; gap: .3rem; }
.sod-logo {
  width: 80px; height: 80px; border-radius: 16px; object-fit: contain;
  flex-shrink: 0; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.sod-logo--placeholder { display: grid; place-items: center; font-size: 2rem; color: #9aa3b2; }
.sod-company { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.sod-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sod-date {
  font-size: .78rem; font-weight: 600; color: var(--accent);
  background: rgba(0,217,255,.08); border: 1px solid rgba(0,217,255,.25);
  padding: .3rem .9rem; border-radius: 20px; white-space: nowrap;
  align-self: flex-start; flex-shrink: 0;
}

/* Price Spotlight */
.sod-prices {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: rgba(255,255,255,.025);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sod-current { display: flex; flex-direction: column; gap: .25rem; }
.sod-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .55px; color: #9aa3b2;
}
.sod-big-val {
  font-size: 2.1rem; font-weight: 800; letter-spacing: -.5px;
  font-feature-settings: "tnum" 1; line-height: 1;
}
.sod-currency { font-size: 1rem; font-weight: 600; opacity: .65; }

/* Oracle cards */
.sod-oracles {
  display: flex; gap: .55rem; flex-wrap: wrap;
  flex: 1; justify-content: flex-end;
}
.sod-oracle {
  display: flex; flex-direction: column; gap: .18rem;
  padding: .6rem .95rem; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 96px; text-align: right;
  transition: transform .15s;
}
.sod-oracle:hover { transform: translateY(-2px); }
.sod-oracle__name {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #9aa3b2;
}
.sod-oracle__val { font-size: .93rem; font-weight: 700; font-feature-settings: "tnum" 1; }
.sod-oracle__diff { font-size: .76rem; font-weight: 700; }
.sod-oracle--up { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.04); }
.sod-oracle--up .sod-oracle__val,
.sod-oracle--up .sod-oracle__diff  { color: #86efac; }
.sod-oracle--down { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.03); }
.sod-oracle--down .sod-oracle__val,
.sod-oracle--down .sod-oracle__diff { color: #fca5a5; }
.sod-oracle--na { opacity: .4; }

/* Info Strip */
.sod-strip {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .8rem 1.5rem;
}
.sod-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .75rem; border-radius: 20px; font-size: .79rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: var(--muted-foreground, #9aa3b2);
}
.sod-pill i { color: var(--accent); font-size: .7rem; flex-shrink: 0; }
.sod-pill--div { background: rgba(255,213,79,.07); border-color: rgba(255,213,79,.25); color: #ffd54f; }
.sod-pill--div i { color: #ffd54f; }

/* Metrics Groups */
.sod-groups {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.07);
  gap: 1px; background: rgba(255,255,255,.07);
}
.sod-group { background: var(--card); padding: 1.2rem 1.1rem 1.1rem; }
.sod-group__title {
  font-size: .67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .65px; color: var(--accent); margin: 0 0 .85rem;
  display: flex; align-items: center; gap: .4rem;
}
.sod-tiles { display: grid; gap: .42rem; }
.sod-tile {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .65rem; border-radius: 9px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.055);
}
.sod-tile__label { font-size: .74rem; color: #9aa3b2; }
.sod-tile__val {
  font-size: .88rem; font-weight: 700;
  font-feature-settings: "tnum" 1; text-align: right;
}
/* Barvy dle status_class filtru */
.sod-tile.metric-good { border-color: rgba(34,197,94,.25); }
.sod-tile.metric-good .sod-tile__val { color: #86efac; }
.sod-tile.metric-bad  { border-color: rgba(239,68,68,.2); }
.sod-tile.metric-bad  .sod-tile__val { color: #fca5a5; }

/* Actions */
.sod-actions {
  display: flex; gap: .75rem; padding: 1.1rem 1.5rem;
  justify-content: flex-end; align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sod-actions > * { display: flex; align-items: stretch; }

/* Responsive */
@media (max-width: 680px) {
  .sod-groups    { grid-template-columns: 1fr; }
  .sod-prices    { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sod-oracles   { justify-content: flex-start; }
  .sod-big-val   { font-size: 1.7rem; }
  .sod-actions   { flex-direction: column; }
  .sod-actions > * { width: 100%; }
  .sod-actions .button { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .sod-hero    { flex-direction: column; padding: 1.1rem; }
  .sod-date    { align-self: flex-start; }
  .sod-prices  { padding: 1rem 1.1rem; }
  .sod-strip   { padding: .7rem 1.1rem; }
  .sod-group   { padding: 1rem .9rem .9rem; }
  .sod-actions { padding: .9rem 1.1rem; }
}


/* ═══════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════ */

.blog-page {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.blog-article {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.blog-card:hover {
  border-color: rgba(0,217,255,.35);
  box-shadow: 0 6px 28px rgba(0,217,255,.08);
  transform: translateY(-3px);
}

.blog-card__cover {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
}

.blog-card__date {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  font-weight: 500;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.blog-card__summary {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: .5rem;
}

/* Detail */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .15s;
}
.blog-back:hover { color: var(--accent); }

.blog-detail__cover {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin-bottom: 2rem;
}
@media (max-width: 600px) { .blog-detail__cover { height: 200px; } }

.blog-detail__meta {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  margin-bottom: .5rem;
}

.blog-detail__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .75rem;
}
@media (max-width: 600px) { .blog-detail__title { font-size: 1.45rem; } }

.blog-detail__summary {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 2rem;
}

.blog-detail__content {
  font-size: .975rem;
  line-height: 1.75;
  color: rgba(255,255,255,.8);
}
.blog-detail__content h2,
.blog-detail__content h3 { color: var(--text); margin-top: 2rem; }
.blog-detail__content a  { color: var(--accent); }
.blog-detail__content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }
.blog-detail__content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: rgba(255,255,255,.55);
  font-style: italic;
  margin: 1.5rem 0;
}
.blog-detail__content code {
  background: rgba(255,255,255,.08);
  border-radius: 5px;
  padding: .15em .4em;
  font-size: .9em;
}
.blog-detail__content pre {
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
}

/* ── Responzivita tabulky burzy ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .table-wrapper {
    padding: 1rem 0.6rem;
    margin: 0;
    border-radius: 10px;
  }

  table.dataTable {
    font-size: 0.82rem;
  }

  table.dataTable th,
  table.dataTable td {
    padding: 0.5rem 0.55rem;
  }

  /* Length a search controls pod sebou místo vedle sebe */
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    width: 100%;
    justify-content: flex-start;
  }

  .dataTables_wrapper .dataTables_filter {
    margin-top: 0;
  }

  .dataTables_wrapper input[type="search"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Info a paginate */
  .dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.45rem;
    font-size: 0.82rem;
  }

  /* Filter grid – jeden sloupec na mobilu */
  .filter-group {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .filter-label {
    max-width: 100%;
    flex: 1 1 100%;
    font-size: 0.9rem;
  }

  .filter-container {
    padding: 1rem;
  }
}



.pilot-banner { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.35); color: #fbbf24; text-align: center; padding: 0.5rem 1.2rem; font-size: 0.82rem; font-weight: 500; margin-top: calc(var(--navbar-h) + 0.5rem); width: fit-content; margin-left: auto; margin-right: auto; border-radius: 20px; }
.pilot-banner i { margin-right: 0.4rem; }
.pilot-banner a { color: #fbbf24; text-decoration: underline; }
.pilot-banner a:hover { color: #fff; }

@media (max-width: 700px) {
  .pilot-banner {
    width: calc(100% - 2rem);
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 0.78rem;
  }
}


/* ===========================
   NOVÉ TŘÍDY — WRAPPERS PRO GRAFY A OVERLAY
=========================== */

/* Cenový graf (stock_analytics_result) */
.price-chart-wrapper {
  position: relative;
  height: 380px;
}

/* Dividendový graf */
.dividend-chart-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
}

/* Sankey/Waterfall graf */
.sankey-chart-wrapper {
  width: 100%;
  height: 800px;
}

/* Paywall overlay (search_result, stock_of_the_day_result) */
.paywall-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg, #2a2f38) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2rem;
  z-index: 10;
}

/* Statistiky v hero sekci (index) */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto 1rem;
}

/* Náhledové obrázky akcií (index promo) */
.promo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}


/* ===========================
   RESPONZIVITA — 1024px (tablet)
=========================== */

@media (max-width: 1024px) {
  .chart-container {
    width: 100%;
    height: auto;
    min-height: 280px;
  }

  .price-chart-wrapper  { height: 300px; }
  .dividend-chart-wrapper { height: 240px; }
  .sankey-chart-wrapper  { height: 600px; }

  .hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
  .section { padding: 16px 16px 48px; }

  #finance-metrics { padding: 28px 16px; }
  .analysis-nav   { max-width: 100%; }
}


/* ===========================
   RESPONZIVITA — 900px
=========================== */

@media (max-width: 900px) {
  .risk-slider-wrapper { padding: 1.25rem 1.5rem 1.1rem; }

  .sod-groups { grid-template-columns: 1fr 1fr; }

  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-thumbs    { grid-template-columns: repeat(2, 1fr); }
}


/* ===========================
   RESPONZIVITA — 768px (tablet/mobil)
=========================== */

@media (max-width: 768px) {
  .hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero p  { font-size: 1rem; }

  .section { padding: 12px 12px 36px; }

  .price-chart-wrapper    { height: 240px; }
  .dividend-chart-wrapper { height: 200px; }
  .sankey-chart-wrapper   { height: 420px; }

  .subscription-table { font-size: 0.9rem; }
  .feature-table td   { padding: 0.75rem; }

  .form-page { padding: 0 1rem; }

  .paywall-overlay { padding-bottom: 1.25rem; }
}


/* ===========================
   RESPONZIVITA — 600px (mobil)
=========================== */

@media (max-width: 600px) {
  .hero { padding-top: 12px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .hero p  { font-size: 0.95rem; }

  .section { padding: 8px 10px 28px; }

  #finance-metrics { margin: 20px 0; padding: 20px 12px; }
  #finance-metrics h2 { font-size: 1.4rem; }

  .price-chart-wrapper    { height: 200px; }
  .dividend-chart-wrapper { height: 180px; }
  .sankey-chart-wrapper   { height: 320px; }

  .risk-slider-wrapper    { padding: 1rem; }
  .risk-slider-labels span { font-size: 0.75rem; padding: 0.25rem 0.6rem; }

  .hero-stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .promo-thumbs    { grid-template-columns: 1fr; }

  .plan-card { min-width: 0; max-width: 100%; }

  .src-header { flex-direction: column; }

  .section--narrow,
  .section--wide { padding: 0 0.75rem; }

  .gauge-card { padding: 1.25rem 1rem; }

  .finance-chart-wrapper { padding: 1rem; }

  .filter-container { padding: 0.85rem; }

  .table-wrapper { margin: 0; padding: 0.75rem 0.5rem; }
}


/* ===========================
   RESPONZIVITA — 480px (malý mobil)
=========================== */

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.15rem, 7vw, 1.5rem); }

  .navbar { padding: 0.75rem 1rem; }

  .analysis-nav button { font-size: 0.75rem; padding: 0.4rem 0.65rem; }

  .price-chart-wrapper    { height: 170px; }
  .dividend-chart-wrapper { height: 150px; }
  .sankey-chart-wrapper   { height: 260px; }

  .sod-company { font-size: 1.15rem; }
  .sod-big-val { font-size: 1.5rem; }

  .fp-grid { grid-template-columns: 1fr; }

  .blog-detail__title { font-size: 1.25rem; }
  .blog-detail__cover { height: 160px; }

  .paywall-overlay { padding-bottom: 1rem; }
}
