
/* Flyper modern v6 overrides */
:root {
    --f-bg: #070b14;
    --f-card: rgba(15, 23, 42, 0.78);
    --f-card-2: rgba(17, 24, 39, 0.92);
    --f-line: rgba(148, 163, 184, 0.18);
    --f-line-strong: rgba(56, 189, 248, 0.34);
    --f-text: #f8fafc;
    --f-muted: #94a3b8;
    --f-blue: #38bdf8;
    --f-cyan: #22d3ee;
    --f-danger: #ef4444;
    --f-green: #22c55e;
    --f-radius: 24px;
    --f-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

body.flyper-admin-modern,
body.modern-auth-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.11), transparent 26%),
        var(--f-bg) !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--f-text) !important;
}

.modern-shell {
    width: min(100% - 40px, 1440px);
    margin: 0 auto;
    padding: 28px 0 80px;
}

.modern-topbar {
    min-height: 96px;
    margin-bottom: 28px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--f-line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.70));
    box-shadow: var(--f-shadow);
}

.modern-brand,
.modern-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--f-text);
}

.modern-brand-mark,
.modern-auth-brand-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    line-height: 1;
    font-size: 1.8rem;
    transform: translateY(-1px);
}

.modern-brand-word,
.modern-auth-brand-word {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.075em;
    font-size: 1.5rem;
}

.modern-brand-word span,
.modern-auth-brand-word span {
    color: var(--f-blue);
}

.modern-topbar-center {
    min-width: 0;
}

.modern-eyebrow,
.modern-card-kicker {
    color: var(--f-blue);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 900;
    margin-bottom: 5px;
}

.modern-topbar h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.25vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.modern-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.modern-btn {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 14px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.16s ease;
    white-space: nowrap;
}

.modern-btn-primary {
    color: #04111f !important;
    background: linear-gradient(135deg, var(--f-blue), var(--f-cyan)) !important;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.16);
}

.modern-btn-primary:hover {
    transform: translateY(-1px);
    color: #04111f !important;
}

.modern-btn-dark,
.modern-btn-ghost {
    color: #e2e8f0 !important;
    background: rgba(15, 23, 42, 0.80) !important;
    border-color: var(--f-line) !important;
}

.modern-btn-dark:hover,
.modern-btn-ghost:hover {
    color: #fff !important;
    border-color: var(--f-line-strong) !important;
    background: rgba(30, 41, 59, 0.92) !important;
    transform: translateY(-1px);
}

.modern-btn-danger {
    color: #fecaca !important;
    background: rgba(127, 29, 29, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.32) !important;
}

.modern-btn-danger:hover {
    color: #fff !important;
    background: rgba(127, 29, 29, 0.44) !important;
}

.modern-btn-full {
    width: 100%;
}

.modern-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--f-line);
    background: rgba(15, 23, 42, 0.82);
    font-weight: 800;
}

.modern-alert-ok { color: #86efac; border-color: rgba(34, 197, 94, 0.32); }
.modern-alert-error { color: #fca5a5; border-color: rgba(239, 68, 68, 0.34); }
.modern-alert-warn { color: #fde68a; border-color: rgba(245, 158, 11, 0.34); }

.modern-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.modern-metric-card,
.modern-card,
.modern-settings-card {
    border: 1px solid var(--f-line);
    border-radius: var(--f-radius);
    background: var(--f-card);
    box-shadow: 0 18px 54px rgba(0,0,0,0.20);
    backdrop-filter: blur(12px);
}

.modern-metric-card {
    padding: 18px;
    min-width: 0;
}

.modern-metric-label {
    color: var(--f-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
    margin-bottom: 8px;
}

.modern-metric-value {
    color: var(--f-text);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.16;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-metric-value.is-email {
    font-size: 1rem;
}

.modern-metric-note {
    color: var(--f-muted);
    font-size: 0.86rem;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contacts-v6-layout,
.users-v6-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
}

.users-v6-grid {
    grid-template-columns: 420px minmax(0, 1fr);
}

.contacts-v6-side,
.users-v6-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 18px;
}

.modern-card {
    padding: 22px;
}

.modern-card-compact {
    padding: 18px;
}

.modern-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modern-card-head.compact {
    margin-bottom: 14px;
}

.modern-card h2,
.modern-card-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.modern-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.20);
    color: #bae6fd;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.modern-message-list,
.modern-user-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modern-message-card,
.modern-user-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(7, 13, 24, 0.50);
    padding: 18px;
}

.modern-message-top,
.modern-user-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.modern-message-avatar,
.modern-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(34, 211, 238, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #e0f2fe;
}

.modern-message-title-area,
.modern-user-title {
    min-width: 0;
}

.modern-message-subject,
.modern-user-email {
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--f-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-message-meta,
.modern-user-meta {
    color: var(--f-muted);
    font-size: 0.84rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.modern-message-body {
    margin-top: 15px;
    padding: 14px;
    border-radius: 17px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.10);
    color: #dbeafe;
    line-height: 1.62;
    white-space: pre-wrap;
}

.modern-message-actions,
.modern-row-actions,
.modern-delete-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.modern-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.24);
    white-space: nowrap;
}

.modern-status-pill.status-handled,
.modern-status-pill.active {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
}

.modern-status-pill.status-new,
.modern-status-pill.inactive {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
}

.modern-status-pill.role-admin {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.24);
}

.modern-settings-card {
    overflow: hidden;
}

.modern-settings-card summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
}

.modern-settings-card summary::-webkit-details-marker {
    display: none;
}

.modern-settings-card summary small {
    color: var(--f-muted);
    font-size: 0.78rem;
    font-weight: 800;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-settings-body,
.modern-stack-form {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-form-grid {
    display: grid;
    gap: 12px;
}

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

.modern-form-grid.user {
    grid-template-columns: 1.35fr 0.7fr 0.7fr 0.8fr 1fr 1fr;
}

.modern-form-grid .wide {
    grid-column: 1 / -1;
}

.modern-label {
    color: var(--f-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.modern-input,
.modern-auth-input {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(3, 7, 18, 0.58);
    color: var(--f-text);
    padding: 11px 13px;
    outline: none;
}

.modern-input:focus,
.modern-auth-input:focus {
    border-color: var(--f-blue);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.11);
}

.modern-input option {
    background: #0f172a;
    color: white;
}

.modern-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.modern-checkbox input {
    margin-top: 3px;
}

.modern-help {
    margin-top: 12px;
    color: var(--f-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.modern-mini-list {
    display: grid;
    gap: 10px;
}

.modern-mini-list div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(7, 13, 24, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.modern-mini-list strong {
    display: block;
    color: var(--f-text);
    font-size: 0.9rem;
}

.modern-mini-list span {
    display: block;
    margin-top: 3px;
    color: var(--f-muted);
    font-size: 0.84rem;
}

.modern-user-edit {
    margin-top: 16px;
}

.modern-user-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.modern-user-info div {
    padding: 11px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.modern-user-info strong {
    color: var(--f-blue);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.modern-user-info span {
    display: block;
    color: #e2e8f0;
    margin-top: 4px;
    font-weight: 800;
    font-size: 0.84rem;
}

.modern-user-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.modern-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--f-muted);
}

.modern-empty-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.modern-empty-title {
    color: var(--f-text);
    font-weight: 900;
    font-size: 1.1rem;
}

.modern-empty-text {
    margin-top: 5px;
}

/* Auth pages */
.modern-auth-page {
    min-height: 100vh;
    padding: 28px;
}

.modern-auth-shell {
    width: min(100%, 1180px);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 26px;
    align-items: stretch;
}

.modern-auth-hero,
.modern-auth-panel {
    border: 1px solid var(--f-line);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62));
    box-shadow: var(--f-shadow);
}

.modern-auth-hero {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
    overflow: hidden;
    position: relative;
}

.modern-auth-hero:after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    right: -120px;
    bottom: -110px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.23), transparent 65%);
    pointer-events: none;
}

.modern-auth-brand {
    position: relative;
    z-index: 1;
}

.modern-auth-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.modern-auth-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.modern-auth-copy p {
    margin: 18px 0 0;
    color: #b6c6dc;
    max-width: 560px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.modern-auth-benefits {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modern-auth-benefits div {
    padding: 10px 13px;
    border-radius: 999px;
    border: 1px solid var(--f-line);
    background: rgba(3, 7, 18, 0.38);
    color: #cbd5e1;
    font-weight: 800;
    font-size: 0.86rem;
}

.modern-auth-panel {
    padding: 30px;
    align-self: center;
}

.modern-auth-panel-head {
    margin-bottom: 22px;
}

.modern-auth-panel-title {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.modern-auth-panel-subtitle {
    color: var(--f-muted);
    font-weight: 800;
    margin-top: 3px;
}

.modern-auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-auth-label {
    color: var(--f-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.10em;
    margin-top: 5px;
}

.modern-auth-submit {
    min-height: 50px;
    margin-top: 10px;
    border: none;
    border-radius: 16px;
    color: #04111f;
    font-weight: 900;
    background: linear-gradient(135deg, var(--f-blue), var(--f-cyan));
}

.modern-auth-password {
    position: relative;
}

.modern-auth-password .modern-auth-input {
    padding-right: 54px;
}

.modern-auth-eye {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
}

.modern-auth-textarea {
    min-height: 150px;
    resize: vertical;
}

.modern-auth-links {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.modern-auth-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dbeafe;
    text-decoration: none;
    font-weight: 900;
    border-radius: 14px;
    border: 1px solid var(--f-line);
    background: rgba(3, 7, 18, 0.38);
}

.modern-auth-links a:hover {
    border-color: var(--f-line-strong);
    color: #fff;
}

/* wider tables / traffic spacing override */
.flyper-admin-modern table {
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
}

.flyper-admin-modern table tbody tr {
    background: rgba(15, 23, 42, 0.78) !important;
}

.flyper-admin-modern table td,
.flyper-admin-modern table th {
    padding: 16px 18px !important;
}

@media (max-width: 1180px) {
    .contacts-v6-layout,
    .users-v6-grid,
    .modern-auth-shell {
        grid-template-columns: 1fr;
    }

    .contacts-v6-side,
    .users-v6-side {
        position: static;
    }

    .modern-auth-hero {
        min-height: 420px;
    }
}

@media (max-width: 820px) {
    .modern-shell,
    .modern-auth-page {
        width: auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    .modern-topbar {
        grid-template-columns: 1fr;
    }

    .modern-topbar-actions {
        justify-content: flex-start;
    }

    .modern-metrics {
        grid-template-columns: 1fr;
    }

    .modern-message-top,
    .modern-user-head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .modern-message-top .modern-status-pill,
    .modern-user-pills {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .modern-form-grid.two,
    .modern-form-grid.user,
    .modern-user-info {
        grid-template-columns: 1fr;
    }

    .modern-auth-hero,
    .modern-auth-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .modern-auth-links {
        grid-template-columns: 1fr;
    }
}

/* === FLYPER AUTH HEIGHT FIX V7 START === */
body.modern-auth-page {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px 18px !important;
}

.modern-auth-shell {
    width: min(100%, 1180px) !important;
    min-height: auto !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 460px !important;
    gap: 26px !important;
    align-items: stretch !important;
}

.modern-auth-hero,
.modern-auth-panel {
    min-height: 0 !important;
    height: auto !important;
}

.modern-auth-hero {
    padding: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 42px !important;
    overflow: hidden !important;
}

.modern-auth-panel {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 32px !important;
}

.modern-auth-copy {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.modern-auth-copy h1 {
    font-size: clamp(2.35rem, 4.4vw, 4.65rem) !important;
}

.modern-auth-copy p {
    margin-top: 16px !important;
}

.modern-auth-benefits {
    margin-top: 0 !important;
}

.modern-auth-brand-icon {
    transform: translateY(0) !important;
}

.modern-auth-brand-word {
    transform: translateY(1px) !important;
}

@media (max-width: 1180px) {
    body.modern-auth-page {
        align-items: flex-start !important;
    }

    .modern-auth-shell {
        grid-template-columns: 1fr !important;
    }

    .modern-auth-hero,
    .modern-auth-panel {
        min-height: auto !important;
    }

    .modern-auth-hero {
        gap: 34px !important;
    }
}

@media (max-width: 820px) {
    body.modern-auth-page {
        padding: 16px !important;
    }

    .modern-auth-hero,
    .modern-auth-panel {
        padding: 22px !important;
    }

    .modern-auth-copy h1 {
        font-size: clamp(2.1rem, 12vw, 3.5rem) !important;
    }
}
/* === FLYPER AUTH HEIGHT FIX V7 END === */

/* FLYPER AUTH HEIGHT FIX V8 START */

/*
    Auth layout:
    - levý panel už nemá pevnou minimální výšku 620px
    - výšku řádku určuje pravý formulář
    - levý i pravý panel se v desktop gridu natáhnou na stejnou výšku
    - platí pro /login, /register, /kontakt a reset/forgot stránky, pokud používají modern-auth layout
*/

body.modern-auth-page {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(20px, 3vw, 42px) !important;
}

.modern-auth-shell {
    width: min(100%, 1180px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 460px) !important;
    gap: 26px !important;
    align-items: stretch !important;
}

.modern-auth-hero,
.modern-auth-panel {
    height: 100% !important;
    min-height: 0 !important;
}

.modern-auth-hero {
    padding: 34px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.modern-auth-panel {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 30px !important;
}

.modern-auth-copy {
    margin: 42px 0 !important;
}

.modern-auth-copy h1 {
    font-size: clamp(2.8rem, 4.4vw, 4.6rem) !important;
    line-height: 0.96 !important;
}

.modern-auth-copy p {
    margin-top: 16px !important;
    max-width: 520px !important;
}

.modern-auth-benefits {
    margin-top: 24px !important;
}

.modern-auth-benefits div {
    padding: 9px 12px !important;
    font-size: 0.84rem !important;
}

@media (max-width: 1180px) {
    body.modern-auth-page {
        align-items: flex-start !important;
    }

    .modern-auth-shell {
        grid-template-columns: 1fr !important;
        width: min(100%, 760px) !important;
    }

    .modern-auth-hero,
    .modern-auth-panel {
        height: auto !important;
    }

    .modern-auth-hero {
        min-height: 0 !important;
    }

    .modern-auth-copy {
        margin: 34px 0 !important;
    }
}

@media (max-width: 820px) {
    body.modern-auth-page {
        padding: 16px !important;
    }

    .modern-auth-shell {
        gap: 16px !important;
    }

    .modern-auth-hero,
    .modern-auth-panel {
        padding: 22px !important;
        border-radius: 24px !important;
    }

    .modern-auth-copy {
        margin: 28px 0 !important;
    }

    .modern-auth-copy h1 {
        font-size: clamp(2.3rem, 12vw, 3.2rem) !important;
    }
}

/* FLYPER AUTH HEIGHT FIX V8 END */

/* FLYPER AUTH SAME HEIGHT V10 */
body.modern-auth-page {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px 20px !important;
    overflow-x: hidden !important;
}

body.modern-auth-page .modern-auth-shell {
    --flyper-auth-shared-height: 620px;
    width: min(100%, 1180px) !important;
    height: var(--flyper-auth-shared-height) !important;
    min-height: var(--flyper-auth-shared-height) !important;
    max-height: var(--flyper-auth-shared-height) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 460px !important;
    gap: 26px !important;
    align-items: stretch !important;
}

body.modern-auth-page .modern-auth-hero,
body.modern-auth-page .modern-auth-panel {
    height: var(--flyper-auth-shared-height) !important;
    min-height: var(--flyper-auth-shared-height) !important;
    max-height: var(--flyper-auth-shared-height) !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

body.modern-auth-page .modern-auth-hero {
    padding: 34px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

body.modern-auth-page .modern-auth-panel {
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

body.modern-auth-page .modern-auth-panel-head {
    margin-bottom: 18px !important;
}

body.modern-auth-page .modern-auth-form {
    gap: 9px !important;
}

body.modern-auth-page .modern-auth-input {
    min-height: 48px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

body.modern-auth-page .modern-auth-submit {
    min-height: 52px !important;
    margin-top: 10px !important;
}

body.modern-auth-page .modern-auth-links {
    margin-top: 18px !important;
}

body.modern-auth-page .modern-auth-links a {
    min-height: 44px !important;
}

body.auth-page-register .modern-auth-panel {
    justify-content: center !important;
}

body.auth-page-register .modern-auth-panel-head {
    margin-bottom: 14px !important;
}

body.auth-page-register .modern-auth-form {
    gap: 8px !important;
}

body.auth-page-register .modern-auth-input {
    min-height: 46px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

body.auth-page-register .modern-auth-submit {
    min-height: 50px !important;
    margin-top: 8px !important;
}

body.auth-page-register .modern-auth-links {
    margin-top: 16px !important;
}

body.auth-page-contact .modern-auth-panel {
    justify-content: center !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

body.auth-page-contact .modern-auth-panel-head {
    margin-bottom: 12px !important;
}

body.auth-page-contact .modern-auth-form {
    gap: 7px !important;
}

body.auth-page-contact .modern-auth-input {
    min-height: 42px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

body.auth-page-contact .modern-auth-textarea {
    min-height: 96px !important;
    max-height: 96px !important;
    resize: none !important;
}

body.auth-page-contact .modern-auth-submit {
    min-height: 48px !important;
    margin-top: 8px !important;
}

body.auth-page-contact .modern-auth-links {
    margin-top: 14px !important;
}

body.auth-page-contact .modern-auth-links a {
    min-height: 40px !important;
}

@media (max-width: 1180px) {
    body.modern-auth-page {
        display: block !important;
        padding: 24px 16px !important;
    }

    body.modern-auth-page .modern-auth-shell {
        width: min(100%, 760px) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        grid-template-columns: 1fr !important;
    }

    body.modern-auth-page .modern-auth-hero,
    body.modern-auth-page .modern-auth-panel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}

@media (max-height: 740px) and (min-width: 1181px) {
    body.modern-auth-page .modern-auth-shell {
        --flyper-auth-shared-height: 580px;
    }

    body.modern-auth-page .modern-auth-hero {
        padding: 28px !important;
    }

    body.modern-auth-page .modern-auth-panel {
        padding: 24px !important;
    }

    body.modern-auth-page .modern-auth-copy h1 {
        font-size: clamp(2.2rem, 4.4vw, 4.4rem) !important;
    }

    body.modern-auth-page .modern-auth-benefits div {
        padding: 8px 11px !important;
        font-size: 0.8rem !important;
    }
}

/* FLYPER_AUTH_MEASURED_EQUAL_HEIGHT_START */
@media (min-width: 901px) {
    body.modern-auth-page {
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 34px 20px !important;
    }

    body.modern-auth-page .modern-auth-shell {
        width: min(100% - 40px, 1320px) !important;
        min-height: 620px !important;
        height: 620px !important;
        max-height: 620px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.72fr) !important;
        gap: 24px !important;
        align-items: stretch !important;
        margin: 0 auto !important;
    }

    body.modern-auth-page .modern-auth-hero,
    body.modern-auth-page .modern-auth-panel {
        min-height: 620px !important;
        height: 620px !important;
        max-height: 620px !important;
        box-sizing: border-box !important;
    }

    body.modern-auth-page .modern-auth-hero {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    body.modern-auth-page .modern-auth-panel {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    body.modern-auth-page .modern-auth-form {
        flex: 0 0 auto !important;
    }

    body.modern-auth-page .modern-auth-links {
        margin-top: 18px !important;
        flex: 0 0 auto !important;
    }

    body.modern-auth-page .modern-auth-textarea {
        min-height: 92px !important;
        height: 92px !important;
        max-height: 92px !important;
        resize: none !important;
    }
}

@media (max-width: 900px) {
    body.modern-auth-page {
        display: block !important;
        padding: 20px !important;
    }

    body.modern-auth-page .modern-auth-shell {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.modern-auth-page .modern-auth-hero,
    body.modern-auth-page .modern-auth-panel {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
    }
}
/* FLYPER_AUTH_MEASURED_EQUAL_HEIGHT_END */

/* === Flyper WhatsApp logo + unified logo container v22 === */
.flyper-whatsapp-fixed,
a.flyper-whatsapp-fixed {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #25D366 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35) !important;
    z-index: 2147483647 !important;
    text-decoration: none !important;
    overflow: hidden !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.flyper-whatsapp-fixed:hover,
a.flyper-whatsapp-fixed:hover {
    background: #1ebe5d !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.flyper-whatsapp-fixed-svg,
.flyper-whatsapp-fixed svg,
a.flyper-whatsapp-fixed .flyper-whatsapp-fixed-svg,
a.flyper-whatsapp-fixed svg {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    display: block !important;
    flex: 0 0 29px !important;
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
}

.flyper-whatsapp-fixed-svg path,
.flyper-whatsapp-fixed svg path,
a.flyper-whatsapp-fixed svg path {
    fill: currentColor !important;
    stroke: none !important;
}

.flyper-whatsapp-fixed * {
    pointer-events: none !important;
}

.flyper-logo-hero,
.flyper-brand-hero,
.flyper-page-hero,
.flyper-auth-hero,
.auth-hero,
.account-hero,
.account-header,
.page-hero,
.brand-hero,
.logo-hero,
.site-hero,
.hero-logo,
.hero-brand,
.public-hero,
.auth-brand-panel,
.account-brand-panel {
    min-height: 220px !important;
    height: 220px !important;
    max-height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    margin-top: 0 !important;
}

.flyper-logo-hero .flyper-brand,
.flyper-brand-hero .flyper-brand,
.flyper-page-hero .flyper-brand,
.flyper-auth-hero .flyper-brand,
.auth-hero .flyper-brand,
.account-hero .flyper-brand,
.account-header .flyper-brand,
.page-hero .flyper-brand,
.brand-hero .flyper-brand,
.logo-hero .flyper-brand,
.site-hero .flyper-brand,
.hero-logo .flyper-brand,
.hero-brand .flyper-brand,
.public-hero .flyper-brand,
.auth-brand-panel .flyper-brand,
.account-brand-panel .flyper-brand {
    margin: 0 auto !important;
}

@media (max-width: 700px) {
    .flyper-whatsapp-fixed,
    a.flyper-whatsapp-fixed {
        top: 12px !important;
        right: 12px !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }

    .flyper-whatsapp-fixed-svg,
    .flyper-whatsapp-fixed svg,
    a.flyper-whatsapp-fixed .flyper-whatsapp-fixed-svg,
    a.flyper-whatsapp-fixed svg {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        flex-basis: 26px !important;
    }

    .flyper-logo-hero,
    .flyper-brand-hero,
    .flyper-page-hero,
    .flyper-auth-hero,
    .auth-hero,
    .account-hero,
    .account-header,
    .page-hero,
    .brand-hero,
    .logo-hero,
    .site-hero,
    .hero-logo,
    .hero-brand,
    .public-hero,
    .auth-brand-panel,
    .account-brand-panel {
        min-height: 180px !important;
        height: 180px !important;
        max-height: 180px !important;
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }
}
/* === END Flyper WhatsApp logo + unified logo container v22 === */

/* === Flyper hard header hero CSS v26 === */

/*
   Auth stránky nemají horní hero-section jako veřejný web.
   Tady je natvrdo sjednocené umístění auth kontejneru.
*/

:root {
    --flyper-auth-page-top: 32px;
    --flyper-auth-shell-max-width: 1240px;
    --flyper-auth-shared-height: 560px;
    --flyper-fixed-whatsapp-top: 18px;
    --flyper-fixed-whatsapp-right: 18px;
    --flyper-fixed-whatsapp-size: 46px;
    --flyper-fixed-whatsapp-svg-size: 29px;
}

body.modern-auth-page {
    margin: 0 !important;
    padding: var(--flyper-auth-page-top) 20px !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
}

.modern-auth-shell {
    width: 100% !important;
    max-width: var(--flyper-auth-shell-max-width) !important;
    min-height: var(--flyper-auth-shared-height) !important;
    height: var(--flyper-auth-shared-height) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.modern-auth-hero,
.modern-auth-panel {
    min-height: var(--flyper-auth-shared-height) !important;
    height: var(--flyper-auth-shared-height) !important;
    max-height: var(--flyper-auth-shared-height) !important;
    box-sizing: border-box !important;
}

.flyper-whatsapp-fixed,
a.flyper-whatsapp-fixed {
    position: fixed !important;
    top: var(--flyper-fixed-whatsapp-top) !important;
    right: var(--flyper-fixed-whatsapp-right) !important;
    width: var(--flyper-fixed-whatsapp-size) !important;
    height: var(--flyper-fixed-whatsapp-size) !important;
    min-width: var(--flyper-fixed-whatsapp-size) !important;
    max-width: var(--flyper-fixed-whatsapp-size) !important;
    min-height: var(--flyper-fixed-whatsapp-size) !important;
    max-height: var(--flyper-fixed-whatsapp-size) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #25D366 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35) !important;
    z-index: 2147483647 !important;
    text-decoration: none !important;
    overflow: hidden !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.flyper-whatsapp-fixed-svg,
.flyper-whatsapp-fixed svg,
a.flyper-whatsapp-fixed .flyper-whatsapp-fixed-svg,
a.flyper-whatsapp-fixed svg {
    width: var(--flyper-fixed-whatsapp-svg-size) !important;
    height: var(--flyper-fixed-whatsapp-svg-size) !important;
    min-width: var(--flyper-fixed-whatsapp-svg-size) !important;
    max-width: var(--flyper-fixed-whatsapp-svg-size) !important;
    min-height: var(--flyper-fixed-whatsapp-svg-size) !important;
    max-height: var(--flyper-fixed-whatsapp-svg-size) !important;
    display: block !important;
    flex: 0 0 var(--flyper-fixed-whatsapp-svg-size) !important;
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
}

.flyper-whatsapp-fixed-svg path,
.flyper-whatsapp-fixed svg path,
a.flyper-whatsapp-fixed svg path {
    fill: currentColor !important;
    stroke: none !important;
}

@media (max-width: 900px) {
    :root {
        --flyper-auth-page-top: 20px;
        --flyper-auth-shared-height: auto;
        --flyper-fixed-whatsapp-top: 12px;
        --flyper-fixed-whatsapp-right: 12px;
        --flyper-fixed-whatsapp-size: 42px;
        --flyper-fixed-whatsapp-svg-size: 26px;
    }

    .modern-auth-shell,
    .modern-auth-hero,
    .modern-auth-panel {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* === END Flyper hard header hero CSS v26 === */

/* === Flyper legal pages and footer v27 === */

.legal-container {
    max-width: 980px;
    margin-top: 42px;
    margin-bottom: 56px;
}

.legal-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    padding: 38px;
    color: #dbe7f5;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.legal-card h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 10px;
}

.legal-updated {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.legal-card h3 {
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 900;
    margin: 30px 0 12px;
}

.legal-card p,
.legal-card li {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-card ul {
    margin: 0 0 18px 0;
    padding-left: 22px;
}

.legal-card a {
    color: #38bdf8;
    font-weight: 800;
    text-decoration: none;
}

.legal-card a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.legal-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.22);
    color: #fde68a;
}

.flyper-legal-footer {
    max-width: 1320px;
    margin: 54px auto 26px;
    padding: 0 20px;
}

.flyper-legal-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.flyper-legal-footer a {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.flyper-legal-footer a:hover {
    color: #38bdf8;
}

.flyper-legal-footer span {
    color: #475569;
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .legal-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .flyper-legal-footer {
        margin-top: 34px;
    }

    .flyper-legal-footer-inner {
        flex-direction: column;
        gap: 10px;
    }

    .flyper-legal-footer span {
        display: none;
    }
}

/* === END Flyper legal pages and footer v27 === */

/* === Flyper account footer width back to v30 v33 === */

/*
   Vrací spodní právní box na šířku z verze v30.
   Podle této šířky nastavuje account kontejner.
   E-mail v account kartě zůstává zmenšený.
*/

:root {
    --flyper-account-v30-width: 1320px;
    --flyper-account-v30-side-padding: 20px;
}

/* Spodní právní box zpět jako ve v30 */
body.account-page .flyper-legal-footer,
.account-modern-page .flyper-legal-footer,
.flyper-legal-footer {
    width: 100% !important;
    max-width: var(--flyper-account-v30-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--flyper-account-v30-side-padding) !important;
    padding-right: var(--flyper-account-v30-side-padding) !important;
    box-sizing: border-box !important;
}

body.account-page .flyper-legal-footer-inner,
.account-modern-page .flyper-legal-footer-inner,
.flyper-legal-footer-inner {
    width: 100% !important;
    max-width: none !important;
    padding-left: 34px !important;
    padding-right: 34px !important;
    box-sizing: border-box !important;
    border-radius: 26px !important;
}

/* Account kontejner podle spodního právního boxu */
body.account-page .account-modern-wrap,
body.account-page main.account-modern-wrap,
.account-modern-page .account-modern-wrap,
.account-modern-wrap {
    width: 100% !important;
    max-width: var(--flyper-account-v30-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--flyper-account-v30-side-padding) !important;
    padding-right: var(--flyper-account-v30-side-padding) !important;
    box-sizing: border-box !important;
}

/* Nadpis accountu podle stejné šířky */
body.account-page .account-modern-head,
.account-modern-page .account-modern-head,
.account-modern-head {
    width: 100% !important;
    max-width: var(--flyper-account-v30-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--flyper-account-v30-side-padding) !important;
    padding-right: var(--flyper-account-v30-side-padding) !important;
    box-sizing: border-box !important;
}

/* Hlavní account karta */
body.account-page .account-modern-card,
.account-modern-page .account-modern-card,
.account-modern-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 32px 34px !important;
    box-sizing: border-box !important;
}

/* Levý panel užší, pravá data širší */
body.account-page .account-modern-grid,
.account-modern-page .account-modern-grid,
.account-modern-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 330px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

body.account-page .account-modern-profile,
.account-modern-page .account-modern-profile,
.account-modern-profile {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

body.account-page .account-modern-stats,
body.account-page .account-modern-info-grid,
.account-modern-page .account-modern-stats,
.account-modern-page .account-modern-info-grid,
.account-modern-stats,
.account-modern-info-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    box-sizing: border-box !important;
}

body.account-page .account-modern-info,
.account-modern-page .account-modern-info,
.account-modern-info {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 112px !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

body.account-page .account-modern-label,
.account-modern-page .account-modern-label,
.account-modern-label {
    font-size: 0.66rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 8px !important;
}

body.account-page .account-modern-value,
.account-modern-page .account-modern-value,
.account-modern-value {
    max-width: 100% !important;
    font-size: 0.86rem !important;
    line-height: 1.28 !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: none !important;
}

/* E-mail v pravém gridu */
body.account-page .account-modern-info:first-child .account-modern-value,
.account-modern-page .account-modern-info:first-child .account-modern-value,
.account-modern-info:first-child .account-modern-value {
    font-size: 0.68rem !important;
    line-height: 1.18 !important;
    font-weight: 850 !important;
    letter-spacing: -0.04em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: none !important;
}

/* E-mail vlevo v profilu */
body.account-page .account-modern-email,
.account-modern-page .account-modern-email,
.account-modern-email {
    max-width: 100% !important;
    font-size: 0.70rem !important;
    line-height: 1.24 !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: none !important;
}

body.account-page .account-modern-head h2,
.account-modern-page .account-modern-head h2,
.account-modern-head h2 {
    font-size: clamp(2.1rem, 3.8vw, 3.8rem) !important;
    line-height: 0.98 !important;
}

body.account-page .account-modern-head p,
.account-modern-page .account-modern-head p,
.account-modern-head p {
    font-size: 0.95rem !important;
}

body.account-page .account-modern-actions a,
.account-modern-page .account-modern-actions a,
.account-modern-actions a {
    font-size: 0.84rem !important;
}

/* Horní user chip necháváme zkrácený jen v navigaci */
body.account-page .top-auth-inner .user-chip {
    max-width: 360px !important;
}

body.account-page .top-auth-inner .user-email {
    max-width: 285px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 980px) {
    body.account-page .account-modern-grid,
    .account-modern-page .account-modern-grid,
    .account-modern-grid {
        grid-template-columns: 1fr !important;
    }

    body.account-page .account-modern-stats,
    body.account-page .account-modern-info-grid,
    .account-modern-page .account-modern-stats,
    .account-modern-page .account-modern-info-grid,
    .account-modern-stats,
    .account-modern-info-grid {
        grid-template-columns: 1fr !important;
    }

    body.account-page .account-modern-info:first-child .account-modern-value,
    body.account-page .account-modern-email,
    .account-modern-page .account-modern-info:first-child .account-modern-value,
    .account-modern-page .account-modern-email,
    .account-modern-info:first-child .account-modern-value,
    .account-modern-email {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 700px) {
    :root {
        --flyper-account-v30-side-padding: 12px;
    }

    body.account-page .account-modern-card,
    .account-modern-page .account-modern-card,
    .account-modern-card {
        padding: 22px 18px !important;
    }

    body.account-page .flyper-legal-footer-inner,
    .account-modern-page .flyper-legal-footer-inner,
    .flyper-legal-footer-inner {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

/* === END Flyper account footer width back to v30 v33 === */

/* === Flyper auth central layout v46 === */

/*
   Centrální layout pro auth stránky.
   Hlava a pata stránky mají stejnou šířku.
   Bez inline stylů v šablonách.
   Bez runtime JS přesunování footeru.
*/

:root {
    --flyper-page-shell-width: 1320px;
    --flyper-page-shell-side-gap: 40px;
    --flyper-auth-column-gap: 28px;
    --flyper-auth-box-height: 560px;
    --flyper-auth-footer-gap: 64px;
    --flyper-auth-footer-bottom: 40px;
}

html body.modern-auth-page,
body:has(> main.modern-auth-shell),
body:has(main.modern-auth-shell) {
    display: block !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

html body.modern-auth-page > main.modern-auth-shell,
html body.modern-auth-page main.modern-auth-shell,
body > main.modern-auth-shell,
main.modern-auth-shell {
    display: grid !important;
    width: calc(100% - var(--flyper-page-shell-side-gap)) !important;
    max-width: var(--flyper-page-shell-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: var(--flyper-auth-footer-gap) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: var(--flyper-auth-column-gap) !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
}

html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero,
html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel,
main.modern-auth-shell > section.modern-auth-hero,
main.modern-auth-shell > section.modern-auth-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--flyper-auth-box-height) !important;
    min-height: var(--flyper-auth-box-height) !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    float: none !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
}

html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero,
main.modern-auth-shell > section.modern-auth-hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel,
main.modern-auth-shell > section.modern-auth-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

html body.modern-auth-page main.modern-auth-shell .modern-auth-hero h1,
html body.modern-auth-page main.modern-auth-shell .modern-auth-title,
html body.modern-auth-page main.modern-auth-shell .modern-auth-hero-title,
main.modern-auth-shell .modern-auth-hero h1,
main.modern-auth-shell .modern-auth-title,
main.modern-auth-shell .modern-auth-hero-title {
    max-width: 100% !important;
    font-size: clamp(2.3rem, 4.2vw, 4.8rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.075em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

html body.modern-auth-page > footer.flyper-legal-footer,
html body.modern-auth-page footer.flyper-legal-footer,
body > footer.flyper-legal-footer,
footer.flyper-legal-footer {
    display: block !important;
    width: calc(100% - var(--flyper-page-shell-side-gap)) !important;
    max-width: var(--flyper-page-shell-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: var(--flyper-auth-footer-bottom) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    clear: both !important;
}

html body.modern-auth-page footer.flyper-legal-footer .flyper-legal-footer-inner,
footer.flyper-legal-footer .flyper-legal-footer-inner {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px 26px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px 20px !important;
    border-radius: 26px !important;
}

html body.modern-auth-page footer.flyper-legal-footer a,
footer.flyper-legal-footer a {
    font-size: 0.86rem !important;
    line-height: 1.2 !important;
}

@media (max-width: 980px) {
    :root {
        --flyper-page-shell-width: 720px;
        --flyper-page-shell-side-gap: 32px;
        --flyper-auth-footer-gap: 40px;
    }

    html body.modern-auth-page > main.modern-auth-shell,
    html body.modern-auth-page main.modern-auth-shell,
    body > main.modern-auth-shell,
    main.modern-auth-shell {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero,
    html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel,
    main.modern-auth-shell > section.modern-auth-hero,
    main.modern-auth-shell > section.modern-auth-panel {
        height: auto !important;
        min-height: auto !important;
    }
}

@media (max-width: 620px) {
    :root {
        --flyper-page-shell-side-gap: 24px;
    }

    html body.modern-auth-page footer.flyper-legal-footer .flyper-legal-footer-inner,
    footer.flyper-legal-footer .flyper-legal-footer-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* === END Flyper auth central layout v46 === */

/* === Flyper unified auth/contact layout 20260528 === */
html body.modern-auth-page {
    display: block !important;
    min-height: 100vh !important;
    padding: 40px 20px 34px !important;
    overflow-x: hidden !important;
}

html body.modern-auth-page > main.modern-auth-shell,
html body.modern-auth-page main.modern-auth-shell {
    width: min(100% - 40px, 1650px) !important;
    max-width: 1650px !important;
    min-height: 700px !important;
    height: 700px !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px !important;
    align-items: stretch !important;
    margin: 0 auto 64px !important;
}

html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero,
html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 700px !important;
    height: 700px !important;
    max-height: 700px !important;
    padding: 34px 36px !important;
    box-sizing: border-box !important;
    border-radius: 30px !important;
    overflow: hidden !important;
}

html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

html body.modern-auth-page .modern-auth-brand-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 17px !important;
}

html body.modern-auth-page .modern-auth-brand-word {
    font-size: 1.45rem !important;
    letter-spacing: 0.06em !important;
}

html body.modern-auth-page .modern-auth-copy {
    margin: 0 !important;
    max-width: 620px !important;
}

html body.modern-auth-page .modern-auth-copy h1 {
    font-size: clamp(3.05rem, 4.1vw, 4.45rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.055em !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
}

html body.modern-auth-page .modern-auth-copy p {
    max-width: 620px !important;
    margin: 18px 0 0 !important;
    font-size: 1.02rem !important;
    line-height: 1.55 !important;
}

html body.modern-auth-page .modern-eyebrow {
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 12px !important;
}

html body.modern-auth-page .modern-auth-benefits {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
}

html body.modern-auth-page .modern-auth-benefits div {
    max-width: 100% !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.82rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
}

html body.modern-auth-page .modern-auth-panel-head {
    margin-bottom: 16px !important;
}

html body.modern-auth-page .modern-auth-panel-title {
    font-size: 1.6rem !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
}

html body.modern-auth-page .modern-auth-panel-subtitle {
    margin-top: 5px !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

html body.modern-auth-page .modern-auth-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

html body.modern-auth-page .modern-auth-label {
    margin-top: 3px !important;
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
}

html body.modern-auth-page .modern-auth-input {
    min-height: 46px !important;
    height: 46px !important;
    padding: 9px 13px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
}

html body.modern-auth-page .modern-auth-password .modern-auth-input {
    padding-right: 54px !important;
}

html body.modern-auth-page .modern-auth-eye {
    width: 38px !important;
    height: 36px !important;
    right: 8px !important;
}

html body.modern-auth-page .modern-auth-textarea {
    min-height: 108px !important;
    height: 108px !important;
    max-height: 108px !important;
    resize: none !important;
}

html body.modern-auth-page .modern-auth-submit {
    min-height: 50px !important;
    height: 50px !important;
    margin-top: 10px !important;
    border-radius: 15px !important;
    font-size: 1rem !important;
    line-height: 1.15 !important;
}

html body.modern-auth-page .modern-auth-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
    margin-top: 16px !important;
}

html body.modern-auth-page .modern-auth-links a {
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
}

html body.auth-page-contact .modern-auth-form {
    gap: 7px !important;
}

html body.auth-page-contact .modern-auth-panel-head {
    margin-bottom: 12px !important;
}

html body.auth-page-contact .modern-auth-input {
    min-height: 42px !important;
    height: 42px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

html body.auth-page-contact .modern-auth-submit {
    min-height: 48px !important;
    height: 48px !important;
    margin-top: 8px !important;
}

html body.auth-page-contact .modern-auth-links {
    margin-top: 14px !important;
}

html body.auth-page-contact .modern-auth-links a {
    min-height: 40px !important;
    height: 40px !important;
}

@media (max-width: 1180px) {
    html body.modern-auth-page {
        padding: 24px 16px 30px !important;
    }

    html body.modern-auth-page > main.modern-auth-shell,
    html body.modern-auth-page main.modern-auth-shell {
        width: min(100%, 760px) !important;
        height: auto !important;
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        margin-bottom: 42px !important;
    }

    html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero,
    html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        padding: 28px !important;
    }

    html body.modern-auth-page .modern-auth-copy h1 {
        font-size: clamp(2.35rem, 10vw, 3.8rem) !important;
    }
}

@media (max-width: 620px) {
    html body.modern-auth-page {
        padding: 18px 12px 24px !important;
    }

    html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero,
    html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel {
        padding: 22px !important;
        border-radius: 24px !important;
    }

    html body.modern-auth-page .modern-auth-links {
        grid-template-columns: 1fr !important;
    }
}
/* === END Flyper unified auth/contact layout 20260528 === */

/* === Flyper locked auth/footer width 20260528 === */
:root {
    --flyper-auth-locked-width: 1650px;
    --flyper-auth-locked-side-space: 226px;
    --flyper-auth-locked-gap: 30px;
}

html body.modern-auth-page > main.modern-auth-shell,
html body.modern-auth-page main.modern-auth-shell,
html body.modern-auth-page > footer.flyper-legal-footer,
html body.modern-auth-page footer.flyper-legal-footer {
    width: min(calc(100% - var(--flyper-auth-locked-side-space)), var(--flyper-auth-locked-width)) !important;
    max-width: var(--flyper-auth-locked-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

html body.modern-auth-page > main.modern-auth-shell,
html body.modern-auth-page main.modern-auth-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--flyper-auth-locked-gap) !important;
}

html body.modern-auth-page main.modern-auth-shell > section.modern-auth-hero,
html body.modern-auth-page main.modern-auth-shell > section.modern-auth-panel {
    min-width: 0 !important;
    max-width: none !important;
}

html body.modern-auth-page > footer.flyper-legal-footer,
html body.modern-auth-page footer.flyper-legal-footer {
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html body.modern-auth-page footer.flyper-legal-footer .flyper-legal-footer-inner {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 1180px) {
    html body.modern-auth-page > main.modern-auth-shell,
    html body.modern-auth-page main.modern-auth-shell,
    html body.modern-auth-page > footer.flyper-legal-footer,
    html body.modern-auth-page footer.flyper-legal-footer {
        width: min(100%, 760px) !important;
        max-width: 760px !important;
    }

    html body.modern-auth-page > main.modern-auth-shell,
    html body.modern-auth-page main.modern-auth-shell {
        grid-template-columns: 1fr !important;
    }
}
/* === END Flyper locked auth/footer width 20260528 === */
