:root {
    --primary-blue: #1e3a8a;
    --deep-blue: #0f172a;
    --gold: #d4af37;
    --gold-light: #f1c40f;
    --gold-dark: #b8860b;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.3);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.4);
    --glass: rgba(255, 255, 255, 0.92);
    --danger-red: #fee2e2;
    --success-green: #dcfce7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--deep-blue);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

.premium-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% -10%, #254b9e 0%, #0f172a 80%);
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Progress */
.progress-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    padding: 12px 0;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-info {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-bg {
    width: 85%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Hero & Headlines */
.main-headline {
    font-size: 2.8rem;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 2rem;
    text-shadow: var(--gold-glow);
}

.gold-text {
    background: linear-gradient(135deg, #f1c40f 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.premium-badge {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #000;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Quiz Steps Visibility */
.quiz-step {
    display: none;
}

#step1 {
    display: block;
}

.step-title {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.options {
    display: grid;
    gap: 15px;
}

.option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 20px;
    border-radius: 18px;
    color: var(--white);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.option:hover {
    transform: translateX(8px);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Cards & Sections */
.premium-card {
    background: var(--glass);
    border-radius: 24px;
    padding: 3rem 1.75rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.result-box {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-light), var(--gold-dark));
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    font-weight: 800;
}

.profile-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 12px 0;
    line-height: 1.1;
}

.profile-desc {
    font-weight: 700;
    color: #475569;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.result-text {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.next-step-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed var(--gold);
    position: relative;
}

/* Confirmation Box */
.confirmation-container {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--gold);
    padding: 35px 25px;
    border-radius: 24px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.confirmation-title {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.confirmation-microcopy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Ebooks Grid */
.recommendation-zone {
    background: #ffffff;
    margin-top: 2rem;
    border-radius: 30px;
    padding: 3.5rem 1.5rem;
    box-shadow: var(--shadow-premium);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--deep-blue);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.ebooks-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 3.5rem;
}

.ebook-item {
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px;
    border-radius: 16px;
    background: white;
}

.ebook-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ebook-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.ebook-img {
    width: 100%;
    display: block;
}

.rec-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: var(--gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 6px 10px;
    width: 110%;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* HIGHLIGHT Premium Logic */
.highlighted-ebook {
    transform: scale(1.1) translateY(-10px);
    z-index: 10;
}

.highlighted-ebook .ebook-img-wrapper {
    border: 3px solid var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.5);
}

.highlighted-ebook .rec-badge {
    display: block;
}

.ebook-item h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.ebook-item h3 {
    font-size: 0.95rem;
    line-height: 1.1;
    color: var(--deep-blue);
}

/* Contrast Vision */
.contrast-vision {
    margin: 4rem 0;
    text-align: left;
}

.contrast-title {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--deep-blue);
}

.contrast-grid {
    display: grid;
    gap: 15px;
}

.contrast-item {
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.contrast-item.negative {
    background: var(--danger-red);
    color: #991b1b;
}

.contrast-item.positive {
    background: var(--success-green);
    color: #166534;
    border: 2px solid #bbf7d0;
}

.contrast-item .icon {
    font-size: 1.5rem;
}

/* Pricing Container */
.value-summary {
    background: #f8fafc;
    padding: 35px 25px;
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.investment-label {
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

.price-container {
    animation: fadeInScale 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.old-price {
    text-decoration: line-through;
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 500;
}

.new-price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 5px 0;
    color: var(--primary-blue);
}

.new-price .currency {
    font-size: 1.6rem;
    font-weight: 900;
    margin-top: 15px;
    margin-right: 4px;
}

.new-price .val {
    font-size: 5.5rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -2px;
}

.price-disclaimer {
    font-size: 1rem;
    font-weight: 800;
    color: #16a34a;
}

/* Trust & Buttons */
.btn {
    width: 100%;
    padding: 22px;
    border: none;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Outfit';
    letter-spacing: 0.05em;
}

.premium-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
    background-size: 200% auto;
    color: #000;
}

.premium-btn:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
}

.confirm-btn {
    background: var(--success-green);
    color: #166534;
}

.premium-buy-btn {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
    background-size: 200% auto;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.4);
}

.premium-buy-btn:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.5);
}

.redo-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.9rem;
}

/* Loader Sophisticated */
.analyzing-bg {
    background: radial-gradient(circle at 50% 50%, #254b9e 0%, #0f172a 100%);
}

.modern-loader {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto 30px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Shimmer Effect */
.loader-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Final Footer */
.guarantee-footer {
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 3rem;
    text-align: center;
}

.shield-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.quote-final {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin-top: 20px;
}

/* Trust Signals */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* Helpers */
.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .main-headline {
        font-size: 2.2rem;
    }

    .new-price .val {
        font-size: 4rem;
    }

    .ebooks-premium-grid {
        gap: 10px;
    }

    .container {
        padding: 3rem 1rem;
    }
}