/* ===== Newsletter registrace — InWork ===== */
/* Brand: #006ae6 = rgb(0, 106, 230) — základní modrá InWork, tmavší #005bca na hover a odkazy */

.newsletter,
.newsletter * {
    box-sizing: border-box;
}

.newsletter {
    --brand: #006ae6;
    --brand-dark: #005bca;
    --brand-light: #e8f2ff;
    --brand-accent: #66a6f0;
    --send: #7ac943;
    --send-dark: #6ab535;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius: 16px;
    --radius-lg: 24px;

    position: relative;
    padding: 64px 20px 96px;
    font-family: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ink);
    min-height: 100vh;
}

.newsletter__inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 56px 64px 64px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06),
        0 24px 48px -12px rgba(0, 106, 230, 0.08);
    border: 1px solid var(--line-soft);
    overflow: hidden;
}

.newsletter__inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--brand); /* základní modrá #006ae6, bez tmavších okrajů */
}

/* ===== Head ===== */
.newsletter__head {
    text-align: center;
    margin-bottom: 44px;
}

/* Maskot — stejný vzor jako Fajn účet (.pref-pruvodce__maskot), čára v barvě InWork */
.newsletter__maskot-obal {
    position: relative;
    width: 96px;
    margin: 0 auto 18px;
}

.newsletter__maskot {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    animation: nlPohup 3.5s ease-in-out infinite;
}

.newsletter__maskot-cara {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -1px;
    height: 5px;
    border-radius: 9999px;
    background: linear-gradient(90deg, hsl(213, 100%, 45%) 0%, hsl(213, 100%, 60%) 50%, hsl(213, 100%, 45%) 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
    box-shadow: 0 2px 6px rgba(0, 106, 230, 0.45);
    z-index: 2;
}

@keyframes nlPohup {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    .newsletter__maskot { animation: none; }
}

.newsletter__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    background: var(--brand-light);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.newsletter__badge::before {
    content: "✉";
    font-size: 1rem;
}

.newsletter__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.15;
    font-weight: 500;
    margin: 0 0 14px;
    color: var(--ink);
    letter-spacing: -0.025em;
}

.newsletter__subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 auto;
    max-width: 540px;
}

/* ===== Form ===== */
.newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sekce formuláře — jednotný vzor nadpisů sekcí podle Fajn účtu
   (fajnucet_cz/upravit-online-zivotopis.css: .cv-section, .section-title, .section-number) */
.newsletter__group {
    min-width: 0; /* fieldset má výchozí min-width: min-content — dlouhý výběr by roztáhl kartu */
    border: 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.newsletter__group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.newsletter__group-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
}

.newsletter__group-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: var(--brand);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
}

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

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

.newsletter__field[hidden] {
    display: none;
}

.newsletter__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.newsletter__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 4px;
}

.newsletter__required {
    color: var(--brand);
    font-weight: 500;
}

/* ===== Inputs / Selects ===== */
.newsletter__input,
.newsletter__select {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    padding: 15px 18px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background-color: var(--white);
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    min-height: 54px;
}

.newsletter__input::placeholder {
    color: #94a3b8;
}

.newsletter__input:hover,
.newsletter__select:hover {
    border-color: #cbd5e1;
    background-color: #fafafa;
}

.newsletter__input:focus,
.newsletter__select:focus {
    outline: none;
    border-color: var(--brand);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 106, 230, 0.15);
}

/* Custom select arrow */
.newsletter__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23006ae6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
    padding-right: 46px;
    cursor: pointer;
}

/* ===== Multiselect států (vzor: .msel v odpovědním formuláři) ===== */
.newsletter__msel {
    position: relative;
}

.newsletter__msel-trigger {
    width: 100%;
    min-height: 54px;
    padding: 15px 46px 15px 18px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    color: #94a3b8;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23006ae6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.newsletter__msel-trigger--value {
    color: var(--ink);
}

.newsletter__msel-trigger:hover {
    border-color: #cbd5e1;
}

.newsletter__msel-trigger:focus-visible,
.newsletter__msel--open .newsletter__msel-trigger {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 106, 230, 0.15);
}

.newsletter__msel-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 6px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.newsletter__msel-search {
    width: 100%;
    margin-bottom: 6px;
    padding: 10px 12px 10px 36px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
}

.newsletter__msel-search::placeholder {
    color: #94a3b8;
}

.newsletter__msel-search:focus {
    outline: none;
    border-color: var(--brand);
    background-color: var(--white);
}

.newsletter__msel-list {
    max-height: 240px;
    overflow-y: auto;
}

.newsletter__msel-opt[hidden] {
    display: none;
}

.newsletter__msel-add {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    color: var(--brand-dark);
    background: var(--brand-light);
    border: 1.5px dashed var(--brand-accent);
    border-radius: 8px;
    cursor: pointer;
}

.newsletter__msel-add:hover {
    color: #004ba6;
}

.newsletter__msel-add[hidden],
.newsletter__msel-empty[hidden] {
    display: none;
}

.newsletter__msel-empty {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--muted);
}

.newsletter__msel--open .newsletter__msel-drop {
    display: block;
}

.newsletter__msel-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}

.newsletter__msel-opt:hover {
    background: var(--brand-light);
}

.newsletter__msel-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.newsletter__msel--error .newsletter__msel-trigger {
    color: #dc2626;
    border-color: #dc2626;
    background-color: #fef2f2;
}

/* ===== Zahraničí panel ===== */
.newsletter__field--zahranici {
    background: linear-gradient(135deg, #f3f8ff 0%, #e0edff 100%);
    border: 1.5px dashed var(--brand-accent);
    border-radius: 14px;
    padding: 20px 22px;
    animation: nl-fade-in 0.35s ease;
}

@keyframes nl-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.newsletter__field--zahranici .newsletter__label {
    color: var(--brand-dark);
}

/* ===== Checkboxy ===== */
.newsletter__checks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
    padding: 24px 26px;
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--line);
}

.newsletter__check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}

.newsletter__check input[type="checkbox"] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--brand);
    cursor: pointer;
}

.newsletter strong,
.newsletter b,
.newsletter legend {
    font-weight: 500;
}

.newsletter__check a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.newsletter__check a:hover {
    color: #004ba6;
}

/* ===== Submit ===== */
.newsletter__actions {
    margin-top: 16px;
}

.newsletter__submit {
    width: 100%;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--white);
    background: linear-gradient(135deg, var(--send) 0%, var(--send) 50%, var(--send-dark) 100%); /* odesílací tlačítka InWork jsou zelená */
    background-size: 200% 100%;
    background-position: 0% 50%;
    border: none;
    border-radius: 14px;
    padding: 20px 28px;
    cursor: pointer;
    min-height: 62px;
    box-shadow:
        0 4px 14px rgba(122, 201, 67, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-position 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.newsletter__submit::after {
    content: "→";
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.newsletter__submit:hover {
    background-position: 100% 50%;
    box-shadow:
        0 8px 24px rgba(122, 201, 67, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.newsletter__submit:hover::after {
    transform: translateX(4px);
}

.newsletter__submit:active {
    transform: translateY(0);
}

.newsletter__submit:focus-visible {
    outline: 3px solid #b8e09c;
    outline-offset: 3px;
}

.newsletter__footnote {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 14px 0 0;
}

/* ===== Kontrola povinných polí (vzor: Fajn účet, cv-validace.js) ===== */
.newsletter__input--error,
.newsletter__select--error {
    color: #dc2626;
    border-color: #dc2626;
    background-color: #fef2f2;
}

.newsletter__input--error:focus,
.newsletter__select--error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.newsletter__check--error {
    color: #b91c1c;
}

.newsletter__check--error input[type="checkbox"] {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.newsletter__error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc2626;
}

.newsletter__check + .newsletter__error {
    margin: -8px 0 0 36px;
}

.newsletter__error svg {
    flex-shrink: 0;
}

/* Krátké zvýraznění pole, na které stránka po odkliknutí sjede */
.newsletter__flash {
    border-radius: 12px;
    animation: nlFlash 1.8s ease;
}

@keyframes nlFlash {
    0%, 60% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18); background-color: rgba(220, 38, 38, 0.05); }
    100%    { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); background-color: transparent; }
}

/* Okno "Registraci se nepodařilo odeslat" — vkládá se do <body>, proto bez tokenů z .newsletter */
.nl-validace {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    font-family: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;
}

.nl-validace--active {
    display: flex;
}

.nl-validace__dialog {
    width: 90%;
    max-width: 460px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: nlModalIn 0.25s ease-out;
}

@keyframes nlModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.nl-validace__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.nl-validace__icon svg {
    width: 28px;
    height: 28px;
}

.nl-validace__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    color: #0f172a;
}

.nl-validace__text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.nl-validace__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.nl-validace__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.05);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.nl-validace__item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
}

.nl-validace__item-label {
    font-size: 14px;
    font-weight: 500;
    color: #b91c1c;
}

.nl-validace__item-where {
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

.nl-validace__more {
    padding: 0 12px;
    font-size: 13px;
    color: #64748b;
}

.nl-validace__btn {
    min-width: 160px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: #dc2626;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.nl-validace__btn:hover {
    background: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
    .newsletter__flash,
    .nl-validace__dialog { animation: none; }
}

/* ===== Nápověda pod polem ===== */
.newsletter__hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.newsletter__hint::before {
    content: "ⓘ";
    color: var(--brand);
}

/* =============================================================
   ÚPRAVA NASTAVENÍ (newsletter-uprava.php) — menu účtu vlevo, formulář vpravo
   ============================================================= */
.newsletter__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 780px);
    justify-content: center;
    align-items: start;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.newsletter--uprava .newsletter__inner {
    margin: 0;
    max-width: none;
}

.newsletter__sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Maskot s bublinou — vzor: .pref-pruvodce__bublina (Fajn účet) */
.newsletter__pruvodce {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.newsletter__pruvodce .newsletter__maskot-obal {
    flex-shrink: 0;
    margin: 0;
}

.newsletter__bublina {
    position: relative;
    flex: 1;
    margin: 0 0 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid rgba(0, 106, 230, 0.3);
    border-radius: 16px 16px 16px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.newsletter__bublina::before {
    content: "";
    position: absolute;
    bottom: -1.5px;
    left: -10px;
    border: 6px solid transparent;
    border-right-color: rgba(0, 106, 230, 0.3);
    border-bottom-color: rgba(0, 106, 230, 0.3);
}

.newsletter__bublina::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -7px;
    border: 5px solid transparent;
    border-right-color: var(--white);
    border-bottom-color: var(--white);
}

.newsletter__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.newsletter__menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.newsletter__menu-link .nl-ikona {
    flex-shrink: 0;
    color: var(--muted);
}

.newsletter__menu-link--active .nl-ikona {
    color: var(--brand);
}

.newsletter__menu-link:hover {
    background: var(--bg);
    color: var(--ink);
}

.newsletter__menu-link--active,
.newsletter__menu-link--active:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 500;
}

.newsletter__menu-link--odhlasit {
    margin-top: 4px;
    color: var(--muted);
}

.newsletter__menu-link--odhlasit:hover {
    color: #dc2626;
}

.newsletter__menu-link--odhlasit:hover .nl-ikona {
    color: #dc2626;
}

.newsletter__head--uprava {
    text-align: left;
    margin-bottom: 36px;
}

.newsletter__head--uprava .newsletter__subtitle {
    margin: 0;
}

.newsletter__field--uzke {
    max-width: 260px;
}

.newsletter__tip {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    vertical-align: 1px;
}

/* Potvrzení uložení — vzor: .cv-toast (Fajn účet) */
.nl-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 14px 20px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-family: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
    transform: translateX(-50%);
    animation: nlToastIn 0.3s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nl-toast svg {
    flex-shrink: 0;
    color: #22c55e;
}

.nl-toast--odchod {
    opacity: 0;
    transform: translate(-50%, 8px);
}

@keyframes nlToastIn {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Potvrzení odhlášení — vzor: .cv-logout-modal (Fajn účet) */
.nl-odhlaseni {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3500;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;
}

.nl-odhlaseni--open {
    display: flex;
}

.nl-odhlaseni__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.nl-odhlaseni__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: nlModalIn 0.2s ease-out;
}

.nl-odhlaseni__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    color: #0f172a;
}

.nl-odhlaseni__text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.nl-odhlaseni__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nl-odhlaseni__btn {
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.nl-odhlaseni__btn--cancel {
    background: #f1f5f9;
    color: #0f172a;
}

.nl-odhlaseni__btn--cancel:hover {
    background: #e2e8f0;
}

.nl-odhlaseni__btn--confirm {
    background: #dc2626;
    color: #fff;
}

.nl-odhlaseni__btn--confirm:hover {
    background: #b91c1c;
}

/* Mobilní spodní navigace — vzor: .mobile-bottomnav (Fajn účet), na PC skrytá */
.nl-bottomnav {
    display: none;
}

@media (max-width: 1023px) {
    .newsletter__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        max-width: 780px;
    }

    .newsletter__sidebar {
        position: static;
    }

    /* Boční menu nahrazuje spodní lišta, maskot s bublinou zůstává nad formulářem */
    .newsletter__menu {
        display: none;
    }

    .nl-bottomnav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        padding-bottom: env(safe-area-inset-bottom); /* iPhone home indikátor */
        font-family: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;
    }

    .nl-bottomnav__item {
        flex: 1;
        min-width: 0;
        min-height: 3.25rem; /* dostatečně velká dotyková plocha */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px 7px;
        border: none;
        background: none;
        font-family: inherit;
        color: #64748b;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s;
    }

    .nl-bottomnav__item .nl-ikona {
        width: 24px;
        height: 24px;
    }

    .nl-bottomnav__item--active {
        color: #006ae6;
    }

    .nl-bottomnav__label {
        font-size: 0.6875rem;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
    }

    /* Aby spodní lišta nepřekrývala konec stránky */
    body:has(.nl-bottomnav) {
        padding-bottom: calc(3.25rem + env(safe-area-inset-bottom));
    }

    .nl-toast {
        bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
}

/* ===== Responzivita ===== */
@media (max-width: 720px) {
    .newsletter {
        padding: 32px 14px 64px;
    }
    .newsletter__inner {
        padding: 36px 22px 40px;
        border-radius: 18px;
    }
    .newsletter__head {
        margin-bottom: 32px;
    }
    .newsletter__row,
    .newsletter__row--two {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .newsletter__checks {
        padding: 20px;
    }
}
