@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&family=Inter:wght@400..700&display=swap');

* {
    box-sizing: border-box;
}

:root {
    /* Tmavá romantická téma (atmosféra z prezentácie): hlboká slivka + granát + zlato */
    --bg: #190F16;          /* základné tmavé pozadie (gradient je na body) */
    --bg-2: #221320;
    --card: #271624;        /* karty / vyvýšené plochy */
    --card-2: #2F1C2B;
    --text: #F4E9E4;        /* teplá takmer-biela – text */
    --muted: #B9A0AB;       /* tlmená mauve */
    --line: rgba(244, 233, 228, .14);
    --line-soft: rgba(244, 233, 228, .07);
    --accent: #8E3354;      /* granát – primárna akcia (rozjasnený pre tmavé pozadie) */
    --accent-deep: #A8426B; /* svetlejší odtieň pre hover/odkazy na tmavom */
    --rose: #DB917C;        /* teplá koralová – odkazy, akcenty */
    --gold: #D7AC63;        /* sviečkové zlato */
    --plum: #140C12;
    --plum-2: #221320;
    --success: #84D6A0;
    --success-bg: rgba(47, 107, 69, .20);
    --success-border: rgba(132, 214, 160, .34);
    --error: #EA8B9C;
    --error-bg: rgba(178, 58, 78, .18);
    --error-border: rgba(234, 139, 156, .34);
    --warn-text: #E7CF9F;
    --warn-bg: rgba(195, 154, 82, .15);
    --warn-border: rgba(231, 207, 159, .32);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
    --shadow-sm: 0 16px 40px -22px rgba(0, 0, 0, .65);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== BASE ===== */

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body {
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(110% 70% at 85% -5%, rgba(219, 145, 124, .16), transparent 55%),
        radial-gradient(90% 70% at 5% 105%, rgba(215, 172, 99, .12), transparent 50%),
        linear-gradient(160deg, #231421 0%, #190F16 55%, #120A10 100%);
    background-attachment: fixed;
}

.container {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 28px 20px 56px;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.01em;
    color: var(--text);
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.3rem; }

a {
    color: var(--rose);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--gold);
}

.lead,
.help,
.small {
    color: var(--muted);
}

.lead {
    font-size: 1.08rem;
}

.help,
.small {
    font-size: .92rem;
}

/* ===== LAYOUT ===== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text);
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 18px;
    font-weight: 500;
    font-size: .95rem;
}

.nav a:hover {
    color: var(--accent);
}

.card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

/* ===== FLASH / NOTICE ===== */

.flash,
.notice,
.errors {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid;
}

.flash.success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.flash.error,
.errors {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error);
}

.notice {
    background: var(--warn-bg);
    border-color: var(--warn-border);
}

ul.errors {
    padding-left: 32px;
}

/* ===== FORMS ===== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Form prvky majú plnú šírku svojho kontajnera (predtým tu bolo width: 50%,
   čo rozbíjalo takmer každý formulár a muselo sa ručne prepisovať na viacerých miestach).
   Button je zámerne vyňatý - jeho šírku riadi kontext, nie globálne pravidlo. */
input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
}

button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    background: var(--card-2);
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 45, 73, .14);
}

/* Checkbox, radio a file inputy nikdy nemajú byť roztiahnuté na plnú šírku.
   Toto cielené pravidlo nahrádza predošlé ad-hoc width:auto opravy na jednotlivých prvkoch. */
input[type="checkbox"],
input[type="radio"],
input[type="file"] {
    width: auto;
    border: none;
    padding: 0;
    background: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button,
.button {
    border: none;
    border-radius: 999px;
    padding: 13px 24px;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    box-shadow: 0 14px 30px -16px rgba(124, 45, 73, .8);
}

button:hover,
.button:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 20px 38px -18px rgba(124, 45, 73, .9);
}

.button.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button.secondary:hover {
    background: rgba(244, 233, 228, .06);
    border-color: var(--accent-deep);
    color: var(--rose);
}

.inline-form {
    display: inline-block;
    margin-top: 8px;
}

/* ===== FRONTEND FORM VALIDATION ===== */

.field-error-message {
    margin-top: 6px;
    font-size: .9rem;
    color: var(--error);
}

.field-invalid {
    border-color: var(--error) !important;
    background: var(--error-bg);
}

.form-row.has-error label {
    color: var(--error);
}

.form-row.has-error .help {
    margin-top: 6px;
}

/* Chybové hlášky pod jednotlivými poľami (generované cez form-validation.js). */
.field-error-message {
    display: none;
    margin-top: 6px;
    color: var(--error);
    font-size: 14px;
    line-height: 1.4;
}

input.has-error,
select.has-error,
textarea.has-error {
    border-color: var(--error);
}

/* ===== LOADING BUTTONS ===== */

button.is-loading,
.button.is-loading,
input[type="submit"].is-loading {
    opacity: .75;
    cursor: progress;
    pointer-events: none;
    position: relative;
    border: 2px solid #ffffff;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .05);
    color: #ffffff;
}

button.is-loading::before,
.button.is-loading::before {
    content: "";
    display: inline-block;
    width: .9em;
    height: .9em;
    margin-right: .55em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.12em;
    animation: ck-spin .7s linear infinite;
}

@keyframes ck-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== OLD HERO ===== */

.page-title-center {
    text-align: center;
}

.homepage-register-action {
    text-align: center;
    margin: 22px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
}

.hero {
    position: relative;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 40px;
    max-width: 600px;
    background: linear-gradient(to right, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}

/* ===== LANDING PAGE ===== */

.landing-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #000000;
}

.landing-background-slider {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000000;
    pointer-events: none;
}

.landing-background-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 900ms ease;
}

.landing-background-slide.active {
    opacity: 1;
}

.landing-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 48px;
}

.landing-title-block {
    display: flex;
    justify-content: center;
}

.landing-title-shadow {
    position: relative;
    display: inline-block;
    padding: .5em .75em;
    isolation: isolate;
}

.landing-title-shadow::before {
    content: "";
    position: absolute;
    inset: -.5em;
    z-index: -1;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, .15) 0%,
        rgba(0, 0, 0, .10) 42%,
        rgba(0, 0, 0, 0) 78%
    );
    pointer-events: none;
}

.landing-title-block h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 7.5rem);
    line-height: .95;
    letter-spacing: -.06em;
    font-weight: 800;
}

.landing-title-block p {
    margin: 14px 0 0;
    color: rgb(248, 248, 248);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 400;
}

/* Odkaz na článok o Silvii Sensali priamo pod hlavným nadpisom. Je to
   podnadpis, nie tlačidlo, takže ostáva odkazom - podčiarknutie sa objaví
   až pri prejdení myšou, aby nesúperil s hlavným CTA. */
.landing-title-block p.landing-silvia-link {
    margin-top: 10px;
    font-size: clamp(.95rem, 1.4vw, 1.2rem);
}

.landing-title-block p.landing-silvia-link a {
    color: rgb(248, 248, 248);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    padding-bottom: 1px;
    transition: border-color .15s ease, opacity .15s ease;
}

.landing-title-block p.landing-silvia-link a:hover,
.landing-title-block p.landing-silvia-link a:focus-visible {
    border-bottom-color: rgba(255, 255, 255, .95);
}

.landing-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing-cta-button {
    display: inline-block;
    padding: 16px 0.5em;
    border: 2px solid #ffffff;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .05);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 180ms ease, transform 180ms ease;
}

.landing-cta-button:hover {
    background: rgba(0, 0, 0, .15);
    transform: translateY(-1px);
}

.landing-login-link {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
}

.landing-login-link a {
    color: rgba(255, 255, 255, .9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, .55);
    font-size: .78rem;
}

.landing-footer a {
    color: rgba(255, 255, 255, .62);
    text-decoration: none;
}

.landing-footer a:hover {
    color: rgba(255, 255, 255, .9);
}

.landing-flash {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 5;
    width: min(92vw, 520px);
    transform: translateX(-50%);
}

/* ===== BLOG ===== */

/* ===== BLOG GRID (konsolidované do jedného miesta) =====
   Mobile-first: vodorovný swipe carousel. Na desktope (>=1024px) prepne na 3-stĺpcovú
   mriežku - jediný desktop breakpoint, predtým ich bolo viacero a navzájom si konkurovali. */
.blog-grid,
.blog-grid-home {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 16px 4px;
    margin-bottom: 5px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.blog-grid::-webkit-scrollbar,
.blog-grid-home::-webkit-scrollbar {
    display: none;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
    display: flex;
    flex-direction: column;
    flex: 0 0 85%;
    scroll-snap-align: center;
    box-sizing: border-box;
}

.blog-card-title {
    text-align: center;
    margin: 0 0 16px;
}

.blog-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.blog-card-perex {
    flex: 1;
    color: var(--text);
}

.blog-card-action {
    text-align: center;
    margin-top: 16px;
}

.blog-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 18px 0;
}

.blog-detail-content {
    white-space: pre-wrap;
    font-size: 1.05rem;
}

/* Tablet: 2 karty vedľa seba (stále swipe). */
@media (min-width: 600px) {
    .blog-card {
        flex: 0 0 46%;
    }
}

/* Desktop/tablet na šírku: prepnutie na 3-stĺpcovú mriežku, koniec horizontálneho scrollu.
   Toto je JEDINÝ desktop breakpoint pre blog - predtým ich bolo viacero (769/992/1024)
   a navzájom si prepisovali pravidlá podľa poradia v súbore. */
@media (min-width: 769px) {
    .blog-grid,
    .blog-grid-home {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 24px;
        padding: 0;
        margin-bottom: 0;
    }

    .blog-grid .blog-card,
    .blog-grid-home .blog-card {
        flex: none;
        width: auto;
        min-width: 0;
        scroll-snap-align: unset;
    }

    .blog-swipe-indicator {
        display: none;
    }
}

/* Minimalistický indikátor bez textu */
.blog-swipe-indicator {
    display: block;
    text-align: center;
    margin: 20px 0 35px 0; /* Upravené marginy pre vyvážený priestor */
    user-select: none;
}

.swipe-arrows {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 22px; /* Mierne zväčšené šípky pre lepšiu viditeľnosť */
    color: var(--rose);
}

.swipe-arrows .arrow {
    font-weight: bold;
    opacity: 0.6;
}

/* Animácia blikania a posuvu šípok */
.swipe-arrows .arrow-left {
    animation: pulseLeft 2s infinite ease-in-out;
}
.swipe-arrows .arrow-right {
    animation: pulseRight 2s infinite ease-in-out;
}

.swipe-arrows .dot {
    width: 6px;
    height: 6px;
    background-color: rgba(124, 45, 73, .22);
    border-radius: 50%;
}

.swipe-arrows .dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* Definícia animácií pohybu */
@keyframes pulseLeft {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(-5px); opacity: 0.9; }
}

@keyframes pulseRight {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(5px); opacity: 0.9; }
}

/* ===== PROFILE PREVIEW ===== */

.profile-preview {
    margin-bottom: 22px;
}

.profile-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.profile-preview-kicker {
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-preview-name {
    font-size: 2rem;
    line-height: 1.15;
    margin: 0;
}

.profile-preview-note {
    max-width: 420px;
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

.profile-preview-grid {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) 1.1fr;
    gap: 22px;
    align-items: start;
}

.profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg);
}

.profile-photo.primary {
    grid-column: 1 / -1;
    max-height: 460px;
}

.profile-preview-content {
    display: grid;
    gap: 16px;
}

.profile-info-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: var(--card);
}

.profile-info-block h2 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.profile-info-block p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
}

/* ===== CONVERSATION / CHAT ===== */

.badge-unread {
    display: inline-block;
    background: var(--error);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    vertical-align: middle;
}

.badge-unread-soft {
    color: var(--error);
    font-weight: 600;
    margin-left: 6px;
}

.card-unread {
    border: 1px solid var(--error);
    box-shadow: 0 0 0 1px rgba(178, 58, 78, .15);
}

.conversation-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.conversation-message {
    max-width: 78%;
    padding: 14px;
    margin: 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}

.conversation-message-own {
    align-self: flex-end;
    background: #3A2030;
    border-bottom-right-radius: var(--radius-sm);
}

.conversation-message-other {
    align-self: flex-start;
    background: var(--card-2);
    border-bottom-left-radius: var(--radius-sm);
}

.conversation-message .small {
    font-size: 12px;
    color: #6b7280;
    opacity: .8;
    margin-bottom: 6px;
    line-height: 1.4;
}

.conversation-read-status-sent {
    color: var(--muted);
}

.conversation-read-status-read {
    color: var(--success);
    font-weight: 600;
}

#typing-indicator {
    margin-top: 6px;
    color: #6b7280;
    font-style: italic;
    opacity: .85;
}

#typing-indicator[hidden] {
    display: none;
}

/* ===== ADMIN / TABLE HELPERS ===== */

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.admin-card-grid-card {
    margin: 0;
    height: 100%;
}

.table-responsive {
    overflow: auto;
}

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

.table-header-cell {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #d9e2ec;
}

.table-data-cell {
    padding: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.table-cell-nowrap {
    white-space: nowrap;
}

.table-cell-error {
    max-width: 280px;
}

.retry-form-top,
.form-grid-top,
.registration-edit-form-top {
    margin-top: 16px;
}

.summary-count-top {
    margin-top: 12px;
}

.form-inline-actions,
.pagination-inline-nav,
.suggestion-action-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-inline-nav {
    margin-top: 16px;
}

.pagination-inline-nav-label {
    padding: 10px 0;
}

.inline-button-top {
    margin-top: 8px;
}

.registration-edit-header,
.suggestion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.registration-edit-title-reset,
.suggestion-card-meta {
    margin: 0;
}

.suggestion-card-title {
    margin: 0 0 8px;
}

.suggestion-photo-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.suggestion-photo-item {
    width: 160px;
}

.suggestion-photo-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.suggestion-photo-caption {
    margin-top: 4px;
}

.suggestion-about-text {
    white-space: pre-wrap;
}

/* ===== CHECKBOX / MODAL ===== */

.profile-checkbox-section {
    margin-top: 22px;
}

.profile-checkbox-section > h2 {
    margin-bottom: 6px;
}

.profile-checkbox-category {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-top: 16px;
}

.profile-checkbox-category.tone-1 {
    background: rgba(255, 255, 255, .03);
}

.profile-checkbox-category.tone-2 {
    background: rgba(219, 145, 124, .07);
}

.profile-checkbox-category.tone-3 {
    background: rgba(215, 172, 99, .06);
}

.profile-checkbox-category-title {
    font-size: 1.12rem;
    line-height: 1.25;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(31, 41, 51, .08);
}

.profile-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
}

.profile-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

.profile-checkbox-input {
    width: auto;
    flex: 0 0 auto;
    margin-top: 3px;
}

/* ===== MODALS ===== */

.modal-overlay[hidden],
.modal-overlay.is-hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .55);
}

.modal-overlay.is-open {
    display: flex;
    pointer-events: auto!important;
}

.modal-panel {
    position: relative;
    z-index: 1301;
    width: min(100%, 640px);
    max-height: 90vh;
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
}

.modal-close {
    width: auto;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--card-2);
    color: var(--text);
    cursor: pointer;
    box-shadow: none;
}

.modal-close:hover,
.modal-close:focus {
    background: #3A2433;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .admin-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 1024px) and (min-width: 769px) {
    .landing-page {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 42px 34px 82px;
    }

    .landing-title-block {
        justify-content: flex-start;
        text-align: left;
    }

    .landing-cta-block {
        align-items: flex-end;
        text-align: right;
    }
}

@media (max-width: 768px) {
    .form-grid,
    .hero-grid,
    .profile-preview-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav a {
        margin-left: 0;
        margin-right: 12px;
    }

    .card {
        padding: 18px;
    }

    .profile-preview-name {
        font-size: 1.7rem;
    }

    .conversation-message {
        max-width: 100%;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .modal-panel {
        max-height: 92vh;
    }

    /* Hero je na šírku a Silvia sedí v jeho pravej tretine. Pri "cover" sa na
       úzkom displeji oreže obraz od stredu, takže by z nej ostal kus ramena.
       Posunutím ohniska doprava zostane na mobile v zábere. */
    .landing-background-slide {
        background-position: 76% center;
    }

    .landing-page {
        grid-template-columns: 1fr;
        gap: 72px;
        padding: 32px 22px 90px;
        align-content: center;
    }

    .landing-title-block {
        transform: translateY(-24px);
        justify-content: flex-start;
        text-align: left;
        padding-left: 6vw;
    }

    .landing-title-shadow {
        max-width: 92%;
    }

    .landing-cta-block {
        align-items: flex-end;
        text-align: right;
        padding-right: 6vw;
        transform: translateY(24px);
    }

    .landing-cta-button {
        min-width: 220px;
    }

    .landing-footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .admin-card-grid,
    .profile-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MATCH ALERT / MATCH MODAL ===== */

.match-alert-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 107, 58, .18);
    background:
        linear-gradient(
            135deg,
            rgba(23, 107, 58, .06),
            rgba(255, 255, 255, 1)
        );
}

.match-alert-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at top right,
            rgba(23, 107, 58, .08),
            transparent 42%
        );
}

.match-alert-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.match-alert-content h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--success);
}

.match-alert-content p {
    margin: 0;
    color: var(--text);
}

.match-alert-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.match-alert-button {
    min-width: 180px;
}

.match-modal-profile {
    display: grid;
    gap: 18px;
}

.match-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.match-modal-name {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.1;
}

.match-modal-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(23, 107, 58, .08);
    color: var(--success);
    font-weight: 700;
    font-size: .95rem;
}

.match-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.match-modal-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px;
    background: var(--card);
}

.match-modal-item-label {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.match-modal-about {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
    background: var(--card);
}

.match-modal-about h3 {
    margin: 0 0 10px;
}

.match-modal-about-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.7;
}

.match-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 8px;
}

.match-modal-reject-confirm {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(161, 38, 38, .18);
    background: rgba(161, 38, 38, .05);
}

.match-modal-reject-confirm p {
    margin: 0 0 14px;
    color: var(--error);
    font-weight: 600;
}

.match-modal-reject-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.match-mail-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 12px;
    border-radius: 999px;
    background: rgba(31, 41, 51, .06);
    color: var(--text);
    text-decoration: none;
    transition:
        background .18s ease,
        transform .18s ease;
}

.match-mail-icon-link:hover {
    background: rgba(31, 41, 51, .12);
    transform: translateY(-1px);
}

.match-mail-icon-link svg {
    width: 20px;
    height: 20px;
}

.match-mail-icon-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--error);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .match-alert-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-alert-actions {
        width: 100%;
    }

    .match-alert-button {
        width: 100%;
    }

    .match-modal-grid {
        grid-template-columns: 1fr;
    }

    .match-modal-actions,
    .match-modal-reject-actions {
        flex-direction: column;
    }

    .match-modal-actions .button,
    .match-modal-reject-actions .button,
    .match-modal-actions button,
    .match-modal-reject-actions button {
        width: 100%;
    }
}

/* ===== MOBILE MAIL ICON FIX ===== */

@media (max-width: 768px) {
    .match-mail-icon-link {
        width: 34px;
        height: 34px;
        margin-left: 0;
        vertical-align: middle;
    }

    .match-mail-icon-link svg {
        width: 16px;
        height: 16px;
    }

    .match-mail-icon-badge {
        min-width: 15px;
        height: 15px;
        font-size: 9px;
        top: -2px;
        right: -2px;
        padding: 0 4px;
    }

    .nav .match-mail-icon-link {
        display: inline-flex;
    }
}

/* ===== SÚHLASY V REGISTRÁCII ===== */

.register-consents {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border, #d9e2ec);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.register-consents h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.consent-row:last-child {
    margin-bottom: 0;
}

.consent-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.consent-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #d9e2ec);
}

.consent-block .button {
    margin-right: 8px;
    margin-top: 8px;
}

/* ===== PRÁVNE STRÁNKY ===== */

.legal-page h2 {
    margin-top: 32px;
    font-size: 19px;
}

.legal-page h3 {
    margin-top: 22px;
    font-size: 16px;
}

.legal-page li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-version {
    opacity: 0.7;
}

.legal-contact,
.legal-form {
    margin: 14px 0 18px;
    padding: 14px 18px;
    border-left: 3px solid var(--gold, #8a6a2f);
    background: rgba(0, 0, 0, 0.02);
    line-height: 1.7;
}

.table-scroll {
    overflow-x: auto;
    margin: 14px 0 18px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    padding: 10px 12px;
    border: 1px solid var(--border, #d9e2ec);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

/* ===== USER MENU ===== */

/* Menu je position: fixed, takže obsah pod ním potrebuje odsadenie v KAŽDEJ
   šírke. Predtým to platilo len od 1025 px a na mobile fixný hamburger
   prekrýval prvú kartu aj flash hlášku - nedalo sa na ne kliknúť. */
body:has(.user-menu) {
    padding-top: 68px;
}

@media (min-width: 1025px) {
    body:has(.user-menu) {
        padding-top: 80px;
    }
}

.user-menu {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1200;
    width: auto;
    margin: 0;
}

.user-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(39, 22, 36, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.user-menu-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
}

.user-menu-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.user-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    background: rgba(39, 22, 36, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.user-menu-link:hover,
.user-menu-link:focus,
.user-menu-link.is-active {
    background: var(--accent);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -16px rgba(142, 51, 84, .9);
}

.user-menu-icon {
    font-size: 1.22rem;
    line-height: 1;
}

.user-menu-mobile-label {
    display: none;
}

.user-menu-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 1210;
    padding: 6px 9px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #ffffff;
    font-size: .82rem;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.user-menu-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--accent);
}

.user-menu-link:hover .user-menu-tooltip,
.user-menu-link:focus .user-menu-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.user-menu-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .user-menu {
        top: 12px;
        left: 12px;
        right: 12px;
        z-index: 1200;
        width: auto;
        pointer-events: none;
    }

    .user-menu-toggle {
        position: relative;
        z-index: 1000000;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    .user-menu.is-open {
        z-index: 1000000;
        pointer-events: auto;
    }

    .user-menu.is-open .user-menu-toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .user-menu.is-open .user-menu-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .user-menu.is-open .user-menu-toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .user-menu-panel {
        position: relative;
        z-index: -1000000;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: min(100%, 340px);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition:
            max-height 280ms ease,
            opacity 220ms ease,
            transform 220ms ease,
            padding 220ms ease,
            visibility 0s linear 280ms,
            z-index 0s linear 280ms;
    }

    .user-menu.is-open .user-menu-panel {
        z-index: 1300;
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        padding-top: 12px;
        transition:
            max-height 280ms ease,
            opacity 220ms ease,
            transform 220ms ease,
            padding 220ms ease,
            visibility 0s,
            z-index 0s;
    }

    .user-menu-link {
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        height: auto;
        padding: 12px 14px;
        border-radius: var(--radius-md);
        background: rgba(39, 22, 36, .92);
    }

    .user-menu-icon {
        width: 28px;
        text-align: center;
    }

    .user-menu-mobile-label {
        display: inline;
        font-weight: 600;
    }

    .user-menu-tooltip {
        display: none;
    }

    .user-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10;
        display: none;
        background: rgba(18, 10, 16, .55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    /* Backdrop sa vkladá cez JS priamo do <body>, takže jeho viditeľnosť riadi
       jeho vlastná trieda, nie poloha vnútri .user-menu (predtým bol tento
       selektor mŕtvy - .user-menu.is-open .user-menu-backdrop sa nikdy nezhodol). */
    .user-menu-backdrop.is-visible {
        display: block;
    }
}
/* ===== LANGUAGE MODAL ===== */

.language-modal-backdrop[hidden] {
    display: none;
}

.language-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.language-modal {
    width: 50vw;
    max-width: 720px;
    background: var(--card);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .28);
}

.language-modal-title {
    text-align: center;
    margin: 0 0 24px 0;
}

.language-modal-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5em;
}

.language-modal-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1.6;
}

.language-modal-option input {
    width: auto;
    margin-right: 12px;
}

.language-modal-flag {
    display: inline-block;
    margin-right: 2ch;
    font-size: 1.35em;
}

.language-modal-label {
    display: inline-block;
}

.language-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.language-modal-ok {
    width: auto;
    min-width: 140px;
    border: 2px solid #ffffff;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, .05);
    color: #ffffff;
}

@media (max-width: 1024px) {
    .language-modal {
        width: 70vw;
    }
}

@media (max-width: 768px) {
    .language-modal {
        width: 80vw;
        padding: 22px;
    }
}

/* ===== DANGER ZONE ===== */

.danger-zone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 25px;
}

.danger-zone-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.danger-zone-btn {
    width: 50%;
    padding: 13px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.danger-zone-btn-billing {
    background-color: var(--accent);
    color: #fff;
}

.danger-zone-btn-billing:hover {
    background-color: var(--accent-deep);
}

.danger-zone-btn-delete {
    background-color: var(--error);
    color: #fff;
}

.danger-zone-btn-delete:hover {
    background-color: #8E2C3C;
}

@media (max-width: 768px) {
    .danger-zone-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .danger-zone-btn {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .danger-zone-btn {
        width: 80%;
    }
}
/* ===== VLASTNÉ PREFERENCIE O SEBE (pridané 09/2026) ===== */

/* Registrácia - kategórie o sebe */
.interest-category {
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--card-2);
}

.interest-category-title {
    font-weight: 700;
    letter-spacing: .01em;
}

.interest-category-hint {
    margin-bottom: 6px;
}

/* Príznak dôležitosti - vizuálne oddelený od zoznamu možností */
.interest-importance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    color: var(--gold);
    font-weight: 600;
}

/* Požiadavka „len rovnaká voľba" - je to filter, nie záľuba */
.interest-option-requirement,
.profile-checkbox-item.is-requirement {
    color: var(--rose);
    font-weight: 600;
}

.profile-checkbox-hint {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .92rem;
}

.profile-checkbox-item.interest-importance {
    grid-column: 1 / -1;
}

/* ===== BLOG - jazykové mutácie a návrat na výpis ===== */

.blog-detail-languages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: .94rem;
}

.blog-detail-languages-label {
    color: var(--muted);
}

.blog-detail-languages a {
    color: var(--rose);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.blog-detail-languages a:hover {
    border-bottom-color: var(--rose);
}

.blog-detail-back {
    margin-top: 22px;
}

/* ===== ZAVERECNA VYZVA POD CLANKOM (pridane 09/2026) ===== */

.blog-detail-cta {
    margin-top: 26px;
    padding: 20px 22px;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    background: var(--card-2);
}

.blog-detail-cta p {
    margin: 0 0 16px;
    line-height: 1.62;
}

/* ===== JAZYKY BLIZKOSTI - JEMNY DOTAZNIK (pridane 09/2026) ===== */

.love-languages {
    margin-top: 10px;
}

.love-languages-title {
    margin-bottom: 6px;
}

.love-languages-intro {
    margin: 0 0 18px;
    line-height: 1.6;
    max-width: 62ch;
}

.love-languages-question {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--card-2);
}

.love-languages-question legend {
    padding: 0 6px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
}

.love-languages-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 4px;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
}

.love-languages-option:hover {
    background: rgba(244, 233, 228, .04);
}

.love-languages-option input[type="radio"] {
    margin: 4px 0 0;
    flex: 0 0 auto;
    accent-color: var(--accent-deep);
}

.love-languages-skip {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: .92rem;
}

@media (max-width: 640px) {
    .love-languages-question {
        padding: 14px;
    }
}
