/* ============================================================
   FFG Financial Group – Autopojištění
   Paleta: Černá (#0a0a0a) + Zlatá (#c9a227 / #e8c44a)
   ============================================================ */

:root {
    --bg-dark:       #0a0a0a;
    --bg-card:       #111111;
    --bg-input:      #1a1a1a;
    --gold:          #c9a227;
    --gold-light:    #e8c44a;
    --gold-dim:      rgba(201, 162, 39, 0.18);
    --gold-border:   rgba(201, 162, 39, 0.35);
    --gold-glow:     rgba(201, 162, 39, 0.25);
    --text-main:     #f0ece0;
    --text-muted:    #8a8070;
    --text-dim:      #555045;
    --border:        rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(201, 162, 39, 0.45);
    --error:         #e05050;
    --success:       #4caf7d;
    --radius-card:   20px;
    --radius-input:  12px;
    --radius-pill:   50px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    touch-action: manipulation;
}

/* ── Fixní Pozadí pozadi1.png ── */
.fixed-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.76) 0%, rgba(10, 10, 10, 0.88) 100%), url('pozadi1.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -3;
    pointer-events: none;
}

/* ── Particles Canvas ── */
#particlesCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ── Background Gold Glows ── */
.background-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.26;
    animation: pulseGlow 12s ease-in-out infinite alternate;
}

.glow-circle.gold-top {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(201,162,39,0.55) 0%, transparent 70%);
    top: -280px; left: -180px;
}

.glow-circle.gold-bottom {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,162,39,0.4) 0%, transparent 70%);
    bottom: -200px; right: -150px;
    animation-delay: -6s;
}

@keyframes pulseGlow {
    0%   { transform: scale(1) translate(0, 0);        opacity: 0.22; }
    50%  { transform: scale(1.12) translate(25px,-20px); opacity: 0.35; }
    100% { transform: scale(0.92) translate(-15px,25px); opacity: 0.24; }
}

/* ── Top Navigation (Logo v levém horním rohu) ── */
.top-nav {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInDown 0.6s ease-out;
}

.top-nav .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 62px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(201,162,39,0.35));
    transition: filter 0.3s ease, transform 0.2s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 6px 28px rgba(201,162,39,0.55));
    transform: scale(1.02);
}

/* ── Container Layout ── */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3.5rem;
    position: relative;
    z-index: 1;
}

/* ── Header: Zvýrazněné texty (Rychlá kalkulace / Autopojištění) ── */
.app-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.7s ease-out;
}

.header-pretitle-wrapper {
    margin-bottom: 0.5rem;
}

.header-pretitle {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 18px;
    border-radius: 50px;
    background: rgba(201, 162, 39, 0.16);
    border: 1px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(201, 162, 39, 0.3);
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
}

.header-main-title {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff7d6 25%, #e8c44a 65%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 4px 24px rgba(201, 162, 39, 0.45));
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}

/* White logo silhouettes on transparent backgrounds; original SVG assets preserved. */
.insurers-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto 0.5rem;
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: transparent;
}
.insurer-logo {
    flex: 0 0 100px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    background: transparent;
    border-radius: 8px;
}
.insurer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.insurer-logo--slavia { background: transparent; }
@media (max-width: 480px) {
    .insurers-strip { gap: 8px; padding: 8px; }
    .insurer-logo { flex-basis: calc((100% - 16px) / 3); min-width: 0; height: 54px; padding: 4px 7px; }
}

/* ── Card Panel ── */
.app-content { display: grid; }
.app-content.centered { margin: 0 auto; width: 100%; }

.glass-panel {
    background: rgba(17, 17, 17, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.25rem;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.75),
        0 0 0 1px rgba(201,162,39,0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
    animation: fadeInUp 0.7s ease-out;
    transition: border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(201,162,39,0.18);
}

/* ── Form Section Blocks ── */
.form-section-block {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.form-section-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Radio Pill Groups ── */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.pill-item {
    cursor: pointer;
}

.pill-item input[type="radio"] {
    display: none;
}

.pill-label {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
    white-space: nowrap;
}

.pill-item input[type="radio"]:checked + .pill-label {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 14px var(--gold-glow);
}

.pill-label:hover {
    border-color: var(--gold-border);
    color: var(--text-main);
}

/* ── SPZ Input (Kompaktní autentická velikost + velké písmo) ── */
.spz-plate-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

/* Specific selectors keep generic form controls from overriding the plate. */
.spz-plate {
    display: flex;
    align-items: stretch;
    width: min(100%, var(--plate-width, 280px));
    aspect-ratio: 52 / 11;
    border: 2px solid #222;
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.spz-plate:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.spz-plate.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(224,80,80,0.3);
}
.spz-eu-strip {
    width: 10.5%;
    flex-shrink: 0;
    background: #003399;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.spz-eu-stars-circle { display: flex; align-items: center; justify-content: center; }
.spz-eu-stars-circle svg { width: 18px; height: 18px; overflow: visible; }
.spz-eu-cz { color: #fff; font: 800 12px/1 Arial, sans-serif; }
.spz-plate input.spz-plate-input {
    flex: 1;
    width: 0;
    min-width: 0;
    min-height: 0;
    padding: 0 7px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #151515;
    font-family: 'Arial Narrow', 'Roboto Condensed', 'Inter', sans-serif;
    font-size: clamp(28px, 8vw, 38px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: none;
}
.spz-plate input.spz-plate-input:focus { outline: none; box-shadow: none; }
.spz-plate input.spz-plate-input::placeholder {
    color: #555;
    font: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
    opacity: 1;
}
.spz-plate input.spz-plate-input:disabled { -webkit-text-fill-color: #555; }

.spz-sub-checkbox {
    margin-top: 4px;
}

/* ── Checkbox Items ── */
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    accent-color: var(--gold);
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.gdpr-checkbox {
    margin-bottom: 1.25rem;
    justify-content: center;
}

.gdpr-checkbox .checkbox-label {
    font-size: 0.85rem;
    text-align: center;
}

.link-gold {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link-gold:hover {
    color: #ffffff;
}

/* ── Standard Inputs ── */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-row {
    display: flex;
    gap: 0.85rem;
}

.form-row .half { flex: 1; min-width: 0; }

label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.form-group:focus-within > label {
    color: var(--gold-light);
}

.label-optional {
    font-weight: 400;
    color: var(--text-dim);
    font-size: 0.78rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    color: var(--text-main);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

input.is-invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(224, 80, 80, 0.25) !important;
}

input::placeholder {
    color: var(--text-dim);
}

/* ── Select ── */
.form-select {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 2.2rem 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    color: var(--text-main);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    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 d='M1 1l5 5 5-5' stroke='%23c9a227' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-select option {
    background: #1a1a1a;
    color: var(--text-main);
}

/* ── Textarea ── */
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    color: var(--text-main);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-textarea::placeholder { color: var(--text-dim); }

/* ── Submit Button ── */
.form-actions-block { text-align: center; }

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    overflow: hidden;
    touch-action: manipulation;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--gold) 0%, #a07a10 100%);
    color: #0a0a0a;
    box-shadow:
        0 8px 24px rgba(201,162,39,0.4),
        0 0 40px rgba(201,162,39,0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.55s ease;
}

.btn-primary:hover::before { transform: rotate(30deg) translateY(100%); }

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 14px 35px rgba(201,162,39,0.5),
        0 0 60px rgba(201,162,39,0.2);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}

.btn-primary.success-state {
    background: linear-gradient(135deg, var(--success) 0%, #2e7d52 100%) !important;
    box-shadow: 0 8px 24px rgba(76,175,125,0.4) !important;
    color: #fff !important;
}

/* ── Loader ── */
.loader {
    border: 3px solid rgba(0,0,0,0.3);
    border-radius: 50%;
    border-top: 3px solid #0a0a0a;
    width: 22px; height: 22px;
    animation: spin 0.75s linear infinite;
    display: none;
}
.loader.active { display: block; }
.btn-text.hidden { display: none; }

/* ── Messages ── */
.message {
    margin-top: 1.1rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    animation: fadeInUp 0.35s ease-out;
}
.message.hidden { display: none; }
.message.success {
    background: rgba(76,175,125,0.12);
    color: #6dd99b;
    border: 1px solid rgba(76,175,125,0.35);
}
.message.error {
    background: rgba(224,80,80,0.12);
    color: #f08080;
    border: 1px solid rgba(224,80,80,0.35);
}

/* ── Modal: Ověření bonusu – FFG černozlatý design ── */
.bonus-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInUp 0.3s ease;
}

.bonus-modal-card {
    background: #111111;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 24px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(201, 162, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.bonus-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bonus-modal-close:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--gold-border);
    color: var(--gold-light);
    transform: rotate(90deg);
}

.bonus-modal-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.bonus-modal-desc {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

.bonus-input-group {
    margin-bottom: 14px;
}

.bonus-input {
    width: 100%;
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 0 18px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bonus-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.bonus-input::placeholder {
    color: var(--text-dim);
}
.bonus-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bonus-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.bonus-checkbox-item .checkbox-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}
.bonus-checkbox-item input[type="checkbox"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.modal-action-btn {
    /* Přebírá .btn-primary – žádné přepisování barvy */
}
.modal-action-btn:hover {
    /* Přebírá .btn-primary:hover */
}

/* ── Footer kontakty & info (Patrik Benett / Wealth Strategy) ── */
.app-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-bottom: 2rem;
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-contact-card {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.footer-contact-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.footer-contact-icon {
    font-size: 1.35rem;
}

.footer-contact-info {
    text-align: left;
}

.footer-contact-label {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-val {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-val:hover {
    color: #ffffff;
}

/* Non-link contact val (span) */
span.footer-contact-val {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Perex nad kontakty */
.footer-perex {
    font-size: 0.96rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.55;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Badge "Hlavní" u kanceláře */
.footer-main-badge {
    display: inline-block;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ── Administrace vpravo dole ── */
.admin-login-corner {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.admin-login-corner .admin-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #858585;
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.admin-login-corner .admin-login-btn:hover {
    color: #bfbfbf;
    background: rgba(255, 255, 255, 0.04);
}

.admin-login-corner .admin-login-btn:focus-visible {
    outline: 2px solid #a3a3a3;
    outline-offset: 2px;
}

.admin-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInUp 0.3s ease;
}

.admin-modal-card {
    background: #111;
    border: 1px solid var(--gold-border);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 40px rgba(201,162,39,0.1);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    color: var(--text-main);
}

.admin-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}
.admin-modal-close:hover { color: #fff; }

.admin-modal-card h3 { font-size: 1.3rem; margin-bottom: 5px; }
.admin-modal-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

.admin-form-group { margin-bottom: 15px; }
.admin-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-muted);
}
.admin-form-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0a0a0a;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}
.admin-form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.admin-error-msg { color: #f08080; font-size: 0.85rem; margin: 10px 0; }

/* Floating Admin Toolbar */
.admin-toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17,17,17,0.96);
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(201,162,39,0.25);
    border-radius: 50px;
    padding: 10px 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    width: max-content;
    max-width: 90vw;
}

.admin-toolbar-content {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 20px; width: 100%;
}

.admin-status { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }

.admin-badge {
    background: var(--gold);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.unsaved-pill {
    background: #f59e0b;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 12px;
}

.admin-actions { display: flex; align-items: center; gap: 10px; }

.btn-admin-save {
    background: var(--gold);
    color: #0a0a0a;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-admin-save:hover:not(:disabled) { background: var(--gold-light); transform: scale(1.04); }
.btn-admin-save:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-admin-logout {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-admin-logout:hover {
    background: rgba(224,80,80,0.18);
    border-color: rgba(224,80,80,0.4);
    color: #f08080;
}

/* Admin editable elements */
body.admin-mode [data-editable] {
    outline: 2px dashed rgba(201,162,39,0.5) !important;
    outline-offset: 3px;
    cursor: text;
    transition: outline 0.2s ease, background 0.2s ease;
}
body.admin-mode [data-editable]:hover {
    outline: 2px solid var(--gold) !important;
    background: rgba(201,162,39,0.08) !important;
}
body.admin-mode [data-editable].is-modified {
    outline: 2px solid #f59e0b !important;
    background: rgba(245,158,11,0.12) !important;
}

/* ── Animations ── */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .top-nav { padding: 1.2rem 1rem 0; }
    .logo-img { height: 50px; }
    .container { padding: 0.8rem 0.75rem 3rem; }
    .app-header { margin-bottom: 1.5rem; }
    .header-pretitle { font-size: 1.05rem; padding: 4px 14px; }
    .header-main-title { font-size: 2.5rem; }
    .header-subtitle { font-size: 0.9rem; }
    .glass-panel { padding: 1.35rem 1rem; border-radius: 16px; }
    .form-row { flex-direction: column; gap: 0; }
    .pill-group { gap: 0.45rem; }
    .pill-label { font-size: 0.82rem; padding: 0.42rem 0.9rem; }
    .section-title { font-size: 0.97rem; }
    .btn-primary { min-height: 52px; font-size: 1rem; }
    .bonus-modal-card { padding: 30px 20px 24px; border-radius: 20px; }
    .bonus-modal-title { font-size: 1.5rem; }
    .footer-contacts { flex-direction: column; align-items: stretch; }
    .footer-contact-card { justify-content: center; }
    .admin-toolbar { padding: 8px 16px; }
}

/* Keep the subtitle transparent, including rich text pasted in the editor. */
.header-subtitle,
.header-subtitle * {
    background: transparent !important;
}

/* Match the introduction to the form section headings, including CMS spans. */
.header-subtitle, .header-subtitle * {
    color: var(--text-main) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}
@media (max-width: 640px) {
    .header-subtitle, .header-subtitle * { font-size: 0.97rem !important; }
}
