:root {
    --red: #ea4526;
    --red-dark: #c93815;
    --rose: #dfa4a6;
    --rose-light: #f8e9ea;
    --bg: #fffbf7;
    --ink: #2b2320;
    --muted: #8a8078;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

#features, #how, #about, #faq {
    scroll-margin-top: 90px;
}

/* --- NAWIGACJA --- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: sticky;
    top: 0;
    background-color: rgba(255, 251, 247, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 800;
}

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-indicator {
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 2px;
    width: 0;
    border-radius: 2px;
    background-color: var(--red);
    opacity: 0;
    pointer-events: none;
    transition: left 0.35s cubic-bezier(.65, 0, .35, 1),
                width 0.35s cubic-bezier(.65, 0, .35, 1),
                opacity 0.2s ease;
}

@media (max-width: 1180px) {
    .nav {
        padding: 18px 32px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .btn-small {
        padding: 10px 18px;
    }
}

/* --- PROFIL W NAWIGACJI --- */
.nav-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid rgba(234, 69, 38, 0.25);
    background-color: var(--rose-light);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nav-avatar-btn:hover {
    border-color: var(--red);
    transform: translateY(-1px);
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-avatar-fallback {
    font-weight: 800;
    font-size: 15px;
    color: var(--red-dark);
}

.nav-profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background-color: white;
    border-radius: 16px;
    border: 1px solid rgba(43, 35, 32, 0.1);
    box-shadow: 0 16px 40px rgba(43, 35, 32, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 20;
}

.nav-profile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-profile-menu-header {
    padding: 10px 12px 8px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid rgba(43, 35, 32, 0.08);
    margin-bottom: 6px;
    line-height: 1.4;
}

.nav-profile-menu-header strong {
    color: var(--ink);
}

.nav-profile-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.nav-profile-menu a:hover {
    background-color: var(--rose-light);
}

.nav-profile-menu-logout {
    color: var(--red-dark) !important;
}

@media (max-width: 1180px) {
    .nav-avatar-btn {
        width: 34px;
        height: 34px;
    }
}

/* --- PRZYCISKI --- */
.btn {
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    background: none;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--red);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(234, 69, 38, 0.35);
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(0.93);
        box-shadow: 0 6px 14px rgba(234, 69, 38, 0.3);
    }

    70% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

.btn-primary.is-pulsing {
    animation: btnPulse 0.4s ease;
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border: 1.5px solid rgba(43, 35, 32, 0.15);
}

.btn-white {
    background-color: white;
    color: var(--red);
}

.btn-small {
    padding: 10px 22px;
    font-size: 14px;
}

/* --- HERO --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 60px 100px;
}

.hero-text {
    max-width: 460px;
}

.hero-text h1 {
    font-size: 50px;
    line-height: 1.12;
    background: linear-gradient(120deg, var(--ink) 40%, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    margin: 24px 0 32px;
    max-width: 40ch;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* --- HERO VISUAL: DWA TELEFONY + BLOB --- */
.hero-visual {
    position: relative;
    width: 460px;
    height: 620px;
    flex-shrink: 0;
}

.hero-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    top: -20px;
    left: -60px;
    background: var(--red);
    opacity: 0.85;
    z-index: 0;
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
    filter: blur(2px);
    animation: blobIn 0.9s ease both;
}

@keyframes blobIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 0.85;
        transform: scale(1);
    }
}

@keyframes phoneInBack {
    from {
        opacity: 0;
        transform: translate3d(-16px, 46px, 0) rotate(-18deg);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(-11deg);
    }
}

@keyframes phoneInFront {
    from {
        opacity: 0;
        transform: translate3d(16px, 56px, 0) rotate(12deg);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(7deg);
    }
}

.phone-frame {
    position: absolute;
    background: linear-gradient(160deg, #241a16 0%, #150f0c 55%, #1d1512 100%);
    border-radius: 48px;
    padding: 14px;
    box-shadow:
        0 40px 80px rgba(43, 23, 15, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        inset 0 0 0 2px rgba(255, 255, 255, 0.05),
        inset 0 0 14px rgba(0, 0, 0, 0.45);
}

.phone-back {
    width: 230px;
    height: 470px;
    top: 60px;
    left: 0;
    z-index: 1;
    transform: rotate(-11deg);
    filter: brightness(0.97);
    animation: phoneInBack 0.9s cubic-bezier(.22, 1, .36, 1) both;
}

.phone-front {
    width: 280px;
    height: 570px;
    top: 10px;
    left: 190px;
    z-index: 2;
    transform: rotate(7deg);
    animation: phoneInFront 0.9s cubic-bezier(.22, 1, .36, 1) 0.18s both;
}

.phone-btn {
    position: absolute;
    background-color: #17110f;
    border-radius: 4px;
}

.phone-btn-volume-up {
    left: -3px;
    top: 130px;
    width: 3px;
    height: 40px;
}

.phone-btn-volume-down {
    left: -3px;
    top: 180px;
    width: 3px;
    height: 40px;
}

.phone-btn-power {
    right: -3px;
    top: 150px;
    width: 3px;
    height: 60px;
}

.phone-screen {
    position: relative;
    background-color: white;
    border-radius: 36px;
    height: 100%;
    padding: 18px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 24px;
    background-color: #0c0a09;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-notch::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3d4c5c, #0c0a09 70%);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    padding-bottom: 24px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.app-greeting {
    font-weight: 700;
    font-size: 15px;
}

.app-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--rose-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--red);
}

.avatar-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab .icon {
    width: 18px;
    height: 18px;
}

.status-bar {
    align-items: center;
}

.battery {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.battery-body {
    width: 19px;
    height: 10px;
    border: 1.2px solid var(--ink);
    border-radius: 3px;
    padding: 1.5px;
}

.battery-fill {
    height: 100%;
    width: 78%;
    background-color: var(--ink);
    border-radius: 1px;
}

.battery-tip {
    width: 1.5px;
    height: 4px;
    background-color: var(--ink);
    border-radius: 0 2px 2px 0;
}

.app-card {
    background-color: var(--rose-light);
    border-radius: 20px;
    padding: 18px;
}

.app-since {
    color: var(--muted);
    font-size: 11px;
    margin: 0 0 4px;
}

.app-names {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

.app-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--muted);
    font-size: 12px;
}

.app-total {
    color: var(--ink);
    font-weight: 700;
    border-top: 1px solid rgba(43, 35, 32, 0.1);
    margin-top: 4px;
    padding-top: 8px;
}

.app-progress {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    height: 6px;
    margin-top: 12px;
    overflow: hidden;
}

.app-progress-bar {
    background-color: var(--red);
    height: 100%;
    border-radius: 999px;
}

.app-streak-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--ink);
    color: white;
    border-radius: 20px;
    padding: 14px 18px;
    margin-top: 12px;
    font-size: 13px;
}

.app-streak-card strong {
    font-size: 18px;
    color: var(--rose);
}

.tab-bar {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(43, 35, 32, 0.08);
    padding-top: 14px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
}

.tab-active {
    color: var(--red);
    font-weight: 700;
}

.challenge-card {
    background-color: var(--rose-light);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
}

.challenge-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.challenge-status {
    color: var(--red);
}

.challenge-value {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
}

/* --- BENTO GRID --- */
.bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 60px 100px;
}

.bento-item {
    background-color: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(43, 35, 32, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(43, 35, 32, 0.12);
}

.bento-large {
    background-color: var(--rose-light);
    box-shadow: none;
}

.bento-wide {
    grid-column: span 2;
    background-color: var(--rose-light);
    box-shadow: none;
}

.bento-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.bento-item p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.bento-chip {
    display: inline-block;
    margin-top: 20px;
    background-color: white;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}

/* --- KROKI --- */
.steps-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 60px 100px;
    text-align: center;
}

.steps-section h2 {
    font-size: 32px;
    margin-bottom: 50px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
}

.step h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* --- O PROJEKCIE --- */
.about {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 60px 100px;
}

.about-text {
    flex: 1.4;
}

.about-text h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 60ch;
}

.about-chips {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chip {
    border: 1px solid rgba(43, 35, 32, 0.12);
    background-color: white;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--muted);
}

/* --- FAQ --- */
.faq {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 60px 100px;
}

.faq h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 32px;
}

.faq-item {
    background-color: white;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 12px;
    border: 1px solid rgba(43, 35, 32, 0.08);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 24px rgba(43, 35, 32, 0.06);
    border-color: rgba(43, 35, 32, 0.14);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-item p {
    color: var(--muted);
    margin: 12px 0 0;
    line-height: 1.6;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.faq-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--rose-light);
    color: var(--red);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle svg {
    width: 12px;
    height: 12px;
}

.faq-toggle-bar-v {
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

.faq-item.is-open .faq-toggle-bar-v {
    transform: scaleY(0);
    opacity: 0;
}

/* --- CTA --- */
.cta {
    text-align: center;
    padding: 100px 24px;
    margin: 0 24px 24px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--red), var(--rose));
    color: white;
}

.cta-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.cta-mark img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.cta h2 {
    font-size: 34px;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.3;
    color: white;
}

/* --- FOOTER --- */
.footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 60px 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(43, 35, 32, 0.1);
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 32ch;
}

.footer-col h5 {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    color: var(--muted);
    font-size: 13px;
}

/* --- ACCESSIBILITY --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .btn-primary.is-pulsing {
        animation: none;
    }

    .hero-blob,
    .phone-back,
    .phone-front {
        animation: none;
        opacity: 1;
    }

    .bento-item {
        transition: none;
    }

    .nav-indicator {
        transition: opacity 0.2s ease;
    }
}

/* --- MOBILE --- */
@media (max-width: 900px) {
    .nav {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 24px 80px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        width: 100%;
        height: 420px;
    }

    .phone-back {
        display: none;
    }

    .phone-front {
        left: 50%;
        top: 0;
        transform: translateX(-50%) rotate(0deg);
        width: 240px;
        height: 480px;
    }

    .hero-blob {
        width: 320px;
        height: 320px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .bento {
        grid-template-columns: 1fr;
        padding: 0 24px 80px;
    }

    .bento-wide {
        grid-column: span 1;
    }

    .steps-section {
        padding: 0 24px 80px;
    }

    .about {
        flex-direction: column;
        padding: 0 24px 80px;
        gap: 24px;
    }

    .faq {
        padding: 0 24px 80px;
    }

    .cta {
        margin: 0 12px 12px;
        padding: 70px 24px;
    }

    .footer {
        padding: 40px 24px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* --- DASHBOARD PARY --- */
.dash-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.dash-empty {
    color: var(--muted);
    margin-bottom: 24px;
}

.dash-couple-card {
    background-color: white;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(43, 35, 32, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.dash-couple-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dash-avatar-pair {
    display: flex;
}

.dash-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(43, 35, 32, 0.15);
    background-color: var(--rose-light);
    color: var(--red-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    overflow: hidden;
}

.dash-avatar-pair .dash-avatar:nth-child(2) {
    margin-left: -18px;
}

.dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dash-couple-names {
    font-size: 20px;
    font-weight: 800;
}

.dash-couple-since {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.dash-stats {
    display: flex;
    gap: 14px;
}

.dash-stat {
    background-color: var(--rose-light);
    border-radius: 16px;
    padding: 14px 22px;
    text-align: center;
    min-width: 96px;
}

.dash-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--red-dark);
}

.dash-stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

.dash-section-title {
    font-size: 22px;
    margin-bottom: 4px;
}

.dash-section-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 24px;
}

.dash-group-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--red-dark);
    margin: 0 0 14px;
}

.dash-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.dash-challenge-card {
    background-color: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
}

.dash-challenge-card.is-completed {
    background-color: var(--rose-light);
    box-shadow: none;
}

.dash-challenge-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.dash-challenge-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}

.dash-challenge-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.dash-challenge-badge.active {
    background-color: rgba(234, 69, 38, 0.1);
    color: var(--red-dark);
}

.dash-challenge-badge.completed {
    background-color: rgba(76, 156, 96, 0.15);
    color: #2f7a44;
}

.dash-period-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: var(--rose-light);
    color: var(--red-dark);
}

.dash-progress-track {
    background-color: rgba(43, 35, 32, 0.08);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dash-progress-fill {
    background-color: var(--red);
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.dash-challenge-value {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.dash-progress-breakdown {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

.dash-progress-breakdown strong {
    color: var(--ink);
}

.dash-progress-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-progress-form input[type="number"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(43, 35, 32, 0.15);
    font-family: inherit;
    font-size: 14px;
}

.dash-progress-form input[type="number"]:focus {
    outline: none;
    border-color: var(--red);
}

.dash-progress-form .btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 42px;
}

.dash-points-reward {
    font-size: 13px;
    font-weight: 700;
    color: #2f7a44;
    margin: 0;
}

.dash-add-card {
    background-color: var(--rose-light);
    border-radius: 20px;
    padding: 26px;
}

.dash-add-card h3 {
    font-size: 17px;
    margin-bottom: 16px;
}

.dash-add-form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.dash-add-form-row .form-group {
    flex: 1;
    min-width: 160px;
    margin-bottom: 0;
}

.dash-add-section {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    align-items: stretch;
}

.dash-random-card {
    background-color: white;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
    display: flex;
    flex-direction: column;
}

.dash-random-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.dash-random-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
    flex: 1;
}

@media (max-width: 760px) {
    .dash-add-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dash-couple-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-stats {
        width: 100%;
    }

    .dash-stat {
        flex: 1;
    }
}

/* --- USTAWIENIA --- */
.dash-wrap-narrow {
    max-width: 640px;
}

.settings-card {
    background-color: white;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
    margin-bottom: 24px;
}

.settings-card h2 {
    font-size: 19px;
    margin-bottom: 4px;
}

.settings-card-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.settings-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(43, 35, 32, 0.08);
    font-size: 14px;
}

.settings-info-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.settings-info-label {
    color: var(--muted);
}

.settings-info-value {
    font-weight: 700;
    text-align: right;
}

.danger-zone {
    background-color: rgba(234, 69, 38, 0.04);
    border: 1.5px solid rgba(234, 69, 38, 0.25);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.danger-zone h2 {
    font-size: 19px;
    color: var(--red-dark);
    margin-bottom: 4px;
}

.danger-zone-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(234, 69, 38, 0.15);
    flex-wrap: wrap;
}

.danger-zone-item:first-of-type {
    border-top: none;
    padding-top: 20px;
}

.danger-zone-item-text h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.danger-zone-item-text p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    max-width: 40ch;
}

.danger-confirm-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2px;
}

.danger-confirm-form input[type="password"] {
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(234, 69, 38, 0.3);
    font-family: inherit;
    font-size: 14px;
    width: 170px;
    background-color: white;
}

.danger-confirm-form input[type="password"]:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(234, 69, 38, 0.12);
}

.btn-danger,
.btn-danger-outline {
    height: 42px;
    padding: 0 20px;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 10px;
    font-size: 14px;
    line-height: 42px;
}

.btn-danger {
    background-color: var(--red);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 12px 24px rgba(234, 69, 38, 0.35);
}

.btn-danger-outline {
    background-color: transparent;
    color: var(--red-dark);
    border: 1.5px solid rgba(234, 69, 38, 0.35);
}

.btn-danger-outline:hover {
    background-color: rgba(234, 69, 38, 0.06);
    box-shadow: none;
}

@media (max-width: 560px) {
    .danger-zone-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .danger-confirm-form {
        width: 100%;
    }

    .danger-confirm-form input[type="password"] {
        flex: 1;
        min-width: 0;
    }
}

/* --- LOGOWANIE / REJESTRACJA --- */
.auth-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
}

.auth-topbar .nav-brand {
    text-decoration: none;
    color: var(--ink);
}

.auth-topbar-back {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-topbar-back:hover {
    color: var(--ink);
}

.auth-page {
    display: flex;
    min-height: calc(100vh - 76px);
}

.auth-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--red), var(--rose));
    color: white;
    padding: 60px;
}

.auth-blob {
    position: absolute;
    border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
    background-color: rgba(255, 255, 255, 0.14);
}

.auth-blob-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -100px;
}

.auth-blob-2 {
    width: 260px;
    height: 260px;
    bottom: -80px;
    left: -60px;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-visual-content h1 {
    font-size: 38px;
    margin-bottom: 16px;
}

.auth-visual-content p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-visual-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-weight: 600;
}

.auth-visual-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-visual-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    flex-shrink: 0;
}

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-card h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--muted);
    margin: 0 0 32px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.auth-alert-error {
    background-color: rgba(234, 69, 38, 0.1);
    color: var(--red-dark);
    border: 1px solid rgba(234, 69, 38, 0.25);
}

.auth-alert-success {
    background-color: rgba(76, 156, 96, 0.12);
    color: #2f7a44;
    border: 1px solid rgba(76, 156, 96, 0.3);
}

.profile-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background-color: var(--rose-light);
    border: 3px solid rgba(234, 69, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-preview span {
    font-size: 34px;
    font-weight: 800;
    color: var(--red-dark);
}

.invite-code-box {
    background-color: var(--rose-light);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.invite-code-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.invite-code-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--red);
}

.invite-code-hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.field-error {
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 600;
    margin: 2px 0 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(43, 35, 32, 0.15);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(234, 69, 38, 0.12);
}

.password-field {
    position: relative;
    display: flex;
}

.password-field input {
    flex: 1;
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-row a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
}

.btn-block {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(43, 35, 32, 0.1);
}

.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.auth-footer-text a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .auth-visual {
        display: none;
    }

    .auth-topbar {
        padding: 20px 24px;
    }

    .auth-page {
        min-height: auto;
    }

    .auth-panel {
        align-items: flex-start;
        padding-top: 24px;
    }
}
/* ============================================================
   DUOLY — Kalendarz, Sklep z nagrodami i usprawnienia panelu
   ============================================================ */

:root {
    --amber: #d9922e;
    --teal: #3f8f86;
}

/* --- Aktywna zakładka w górnej nawigacji --- */
.nav-links a.is-active {
    color: var(--red-dark);
    font-weight: 700;
}

.dash-wrap-wide {
    max-width: 1180px;
}

/* --- Dodatkowy akcentowy "stat" (punkty do wydania) --- */
.dash-stat-accent {
    background-color: rgba(234, 69, 38, 0.1);
}

/* --- Kafelki szybkiego dostępu (Kalendarz / Sklep nagród) --- */
.dash-quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.dash-quicklink-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: white;
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
    text-decoration: none;
    color: var(--ink);
    border: 1.5px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.dash-quicklink-card:hover {
    border-color: rgba(234, 69, 38, 0.3);
    transform: translateY(-2px);
}

.dash-quicklink-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    background-color: var(--rose-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-quicklink-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dash-quicklink-title {
    font-weight: 800;
    font-size: 16px;
}

.dash-quicklink-sub {
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Formularze: textarea dopasowana do stylu inputów --- */
.form-group textarea {
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(43, 35, 32, 0.15);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background-color: white;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(234, 69, 38, 0.12);
}

/* ============================================================
   KALENDARZ
   ============================================================ */

.cal-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.cal-main {
    background-color: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(43, 35, 32, 0.05);
}

.cal-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.cal-month-title {
    font-size: 19px;
    flex: 1;
    text-align: center;
}

.cal-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: var(--rose-light);
    color: var(--red-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    transition: background-color 0.2s ease;
}

.cal-nav-btn:hover {
    background-color: var(--rose);
    color: white;
}

.cal-today-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--red-dark);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(234, 69, 38, 0.25);
    white-space: nowrap;
}

.cal-today-btn:hover {
    background-color: var(--rose-light);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-grid-head {
    margin-bottom: 6px;
}

.cal-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    padding-bottom: 4px;
}

.cal-cell {
    min-height: 88px;
    border-radius: 12px;
    background-color: rgba(43, 35, 32, 0.03);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-cell-empty {
    background-color: transparent;
}

.cal-cell.is-today {
    background-color: rgba(234, 69, 38, 0.08);
    border: 1.5px solid rgba(234, 69, 38, 0.35);
}

.cal-cell-daynum {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.cal-cell.is-today .cal-cell-daynum {
    color: var(--red-dark);
}

.cal-cell-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cal-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-chip-more {
    background-color: rgba(43, 35, 32, 0.12);
    color: var(--ink);
}

.cat-date { background-color: var(--red); }
.cat-anniversary { background-color: var(--teal); }
.cat-reminder { background-color: var(--amber); }
.cat-other { background-color: var(--muted); }

.cal-add-card,
.cal-upcoming-card {
    background-color: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
    margin-bottom: 20px;
}

.cal-add-card h3,
.cal-upcoming-card h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.cal-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cal-upcoming-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cal-upcoming-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.cal-upcoming-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cal-upcoming-title {
    font-weight: 700;
    font-size: 14px;
}

.cal-upcoming-meta {
    font-size: 12px;
    color: var(--muted);
}

.cal-upcoming-note {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

.cal-delete-form {
    flex-shrink: 0;
}

.cal-delete-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.cal-delete-btn:hover {
    color: var(--red-dark);
    background-color: var(--rose-light);
}

@media (max-width: 900px) {
    .cal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cal-cell {
        min-height: 64px;
        padding: 5px;
    }

    .cal-chip {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* ============================================================
   SKLEP Z NAGRODAMI
   ============================================================ */

.points-summary-card {
    display: flex;
    gap: 14px;
    background-color: white;
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 20px 40px rgba(43, 35, 32, 0.05);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.points-summary-item {
    background-color: rgba(234, 69, 38, 0.1);
    border-radius: 16px;
    padding: 16px 24px;
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.points-summary-item-muted {
    background-color: var(--rose-light);
}

.points-summary-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--red-dark);
}

.points-summary-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.reward-card {
    position: relative;
    background-color: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.reward-card.is-locked {
    opacity: 0.75;
}

.reward-icon {
    font-size: 30px;
    margin-bottom: 6px;
}

.reward-title {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.reward-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 2px 0 10px;
    line-height: 1.4;
}

.reward-cost {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--red-dark);
    background-color: var(--rose-light);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.reward-card form {
    width: 100%;
    margin-top: auto;
}

.reward-remove-form {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto;
    margin: 0;
}

.reward-remove-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    margin-right: 150px;
}

.reward-remove-btn:hover {
    color: var(--red-dark);
    background-color: var(--rose-light);
}

.redemption-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: 320px;
}

.redemption-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(43, 35, 32, 0.08);
}

.redemption-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.redemption-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.redemption-title {
    font-weight: 700;
    font-size: 14px;
}

.redemption-meta {
    font-size: 12px;
    color: var(--muted);
}

.redemption-status-done {
    font-size: 12px;
    font-weight: 700;
    color: #2f7a44;
    white-space: nowrap;
}

/* ========================================================================
   Nagłówek sekcji z dodatkową akcją (np. licznik serduszek na kalendarzu)
   ======================================================================== */
.dash-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.cal-hearts-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--rose-light);
    color: var(--red-dark);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cal-hearts-summary-icon {
    color: var(--red);
    font-size: 16px;
}

/* ========================================================================
   Kalendarz — serduszka na dniach + lepsza interaktywność
   ======================================================================== */
.cal-cell {
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.cal-cell:hover {
    background-color: var(--rose-light);
}

.cal-cell.is-hearted {
    box-shadow: inset 0 0 0 2px var(--rose);
}

.cal-cell-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}

.cal-heart-btn {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: rgba(43, 35, 32, 0.18);
    padding: 2px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.cal-cell:hover .cal-heart-btn {
    color: rgba(234, 69, 38, 0.35);
}

.cal-heart-btn:hover {
    transform: scale(1.2);
}

.cal-heart-btn.is-active {
    color: var(--red);
}

.cal-heart-btn.is-active:hover {
    transform: scale(1.15);
}

/* ========================================================================
   Mapa — przełącznik udostępniania lokalizacji
   ======================================================================== */
.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.map-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
    padding: 16px 20px;
    flex: 1 1 320px;
}

.map-toggle-text h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.map-toggle-text p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.map-toggle-switch {
    appearance: none;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: rgba(43, 35, 32, 0.15);
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.map-toggle-switch.is-on {
    background: var(--red);
}

.map-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(43, 35, 32, 0.25);
    transition: transform 0.2s ease;
}

.map-toggle-switch.is-on .map-toggle-knob {
    transform: translateX(20px);
}

.map-partner-note {
    background: var(--rose-light);
    color: var(--red-dark);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    flex: 1 1 260px;
}

.map-canvas {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(43, 35, 32, 0.05);
    overflow: hidden;
    background: var(--rose-light);
}

.map-status {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* Pinezki Leaflet w stylu Duoly */
.map-pin {
    background: transparent;
    border: none;
}

.map-pin-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rose);
    border: 3px solid #fff;
    box-shadow: 0 6px 14px rgba(43, 35, 32, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 800;
    color: #fff;
    font-size: 16px;
}

.map-pin-me .map-pin-inner {
    background: var(--red);
}

.map-pin-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-pin-tail {
    width: 10px;
    height: 10px;
    background: inherit;
    margin: -6px auto 0;
    transform: rotate(45deg);
    display: none;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
/* ============================================================
   Duoly — dodatki: „Tęsknię”, powiadomienia, kolory/czas trwania
   wydarzeń, podgląd dnia 24h, karta cyklu
   ============================================================ */

.cal-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cal-icon-btn {
    position: relative;
    border: 1px solid rgba(43, 35, 32, 0.12);
    background: #fff;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

.cal-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(43, 35, 32, 0.12);
}

.cal-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
}

.cal-notif-panel {
    position: absolute;
    right: 24px;
    margin-top: -8px;
    width: min(340px, 90vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(43, 35, 32, 0.18);
    z-index: 40;
    overflow: hidden;
    border: 1px solid rgba(43, 35, 32, 0.08);
}

.cal-notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(43, 35, 32, 0.08);
}

.cal-notif-panel-head button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--muted);
}

.cal-notif-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 6px 0;
}

.cal-notif-item {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(43, 35, 32, 0.06);
}

.cal-notif-item:last-child {
    border-bottom: none;
}

.cal-notif-item.is-unread {
    background: var(--rose-light);
}

.cal-notif-item strong {
    display: block;
    font-size: 14px;
}

.cal-notif-item p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.cal-notif-time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
}

.cal-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 80;
}

/* Kolory wydarzeń w komórkach */
.cal-chip {
    border-radius: 8px;
    padding: 2px 6px;
}

.cal-chip-continuation {
    opacity: 0.75;
}

/* Przewidywania cyklu na siatce */
.cal-cell.is-predicted-period {
    box-shadow: inset 0 0 0 2px rgba(234, 69, 38, 0.35);
    background: rgba(234, 69, 38, 0.05);
}

.cal-cell.is-fertile {
    box-shadow: inset 0 0 0 2px rgba(159, 122, 234, 0.35);
    background: rgba(159, 122, 234, 0.06);
}

/* Karta cyklu */
.cal-cycle-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(43, 35, 32, 0.06);
    margin-bottom: 18px;
}

.cal-cycle-card h3 {
    margin: 0 0 10px;
}

.cal-cycle-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(43, 35, 32, 0.06);
}

.cal-cycle-stat-row:last-of-type {
    border-bottom: none;
}

.cal-cycle-stat-row span {
    color: var(--muted);
}

.cal-cycle-footnote {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* Modal podglądu dnia (24h) */
.cal-day-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(43, 35, 32, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.cal-day-modal-overlay:not([hidden]) {
    display: flex;
}

.cal-day-modal {
    background: #fff;
    border-radius: 20px;
    width: min(480px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
}

.cal-day-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal-day-modal-head button {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
}

.cal-day-timeline {
    position: relative;
    display: flex;
    border: 1px solid rgba(43, 35, 32, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    height: 320px;
}

.cal-timeline-track {
    flex: 0 0 56px;
    border-right: 1px solid rgba(43, 35, 32, 0.08);
    position: relative;
}

.cal-timeline-hour {
    height: calc(320px / 24);
    font-size: 10px;
    color: var(--muted);
    padding-left: 4px;
    border-top: 1px solid rgba(43, 35, 32, 0.04);
}

.cal-timeline-hour span {
    display: block;
    transform: translateY(-6px);
}

.cal-timeline-events {
    flex: 1;
    position: relative;
}

.cal-timeline-block {
    position: absolute;
    left: 6px;
    right: 6px;
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 11.5px;
    overflow: hidden;
    line-height: 1.3;
}

.cal-timeline-block strong {
    display: block;
    font-size: 10.5px;
}

.cal-day-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.cal-day-modal-item {
    background: var(--bg);
    border-radius: 10px;
    padding: 10px 12px;
}

.cal-day-modal-item strong {
    display: block;
    font-size: 14px;
}

.cal-day-modal-item span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.cal-day-modal-item p {
    margin: 6px 0 0;
    font-size: 12.5px;
}

@media (max-width: 640px) {
    .cal-notif-panel {
        right: 12px;
        left: 12px;
        width: auto;
    }
}
