/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Germany Flag Colors */
    --black: #1a1a1a;
    --black-light: #333333;
    --red: #dd0000;
    --red-dark: #b30000;
    --red-light: #ff3333;
    --gold: #ffcc00;
    --gold-dark: #e6b800;
    --gold-light: #ffd633;

    /* Light Theme Colors */
    --white: #ffffff;
    --white-off: #f8f9fa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Theme */
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --text: #1a1a1a;
    --text-muted: #6b7280;

    /* Gradients */
    --gradient-germany: linear-gradient(180deg, #1a1a1a 0%, #dd0000 50%, #ffcc00 100%);
    --gradient-red-gold: linear-gradient(135deg, #dd0000 0%, #ffcc00 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Background Effects ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(221, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(255, 204, 0, 0.05) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

.bg-blur-circle {
    display: none;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0 auto;
    padding-left: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    white-space: nowrap;
}

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

.nav-cta {
    background: var(--red);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(221, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--black);
    transition: 0.3s;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(221, 0, 0, 0.25);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--black);
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.gradient-text {
    background: var(--gradient-red-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
    flex-wrap: wrap;
}

.hero-highlight {
    display: flex;
    gap: 24px;
    animation: fadeInUp 0.6s ease 0.4s backwards;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.highlight-icon {
    font-size: 1.2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.hero-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: floatCard 3s ease-in-out infinite;
}

.hero-card:nth-child(1) {
    border-left: 4px solid var(--black);
}

.hero-card:nth-child(2) {
    border-left: 4px solid var(--red);
}

.hero-card:nth-child(3) {
    border-left: 4px solid var(--gold);
}

.card-1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 100px;
    right: -80px;
    animation-delay: -1s;
}

.card-3 {
    top: 200px;
    right: 20px;
    animation-delay: -2s;
}

.card-icon {
    font-size: 1.5rem;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--black);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Roadmap ===== */
.roadmap {
    background: var(--gray-50);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.roadmap-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.roadmap-item::before {
    content: attr(data-step);
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--red);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.roadmap-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.roadmap-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.roadmap-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--black);
}

.roadmap-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Visa Section ===== */
.visa-section {
    background: var(--white);
}

.visa-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.visa-content .section-badge {
    display: inline-block;
}

.visa-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.visa-text {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.visa-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.visa-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visa-card-header {
    background: var(--black);
    padding: 32px;
    text-align: center;
    color: white;
}

.visa-price {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.visa-type {
    font-size: 1.1rem;
    opacity: 0.9;
}

.visa-card-body {
    padding: 32px;
}

.visa-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--black);
}

.visa-card-body ul {
    list-style: none;
    margin-bottom: 24px;
}

.visa-card-body li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.visa-card-body li::before {
    content: "✓ ";
    color: var(--red);
    font-weight: bold;
}

.visa-card-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 206, 0, 0.1) 0%, rgba(221, 0, 49, 0.05) 100%);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Language Cards ===== */
.lang-section {
    background: var(--gray-50);
}

.lang-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.lang-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow);
}

.lang-card.featured {
    border-color: var(--red);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.lang-card-header {
    padding: 40px 32px;
    text-align: center;
    color: white;
}

.lang-card-header.telc {
    background: var(--black);
}

.lang-card-header.testdaf {
    background: var(--red);
}

.lang-logo {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.lang-level {
    font-size: 1.2rem;
    opacity: 0.9;
}

.lang-card-body {
    padding: 32px;
}

.lang-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: center;
}

.lang-details {
    margin-bottom: 24px;
}

.lang-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
    color: var(--black);
}

/* ===== Courses ===== */
.courses-section {
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.courses-grid.courses-single {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.course-card.featured {
    border: 2px solid var(--red);
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.course-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.feature-item {
    font-size: 0.95rem;
    color: var(--text);
    padding: 8px 0;
}

.course-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.course-card.popular {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.2);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.course-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.course-emoji {
    font-size: 4rem;
}

.course-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.course-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--black);
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

.course-price small {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Testimonials ===== */
/* ===== Germany Benefits Section ===== */
.germany-benefits-section {
    background: var(--gray-50);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Why Us Section ===== */
.why-us-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef7f7 0%, #fff5f5 100%);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.why-us-card {
    background: white;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
}

.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(220, 53, 69, 0.15);
    border-color: var(--red);
}

.why-us-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.why-us-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.why-us-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.why-us-message {
    text-align: center;
    padding: 30px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--red);
}

.why-us-message p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 10px;
}

.why-us-message p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-item {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-stats {
        padding: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-card {
    background: var(--black);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--black) 33.33%, var(--red) 33.33%, var(--red) 66.66%, var(--gold) 66.66%);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-card p {
    opacity: 0.8;
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-form input {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.cta-form .btn {
    min-width: 250px;
    background: var(--gold);
    color: var(--black);
}

.cta-form .btn:hover {
    background: var(--gold-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    padding: 80px 0 40px;
    color: white;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--black) 33.33%, var(--red) 33.33%, var(--red) 66.66%, var(--gold) 66.66%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer .logo-text {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 16px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }

    .hero {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visa-grid {
        grid-template-columns: 1fr;
    }

    .visa-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .lang-cards {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form input,
    .cta-form .btn {
        width: 100%;
        min-width: unset;
    }
}

/* ===== Quiz Section ===== */
.quiz-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-settings {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    animation: slideUp 0.6s ease;
}

.quiz-settings:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.quiz-header-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

.quiz-settings h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--black);
    background: var(--gradient-red-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quiz-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.setting-item {
    text-align: left;
}

.setting-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.setting-item select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: border-color 0.3s;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--red);
}

/* Quiz Area */
.quiz-area {
    animation: fadeInUp 0.4s ease;
}

.quiz-progress {
    margin-bottom: 24px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--black);
}

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

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

.quiz-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease;
}

.quiz-word {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: pulse 0.3s ease;
}

.word-text {
    font-size: inherit;
}

.level-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    animation: bounce 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quiz-hint {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    min-height: 24px;
    font-style: italic;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.quiz-option {
    padding: 20px 24px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(221, 0, 0, 0.1), transparent);
    transition: left 0.5s;
}

.quiz-option:hover:not(:disabled)::before {
    left: 100%;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--red);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(221, 0, 0, 0.15);
}

.quiz-option:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.quiz-option.correct {
    border-color: #22c55e;
    background: #22c55e;
    color: white;
    font-weight: 700;
    animation: correctPop 0.4s ease;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

@keyframes correctPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.quiz-option.wrong {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    animation: shake 0.4s ease;
}

.quiz-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.quiz-feedback {
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.quiz-feedback.correct {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.quiz-feedback.wrong {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.quiz-actions {
    margin-top: 24px;
    text-align: center;
}

/* Quiz Results */
.quiz-results {
    animation: fadeInUp 0.4s ease;
}

.results-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.results-card h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 24px;
}

.results-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 16px;
}

.results-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.5rem;
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Quiz Responsive */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-word {
        font-size: 1.5rem;
    }

    .results-stats {
        flex-direction: column;
        gap: 16px;
    }

    .results-actions {
        flex-direction: column;
    }

    .quiz-buttons {
        flex-direction: column;
    }
}

/* Quiz Buttons Container */
.quiz-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

#quit-quiz {
    transition: color 0.3s;
}

#quit-quiz:hover {
    color: var(--red) !important;
}

/* Failed Words Button */
.failed-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.failed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--red);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Premium styling for quiz section */
.quiz-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 33.33%, var(--red) 33.33%, var(--red) 66.66%, var(--gold) 66.66%);
    border-radius: 24px 24px 0 0;
}

.quiz-settings {
    position: relative;
}

/* Quiz card premium border */
.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 33.33%, var(--red) 33.33%, var(--red) 66.66%, var(--gold) 66.66%);
    border-radius: 24px 24px 0 0;
}

.quiz-card {
    position: relative;
}

/* Results card premium styling */
.results-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 33.33%, var(--red) 33.33%, var(--red) 66.66%, var(--gold) 66.66%);
    border-radius: 24px 24px 0 0;
}

.results-card {
    position: relative;
}

/* ===== TestDaF Study Hub Section ===== */
.testdaf-hub-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.testdaf-hub-section .section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* Stats Bar */
.testdaf-stats-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 24px 32px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.stat-icon {
    font-size: 1.8rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Skills Grid */
.testdaf-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* Skill Module Card */
.skill-module {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.skill-module:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.skill-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.lesen-module::before {
    background: linear-gradient(90deg, #4CAF50, #81C784);
}

.hoeren-module::before {
    background: linear-gradient(90deg, #2196F3, #64B5F6);
}

.schreiben-module::before {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.sprechen-module::before {
    background: linear-gradient(90deg, #E91E63, #F48FB1);
}

.skill-module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.skill-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.skill-icon-wrapper.lesen {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(129, 199, 132, 0.25));
}

.skill-icon-wrapper.hoeren {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(100, 181, 246, 0.25));
}

.skill-icon-wrapper.schreiben {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 183, 77, 0.25));
}

.skill-icon-wrapper.sprechen {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(244, 143, 177, 0.25));
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.skill-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.skill-difficulty {
    padding: 6px 12px;
    background: var(--gray-50);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.skill-module-body {
    padding: 20px 24px;
}

/* Task Items */
.skill-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
    transition: all 0.2s;
}

.task-item:hover {
    background: rgba(221, 0, 49, 0.05);
}

.task-number {
    width: 28px;
    height: 28px;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.task-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.task-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Skill Tips */
.skill-tips {
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 206, 0, 0.08), rgba(255, 255, 255, 0.5));
    border-radius: 12px;
    border-left: 3px solid var(--gold);
}

.skill-tips h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.skill-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-tips li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.skill-tips li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.skill-module-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--gray-50);
}

.btn-skill {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    color: var(--white);
}

.lesen-btn {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.lesen-btn:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    transform: scale(1.02);
}

.hoeren-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.hoeren-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: scale(1.02);
}

.schreiben-btn {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.schreiben-btn:hover {
    background: linear-gradient(135deg, #F57C00, #EF6C00);
    transform: scale(1.02);
}

.sprechen-btn {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.sprechen-btn:hover {
    background: linear-gradient(135deg, #C2185B, #AD1457);
    transform: scale(1.02);
}

/* TDN Levels Info */
.testdaf-levels-info {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 48px;
    text-align: center;
}

.levels-title {
    font-size: 1.3rem;
    color: var(--black);
    margin: 0 0 24px 0;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.level-card {
    padding: 20px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.level-card:hover {
    transform: scale(1.03);
}

.level-card.tdn3 {
    border-color: rgba(255, 152, 0, 0.3);
}

.level-card.tdn4 {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.08);
}

.level-card.tdn5 {
    border-color: rgba(33, 150, 243, 0.3);
    background: rgba(33, 150, 243, 0.08);
}

.level-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tdn3 .level-badge {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
}

.tdn4 .level-badge {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
}

.tdn5 .level-badge {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    color: white;
}

.level-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 8px 0;
}

.level-cefr {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.levels-note {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: inline-block;
}

/* Resources Grid */
.testdaf-resources {
    text-align: center;
}

.resources-title {
    font-size: 1.3rem;
    color: var(--black);
    margin: 0 0 24px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all 0.3s;
}

.resource-card:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.resource-card.internal {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 206, 0, 0.05), var(--white));
}

.resource-icon {
    font-size: 2rem;
}

.resource-name {
    font-weight: 700;
    color: var(--text-dark);
}

.resource-type {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive for TestDaF Hub */
@media (max-width: 1024px) {
    .testdaf-skills-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testdaf-stats-bar {
        gap: 20px;
        padding: 20px;
    }

    .stat-item {
        min-width: 80px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .skill-module-header {
        flex-wrap: wrap;
    }

    .skill-difficulty {
        margin-left: auto;
    }
}

/* ===== TELC Study Section ===== */
.telc-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.telc-section .section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* Premium Banner */
.premium-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}

.premium-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.premium-icon {
    font-size: 1.8rem;
}

.premium-text h4 {
    color: var(--gold);
    margin: 0;
    font-size: 1rem;
}

.premium-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 0;
    font-size: 0.85rem;
}

.btn-premium {
    background: linear-gradient(135deg, var(--gold) 0%, #e6b800 100%);
    color: var(--black);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 206, 0, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* TELC Exam Grid */
.telc-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.telc-exam-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.telc-exam-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.telc-exam-card.locked {
    opacity: 0.7;
}

.telc-exam-card.free {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 206, 0, 0.05) 0%, var(--white) 100%);
}

.exam-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.free-badge {
    background: linear-gradient(135deg, var(--gold), #e6b800);
    color: var(--black);
}

.premium-badge {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.unlocked-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.telc-exam-card h4 {
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.telc-exam-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.exam-sections {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.exam-sections span {
    padding: 4px 10px;
    background: var(--gray-50);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.telc-exam-card .btn {
    width: 100%;
}

.telc-exam-card .btn.locked {
    background: var(--gray-50);
    color: var(--text-muted);
    cursor: pointer;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Premium Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-50);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--red);
    color: white;
}

.modal-header {
    text-align: center;
    padding: 32px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.price-tag {
    text-align: center;
    margin-bottom: 24px;
}

.price-tag .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
}

.price-tag .period {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.premium-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.premium-features li:last-child {
    border-bottom: none;
}

.btn-full {
    width: 100%;
}

.modal-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 16px 0 0;
}

/* TELC Section View */
.section-selection {
    text-align: center;
    padding: 40px 0;
}

.section-selection h3 {
    margin: 16px 0 8px;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.section-selection p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.section-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.section-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.section-btn:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.section-icon {
    font-size: 1.5rem;
}

.section-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-back {
    background: var(--gray-50);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--border);
}

/* TELC Section Content */
.telc-section .section-header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-instructions {
    padding: 16px;
    background: rgba(255, 206, 0, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.matching-section,
.statements-section,
.truefalse-section {
    display: grid;
    gap: 24px;
}

.text-area h4,
.paragraphs-area h4,
.answer-area h4,
.questions-area h4,
.topic-header h4 {
    margin: 0 0 12px;
    color: var(--text-dark);
    font-size: 1rem;
}

.exam-text {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.paragraph-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.paragraph-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.paragraph-id {
    width: 32px;
    height: 32px;
    background: var(--black);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.paragraph-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.answer-slot {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.answer-slot label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.answer-slot select {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
}

.answer-slot select:focus {
    border-color: var(--red);
    outline: none;
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.question-number {
    width: 32px;
    height: 32px;
    background: var(--red);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.answer-options {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.answer-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.answer-options.rfx {
    gap: 12px;
}

.section-actions {
    margin-top: 24px;
    text-align: center;
}

/* Results View */
.results-view {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 0;
}

.results-header {
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.results-header.excellent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.2));
}

.results-header.good {
    background: linear-gradient(135deg, rgba(255, 206, 0, 0.1), rgba(234, 179, 8, 0.2));
}

.results-header.poor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.2));
}

.results-header h3 {
    margin: 0 0 20px;
    color: var(--text-dark);
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.score-percent {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.results-message {
    margin: 16px 0 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.results-details h4 {
    margin: 0 0 16px;
    color: var(--text-dark);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.result-item.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.result-item.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.result-id {
    font-weight: 700;
    color: var(--text-dark);
}

.result-status {
    font-size: 1.2rem;
}

.result-answer {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Responsive for TELC */
@media (max-width: 768px) {
    .premium-banner {
        flex-direction: column;
        text-align: center;
    }

    .premium-info {
        flex-direction: column;
    }

    .answer-options {
        flex-direction: column;
        gap: 8px;
        margin-left: 0;
        margin-top: 12px;
    }

    .question-item {
        flex-direction: column;
    }

    .results-actions {
        flex-direction: column;
    }
}

/* Explanation Box for Quiz Results */
.explanation-box {
    background-color: #fffbeb;
    /* Light yellow */
    border-left: 4px solid #f59e0b;
    /* Amber border */
    color: #92400e;
    /* Dark amber text */
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.5;
}

.explanation-box strong {
    color: #b45309;
}

/* Exam Modal Styles */
.exam-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

.exam-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.exam-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.exam-section {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 16px;
}

.exam-section h3 {
    color: var(--red);
    margin: 0 0 8px;
}

.exam-section h4 {
    color: var(--text-muted);
    margin: 0 0 16px;
    font-weight: 500;
}

.exam-section .instructions {
    background: rgba(255, 206, 0, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 3px solid var(--gold);
}

.reading-text {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    line-height: 1.8;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.paragraph-options {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.paragraph-options ul {
    padding-left: 20px;
    margin: 0;
}

.paragraph-options li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.matching-answers,
.truefalse-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.answer-row label {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.answer-row select {
    min-width: 80px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.answer-row select:focus {
    border-color: var(--red);
    outline: none;
}

.radio-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.exam-actions {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Exam Results Styles */
.exam-results {
    text-align: center;
}

.exam-results .score-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: baseline;
    margin: 20px 0;
}

.exam-results .score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.exam-results .percentage {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.exam-results.passed .score {
    color: #10b981;
}

.exam-results.failed .score {
    color: #ef4444;
}

.result-message {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.detailed-results {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
}

.detailed-results h3 {
    margin: 0 0 16px;
    text-align: center;
}

.result-item {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.result-item.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.result-item.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-badge {
    background: var(--red);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-icon {
    margin-left: auto;
    font-size: 1.2rem;
}

.result-details p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.result-details .explanation {
    background: rgba(255, 206, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
}

/* ===== Auth System Styles ===== */

/* Auth Buttons in Navbar */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.btn-auth-login {
    background: transparent;
    color: var(--gray-700);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.btn-auth-login:hover {
    background: var(--gray-100);
    color: var(--red);
}

.btn-auth-register {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(221, 0, 0, 0.3);
}

.btn-auth-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 0, 0, 0.4);
}

/* User Menu in Navbar */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text);
}

.user-menu-btn:hover {
    border-color: var(--red);
    background: var(--white);
}

.user-avatar {
    font-size: 1.2rem;
}

.premium-badge {
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-item.logout {
    color: var(--red);
}

.dropdown-item.logout:hover {
    background: rgba(221, 0, 0, 0.1);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

/* Auth Modals */
.auth-modal .modal-content {
    max-width: 420px;
}

.auth-modal-content {
    padding: 0;
}

.auth-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
}

.auth-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.auth-modal-header h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 8px;
}

.auth-modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    padding: 24px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(221, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.auth-error {
    background: rgba(221, 0, 0, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-footer {
    text-align: center;
    padding: 20px 32px;
    background: var(--gray-50);
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: var(--text);
    border: 2px solid var(--gray-200);
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-google:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-icon {
    flex-shrink: 0;
}

.auth-demo-info {
    padding: 16px 32px 24px;
    background: rgba(255, 204, 0, 0.1);
    border-top: 1px dashed var(--gold);
    text-align: center;
}

.auth-demo-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0;
}

.auth-demo-info code {
    background: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--black);
}

/* Success Toast */
.success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--black);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
    font-weight: 500;
}

.success-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile Responsive Auth */
@media (max-width: 1024px) {

    .auth-buttons,
    .user-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-modal .modal-content {
        margin: 20px;
        max-width: none;
    }

    .auth-form {
        padding: 20px 24px;
    }

    .auth-modal-header {
        padding: 24px 24px 20px;
    }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-icon {
    font-size: 2rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-text p:first-child {
    color: var(--black);
    margin-bottom: 4px;
}

.cookie-text a {
    color: var(--red);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
    }
}

/* ===== reCAPTCHA Badge - Hide (allowed by Google policy) ===== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}