html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* --- Layout tweaks --- */
.tf-nav-top {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--tf-border);
}

.tf-nav-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 10px;
    font-size: 13px;
    color: var(--tf-muted);
}

.tf-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--tf-border);
    background: rgba(255,255,255,0.04);
}

.tf-nav-top a {
    color: var(--tf-text);
}

.tf-footer {
    margin-top: 48px;
}

.tf-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}

.tf-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--tf-muted);
}

.tf-footer-col h4 {
    margin: 0 0 6px;
    color: var(--tf-text);
}

.tf-footer-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tf-footer-brand p {
    color: var(--tf-muted);
    margin: 8px 0;
    line-height: 1.5;
}

.tf-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--tf-border);
    padding: 4px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.tf-lang-btn {
    border: none;
    background: transparent;
    color: var(--tf-text);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: background 140ms ease, color 140ms ease;
}

.tf-lang-btn.is-active {
    background: var(--tf-accent);
    color: #0d0f14;
}

/* --- Szybkie akcje i CTA --- */
.tf-quick-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 10px;
    z-index: 60;
}

.tf-quick-primary {
    box-shadow: var(--tf-shadow-soft);
    font-weight: 700;
}

.tf-quick-top {
    border: 1px solid var(--tf-border);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    box-shadow: var(--tf-shadow);
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.tf-quick-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 640px) {
    .tf-quick-actions {
        right: 12px;
        bottom: 12px;
    }
}

/* --- Landing sections --- */
.tf-section {
    margin-top: 46px;
}

.tf-section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 24px;
    box-shadow: var(--tf-shadow-soft);
}

.tf-section-header {
    margin-bottom: 18px;
}

.tf-h2 {
    font-size: 26px;
    margin: 6px 0 10px;
}

.tf-grid-3, .tf-grid-2 {
    display: grid;
    gap: 14px;
}

@media (min-width: 960px) {
    .tf-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 780px) {
    .tf-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tf-card-step h3 {
    margin: 0 0 8px;
}

.tf-step-number {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--tf-border);
    margin-bottom: 10px;
}

.tf-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.tf-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--tf-accent);
    display: inline-block;
    margin-right: 10px;
}

.tf-card-body--tight {
    display: grid;
    gap: 10px;
}

.tf-metrics {
    display: grid;
    gap: 14px;
}

@media (min-width: 760px) {
    .tf-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tf-metric {
    text-align: center;
}

.tf-metric-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.tf-metric-label {
    color: var(--tf-muted);
    margin-top: 6px;
}

.tf-section-cta .tf-cta-card {
    border: 1px solid rgba(34,197,94,0.35);
    background: linear-gradient(120deg, rgba(34,197,94,0.15), rgba(79,140,255,0.10));
}

.tf-cta-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 820px) {
    .tf-cta-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* --- Informacyjne podstrony --- */
.tf-info-card {
    max-width: 780px;
    margin: 0 auto;
}

.tf-info-card h1, .tf-info-card h2, .tf-info-card h3 {
    margin-top: 0;
}

.tf-info-card p {
    line-height: 1.6;
    color: var(--tf-muted);
}

.tf-info-card ul {
    color: var(--tf-muted);
    line-height: 1.6;
}

/* --- Raport HTML (PDF/preview) --- */
.rpt {
    max-width: 980px;
    margin: 36px auto;
    padding: 0 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

    .rpt h2 {
        margin: 0 0 12px;
        font-size: 22px;
    }

    .rpt h3 {
        margin: 14px 0 8px;
        font-size: 16px;
    }

    .rpt p {
        line-height: 1.55;
    }

.rpt-hero {
    margin-bottom: 16px;
}

.rpt-verdict {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.rpt-verdict__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #666;
}

.rpt-verdict__value {
    font-size: 28px;
    font-weight: 800;
    margin-top: 4px;
}

.rpt-verdict__why {
    margin-top: 6px;
    color: #333;
}

.rpt-verdict__conds {
    margin: 10px 0 0;
    padding-left: 18px;
}

.rpt-verdict--BUY {
    border-color: #bfe7c6;
    background: #f4fff6;
}

.rpt-verdict--CONDITIONAL {
    border-color: #ffe3a3;
    background: #fffaf0;
}

.rpt-verdict--SKIP {
    border-color: #ffb3b3;
    background: #fff5f5;
}

.rpt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 860px) {
    .rpt-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rpt-card--wide {
        grid-column: 1 / -1;
    }
}

.rpt-card {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.rpt-mine {
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

    .rpt-mine:first-of-type {
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
    }

.rpt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .rpt-table th, .rpt-table td {
        border-bottom: 1px solid #eee;
        padding: 10px 8px;
        text-align: left;
        vertical-align: top;
    }

    .rpt-table thead th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #666;
    }

.rpt-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #ddd;
}

.rpt-badge--warn {
    border-color: #ffcc66;
    background: #fff3d6;
}

.rpt-checklist, .rpt-onlyif {
    margin: 0;
    padding-left: 18px;
}

    .rpt-checklist li, .rpt-onlyif li {
        margin: 6px 0;
        line-height: 1.45;
    }

.rpt-callout {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f7f9;
    border: 1px solid #e8eaee;
}

.rpt-footer {
    margin-top: 10px;
    color: #666;
}

.rpt-mine h3 {
    margin-bottom: 6px;
}

.rpt-mine ul {
    padding-left: 0;
    list-style: none;
}

.rpt-mine li {
    margin: 4px 0;
}

.rpt-mine strong {
    display: inline-block;
    min-width: 180px;
}

.rpt-table tbody tr:nth-child(1) td:nth-child(2) {
    color: #2e7d32;
    font-weight: 600;
}

.rpt-table tbody tr:nth-child(2) td:nth-child(2) {
    color: #ef6c00;
    font-weight: 700;
}

.rpt-table tbody tr:nth-child(3) td:nth-child(2) {
    color: #c62828;
    font-weight: 800;
}

.rpt-verdict__value {
    letter-spacing: 0.04em;
}

.rpt-verdict__why {
    font-size: 15px;
}

.rpt-verdict__conds li {
    font-weight: 600;
}

.rpt-checklist li {
    max-width: 720px;
}
/* Raport musi wymusiæ ciemny tekst, bo strona globalnie ma jasny */
.rpt {
    color: #111;
}

.rpt-card,
.rpt-verdict {
    color: #111;
}

.rpt p,
.rpt li,
.rpt td {
    color: #222;
}

.rpt small {
    color: #666;
}
/* --- RPT: softer look inside dark TF theme --- */

/* 1) miêkkie t³o i tekst */
.rpt {
    color: rgba(20, 24, 31, 0.92);
}

/* 2) karty nie czysto bia³e, tylko lekko przygaszone + ³agodniejsze border/shadow */
.rpt-card,
.rpt-verdict {
    background: #f6f7f9; /* zamiast #fff */
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

/* 3) nag³ówki mniej krzycz¹ */
.rpt h2 {
    font-size: 20px;
    letter-spacing: 0.01em;
}

.rpt-verdict__value {
    font-size: 26px;
    letter-spacing: 0.02em;
}

/* 4) treæ trochê spokojniejsza */
.rpt p, .rpt li, .rpt td {
    color: rgba(20, 24, 31, 0.82);
}

.rpt-verdict__label,
.rpt-table thead th,
.rpt-footer,
.rpt small {
    color: rgba(20, 24, 31, 0.55);
}

/* 5) przerywane linie i separatory delikatniej */
.rpt-mine {
    border-top-color: rgba(15, 23, 42, 0.12);
}

.rpt-table th, .rpt-table td {
    border-bottom-color: rgba(15, 23, 42, 0.10);
}

/* 6) callout mniej jasny */
.rpt-callout {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

/* 7) badge mniej ¿ó³ty marker */
.rpt-badge--warn {
    background: rgba(255, 200, 80, 0.18);
    border-color: rgba(255, 180, 60, 0.45);
}


/* =========================
   RPT  DARK MODE (TF)
   ========================= */

.rpt {
    color: rgba(235, 238, 245, 0.92);
}

/* karty */
.rpt-card,
.rpt-verdict {
    background: linear-gradient( 180deg, rgba(18, 22, 32, 0.95), rgba(14, 18, 26, 0.95) );
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
}

/* nag³ówki */
.rpt h2 {
    color: #f3f4f6;
    font-size: 19px;
    letter-spacing: 0.02em;
}

.rpt h3 {
    color: #e5e7eb;
}

/* tekst */
.rpt p,
.rpt li,
.rpt td {
    color: rgba(229, 231, 235, 0.82);
}

.rpt strong {
    color: rgba(243, 244, 246, 0.95);
}

/* verdict */
.rpt-verdict__label {
    color: rgba(255,255,255,0.55);
}

.rpt-verdict__value {
    color: #f9fafb;
    letter-spacing: 0.08em;
}

/* verdict states */
.rpt-verdict--BUY {
    border-color: rgba(34,197,94,0.45);
    background: linear-gradient( 180deg, rgba(18, 40, 28, 0.95), rgba(14, 28, 20, 0.95) );
}

.rpt-verdict--CONDITIONAL {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient( 180deg, rgba(40, 30, 12, 0.95), rgba(28, 20, 8, 0.95) );
}

.rpt-verdict--SKIP {
    border-color: rgba(239, 68, 68, 0.45);
    background: linear-gradient( 180deg, rgba(40, 16, 16, 0.95), rgba(28, 10, 10, 0.95) );
}

/* tabela */
.rpt-table th,
.rpt-table td {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rpt-table thead th {
    color: rgba(255,255,255,0.55);
}

.rpt-table tbody tr:nth-child(1) td:nth-child(2) {
    color: #4ade80;
}

.rpt-table tbody tr:nth-child(2) td:nth-child(2) {
    color: #fbbf24;
}

.rpt-table tbody tr:nth-child(3) td:nth-child(2) {
    color: #f87171;
}

/* separatory */
.rpt-mine {
    border-top: 1px dashed rgba(255,255,255,0.12);
}

/* callout */
.rpt-callout {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

/* badge */
.rpt-badge {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: #fef3c7;
}

.rpt-badge--warn {
    background: rgba(245, 158, 11, 0.20);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

/* --- Ads landing tweaks --- */
.tf-ads-landing {
    margin-top: 22px;
}

.tf-ads-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 12px;
}

.tf-ads-hero-grid {
    align-items: stretch;
}

.tf-ads-section .tf-card-step h3 {
    font-size: 18px;
}

.tf-ads-section .tf-metric-value {
    font-size: 22px;
    font-weight: 800;
}

.tf-ads-section .tf-metric-label {
    font-size: 14px;
    color: var(--tf-muted);
}

@media (max-width: 720px) {
    .tf-ads-container {
        padding: 0 8px;
    }
}
