/**
 * Einbürgerungstest Schweiz - Stylesheet
 * Kai Schnider 2025
 * Basierend auf Mockup 4: Government Official
 */

:root {
    --gov-red: #D8232A;
    --gov-red-dark: #B71C1C;
    --navy: #1A365D;
    --navy-light: #2C5282;
    --bg: #FFFFFF;
    --bg-alt: #F7F9FC;
    --border: #E2E8F0;
    --text: #2D3748;
    --text-light: #718096;
    --success: #38A169;
    --success-light: #C6F6D5;
    --error: #E53E3E;
    --error-light: #FED7D7;
    --warning: #D69E2E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--gov-red);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gov-red-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--navy);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
}

.top-bar a:hover {
    color: white;
}

.lang-select {
    display: flex;
    gap: 0.5rem;
}

.lang-select a {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.lang-select a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ========== NAVIGATION ========== */
nav {
    background: var(--bg);
    border-bottom: 4px solid var(--gov-red);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-shield {
    width: 48px;
    height: 48px;
    background: var(--gov-red);
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-shield::after {
    content: '+';
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--gov-red);
    border-bottom-color: var(--gov-red);
}

.nav-links .btn-login,
a.btn-login,
.btn-login {
    background: var(--navy);
    color: white !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 4px;
    font-weight: 600;
    border-bottom: none !important;
    transition: background 0.2s;
}

.nav-links .btn-login:hover,
a.btn-login:hover,
.btn-login:hover {
    background: var(--navy-light);
    color: white !important;
    border-bottom: none !important;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--gov-red);
    color: white;
}

.btn-primary:hover {
    background: var(--gov-red-dark);
    color: white;
}

.btn-secondary {
    background: var(--navy);
    color: white;
}

.btn-secondary:hover {
    background: var(--navy-light);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--text-light);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--border);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(216, 35, 42, 0.1);
    color: var(--gov-red);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 520px;
}

/* ========== INFO BOX ========== */
.info-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.info-box-header {
    background: var(--navy);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.info-box-content {
    padding: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gov-red);
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ========== SECTIONS ========== */
.section {
    padding: 5rem 2rem;
}

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

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========== TOPIC CARDS ========== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.topic-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--gov-red);
}

.topic-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gov-red);
}

.topic-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.topic-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========== PRICING ========== */
.pricing-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.pricing-card.featured {
    border: 2px solid var(--gov-red);
    position: relative;
}

.pricing-card.featured::before {
    content: attr(data-badge);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gov-red);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.pricing-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* ========== QUIZ ========== */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: var(--bg-alt);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gov-red);
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.quiz-category {
    background: var(--bg-alt);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gov-red);
}

.quiz-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--gov-red);
    background: rgba(216, 35, 42, 0.05);
}

.quiz-option.selected {
    border-color: var(--navy);
    background: rgba(26, 54, 93, 0.1);
}

.quiz-option.correct {
    border-color: var(--success);
    background: var(--success-light);
}

.quiz-option.incorrect {
    border-color: var(--error);
    background: var(--error-light);
}

.option-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
    color: var(--text-light);
    flex-shrink: 0;
}

.quiz-option.selected .option-letter {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.quiz-option.correct .option-letter {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.quiz-option.incorrect .option-letter {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.option-text {
    font-weight: 500;
    color: var(--text);
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
}

.quiz-feedback.correct {
    background: var(--success-light);
    border: 1px solid var(--success);
}

.quiz-feedback.incorrect {
    background: var(--error-light);
    border: 1px solid var(--error);
}

.quiz-feedback h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quiz-feedback.correct h4 {
    color: var(--success);
}

.quiz-feedback.incorrect h4 {
    color: var(--error);
}

/* ========== RESULT ========== */
.result-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.result-icon.passed {
    background: var(--success-light);
}

.result-icon.passed svg {
    color: var(--success);
    width: 50px;
    height: 50px;
}

.result-icon.failed {
    background: var(--error-light);
}

.result-icon.failed svg {
    color: var(--error);
    width: 50px;
    height: 50px;
}

.result-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ========== PAYWALL MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(216, 35, 42, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gov-red);
}

.modal h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.modal p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.modal-features {
    text-align: left;
    margin-bottom: 2rem;
}

.modal-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text);
}

.modal-features li svg {
    color: var(--success);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gov-red);
    box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.1);
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ========== ALERTS ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: #276749;
}

.alert-error {
    background: var(--error-light);
    border: 1px solid var(--error);
    color: #C53030;
}

.alert-warning {
    background: #FEFCBF;
    border: 1px solid var(--warning);
    color: #975A16;
}

/* ========== FOOTER ========== */
footer {
    background: var(--navy);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
}

footer h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.5);
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255,255,255,0.8);
}

footer a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .progress-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ========== USER STATUS BADGE ========== */
.user-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--success);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-badge svg {
    width: 14px;
    height: 14px;
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== MOBILE QUIZ OPTIMIERUNG ========== */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem;
    }
    
    .quiz-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .quiz-progress {
        width: 100%;
        order: 1;
    }
    
    .progress-bar {
        flex: 1;
        height: 6px;
    }
    
    .progress-text {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .quiz-category {
        order: 2;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .quiz-question {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .quiz-options {
        gap: 0.6rem;
    }
    
    .quiz-option {
        padding: 0.85rem;
        gap: 0.75rem;
    }
    
    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .option-text {
        font-size: 0.95rem;
    }
    
    .quiz-actions {
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .quiz-actions .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .quiz-feedback {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .quiz-feedback h4 {
        font-size: 0.9rem;
    }
    
    .quiz-feedback p {
        font-size: 0.85rem;
    }
    
    /* Navigation Mobile */
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    .user-email {
        display: none;
    }
    
    .user-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .quiz-question {
        font-size: 1.05rem;
    }
    
    .quiz-option {
        padding: 0.7rem;
    }
    
    .option-letter {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .quiz-actions {
        flex-direction: row;
    }
    
    .quiz-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .quiz-actions .btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ========== STICKY BANNER ========== */
.sticky-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.sticky-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sticky-banner-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sticky-banner-counter {
    background: var(--gov-red);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sticky-banner .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.sticky-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sticky-banner-close:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .sticky-banner {
        padding: 0.6rem;
    }
    
    .sticky-banner-content {
        gap: 0.75rem;
    }
    
    .sticky-banner-text {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .sticky-banner-counter {
        font-size: 0.7rem;
    }
}

/* ========== PROGRESS WARNING ========== */
.progress-warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-warning-icon {
    background: #F59E0B;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-warning-text {
    flex: 1;
    min-width: 200px;
}

.progress-warning-text strong {
    color: #92400E;
    display: block;
    margin-bottom: 0.25rem;
}

.progress-warning-text span {
    color: #B45309;
    font-size: 0.9rem;
}

.progress-warning .btn {
    white-space: nowrap;
}

/* ========== PAYWALL WARNING POPUP ========== */
.paywall-warning {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.paywall-warning-content {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 90vw;
}

.paywall-warning-content svg {
    color: #D97706;
    flex-shrink: 0;
}

.paywall-warning-content span {
    color: #92400E;
    font-weight: 500;
}

.paywall-warning-content strong {
    color: #B45309;
}

.paywall-warning-content .btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.warning-close {
    background: none;
    border: none;
    color: #92400E;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}

.warning-close:hover {
    color: #78350F;
}

@media (max-width: 600px) {
    .paywall-warning {
        top: auto;
        bottom: 80px;
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
    }
    
    .paywall-warning-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}
