:root {
    --bg: #f5fbfc;
    --surface: #ffffff;
    --surface-soft: #eaf8fa;
    --text: #14323b;
    --muted: #607780;
    --primary: #0aa6b7;
    --primary-dark: #007a8d;
    --accent: #80d8c7;
    --accent-soft: #dff8f3;
    --dark: #09252d;
    --shadow: 0 24px 70px rgba(9, 37, 45, .13);
    --radius-lg: 34px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(245, 251, 252, .83);
    border-bottom: 1px solid rgba(10, 166, 183, .12);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    letter-spacing: -.03em;
    font-size: 1.18rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(10, 166, 183, .24);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .95rem;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    transition: .2s ease;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(10, 166, 183, .08);
}

.main-nav .nav-button {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(10, 166, 183, .24);
}

.main-nav .nav-button:hover {
    background: var(--primary-dark);
    color: #fff;
}

.nav-muted {
    opacity: .8;
}

.lang-switch {
    font-weight: 800;
    color: var(--primary) !important;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(9, 37, 45, .08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px auto;
    border-radius: 5px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 28px;
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(8px);
    opacity: .5;
    z-index: -1;
}

.hero-bg::before {
    background: radial-gradient(circle, rgba(128, 216, 199, .75), transparent 62%);
    top: -180px;
    left: -140px;
}

.hero-bg::after {
    background: radial-gradient(circle, rgba(10, 166, 183, .35), transparent 64%);
    bottom: -120px;
    right: -120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    align-items: center;
    gap: 60px;
}

.badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid rgba(10, 166, 183, .18);
    background: rgba(255, 255, 255, .72);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hero-slider {
    position: relative;
    min-height: 372px;
    margin-top: 28px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.eyebrow {
    margin: 0 0 14px;
    font-weight: 850;
    color: var(--primary-dark);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: .92;
    letter-spacing: -.075em;
    margin-bottom: 22px;
    max-width: 830px;
}

.lead {
    max-width: 670px;
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.hero-actions,
.hero-actions + * {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 850;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 34px rgba(10, 166, 183, .24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(10, 166, 183, .32);
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(10, 166, 183, .16);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(9, 37, 45, .08);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(10, 166, 183, .22);
    cursor: pointer;
    transition: .2s ease;
}

.slider-dot.active {
    width: 34px;
    background: var(--primary);
}

.hero-card {
    position: relative;
    min-height: 560px;
}

.visual-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(30px) scale(.97);
    pointer-events: none;
    transition: opacity .45s ease, transform .45s ease;
    border-radius: var(--radius-lg);
    padding: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .86), transparent 34%),
        radial-gradient(circle at 74% 34%, rgba(128, 216, 199, .55), transparent 28%),
        linear-gradient(145deg, #dff8f3 0%, #ffffff 42%, #c7f2f6 100%);
    box-shadow: var(--shadow);
}

.visual-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -28% -20%;
    height: 45%;
    background: radial-gradient(ellipse at center, rgba(10, 166, 183, .32), transparent 62%);
}

.visual-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.water-orbit {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 315px;
}

.water-orbit > span {
    position: absolute;
    border: 1px solid rgba(10, 166, 183, .22);
    border-radius: 999px;
    animation: orbit 9s linear infinite;
}

.water-orbit > span:nth-child(1) {
    width: 280px;
    height: 280px;
}

.water-orbit > span:nth-child(2) {
    width: 210px;
    height: 210px;
    animation-duration: 12s;
}

.water-orbit > span:nth-child(3) {
    width: 340px;
    height: 180px;
    transform: rotate(-16deg);
    animation-duration: 14s;
}

.glass {
    position: relative;
    width: 136px;
    height: 190px;
    border: 8px solid rgba(255, 255, 255, .9);
    border-top: 0;
    border-radius: 12px 12px 36px 36px;
    background: rgba(255, 255, 255, .45);
    box-shadow: inset 0 -16px 30px rgba(10, 166, 183, .13), 0 20px 46px rgba(10, 166, 183, .18);
    overflow: hidden;
    z-index: 2;
}

.water {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 67%;
    background: linear-gradient(180deg, rgba(128, 216, 199, .95), rgba(10, 166, 183, .88));
    border-radius: 50% 50% 0 0 / 8% 8% 0 0;
    animation: wave 3.8s ease-in-out infinite;
}

.visual-copy {
    position: relative;
    z-index: 2;
    border-radius: 26px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(255, 255, 255, .8);
    padding: 24px;
}

.visual-copy h2 {
    margin-bottom: 8px;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.visual-copy p {
    color: var(--muted);
    margin-bottom: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.stat-box {
    border: 1px solid rgba(10, 166, 183, .13);
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 34px rgba(9, 37, 45, .06);
}

.stat-box strong {
    display: block;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.stat-box span {
    color: var(--muted);
}

.section {
    padding: 92px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(234, 248, 250, .76), rgba(245, 251, 252, .2));
}

.section-heading {
    max-width: 690px;
}

.section-heading.centered {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading.centered .section-kicker {
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.06em;
    margin: 18px 0 20px;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.08rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-card,
.step-card,
.event-item,
.cta-box,
.map-panel {
    background: var(--surface);
    border: 1px solid rgba(10, 166, 183, .12);
    box-shadow: 0 14px 40px rgba(9, 37, 45, .06);
}

.info-card {
    border-radius: var(--radius-md);
    padding: 28px;
}

.info-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--accent-soft);
    margin-bottom: 24px;
    font-size: 1.6rem;
}

.info-card h3,
.step-card h3,
.event-item h3 {
    margin-bottom: 10px;
    font-size: 1.24rem;
    letter-spacing: -.03em;
}

.info-card p,
.step-card p,
.event-item p {
    margin-bottom: 0;
    color: var(--muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.step-card {
    border-radius: var(--radius-md);
    padding: 26px;
}

.step-card span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 24px;
    background: var(--dark);
    color: #fff;
    font-weight: 900;
}

.split {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 54px;
    align-items: center;
}

.event-list {
    display: grid;
    gap: 14px;
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    border-radius: 24px;
    padding: 22px;
}

.event-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    margin-top: 6px;
    background: var(--primary);
    box-shadow: 0 0 0 8px rgba(10, 166, 183, .12);
}

.section-map {
    padding-top: 74px;
    background: linear-gradient(145deg, #09252d 0%, #0a3a45 52%, #0a6b78 100%);
    color: #fff;
}

.map-layout {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 28px;
    align-items: stretch;
}

.map-panel {
    border-radius: var(--radius-lg);
    padding: 34px;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: none;
}

.map-panel .section-kicker {
    background: rgba(255, 255, 255, .1);
    color: #b9fbf1;
    border-color: rgba(255, 255, 255, .14);
}

.map-panel h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.06em;
    margin: 18px 0;
}

.map-panel p {
    color: rgba(255, 255, 255, .76);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 26px;
}

.fake-select {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
}

.fake-select::after {
    content: "⌄";
    float: right;
    opacity: .7;
}

.map-full-link {
    margin-top: 18px;
}

.map-preview {
    position: relative;
    min-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #c7f2f6, #effffc);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
}

.map-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 166, 183, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 166, 183, .18) 1px, transparent 1px),
        radial-gradient(circle at 30% 25%, rgba(128, 216, 199, .5), transparent 28%),
        radial-gradient(circle at 80% 72%, rgba(10, 166, 183, .22), transparent 24%);
    background-size: 46px 46px, 46px 46px, auto, auto;
}

.pin {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 999px 999px 999px 4px;
    transform: rotate(-45deg);
    background: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(0, 122, 141, .3);
}

.pin::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    background: #fff;
}

.pin-one { left: 18%; top: 28%; }
.pin-two { left: 56%; top: 22%; }
.pin-three { left: 72%; top: 60%; }
.pin-four { left: 35%; top: 70%; }

.map-preview .map-popup {
    position: absolute;
    left: 45%;
    top: 43%;
    display: grid;
    gap: 4px;
    min-width: 210px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 20px 54px rgba(9, 37, 45, .18);
}

.map-preview .map-popup small {
    color: var(--muted);
}

.map-preview-live {
    min-height: 500px;
    background: #e7f7f8;
}

.map-preview-live .events-map {
    min-height: 500px;
    height: 100%;
    border: 0;
}

.map-preview-live .map-status-home {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 500;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 28px rgba(9, 37, 45, .14);
}

.cta-section {
    padding-top: 84px;
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 38px;
    background:
        radial-gradient(circle at 88% 12%, rgba(128, 216, 199, .35), transparent 28%),
        #fff;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
    letter-spacing: -.06em;
    margin: 16px 0;
}

.cta-box p {
    color: var(--muted);
    max-width: 680px;
}

.cta-box small {
    color: var(--primary-dark);
    font-weight: 750;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    min-width: min(460px, 100%);
    padding: 8px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    color: var(--text);
}

.site-footer {
    padding: 44px 0;
    background: var(--dark);
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .68);
    max-width: 560px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, .78);
}

.footer-links a {
    padding: 8px 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@keyframes wave {
    0%, 100% { height: 64%; }
    50% { height: 70%; }
}

@media (max-width: 1020px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        border-radius: 14px;
    }

    .hero-grid,
    .split,
    .map-layout,
    .cta-box {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 520px;
    }

    .hero-slider {
        min-height: 330px;
    }

    .cards-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        min-width: 100%;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .hero {
        padding-top: 52px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-slider {
        min-height: 410px;
    }

    .lead {
        font-size: 1.05rem;
    }

    .hero-card,
    .map-preview {
        min-height: 420px;
    }

    .visual-card {
        padding: 22px;
    }

    .water-orbit {
        min-height: 250px;
    }

    .glass {
        width: 106px;
        height: 150px;
    }

    .stats-row,
    .cards-grid,
    .steps-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
    }

    .newsletter-form input {
        min-height: 48px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .map-popup {
        left: 22px;
        right: 22px;
        top: auto;
        bottom: 24px;
        min-width: 0;
    }
}

/* Etap 2 — logowanie, rejestracja i panel użytkownika */
.auth-section {
    padding: 86px 0 110px;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(128, 216, 199, .32), transparent 38%),
        linear-gradient(135deg, rgba(245, 251, 252, 1), rgba(223, 248, 243, .7));
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: 46px;
    align-items: center;
}

.auth-grid-login {
    grid-template-columns: minmax(0, .9fr) minmax(360px, .65fr);
}

.auth-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.06em;
}

.auth-copy p {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.12rem;
}

.auth-card,
.content-card,
.dashboard-card {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(10, 166, 183, .14);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.auth-card {
    padding: 34px;
}

.form-stack {
    display: grid;
    gap: 17px;
}

.form-stack label {
    display: grid;
    gap: 7px;
    color: var(--dark);
    font-weight: 750;
}

.form-stack input,
.form-stack select {
    width: 100%;
    border: 1px solid rgba(10, 166, 183, .22);
    border-radius: 16px;
    min-height: 52px;
    padding: 0 16px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-stack input:focus,
.form-stack select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 166, 183, .12);
}

.checkbox-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    font-weight: 600 !important;
    color: var(--muted) !important;
    line-height: 1.45;
}

.checkbox-row input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.btn.full {
    width: 100%;
    justify-content: center;
}

.auth-switch {
    margin: 20px 0 0;
    color: var(--muted);
    text-align: center;
}

.auth-switch a {
    color: var(--primary-dark);
    font-weight: 850;
}

.flash {
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-weight: 700;
}

.flash-success {
    color: #0b5b46;
    background: rgba(128, 216, 199, .26);
    border: 1px solid rgba(11, 91, 70, .13);
}

.flash-error {
    color: #8a1f1f;
    background: rgba(255, 232, 232, .9);
    border: 1px solid rgba(138, 31, 31, .16);
}

.flash-warning {
    color: #75510a;
    background: rgba(255, 244, 214, .9);
    border: 1px solid rgba(117, 81, 10, .17);
}

.mini-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.mini-benefits div {
    padding: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(10, 166, 183, .13);
    border-radius: 22px;
    display: grid;
    gap: 8px;
}

.mini-benefits strong {
    font-size: 1.6rem;
}

.mini-benefits span {
    font-weight: 800;
}

.login-glass {
    margin-top: 34px;
    transform: scale(1.15);
    transform-origin: left center;
}

.panel-hero {
    padding: 56px 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(128, 216, 199, .32), transparent 32%),
        linear-gradient(135deg, rgba(223, 248, 243, .9), rgba(245, 251, 252, 1));
    border-bottom: 1px solid rgba(10, 166, 183, .13);
}

.panel-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.panel-hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.panel-hero p {
    margin: 0;
    color: var(--muted);
}

.panel-section {
    padding-top: 48px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.dashboard-card {
    padding: 26px;
}

.dashboard-card span {
    font-size: 1.9rem;
}

.dashboard-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2.1rem;
    line-height: 1;
    letter-spacing: -.04em;
}

.dashboard-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.panel-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.panel-menu {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 10px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(10, 166, 183, .12);
    border-radius: 24px;
    padding: 12px;
}

.panel-menu a {
    padding: 13px 14px;
    border-radius: 16px;
    font-weight: 850;
    color: var(--muted);
}

.panel-menu a.active,
.panel-menu a:hover {
    background: var(--accent-soft);
    color: var(--primary-dark);
}

.panel-content {
    display: grid;
    gap: 22px;
}

.content-card {
    padding: 30px;
}

.content-card h2 {
    margin: 0 0 18px;
    letter-spacing: -.03em;
}

.content-card-soft {
    background: linear-gradient(135deg, #fff, rgba(223, 248, 243, .6));
}

.profile-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-list div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(10, 166, 183, .1);
}

.profile-list div:last-child {
    border-bottom: 0;
}

.profile-list dt {
    color: var(--muted);
    font-weight: 800;
}

.profile-list dd {
    margin: 0;
    font-weight: 750;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    color: var(--muted);
    font-weight: 700;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--primary-dark);
    font-size: .85rem;
    font-weight: 950;
}

.empty-state {
    margin-top: 22px;
    padding: 34px;
    border-radius: 24px;
    background: var(--surface-soft);
    text-align: center;
}

.empty-state strong {
    font-size: 2.4rem;
}

.empty-state h3 {
    margin: 10px 0 6px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(10, 166, 183, .12);
}

th {
    color: var(--muted);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.newsletter-actions {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .auth-grid,
    .auth-grid-login,
    .panel-layout {
        grid-template-columns: 1fr;
    }

    .mini-benefits,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .panel-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-menu {
        position: static;
    }
}

@media (max-width: 620px) {
    .auth-section {
        padding: 46px 0 70px;
    }

    .auth-card,
    .content-card {
        padding: 22px;
        border-radius: 24px;
    }

    .profile-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Etap 3 — wydarzenia */
.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-stack textarea,
.form-stack input[type="file"] {
    width: 100%;
    border: 1px solid rgba(10, 166, 183, .18);
    border-radius: 16px;
    background: #fff;
    padding: 14px 16px;
    color: var(--text);
    outline: 0;
}

.form-stack textarea:focus,
.form-stack input[type="file"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 166, 183, .12);
}

.event-form .hint-box,
.map-data-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(10, 166, 183, .16);
    background: linear-gradient(135deg, rgba(10, 166, 183, .08), rgba(128, 216, 199, .13));
    border-radius: 20px;
    padding: 18px;
}

.event-form .hint-box {
    display: block;
}

.event-form .hint-box p,
.map-data-note p {
    margin: 6px 0 0;
    color: var(--muted);
}

.inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.card-header-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.card-header-line p {
    color: var(--muted);
    margin-bottom: 0;
}

.event-cards-list {
    display: grid;
    gap: 16px;
}

.user-event-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(10, 166, 183, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
}

.event-thumb {
    width: 120px;
    height: 92px;
    object-fit: cover;
    border-radius: 18px;
    background: var(--accent-soft);
}

.placeholder-thumb {
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.user-event-main h3 {
    margin-bottom: 6px;
    font-size: 1.18rem;
}

.user-event-main p {
    margin-bottom: 8px;
    color: var(--muted);
}

.event-meta-row,
.event-small-data {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.event-meta-row span,
.event-small-data span,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(10, 166, 183, .09);
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 800;
}

.event-small-data span {
    background: rgba(9, 37, 45, .05);
    color: var(--muted);
    font-weight: 700;
}

.status-draft {
    background: rgba(9, 37, 45, .08) !important;
    color: var(--dark) !important;
}

.status-active {
    background: rgba(27, 168, 120, .14) !important;
    color: #08724e !important;
}

.status-pending {
    background: rgba(255, 179, 71, .18) !important;
    color: #9a6100 !important;
}

.status-rejected {
    background: rgba(220, 70, 70, .13) !important;
    color: #a72b2b !important;
}

.status-finished {
    background: rgba(96, 119, 128, .13) !important;
    color: var(--muted) !important;
}

.event-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-small {
    min-height: auto;
    padding: 9px 12px;
    font-size: .88rem;
}

.btn-outline-danger,
.btn-danger {
    border: 1px solid rgba(220, 70, 70, .2);
    color: #a72b2b;
    background: rgba(220, 70, 70, .08);
}

.btn-danger {
    background: #c93d3d;
    color: #fff;
    border-color: #c93d3d;
}

.btn-outline-danger:hover,
.btn-danger:hover {
    background: #a72b2b;
    color: #fff;
}

.danger-card {
    border-color: rgba(220, 70, 70, .25);
}

.compact-list {
    margin: 20px 0;
}

.current-image {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-weight: 800;
}

.current-image img {
    width: 120px;
    height: 82px;
    object-fit: cover;
    border-radius: 16px;
}

.public-events-hero {
    background: radial-gradient(circle at top right, rgba(128, 216, 199, .24), transparent 42%);
}

.public-events-section .container {
    display: grid;
    gap: 20px;
}

.filter-card {
    padding: 22px;
}

.event-filter-form {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.event-filter-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
    font-size: .88rem;
}

.event-filter-form input,
.event-filter-form select {
    width: 100%;
    border: 1px solid rgba(10, 166, 183, .18);
    border-radius: 16px;
    background: #fff;
    padding: 13px 14px;
    color: var(--text);
    outline: 0;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.public-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-event-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(9, 37, 45, .08);
    border: 1px solid rgba(10, 166, 183, .12);
}

.public-event-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: var(--accent-soft);
}

.public-event-placeholder {
    display: grid;
    place-items: center;
    font-size: 3rem;
}

.public-event-body {
    padding: 22px;
}

.public-event-body h2 {
    font-size: 1.24rem;
    line-height: 1.2;
    margin: 12px 0 10px;
}

.public-event-body p {
    color: var(--muted);
    min-height: 52px;
}

.event-details-mini {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
}

.event-details-mini div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(9, 37, 45, .07);
}

.event-details-mini dt {
    color: var(--muted);
    font-weight: 800;
    font-size: .84rem;
}

.event-details-mini dd {
    margin: 0;
    font-weight: 750;
}

.empty-public {
    background: #fff;
    border-radius: 28px;
    padding: 40px;
}

@media (max-width: 1080px) {
    .event-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .public-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .form-grid.two,
    .form-grid.three,
    .event-filter-form,
    .public-event-grid {
        grid-template-columns: 1fr;
    }

    .user-event-card {
        grid-template-columns: 1fr;
    }

    .event-thumb {
        width: 100%;
        height: 180px;
    }

    .event-actions,
    .card-header-line,
    .map-data-note {
        align-items: stretch;
        flex-direction: column;
    }

    .event-details-mini div {
        grid-template-columns: 1fr;
    }
}

/* Etap 4: mapa wydarzeń i szczegóły */
.map-shell {
    margin: 22px 0 34px;
    padding: 0;
    overflow: hidden;
}

.map-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px 18px;
}

.map-heading h2,
.compact-title h2 {
    margin: 5px 0 8px;
}

.map-heading p {
    color: var(--muted);
    margin: 0;
    max-width: 760px;
}

.events-map {
    width: 100%;
    min-height: 560px;
    border-top: 1px solid rgba(9, 37, 45, .08);
    border-bottom: 1px solid rgba(9, 37, 45, .08);
    background: #e7f7f8;
    z-index: 1;
}

.map-status {
    padding: 13px 28px 18px;
    color: var(--muted);
    font-weight: 800;
    font-size: .94rem;
}

.map-popup {
    display: grid;
    gap: 7px;
    min-width: 210px;
}

.map-popup img,
.map-popup-placeholder {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--accent-soft);
}

.map-popup-placeholder {
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.map-popup strong {
    font-size: 1rem;
    line-height: 1.2;
}

.map-popup span,
.map-popup p,
.map-popup small {
    color: var(--muted);
    margin: 0;
}

.map-popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.map-popup-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.map-popup-actions a + a {
    background: rgba(10, 166, 183, .12);
    color: var(--accent-dark);
}

.event-card-actions {
    margin-top: 18px;
}

.public-event-body h2 a {
    color: inherit;
    text-decoration: none;
}

.public-event-body h2 a:hover {
    color: var(--accent-dark);
}

.event-form-map {
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(10, 166, 183, .18);
    background: #e7f7f8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.event-map-controls {
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 28px rgba(9, 37, 45, .14);
}

.event-map-controls button {
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 8px 11px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
}

.event-map-controls button + button {
    background: rgba(9, 37, 45, .08);
    color: var(--ink);
}

.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 24px;
    align-items: start;
}

.event-detail-main,
.event-detail-side {
    overflow: hidden;
}

.event-detail-image {
    width: calc(100% + 56px);
    height: 360px;
    margin: -28px -28px 24px;
    object-fit: cover;
    display: block;
    background: var(--accent-soft);
}

.event-detail-placeholder {
    display: grid;
    place-items: center;
    font-size: 4rem;
}

.big-meta {
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.event-description-full {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.event-detail-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.event-detail-list div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(9, 37, 45, .08);
}

.event-detail-list dt {
    color: var(--muted);
    font-weight: 900;
}

.event-detail-list dd {
    margin: 0;
    font-weight: 800;
}

.event-detail-side {
    position: sticky;
    top: 92px;
}

.full-btn {
    width: 100%;
    margin-top: 10px;
}

.event-detail-map {
    min-height: 300px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(10, 166, 183, .18);
    margin-top: 22px;
    background: #e7f7f8;
}

.muted-small {
    color: var(--muted);
    font-size: .92rem;
}

@media (max-width: 980px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
    }

    .event-detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .map-heading {
        flex-direction: column;
        padding: 22px;
    }

    .events-map,
    .event-form-map {
        min-height: 430px;
    }

    .event-detail-image {
        width: calc(100% + 44px);
        margin: -22px -22px 22px;
        height: 260px;
    }

    .event-detail-list div {
        grid-template-columns: 1fr;
    }
}

/* Etap 5 — panel administratora, moderacja i użytkownicy */
:root {
    --accent-dark: #007a8d;
}

.admin-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(128, 216, 199, .34), transparent 30%),
        radial-gradient(circle at 12% 90%, rgba(10, 166, 183, .16), transparent 34%),
        linear-gradient(135deg, rgba(223, 248, 243, .96), rgba(245, 251, 252, 1));
}

.admin-menu a.active {
    background: linear-gradient(135deg, var(--accent-soft), rgba(128, 216, 199, .34));
}

.admin-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.users-filter-form {
    grid-template-columns: 1.2fr 1fr 1fr auto;
}

.admin-filter-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 850;
    font-size: .88rem;
}

.admin-filter-form input,
.admin-filter-form select,
.status-form select,
.user-admin-form select {
    width: 100%;
    border: 1px solid rgba(10, 166, 183, .18);
    border-radius: 15px;
    background: #fff;
    padding: 12px 13px;
    min-height: 46px;
    color: var(--text);
    outline: 0;
}

.count-badge {
    min-width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(10, 166, 183, .2);
}

.status-list,
.mini-user-list {
    display: grid;
    gap: 12px;
}

.status-list div,
.mini-user-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(10, 166, 183, .1);
}

.status-list div:last-child,
.mini-user-list div:last-child {
    border-bottom: 0;
}

.mini-user-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
}

.mini-user-list span {
    color: var(--muted);
    font-size: .92rem;
}

.compact-empty {
    margin-top: 0;
}

.admin-event-list {
    display: grid;
    gap: 16px;
}

.admin-event-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 250px;
    align-items: start;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(10, 166, 183, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
}

.admin-event-main h3 {
    margin: 8px 0 8px;
    font-size: 1.18rem;
}

.admin-event-main p {
    color: var(--muted);
    margin-bottom: 10px;
}

.admin-event-actions {
    display: grid;
    gap: 10px;
}

.status-form,
.user-admin-form {
    display: grid;
    gap: 8px;
}

.no-margin {
    margin-top: 0;
}

.admin-users-table .status-pill {
    margin: 2px 4px 2px 0;
}

@media (max-width: 1120px) {
    .admin-filter-form,
    .users-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-event-row {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .admin-event-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }
}

@media (max-width: 760px) {
    .admin-dashboard-grid,
    .admin-two-columns,
    .admin-filter-form,
    .users-filter-form,
    .admin-event-row,
    .admin-event-actions {
        grid-template-columns: 1fr;
    }

    .admin-event-row .event-thumb {
        width: 100%;
        height: 190px;
    }
}


/* Etap 6 */
.narrow-content{max-width:920px;margin:0 auto}.legal-hero{background:linear-gradient(135deg,#e7fbff,#f5fff9)}.legal-content h2{margin-top:28px}.legal-content p{line-height:1.75}.report-box{border-top:1px solid rgba(15,43,55,.12);margin-top:22px;padding-top:22px}.compact-form{gap:10px}.compact-form textarea{min-height:84px}.report-list .report-row{align-items:stretch}.status-new{background:#fff3cd;color:#7a5200}.status-reviewed{background:#d1f7e4;color:#116b42}.status-dismissed{background:#ffe1e1;color:#8a1f1f}.compact-admin-filter{grid-template-columns:minmax(180px,260px) auto auto}.full{width:100%}.full-btn{width:100%;justify-content:center;margin-top:10px}

/* Etap 7 — poczta i logi e-mail */
.status-sent {
    background: #e6fbf2;
    color: #08734f;
}

.status-failed {
    background: #ffe8e8;
    color: #ad1f2d;
}

/* Etap 8 — PWA, instalacja jako aplikacja i powiadomienia */
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
}
.checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.pwa-card {
    border: 1px solid rgba(10,166,183,.22);
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(225,249,252,.92));
}
.pwa-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}
.pwa-status {
    display: inline-block;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
}
.pwa-status.success { color: #087f5b; font-weight: 800; }
.pwa-status.warning { color: #a15c00; font-weight: 800; }
.pwa-status.error { color: #b42318; font-weight: 800; }
.pwa-status.info { color: #0a7c89; font-weight: 800; }
.pwa-help {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px dashed rgba(10,124,137,.35);
    color: var(--text);
    line-height: 1.6;
}
.inline-form {
    display: inline-flex;
    margin: 8px 8px 8px 0;
}
.inline-form .btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}
code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    background: rgba(13, 60, 70, .08);
    padding: 3px 7px;
    border-radius: 8px;
}

/* Hotfix — aktualne i nadchodzące wydarzenia */
.event-freshness-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(224,249,252,.9));
}
.event-freshness-card h2 {
    margin: 5px 0 8px;
}
.event-freshness-card p {
    color: var(--muted);
    line-height: 1.65;
}
.freshness-stats,
.home-event-counters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.freshness-stats > div,
.home-counter-card {
    min-width: 132px;
    border-radius: 22px;
    padding: 18px 20px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(10,166,183,.18);
    box-shadow: 0 14px 35px rgba(13,60,70,.08);
}
.freshness-stats strong,
.home-counter-card strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--text);
}
.freshness-stats span,
.home-counter-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}
.home-upcoming-section {
    position: relative;
    overflow: hidden;
}
.home-upcoming-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}
.home-upcoming-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.home-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.home-upcoming-card {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(10,166,183,.14);
    box-shadow: 0 18px 42px rgba(13,60,70,.08);
}
.home-upcoming-image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #dff9fd, #f2fff8);
}
.home-upcoming-placeholder {
    display: grid;
    place-items: center;
    font-size: 3rem;
}
.home-upcoming-body {
    padding: 18px;
}
.home-upcoming-body h3 {
    margin: 10px 0 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}
.home-upcoming-body h3 a {
    color: var(--text);
    text-decoration: none;
}
.home-upcoming-body p,
.home-upcoming-meta {
    color: var(--muted);
    line-height: 1.55;
}
.home-upcoming-meta {
    display: grid;
    gap: 6px;
    margin: 12px 0 16px;
    font-weight: 700;
    font-size: .92rem;
}
.home-empty-events {
    grid-column: 1 / -1;
}
.btn-small {
    min-height: 0;
    padding: 11px 16px;
    font-size: .95rem;
}

@media (max-width: 1100px) {
    .home-upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .event-freshness-card,
    .home-upcoming-head {
        grid-template-columns: 1fr;
    }
    .freshness-stats,
    .home-event-counters {
        width: 100%;
    }
    .freshness-stats > div,
    .home-counter-card {
        flex: 1 1 140px;
    }
    .home-upcoming-grid {
        grid-template-columns: 1fr;
    }
}
