/*
 * QuizTv Main Stylesheet
 * Premium modern design system inspired by glassmorphism, responsive grids, and subtle micro-animations.
 */

/* 1. Global System Configuration & Theme Tokens */
:root {
    --primary: #0EA5E9;
    --primary-light: #F0F9FF;
    --primary-gradient: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #3b82f6 100%);
    --success: #10B981;
    --success-light: #ECFDF5;
    --error: #EF4444;
    --error-light: #FEF2F2;
    --text: #0F172A;
    --text-muted: #64748B;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Base Styling Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

/* 3. Navigation Bar Layout */
.nav-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

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

.logo-text {
    font-size: 20px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
}

.admin-badge {
    background-color: var(--primary-light);
    color: var(--primary) !important;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.user-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

.nav-welcome {
    font-size: 14px;
    color: var(--text-muted);
}

/* Mobile navigation toggler */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

/* 4. Hero & Intro Banners */
.hero-section {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 72px 24px;
    text-align: center;
    border-radius: 10px;
}

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

.hero-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.hero-title span {
    background: linear-gradient(135deg, #FFDF40 0%, #FFA800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
}

/* 5. General Layout Grids & Cards */
.main-content {
    flex: 1;
    padding: 40px 24px;
}

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

.section-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Category Grid list */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.category-card-icon {
    font-size: 28px;
}

.category-card-name {
    font-weight: 600;
    font-size: 15px;
}

/* Quiz Card Grid list */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.quiz-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.quiz-card-banner {
    position: relative;
    height: 160px;
    background-color: var(--primary-light);
}

.quiz-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ECE9F2 0%, #D4CEE7 100%);
}

.placeholder-icon {
    font-size: 48px;
}

.quiz-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.difficulty-easy { background-color: var(--success); }
.difficulty-medium { background-color: #F59E0B; }
.difficulty-hard { background-color: var(--error); }

.quiz-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-card-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.quiz-card-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.quiz-card-description {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 16px;
}

.quiz-card-meta {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.meta-item {
    font-size: 13px;
    color: var(--text-muted);
}

.quiz-card-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background-color: #FAFAFA;
}

/* 6. Buttons & Interactive Controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

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

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(108, 59, 255, 0.25);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-danger {
    background-color: var(--error);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #DC2626;
}

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

.btn-success:hover {
    background-color: #16A34A;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 7. Form Controls & Styling */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.col-6 {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control-file {
    display: block;
    width: 100%;
    padding: 8px 0;
}

.form-help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-label-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* 8. Quiz Play Interface & Overlays */
.play-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.play-container {
    width: 100%;
    max-width: 680px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.progress-container {
    height: 6px;
    background-color: var(--border);
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-status-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FAFAFA;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.round-badge {
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.question-counter {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.score-display {
    font-size: 14px;
}

.quiz-card-container {
    padding: 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-play-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-play-question {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.option-btn.option-correct {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    color: var(--white) !important;
}

.option-btn.option-wrong {
    background-color: var(--error) !important;
    border-color: var(--error) !important;
    color: var(--white) !important;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

/* Explanation Panel */
.explanation-box {
    background-color: #F3F4F6;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-in-out;
}

.explanation-title {
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.explanation-text {
    font-size: 14px;
    color: var(--text);
}

.quiz-action-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

/* Play Overlays */
.quiz-overlay {
    position: relative;
    width: 100%;
    background-color: transparent;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: auto;
    flex: 1;
}

#confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(241, 245, 249, 0.95);
    border-radius: var(--radius-lg);
}

.overlay-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 48px 32px;
    width: 100%;
    max-width: 680px;
    box-shadow: var(--shadow-sm);
    margin: 20px auto;
}

.text-center {
    text-align: center;
}

.overlay-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.overlay-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.overlay-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.overlay-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.overlay-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Final Result overlay page details */
.result-card {
    max-width: 540px;
}

.result-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 24px auto;
}

.result-score-number {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
}

.result-score-pct {
    font-size: 14px;
    color: var(--text-muted);
}

.result-status-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    background-color: var(--success);
    margin-bottom: 24px;
}

.result-status-badge.fail {
    background-color: var(--error);
}

.result-recommendations {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
    text-align: left;
}

.result-recommendations h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text);
}

.rec-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.rec-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    min-width: 0;
    overflow: hidden;
}

.rec-mini-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.rec-mini-icon {
    font-size: 24px;
}

.rec-mini-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* 9. Landing and Details view grids */
.landing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 32px;
    margin-bottom: 48px;
    min-width: 0;
}

.landing-main-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.landing-banner {
    height: 240px;
    background-color: var(--primary-light);
}

.landing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ECE9F2 0%, #D4CEE7 100%);
}

.landing-title-row {
    padding: 24px 32px 0 32px;
}

.landing-title {
    font-size: 32px;
}

.landing-body {
    padding: 24px 32px 32px 32px;
}

.landing-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.landing-about {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.landing-about h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.landing-action-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.action-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.action-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-icon {
    font-size: 24px;
    background-color: var(--bg);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-value {
    font-size: 15px;
    font-weight: 700;
}

/* 10. User Dashboard & Lists Layouts */
.dashboard-hero {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.user-profile-meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-char {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-welcome-title {
    font-size: 24px;
    margin-bottom: 4px;
}

.dashboard-welcome-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

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

.stat-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 32px;
}

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

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.dashboard-section {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* User profiles configurations card */
.profile-section-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.max-w-md {
    max-width: 600px;
    margin: 0 auto;
}

.form-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables details */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th, .table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.table th {
    background-color: #FAFAFA;
    font-weight: 600;
    color: var(--text-muted);
}

.badge-score {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pass {
    background-color: var(--success-light);
    color: var(--success);
}

.status-fail {
    background-color: var(--error-light);
    color: var(--error);
}

/* Empty states card */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* 11. Alerts & Toast Banners */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease-in-out;
    transition: opacity 0.4s ease;
    max-width: 360px;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-icon {
    font-size: 18px;
    font-weight: 700;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }

.toast-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.static-alert {
    position: static !important;
    max-width: 100% !important;
    margin-bottom: 20px;
    box-shadow: none !important;
    animation: none !important;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.error-list {
    list-style-position: inside;
}

/* 12. Authentication Specifics */
.auth-body {
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    justify-content: center;
}

.auth-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.auth-title {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

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

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

.app-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

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

/* 13. Dynamic Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%) translateY(0);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 14. Responsive Layout System overrides */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0f172a;
        border-bottom: 1px solid #1e293b;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .user-menu-wrapper {
        border-left: none;
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        border-top: 1px solid var(--border);
        padding-top: 16px;
        margin-top: 8px;
    }

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

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

    .rec-mini-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }
}

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

/* ═══════════════════════════════════════════════════════════════
   AD CONTAINER STYLES — Google Ad Manager Integration
   ═══════════════════════════════════════════════════════════════ */

/* Banner Ad Container */
.ad-banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    position: relative;
    overflow: visible;
}

/* Advertisement Label — Styled as a clean thin divider line with centered text (within main content only) */
.main-content .ad-label {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 16px;
}

.main-content .ad-label::before,
.main-content .ad-label::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #e2e8f0;
}

.ad-label::before {
    margin-right: 15px;
}

.ad-label::after {
    margin-left: 15px;
}

/* Banner Slot Div */
.ad-banner-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ad-banner-slot iframe {
    max-width: 100% !important;
}

/* Home Page Ad Adjustments */
.ad-home-top {
    margin-top: 0;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
}

.ad-home-mid {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Quiz Sidebar Ad */
.ad-quiz-sidebar {
    margin-top: 16px;
    border-radius: var(--radius-md);
    max-width: 100%;
    padding: 12px 0 !important;
}

/* Result Screen Ad */
.ad-play-result {
    margin-top: 20px;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    padding: 12px 0 !important;
}

/* ── Rewarded Ad Button ── */
.ad-rewarded-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 12px 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFD700 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: adGradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.ad-rewarded-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.ad-rewarded-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ad-rewarded-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

.ad-rewarded-icon {
    font-size: 18px;
}

@keyframes adGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Rewarded Ad Status Message */
.ad-rewarded-status {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 4px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.03);
}

.ad-rewarded-status.reward-granted {
    color: var(--success);
    background: var(--success-light);
    font-weight: 600;
}

/* ── Responsive Ad Sizing ── */
@media (max-width: 768px) {
    .ad-banner-container {
        margin: 16px auto;
        padding: 8px;
        max-width: 100%;
    }

    .ad-home-top,
    .ad-home-mid {
        margin: 12px auto;
    }

    .ad-rewarded-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ad-banner-container {
        margin: 10px auto;
        padding: 6px;
        border-radius: var(--radius-sm);
    }

    .ad-label {
        font-size: 9px;
    }
}

@media (max-width: 1200px) {
    .action-card {
        padding: 24px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   THE RAINBOW HUB BRANDING & LAYOUT OVERRIDES (QUIZTV ACCENTS)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Header overrides */
.hub-header {
    background-color: #0f172a;
    border-bottom: 1.5px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hub-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hub-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.hub-brand__mark {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hub-brand__name {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #ffffff, #fbbf24, #f43f5e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Make hamburger white on teal header */
.menu-toggle span {
    background-color: var(--white) !important;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
}

.nav-item:hover {
    color: var(--white);
}

.quiz-search__button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--text-muted);
}

.quiz-search__menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.quiz-search__menu-icon span {
    display: block;
    height: 2px;
    background-color: var(--text-muted);
    border-radius: 1px;
}

/* 2. Hero Overrides */
.hub-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    border: 1px solid #1e293b;
    box-shadow: var(--shadow-lg);
}

.hub-hero__copy h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #ffffff;
    line-height: 1.2;
}

.hub-hero__copy h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-hero__copy p {
    font-size: 16px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hub-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 860px;
}

@media (max-width: 768px) {
    .hub-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hub-hero__copy h1 {
        font-size: 32px;
    }
}

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

.hub-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.hub-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-stat__icon--mint { background-color: #ECFDF5; color: #059669; }
.hub-stat__icon--blue { background-color: #EFF6FF; color: #2563EB; }
.hub-stat__icon--violet { background-color: #E0F2FE; color: #0284C7; }
.hub-stat__icon--gold { background-color: #FFFBEB; color: #D97706; }

.hub-stat__svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hub-stat div strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.hub-stat__label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Glassmorphic Stats Overrides inside Dark Hero */
.hub-hero .hub-stat {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.hub-hero .hub-stat div strong {
    color: #ffffff !important;
}

.hub-hero .hub-stat__label {
    color: #94a3b8 !important;
}

/* 3. Quiz Card Grid Overrides */
.hub-quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

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

@media (max-width: 640px) {
    .hub-quiz-grid {
        grid-template-columns: 1fr;
    }
}

.hub-quiz-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hub-quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.15);
}

.hub-quiz-card__banner {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hub-quiz-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hub-quiz-card:hover .hub-quiz-card__banner img {
    transform: scale(1.03);
}

.hub-quiz-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hub-quiz-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.hub-chip {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
}

.hub-quiz-card__body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.hub-quiz-card:hover .hub-quiz-card__body h3 {
    color: var(--primary);
}

.hub-quiz-card__body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* 4. Footer Overrides */
.site-footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 60px 24px 40px;
    margin-top: auto;
    text-align: center;
}

.site-footer__inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.site-footer__logo span {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.site-footer__logo strong {
    background: linear-gradient(to right, #ffffff, #fbbf24, #f43f5e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-footer__brand p {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 16px;
    line-height: 1.6;
    max-width: 500px;
    text-align: center;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer__nav h2 {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.site-footer__nav a {
    display: block;
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.site-footer__nav a:hover {
    color: var(--primary);
}

.site-footer__bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* 5. Start Quiz Details Overrides */
.legacy-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px;
}

.legacy-badge {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legacy-start h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.legacy-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 24px;
}

.legacy-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.legacy-avatars {
    display: flex;
    align-items: center;
}

.legacy-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -8px;
    background-size: cover;
    background-position: center;
}

.legacy-avatar:first-child {
    margin-left: 0;
}

.legacy-social__text {
    font-size: 14px;
}

.legacy-social__primary {
    font-weight: 700;
}

.legacy-social__muted {
    color: var(--text-muted);
}

.legacy-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    transition: var(--transition);
}

.legacy-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

.legacy-ad-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.legacy-shield {
    color: var(--success);
    margin-right: 4px;
    font-weight: 700;
}

/* 6. Mobile Height Optimization Overrides (No scroll for start quiz button) */
@media (max-width: 480px) {
    .hub-header__inner {
        padding: 8px 12px;
    }
    
    .main-content {
        padding: 12px 12px;
    }
    
    .section-container {
        margin: 8px auto;
    }

    .legacy-start {
        padding: 20px 16px;
        margin-bottom: 16px !important;
    }
    
    .legacy-badge {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .legacy-start h1 {
        font-size: 22px;
        margin-bottom: 8px;
        line-height: 1.25;
    }
    
    .legacy-sub {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .legacy-social {
        margin-bottom: 16px;
        gap: 8px;
    }
    
    .legacy-avatar {
        width: 24px;
        height: 24px;
    }
    
    .legacy-social__text {
        font-size: 12px;
    }
    
    .legacy-primary {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        display: inline-block;
    }
    
    .legacy-ad-note {
        font-size: 11px;
        margin-top: 8px;
    }
}

/* Question Visual Container Styling */
.quiz-visual-container {
    width: 100%;
    max-width: 500px;
    margin: 16px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quiz-visual-container img,
.legacy-question-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin: 0 auto;
    object-fit: contain;
}

/* Compact Progress Indicator Style */
.compact-progress-container {
    width: 100%;
    margin-bottom: 24px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.compact-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.compact-round-label {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b; /* Slate 800 */
}

.compact-stage-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f766e; /* Teal 700 / Accent */
}

.compact-progress-steps-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 0;
}

.compact-progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e2e8f0; /* Gray 200 */
    transform: translateY(-50%);
    z-index: 1;
}

.compact-progress-line-fill {
    height: 100%;
    background-color: #0f766e; /* Completed line color (Teal) */
    width: 0%;
    transition: width 0.3s ease;
}

.compact-progress-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
}

.step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #64748b; /* Slate 500 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

/* Current active step style */
.step-node.active {
    border-color: #0f766e;
    color: #ffffff;
    background-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.2);
}

/* Completed step style */
.step-node.completed {
    border-color: #0f766e;
    color: #ffffff;
    background-color: #0f766e;
}

/* Responsive play screen margins and card spacing */
@media (max-width: 480px) {
    .play-wrapper {
        min-height: auto;
        padding: 0;
    }
    .play-container {
        border-radius: 0;
        border: none;
        box-shadow: none;
        background-color: transparent;
        min-height: auto;
    }
    .quiz-card-container {
        padding: 20px 16px;
        background-color: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        margin: 16px;
    }
}

/* Header User/Admin menu welcome styles */
.hub-header .nav-welcome {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 14px;
    margin-right: 8px;
}

.hub-header .user-menu-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hub-header .btn-outline {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

.hub-header .btn-outline:hover {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border-color: #ffffff !important;
}

/* Option Buttons Visual Overrides (A, B, C, D badges) */
.option-btn {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 18px !important;
    background-color: var(--white) !important;
    border: 2.2px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: var(--transition) !important;
    gap: 16px !important;
}

.option-letter {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #475569; /* Slate 600 */
    flex-shrink: 0;
    transition: var(--transition);
}

.option-text {
    flex: 1;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: #1e293b; /* Slate 800 */
    transition: var(--transition);
}

/* Option Hover Effect */
.option-btn:hover:not(:disabled) {
    border-color: var(--primary) !important;
    background-color: var(--primary-light) !important;
}

.option-btn:hover:not(:disabled) .option-letter {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.option-btn:hover:not(:disabled) .option-text {
    color: var(--primary);
}

/* Clean Explanation Box Overrides */
.explanation-box {
    background-color: #f8fafc !important;
    border: 1px solid var(--border) !important;
    border-left: 4.5px solid var(--primary) !important;
    padding: 16px 20px !important;
    border-radius: var(--radius-md) !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    animation: fadeIn 0.3s ease-in-out !important;
}

.explanation-text {
    font-size: 14.5px !important;
    color: #475569 !important; /* Slate 600 */
    line-height: 1.6 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Quiz Info Panel Crawled Content Styling */
.quiz-about-panel-wrapper .quiz-info-panel {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 36px 32px;
    text-align: left;
}

.quiz-about-panel-wrapper .quiz-info-panel button[data-action="restart"],
.quiz-about-panel-wrapper .quiz-info-panel .quiz-info-panel__restart-note {
    display: none !important;
}

.quiz-info-panel__intro {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.quiz-info-panel__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #dbeafe !important; /* Soft blue */
    color: #2563eb !important; /* Primary blue */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz-info-panel__icon svg {
    width: 24px;
    height: 24px;
}

.quiz-info-panel__intro h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.quiz-info-panel__intro p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.quiz-info-panel__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .quiz-info-panel__columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.quiz-info-panel__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quiz-info-panel__column .quiz-info-panel__icon {
    background-color: #f1f5f9 !important; /* Gray background for column icons */
    color: #475569 !important;
    margin-bottom: 12px;
}

.quiz-info-panel__column h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.quiz-info-panel__column p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
}

.quiz-info-panel__checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-info-panel__checks li {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.quiz-info-panel__checks li span {
    color: #10b981; /* Green checkmark */
    font-weight: bold;
}

.quiz-info-panel__scoring {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
}

.quiz-info-panel__icon--purple {
    background-color: #E0F2FE !important;
    color: #0EA5E9 !important;
}

.quiz-info-panel__scoring h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.quiz-info-panel__scoring p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.quiz-info-panel__skills {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.quiz-info-panel__skill {
    flex: 1;
    min-width: 140px;
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quiz-info-panel__skill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-info-panel__skill-icon svg {
    width: 18px;
    height: 18px;
}

.quiz-info-panel__skill strong {
    font-size: 13.5px;
    color: #0f172a;
}

.quiz-info-panel__skill small {
    font-size: 11px;
    color: #64748b;
}

/* Small Ad banner between question and photo */
.ad-play-question {
    margin: 4px auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    min-height: 50px !important;
    height: 50px !important;
    width: 300px !important;
    text-align: center;
    max-width: 100%;
}

.ad-play-question .ad-label {
    display: none !important;
}

/* Lives Display styling */
.lives-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lives-display strong {
    font-size: 16px;
    letter-spacing: 2px;
}

/* Option Button Correct & Wrong Overrides */
.option-btn.option-correct {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    color: #ffffff !important;
}

.option-btn.option-correct .option-letter {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--success) !important;
}

.option-btn.option-correct .option-text {
    color: #ffffff !important;
}

.option-btn.option-wrong {
    background-color: var(--error) !important;
    border-color: var(--error) !important;
    color: #ffffff !important;
}

.option-btn.option-wrong .option-letter {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--error) !important;
}

.option-btn.option-wrong .option-text {
    color: #ffffff !important;
}

.question-box {
    background-color: var(--primary-light) !important;
    border-left: 5px solid var(--primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: var(--shadow-sm) !important;
}

.question-box .quiz-play-question {
    margin-bottom: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   NDTV TRIVIA & SKYSCRAPER AD CONTAINER OVERRIDES
   ========================================================================== */

/* Main layout wrapper for side skyscraper ads */
.app-layout-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.skyscraper-ad {
    display: none;
    width: 160px;
    position: sticky;
    top: 90px;
    margin: 30px 20px;
    flex-shrink: 0;
    z-index: 10;
}

@media (min-width: 1200px) {
    .skyscraper-ad {
        display: block;
    }
}

/* Side-by-side Question & Visual Layout for Desktop */
.quiz-question-visual-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.quiz-question-visual-row .question-box {
    background: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    .quiz-question-visual-row {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
    .quiz-question-visual-row .question-box {
        flex: 1.3;
    }
    .quiz-question-visual-row .quiz-visual-container {
        flex: 1;
        margin: 0 !important;
        max-width: 100% !important;
        display: block !important;
    }
}

/* Split-style Option Cards for QuizTv */
.quiz-options-list {
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .quiz-options-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    .quiz-options-list .option-btn {
        flex: 1 !important;
        min-width: 200px !important;
        margin-bottom: 0 !important;
    }
}

.option-btn-quiztv {
    position: relative !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.option-btn-quiztv .option-letter {
    width: 44px !important;
    height: auto !important;
    border-radius: 10px 0 0 10px !important;
    background-color: #f8fafc !important;
    border: none !important;
    border-right: 1.5px solid #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.option-btn-quiztv .option-text {
    flex: 1 !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Option Correct state for QuizTv */
.option-btn-quiztv.option-correct {
    border-color: #22c55e !important;
    background-color: #f0fdf4 !important;
}

.option-btn-quiztv.option-correct .option-letter {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-right-color: #22c55e !important;
}

.option-btn-quiztv.option-correct .option-text {
    color: #166534 !important;
}

.option-btn-quiztv.option-correct::after {
    content: '✔' !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    border: 2.5px solid #ffffff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

/* Option Wrong state for QuizTv */
.option-btn-quiztv.option-wrong {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.option-btn-quiztv.option-wrong .option-letter {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-right-color: #ef4444 !important;
}

.option-btn-quiztv.option-wrong .option-text {
    color: #991b1b !important;
}

.option-btn-quiztv.option-wrong::after {
    content: '✖' !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    border: 2.5px solid #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

/* Thumbs Up Explanation Box Override for QuizTv */
.quiz-play-card .explanation-box {
    background-color: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
    border-left: 6px solid #22c55e !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* Red explanation box fallback state for wrong answers */
.quiz-play-card .explanation-box.explanation-wrong {
    background-color: #fef2f2 !important;
    border: 1.5px solid #fecaca !important;
    border-left: 6px solid #ef4444 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.quiz-play-card .explanation-box.explanation-wrong .explanation-title {
    color: #991b1b !important;
}

.quiz-play-card .explanation-title {
    font-size: 18px !important;
    color: #166534 !important;
    font-weight: 800 !important;
    text-transform: none !important;
    margin-bottom: 8px !important;
    font-family: 'Outfit', sans-serif !important;
}

.quiz-play-card .explanation-text {
    font-size: 15px !important;
    color: #374151 !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

/* Custom Large Red Pill Navigation Buttons */
.quiz-play-card #next-question-btn,
.quiz-play-card #see-results-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 48px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    margin: 20px auto 0 !important;
    display: block !important;
    width: fit-content !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.quiz-play-card #next-question-btn:hover,
.quiz-play-card #see-results-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
}

/* ==========================================================================
   NDTV TRIVIA RESPONSIVE STATS HEADER STYLE
   ========================================================================== */
.ndtv-stats-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto 30px;
    max-width: 600px;
    text-align: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    width: 100%;
}

.ndtv-stats-item {
    flex: 1;
}

.ndtv-stats-item h2,
.ndtv-stats-divider h2 {
    margin: 4px 0 !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    line-height: 1 !important;
    font-family: 'Outfit', sans-serif !important;
}

.ndtv-stats-item p,
.ndtv-stats-divider p {
    margin: 0 !important;
    font-size: 14px !important;
}

.ndtv-stats-divider {
    flex: 1;
    border-left: 1.5px solid var(--border);
    padding-left: 20px;
}

@media (max-width: 580px) {
    .ndtv-stats-header {
        gap: 16px;
        margin-bottom: 20px;
    }
    .ndtv-stats-item h2,
    .ndtv-stats-divider h2 {
        font-size: 28px !important;
    }
    .ndtv-stats-item p,
    .ndtv-stats-divider p {
        font-size: 12px !important;
    }
    .ndtv-stats-divider {
        padding-left: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HIDE QUIZ STATS & HEADERS (User Request)
   ═══════════════════════════════════════════════════════════════ */
#quiz-status-header,
#compact-progress-container {
    display: none !important;
}

/* Hide middle ad on desktop view (only show 2 ads on desktop, 3 on mobile) */
@media (min-width: 769px) {
    .ad-play-mid {
        display: none !important;
    }
}

