/* =====================================================================
   ZEDNNER — Design System
   Styl: Clean SaaS Light (Indigo & Slate)
   ===================================================================== */

/* Font Inter se načítá přímo v App.razor pro zamezení blokujícího stahování */

:root {
    /* Brand Colors */
    --zdn-primary: #4f46e5; /* Indigo 600 */
    --zdn-primary-2: #3730a3; /* Indigo 800 */
    --zdn-accent: #0ea5e9; /* Sky Blue 500 */
    --zdn-secondary: #f8fafc; /* Slate 50 */
    --zdn-success: #10b981; /* Emerald */
    /* Light Theme Backgrounds */
    --zdn-bg: #f8fafc; /* Slate 50 (Background) */
    --zdn-surface: #ffffff; /* Elevated Surface 1 (Cards, Nav) */
    --zdn-surface-2: #f1f5f9; /* Elevated Surface 2 (Alt sections) */
    /* Typography */
    --zdn-dark: #0f172a; /* Headings (Slate 900) */
    --zdn-text: #334155; /* Body text (Slate 700) */
    --zdn-muted: #475569; /* Secondary text - Slate 600 pro WCAG AA kontrast >= 4.5:1 */
    /* UI Elements */
    --zdn-border: #e2e8f0; /* Slate 200 */
    --zdn-border-strong: #cbd5e1; /* Slate 300 */
    /* Shadows & Effects */
    --zdn-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --zdn-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    --zdn-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --zdn-shadow-col: 0 8px 25px rgba(79, 70, 229, 0.25); /* Indigo glow */
    --zdn-radius: 1rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--zdn-text);
    background: var(--zdn-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--zdn-dark);
    letter-spacing: -0.02em;
    outline: none !important;
    border: none;
    box-shadow: none !important;
}

/* === GRADIENT TEXT — INLINE, NE BLOCK ================================ */
.zdn-text-glow {
    background: linear-gradient(135deg, var(--zdn-primary) 0%, var(--zdn-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline;
}

.text-gradient {
    background: linear-gradient(135deg, var(--zdn-primary), var(--zdn-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* === ZRUSENI VSECH OUTLINE/BORDER =================================== */
*, *:focus {
    outline: none !important;
}

input, textarea, select, button, a {
    outline: none !important;
}

*:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.5) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.btn:focus, .btn:active, .btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* === TLACITKA ======================================================== */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--zdn-primary), var(--zdn-primary-2));
    color: #ffffff;
    box-shadow: var(--zdn-shadow-col);
    font-weight: 700;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
        color: #ffffff;
        background: linear-gradient(135deg, var(--zdn-primary-2), var(--zdn-primary));
    }

.btn-outline-primary {
    background: transparent;
    color: var(--zdn-primary);
    border: 1.5px solid var(--zdn-primary) !important;
}

    .btn-outline-primary:hover {
        background: rgba(79, 70, 229, 0.05);
        color: var(--zdn-primary-2);
        transform: translateY(-2px);
    }

.btn-outline-secondary {
    background: transparent;
    color: var(--zdn-text);
    border: 1.5px solid var(--zdn-border-strong) !important;
}

    .btn-outline-secondary:hover {
        background: var(--zdn-surface-2);
        color: var(--zdn-dark);
        border-color: var(--zdn-dark) !important;
        transform: translateY(-1px);
    }

.btn-light {
    background: var(--zdn-surface);
    color: var(--zdn-text);
    border: 1px solid var(--zdn-border) !important;
}

    .btn-light:hover {
        background: var(--zdn-surface-2);
        color: var(--zdn-dark);
    }

/* === NAVBAR =========================================================== */
.zdn-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--zdn-border);
    box-shadow: var(--zdn-shadow-sm);
}

.navbar-brand {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--zdn-dark) !important;
    letter-spacing: -0.03em;
}

.zdn-brand-z {
    background: linear-gradient(135deg, var(--zdn-primary), var(--zdn-primary-2));
    color: #ffffff !important;
    padding: 0.1em 0.5em;
    border-radius: 0.4rem;
    margin-right: 0.15rem;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
    font-weight: 800;
}

.zdn-nav-logo {
    height: 40px;
    width: auto;
    aspect-ratio: 718 / 160;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-brand:hover .zdn-nav-logo {
    transform: scale(1.02);
}

.zdn-footer-logo {
    height: 44px;
    width: auto;
    aspect-ratio: 718 / 160;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.zdn-footer-logo:hover {
    opacity: 0.9;
}

@media (max-width: 576px) {
    .zdn-nav-logo {
        height: 34px;
    }
    .zdn-footer-logo {
        height: 38px;
    }
}

/* =====================================================================
   WCAG AA Přístupnost a barevný kontrast (min 4.5:1 na světlém pozadí)
   ===================================================================== */
.text-muted {
    color: #475569 !important; /* Slate 600 pro zaručený kontrast >= 4.5:1 */
}

.badge.bg-primary-subtle,
.bg-primary-subtle.text-primary,
.bg-primary-subtle .text-primary {
    color: #1e40af !important; /* Kontrast 6.8:1 */
}

.badge.bg-success-subtle,
.bg-success-subtle.text-success,
.bg-success-subtle .text-success {
    color: #065f46 !important; /* Kontrast 7.2:1 */
}

.badge.bg-info-subtle,
.bg-info-subtle.text-info,
.bg-info-subtle .text-info {
    color: #0e7490 !important; /* Kontrast 5.1:1 */
}

.badge.bg-warning-subtle,
.bg-warning-subtle.text-warning,
.bg-warning-subtle .text-warning {
    color: #78350f !important; /* Kontrast 6.5:1 */
}

.zdn-lang-btn {
    background: #f1f5f9;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
    border-radius: 2rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.zdn-lang-btn:hover,
.zdn-lang-btn:focus,
.zdn-lang-btn[aria-expanded="true"] {
    background: #ffffff;
    color: var(--zdn-primary) !important;
    border-color: var(--zdn-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

@media (max-width: 991.98px) {
    #navbarMain .dropdown-menu {
        background-color: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        padding: 0.5rem 0;
        margin-top: 0.35rem;
        margin-bottom: 0.75rem;
    }
}

/* === NAVBAR =========================================================== */
.zdn-navbar {
    padding: 0.45rem 0;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.97) !important;
    z-index: 1030;
    transition: all 0.2s ease;
}

.zdn-navbar .nav-link {
    color: #334155 !important;
    font-weight: 550;
    font-size: 0.915rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: 0.45rem;
    transition: all 0.15s ease-in-out;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

.zdn-navbar .nav-link:hover,
.zdn-navbar .nav-link:focus {
    color: var(--zdn-primary, #4f46e5) !important;
    background-color: rgba(79, 70, 229, 0.06);
}

.zdn-navbar .nav-item {
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .zdn-navbar .nav-item {
        display: block;
        width: 100%;
    }
    .zdn-navbar .nav-link {
        width: 100%;
        padding: 0.6rem 0.85rem !important;
    }
}

/* === HERO ============================================================= */
.zdn-hero {
    padding: 3.5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--zdn-surface-2) 0%, var(--zdn-surface) 100%);
}

.zdn-hero-glow-1, .zdn-hero-glow-2, .zdn-hero-glow-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    animation: zdnFloat 20s infinite ease-in-out alternate;
}

.zdn-hero-glow-1 {
    top: -15%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
}

.zdn-hero-glow-2 {
    bottom: -20%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    animation-delay: -7s;
}

.zdn-hero-glow-3 {
    top: 30%;
    left: 35%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation-delay: -13s;
}

@keyframes zdnFloat {
    0% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(20px,-25px) scale(1.08);
    }

    100% {
        transform: translate(-15px,30px) scale(0.93);
    }
}

.zdn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--zdn-primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.zdn-hero-title {
    font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--zdn-dark);
    word-break: break-word;
}

.zdn-hero-subtitle {
    font-size: 1.05rem;
    color: var(--zdn-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.zdn-trust-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zdn-muted);
}

/* === SEKCE ============================================================ */
.zdn-section {
    padding: 6rem 0;
}

.zdn-section-alt {
    background: var(--zdn-surface-2);
    border-top: 1px solid var(--zdn-border);
    border-bottom: 1px solid var(--zdn-border);
}

.zdn-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.zdn-section-title {
    font-size: clamp(1.75rem,4vw,2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--zdn-dark);
    margin-bottom: 0.75rem;
}

.zdn-section-sub {
    color: var(--zdn-muted);
    max-width: 520px;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
}

.zdn-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--zdn-primary), transparent);
    border-radius: 2px;
    margin: 0.75rem auto;
}

/* === KARTY ============================================================ */
.zdn-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: var(--zdn-radius);
    padding: 2rem;
    box-shadow: var(--zdn-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--zdn-text);
}

    .zdn-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--zdn-shadow);
        border-color: var(--zdn-border-strong);
    }

@media (max-width: 575.98px) {
    .zdn-card {
        padding: 1.25rem 1rem;
    }
}

    .zdn-card h1, .zdn-card h2, .zdn-card h3, .zdn-card h4, .zdn-card h5 {
        color: var(--zdn-dark);
        outline: none !important;
        border: none;
    }

.zdn-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

    .zdn-card-icon.blue {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .zdn-card-icon.green {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .zdn-card-icon.amber {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .zdn-card-icon.violet {
        background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    }

/* === PORTFOLIO KARTY ================================================= */
.zdn-portfolio-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: var(--zdn-radius);
    padding: 1.75rem;
    box-shadow: var(--zdn-shadow-sm);
    transition: all 0.3s ease;
    color: var(--zdn-text);
}

    .zdn-portfolio-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--zdn-shadow);
        border-color: var(--zdn-border-strong);
    }

.zdn-portfolio-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

    .zdn-portfolio-badge.primary {
        background: rgba(79, 70, 229, 0.1);
        color: var(--zdn-primary);
        border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .zdn-portfolio-badge.info {
        background: var(--zdn-surface-2);
        color: var(--zdn-text);
        border: 1px solid var(--zdn-border-strong);
    }

.zdn-portfolio-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid var(--zdn-border);
}

/* === AI KARTA ========================================================= */
.zdn-ai-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: 1.25rem;
    box-shadow: var(--zdn-shadow-lg);
    overflow: hidden;
}

.zdn-ai-card-header {
    background: var(--zdn-surface-2);
    color: var(--zdn-dark);
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--zdn-border);
}

.zdn-ai-preview {
    padding: 1.25rem 1.5rem;
}

.zdn-ai-cta {
    padding: 1.25rem 1.5rem;
    background: var(--zdn-surface-2);
    border-top: 1px solid var(--zdn-border);
}

.zdn-module-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--zdn-border);
}

    .zdn-module-row:last-child {
        border-bottom: none;
    }

.zdn-module-content {
    flex: 1;
    min-width: 0;
}

/* === BADGE SLOZITOSTI ================================================ */
.zdn-badge-complexity {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .zdn-badge-complexity::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        display: inline-block;
    }

    .zdn-badge-complexity.low {
        background: #ecfdf5;
        color: #059669;
        border: 1px solid #a7f3d0;
    }

        .zdn-badge-complexity.low::before {
            background: #10b981;
            box-shadow: 0 0 5px #10b981;
        }

    .zdn-badge-complexity.medium {
        background: #fffbeb;
        color: #d97706;
        border: 1px solid #fde68a;
    }

        .zdn-badge-complexity.medium::before {
            background: #f59e0b;
            box-shadow: 0 0 5px #f59e0b;
        }

    .zdn-badge-complexity.high {
        background: #fef2f2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

        .zdn-badge-complexity.high::before {
            background: #ef4444;
            box-shadow: 0 0 5px #ef4444;
        }

/* === FORMULARE ======================================================= */
.form-control, .form-select {
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--zdn-border-strong);
    background: var(--zdn-surface);
    color: var(--zdn-text);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none !important;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--zdn-primary) !important;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
        background: var(--zdn-surface);
        outline: none !important;
    }

    .form-control::placeholder {
        color: var(--zdn-muted);
    }

    .form-control:focus-visible, .form-select:focus-visible {
        outline: none !important;
    }

/* === KONTAKTNI KARTA ================================================= */
.zdn-contact-card {
    background: var(--zdn-surface);
    border: 1px solid var(--zdn-border);
    border-radius: var(--zdn-radius);
    padding: 3rem;
    box-shadow: var(--zdn-shadow);
}

/* === TECH TAG ======================================================== */
.zdn-tech-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid var(--zdn-border-strong);
    background: var(--zdn-surface-2);
    color: var(--zdn-text);
    font-size: 0.7rem;
    font-weight: 600;
}

/* === PAYMENT BADGES ================================================== */
.zdn-pay-badge {
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    vertical-align: middle;
}

/* Apple Pay — černý pill badge */
.zdn-applepay-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #000000;
    color: #ffffff;
    border-radius: 5px;
    padding: 0 10px;
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.zdn-applepay-symbol::before {
    content: '\f8ff';
    font-family: -apple-system, 'Apple Color Emoji', sans-serif;
    margin-right: 2px;
}

/* Google Pay — bílý badge s G-barvami */
.zdn-gpay-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 5px;
    padding: 0 10px;
    font-family: 'Google Sans', 'Product Sans', Roboto, 'Helvetica Neue', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.zdn-gpay-g {
    font-weight: 700;
    font-family: 'Google Sans', 'Product Sans', Roboto, 'Helvetica Neue', sans-serif;
    letter-spacing: -0.5px;
}

/* === LAUNCH / ZAVÁDĚCÍ BADGE ========================================= */
.zdn-launch-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

.zdn-original-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 6px;
}

/* === FOOTER ========================================================== */
.zdn-footer {
    background: #0b1120;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
}

.zdn-footer h6 {
    color: #ffffff !important;
}

.zdn-footer a {
    color: #cbd5e1 !important;
    transition: color 0.15s ease;
}

.zdn-footer a:hover {
    color: #38bdf8 !important;
}

/* === BLAZOR ERROR ==================================================== */
#blazor-error-ui {
    background: #fef2f2;
    color: #991b1b;
    border-top: 1px solid #fecaca;
    bottom: 0;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* === DEMO BACK BUTTON ================================================ */
.btn-demo-back {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--zdn-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--zdn-shadow);
    transition: all 0.25s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--zdn-border-strong);
}

    .btn-demo-back:hover {
        transform: translateY(-3px);
        background: var(--zdn-surface);
        color: var(--zdn-primary);
        box-shadow: var(--zdn-shadow-lg);
        border-color: var(--zdn-border-strong);
    }

/* === DEMO PUJCOVNA =================================================== */
.demo-pujcovna-wrapper {
    background: var(--zdn-bg);
    min-height: 100vh;
}

.costume-card {
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

    .costume-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--zdn-shadow-lg) !important;
    }

.card-img-wrapper img {
    transition: transform 0.5s ease;
}

.costume-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.btn-theme-dynamic {
    background: linear-gradient(45deg, var(--zdn-primary), var(--zdn-primary-2));
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
}

    .btn-theme-dynamic:hover {
        background: linear-gradient(45deg, var(--zdn-primary-2), var(--zdn-primary));
        transform: translateY(-2px);
        box-shadow: var(--zdn-shadow-col);
        color: #ffffff;
    }

.badge-fun {
    background: linear-gradient(45deg, var(--zdn-accent), #38bdf8);
    color: #ffffff;
    font-size: 0.875rem;
    border-radius: 50px;
}

/* === AUTHENTICATOR =================================================== */
.authenticator-setup-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--zdn-surface);
    border-radius: var(--zdn-radius);
    padding: 2.5rem;
    box-shadow: var(--zdn-shadow);
    border: 1px solid var(--zdn-border);
}

    .authenticator-setup-card .qr-container {
        display: flex;
        justify-content: center;
        padding: 1.5rem;
        background: var(--zdn-surface-2);
        border-radius: 0.75rem;
        border: 1px dashed var(--zdn-border-strong);
    }

/* === KPI KARTY SERVICE DESK ========================================== */
.kpi-card {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    background: var(--zdn-surface);
    border-color: var(--zdn-border);
}

    .kpi-card:hover {
        transform: none !important;
        box-shadow: var(--zdn-shadow) !important;
    }

/* === OPRAVA POZADI U KARET =================================== */
.card {
    background-color: var(--zdn-surface) !important;
    color: var(--zdn-text);
    border-color: var(--zdn-border);
}

    .card.bg-info, .card.bg-info.bg-opacity-10 {
        background-color: rgba(14, 165, 233, 0.1) !important;
        color: var(--zdn-text) !important;
        border-color: rgba(14, 165, 233, 0.2);
    }

    .card.bg-white {
        background-color: var(--zdn-surface) !important;
    }

    .card.bg-light {
        background-color: var(--zdn-surface-2) !important;
        border-color: var(--zdn-border-strong);
    }

    .card.bg-dark, .card.oee-kpi-card-dark {
        background-color: #0f172a !important;
        color: #ffffff !important;
        border-color: #334155 !important;
    }

    .card.bg-dark .text-light,
    .card.bg-dark .text-secondary,
    .card.oee-kpi-card-dark .text-light,
    .card.oee-kpi-card-dark .text-secondary {
        color: #94a3b8 !important;
    }

    .card.bg-dark .text-light-50,
    .card.oee-kpi-card-dark .text-light-50 {
        color: rgba(248, 250, 252, 0.75) !important;
    }

    .card.bg-primary {
        background-color: var(--zdn-primary) !important;
        color: #ffffff !important;
    }

    .card.bg-success {
        background-color: #10b981 !important;
        color: #ffffff !important;
    }

    .card.bg-danger {
        background-color: #ef4444 !important;
        color: #ffffff !important;
    }

    .card.bg-warning {
        background-color: #f59e0b !important;
        color: #0f172a !important;
    }

    .card.bg-transparent {
        background-color: transparent !important;
    }

/* ===== OPRAVA: Blazor scroll-restoration přidává tabindex="-1" na section/h1 ===== */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible,
section:focus,
section:focus-visible,
h1:focus, h1:focus-visible,
h2:focus, h2:focus-visible,
h3:focus, h3:focus-visible,
div[tabindex]:focus, div[tabindex]:focus-visible,
main:focus, main:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Footer link hovers */
.hover-primary {
    transition: color 0.2s ease;
}

    .hover-primary:hover {
        color: var(--zdn-primary) !important;
    }

/* ===== Platební metody a odznaky Comgate ===== */
.zdn-payment-badge {
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-block;
    vertical-align: middle;
}

.zdn-payment-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===== CHECKOUT STEPPER (KROKOVAČ KOŠÍKU) ============================== */
.zdn-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .zdn-stepper {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

.zdn-step-badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
}

@media (min-width: 576px) {
    .zdn-step-badge {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

a.zdn-step-badge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.zdn-step-icon {
    font-size: 0.75rem;
    color: var(--zdn-muted);
}

@media (min-width: 576px) {
    .zdn-step-icon {
        font-size: 0.9rem;
    }
}

/* =====================================================================
   PRODUCTION SUITE & CHARTS (OEE, TPM, Yamazumi, SMED)
   ===================================================================== */
.oee-chart-container {
    width: 100%;
    position: relative;
    border-radius: var(--zdn-radius);
    background: #ffffff;
}

/* Plotly container scaling & responsive containment */
.js-plotly-plot,
.plot-container {
    width: 100% !important;
    max-width: 100% !important;
}

.js-plotly-plot .svg-container {
    margin: 0 auto !important;
    max-width: 100% !important;
}

.js-plotly-plot svg.main-svg {
    border-radius: 8px;
    max-width: 100% !important;
}

/* Yamazumi chart outline fix (replaces outline negated by * outline: none) */
.station-selected .station-stacked-bar {
    box-shadow: 0 0 0 3px #0d6efd, 0 4px 12px rgba(13, 110, 253, 0.35) !important;
    border-color: #0d6efd !important;
}

.chart-scroll-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* SMED and Production bar labels */
.progress-stacked .progress-bar {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

/* === AI CONSULTANT UPGRADES ========================================== */
.zdn-template-chip {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--zdn-border);
    background: #fff;
    color: var(--zdn-dark);
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    user-select: none;
}

.zdn-template-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.zdn-template-chip.active {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0369a1;
    font-weight: 600;
}

.zdn-module-card {
    transition: all 0.25s ease;
    border: 1px solid var(--zdn-border);
    border-radius: 0.75rem;
}

.zdn-module-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.zdn-module-card.inactive {
    opacity: 0.5;
    background-color: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    box-shadow: none !important;
}

.zdn-roi-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
}

.zdn-roi-stat {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.zdn-print-header,
.zdn-print-footer {
    display: none;
}

/* === PRINT / PDF ONE-PAGER STYLES ==================================== */
@media print {
    /* Hide navigation, heroes, forms, footers and non-printable elements */
    nav,
    header,
    footer,
    .zdn-hero,
    .zdn-section-alt,
    #jak-to-funguje,
    #priklady,
    #faq,
    .d-print-none,
    .btn,
    .alert-dismissible,
    .modal,
    .zdn-action-buttons,
    #rychla-poptavka {
        display: none !important;
    }

    body, html {
        background: #ffffff !important;
        color: #1e293b !important;
        font-size: 10.5pt !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
    }

    #kalkulator {
        padding: 0 !important;
        margin: 0 !important;
    }

    .zdn-ai-card {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        page-break-inside: avoid;
    }

    .zdn-print-header {
        display: block !important;
        padding-bottom: 12px;
        margin-bottom: 20px;
        border-bottom: 2px solid #2563eb;
    }

    .zdn-print-footer {
        display: block !important;
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
        font-size: 9pt;
        color: #64748b;
    }

    .zdn-module-card.inactive {
        display: none !important; /* Do not print unselected modules */
    }

    .badge {
        border: 1px solid #94a3b8 !important;
        color: #0f172a !important;
        background: transparent !important;
    }
}


.zdn-workspace-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.zdn-workspace-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #475569;
    background: transparent;
    border: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
}

.zdn-workspace-tab:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

.zdn-workspace-tab.active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.zdn-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1060;
    animation: zdnFadeIn 0.2s ease-out;
}

.zdn-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1220px;
    max-width: 95vw;
    background: #ffffff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.16);
    z-index: 1065;
    display: flex;
    flex-direction: column;
    animation: zdnSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.zdn-drawer.zdn-drawer-wide {
    width: 1560px;
    max-width: 98vw;
}

@keyframes zdnFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zdnSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.zdn-drawer-header {
    padding: 1rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zdn-drawer-body {
    padding: 1.25rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.zdn-drawer-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zdn-table-row {
    transition: background-color 0.12s ease;
    cursor: pointer;
}

.zdn-table-row:hover {
    background-color: #f8fafc !important;
}

.zdn-kanban-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.zdn-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

/* === MODAL HEADERS & TYPOGRAPHY FIX ================================= */
.modal-header.bg-dark,
.modal-header.text-white,
.zdn-modal-header-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
}

.modal-header.bg-dark .modal-title,
.modal-header.text-white .modal-title,
.modal-header.text-white h1,
.modal-header.text-white h2,
.modal-header.text-white h3,
.modal-header.text-white h4,
.modal-header.text-white h5,
.modal-header.text-white h6,
.zdn-modal-header-dark .modal-title,
.zdn-modal-header-dark h5 {
    color: #ffffff !important;
}

/* === CHART SKELETON & CLS PREVENTER ================================= */
#anovaBoxPlot:empty,
#beforePlot:empty,
#afterPlot:empty,
#scatterPlot:empty,
#paretoChart:empty,
#histPlot:empty,
#qqPlot:empty,
div[id$="_varCompPlot"]:empty,
div[id$="_rChartPlot"]:empty,
div[id$="_xbarChartPlot"]:empty,
div[id$="_interChartPlot"]:empty,
div[id$="_type1ChartPlot"]:empty,
div[id$="_gaugesPlot"]:empty,
div[id$="_waterfallPlot"]:empty,
div[id$="_paretoPlot"]:empty {
    background: linear-gradient(90deg, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: zdn-skeleton-pulse 1.6s infinite ease-in-out;
    border-radius: 0.75rem;
    position: relative;
}

@keyframes zdn-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================================
   MOBILNÍ VRSTVA – globální responzivita a příjemné dotykové ovládání
   ===================================================================== */

/* Responzivní šířkové utility (Bootstrap 5 je neobsahuje, v projektu se ale používají) */
@media (min-width: 576px) {
    .w-sm-auto { width: auto !important; }
    .w-sm-100 { width: 100% !important; }
    .w-sm-50 { width: 50% !important; }
}
@media (min-width: 768px) {
    .w-md-auto { width: auto !important; }
    .w-md-100 { width: 100% !important; }
    .w-md-50 { width: 50% !important; }
}
@media (min-width: 992px) {
    .w-lg-auto { width: auto !important; }
    .w-lg-100 { width: 100% !important; }
    .w-lg-50 { width: 50% !important; }
}
@media (min-width: 1200px) {
    .w-xl-auto { width: auto !important; }
}

/* Zabránit vodorovnému posouvání celé stránky (clip na rozdíl od hidden nerozbije sticky) */
html, body {
    overflow-x: clip;
}

main img,
main video,
main svg:not(.bi) {
    max-width: 100%;
}

/* Plynulé vodorovné posouvání tabulek prstem */
.table-responsive,
.overflow-auto,
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

/* Rozbalené menu na mobilu: posouvatelné, nikdy nepřeteče displej */
@media (max-width: 991.98px) {
    #navbarMain {
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    #navbarMain .dropdown-item {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        white-space: normal;
    }
}

/* Dotyková zařízení: větší cílové plochy (min. ~44 px dle WCAG 2.5.5) */
@media (pointer: coarse) {
    .btn:not(.btn-close):not(.btn-link) {
        min-height: 44px;
    }
    .btn-sm:not(.btn-close):not(.btn-link),
    .btn-group-sm > .btn {
        min-height: 38px;
    }
    .btn-close {
        padding: 0.75rem;
    }
    .form-check-input {
        width: 1.25em;
        height: 1.25em;
    }
    .form-switch .form-check-input {
        width: 2.25em;
    }
    .dropdown-item {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .page-link {
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    /* iOS Safari přibližuje stránku při fokusu na input s písmem < 16 px */
    input.form-control,
    textarea.form-control,
    select.form-select,
    .form-control-sm,
    .form-select-sm {
        font-size: 16px !important;
    }

    /* Menší vertikální mezery sekcí */
    .zdn-section {
        padding: 3rem 0;
    }
    .zdn-section-header {
        margin-bottom: 2rem;
    }
    .zdn-hero {
        padding: 2rem 0 1.5rem;
    }

    /* Nadpisy display-* jsou na mobilu příliš velké */
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2.25rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.85rem; }
    .display-5 { font-size: 1.65rem; }
    .display-6 { font-size: 1.45rem; }

    /* Velké vnitřní okraje karet a kontejnerů zmenšit */
    .card-body.p-4,
    .card-body.p-5,
    .card.p-4,
    .card.p-5 {
        padding: 1rem !important;
    }
    .p-5 {
        padding: 1.5rem !important;
    }
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Záložky/pilulky: vodorovné posouvání místo lámání do mnoha řádků */
    .nav-tabs:not(.flex-column),
    .nav-pills:not(.flex-column):not(.navbar-nav) {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-tabs:not(.flex-column)::-webkit-scrollbar,
    .nav-pills:not(.flex-column):not(.navbar-nav)::-webkit-scrollbar {
        display: none;
    }
    .nav-tabs:not(.flex-column) .nav-link,
    .nav-pills:not(.flex-column):not(.navbar-nav) .nav-link {
        white-space: nowrap;
    }

    /* Patička: dlouhé odkazy se smí zalomit */
    .zdn-footer .text-nowrap {
        white-space: normal !important;
    }

    /* Tabulky: kompaktnější buňky */
    .table > :not(caption) > * > * {
        padding: 0.45rem 0.5rem;
    }

    /* Toasty a upozornění přes celou šířku */
    .toast-container {
        left: 0.5rem !important;
        right: 0.5rem !important;
    }
    .toast {
        width: 100%;
    }
}

/* Vlastní Blazor modaly (class="modal show d-block"): obsah se vždy vejde a posouvá */
@media (max-width: 767.98px) {
    .modal.d-block .modal-dialog:not(.modal-fullscreen):not([class*="modal-fullscreen-"]) {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    .modal.d-block .modal-content {
        max-height: calc(100dvh - 1rem);
    }
    .modal.d-block .modal-dialog[class*="modal-fullscreen-"] .modal-content {
        max-height: none;
    }
    .modal.d-block .modal-body {
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }
    .modal.d-block .modal-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .modal.d-block .modal-footer > .btn {
        flex: 1 1 auto;
        margin: 0;
    }
    .modal.d-block {
        overflow-y: auto;
    }
}






