/**
 * Zdieľané: design tokeny + hub navigácia (#trackerNav).
 * Unified stylesheet for live app + SSR/SEO pages.
 */

/* ── WP theme isolation: override theme's global color rules inside tracker containers ── */
.eth-gas-live-root,
.eth-gas-live-root *,
.eth-gas-live-theme-wrap,
.eth-gas-live-theme-wrap * {
  color: revert;
}
.eth-gas-live-root h1,
.eth-gas-live-root h2,
.eth-gas-live-root h3,
.eth-gas-live-root h4,
.eth-gas-live-root h5,
.eth-gas-live-root h6,
.eth-gas-live-theme-wrap h1,
.eth-gas-live-theme-wrap h2,
.eth-gas-live-theme-wrap h3,
.eth-gas-live-theme-wrap h4,
.eth-gas-live-theme-wrap h5,
.eth-gas-live-theme-wrap h6 {
  font-weight: revert;
  margin-bottom: revert;
}
.eth-gas-live-root p,
.eth-gas-live-theme-wrap p {
  margin-bottom: revert;
}
.eth-gas-live-root a,
.eth-gas-live-theme-wrap a {
  text-decoration: revert;
}
/* Tailwind JIT may not have generated .hidden yet — ensure it works */
.hidden {
  display: none !important;
}
/* Exception: seoSubpagePanel with .hidden during SEO boot must stay visible */
html.gt-seo-boot #seoSubpagePanel.hidden {
  display: block !important;
}

:root {
  --gt-bg-main: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
  --gt-glass-bg: rgba(255, 255, 255, 0.05);
  --gt-glass-border: rgba(255, 255, 255, 0.1);
  --gt-text-main: #e2e8f0;
  --gt-text-muted: #94a3b8;
  --gt-accent-cyan: #00d4ff;
  --gt-accent-purple: #ff00ff;
  --gt-accent-teal: #06b6d4;
  --gt-accent-violet: #a855f7;
  --gt-focus-border: rgba(6, 182, 212, 0.9);
  --gt-focus-ring: rgba(6, 182, 212, 0.25);
  --gt-surface-900: rgba(15, 23, 42, 0.55);
  --gt-surface-900-strong: rgba(15, 23, 42, 0.8);
  --gt-surface-950: rgba(15, 23, 42, 0.65);
  --gt-border-soft: rgba(148, 163, 184, 0.35);
  --gt-border-softer: rgba(148, 163, 184, 0.25);
  --gt-shell-bg: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.6));
  --gt-shell-border: rgba(56, 189, 248, 0.18);
  --gt-shell-focus-border: rgba(34, 211, 238, 0.7);
  --gt-shell-focus-ring: rgba(34, 211, 238, 0.22);
  --gt-shell-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  --gt-shell-arrow: rgba(125, 211, 252, 0.95);
  --gt-online-color: #00ff00;
  --gt-offline-color: #f87171;
}

#trackerNav.tracker-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  min-height: 52px;
  flex-wrap: wrap;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--gt-border-soft);
  background: var(--gt-surface-900-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--gt-shell-shadow);
}

#trackerNav.tracker-nav::-webkit-scrollbar {
  display: none;
}

#trackerNav.tracker-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gt-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  border: 1px solid transparent;
}

#trackerNav.tracker-nav > a:hover {
  background: rgba(15, 23, 42, 0.75);
  color: var(--gt-text-main);
  border-color: rgba(56, 189, 248, 0.35);
}

#trackerNav.tracker-nav > a.active {
  background: rgba(15, 23, 42, 0.95);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.55);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: var(--gt-bg-main);
    min-height: 100vh;
}

.app-shell {
    width: min(100%, 80rem);
    box-sizing: border-box;
}
#liveAppRoot {
    width: 100%;
    box-sizing: border-box;
}
#liveAppRoot.hidden {
    display: none !important;
}
#seoSubpagePanel {
    width: 100%;
    box-sizing: border-box;
}
#seoSubpagePanel.hidden {
    display: none !important;
}
/* Direct hit on an SEO URL: server sets html.gt-seo-boot + __GT_BOOT_SEO__ before paint */
html.gt-seo-boot #liveAppRoot {
    display: none !important;
}
html.gt-seo-boot #seoSubpagePanel.hidden {
    display: block !important;
}
.seo-subpage-mount {
    max-width: 100%;
    overflow-x: auto;
}

.glass {
    background: var(--gt-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gt-glass-border);
}

.gas-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
}
.gas-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.gas-unit {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.gas-detail-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.85rem;
    line-height: 1.4;
    gap: 0.75rem;
}
.gas-detail-row .label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
}
.gas-detail-row .value {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
}

.gas-card:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.gas-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gt-accent-cyan) 0%, var(--gt-accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chart-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chart-body {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 0.45rem;
    position: relative;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}
.chart-canvas {
    flex: 1;
    max-width: 100%;
    overflow: hidden;
}
.chart-canvas canvas {
    height: 340px !important;
    display: block;
    max-width: 100%;
}
.chart-timeline {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    margin-top: 0;
    padding: 0;
    min-height: 20px;
    color: var(--gt-text-muted);
    font-size: clamp(0.68rem, 1.05vw, 0.95rem);
    font-weight: 500;
    box-sizing: border-box;
}
.chart-legend-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding: 0.2rem 0 0.35rem;
    box-sizing: border-box;
    font-size: 0.75rem;
    color: #e2e8f0;
    min-height: 1.6rem;
}
.chart-legend-custom .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    white-space: nowrap;
    opacity: 0.92;
    cursor: pointer;
    transition: opacity 0.15s;
    user-select: none;
}
.chart-legend-custom .legend-item.dataset-hidden {
    opacity: 0.3;
    text-decoration: line-through;
}
.chart-legend-custom .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.chart-timeline .tick-label {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    opacity: 0.7;
}
.featured-actions-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}
.featured-actions-scroll {
    flex: 1;
    min-height: 0;
}
/* Unified scrollbar styling */
.featured-actions-scroll,
.hourly-averages-scroll,
.gt-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
.featured-actions-scroll::-webkit-scrollbar,
.hourly-averages-scroll::-webkit-scrollbar,
.gt-scroll::-webkit-scrollbar {
    width: 8px;
}
.featured-actions-scroll::-webkit-scrollbar-thumb,
.hourly-averages-scroll::-webkit-scrollbar-thumb,
.gt-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
    border: 2px solid rgba(15, 23, 42, 0.8);
}
.featured-actions-scroll::-webkit-scrollbar-thumb:hover,
.hourly-averages-scroll::-webkit-scrollbar-thumb:hover,
.gt-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 250, 252, 0.45);
}
.featured-actions-scroll::-webkit-scrollbar-track,
.hourly-averages-scroll::-webkit-scrollbar-track,
.gt-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.featured-actions-scroll {
    overflow-anchor: none;
}
/* Hourly averages height */
.hourly-averages-scroll {
    max-height: 16rem;
}
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        align-items: start;
    }
    .main-primary {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .main-sidebar {
        min-height: 0;
    }
    .main-primary-scroll {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: visible;
    }
}

.btn-primary {
    background: linear-gradient(90deg, var(--gt-accent-cyan) 0%, var(--gt-accent-purple) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}
.select-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 0.75rem;
    background: var(--gt-shell-bg);
    border: 1px solid var(--gt-shell-border);
    box-shadow: var(--gt-shell-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.select-shell:focus-within {
    border-color: var(--gt-shell-focus-border);
    box-shadow: 0 0 0 2px var(--gt-shell-focus-ring), var(--gt-shell-shadow);
}
.select-shell::after {
    content: '▾';
    position: absolute;
    right: 0.55rem;
    pointer-events: none;
    color: var(--gt-shell-arrow);
    font-size: 0.85rem;
}
.select-shell.compact {
    padding: 0.1rem 0.15rem;
}
.select-shell.stretch {
    width: 100%;
}
.gas-select {
    appearance: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent;
    border: 1px solid var(--gt-border-soft);
    color: var(--gt-text-main);
    padding: 0.35rem 2.25rem 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 12rem;
    background-image: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 70%) !important;
    background-repeat: no-repeat;
    background-position: center;
    text-overflow: ellipsis;
}
.gas-select::-ms-expand { display: none; }
.gas-select:focus {
    outline: none;
    border-color: var(--gt-focus-border);
    box-shadow: 0 0 0 2px var(--gt-focus-ring);
}
.gas-select option {
    background-color: #1e293b;
    color: #e2e8f0;
}
.select-shell .gas-select {
    border-color: transparent;
}
.gas-select.stretch {
    width: 100%;
}
.form-control {
    width: 100%;
    background: var(--gt-surface-900);
    border: 1px solid var(--gt-border-soft);
    border-radius: 0.75rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    color: var(--gt-text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control:focus {
    border-color: var(--gt-focus-border);
    box-shadow: 0 0 0 2px var(--gt-focus-ring);
    outline: none;
    background: var(--gt-surface-900-strong);
}
.network-stress-advice {
    display: block;
    line-height: 1.35;
    min-height: 2.7em;
}
.mode-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid var(--gt-border-soft);
    background: rgba(15, 23, 42, 0.4);
    color: #cbd5f5;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}
.mode-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mode-pill span {
    pointer-events: none;
}
.mode-pill.active {
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(59, 130, 246, 0.22);
    color: #e0f2ff;
    box-shadow: none;
    transform: none;
}
.action-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.85);
    padding: 1rem;
    transition: none;
}
.action-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}
.action-price-col {
    padding-top: 0.2rem;
    min-width: 0;
}
.action-price-col + .action-price-col {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.2rem;
    padding-left: 0.5rem;
}
.action-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}
.heatmap-scroll {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.stats-tabs-row {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.stats-tabs-row .stats-tab {
    white-space: nowrap;
}
.stats-tab {
    position: relative;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--gt-text-muted);
    transition: color 0.25s ease;
}
.stats-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--gt-accent-teal), var(--gt-accent-violet));
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.stats-tab.tab-active {
    color: #e0f2fe;
}
.stats-tab.tab-active::after {
    opacity: 1;
    transform: translateY(0);
}
.stats-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.stats-content.active {
    opacity: 1;
    transform: translateY(0);
}
.btn-alert {
    width: 100%;
    border-radius: 0.85rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    background: linear-gradient(120deg, var(--gt-accent-teal), var(--gt-accent-violet));
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-alert:hover {
    filter: brightness(1.08);
}
.alert-item {
    border-radius: 1rem;
    border: 1px solid var(--gt-border-softer);
    background: var(--gt-surface-950);
    padding: 0.75rem 1rem;
}
.sidebar-card {
    padding: 0.7rem 0.6rem;
}
.section-max-panel {
    min-height: 0;
}
.app-header,
.network-stats-block,
.gas-card,
.main-primary,
.main-sidebar,
.main-sidebar > .glass,
.section-max-panel,
.app-shell > .glass,
.app-shell #liveAppRoot > .glass {
    width: 100%;
    box-sizing: border-box;
}
#trend {
    font-size: inherit;
    line-height: 1.15;
}
.network-metric-cell {
    display: flex;
    flex-direction: column;
    min-height: 5.25rem;
    gap: 0.35rem;
}
.network-metric-cell .network-stat-value {
    font-size: 1.1rem !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}
@media (min-width: 640px) {
    .network-metric-cell .network-stat-value {
        font-size: 1.2rem !important;
    }
}
.hub-insight-block {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hub-insight-block h3 {
    margin: 0 0 0.4rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(209 213 219);
}
#metricInsight {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgb(243 244 246);
    text-wrap: balance;
    overflow-wrap: break-word;
    max-width: 100%;
}
@media (min-width: 768px) {
    .sidebar-card {
        padding: 1.25rem 1.2rem;
    }
}
.status-indicator {
    margin: 0px 0px 0px 9px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online { background: var(--gt-online-color); box-shadow: 0 0 10px var(--gt-online-color); }
.status-offline { background: var(--gt-offline-color); box-shadow: 0 0 12px rgba(248, 113, 113, 0.45); }

input[type="number"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

input[type="number"]:focus {
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.pct-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.78rem;
    color: #cbd5f5;
}
.pct-chip {
    border: 1px solid var(--gt-border-soft);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--gt-surface-900);
}

#timeRange {
    min-width: 10rem;
}

#timeRange:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.9);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.25);
}

#timeRange option {
    background-color: #0f172a;
    color: #f8fafc;
}

#timeRange option:checked,
#timeRange option:hover {
    background-color: #06b6d4;
    color: #0f172a;
}

@media (max-width: 1023px) {
    .app-shell {
        padding: 0.75rem 0.55rem 1rem !important;
    }
    .app-shell .app-header,
    .app-shell #liveAppRoot > .network-stats-block,
    .app-shell #liveAppRoot > .gas-cards-grid,
    .app-shell #liveAppRoot > .main-layout,
    .app-shell #liveAppRoot > .advanced-stats-block {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .gas-cards-grid,
    .main-layout,
    .advanced-stats-block .grid {
        justify-items: stretch;
    }
    .gas-cards-grid > .gas-card,
    .main-layout > .main-primary,
    .main-layout > .main-sidebar,
    .main-sidebar > .glass,
    .advanced-stats-block .stats-content .grid > .glass {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    .app-header {
        padding: 1rem !important;
    }
    .app-title {
        font-size: 1.6rem !important;
        line-height: 1.2;
        margin-bottom: 0.45rem;
    }
    .header-meta {
        font-size: 0.78rem;
        line-height: 1.35;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .status-indicator {
        margin-left: 0;
    }
    .network-stats-block {
        padding: 1rem !important;
    }
    .network-metric-grid {
        gap: 0.75rem !important;
    }
    .network-metric-cell .network-stat-value {
        font-size: 1.1rem !important;
    }
    .gas-card {
        padding: 1rem !important;
    }
    .gas-value {
        font-size: 1.9rem;
        line-height: 1.1;
    }
    .main-layout {
        gap: 1rem;
    }
    .main-primary {
        padding: 1rem !important;
    }
    .chart-body {
        padding: 0.35rem 0.45rem;
    }
    .chart-canvas canvas {
        height: 210px !important;
    }
    .chart-controls {
        width: 100%;
        gap: 0.5rem !important;
    }
    .chart-controls .select-shell {
        flex: 1 1 12rem;
        min-width: 0;
    }
    .chart-controls .gas-select {
        width: 100%;
        min-width: 0;
    }
    .chart-timeline {
        padding: 0 0.2rem;
        min-height: 18px;
    }
    .chart-timeline .tick-label {
        font-size: 0.66rem;
    }
    .featured-actions-section {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }
    .action-card {
        padding: 0.65rem;
        border-radius: 0.8rem;
    }
    .action-card .text-lg {
        font-size: 0.78rem !important;
    }
    .action-card .text-sm {
        font-size: 0.64rem !important;
    }
    .action-card .font-bold {
        font-size: 0.72rem !important;
    }
    .action-card .text-xs {
        font-size: 0.62rem !important;
    }
    .featured-actions-scroll {
        max-height: 14rem;
        overflow-y: auto;
    }
    .sidebar-card {
        padding: 1rem 0.9rem;
    }
    .section-max-panel {
        max-height: 18rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .gas-intelligence-block h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    .gas-intelligence-block .mb-6 {
        margin-bottom: 1rem;
    }
    .alerts-panel #alertsList {
        font-size: 0.8rem;
    }
    .stats-tab {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
    }
    #gasHeatmap {
        min-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .app-shell {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }
    .app-title {
        font-size: 1.35rem !important;
    }
    .header-meta {
        font-size: 0.72rem;
    }
    .network-metric-cell .network-stat-value {
        font-size: 1rem !important;
    }
    .gas-unit {
        font-size: 0.85rem;
    }
    .gas-value {
        font-size: 1.6rem;
    }
    .gas-detail-row {
        font-size: 0.78rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .icon-chip {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.72rem;
    }
    .chart-canvas canvas {
        height: 180px !important;
    }
    .chart-timeline .tick-label {
        font-size: 0.62rem;
    }
    .chart-controls {
        flex-direction: row;
        align-items: stretch;
        gap: 0.35rem !important;
    }
    .chart-controls .select-shell {
        width: calc(50% - 0.18rem);
        flex: 1 1 0;
    }
    .chart-controls .gas-select {
        font-size: 0.68rem;
        padding: 0.28rem 1.65rem 0.28rem 0.55rem;
    }
    #gasHeatmap {
        min-width: 100% !important;
    }
    .alerts-panel .select-shell::after {
        right: 0.45rem;
    }
    .alerts-panel .gas-select {
        padding-right: 1.65rem;
        font-size: 0.72rem;
    }
    #gasPriceModeGroup {
        grid-template-columns: 1fr;
    }
    .mode-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.76rem;
    }
    .section-max-panel {
        max-height: 16.25rem;
    }
    #fasterPercentiles {
        display: none;
    }
}

@media (max-width: 480px) {
    .network-metric-grid {
        grid-template-columns: 1fr !important;
    }
    .chart-timeline {
        padding: 0;
    }
    .chart-timeline .tick-label {
        font-size: 0.58rem;
    }
    #gasHeatmap {
        min-width: 100% !important;
    }
    .stats-tab {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }
}

/* KLOD SEO pages + SPA embed — vizuál zarovnaný s live app (Inter, glass, cyan–purple) */
/* Používa var(--gt-*) keď sú na stránke (live app); inak fallbacky = rovnaký vzhľad aj na čistom SSR */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --k-radius: 1rem;
}

body:has(> .klod-page) .klod-page,
body:has(> .klod-page) .klod-page *,
body:has(> .klod-page) .klod-page *::before,
body:has(> .klod-page) .klod-page *::after,
.eth-gas-live-theme-wrap,
.eth-gas-live-theme-wrap *,
.eth-gas-live-theme-wrap *::before,
.eth-gas-live-theme-wrap *::after {
  box-sizing: border-box;
}

html:has(> body > .klod-page) {
  scroll-behavior: smooth;
}

/* Len plné SSR stránky (priamy .klod-page pod body) — SPA embed nemení body live appky */
body:has(> .klod-page) {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background: var(
    --gt-bg-main,
    linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%)
  );
  background-attachment: fixed;
  color: var(--gt-text-main, #e2e8f0);
  line-height: 1.5;
  font-size: 15px;
}

.klod-page a,
.eth-gas-live-theme-wrap a {
  color: var(--gt-accent-teal, #22d3ee);
  text-decoration: none;
}
.klod-page a:hover,
.eth-gas-live-theme-wrap a:hover {
  color: var(--gt-accent-cyan, #67e8f9);
  text-decoration: underline;
}

.klod-page,
.eth-gas-live-theme-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 48px;
  color: var(--gt-text-main, #e2e8f0);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

/* Hub layout len pre KLOD wrapper */
.klod-page #trackerNav.tracker-nav {
  margin: 0 -16px 20px;
  max-width: calc(100% + 32px);
  border-radius: var(--k-radius);
}

.klod-page > nav:not(.tracker-nav),
.eth-gas-live-theme-wrap > nav:not(.tracker-nav) {
  display: none !important;
}

/* Karty / bloky — „glass“ ako .glass v appke, nie flat GitHub sivá */
.klod-page #ssr-block,
.klod-page article,
.klod-page section#faq,
.klod-page #calc-interactive,
.klod-page nav:not(.tracker-nav):not(.klod-topnav),
.eth-gas-live-theme-wrap #ssr-block,
.eth-gas-live-theme-wrap article,
.eth-gas-live-theme-wrap section#faq,
.eth-gas-live-theme-wrap #calc-interactive {
  border: 1px solid var(--gt-glass-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--k-radius);
  background: var(--gt-glass-bg, rgba(255, 255, 255, 0.05));
  background-image: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(30, 41, 59, 0.45) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--gt-shell-shadow, 0 10px 25px rgba(0, 0, 0, 0.45));
  padding: 18px 20px;
  margin-bottom: 20px;
}

.klod-page h1,
.eth-gas-live-theme-wrap h1 {
  font-size: 1.65rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(
    90deg,
    var(--gt-accent-cyan, #22d3ee) 0%,
    var(--gt-accent-purple, #c084fc) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.klod-page h2,
.eth-gas-live-theme-wrap h2 {
  font-size: 1.1rem;
  margin: 20px 0 12px;
  font-weight: 600;
  color: var(--gt-text-main, #e2e8f0);
}

.klod-page h3,
.eth-gas-live-theme-wrap h3 {
  font-size: 1rem;
  margin: 12px 0 6px;
  color: var(--gt-accent-teal, #67e8f9);
}

.klod-page p,
.eth-gas-live-theme-wrap p {
  margin: 0 0 12px;
  color: var(--gt-text-muted, #94a3b8);
}

.klod-page #ssr-block > p:first-of-type,
.klod-page #ssr-block > h1 + p,
.eth-gas-live-theme-wrap #ssr-block > p:first-of-type,
.eth-gas-live-theme-wrap #ssr-block > h1 + p {
  color: var(--gt-text-main, #e2e8f0);
}

.klod-page table,
.eth-gas-live-theme-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}

.klod-page thead th,
.eth-gas-live-theme-wrap thead th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--gt-border-soft, rgba(148, 163, 184, 0.35));
  color: var(--gt-text-muted, #94a3b8);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.klod-page tbody td,
.eth-gas-live-theme-wrap tbody td {
  padding: 10px 8px;
  border-top: 1px solid var(--gt-border-softer, rgba(148, 163, 184, 0.2));
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  color: var(--gt-text-main, #e2e8f0);
}

.klod-page tbody tr:hover td,
.eth-gas-live-theme-wrap tbody tr:hover td {
  background: rgba(6, 182, 212, 0.08);
}

.klod-page strong,
.eth-gas-live-theme-wrap strong {
  color: var(--gt-text-main, #f8fafc);
  font-weight: 600;
}

.klod-page #calc-interactive label,
.eth-gas-live-theme-wrap #calc-interactive label {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gt-text-muted, #94a3b8);
}

.klod-page #calc-interactive input[type="number"],
.eth-gas-live-theme-wrap #calc-interactive input[type="number"] {
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gt-border-soft, rgba(148, 163, 184, 0.35));
  background: rgba(0, 0, 0, 0.28);
  color: var(--gt-text-main, #e2e8f0);
  font-size: 14px;
}

.klod-page #calc-interactive button,
.eth-gas-live-theme-wrap #calc-interactive button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(
    120deg,
    var(--gt-accent-teal, #06b6d4),
    var(--gt-accent-violet, #a855f7)
  );
  color: #f8fafc;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.klod-page #calc-interactive button:hover,
.eth-gas-live-theme-wrap #calc-interactive button:hover {
  filter: brightness(1.08);
}

.klod-page #calc-result,
.eth-gas-live-theme-wrap #calc-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--gt-border-soft, rgba(148, 163, 184, 0.35));
  font-size: 15px;
  color: var(--gt-text-main, #e2e8f0);
}

.klod-page #faq div,
.eth-gas-live-theme-wrap #faq div {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gt-border-softer, rgba(148, 163, 184, 0.2));
}
.klod-page #faq div:last-child,
.eth-gas-live-theme-wrap #faq div:last-child {
  border-bottom: none;
}

.klod-page nav ul,
.eth-gas-live-theme-wrap nav ul {
  margin: 0;
  padding-left: 18px;
  color: var(--gt-text-muted, #94a3b8);
}

.klod-page script + nav,
.klod-page article + nav,
.eth-gas-live-theme-wrap script + nav,
.eth-gas-live-theme-wrap article + nav {
  border: 1px solid var(--gt-glass-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--k-radius);
  background: var(--gt-glass-bg, rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px;
}

@media (max-width: 640px) {
  .klod-topnav a {
    font-size: 11px;
    padding: 5px 8px;
  }
  .klod-page h1,
  .eth-gas-live-theme-wrap h1 {
    font-size: 1.3rem;
  }
}

/* ── Sticky top nav on SEO pages ── */
.eth-gas-live-theme-wrap #trackerNav.tracker-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

/* ── Extra SEO-page-only refinements ── */
.eth-gas-live-theme-wrap table {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  overflow: hidden;
}
.eth-gas-live-theme-wrap small {
  color: var(--gt-text-muted, #94a3b8);
  font-size: 0.8rem;
}
