* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                 Roboto, sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    min-height: 100vh;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #1a1a2e;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.step-counter {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* QUIZ PAGES */
.quiz-page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-page.active {
    display: block;
    position: relative;
    z-index: 10;
}

/* Question pages: question + buttons on top, explanation text at bottom */
.quiz-page.active:has(h2) {
    display: flex;
    flex-direction: column;
}
.quiz-page.active:has(h2) h1 { order: -2; }
.quiz-page.active:has(h2) h2 { order: -1; }
.quiz-page.active:has(h2) .slider-container,
.quiz-page.active:has(h2) .next-btn,
.quiz-page.active:has(h2) .option-btn { order: 0; }
.quiz-page.active:has(h2) .quiz-explanation,
.quiz-page.active:has(h2) .subtitle { order: 1; }

.quiz-explanation {
    margin-top: 2em;
}

.quiz-page.active:has(h2) .subtitle:first-of-type {
    margin-top: 2em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

/* OPTION BUTTONS */
.option-btn {
    display: block;
    width: 100%;
    padding: 18px 24px;
    margin-bottom: 12px;
    background: #16213e;
    border: 2px solid #1a1a3e;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background: #1a2744;
    border-color: #e94560;
    transform: translateX(5px);
}

.option-btn:active {
    transform: scale(0.98);
}

/* NEXT BUTTON */
.next-btn {
    display: block;
    width: 100%;
    padding: 18px;
    margin-top: 20px;
    background: linear-gradient(135deg, #e94560, #c23152);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.next-btn:hover {
    transform: scale(1.02);
}

/* SLIDER */
.slider-container {
    text-align: center;
    padding: 20px 0;
}

.slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #1a1a3e;
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background: #e94560;
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    font-size: 2em;
    font-weight: bold;
    color: #e94560;
    margin-top: 15px;
}

/* LOADING */
.loading-animation {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #1a1a3e;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    color: #888;
    font-size: 16px;
}

/* RESULTS */
.result-big-number {
    font-size: 6em;
    font-weight: 900;
    text-align: center;
    color: #e94560;
    line-height: 1;
}

.result-subtitle {
    text-align: center;
    font-size: 1.5em;
    color: #888;
    margin-bottom: 20px;
}

.result-date {
    text-align: center;
    background: #16213e;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 18px;
}

.result-detail {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
}

/* RISK BARS */
.risk-bar {
    margin-bottom: 20px;
}

.risk-bar span {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.bar {
    width: 100%;
    height: 12px;
    background: #1a1a3e;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

/* TIP CARDS */
.tip-card {
    background: #16213e;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #e94560;
}

.tip-card h3 {
    color: #e94560;
    margin-bottom: 8px;
}

.tip-card p {
    color: #aaa;
    line-height: 1.5;
}

/* COMPARE */
.compare-card {
    background: #16213e;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.compare-card p {
    padding: 8px 0;
    border-bottom: 1px solid #1a1a3e;
    font-size: 18px;
}

/* SHARE */
.share-section {
    text-align: center;
    margin-top: 30px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: #333;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
    opacity: 0.95;
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.share-btn__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.share-btn__text {
    letter-spacing: 0.02em;
}

.share-btn--facebook {
    background: #1877f2;
}

.share-btn--facebook .share-btn__icon {
    background: #0f5dc9;
}

.share-btn--whatsapp {
    background: #25d366;
}

.share-btn--whatsapp .share-btn__icon {
    background: #1ca953;
}

/* MORE QUIZZES */
.more-quizzes {
    margin-top: 30px;
    text-align: center;
}

.more-quizzes a {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    background: #16213e;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
}

.read-more-section {
    margin-top: 36px;
    text-align: center;
}

.read-more-section h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.read-more-section > .subtitle {
    margin-bottom: 16px;
    font-size: 14px;
    color: #aaa;
}

.read-more-section > .subtitle a {
    color: #64b5f6;
    text-decoration: underline;
}

.read-more-card {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #16213e;
    border-left: 3px solid #64b5f6;
    border-radius: 10px;
    text-decoration: none;
    text-align: left;
    transition: background 0.15s ease, transform 0.15s ease;
}

.read-more-card:hover {
    background: #1a2a4e;
    transform: translateX(3px);
}

.read-more-card__title {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.read-more-card__desc {
    display: block;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}

/* ADS */
.ad-container {
    max-width: 600px;
    margin: 10px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Ad interstitial page (between questions) */
.ad-interstitial-content {
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.ad-interstitial-content .next-btn {
    text-decoration: none;
    text-align: center;
    margin-top: 24px;
    position: relative;
    z-index: 11;
    color: #fff;
}

.ad-interstitial-content .article-body {
    text-align: left;
    margin-top: 16px;
    line-height: 1.65;
}
.ad-interstitial-content .article-body p {
    margin-bottom: 1em;
    color: #bbb;
}
.ad-interstitial-content .article-body p:last-of-type {
    margin-bottom: 0;
}
.ad-interstitial-content .article-body a {
    color: #64b5f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ad-interstitial-content .article-body a:hover {
    color: #90caf9;
}

/* MOBILE */
@media (max-width: 480px) {
    h1 { font-size: 2em; }
    .result-big-number { font-size: 4em; }
    .app-container { padding: 15px; }
}
