/* ============================================================
    PotholeTracker v3.5.0 — Complete Design System
   "Fixing Bulgaria's Roads — One Pothole at a Time"
   Bulgarian Flag: Red #C8102E · White #FFFFFF · Green #006F3E
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --pt-red: #C8102E;
    --pt-red-light: #E8344F;
    --pt-red-dark: #9B0C24;
    --pt-green: #006F3E;
    --pt-green-light: #00994F;
    --pt-navy: #0A1628;
    --pt-navy-light: #122240;
    --pt-white: #FFFFFF;
    --pt-gold: #FFB800;
    --pt-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --pt-font-display: 'Exo 2', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --pt-radius: 12px;
    --pt-radius-sm: 8px;
    --pt-radius-lg: 20px;
    --pt-radius-xl: 28px;
    --pt-shadow: 0 4px 24px rgba(0,0,0,0.12);
    --pt-shadow-lg: 0 12px 48px rgba(0,0,0,0.2);
    --pt-shadow-glow: 0 0 40px rgba(200,16,46,0.15);
    --pt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pt-transition-fast: all 0.15s ease;
}

[data-bs-theme="dark"] {
    --pt-bg: #080E1A;
    --pt-bg-secondary: #0F1A2E;
    --pt-bg-card: rgba(18, 34, 64, 0.6);
    --pt-bg-card-solid: #122240;
    --pt-bg-card-hover: rgba(34, 56, 88, 0.7);
    --pt-text: #E8EDF5;
    --pt-text-secondary: #7B8CA5;
    --pt-border: rgba(255,255,255,0.06);
    --pt-border-light: rgba(255,255,255,0.1);
    --pt-input-bg: rgba(15, 26, 46, 0.8);
    --pt-navbar-bg: rgba(8, 14, 26, 0.85);
    --pt-footer-bg: #060B15;
    --pt-glass: rgba(18, 34, 64, 0.4);
    --pt-glass-border: rgba(255,255,255,0.08);
    --card-bg: rgba(18, 34, 64, 0.6);
    --border-color: rgba(255,255,255,0.06);
    --text-muted: #7B8CA5;
    --text-color: #E8EDF5;
    --primary-red: #C8102E;
    --primary-green: #006F3E;
    --bg-secondary: #0F1A2E;
}

[data-bs-theme="light"] {
    --pt-bg: #F7F8FB;
    --pt-bg-secondary: #FFFFFF;
    --pt-bg-card: rgba(255, 255, 255, 0.8);
    --pt-bg-card-solid: #FFFFFF;
    --pt-bg-card-hover: rgba(245, 247, 250, 0.9);
    --pt-text: #1A2D4A;
    --pt-text-secondary: #5A6B80;
    --pt-border: rgba(0,0,0,0.06);
    --pt-border-light: rgba(0,0,0,0.1);
    --pt-input-bg: rgba(255, 255, 255, 0.9);
    --pt-navbar-bg: rgba(255, 255, 255, 0.85);
    --pt-footer-bg: #1A2D4A;
    --pt-glass: rgba(255, 255, 255, 0.5);
    --pt-glass-border: rgba(0,0,0,0.06);
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0,0,0,0.06);
    --text-muted: #5A6B80;
    --text-color: #1A2D4A;
    --primary-red: #C8102E;
    --primary-green: #006F3E;
    --bg-secondary: #FFFFFF;
}

/* ============================================================
   BASE & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--pt-font);
    background: var(--pt-bg);
    color: var(--pt-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; padding-top: 72px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--pt-font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
a { color: var(--pt-red-light); text-decoration: none; transition: var(--pt-transition-fast); }
a:hover { color: var(--pt-red); }
::selection { background: var(--pt-red); color: white; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

button, .btn, .brand-text, .footer-brand { font-family: var(--pt-font-display); }

.text-gradient {
    background: linear-gradient(135deg, var(--pt-red) 0%, var(--pt-red-light) 50%, var(--pt-gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Brand wordmark: PotholeTracker — split styling for TRA + CKER */
.brand-tra { color: var(--pt-red-light); font-weight: 800; }
.brand-acker { color: var(--pt-green-light); font-weight: 800; }

/* ============================================================
   GLASSMORPHISM
   ============================================================ */
.glass {
    background: var(--pt-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--pt-glass-border);
    border-radius: var(--pt-radius);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-glass {
    top: var(--cs-brandbar-offset, 19px);
    background: var(--pt-navbar-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--pt-border);
    padding: 0.5rem 0;
    transition: var(--pt-transition);
    z-index: 1050;
}
.navbar-glass.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.15); border-bottom-color: transparent; }
.brand-text { font-size: 1.15rem; letter-spacing: -0.5px; }

.navbar-glass .nav-link {
    color: var(--pt-text-secondary); font-weight: 500; font-size: 0.88rem;
    border-radius: var(--pt-radius-sm); transition: var(--pt-transition-fast); padding: 0.5rem 0.85rem;
}
.navbar-glass .nav-link:hover, .navbar-glass .nav-link.active {
    color: var(--pt-text); background: rgba(200,16,46,0.1);
}
[data-bs-theme="light"] .navbar-glass .nav-link:hover,
[data-bs-theme="light"] .navbar-glass .nav-link.active {
    color: var(--pt-red); background: rgba(200,16,46,0.06);
}
.theme-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
    background: linear-gradient(160deg, #080E1A 0%, #0F1A2E 40%, #0D2818 100%);
}
[data-bs-theme="light"] .hero-section { background: linear-gradient(160deg, #1A2D4A 0%, #2A4060 40%, #1a4030 100%); }

.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 600px 400px at 20% 50%, rgba(200,16,46,0.08) 0%, transparent 70%),
                radial-gradient(ellipse 400px 400px at 80% 30%, rgba(0,111,62,0.06) 0%, transparent 70%);
    z-index: 0;
}
.hero-section::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(255,255,255,0.015)' fill='none'/%3E%3C/svg%3E") repeat;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center;
    background: rgba(200,16,46,0.12); border: 1px solid rgba(200,16,46,0.25);
    color: var(--pt-red-light); padding: 0.4rem 1.1rem; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; color: white;
    margin-bottom: 1.25rem; line-height: 1.08; letter-spacing: -0.03em;
}

.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 540px; margin-bottom: 2rem; line-height: 1.7; }

.hero-flag {
    position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
    width: 500px; height: 500px; opacity: 0.04; z-index: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-pt-primary {
    background: linear-gradient(135deg, var(--pt-red) 0%, var(--pt-red-dark) 100%);
    color: white; border: none; padding: 0.8rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.95rem; transition: var(--pt-transition);
    box-shadow: 0 4px 20px rgba(200,16,46,0.25); position: relative; overflow: hidden;
}
.btn-pt-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15)); opacity: 0; transition: opacity 0.3s; }
.btn-pt-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,16,46,0.35); color: white; }
.btn-pt-primary:hover::before { opacity: 1; }
.btn-pt-primary:active { transform: translateY(0); }

.btn-pt-outline {
    background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.2);
    padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; transition: var(--pt-transition);
}
.btn-pt-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: white; transform: translateY(-2px); }

.btn-pt-green {
    background: linear-gradient(135deg, var(--pt-green) 0%, var(--pt-green-light) 100%);
    color: white; border: none; padding: 0.8rem 2rem; border-radius: 50px;
    font-weight: 600; transition: var(--pt-transition); box-shadow: 0 4px 20px rgba(0,111,62,0.2);
}
.btn-pt-green:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,111,62,0.3); color: white; }

:where(.btn-pt-primary, .btn-pt-outline, .btn-pt-green, .btn-pt-ghost):focus-visible {
    outline: 2px solid var(--pt-red);
    outline-offset: 2px;
}
.report-page-rail :where(a, button):focus-visible {
    outline: 2px solid var(--pt-red);
    outline-offset: 2px;
}

/* ============================================================
   FAB — Floating Report Button (visible on every page)
   ============================================================ */
.fab-report {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1040;
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pt-red), var(--pt-red-dark));
    color: white; border: none; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 6px 28px rgba(200,16,46,0.4); transition: var(--pt-transition);
    animation: fabPulse 3s ease-in-out infinite;
}
.fab-report:hover { transform: scale(1.1); box-shadow: 0 8px 36px rgba(200,16,46,0.5); animation: none; }
.fab-report:active { transform: scale(0.95); }

.fab-report .fab-label {
    position: absolute; right: calc(100% + 12px); white-space: nowrap;
    background: var(--pt-bg-card-solid); color: var(--pt-text);
    padding: 0.4rem 0.9rem; border-radius: var(--pt-radius-sm);
    font-size: 0.82rem; font-weight: 600; box-shadow: var(--pt-shadow);
    opacity: 0; transform: translateX(8px); transition: var(--pt-transition); pointer-events: none;
}
.fab-report:hover .fab-label { opacity: 1; transform: translateX(0); }

@keyframes fabPulse {
    0%,100% { box-shadow: 0 6px 28px rgba(200,16,46,0.4), 0 0 0 0 rgba(200,16,46,0.3); }
    50% { box-shadow: 0 6px 28px rgba(200,16,46,0.4), 0 0 0 12px rgba(200,16,46,0); }
}

/* ============================================================
   CARDS
   ============================================================ */
.card-pt {
    background: var(--pt-bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius);
    transition: var(--pt-transition); overflow: hidden;
}
.card-pt:hover { background: var(--pt-bg-card-hover); transform: translateY(-4px); box-shadow: var(--pt-shadow); border-color: var(--pt-border-light); }

.dashboard-card {
    background: var(--pt-bg-card); backdrop-filter: blur(12px);
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 1.5rem;
    transition: var(--pt-transition);
}
.dashboard-card:hover { background: var(--pt-bg-card-hover); transform: translateY(-3px); box-shadow: var(--pt-shadow); border-color: var(--pt-border-light); }

/* ============================================================
   REPORT PAGE
   ============================================================ */
.report-main {
    position: relative;
}

.report-section {
    position: relative;
    overflow: hidden;
}

.report-section-compact {
    padding-top: 3.5rem;
}

.report-section::before,
.report-section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
    opacity: 0.55;
}

.report-section::before {
    width: 380px;
    height: 380px;
    top: 5rem;
    left: max(-6rem, calc(50% - 42rem));
    background: radial-gradient(circle, rgba(200,16,46,0.18) 0%, rgba(200,16,46,0.04) 48%, transparent 72%);
}

.report-section::after {
    width: 340px;
    height: 340px;
    top: 14rem;
    right: max(-4rem, calc(50% - 44rem));
    background: radial-gradient(circle, rgba(0,111,62,0.16) 0%, rgba(0,111,62,0.04) 48%, transparent 72%);
}

.report-page-container {
    position: relative;
    z-index: 1;
    max-width: 1160px;
}

.report-page-shell {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.report-page-rail {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 5.75rem;
}

.report-stage-card,
.report-form-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pt-border);
    border-radius: calc(var(--pt-radius-lg) + 2px);
    background:
        linear-gradient(145deg, rgba(18, 26, 43, 0.96), rgba(10, 16, 29, 0.94)),
        linear-gradient(135deg, rgba(200,16,46,0.16), transparent 42%, rgba(0,111,62,0.1));
    box-shadow: 0 24px 60px rgba(4, 10, 20, 0.35);
}

.report-stage-card {
    padding: 1.5rem;
}

.report-stage-card::before,
.report-form-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 22%);
    pointer-events: none;
}

.report-stage-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-weight: 900;
    margin: 0 0 0.8rem;
}

.report-stage-subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
}

.report-stage-title,
.report-panel-title,
.report-status-label,
.report-fix-context-title,
.report-stage-pill,
.report-tip-pill {
    color: #fff;
}

.report-panel-eyebrow,
.report-stage-metric-label {
    color: rgba(255,255,255,0.58);
}

.report-stage-pills,
.report-tip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.report-stage-pills {
    margin-top: 1rem;
}

.report-stage-pill,
.report-tip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--pt-text);
    font-size: 0.8rem;
    font-weight: 600;
}

.report-stage-pill i,
.report-tip-pill i,
.report-stage-note i,
.report-submit-footnote i {
    color: var(--pt-gold);
}

.report-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.1rem;
}

.report-stage-metric {
    padding: 0.95rem 0.85rem;
    border-radius: var(--pt-radius);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.035);
}

.report-stage-metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.report-stage-metric-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--pt-text-secondary);
}

.report-stage-note,
.report-submit-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
    border-radius: var(--pt-radius);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.035);
    color: var(--pt-text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.report-stage-note {
    margin-top: 1rem;
}

.report-status-panel,
.report-fix-context {
    background: linear-gradient(180deg, rgba(18, 27, 45, 0.92), rgba(10, 15, 27, 0.9));
    box-shadow: 0 12px 36px rgba(4, 10, 20, 0.18);
}

.report-panel-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pt-text-secondary);
}

.report-panel-title {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.report-status-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.report-status-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: var(--pt-radius);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.report-status-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--pt-text-secondary);
}

.report-status-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.report-status-copy {
    margin-top: 0.18rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.68);
}

.report-status-item.is-live {
    border-color: rgba(255,193,7,0.26);
    background: rgba(255,193,7,0.08);
}

.report-status-item.is-live .report-status-icon {
    color: #ffd667;
    background: rgba(255,193,7,0.14);
}

.report-status-item.is-done {
    border-color: rgba(25,135,84,0.28);
    background: rgba(25,135,84,0.08);
}

.report-status-item.is-done .report-status-icon {
    color: #59d78b;
    background: rgba(25,135,84,0.14);
}

.report-status-item.is-fix {
    border-color: rgba(30,162,92,0.28);
    background: rgba(30,162,92,0.08);
}

.report-status-item.is-fix .report-status-icon {
    color: #7debab;
    background: rgba(30,162,92,0.14);
}

.report-fix-context-media {
    margin-top: 0.95rem;
    border-radius: calc(var(--pt-radius) + 2px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.report-fix-context-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.report-fix-context-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.report-fix-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(30,162,92,0.14);
    border: 1px solid rgba(30,162,92,0.22);
    color: #8df0b8;
    font-size: 0.76rem;
    font-weight: 700;
}

.report-fix-chip.is-muted {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: var(--pt-text-secondary);
}

.report-fix-context-title {
    margin-top: 0.85rem;
    font-size: 1.02rem;
    font-weight: 800;
}

.report-fix-context-copy,
.report-fix-context-coords {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
}

[data-bs-theme="light"] .report-stage-card,
[data-bs-theme="light"] .report-form-shell,
[data-bs-theme="light"] .report-status-panel,
[data-bs-theme="light"] .report-fix-context {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.97), rgba(245,247,250,0.95)),
        linear-gradient(135deg, rgba(200,16,46,0.1), transparent 42%, rgba(0,111,62,0.08));
    border-color: rgba(26,45,74,0.08);
    box-shadow: 0 20px 48px rgba(26,45,74,0.12);
}

[data-bs-theme="light"] .report-stage-card .hero-badge {
    background: rgba(200,16,46,0.08);
    border-color: rgba(200,16,46,0.16);
    color: #b91533;
}

[data-bs-theme="light"] .report-stage-title,
[data-bs-theme="light"] .report-panel-title,
[data-bs-theme="light"] .report-status-label,
[data-bs-theme="light"] .report-fix-context-title,
[data-bs-theme="light"] .report-stage-pill,
[data-bs-theme="light"] .report-tip-pill,
[data-bs-theme="light"] .report-stage-metric-value {
    color: #1a2d4a;
}

[data-bs-theme="light"] .report-stage-subtitle,
[data-bs-theme="light"] .report-panel-eyebrow,
[data-bs-theme="light"] .report-stage-metric-label,
[data-bs-theme="light"] .report-status-copy,
[data-bs-theme="light"] .report-fix-context-copy,
[data-bs-theme="light"] .report-fix-context-coords,
[data-bs-theme="light"] .report-stage-note,
[data-bs-theme="light"] .report-submit-footnote {
    color: #5a6b80;
}

[data-bs-theme="light"] .report-stage-pill,
[data-bs-theme="light"] .report-tip-pill,
[data-bs-theme="light"] .report-stage-metric,
[data-bs-theme="light"] .report-stage-note,
[data-bs-theme="light"] .report-submit-footnote,
[data-bs-theme="light"] .report-status-item,
[data-bs-theme="light"] .report-fix-chip.is-muted {
    background: rgba(247,248,251,0.94);
    border-color: rgba(26,45,74,0.08);
}

[data-bs-theme="light"] .report-status-icon {
    background: rgba(200,16,46,0.08);
    color: #c8102e;
}

[data-bs-theme="light"] .report-status-item.is-live {
    background: rgba(255,193,7,0.12);
    border-color: rgba(255,193,7,0.24);
}

[data-bs-theme="light"] .report-status-item.is-live .report-status-icon {
    background: rgba(255,193,7,0.16);
    color: #997404;
}

.report-page-form {
    min-width: 0;
}

.report-form-shell {
    padding: 1.25rem;
}

.report-form-shell .step-indicator,
.report-form-shell form {
    position: relative;
    z-index: 1;
}

.report-tip-row {
    margin: 0 0 1rem;
}

.report-submit-footnote {
    margin-top: 0.85rem;
}

.report-stage-note,
.report-submit-footnote {
    color: rgba(255,255,255,0.72);
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--pt-bg-card); backdrop-filter: blur(12px);
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius);
    padding: 1.75rem; text-align: center; transition: var(--pt-transition);
    position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--pt-red), var(--pt-green)); opacity: 0.6; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow); border-color: var(--pt-border-light); }

.stat-number {
    font-size: 2.75rem; font-weight: 900;
    background: linear-gradient(135deg, var(--pt-red-light), var(--pt-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1; margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.78rem; color: var(--pt-text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   ONE-CLICK UPLOAD ZONE
   ============================================================ */
.upload-hero {
    position: relative; border: 2px dashed var(--pt-border-light);
    border-radius: var(--pt-radius-lg); padding: 3rem 2rem; text-align: center;
    cursor: pointer; transition: var(--pt-transition); background: var(--pt-input-bg); overflow: hidden;
}
.upload-hero:hover, .upload-hero.dragover, .upload-hero.drag-over { border-color: var(--pt-red); background: rgba(200,16,46,0.04); transform: scale(1.005); }
.upload-hero.has-photo, .upload-hero.has-files { border-style: solid; border-color: var(--pt-green); padding: 0; }

.upload-hero-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(200,16,46,0.15), rgba(200,16,46,0.05));
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
    font-size: 2rem; color: var(--pt-red); transition: var(--pt-transition);
}
.upload-hero:hover .upload-hero-icon { transform: scale(1.1); }
.upload-hero-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.upload-hero-subtitle { font-size: 0.85rem; color: var(--pt-text-secondary); }

.photo-preview-container {
    position: relative; width: 100%; max-height: 400px; overflow: hidden; border-radius: var(--pt-radius-lg);
}
.photo-preview-container img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }
.photo-preview-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex; justify-content: space-between; align-items: center;
}

/* GPS auto-detected badges */
.gps-badge {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem;
    border-radius: 50px; font-size: 0.78rem; font-weight: 600; animation: fadeIn 0.5s ease;
}
.gps-badge.success { background: rgba(0,200,83,0.15); color: #00c853; border: 1px solid rgba(0,200,83,0.3); }
.gps-badge.pending { background: rgba(255,193,7,0.15); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }
.gps-badge.manual { background: rgba(66,133,244,0.15); color: #4285f4; border: 1px solid rgba(66,133,244,0.3); }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.photo-grid-item { position: relative; border-radius: var(--pt-radius-sm); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--pt-border); transition: var(--pt-transition); }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid-item .remove-photo {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(220,53,69,0.9); color: white; border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    font-size: 0.65rem; opacity: 0; transition: var(--pt-transition-fast);
}
.photo-grid-item:hover .remove-photo { opacity: 1; }
.photo-grid-add {
    border: 2px dashed var(--pt-border); display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--pt-text-secondary); font-size: 1.2rem;
    border-radius: var(--pt-radius-sm); aspect-ratio: 1; transition: var(--pt-transition);
}
.photo-grid-add:hover { border-color: var(--pt-red); color: var(--pt-red); }

/* Upload format hint */
.upload-formats {
    margin-top: 0.8rem; font-size: 0.75rem; color: var(--pt-text-secondary); opacity: 0.7;
    letter-spacing: 0.02em;
}

/* Upload processing state */
.upload-processing {
    text-align: center; padding: 2.5rem 1rem;
}
.upload-processing .fw-600 { font-weight: 600; }

/* Photo meta info strip — shows EXIF data, compression, GPS */
.photo-meta-strip {
    display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.65rem 0.8rem;
    background: var(--pt-bg-card-solid); border-top: 1px solid var(--pt-border);
    animation: fadeIn 0.4s ease;
}
.meta-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.25rem 0.6rem; border-radius: 50px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
    background: rgba(var(--pt-text-rgb, 200,200,200), 0.06);
    color: var(--pt-text-secondary); border: 1px solid var(--pt-border);
    white-space: nowrap;
}
.meta-chip i { font-size: 0.65rem; opacity: 0.7; }
.meta-chip-gps {
    background: rgba(0,200,83,0.08); color: #00c853; border-color: rgba(0,200,83,0.2);
}
.meta-chip-gps i { color: #00c853; opacity: 1; }

/* Photo preview image entrance */
.photo-preview-img { animation: photoReveal 0.5s ease both; }
@keyframes photoReveal {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: scale(1); }
}

/* Character counter */
.char-counter {
    font-size: 0.72rem; color: var(--pt-text-secondary); font-weight: 500;
    font-variant-numeric: tabular-nums; transition: color 0.3s;
}
.char-counter.near-limit { color: var(--pt-gold); }
.char-counter.at-limit { color: var(--pt-red); font-weight: 700; }

/* Verify system */
.verify-btn {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1rem; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: var(--pt-transition);
    border: 1px solid var(--pt-border); background: transparent; color: var(--pt-text-secondary);
}
.verify-btn:hover { border-color: var(--pt-green); color: var(--pt-green); background: rgba(0,111,62,0.08); }
.verify-btn.verified { border-color: var(--pt-green); color: var(--pt-green); background: rgba(0,111,62,0.12); }
.verify-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; border-radius: 50px;
    background: rgba(0,111,62,0.15); color: var(--pt-green-light);
    font-size: 0.72rem; font-weight: 700; padding: 0 0.4rem;
}

/* ============================================================
   MAP
   ============================================================ */
.map-container { height: calc(100vh - 72px); width: 100%; position: relative; }

.map-sidebar {
    position: absolute; top: calc(72px + 1rem); left: 1rem; width: 320px;
    max-height: calc(100% - 72px - 2rem); background: var(--pt-bg-card); backdrop-filter: blur(20px);
    border-radius: var(--pt-radius); border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-lg); z-index: 1000; overflow-y: auto; transition: var(--pt-transition);
}

.map-controls {
    position: absolute; top: calc(72px + 1rem); right: 1rem; z-index: 1000;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.map-control-btn {
    width: 42px; height: 42px; border-radius: var(--pt-radius-sm);
    background: var(--pt-bg-card); backdrop-filter: blur(12px);
    border: 1px solid var(--pt-border); color: var(--pt-text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--pt-transition); box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.map-control-btn:hover, .map-control-btn.active { background: var(--pt-red); color: white; border-color: transparent; }
/* Focus-visible ring for keyboard users */
.map-control-btn:focus-visible { outline: 3px solid var(--pt-red); outline-offset: 2px; }

/* ── Map layer picker panel ── */
.map-layer-picker {
    position: absolute;
    top: calc(72px + 1rem);
    right: 3.5rem; /* sits left of the controls column */
    z-index: 1001;
    background: var(--pt-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    box-shadow: var(--pt-shadow-lg);
    padding: 0.5rem;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: fadeInScale 0.15s ease-out;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92) translateX(8px); }
    to   { opacity: 1; transform: scale(1) translateX(0); }
}
.map-layer-picker[hidden] { display: none; }
.map-layer-picker-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pt-text-secondary);
    padding: 0.25rem 0.5rem 0.4rem;
}
.map-layer-opt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid transparent;
    border-radius: calc(var(--pt-radius-sm) - 2px);
    background: transparent;
    color: var(--pt-text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--pt-transition);
}
.map-layer-opt:hover { background: var(--pt-border); }
.map-layer-opt.active, .map-layer-opt[aria-pressed="true"] {
    background: var(--pt-red);
    color: white;
    border-color: transparent;
}
.map-layer-opt:focus-visible { outline: 3px solid var(--pt-red); outline-offset: 1px; }

/* Leaflet overrides */
.leaflet-popup-content-wrapper { background: var(--pt-bg-card-solid); color: var(--pt-text); border-radius: var(--pt-radius); border: 1px solid var(--pt-border); box-shadow: var(--pt-shadow-lg); font-family: var(--pt-font); }
.leaflet-popup-tip { background: var(--pt-bg-card-solid); }
.leaflet-popup-content { margin: 1rem; font-family: var(--pt-font); font-size: 0.88rem; line-height: 1.5; }
.leaflet-tile { image-rendering: -webkit-optimize-contrast; }

/* Smooth popup spring + crisper tile fade-in (respects reduced-motion below). */
.leaflet-popup {
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease-out;
    will-change: transform, opacity;
}
.leaflet-fade-anim .leaflet-tile {
    transition: opacity 0.28s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    .leaflet-popup,
    .leaflet-fade-anim .leaflet-tile { transition: none !important; }
}
.leaflet-container:focus { outline: none; }
.leaflet-control-zoom a { background: var(--pt-bg-card-solid) !important; color: var(--pt-text) !important; border-color: var(--pt-border) !important; width: 34px !important; height: 34px !important; line-height: 34px !important; }
.leaflet-control-zoom a:hover { background: var(--pt-red) !important; color: white !important; border-color: transparent !important; }

/* Marker pin */
.custom-marker { background: none !important; border: none !important; }
.marker-pin {
    position: relative; width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
    background: var(--pin-color, #C8102E); transform: rotate(-45deg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 12px var(--pin-glow, rgba(200,16,46,0.3));
    border: 2.5px solid rgba(255,255,255,0.85); transition: transform 0.2s ease;
}
.marker-pin:hover { transform: rotate(-45deg) scale(1.2); }
.marker-pin i { transform: rotate(45deg); color: white; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.marker-pin-tail { display: none; }

/* Marker pulse ring for high severity */
.marker-pulse {
    position: absolute;
    width: 34px; height: 34px;
    left: 0; top: 0;
    border-radius: 50%;
    border: 2px solid var(--pulse-color, #dc3545);
    animation: markerPulse 2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes markerPulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Custom cluster styling — cleaner, smaller, no green blob */
.custom-cluster { background: none !important; border: none !important; }
.cluster-circle {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--pt-font); font-weight: 800; font-size: 13px;
    color: white; position: relative;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    border: 2.5px solid rgba(255,255,255,0.5);
    transition: transform 0.2s ease;
}
.cluster-circle:hover { transform: scale(1.1); }
.cluster-circle span { position: relative; z-index: 1; }
.custom-cluster.marker-cluster-small .cluster-circle {
    background: linear-gradient(135deg, #198754, #20c997);
    width: 32px; height: 32px; font-size: 11px;
}
.custom-cluster.marker-cluster-medium .cluster-circle {
    background: linear-gradient(135deg, #e67e22, #f5a742);
    width: 38px; height: 38px; font-size: 12px;
}
.custom-cluster.marker-cluster-large .cluster-circle {
    background: linear-gradient(135deg, #C8102E, #E8344F);
    width: 44px; height: 44px; font-size: 14px;
}

/* Override default markercluster styles to prevent green blobs */
.marker-cluster { background: none !important; }
.marker-cluster div { background: none !important; box-shadow: none !important; }

/* ── Oblast region styles ── */
.oblast-rect { cursor: pointer; transition: all 0.3s ease; }

.oblast-label {
    pointer-events: none;
    z-index: 400;
}
.oblast-label span {
    display: inline-block;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.7);
    font-family: var(--pt-font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
[data-bs-theme="light"] .oblast-label span {
    background: rgba(255, 255, 255, 0.82);
    color: rgba(26, 45, 74, 0.65);
    border-color: rgba(0,0,0,0.08);
    text-shadow: none;
}

/* Oblast highlight on click — brief red border animation */
.oblast-highlight-active {
    animation: oblastFlash 0.6s ease-out;
}
@keyframes oblastFlash {
    0%   { stroke-opacity: 0; fill-opacity: 0; }
    30%  { stroke-opacity: 1; fill-opacity: 0.12; }
    100% { stroke-opacity: 1; fill-opacity: 0.08; }
}

/* Oblast info popup */
.oblast-info-popup .leaflet-popup-content-wrapper {
    background: var(--pt-bg-card-solid);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    box-shadow: 0 12px 48px rgba(0,0,0,0.3);
    min-width: 220px;
}
.oblast-popup { font-family: var(--pt-font); }
.oblast-popup-name {
    font-size: 1rem; font-weight: 800;
    margin-bottom: 0.75rem; color: var(--pt-text);
}
.oblast-popup-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem; margin-bottom: 0.65rem;
}
.oblast-stat { text-align: center; }
.oblast-stat-num {
    display: block; font-size: 1.2rem; font-weight: 800;
    color: var(--pt-text); line-height: 1.2;
}
.oblast-stat-lbl {
    font-size: 0.62rem; color: var(--pt-text-secondary);
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.oblast-popup-hint {
    font-size: 0.72rem; color: var(--pt-text-secondary);
    text-align: center; border-top: 1px solid var(--pt-border);
    padding-top: 0.5rem; margin-top: 0.15rem;
}

/* ── Improved popup styling ── */
.pt-popup .leaflet-popup-content-wrapper {
    background: var(--pt-bg-card-solid);
    color: var(--pt-text);
    border-radius: var(--pt-radius);
    border: 1px solid var(--pt-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    font-family: var(--pt-font);
}
.pt-popup .leaflet-popup-tip { background: var(--pt-bg-card-solid); }
.pt-popup .leaflet-popup-content { margin: 0; padding: 0; }

/* Map fallback shell when interactive libraries fail */
.map-fallback-shell {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 1.25rem; background: radial-gradient(circle at top, rgba(200,16,46,0.08), transparent 45%), var(--pt-bg-primary, #0b1220);
}
.map-fallback-card {
    width: min(100%, 980px); background: var(--pt-bg-card-solid); border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg); box-shadow: var(--pt-shadow-lg); overflow: hidden;
}
.map-fallback-icon {
    width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 1.25rem auto 0.75rem; color: var(--pt-red); background: rgba(200,16,46,0.12); font-size: 1.4rem;
}
.map-fallback-card h3 {
    margin: 0 1.25rem 0.35rem; text-align: center; font-size: 1.1rem; font-weight: 800;
}
.map-fallback-card p {
    margin: 0 auto 1rem; max-width: 42rem; padding: 0 1.25rem; text-align: center; color: var(--pt-text-secondary);
}
.map-fallback-frame {
    display: block; width: 100%; height: min(62vh, 540px); border: 0; background: #d7e3ef;
}

.compat-mode-shell {
    padding: 0;
    background: #09101c;
}
.compat-map-frame {
    height: 100%; min-height: calc(100vh - 72px);
}
.compat-marker-button {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -78%);
    z-index: 640; width: 58px; height: 74px; padding: 0; border: 0; background: transparent;
    cursor: pointer;
}
.compat-marker-pulse {
    position: absolute; left: 50%; top: 24px; width: 22px; height: 22px; margin-left: -11px;
    border-radius: 50%; background: rgba(200,16,46,0.18); animation: compatMarkerPulse 1.9s ease-out infinite;
}
.compat-marker-pin {
    position: absolute; left: 50%; top: 0; width: 42px; height: 42px; margin-left: -21px;
    border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    background: linear-gradient(135deg, #C8102E, #ff596f); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(200,16,46,0.34); border: 2px solid rgba(255,255,255,0.92);
}
.compat-marker-pin i {
    transform: rotate(45deg); font-size: 0.95rem;
}
.compat-marker-button.is-active .compat-marker-pin,
.compat-marker-button:hover .compat-marker-pin {
    filter: brightness(1.06); transform: rotate(-45deg) scale(1.05);
}
@keyframes compatMarkerPulse {
    0% { transform: scale(0.7); opacity: 0.75; }
    100% { transform: scale(2.8); opacity: 0; }
}
.compat-report-card {
    position: absolute; right: 1rem; bottom: 1rem; z-index: 650;
    width: min(320px, calc(100vw - 17rem)); overflow: hidden;
    border-radius: var(--pt-radius); border: 1px solid var(--pt-border);
    background: linear-gradient(180deg, rgba(9,16,28,0.95), rgba(12,20,34,0.93)); box-shadow: 0 20px 46px rgba(0,0,0,0.28);
    backdrop-filter: blur(16px); transition: transform 0.25s ease, opacity 0.25s ease;
}
.compat-report-card:not(.is-open) {
    transform: translateY(calc(100% - 56px));
}
.compat-report-card:not(.is-open) .compat-report-media,
.compat-report-card:not(.is-open) .popup-badges,
.compat-report-card:not(.is-open) .popup-meta,
.compat-report-card:not(.is-open) .popup-coords,
.compat-report-card:not(.is-open) .compat-report-desc,
.compat-report-card:not(.is-open) .compat-report-note,
.compat-report-card:not(.is-open) .compat-report-actions {
    display: none;
}
.compat-report-media {
    width: 100%; height: 152px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.compat-report-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.compat-report-body {
    padding: 0.8rem 0.9rem 0.9rem;
}
.compat-report-topline {
    display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.compat-report-eyebrow {
    display: inline-flex; align-items: center; margin-bottom: 0.45rem;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    color: #dbe7f5; opacity: 0.9;
}
.compat-card-close {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05); color: #dbe7f5; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--pt-transition-fast); flex: 0 0 auto;
}
.compat-card-close:hover {
    background: rgba(255,255,255,0.12);
}
.compat-report-card .popup-title {
    font-size: 0.92rem;
}
.compat-report-card .popup-meta {
    margin-bottom: 0.2rem;
}
.compat-report-card .popup-coords {
    margin-bottom: 0.28rem;
}
.compat-report-desc {
    font-size: 0.78rem; color: var(--pt-text-secondary); margin: 0.4rem 0 0; line-height: 1.42;
}
.compat-report-note {
    margin: 0.6rem 0 0; font-size: 0.71rem; color: var(--pt-text-secondary); opacity: 0.82;
}
.compat-report-actions {
    margin-top: 0.7rem; display: flex; gap: 0.55rem; flex-wrap: wrap;
}
.compat-report-link {
    display: inline-flex; align-items: center; padding: 0.52rem 0.8rem;
    border-radius: 999px; background: rgba(200,16,46,0.14); color: #ffd6dc;
    border: 1px solid rgba(200,16,46,0.28); font-size: 0.76rem; font-weight: 700;
    text-decoration: none; transition: var(--pt-transition-fast);
}
.compat-report-link:hover {
    background: rgba(200,16,46,0.22); color: #fff; border-color: rgba(200,16,46,0.42);
}

body.compat-mode-active .map-controls {
    display: none;
}
body.compat-mode-active .map-sidebar {
    top: 5.25rem;
    left: 0.75rem;
    width: 220px;
    max-height: calc(100% - 6rem);
    padding: 0.95rem !important;
    background: linear-gradient(180deg, rgba(12, 22, 38, 0.82), rgba(12, 22, 38, 0.68));
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 12px 34px rgba(0,0,0,0.16);
}
body.compat-mode-active .map-sidebar .form-select-pt {
    padding: 0.62rem 0.8rem;
    font-size: 0.82rem;
}
body.compat-mode-active .map-sidebar h2 {
    font-size: 0.98rem !important;
}
body.compat-mode-active .legend-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
}
body.compat-mode-active .sidebar-stat {
    padding: 0.55rem 0.3rem;
}
body.compat-mode-active .sidebar-stat-num {
    font-size: 0.92rem;
}
body.compat-mode-active .fab-report {
    bottom: 1.25rem;
}
body.compat-mode-active .navbar-glass {
    background: linear-gradient(90deg, rgba(8,14,26,0.9), rgba(15,22,36,0.82));
    border-bottom-color: rgba(255,255,255,0.08);
}

@media (max-width: 991.98px) {
    .compat-report-card {
        top: auto; left: 0.9rem; right: 0.9rem; bottom: 5.4rem; width: auto; max-width: none;
    }
    .compat-report-media {
        height: 160px;
    }
    .compat-marker-button {
        top: 47%;
    }
    body.compat-mode-active .map-sidebar {
        top: 5rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-height: calc(100% - 6rem);
        padding: 1rem !important;
    }
}

/* ── Report popup layout ── */
.report-popup { overflow: hidden; border-radius: var(--pt-radius); }
.popup-img-wrap {
    width: 100%; max-height: 180px; overflow: hidden;
    border: 0; border-bottom: 1px solid var(--pt-border);
    background: rgba(0,0,0,0.15);
    padding: 0; cursor: zoom-in; display: block;
}
.popup-img-wrap:hover img { transform: scale(1.04); }
.popup-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; max-height: 180px;
    transition: transform 0.4s ease;
}
.popup-body { padding: 0.75rem 0.85rem; }
.popup-title {
    display: block; font-size: 0.88rem; font-weight: 700;
    margin-bottom: 0.45rem; line-height: 1.3;
}
.popup-badges {
    display: flex; gap: 0.35rem; flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.popup-meta {
    font-size: 0.72rem; color: var(--pt-text-secondary);
    margin-bottom: 0.3rem;
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.popup-vcount.is-bumped { animation: pt-pop 0.4s ease; }
.popup-oblast { font-size: 0.7rem; color: var(--pt-text-secondary); }
.popup-coords {
    display: block; font-size: 0.68rem;
    color: var(--pt-text-secondary); opacity: 0.8;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 0.35rem;
}
.popup-desc {
    font-size: 0.78rem; color: var(--pt-text-secondary);
    margin: 0.35rem 0 0; line-height: 1.45;
    max-height: 60px; overflow-y: auto;
}

/* ── Popup action row (verify/dispute/share/directions/copy) ── */
.popup-actions {
    display: flex; flex-wrap: wrap; gap: 0.3rem;
    margin-top: 0.6rem; padding-top: 0.55rem;
    border-top: 1px solid var(--pt-border);
}
.popup-actions .btn-pt-ghost {
    font-size: 0.7rem; padding: 0.32rem 0.55rem; line-height: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--pt-border);
    color: var(--pt-text); border-radius: 8px;
    transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
    text-decoration: none; display: inline-flex; align-items: center;
}
.popup-actions .btn-pt-ghost:hover { background: rgba(200,16,46,0.12); border-color: rgba(200,16,46,0.4); transform: translateY(-1px); }
.popup-actions .btn-pt-ghost:focus-visible { outline: 2px solid var(--pt-red); outline-offset: 2px; }
.popup-actions .is-voted { background: rgba(0,111,62,0.15); border-color: rgba(0,111,62,0.45); }

/* ── Fix-pothole CTA (green, prominent) and pending-fix banner ── */
.popup-actions .btn-pt-fix {
    font-size: 0.72rem;
    padding: 0.36rem 0.62rem;
    line-height: 1;
    background: linear-gradient(135deg, #1ea25c 0%, #14803f 100%);
    color: #fff;
    border: 1px solid #0e6b32;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(20,128,63,0.28);
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.popup-actions .btn-pt-fix:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 6px 14px rgba(20,128,63,0.36);
    color: #fff;
}
.popup-actions .btn-pt-fix:focus-visible { outline: 2px solid #1ea25c; outline-offset: 2px; }
.popup-pending-fix {
    margin-top: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: rgba(253,126,20,0.12);
    border: 1px solid rgba(253,126,20,0.32);
    color: #b85a00;
    font-size: 0.78rem;
    line-height: 1.35;
}
[data-bs-theme="dark"] .popup-pending-fix { color: #ffb277; }

/* ── Status-aware marker tints (pulse color comes from --pulse-color inline) ── */
.custom-marker.marker-fixed .marker-pin { animation: none; }
.custom-marker.marker-pending-fix .marker-pin { animation: none; }

/* ── Fix-mode page accent on the report form ── */
.pt-fix-mode .submit-btn,
.pt-fix-mode #submitReport {
    background: linear-gradient(135deg, #1ea25c 0%, #14803f 100%) !important;
    border-color: #0e6b32 !important;
    box-shadow: 0 8px 22px rgba(20,128,63,0.28) !important;
}
.pt-fix-mode .report-stage-card,
.pt-fix-mode .report-form-shell {
    background:
        linear-gradient(145deg, rgba(11, 26, 22, 0.98), rgba(8, 17, 15, 0.96)),
        linear-gradient(135deg, rgba(30,162,92,0.18), transparent 42%, rgba(255,255,255,0.04));
}

.pt-fix-mode .hero-badge,
.pt-fix-mode .report-stage-pill,
.pt-fix-mode .report-tip-pill {
    border-color: rgba(30,162,92,0.22);
    background: rgba(30,162,92,0.12);
    color: #aaf2c8;
}

.pt-fix-mode .report-stage-note,
.pt-fix-mode .report-submit-footnote,
.pt-fix-mode .report-status-item.is-live,
.pt-fix-mode .report-status-item.is-fix {
    border-color: rgba(30,162,92,0.24);
    background: rgba(30,162,92,0.08);
}

.pt-fix-mode .report-stage-pill i,
.pt-fix-mode .report-tip-pill i,
.pt-fix-mode .report-stage-note i,
.pt-fix-mode .report-submit-footnote i {
    color: #8df0b8;
}
.pt-fix-mode .submit-btn:hover,
.pt-fix-mode #submitReport:hover { filter: brightness(1.05); }

@keyframes pt-pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ── Lightbox ── */
.pt-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 2rem;
}
.pt-lightbox.is-open { display: flex; animation: pt-fade-in 0.2s ease; }
.pt-lightbox img {
    max-width: 100%; max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.pt-lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.12); color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
}
.pt-lightbox-close:hover { background: rgba(255,255,255,0.22); transform: scale(1.06); }

@keyframes pt-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── List view drawer ── */
.list-view-panel {
    position: absolute; top: 5.5rem; right: 1rem;
    width: 360px; max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 7rem);
    background: var(--pt-bg-card); backdrop-filter: blur(20px);
    border: 1px solid var(--pt-border); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.4);
    z-index: 700; overflow: hidden;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: scale(0.98); transform-origin: top right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column;
}
.list-view-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1); }
.list-view-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--pt-border);
    font-size: 0.85rem;
}
.list-view-head .btn { color: var(--pt-text-secondary); padding: 0.2rem 0.5rem; }
.list-view-body {
    overflow-y: auto; padding: 0.5rem;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.list-view-item {
    text-align: left; width: 100%;
    background: rgba(255,255,255,0.03); border: 1px solid var(--pt-border);
    border-radius: 10px; padding: 0.55rem 0.7rem; color: var(--pt-text);
    cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.list-view-item:hover { background: rgba(200,16,46,0.08); border-color: rgba(200,16,46,0.35); transform: translateX(-2px); }
.list-view-item .lv-row1 { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.list-view-item .lv-id   { margin-left: auto; font-size: 0.7rem; color: var(--pt-text-secondary); font-weight: 700; }
.list-view-item .lv-row2 { font-size: 0.72rem; color: var(--pt-text-secondary); }
.list-view-item .lv-row3 { font-size: 0.74rem; color: var(--pt-text); margin-top: 0.25rem; line-height: 1.4; max-height: 2.8em; overflow: hidden; }

/* ── Reduced motion safety ── */
@media (prefers-reduced-motion: reduce) {
    .list-view-panel, .pt-lightbox, .popup-actions .btn-pt-ghost,
    .popup-img-wrap img { transition: none !important; animation: none !important; }
    *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ── Better severity badge contrast ── */
.badge-status {
    display: inline-flex; align-items: center; gap: 0.32rem;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.01em;
}
.severity-high  { background: rgba(220,53,69,0.15); color: #ff6b7a; border: 1px solid rgba(220,53,69,0.3); }
.severity-medium { background: rgba(255,193,7,0.14); color: #ffca2c; border: 1px solid rgba(255,193,7,0.3); }
.severity-low   { background: rgba(59,130,246,0.14); color: #6ea8fe; border: 1px solid rgba(59,130,246,0.3); }
.status-open       { background: rgba(220,53,69,0.1); color: #ff6b7a; border: 1px solid rgba(220,53,69,0.25); }
.status-inprogress { background: rgba(255,193,7,0.1); color: #ffca2c; border: 1px solid rgba(255,193,7,0.25); }
.status-fixed      { background: rgba(25,135,84,0.1); color: #36d986; border: 1px solid rgba(25,135,84,0.25); }

[data-bs-theme="light"] .severity-high  { background: rgba(220,53,69,0.1); color: #b02a37; border-color: rgba(220,53,69,0.25); }
[data-bs-theme="light"] .severity-medium { background: rgba(255,193,7,0.1); color: #997404; border-color: rgba(255,193,7,0.25); }
[data-bs-theme="light"] .severity-low   { background: rgba(59,130,246,0.1); color: #2563eb; border-color: rgba(59,130,246,0.25); }
[data-bs-theme="light"] .status-open       { color: #b02a37; }
[data-bs-theme="light"] .status-inprogress { color: #997404; }
[data-bs-theme="light"] .status-fixed      { color: #146c43; }

/* ── Map control button improvements ── */
.map-control-btn.active {
    background: var(--pt-red);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(200,16,46,0.4);
}
.map-control-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ── Map sidebar improvements ── */
.map-sidebar {
    background: var(--pt-bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control-pt, .form-select-pt {
    background: var(--pt-input-bg); border: 1px solid var(--pt-border);
    color: var(--pt-text); border-radius: var(--pt-radius-sm);
    padding: 0.7rem 1rem; font-family: var(--pt-font); transition: var(--pt-transition-fast);
}
.form-control-pt:focus, .form-select-pt:focus {
    border-color: var(--pt-red); box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
    background: var(--pt-input-bg); color: var(--pt-text);
}
.form-label-pt { font-weight: 600; font-size: 0.88rem; color: var(--pt-text); margin-bottom: 0.4rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-pt { padding: 5rem 0; }
.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.section-subtitle { color: var(--pt-text-secondary); font-size: 1.05rem; max-width: 580px; }
.section-divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--pt-red), var(--pt-green)); border-radius: 2px; margin: 1rem 0 2rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card { background: var(--pt-bg-card); backdrop-filter: blur(12px); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 1.75rem; position: relative; }
.testimonial-card::before { content: '\201C'; font-size: 3.5rem; color: var(--pt-red); opacity: 0.2; position: absolute; top: 0.5rem; left: 1rem; line-height: 1; font-family: Georgia, serif; }
.testimonial-text { font-style: italic; color: var(--pt-text-secondary); margin-bottom: 1rem; padding-top: 1.5rem; font-size: 0.92rem; line-height: 1.65; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }

/* ============================================================
   QUICK REPORT STRIP
   ============================================================ */
.quick-report-strip {
    background: linear-gradient(135deg, rgba(200,16,46,0.08), rgba(0,111,62,0.06));
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius-lg);
    padding: 2rem; display: flex; align-items: center; gap: 2rem; transition: var(--pt-transition);
}
.quick-report-strip:hover { border-color: var(--pt-red); box-shadow: var(--pt-shadow-glow); }

/* ============================================================
   LOADING & ANIMATIONS
   ============================================================ */
.loading-overlay { position: fixed; inset: 0; background: rgba(8,14,26,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9999; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounceIn { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-slide-in-left { animation: slideInLeft 0.6s ease forwards; }
.animate-bounce-in { animation: bounceIn 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; } .delay-5 { animation-delay: 0.5s; }

.skeleton { background: linear-gradient(90deg, var(--pt-bg-card) 25%, var(--pt-bg-card-hover) 50%, var(--pt-bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--pt-radius-sm); }

/* Map fetch skeleton — civil-service shimmer while /api/reports loads */
.map-data-skeleton {
    position: absolute; inset: 0; z-index: 450;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    background: color-mix(in srgb, var(--pt-bg) 72%, transparent);
    backdrop-filter: blur(2px);
}
.map-data-skeleton__panel {
    width: min(320px, 88vw);
    padding: 1.25rem 1.35rem;
    border-radius: var(--pt-radius-lg);
    border: 1px solid var(--pt-border);
    background: color-mix(in srgb, var(--pt-bg-card-solid) 92%, transparent);
    box-shadow: var(--pt-shadow-md);
}
.map-data-skeleton__line { border-radius: 8px; }
.map-data-skeleton__line--title { height: 14px; width: 58%; margin-bottom: 0.65rem; }
.map-data-skeleton__line--sub { height: 10px; width: 42%; margin-bottom: 1rem; opacity: 0.85; }
.map-data-skeleton__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-bottom: 0.85rem; }
.map-data-skeleton__stat { height: 42px; border-radius: 10px; }
.map-data-skeleton__hint {
    margin: 0; font-size: 0.78rem; color: var(--pt-text-secondary); text-align: center;
}
.sidebar-stat-num--loading {
    display: inline-block; min-width: 1.75rem; height: 1.1rem; border-radius: 6px; vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
    .map-data-skeleton .cs-skeleton::after { animation: none !important; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.btn-back-to-top {
    position: fixed; bottom: 5.5rem; right: 1.5rem; width: 44px; height: 44px;
    display: none; align-items: center; justify-content: center; z-index: 1039;
    background: var(--pt-bg-card-solid); border: 1px solid var(--pt-border); border-radius: 50%;
    color: var(--pt-text); font-size: 1rem; cursor: pointer; transition: var(--pt-transition); box-shadow: var(--pt-shadow); opacity: 0;
}
.btn-back-to-top.show { display: flex !important; opacity: 1; }
.btn-back-to-top:hover { background: var(--pt-red); color: white; border-color: transparent; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--pt-footer-bg); border-top: 1px solid var(--pt-border); color: var(--pt-text-secondary); padding: 3rem 0 1.5rem; }
.site-footer a { color: var(--pt-text-secondary); font-size: 0.88rem; }
.site-footer a:hover { color: var(--pt-red-light); }
.footer-brand { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-divider { border-top: 1px solid var(--pt-border); margin: 1.5rem 0; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.impact-number { font-size: 2.5rem; font-weight: 900; color: var(--pt-red-light); }
.timeline-item { position: relative; padding-left: 2rem; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; background: var(--pt-red); border-radius: 50%; }
.timeline-item::after { content: ''; position: absolute; left: 5px; top: 24px; width: 2px; height: calc(100% - 4px); background: var(--pt-border); }
.timeline-item:last-child::after { display: none; }

/* Charts */
.chart-container { position: relative; width: 100%; max-height: 400px; }

/* Error pages */
.error-page { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 8rem; font-weight: 900; background: linear-gradient(135deg, var(--pt-red), var(--pt-red-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }

/* ============================================================
   PREVIEW NAV BAR
   ============================================================ */
.preview-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: rgba(8,14,26,0.95); backdrop-filter: blur(20px);
    border-top: 2px solid var(--pt-red); padding: 0.6rem 1.5rem;
}
.preview-nav .btn-preview { padding: 0.35rem 0.9rem; font-size: 0.78rem; border-radius: 50px; font-weight: 600; transition: var(--pt-transition-fast); }
.preview-nav .btn-preview:hover { transform: translateY(-2px); }
.preview-badge { background: linear-gradient(135deg, var(--pt-red), var(--pt-green)); color: white; padding: 0.25rem 0.7rem; border-radius: 50px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   SEVERITY SELECT (Report page)
   ============================================================ */
.severity-option {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm);
    cursor: pointer; transition: var(--pt-transition); margin-bottom: 0.5rem;
}
.severity-option:hover, .severity-option.selected { border-color: var(--pt-red); background: rgba(200,16,46,0.06); }
.severity-icon {
    width: 40px; height: 40px; border-radius: var(--pt-radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .navbar-glass, .site-footer, .btn-back-to-top, .fab-report, .map-sidebar, .map-controls, .theme-toggle, #langToggle, .preview-nav { display: none !important; }
    main { padding-top: 0 !important; }
    body { color: #000 !important; background: #fff !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .map-sidebar { width: 100%; position: relative; top: 0; left: 0; max-height: none; border-radius: 0; }
    .hero-section { min-height: 75vh; }
    .report-page-shell { grid-template-columns: 1fr; }
    .report-page-rail { position: static; }
}
@media (max-width: 767.98px) {
    .section-pt { padding: 3rem 0; }
    .section-title { font-size: 1.75rem; }
    .stat-number { font-size: 2rem; }
    .quick-report-strip { flex-direction: column; text-align: center; gap: 1rem; }
    .fab-report { width: 56px; height: 56px; font-size: 1.3rem; bottom: 5rem; }
    .fab-report .fab-label { display: none; }
    .report-section-compact { padding-top: 1rem; }
    .report-stage-grid { grid-template-columns: 1fr; }
    .report-form-shell,
    .report-stage-card,
    .report-status-panel,
    .report-fix-context { padding: 1rem; }
}
@media (max-width: 575.98px) {
    .hero-section { min-height: 65vh; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .btn-pt-primary, .btn-pt-outline, .btn-pt-green { padding: 0.65rem 1.5rem; font-size: 0.88rem; }
    .upload-hero { padding: 2rem 1.25rem; }
    .report-stage-title { font-size: 1.8rem; }
    .report-stage-subtitle { font-size: 0.95rem; }
    .report-stage-pill,
    .report-tip-pill { width: 100%; justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.visually-hidden-focusable:focus { position: fixed; top: 0; left: 0; z-index: 9999; padding: 1rem; background: var(--pt-red); color: white; font-weight: bold; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .fab-report { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   DEMO MODE BANNER
   ============================================================ */
.demo-banner {
    position: fixed; top: 72px; left: 0; right: 0; z-index: 1049;
    background: linear-gradient(135deg, rgba(255,184,0,0.12), rgba(200,16,46,0.08));
    border-bottom: 1px solid rgba(255,184,0,0.2); padding: 0.5rem 1rem;
    text-align: center; font-size: 0.78rem; color: var(--pt-gold);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.5s ease;
}
.demo-banner a { color: var(--pt-gold); text-decoration: underline; font-weight: 600; }

/* ============================================================
   ENHANCED HERO PARTICLES
   ============================================================ */
.hero-particles {
    position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-particle {
    position: absolute; border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}
@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ============================================================
   ENHANCED PAGE TRANSITION
   ============================================================ */
.page-loaded main { animation: pageEnter 0.5s ease-out; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   ENHANCED CARD HOVER GLOW
   ============================================================ */
.card-pt::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, rgba(200,16,46,0.2), rgba(0,111,62,0.2)); opacity: 0; transition: opacity 0.4s ease; z-index: -1; }
.card-pt:hover::before { opacity: 1; }

/* ============================================================
   LOADING PULSE
   ============================================================ */
.pulse-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--pt-red); animation: pulseDot 1.4s infinite ease-in-out both;
}
.pulse-dot:nth-child(1) { animation-delay: -0.32s; }
.pulse-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes pulseDot { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
    background: linear-gradient(90deg, var(--pt-red), var(--pt-gold), var(--pt-green));
    transition: width 0.1s linear; width: 0%;
}

/* ============================================================
   ENHANCED MOBILE NAV
   ============================================================ */
@media (max-width: 991.98px) {
    .navbar-collapse { background: var(--pt-navbar-bg); backdrop-filter: blur(24px); border-radius: 0 0 var(--pt-radius) var(--pt-radius); border: 1px solid var(--pt-border); border-top: none; padding: 0.75rem; margin-top: 0.5rem; }
}

/* ============================================================
   SMOOTH FOCUS TRANSITIONS
   ============================================================ */
:focus-visible { outline: 2.5px solid var(--pt-red); outline-offset: 3px; transition: outline-offset 0.15s ease; }
:focus-visible:active { outline-offset: 1px; }

/* ============================================================
   NAVBAR ACTIVE INDICATOR
   ============================================================ */
.navbar-glass .nav-link[aria-current="page"] {
    color: var(--pt-text);
    position: relative;
}
.navbar-glass .nav-link[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--pt-red), var(--pt-red-light));
    border-radius: 2px;
}

/* ============================================================
   TEXT BALANCE FOR HEADINGS
   ============================================================ */
.section-title, .hero-title, h1, h2 { text-wrap: balance; }

/* ============================================================
   STAT CARD NUMBER GLOW
   ============================================================ */
.stat-card:hover .stat-number {
    filter: drop-shadow(0 0 12px rgba(200,16,46,0.3));
    transition: filter 0.4s ease;
}
.stat-card:hover .impact-number {
    filter: drop-shadow(0 0 12px rgba(200,16,46,0.3));
    transition: filter 0.4s ease;
}

/* ============================================================
   HERO FLOATING CHIP ANIMATION
   ============================================================ */
@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.hero-section .glass { animation: floatChip 4s ease-in-out infinite; }

/* ============================================================
   LIGHT THEME REFINEMENTS
   ============================================================ */
[data-bs-theme="light"] .hero-title { color: #fff; }
[data-bs-theme="light"] .hero-subtitle { color: rgba(255,255,255,0.7); }
[data-bs-theme="light"] .btn-pt-outline { border-color: rgba(255,255,255,0.3); color: white; }
[data-bs-theme="light"] .btn-pt-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); color: white; }
[data-bs-theme="light"] .stat-card { background: var(--pt-bg-card); border: 1px solid var(--pt-border); }

/* ============================================================
   TESTIMONIAL STAR RATINGS
   ============================================================ */
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
    padding-top: 1.25rem;
}
.testimonial-stars i {
    font-size: 0.82rem;
    color: var(--pt-gold);
}

/* ============================================================
   CARD CONTAIN (Performance)
   ============================================================ */
.card-pt, .stat-card, .dashboard-card, .testimonial-card { contain: layout style; }

/* ============================================================
   v3.2.0 — ELEVATION UPGRADES
   Premium refinements: depth · motion · color · typography
   ============================================================ */

/* ── Extended design tokens ── */
:root {
    --pt-shadow-xs:    0 1px 3px rgba(0,0,0,0.08);
    --pt-shadow-sm:    0 2px 12px rgba(0,0,0,0.10);
    --pt-shadow-xl:    0 24px 80px rgba(0,0,0,0.28);
    --pt-easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --pt-easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --pt-tracking-tight: -0.03em;
}

/* ── Richer hero gradient mesh ── */
.hero-section {
    background: linear-gradient(145deg,
        #060C1A 0%,
        #0B1424 25%,
        #0F1E2E 55%,
        #0A1D1C 80%,
        #081510 100%
    );
}
[data-bs-theme="light"] .hero-section {
    background: linear-gradient(145deg,
        #18294A 0%,
        #26395C 30%,
        #1C3A50 60%,
        #132E28 100%
    );
}

/* ── Multi-layer radial glow overlays ── */
.hero-section::before {
    background:
        radial-gradient(ellipse 800px 600px at 10% 60%,  rgba(200,16,46,0.09) 0%, transparent 65%),
        radial-gradient(ellipse 700px 500px at 90% 20%,  rgba(0,111,62,0.06)  0%, transparent 65%),
        radial-gradient(ellipse 500px 400px at 50% 110%, rgba(255,184,0,0.04) 0%, transparent 60%);
}

/* ── Hero badge glow animation ── */
.hero-badge {
    box-shadow: 0 0 24px rgba(200,16,46,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
    animation: heroBadgeGlow 3.5s ease-in-out infinite;
    letter-spacing: 0.015em;
}
@keyframes heroBadgeGlow {
    0%,100% { box-shadow: 0 0 20px rgba(200,16,46,0.08), inset 0 1px 0 rgba(255,255,255,0.07); }
    50%      { box-shadow: 0 0 36px rgba(200,16,46,0.18), inset 0 1px 0 rgba(255,255,255,0.12); }
}

/* ── Hero title — slightly larger & deeper shadow ── */
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    text-shadow: 0 4px 48px rgba(0,0,0,0.25);
    letter-spacing: var(--pt-tracking-tight);
}

/* ── Richer, warmer text gradient ── */
.text-gradient {
    background: linear-gradient(135deg, #E82040 0%, #FF506A 45%, #FFB800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Tabular numerals for counters ── */
.stat-number, [data-count] {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

/* ── Stat card — unique colored top bars ── */
.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #C8102E, #FF3055); opacity: 1; }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #e67e22, #f5a742); opacity: 1; }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #FFB800, #FFD060); opacity: 1; }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #006F3E, #00994F); opacity: 1; }

/* ── Status badge — animated dot indicator ── */
.badge-status { display: inline-flex; align-items: center; gap: 0.32rem; }
.badge-status::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
}
.status-open::before, .status-reported::before {
    animation: dotPulse 1.9s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.65); }
}

/* ── Section divider — extended with end accents ── */
.section-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--pt-red), var(--pt-gold), var(--pt-green));
    border-radius: 3px;
    margin-top: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
}
.section-divider::before {
    content: '';
    position: absolute;
    left: -10px; top: 0;
    width: 5px; height: 3px;
    background: var(--pt-red);
    border-radius: 3px;
    opacity: 0.4;
}
.section-divider::after {
    content: '';
    position: absolute;
    right: -10px; top: 0;
    width: 5px; height: 3px;
    background: var(--pt-green);
    border-radius: 3px;
    opacity: 0.4;
}

/* ── Quick report strip — top accent line ── */
.quick-report-strip { position: relative; overflow: hidden; }
.quick-report-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,16,46,0.45), transparent);
}

/* ── Card — shine sweep on hover ── */
.card-pt { position: relative; overflow: hidden; }
.card-pt::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.026), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    pointer-events: none;
}
.card-pt:hover::after { left: 160%; }

/* ── Dark mode card border refinement ── */
[data-bs-theme="dark"] .card-pt          { border-color: rgba(255,255,255,0.07); }
[data-bs-theme="dark"] .card-pt:hover    { border-color: rgba(255,255,255,0.13); }
[data-bs-theme="light"] .card-pt         { background: #fff; border-color: rgba(0,0,0,0.07); }
[data-bs-theme="light"] .card-pt:hover   { background: #f9faff; box-shadow: 0 8px 32px rgba(0,0,0,0.09); border-color: rgba(200,16,46,0.18); }

/* ── Testimonial card hover elevation ── */
.testimonial-card {
    transition: transform 0.35s var(--pt-easing-smooth, ease),
                box-shadow 0.35s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 56px rgba(0,0,0,0.22);
}

/* ── Scroll progress — subtle glow ── */
.scroll-progress {
    height: 3px;
    box-shadow: 0 0 8px rgba(200,16,46,0.45);
}

/* ── Footer — Bulgarian-flag gradient accent line ── */
.site-footer { position: relative; }
.site-footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--pt-red)   25%,
        #FFFFFF         50%,
        var(--pt-green) 75%,
        transparent 100%
    );
    opacity: 0.45;
}

/* ── Social icon hover brand colors ── */
a.social-fb:hover  { color: #1877F2 !important; }
a.social-tw:hover  { color: #1DA1F2 !important; }
a.social-gh:hover  { color: #f0f6fc !important; }

/* ── Footer link underline on hover ── */
.site-footer a { text-underline-offset: 3px; }
.site-footer nav a:hover { text-decoration: underline; }

/* ── Stagger reveal for card grids ── */
[data-reveal-group] > [data-reveal]:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: 0.11s; }
[data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: 0.18s; }
[data-reveal-group] > [data-reveal]:nth-child(4) { transition-delay: 0.25s; }
[data-reveal-group] > [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-group] > [data-reveal]:nth-child(6) { transition-delay: 0.39s; }

/* ── Better focus ring ── */
:focus-visible {
    outline: 2px solid rgba(200,16,46,0.65);
    outline-offset: 4px;
    border-radius: 4px;
    transition: outline-offset 0.15s ease;
}

/* ── Button primary — deeper hover glow ── */
.btn-pt-primary { letter-spacing: 0.01em; }
.btn-pt-primary:hover {
    box-shadow: 0 8px 32px rgba(200,16,46,0.42),
                0 2px 8px rgba(200,16,46,0.3);
}

/* ── Glass chip — improved shadow ── */
.glass {
    box-shadow: 0 4px 32px rgba(0,0,0,0.18),
                inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ── Hero float animation — smoother, slower ── */
.hero-section .glass { animation-duration: 5.5s; }

/* ── Line clamp utilities ── */
.line-clamp-2 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Micro-chip utility ── */
.chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.25rem 0.72rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
    border: 1px solid var(--pt-border-light);
    color: var(--pt-text-secondary);
    background: var(--pt-glass);
    transition: var(--pt-transition-fast);
}
.chip:hover { border-color: var(--pt-red); color: var(--pt-red); }

/* ── Hero stat hover nudge ── */
.hero-stat { transition: transform 0.22s ease; display: inline-block; }
.hero-stat:hover { transform: translateY(-2px); }

/* ── Improved hero subtitle ── */
.hero-subtitle { letter-spacing: 0.005em; }

/* ── Timeline dot ring ── */
.timeline-item::before {
    box-shadow: 0 0 0 3px var(--pt-bg), 0 0 0 5px rgba(200,16,46,0.2);
}

/* ── Small-screen tweaks ── */
@media (max-width: 575.98px) {
    .hero-badge     { font-size: 0.76rem; padding: 0.33rem 0.88rem; }
    .section-title  { font-size: 1.65rem; }
    .hero-title     { font-size: 1.75rem; }
    .stat-card      { padding: 1.25rem; }
    .testimonial-card { padding: 1.25rem; }
    .quick-report-strip { gap: 0.85rem; }
}

/* ============================================================
   v3.3.0 — STATS · MAP · REPORT · ABOUT  ELEVATION PASS
   ============================================================ */

/* ── Step Indicator (Report Page) ── */
.step-indicator {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; margin-bottom: 2rem;
}
.step-ind-item {
    display: flex; flex-direction: column; align-items: center;
    position: relative; flex: 1; max-width: 110px;
}
.step-ind-item + .step-ind-item::before {
    content: ''; position: absolute; top: 17px; right: calc(50% + 2px);
    width: calc(100% - 4px); height: 2px;
    background: var(--pt-border); z-index: 0;
}
.step-ind-dot {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--pt-border); background: var(--pt-bg-card);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem; position: relative; z-index: 1;
    color: var(--pt-text-secondary);
    transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}
.step-ind-item.si-active .step-ind-dot {
    border-color: var(--pt-red); background: var(--pt-red); color: #fff;
    box-shadow: 0 0 0 4px rgba(200,16,46,0.18);
}
.step-ind-item.si-done .step-ind-dot {
    border-color: var(--pt-green); background: var(--pt-green); color: #fff;
    box-shadow: 0 0 0 4px rgba(0,111,62,0.18);
}
.step-ind-item.si-done .step-ind-num { display: none; }
.step-ind-item.si-done .step-ind-dot::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 0.72rem;
}
.step-ind-label {
    font-size: 0.7rem; font-weight: 600; margin-top: 0.4rem;
    color: var(--pt-text-secondary); text-align: center; line-height: 1.2;
}
.step-ind-item.si-active .step-ind-label { color: var(--pt-red); }
.step-ind-item.si-done   .step-ind-label { color: var(--pt-green); }

/* ── Upload Hero — animated conic ring on interact ── */
.upload-hero { position: relative; }
.upload-hero::after {
    content: ''; position: absolute; inset: -3px;
    border-radius: calc(var(--pt-radius-lg) + 4px);
    background: conic-gradient(from 0deg, var(--pt-red) 0%, var(--pt-gold) 33%, var(--pt-green) 66%, var(--pt-red) 100%);
    opacity: 0; z-index: -1;
    transition: opacity 0.35s;
    animation: ringRotate 4s linear infinite;
    animation-play-state: paused;
}
.upload-hero:hover::after,
.upload-hero.drag-over::after { opacity: 0.55; animation-play-state: running; }
@keyframes ringRotate { to { transform: rotate(360deg); } }

.upload-photo-count {
    position: absolute; top: 0.65rem; right: 0.65rem;
    background: var(--pt-red); color: #fff; border-radius: 20px;
    padding: 0.12rem 0.52rem; font-size: 0.72rem; font-weight: 700;
    opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.upload-hero.has-files .upload-photo-count { opacity: 1; }

/* ── Map sidebar legend pills ── */
.legend-pill {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.28rem 0.65rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
    /* Native-button reset: these pills are real <button> elements so keyboard and
       screen-reader users can operate them. Inherit type styling from the sidebar. */
    font-family: inherit; line-height: 1.2; color: inherit; text-align: left;
    -webkit-appearance: none; appearance: none;
    background: var(--pt-bg-secondary); border: 1px solid var(--pt-border);
    cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    white-space: nowrap;
}
.legend-pill:hover { transform: translateY(-1px); box-shadow: var(--pt-shadow-sm); }
.legend-pill:focus-visible {
    outline: 2px solid var(--pt-red);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .legend-pill { transition: none; }
    .legend-pill:hover { transform: none; }
}
.legend-pill-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-pill.lp-severe  { border-color: rgba(220,53,69,0.35); }
.legend-pill.lp-severe:hover  { background: rgba(220,53,69,0.1); }
.legend-pill.lp-medium  { border-color: rgba(255,193,7,0.35); }
.legend-pill.lp-medium:hover  { background: rgba(255,193,7,0.08); }
.legend-pill.lp-low     { border-color: rgba(59,130,246,0.35); }
.legend-pill.lp-low:hover     { background: rgba(59,130,246,0.1); }
.legend-pill.lp-pending { border-color: rgba(253,126,20,0.35); }
.legend-pill.lp-pending:hover { background: rgba(253,126,20,0.1); }
.legend-pill.lp-fixed   { border-color: rgba(25,135,84,0.35); }
.legend-pill.lp-fixed:hover   { background: rgba(25,135,84,0.1); }

/* ── Map sidebar mini stats ── */
.sidebar-stats-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.4rem; }
.sidebar-stat {
    text-align: center; background: var(--pt-bg-secondary);
    border-radius: var(--pt-radius-sm); padding: 0.45rem 0.2rem;
    border: 1px solid var(--pt-border);
}
.sidebar-stat-num { font-size: 1rem; font-weight: 800; line-height: 1; display: block; }
.sidebar-stat-label {
    font-size: 0.62rem; color: var(--pt-text-secondary);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; margin-top: 0.2rem; display: block;
}

/* ── v3.8 map filter additions ── */
.oblast-chip-grid { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.oblast-chip {
    border: 1px solid var(--pt-border);
    background: var(--pt-bg-secondary);
    color: var(--pt-text);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.oblast-chip:hover { border-color: var(--pt-red); color: var(--pt-red); }
.oblast-chip.active {
    background: var(--pt-red);
    border-color: var(--pt-red);
    color: #fff;
}
.chip.chip-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--pt-border);
    background: var(--pt-bg-secondary);
    color: var(--pt-text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
}
.chip.chip-sm:hover  { border-color: var(--pt-red); color: var(--pt-red); }
.chip.chip-sm.active { background: var(--pt-red); border-color: var(--pt-red); color: #fff; }

#nearMeBtn.active,
.map-control-btn.active {
    background: var(--pt-red);
    border-color: var(--pt-red);
    color: #fff;
}
.btn-pt-outline {
    background: transparent;
    border: 1px solid var(--pt-border);
    color: var(--pt-text);
    transition: all 0.18s ease;
}
.btn-pt-outline:hover { border-color: var(--pt-red); color: var(--pt-red); background: rgba(220,53,69,0.06); }

.form-control-pt, .form-select-pt {
    background: var(--pt-bg-secondary);
    border: 1px solid var(--pt-border);
    color: var(--pt-text);
}
.form-control-pt:focus, .form-select-pt:focus {
    border-color: var(--pt-red);
    box-shadow: 0 0 0 2px rgba(220,53,69,0.15);
}
input[type="date"].form-control-pt::-webkit-calendar-picker-indicator { filter: invert(0.55); cursor: pointer; }
[data-bs-theme="dark"] input[type="date"].form-control-pt::-webkit-calendar-picker-indicator { filter: invert(0.85); }

.cluster-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pt-red); color: #fff;
    font-weight: 800; font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(220,53,69,0.35);
    border: 2px solid #fff;
}
.custom-cluster.marker-cluster-medium .cluster-circle { width: 46px; height: 46px; font-size: 0.95rem; }
.custom-cluster.marker-cluster-large  .cluster-circle { width: 54px; height: 54px; font-size: 1.05rem; }

/* ── Chart card trend badge ── */
.chart-trend-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.18rem 0.5rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
}
.chart-trend-up   { background: rgba(25,135,84,0.14); color: #36d986; }
.chart-trend-down { background: rgba(220,53,69,0.12); color: #ff6b7a; }

/* ── Stats insight cards elevated ── */
.insight-card {
    position: relative; overflow: hidden;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius); padding: 1.5rem 1rem;
    background: var(--pt-bg-card); text-align: center;
    transition: transform 0.28s var(--pt-easing-spring), box-shadow 0.28s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-xl); }
.insight-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 55%);
    pointer-events: none;
}
.insight-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem; font-size: 1.25rem;
}

/* ── Timeline enhanced (About page) ── */
.timeline-v2 { margin-left: 0.75rem; }
.timeline-v2 .timeline-item {
    position: relative; padding-left: 2rem; padding-bottom: 1.75rem;
    border-left: 2px solid var(--pt-border); margin-left: 0;
}
.timeline-v2 .timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-v2 .timeline-item::before {
    content: ''; position: absolute; left: -7px; top: 5px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--pt-bg-card); border: 2px solid var(--pt-border);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.timeline-v2 .timeline-item.tl-done::before {
    background: var(--pt-green); border-color: var(--pt-green);
    box-shadow: 0 0 0 4px rgba(0,111,62,0.15), 0 0 0 6px var(--pt-bg);
}
.timeline-v2 .timeline-item.tl-active::before {
    background: var(--pt-gold); border-color: var(--pt-gold);
    box-shadow: 0 0 0 4px rgba(255,184,0,0.2), 0 0 0 6px var(--pt-bg);
    animation: dotPulse 2.2s ease-in-out infinite;
}
.timeline-v2 .timeline-item.tl-planned::before {
    background: var(--pt-bg-secondary); border-color: var(--pt-border);
}
.tl-status-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.12rem 0.45rem; border-radius: 10px;
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; margin-left: 0.5rem; vertical-align: middle;
}
.tl-badge-done    { background: rgba(0,111,62,0.15); color: var(--pt-green); }
.tl-badge-active  { background: rgba(255,184,0,0.15); color: var(--pt-gold); }
.tl-badge-planned { background: rgba(255,255,255,0.06); color: var(--pt-text-secondary); }

/* ── About principle cards ── */
.principle-card {
    text-align: center; padding: 1.5rem 1rem;
    border-radius: var(--pt-radius); background: var(--pt-bg-card);
    border: 1px solid var(--pt-border);
    transition: transform 0.28s var(--pt-easing-spring), box-shadow 0.28s;
}
.principle-card:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-xl); }
.principle-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.3rem;
}

/* ── Mission callout quote card ── */
.mission-callout {
    background: linear-gradient(135deg, rgba(200,16,46,0.05) 0%, rgba(0,111,62,0.05) 100%);
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius-lg);
    padding: 2rem 2rem 2rem 3rem; position: relative; overflow: hidden;
    margin-bottom: 3rem;
}
.mission-callout::before {
    content: '\201C'; position: absolute; top: -0.75rem; left: 1rem;
    font-size: 6rem; line-height: 1; color: var(--pt-red);
    opacity: 0.1; font-family: Georgia, serif; pointer-events: none;
}
.mission-callout p {
    font-size: 1.1rem; font-weight: 500; line-height: 1.7;
    color: var(--pt-text); margin: 0;
    font-style: italic;
}

/* ============================================================
   v3.4.0 — ULTRA-PREMIUM POLISH PASS
   Micro-interactions · Motion design · Light theme depth
   Performance contain · Nav polish · Auto-scheme
   ============================================================ */

/* ── Nav link hover — sliding underline from center ── */
.navbar-glass .nav-link {
    position: relative;
}
.navbar-glass .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--pt-red), var(--pt-red-light));
    border-radius: 2px;
    transition: left 0.28s var(--pt-easing-smooth), right 0.28s var(--pt-easing-smooth);
}
.navbar-glass .nav-link:hover::after,
.navbar-glass .nav-link:focus-visible::after {
    left: 20%;
    right: 20%;
}
.navbar-glass .nav-link[aria-current="page"]::after {
    left: calc(50% - 12px);
    right: calc(50% - 12px);
}

/* ── Navbar hide-on-scroll-down class ── */
.navbar-glass {
    transition: transform 0.35s var(--pt-easing-smooth), background 0.3s ease, box-shadow 0.3s ease;
}
.navbar-glass.nav-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

/* ── Button active press feedback ── */
.btn-pt-primary:active,
.btn-pt-green:active,
.btn-pt-outline:active {
    transform: scale(0.97) translateY(0);
    transition-duration: 0.08s;
}

/* ── Input focus ring glow ── */
.form-control-pt:focus,
.form-select-pt:focus {
    box-shadow: 0 0 0 3px rgba(200,16,46,0.12), 0 0 16px rgba(200,16,46,0.06);
}

/* ── Severity option — press feedback ── */
.severity-option:active { transform: scale(0.98); transition-duration: 0.08s; }

/* ── Stat card — gradient shimmer on hover ── */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
}
.stat-card:hover::after { left: 150%; }

/* ── Testimonial card — subtle left accent on hover ── */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 12px; bottom: 12px; left: 0;
    width: 3px; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--pt-red), var(--pt-gold));
    opacity: 0;
    transform: scaleY(0.5);
    transition: opacity 0.3s ease, transform 0.3s var(--pt-easing-spring);
}
.testimonial-card:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

/* ── FAB — improved press animation ── */
.fab-report:active {
    transform: scale(0.9);
    transition-duration: 0.1s;
}

/* ── Hero badge — improved click affordance ── */
.hero-badge {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Card icon shimmer on hover ── */
.card-pt:hover [style*="font-size:2rem"] {
    filter: brightness(1.15);
    transition: filter 0.3s ease;
}

/* ── Upload zone — focus-visible for keyboard ── */
.upload-hero:focus-within {
    border-color: var(--pt-red);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}

/* ── Light theme: deeper card shadows & bg refinement ── */
[data-bs-theme="light"] .stat-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-bs-theme="light"] .stat-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
[data-bs-theme="light"] .testimonial-card {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
}
[data-bs-theme="light"] .testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.09);
}
[data-bs-theme="light"] .quick-report-strip {
    background: linear-gradient(135deg, rgba(200,16,46,0.04), rgba(0,111,62,0.03));
}
[data-bs-theme="light"] .site-footer {
    color: rgba(255,255,255,0.75);
}
[data-bs-theme="light"] .site-footer a {
    color: rgba(255,255,255,0.65);
}
[data-bs-theme="light"] .site-footer a:hover {
    color: var(--pt-red-light);
}
[data-bs-theme="light"] .mission-callout {
    background: linear-gradient(135deg, rgba(200,16,46,0.03) 0%, rgba(0,111,62,0.03) 100%);
}
[data-bs-theme="light"] .insight-card {
    background: #fff;
}
[data-bs-theme="light"] .principle-card {
    background: #fff;
}

/* ── Smooth navbar show/hide with progress bar coordination ── */
.navbar-glass.scrolled + .scroll-progress,
.scroll-progress {
    transition: top 0.35s var(--pt-easing-smooth), width 0.1s linear;
}

/* ── Section entrance — subtle scale + fade combined ── */
.section-pt { position: relative; }

/* ── Hero stat chip — gradient border animation ── */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.hero-stat {
    position: relative;
    border-radius: var(--pt-radius-sm);
}

/* ── Map control buttons — active press state ── */
.map-control-btn:active {
    transform: scale(0.92);
    transition-duration: 0.08s;
}

/* ── Step indicator — connecting line color transition ── */
.step-ind-item.si-done + .step-ind-item::before {
    background: var(--pt-green);
    transition: background 0.4s ease;
}
.step-ind-item.si-active + .step-ind-item::before {
    background: linear-gradient(90deg, var(--pt-red), var(--pt-border));
}

/* ── Legend pill — active selection state ── */
.legend-pill.active {
    background: rgba(200,16,46,0.1);
    border-color: var(--pt-red);
    color: var(--pt-text);
    box-shadow: var(--pt-shadow-sm);
}

/* ── Chart container — rounded corners & contain ── */
.chart-container canvas {
    border-radius: var(--pt-radius-sm);
}

/* ── Timeline hover lift ── */
.timeline-v2 .timeline-item {
    transition: transform 0.2s ease;
}
.timeline-v2 .timeline-item:hover {
    transform: translateX(4px);
}

/* ── Improved body loading state ── */
body:not(.page-loaded) main {
    opacity: 0;
}

/* ── Print — hide more elements ── */
@media print {
    .scroll-progress, .hero-particles, .demo-banner { display: none !important; }
}

/* ── Reduced motion — disable hover transforms too ── */
@media (prefers-reduced-motion: reduce) {
    .card-pt:hover,
    .stat-card:hover,
    .testimonial-card:hover,
    .principle-card:hover,
    .insight-card:hover {
        transform: none !important;
    }
    .navbar-glass.nav-hidden {
        transform: none;
    }
}

/* ── Medium screen polish ── */
@media (max-width: 991.98px) {
    .navbar-glass .nav-link::after { display: none; }
}

/* ── Small screen — tighter spacing ── */
@media (max-width: 575.98px) {
    .step-indicator { gap: 0; }
    .step-ind-item { max-width: 85px; }
    .step-ind-dot { width: 28px; height: 28px; font-size: 0.72rem; }
    .mission-callout { padding: 1.25rem; }
    .principle-card { padding: 1rem 0.75rem; }
    .insight-card { padding: 1rem 0.75rem; }
}

/* ============================================================
   v3.5.0 — CROSS-PLATFORM PARITY & DIRECTIONAL REVEALS
   Scrollbar · Image lazy-load · Reveal variants · Footer polish
   ============================================================ */

/* ── Styled scrollbar (webkit + Firefox) ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--pt-bg); }
::-webkit-scrollbar-thumb { background: rgba(200,16,46,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,16,46,0.45); }
html { scrollbar-color: rgba(200,16,46,0.25) var(--pt-bg); scrollbar-width: thin; }

/* ── Image lazy load fade-in ── */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

/* ── Directional reveal animation variants ── */
@keyframes revealFromLeft {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealFromRight {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealScale {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-reveal-left  { animation: revealFromLeft  0.6s var(--pt-easing-smooth) forwards; }
.animate-reveal-right { animation: revealFromRight 0.6s var(--pt-easing-smooth) forwards; }
.animate-reveal-scale { animation: revealScale     0.5s var(--pt-easing-smooth) forwards; }

/* ── Footer design system classes (MasterPage parity) ── */
.footer-desc {
    color: var(--pt-text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}
.footer-heading {
    color: var(--pt-text);
    letter-spacing: 0.04em;
}
.footer-links li a {
    color: var(--pt-text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links li a:hover {
    color: var(--pt-red-light);
    padding-left: 4px;
}
.footer-contact {
    color: var(--pt-text-secondary);
    font-size: 0.88rem;
}
.footer-copyright {
    color: var(--pt-text-secondary);
    font-size: 0.82rem;
}
.footer-social {
    color: var(--pt-text-secondary);
    margin-right: 0.75rem;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}
.footer-social:hover {
    transform: translateY(-2px);
}
.footer-social.social-fb:hover  { color: #1877F2; }
.footer-social.social-tw:hover  { color: #1DA1F2; }
.footer-social.social-gh:hover  { color: #f0f6fc; }

/* ============================================================
   v3.6.0 — RELIABILITY & MICRO-POLISH
   Local preview stability · verified feedback · atmospheric depth
   ============================================================ */

.quick-report-strip::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, rgba(255,184,0,0.06) 42%, transparent 72%);
    pointer-events: none;
    filter: blur(10px);
}

.map-sidebar::before {
    content: '';
    display: block;
    width: 72px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pt-red), var(--pt-gold), var(--pt-green));
    margin-bottom: 0.9rem;
    opacity: 0.9;
}

.verify-btn {
    position: relative;
    overflow: hidden;
}

.verify-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.verify-btn:hover::after,
.verify-btn.verified::after {
    transform: translateX(120%);
}

.verify-btn.verified .verify-count {
    background: rgba(0,111,62,0.18);
    color: #E6FFF2;
    box-shadow: 0 0 0 4px rgba(0,111,62,0.08);
}

body.page-loaded .hero-section .chip {
    animation: fadeInUp 0.55s ease both;
}

body.page-loaded .hero-section .chip:nth-of-type(1) { animation-delay: 0.22s; }
body.page-loaded .hero-section .chip:nth-of-type(2) { animation-delay: 0.3s; }
body.page-loaded .hero-section .chip:nth-of-type(3) { animation-delay: 0.38s; }
body.page-loaded .hero-section .chip:nth-of-type(4) { animation-delay: 0.46s; }

/* ── Footer flag bars (MasterPage parity) ── */
.flag-bar {
    width: 24px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
}

/* ── Navbar glass — deeper blur for richer depth-of-field ── */
.navbar-glass {
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
}

/* ── Accessibility: skip link positioning improvement ── */
.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.visually-hidden-focusable:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--pt-red);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ── Reduced motion: disable directional reveals ── */
@media (prefers-reduced-motion: reduce) {
    .animate-reveal-left,
    .animate-reveal-right,
    .animate-reveal-scale {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════════
   DONATION (nav link + modal)
   ═══════════════════════════════════════════════ */
.nav-link.nav-donate,
.btn-pt-donate {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #e63953 0%, #c8102e 60%, #8a0f23 100%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 14px rgba(200,16,46,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    text-decoration: none;
}
.nav-link.nav-donate:hover,
.btn-pt-donate:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(200,16,46,0.45);
    filter: brightness(1.05);
    color: #fff !important;
}
.nav-link.nav-donate:focus-visible,
.btn-pt-donate:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.nav-link.nav-donate i,
.btn-pt-donate i { font-size: 0.85em; }
.nav-link.nav-donate::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid rgba(200,16,46,0.45);
    opacity: 0;
    animation: pt-donate-pulse 3.2s ease-out infinite;
    pointer-events: none;
}
@keyframes pt-donate-pulse {
    0%   { opacity: 0.38; transform: scale(0.98); }
    70%  { opacity: 0;    transform: scale(1.12); }
    100% { opacity: 0;    transform: scale(1.12); }
}

/* Modal */
body.pt-donate-lock { overflow: hidden; }
.pt-donate-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.pt-donate-modal.is-open { display: flex; }
.pt-donate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pt-fade-in 0.22s ease-out both;
}
.pt-donate-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,251,252,0.98));
    color: var(--pt-text, #0e1116);
    border-radius: 26px;
    padding: 2rem 1.75rem 1.4rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(200,16,46,0.18);
    text-align: center;
    animation: pt-donate-pop 0.32s cubic-bezier(.2,.9,.3,1.2) both;
    outline: none;
}
[data-bs-theme="dark"] .pt-donate-card {
    background: linear-gradient(180deg, #181b22, #12141a);
    color: #f4f5f7;
}
@keyframes pt-donate-pop {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.pt-donate-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: inherit;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
[data-bs-theme="dark"] .pt-donate-close { background: rgba(255,255,255,0.08); }
.pt-donate-close:hover { background: rgba(200,16,46,0.18); transform: rotate(90deg); }
.pt-donate-close:focus-visible { outline: 2px solid var(--pt-red, #c8102e); outline-offset: 2px; }
.pt-donate-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffe1e7, #ffc4cf);
    color: #c8102e;
    font-size: 1.6rem;
    box-shadow: inset 0 0 0 1px rgba(200,16,46,0.25);
    animation: pt-donate-heart 1.6s ease-in-out infinite;
}
[data-bs-theme="dark"] .pt-donate-icon {
    background: linear-gradient(135deg, rgba(200,16,46,0.25), rgba(200,16,46,0.1));
    color: #ff5b73;
}
@keyframes pt-donate-heart {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.pt-donate-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.pt-donate-kicker {
    margin: -0.1rem 0 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pt-red, #c8102e);
}
.pt-donate-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    color: var(--pt-text-secondary, #5b6270);
}
[data-bs-theme="dark"] .pt-donate-lead { color: #b9bfc9; }
.pt-donate-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.8rem;
    font-size: 0.88rem;
}
.pt-donate-bullets li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pt-donate-bullets i {
    width: 22px;
    text-align: center;
    color: var(--pt-red, #c8102e);
}
.pt-donate-provider-grid {
    display: grid;
    /* 3-up on desktop, auto-collapses to 2 then 1 — no media query needed */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.35rem;
    align-items: stretch;
}
.pt-donate-provider {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 249, 252, 0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    text-align: left;
    /* push the action button to the bottom so 3 cards stay visually balanced */
    height: 100%;
}
.pt-donate-provider .pt-donate-provider-action {
    margin-top: auto;
}
[data-bs-theme="dark"] .pt-donate-provider {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.pt-donate-provider.is-busy {
    opacity: 0.92;
}
.pt-donate-provider-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.pt-donate-provider-badge {
    align-self: flex-start;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    background: rgba(200,16,46,0.12);
    color: var(--pt-red, #c8102e);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.pt-donate-provider-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}
.pt-donate-provider-copy {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--pt-text-secondary, #5b6270);
}
[data-bs-theme="dark"] .pt-donate-provider-copy {
    color: #b9bfc9;
}
.pt-donate-provider-meta {
    font-size: 0.78rem;
    color: var(--pt-text-secondary, #6b7280);
}
[data-bs-theme="dark"] .pt-donate-provider-meta {
    color: #9ea7b5;
}
.pt-donate-provider-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.82rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #e63953 0%, #c8102e 60%, #8a0f23 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(200,16,46,0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.pt-donate-provider-action.is-secondary {
    background: linear-gradient(135deg, #111827 0%, #2b3443 100%);
    box-shadow: 0 8px 22px rgba(17,24,39,0.2);
}
[data-bs-theme="dark"] .pt-donate-provider-action.is-secondary {
    background: linear-gradient(135deg, #252b36 0%, #141821 100%);
}
.pt-donate-provider-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,0.24);
}
.pt-donate-provider-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.pt-donate-provider-action[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.72;
    filter: saturate(0.75);
}
.pt-donate-provider-action.is-loading {
    letter-spacing: 0.01em;
}
.pt-donate-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
.pt-donate-tier {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.92);
    color: inherit;
    border-radius: 14px;
    padding: 0.62rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
[data-bs-theme="dark"] .pt-donate-tier {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.pt-donate-tier:hover,
.pt-donate-tier:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(200,16,46,0.35);
    box-shadow: 0 10px 20px rgba(15,23,42,0.08);
    outline: none;
}
.pt-donate-tier.is-selected {
    background: linear-gradient(135deg, #e63953 0%, #c8102e 60%, #8a0f23 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(200,16,46,0.24);
}
.pt-donate-custom {
    display: grid;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--pt-text-secondary, #5b6270);
}
[data-bs-theme="dark"] .pt-donate-custom {
    color: #b9bfc9;
}
.pt-donate-custom-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.18rem 0.28rem 0.18rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255,255,255,0.92);
}
[data-bs-theme="dark"] .pt-donate-custom-field {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.pt-donate-custom-field input {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
    appearance: textfield;
}
.pt-donate-custom-field input::-webkit-outer-spin-button,
.pt-donate-custom-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pt-donate-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.pt-donate-skip {
    display: block;
    margin: 0.85rem auto 0;
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--pt-text-secondary, #5b6270);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.pt-donate-skip:hover { color: var(--pt-red, #c8102e); }
.pt-donate-note {
    font-size: 0.72rem;
    color: var(--pt-text-secondary, #7a818d);
    margin: 0.25rem 0 0;
}
@media (max-width: 720px) {
    .pt-donate-provider-grid,
    .pt-donate-bullets {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .pt-donate-card { padding: 1.5rem 1.05rem 1.1rem; border-radius: 20px; }
    .pt-donate-title { font-size: 1.18rem; }
    .pt-donate-provider { padding: 0.92rem; }
    .pt-donate-tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .pt-donate-backdrop,
    .pt-donate-card,
    .pt-donate-icon,
    .nav-link.nav-donate::after,
    .pt-donate-provider-action,
    .pt-donate-tier {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================ */
/* Navbar Donate Button (direct Revolut checkout) */
/* ============================================================ */
.btn-donate-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem !important;
    border-radius: 1rem !important;
    background: linear-gradient(135deg, #e63953 0%, #c8102e 60%, #8a0f23 100%);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.18);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(200,16,46,0.32), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    position: relative;
    overflow: hidden;
}
.btn-donate-nav::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 50%);
    pointer-events: none;
}
.btn-donate-nav-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}
.btn-donate-nav-title {
    font-size: 0.88rem;
}
.btn-donate-nav-meta {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.86);
    letter-spacing: 0.01em;
}
.btn-donate-nav:hover,
.btn-donate-nav:focus-visible {
    color: #fff !important;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(200,16,46,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
    outline: none;
}
.btn-donate-nav:active { transform: translateY(0); filter: brightness(0.98); }
.btn-donate-nav .fa-heart { animation: btnDonateHeart 1.6s ease-in-out infinite; }
@keyframes btnDonateHeart {
    0%, 60%, 100% { transform: scale(1); }
    20% { transform: scale(1.18); }
    40% { transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-donate-nav .fa-heart { animation: none; }
}
@media (max-width: 991.98px) {
    .btn-donate-nav-meta { display: none; }
}

/* ============================================================
   v3.14 Homepage Refinement Layer
   ============================================================ */
.hero-home .hero-title {
    max-width: 10ch;
    font-size: clamp(3rem, 6.5vw, 5.35rem);
    line-height: 0.92;
}

.hero-home .hero-subtitle {
    max-width: 620px;
    font-size: 1.08rem;
}

.hero-map-first {
    align-items: flex-start;
}

.hero-map-first .hero-home-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.2rem;
    padding-top: clamp(6.75rem, 8vw, 7.75rem);
    padding-bottom: 3rem;
}

.hero-map-first .hero-map-stage {
    min-height: clamp(34rem, 84vh, 50rem);
    padding: 1.35rem;
    overflow: hidden;
}

.hero-map-first .hero-map-canvas {
    height: clamp(30rem, 74vh, 44rem);
}

.hero-map-first .hero-map-overlay {
    position: absolute;
    top: 1.35rem;
    left: 1.35rem;
    z-index: 640;
    width: min(560px, calc(100% - 2.7rem));
    pointer-events: none;
}

.hero-map-first .hero-content-overlay {
    padding: 1.55rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(9,16,28,0.92), rgba(9,16,28,0.82));
    box-shadow: 0 28px 70px rgba(4,10,20,0.42);
    pointer-events: auto;
}

[data-bs-theme="light"] .hero-map-first .hero-content-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84));
}

[data-bs-theme="light"] .hero-map-first .hero-title {
    color: #1a2740 !important;
}

[data-bs-theme="light"] .hero-map-first .hero-subtitle {
    color: rgba(26, 39, 64, 0.82) !important;
}

[data-bs-theme="light"] .hero-map-first .hero-kicker,
[data-bs-theme="light"] .hero-map-first .hero-badge {
    color: #c1223c;
}

.hero-map-first .hero-title {
    max-width: 11ch;
}

.hero-map-first .hero-subtitle {
    max-width: 30rem;
    margin-bottom: 1.4rem;
}

.hero-map-first .hero-proof-grid {
    margin-top: 1.1rem;
}

.hero-map-first .hero-map-support {
    position: relative;
    z-index: 1;
}

.hero-map-first .hero-floating-stat,
.hero-map-first .hero-visual-footer {
    z-index: 620;
}

.hero-map-first .hero-floating-stat-primary {
    left: 1.35rem;
    bottom: 7.9rem;
}

.hero-map-first .hero-floating-stat-secondary {
    right: 1.35rem;
    top: 1.35rem;
}

.hero-map-first .hero-visual-footer {
    position: absolute;
    right: 1.35rem;
    bottom: 1.35rem;
    width: min(360px, calc(100% - 3rem));
    margin-top: 0;
}

.hero-kicker-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-kicker,
.section-kicker,
.process-card-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    font-family: var(--pt-font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

[data-bs-theme="light"] .hero-kicker,
[data-bs-theme="light"] .section-kicker,
[data-bs-theme="light"] .process-card-step {
    color: rgba(26,45,74,0.72);
    background: rgba(255,255,255,0.84);
    border-color: rgba(15,23,42,0.06);
}

.hero-proof-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.hero-note-card {
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hero-note-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200,16,46,0.28);
    background: rgba(200,16,46,0.06);
}

.hero-note-eyebrow {
    font-family: var(--pt-font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.48);
}

.hero-note-title {
    margin: 0.5rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.hero-note-copy {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.68);
}

.hero-map-stage {
    position: relative;
    padding: 1.25rem;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(155deg, rgba(18, 30, 55, 0.95), rgba(10, 18, 33, 0.98));
    box-shadow: 0 28px 60px rgba(3, 8, 18, 0.38);
}

.hero-map-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 34%);
    pointer-events: none;
}

.hero-map-canvas {
    width: 100%;
    height: 410px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-floating-stat {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(5, 10, 18, 0.26);
}

.hero-floating-stat-primary {
    left: -1rem;
    bottom: 7.35rem;
}

.hero-floating-stat-secondary {
    right: 1rem;
    top: 1.5rem;
    display: grid;
    gap: 0.18rem;
    max-width: 190px;
}

.hero-floating-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200,16,46,0.12);
    color: var(--pt-red-light);
    flex-shrink: 0;
}

.hero-stat {
    font-family: var(--pt-font-display);
    font-size: 1.28rem;
    font-weight: 900;
    color: #fff;
}

.hero-floating-copy-label,
.hero-floating-copy,
.hero-visual-footer-label {
    color: rgba(255,255,255,0.64);
    font-size: 0.74rem;
}

.hero-floating-kicker,
.hero-visual-footer-value {
    font-family: var(--pt-font-display);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.hero-visual-footer {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-visual-footer-item {
    padding: 0.2rem 0.1rem;
}

.metrics-section {
    position: relative;
    z-index: 2;
}

.metrics-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.metrics-intro {
    padding: 1.4rem;
    border-radius: 24px;
    border: 1px solid var(--pt-border);
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    box-shadow: 0 22px 45px rgba(4,10,20,0.16);
}

.metrics-grid {
    margin: 0;
}

.stat-card-rich {
    min-height: 100%;
    padding: 1.35rem;
}

.stat-subcopy {
    margin: 0.55rem 0 0;
    color: var(--pt-text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.section-head {
    max-width: 760px;
}

.section-head.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-surface {
    background:
        radial-gradient(circle at top left, rgba(200,16,46,0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(0,111,62,0.08), transparent 28%),
        var(--pt-bg-secondary);
}

.process-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--pt-border);
    background: linear-gradient(180deg, var(--pt-bg-card), rgba(255,255,255,0.02));
    box-shadow: 0 18px 36px rgba(4,10,20,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px rgba(4,10,20,0.22);
    border-color: var(--pt-border-light);
}

.process-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.process-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.process-card-icon.is-red {
    color: var(--pt-red-light);
    background: linear-gradient(135deg, rgba(200,16,46,0.16), rgba(200,16,46,0.05));
}

.process-card-icon.is-gold {
    color: var(--pt-gold);
    background: linear-gradient(135deg, rgba(255,184,0,0.18), rgba(255,184,0,0.06));
}

.process-card-icon.is-green {
    color: #4ed08d;
    background: linear-gradient(135deg, rgba(0,111,62,0.18), rgba(0,111,62,0.06));
}

.process-card-title {
    margin: 1rem 0 0.6rem;
    font-size: 1.2rem;
}

.process-card-copy {
    margin: 0;
    color: var(--pt-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.process-card-tail {
    margin-top: 1rem;
    color: rgba(255,255,255,0.62);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cta-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
}

.quick-report-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--pt-red), var(--pt-red-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 18px 36px rgba(200,16,46,0.28);
}

.quick-report-title {
    font-family: var(--pt-font-display);
    font-size: 1.35rem;
    font-weight: 800;
}

.quick-report-description {
    margin-top: 0.35rem;
    color: var(--pt-text-secondary);
    font-size: 0.95rem;
}

.quick-report-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.quick-report-point {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.section-head-inline .section-title {
    margin-bottom: 0.35rem;
}

.report-teaser-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--pt-border);
    background: var(--pt-bg-card);
    box-shadow: 0 18px 36px rgba(4,10,20,0.12);
}

.report-teaser-media {
    position: relative;
    height: 210px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-teaser-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.5;
}

.report-teaser-media.is-high { background: linear-gradient(135deg, #140d1d 0%, #1c233f 55%, #2f1120 100%); }
.report-teaser-media.is-medium { background: linear-gradient(135deg, #1a1624 0%, #1e2645 55%, #2d2710 100%); }
.report-teaser-media.is-low { background: linear-gradient(135deg, #0e1d1c 0%, #173349 55%, #0f2b1e 100%); }

.report-teaser-icon {
    position: relative;
    z-index: 1;
    font-size: 2.8rem;
    opacity: 0.22;
}

.report-teaser-media.is-high .report-teaser-icon { color: rgba(232,52,79,0.9); }
.report-teaser-media.is-medium .report-teaser-icon { color: rgba(255,184,0,0.88); }
.report-teaser-media.is-low .report-teaser-icon { color: rgba(77,208,141,0.85); }

.report-teaser-badges {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    z-index: 2;
}

.report-teaser-body {
    padding: 1rem 1rem 1.1rem;
}

.report-teaser-title-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: start;
}

.report-teaser-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
}

.report-teaser-zone {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--pt-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.report-teaser-copy {
    margin: 0.7rem 0 0.95rem;
    color: var(--pt-text-secondary);
    font-size: 0.86rem;
    line-height: 1.65;
}

.report-teaser-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: var(--pt-text-secondary);
}

.report-teaser-proof {
    flex-shrink: 0;
}

.testimonial-card {
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(4,10,20,0.12);
}

.testimonial-text {
    font-family: var(--pt-font-display);
    font-style: normal;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pt-text);
}

.tech-essay-card,
.tech-feature-card,
.citizen-cta {
    border-radius: 24px;
    border: 1px solid var(--pt-border);
    background: linear-gradient(180deg, var(--pt-bg-card), rgba(255,255,255,0.02));
    box-shadow: 0 18px 36px rgba(4,10,20,0.12);
}

.tech-essay-card {
    padding: 1.5rem;
}

.tech-essay-icon,
.tech-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    font-size: 1.45rem;
}

.tech-essay-card h3 {
    margin: 1rem 0 0.6rem;
    font-size: 1.28rem;
}

.tech-essay-card p,
.tech-feature-copy {
    margin: 0;
    color: var(--pt-text-secondary);
    line-height: 1.7;
    font-size: 0.88rem;
}

.tech-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.tech-chip {
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.76rem;
    font-weight: 700;
}

.tech-feature-card {
    height: 100%;
    padding: 1.3rem;
}

.tech-feature-title {
    margin: 1rem 0 0.4rem;
    font-size: 1.02rem;
}

.citizen-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.65rem;
    background: linear-gradient(135deg, rgba(200,16,46,0.12), rgba(0,111,62,0.12));
}

.citizen-cta-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.citizen-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .hero-map-first .hero-home-shell {
        padding-top: calc(72px + 1rem);
        padding-bottom: 2rem;
    }

    .hero-map-first .hero-map-stage {
        min-height: 46rem;
        padding: 1rem;
    }

    .hero-map-first .hero-map-overlay {
        top: 1rem;
        left: 1rem;
        width: min(480px, calc(100% - 2rem));
    }

    .hero-map-first .hero-floating-stat-primary {
        left: 1rem;
        bottom: 7rem;
    }

    .hero-map-first .hero-floating-stat-secondary {
        right: 1rem;
        top: auto;
        bottom: 14rem;
    }

    .hero-map-first .hero-visual-footer {
        right: 1rem;
        bottom: 1rem;
        width: calc(100% - 2rem);
    }

    .hero-note-grid,
    .metrics-shell,
    .citizen-cta {
        grid-template-columns: 1fr;
    }

    .cta-band {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .citizen-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .hero-home .hero-title {
        max-width: none;
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .hero-map-first .hero-map-stage {
        min-height: 44rem;
    }

    .hero-map-first .hero-map-canvas {
        height: 100%;
        min-height: 32rem;
    }

    .hero-map-first .hero-map-overlay {
        width: calc(100% - 2rem);
    }

    .hero-map-first .hero-content-overlay {
        padding: 1.15rem;
    }

    .hero-map-first .hero-proof-grid {
        display: none;
    }

    .hero-map-first .hero-cta-row .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-map-first .hero-floating-stat-secondary {
        display: none;
    }

    .hero-note-grid,
    .hero-visual-footer {
        grid-template-columns: 1fr;
    }

    .metrics-intro,
    .process-card,
    .tech-essay-card,
    .tech-feature-card,
    .citizen-cta,
    .report-teaser-body {
        padding: 1.1rem;
    }

    .report-teaser-media {
        height: 190px;
    }

    .report-teaser-title-row,
    .report-teaser-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .hero-map-first .hero-map-stage {
        min-height: 42rem;
        padding: 0.85rem;
        border-radius: 24px;
    }

    .hero-map-first .hero-map-overlay {
        top: 0.85rem;
        left: 0.85rem;
        width: calc(100% - 1.7rem);
    }

    .hero-map-first .hero-content-overlay {
        border-radius: 22px;
        padding: 1rem;
    }

    .hero-map-first .hero-map-canvas {
        height: 100%;
        min-height: 28rem;
        border-radius: 20px;
    }

    .hero-map-first .hero-floating-stat-primary {
        left: 0.85rem;
        right: 0.85rem;
        bottom: 7rem;
    }

    .hero-map-first .hero-visual-footer {
        left: 0.85rem;
        right: 0.85rem;
        width: auto;
    }

    .hero-kicker-row,
    .hero-proof-grid,
    .quick-report-points,
    .citizen-cta-proof,
    .tech-chip-list {
        gap: 0.5rem;
    }

    .hero-note-card,
    .metrics-intro,
    .process-card,
    .tech-essay-card,
    .tech-feature-card,
    .citizen-cta {
        border-radius: 20px;
    }

    .hero-map-canvas {
        height: 340px;
    }

    .hero-floating-stat-primary {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 6rem;
    }

    .hero-floating-stat-secondary {
        display: none;
    }
}

/* ============================================================
   v3.14.3 — LOCAL TESTING DOCK
   ============================================================ */

.pt-local-dock {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1038;
    width: min(320px, calc(100vw - 2rem));
    pointer-events: none;
}

.pt-local-dock.is-collapsed {
    width: min(240px, calc(100vw - 2rem));
}

.pt-local-dock-toggle,
.pt-local-dock-panel,
.pt-local-dock-link,
.pt-local-dock-action {
    pointer-events: auto;
}

.pt-local-dock-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.72rem 0.92rem;
    border-radius: 999px;
    border: 1px solid var(--pt-border-light);
    background: rgba(8, 14, 26, 0.84);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: var(--pt-transition-fast);
}

[data-bs-theme="light"] .pt-local-dock-toggle {
    background: rgba(255, 255, 255, 0.9);
    color: var(--pt-text);
}

.pt-local-dock-toggle:hover {
    transform: translateY(-1px);
}

.pt-local-dock-toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
    background: var(--pt-red);
    box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.14);
}

.pt-local-dock-toggle-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.pt-local-dock-toggle-label,
.pt-local-dock-eyebrow {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pt-text-secondary);
}

.pt-local-dock-toggle-copy strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: inherit;
}

.pt-local-dock-panel {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--pt-border-light);
    background: rgba(8, 14, 26, 0.9);
    color: #fff;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease, padding 0.22s ease;
}

[data-bs-theme="light"] .pt-local-dock-panel {
    background: rgba(255, 255, 255, 0.95);
    color: var(--pt-text);
}

.pt-local-dock.is-collapsed .pt-local-dock-panel {
    opacity: 0;
    transform: translateY(10px);
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    overflow: hidden;
    border-width: 0;
}

.pt-local-dock-head,
.pt-local-dock-title-row,
.pt-local-dock-links,
.pt-local-dock-actions {
    display: flex;
    align-items: center;
}

.pt-local-dock-head {
    justify-content: space-between;
    gap: 0.8rem;
}

.pt-local-dock-title-row {
    gap: 0.6rem;
    margin-top: 0.18rem;
}

.pt-local-dock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.28rem 0.56rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: rgba(200, 16, 46, 0.16);
    color: var(--pt-red-light);
}

.pt-local-dock-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--pt-border-light);
    background: transparent;
    color: inherit;
}

.pt-local-dock-copy {
    margin: 0.9rem 0 0;
    color: var(--pt-text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.pt-local-dock-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.95rem;
}

.pt-local-dock-stat {
    padding: 0.7rem 0.55rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pt-border-light);
    text-align: center;
}

[data-bs-theme="light"] .pt-local-dock-stat {
    background: rgba(10, 22, 40, 0.04);
}

.pt-local-dock-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: inherit;
}

.pt-local-dock-stat span {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pt-text-secondary);
}

.pt-local-dock-links,
.pt-local-dock-actions {
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.pt-local-dock-link,
.pt-local-dock-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    border: 1px solid var(--pt-border-light);
    background: transparent;
    color: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: var(--pt-transition-fast);
}

.pt-local-dock-link:hover,
.pt-local-dock-action:hover {
    color: inherit;
    border-color: rgba(200, 16, 46, 0.45);
    background: rgba(200, 16, 46, 0.08);
}

.pt-local-dock-action.is-primary {
    background: linear-gradient(135deg, var(--pt-red), var(--pt-red-dark));
    color: #fff;
    border-color: transparent;
}

.pt-local-dock[data-mode="offline"] .pt-local-dock-toggle-dot,
.pt-local-dock[data-mode="offline"] .pt-local-dock-badge {
    background: rgba(0, 111, 62, 0.18);
    color: #8ce2b6;
    box-shadow: none;
}

.pt-local-dock[data-mode="offline"] .pt-local-dock-toggle-dot {
    background: var(--pt-green);
    box-shadow: 0 0 0 6px rgba(0, 111, 62, 0.18);
}

.pt-local-dock[data-mode="file"] .pt-local-dock-toggle-dot,
.pt-local-dock[data-mode="file"] .pt-local-dock-badge {
    background: rgba(255, 184, 0, 0.18);
    color: #ffd56a;
}

.pt-local-dock[data-mode="file"] .pt-local-dock-toggle-dot {
    background: var(--pt-gold);
    box-shadow: 0 0 0 6px rgba(255, 184, 0, 0.18);
}

@media (max-width: 767.98px) {
    .pt-local-dock {
        display: none;
    }

    .pt-local-dock-panel {
        border-radius: 20px;
    }

    .pt-local-dock-stats {
        grid-template-columns: 1fr;
    }
}

/* ── PWA install banner (site.js PwaInstall) ── */
.pt-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(200, 16, 46, 0.45);
    background: rgba(10, 22, 40, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.28s var(--ease-out), opacity 0.28s;
}
.pt-install-banner.is-visible { transform: translateY(0); opacity: 1; }
.pt-install-banner__text { margin: 0; font-size: 0.82rem; line-height: 1.4; color: var(--text-1); max-width: 36rem; }
.pt-install-banner__actions { display: flex; align-items: center; gap: 8px; }
.pt-install-banner__primary {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--pt-red);
    color: #fff;
    cursor: pointer;
}
.pt-install-banner__dismiss {
    border: none;
    background: transparent;
    color: var(--text-2);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

/* iPad / tablet touch targets (768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .map-sidebar {
        width: min(340px, 38vw);
        padding: 1rem !important;
    }
    .legend-pill,
    .chip,
    .btn-pt-outline,
    .btn-pt-primary,
    .navbar .btn,
    .form-control-pt,
    .form-select-pt {
        min-height: 44px;
    }
    .report-page-shell {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    }
    .report-page-rail {
        top: 5rem;
    }
}

.map-trust-legend .trust-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
}

.report-trust-badges .trust-tag {
    font-size: 0.68rem;
}
