:root {
    --elevia-primary: #FF6B52;
    --elevia-dark-bg: #0f111a;
    --elevia-card-bg: #1a1d27;
    --elevia-text-muted: #94a3b8;
    --e-primary: #FF6B52; /* Pre kompatibilitu s pricing časťou */
}

/* --- ZÁKLAD --- */
#app {
    background-color: var(--elevia-dark-bg);
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

section {
    padding: 50px 0 100px;
}

.gradient-heading {
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* --- BLOB --- */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: fixed;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, rgba(255, 107, 82, 0.15) 0%, rgba(79, 70, 229, 0.05) 100%);
    filter: blur(80px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: move 10s linear infinite, morph 10s ease-in-out infinite;
    top: -10%;
    left: 10%;
}

@keyframes move {
    0% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(20%, 10%) rotate(180deg); }
    100% { transform: translate(-10%, -10%) rotate(360deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
}

/* --- KARTY --- */
.feature-card {
    background: rgba(79, 103, 140, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
    height: 100%;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(255, 107, 82, 0.75) !important;
    transform: translateY(-10px);
    background: rgba(79, 103, 140, 0.15);
}

.e-featured {
    border: 1px solid rgba(255, 107, 82, 0.5) !important;
    position: relative;
}

.e-featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--e-primary);
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- PRICING SWITCH --- */
.e-pricing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: end;
    width: 100%;
}

.e-toggle-anchor {
    position: relative;
    display: flex;
    justify-content: end;
    align-items: center;
}

.e-switch-root {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    display: flex;
    padding: 4px;
    position: relative;
    cursor: pointer;
    width: 260px;
    z-index: 1;
}

.e-switcher-bg {
    position: absolute;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: #ffffff;
    border-radius: 50px;
    top: 4px;
    left: 4px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.e-switch-item {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.e-discount-tag::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--elevia-primary);
}

#periodSwitch { display: none; }
#periodSwitch:not(:checked) ~ .e-toggle-anchor .e-switch-item.monthly { color: #0f111a; }
#periodSwitch:checked ~ .e-toggle-anchor .e-switcher-bg { transform: translateX(100%); }
#periodSwitch:checked ~ .e-toggle-anchor .e-switch-item.yearly { color: #0f111a; }

/* --- PRICING DETAILS --- */
.e-price-box { margin: 2rem 0; }
.e-price-value { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.e-price-currency { font-size: 1.2rem; color: var(--e-primary); vertical-align: top; margin-right: 5px; }
.e-price-period { color: var(--elevia-text-muted); font-size: 0.85rem; margin-top: 10px; }

.e-feature-list { list-style: none; padding: 0; margin-bottom: 2.5rem; flex-grow: 1; }
.e-feature-list li {
    margin-bottom: .5rem; font-size: 0.95rem; display: flex; align-items: flex-start; gap: 12px; color: #e2e8f0;
}
.e-feature-list li svg {
    width: 18px; height: 18px; stroke: var(--e-primary); stroke-width: 3; flex-shrink: 0; margin-top: 3px;
}

.e-trial-badge {
    position: absolute;
    top: -15px;
    left: 3%;
    background: var(--e-primary);
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.e-trial-title { font-size: 2.5rem; font-weight: 800; color: #ffffff; line-height: 1.2; }
.e-trial-text { color: #94a3b8; font-size: 1.1rem; }

#gdprCheck:checked {
    background-color: var(--e-primary) !important;
    border-color: var(--e-primary) !important;
}

.cursor-pointer { cursor: pointer; }

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .navbar > :first-child {
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}

@media (max-width: 991px) {
    .e-trial-title { font-size: 2rem; }
}

/* Základné nastavenie tagu */
.e-discount-tag {
    position: absolute;
    top: -32px;
    left: 52%;
    background: var(--elevia-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 82, 0.2);
    z-index: 3;
}

/* --- LOGIKA ANIMÁCIE --- */

/* 1. Stav: MESAČNE (Checkbox NIE JE označený) */
#periodSwitch:not(:checked) ~ .e-toggle-anchor .e-discount-tag {
    opacity: 0.5;
    transform: translateY(5px) scale(0.9);
}

/* 2. Stav: ROČNE (Checkbox JE označený) */
#periodSwitch:checked ~ .e-toggle-anchor .e-discount-tag {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.elevia-primary-btn:hover {
    border-color: var(--elevia-primary) !important;
}

.btn:active {
    border-width: 1px !important;
}
