:root {
    /* New Palette: Mint & Coral */
    --primary: #2dd4bf;
    /* Mint Green */
    --primary-dark: #0f766e;
    --secondary: #fb7185;
    /* Warm Coral/Rose */
    --secondary-dark: #e11d48;

    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;

    --dark: #334155;
    --gray: #64748b;
    --light: #f0fdfa;
    /* Very light mint tint */
    --white: #ffffff;

    /* Elegant Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(45, 212, 191, 0.1), 0 4px 6px -2px rgba(45, 212, 191, 0.05);
    /* Minty shadow */
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    /* Body font */
    background-color: #f0f9ff;
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: radial-gradient(#ccfbf1 1px, transparent 1px);
    background-size: 20px 20px;
}

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    /* Heading font */
    font-weight: 700;
}

.app-container {
    flex: 1;
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* CARDS */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hidden {
    display: none;
}

/* Hero Content */
.hero-image {
    display: flex;
    justify-content: center;
    padding-top: 2.5rem;
    margin-bottom: -1rem;
}

/* Neon Gradient Ring Wrapper */
.neon-wrapper {
    position: relative;
    width: 230px;
    height: 230px;
    padding: 4px;
    /* Thickness of the gradient ring */
    border-radius: 50%;

    /* Neon Blue (#06b6d4) to Bright Orange (#f97316) Gradient */
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 40%, #f97316 100%);

    /* Glow Effect */
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6), 0 0 10px rgba(249, 115, 22, 0.4);

    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 50%;
    border: 4px solid var(--white);
    /* Inner white separator */
    background: var(--white);
    display: block;
}

/* Hero Content Text */
.content {
    padding: 2rem;
    text-align: center;
}

.hero-title {
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

.highlight-text {
    color: var(--primary-dark);
    /* Using the Teal/Green from palette */
    display: block;
    /* Breaks line if needed, or inline */
}

.hero-subtitle {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-proof-text {
    font-size: 0.75rem !important;
    color: var(--gray);
    /* Softer gray per reference style usually */
    margin-top: 1.5rem !important;
    font-weight: 500;
    opacity: 0.8;
}

/* Specific Orange Button for Start Screen to match reference */
.start-quiz-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39) !important;
}

.start-quiz-btn:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.23) !important;
    transform: translateY(-2px);
}

/* BUTTONS */
.primary-btn,
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 100%);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 14px 0 rgba(45, 212, 191, 0.39);
}

.primary-btn:hover,
.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.23);
}

/* QUIZ INTERFACE NEW */
.quiz-container {
    padding: 2rem 1.5rem !important;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 10px;
    background: #f1f5f9;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    /* Teal */
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.question-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #2dd4bf;
    /* Teal Circle */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 6px rgba(45, 212, 191, 0.2);
}

.question-container h3 {
    font-size: 1.3rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Radio Style Option Buttons */
.option-btn {
    background: var(--white);
    border: 2px solid #e2e8f0;
    padding: 1rem 1.2rem;
    border-radius: 50px;
    /* Fully rounded pill shape */
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: var(--gray);
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    /* Circle for Radio look */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Center dot for radio selection */
.custom-checkbox::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--primary);
    background: #f0fdfa;
}

.option-btn.selected {
    border-color: var(--primary);
    background: rgba(45, 212, 191, 0.1);
    color: var(--primary-dark);
}

.option-btn.selected .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.option-btn.selected .custom-checkbox::after {
    opacity: 1;
    transform: scale(1);
}

.btn-text {
    flex: 1;
    text-align: left;
    /* Aligned left as typical for radio lists */
}

/* Tip Box */
.tip-box {
    background: #fff7ed;
    /* Light Orange/Beige */
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #9a3412;
    animation: fadeIn 0.5s ease;
}

.tip-icon {
    font-size: 1.2rem;
}

/* Next Button */
.next-btn {
    background: #fdba74;
    /* Peach/Soft Orange */
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
}

.next-btn:hover:not(:disabled) {
    background: #fb923c;
}

.next-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hourGlassSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

@keyframes hourGlassTrue {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(180deg);
    }
}

/* RESULTS NEW DESIGN */
.results-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Alert Section */
.alert-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.alert-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.2);
}

.alert-title {
    color: var(--dark);
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.alert-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Education Card */
.education-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.education-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-list {
    list-style: none;
    padding: 0;
}

.danger-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.danger-list li::before {
    content: '•';
    color: var(--danger);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Offer Card (Green) */
.offer-card {
    background: linear-gradient(180deg, #2dd4bf 0%, #0f766e 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(15, 118, 110, 0.3);
    position: relative;
    overflow: hidden;
}

.offer-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: spin 3s linear infinite;
}

.offer-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.offer-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: left;
    line-height: 1.2;
}

.b-icon {
    font-size: 1.2rem;
}

/* Pain Killer Box */
.pain-killer-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CTA Area */
.final-cta-btn {
    display: block;
    background: #f97316;
    /* Bright Orange */
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #c2410c;
    /* 3D effect */
    transition: all 0.2s;
    margin-bottom: 0.8rem;
}

.final-cta-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.crypto-text {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Footer Trust */
.trust-footer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badge {
    background: #f1f5f9;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
}

.restart-area {
    text-align: center;
    margin-top: 1.5rem;
}

.restart-area a {
    color: var(--gray);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (min-width: 768px) {

    /* Lista vertical mantida, agora centralizada */
    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-btn {
        text-align: left;
        padding: 1.2rem;
    }
}

/* HOURGLASS ANIMATION */
.hourglass {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
}

.hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 24px solid var(--primary);
    border-color: var(--primary) transparent var(--primary) transparent;
    animation: hourGlassSpin 1.2s infinite;
}

/* LOADING SCREEN CENTERED */
#loading-screen {
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    /* Ensure vertical space for centering */
    background: transparent !important;
    /* Remove card bg */
    box-shadow: none !important;
    /* Remove card shadow */
    /* Remove card border */
}

#loading-screen.hidden {
    display: none !important;
}