/**
 * Frontend Stylesheet for AMT Quiz Maker
 * Version: 5.4.0
 * All styles are scoped within .amt-quiz-container to prevent theme conflicts.
 */

.amt-quiz-container, .amt-course-card {
    --font-sans: 'Inter', sans-serif;
    --bg: #f8f9fa;
    --bg-alt: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border: #e2e8f0;
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #4338ca;
    --green: #10b981;
    --red: #ef4444;
    --orange: #f97316;
    --purple: #8b5cf6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.amt-quiz-container:fullscreen {
    overflow-y: auto;
}

.amt-quiz-container[data-theme='dark'] {
    --bg: #1a202c;
    --bg-alt: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --border: #4a5568;
    --primary: #667eea;
    --primary-light: #3c366b;
    --primary-dark: #7f9cf5;
}

.amt-quiz-container * { box-sizing: border-box; }
.amt-quiz-container button { font-family: var(--font-sans); cursor: pointer; border: none; transition: all 0.2s ease-in-out; }
.amt-quiz-container .hidden { display: none !important; }
.amt-quiz-container .mobile-only { display: none; }
.amt-quiz-container .screen { min-height: 100vh; display: flex; flex-direction: column; }
.amt-quiz-container .card { background-color: var(--bg-alt); border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border); transition: background-color 0.3s, border-color 0.3s; }
.amt-quiz-container .input-field { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 1rem; background-color: var(--bg); color: var(--text-primary); margin-top: 0.5rem; }

/* --- Landing Screen --- */
#series-landing-screen { justify-content: flex-start; align-items: stretch; padding-top: 2rem;}
.amt-quiz-container .series-container { max-width: 900px; margin: 0 auto; width: 100%; padding: 2rem 1rem; }
.amt-quiz-container .series-header { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; color: var(--text-primary); }
.amt-quiz-container .tabs-container { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none; }
.amt-quiz-container .tabs-container::-webkit-scrollbar { display: none; }
.amt-quiz-container .tab-btn { background: none; border: none; padding: 1rem 1.5rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; color: var(--text-secondary); position: relative; }
.amt-quiz-container .tab-btn.active { color: var(--primary); }
.amt-quiz-container .tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary); }
.amt-quiz-container .tab-content { display: none; } 
.amt-quiz-container .tab-content.active { display: block; }
.amt-quiz-container .tab-content-panels { padding-top: 1rem; }
.amt-quiz-container .test-list-container { display: flex; flex-direction: column; gap: 1rem; }
.amt-quiz-container .test-card { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background-color: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; position: relative; }
.amt-quiz-container .test-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.amt-quiz-container .test-card-left { display: flex; align-items: center; gap: 1.5rem; }
.amt-quiz-container .test-icon-container { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background-color: #eef2ff; color: var(--primary); border-radius: 8px; }
.amt-quiz-container .test-details .test-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem 0; color: var(--text-primary); }
.amt-quiz-container .test-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: var(--text-secondary); }
.amt-quiz-container .test-meta span { display: flex; align-items: center; gap: 0.5rem; }
.amt-quiz-container .btn-attempt { background: var(--primary); color: white; padding: 10px 24px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.amt-quiz-container .test-card.is-expired .btn-attempt { background-color: var(--text-secondary); cursor: not-allowed; }
.amt-quiz-container .test-card.is-expired::after { content: 'EXPIRED'; position: absolute; top: 1rem; right: 1rem; background-color: var(--red); color: white; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; border-radius: 4px; }


/* --- Instructions Screen --- */
#instructions-screen { justify-content: center; align-items: center; padding: 1rem; }
.amt-quiz-container .instructions-box {
    max-width: 900px;
    width: calc(100% - 2rem);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
}
.amt-quiz-container .instructions-box h2 { font-size: 1.5rem; margin: 0; text-align: center; padding: 1.5rem 1rem; border-bottom: 1px solid var(--border); }
.amt-quiz-container .instructions-content { padding: 1.5rem 2rem 2rem; flex-grow: 1; overflow-y: auto; }
.amt-quiz-container .instructions-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); text-align: right; }
.amt-quiz-container .btn-start-now { background-color: var(--primary); color: white; padding: 10px 24px; font-size: 1rem; border-radius: 6px; font-weight: 600; }

/* --- Quiz Screen --- */
#quiz-screen { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background-color: var(--bg); }
.amt-quiz-container .quiz-header { display: flex; justify-content: space-between; align-items: center; padding: 0 1.5rem; height: 65px; background: var(--bg-alt); border-bottom: 1px solid var(--border); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.amt-quiz-container .quiz-title { font-weight: 600; font-size: 1.25rem; }
.amt-quiz-container .header-right { display: flex; align-items: center; gap: 1rem; }
#timer { font-size: 1.2rem; font-weight: 700; color: var(--text-secondary); }
.amt-quiz-container .user-profile { display: flex; align-items: center; gap: 0.75rem; }
.amt-quiz-container .user-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; justify-content: center; align-items: center; font-weight: 600; font-size: 1.1rem; }
.amt-quiz-container .theme-toggle { background: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.amt-quiz-container .lang-dropdown { background-color: var(--bg); color: var(--text-primary); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 0.9rem; -webkit-appearance: none; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em; padding-right: 2.5rem; }
.amt-quiz-container .section-bar { display: flex; align-items: center; justify-content: flex-start; padding: 0 1.5rem; height: 55px; background: var(--bg-alt); border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto; scrollbar-width: none; }
.amt-quiz-container .section-tabs { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0.5rem; background-color: var(--bg); border-radius: 8px; white-space: nowrap; }
.amt-quiz-container .section-tab { padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--text-secondary); flex-shrink: 0; }
.amt-quiz-container .section-tab.active { background: var(--primary); color: white; box-shadow: var(--shadow-md); }
.amt-quiz-container .quiz-main { display: flex; flex-grow: 1; overflow: hidden; gap: 1.5rem; padding: 1.5rem; }
.amt-quiz-container .question-panel { flex-grow: 1; padding: 2rem; overflow-y: auto; display: flex; flex-direction: column; }
#question-header { display:flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.question-instruction-box { background-color: var(--primary-light); border-left: 4px solid var(--primary); padding: 1rem; margin-bottom: 1.5rem; border-radius: 4px; font-size: 0.95rem; line-height: 1.7; }
#question-text { font-size: 1.2rem; line-height: 1.7; margin: 0 0 2rem 0; color: var(--text-primary); }
.amt-quiz-container .options-container { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.amt-quiz-container .option { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; position: relative; }
.amt-quiz-container .option:hover { border-color: var(--primary); transform: translateY(-2px); }
.amt-quiz-container .option.selected { border-color: var(--primary); background-color: var(--primary-light); }
.amt-quiz-container .option.selected .option-label { background: var(--primary); color: white; border-color: var(--primary); }
.amt-quiz-container .option-label { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; justify-content: center; align-items: center; font-weight: 600; flex-shrink: 0; }
.amt-quiz-container .multi-choice-checkbox { width: 20px; height: 20px; accent-color: var(--primary); margin-right: -0.25rem; }
.amt-quiz-container .action-bar { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.amt-quiz-container .btn { border-radius: 8px; font-weight: 600; padding: 0.7rem 1.4rem; }
.amt-quiz-container .btn-save { background: var(--green); color: white; } .btn-mark { background: var(--purple); color: white; } .btn-clear { background: none; color: var(--red); border: 1px solid var(--red); }
.amt-quiz-container .palette-panel { width: 320px; flex-shrink: 0; padding: 1.5rem; display: flex; flex-direction: column; }
.amt-quiz-container .palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 1rem; flex-grow: 1; overflow-y: auto; padding: .5rem; }
.amt-quiz-container .palette-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; font-size: 1rem; font-weight: 600; }
.amt-quiz-container .palette-btn.active { border-color: var(--primary); transform: scale(1.1); box-shadow: 0 0 0 3px var(--primary-light); }
.amt-quiz-container .palette-btn.not-visited { background-color: var(--bg); color: var(--text-secondary); }
.amt-quiz-container .palette-btn.not-answered { background-color: var(--red); color: white; border-color: var(--red); }
.amt-quiz-container .palette-btn.answered { background-color: var(--green); color: white; border-color: var(--green); }
.amt-quiz-container .palette-btn.marked-review { background-color: var(--purple); color: white; border-color: var(--purple); }
.amt-quiz-container .palette-btn.answered-marked-review { background: linear-gradient(135deg, var(--purple) 50%, var(--green) 50%); color: white; border:none; }
#submit-btn { width: 100%; padding: 0.8rem; margin-top: 1.5rem; font-size: 1.1rem; border-radius: 8px; background-color: var(--primary); color: white; }
#close-palette-btn { display: none; }
.amt-quiz-container .palette-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden; }
.amt-quiz-container .palette-overlay.open { opacity: 1; visibility: visible; }

/* --- Submit Screen --- */
#submit-summary-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; justify-content: center; align-items: center; text-align: center; }
.amt-quiz-container .submit-summary-box { max-width: 450px; width: 100%; padding: 2.5rem; margin: 1rem; }
.amt-quiz-container .summary-stats { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 2rem; text-align: left; }
.amt-quiz-container .stat-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; }
.amt-quiz-container .stat-item:not(:last-child) { border-bottom: 1px solid var(--border); }

/* --- Result Screen & Analysis Styles --- */
#result-screen { height: auto; min-height: 100vh; overflow: visible; }
.result-header { display: flex; justify-content: space-between; align-items: center; padding: 0 1.5rem; height: 65px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.result-container { max-width: 1024px; margin: 0 auto; width: 100%; padding: 2rem 1rem;}
.result-section-title { font-size: 1.25rem; margin: 0 0 1.5rem 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.result-tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.result-tab-link { background: none; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--text-secondary); position: relative; }
.result-tab-link.active { color: var(--primary); }
.result-tab-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary); }
.result-tab-pane { display: none; }
.result-tab-pane.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Overview Tab */
#test-summary.card { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: center; }
.summary-item { padding: 1rem; }
.summary-item h3 { margin: 0 0 1rem 0; font-size: 1.1rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.summary-item p { display: flex; justify-content: space-between; margin: 0.5rem 0; }
.score-details { display: flex; align-items: center; justify-content: space-around; text-align: center; }
.score-circle { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; }
.score-circle::before { content: ''; position: absolute; width: 100px; height: 100px; background: var(--bg-alt); border-radius: 50%; }
.score-text { z-index: 1; font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }
.status { font-weight: bold; padding: 5px 10px; border-radius: 5px; color: white; }
.status.pass { background-color: var(--green); }
.status.fail { background-color: var(--red); }
.analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.analysis-card h4 { text-align: center; margin-bottom: 1rem; font-weight: 600; }
.chart-container { position: relative; height: 250px; width: 100%; }

/* Topic Analysis Tab */
.topic-analysis-header { display: flex; justify-content: space-between; align-items: center; }
#topic-section-filter { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); background-color: var(--bg-alt); }
.topic-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border); }
.topic-item:last-child { border-bottom: none; }
.topic-info { display: flex; align-items: center; gap: 1rem; font-weight: 500; }
.topic-number { width: 30px; height: 30px; border-radius: 50%; background-color: var(--text-secondary); color: white; display: grid; place-items: center; font-weight: bold; flex-shrink: 0; }
.topic-stats { font-size: 0.9rem; color: var(--text-secondary); }
.topic-stats strong { color: var(--text-primary); }

/* Solutions Tab */
#view-answers-container { margin-top: 0; background-color: transparent; padding: 0; }
.view-answers-q-card { margin-bottom: 1.5rem; padding: 1.5rem; }
.view-answers-option { padding: 0.75rem 1rem; border-radius: 6px; margin: 0.5rem 0; border: 1px solid var(--border); position: relative; }
.view-answers-option.correct { background: #10b98120; border-color: var(--green); color: var(--green); font-weight: 600; }
.view-answers-option.incorrect { background: #ef444420; border-color: var(--red); text-decoration: line-through; }
.explanation { background-color: var(--bg); padding: 1rem; margin-top: 1rem; border-radius: 8px; border: 1px solid var(--border); }

/* Leaderboard Tab */
.top-performers { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; text-align: center; min-height: 200px; }
.performer { padding: 20px 10px; border-radius: 12px; position: relative; box-shadow: var(--shadow-md); width: 30%; }
.performer.rank-1 { background: linear-gradient(145deg, #fff0b3, #ffe380); order: 2; height: 180px; }
.performer.rank-2 { background: linear-gradient(145deg, #f0f0f0, #d9d9d9); order: 1; height: 150px; }
.performer.rank-3 { background: linear-gradient(145deg, #f0d8c9, #e6c1ac); order: 3; height: 150px; }
.user-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 4px solid white; box-shadow: var(--shadow-sm); }
.user-name { font-weight: 600; margin: 4px 0; color: var(--text-primary); }
.user-score { font-weight: 700; font-size: 18px; color: var(--primary-dark); }
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
.leaderboard-table th { background-color: var(--bg); font-weight: 600; }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; margin-right: 10px; }
#my-rank-info { margin-top: 24px; padding: 16px; background-color: var(--primary); color: white; border-radius: 12px; display: flex; justify-content: space-around; font-weight: 600; }
.rank-value { font-size: 24px; font-weight: 700; }


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .amt-quiz-container .mobile-only { display: flex; }
    .amt-quiz-container .quiz-header { flex-direction: column; height: auto; gap: 0.75rem; padding: 0.75rem 1rem; align-items: center; }
    .amt-quiz-container .quiz-title { order: 1; font-size: 1.1rem; text-align: center; }
    .amt-quiz-container .header-right { order: 2; width: 100%; justify-content: space-between; }
    .amt-quiz-container .quiz-main { flex-direction: column; padding: 0; gap: 0; overflow-y: auto; flex-grow: 1; }
    .amt-quiz-container .question-panel { padding: 1.5rem; padding-bottom: 120px; }
    .amt-quiz-container .palette-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 80vw; z-index: 2000; transform: translateX(100%); transition: transform 0.3s; border-radius: 0; padding-top: 50px; }
    .amt-quiz-container .palette-panel.open { transform: translateX(0); }
    #close-palette-btn { display: block; position: absolute; top: 10px; right: 15px; font-size: 2rem; background: none; border: none; }
}
@media (max-width: 768px) {
    .amt-quiz-container .test-card { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .overview-grid, #test-summary.card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    #user-name-display { display: none; }
    .header-right { gap: 0.5rem; }
}

/* --- Guest Popup Screen (v4.1.0) --- */
#guest-popup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.amt-quiz-container .guest-popup-box {
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    margin: 1rem;
    position: relative;
    animation: popup-fade-in 0.3s ease-out;
}
@keyframes popup-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.amt-quiz-container .guest-popup-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.amt-quiz-container .guest-popup-box p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.amt-quiz-container .guest-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.amt-quiz-container .guest-popup-actions .btn {
    flex: 1;
}
.amt-quiz-container .guest-popup-box button#guest-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 300;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s ease;
}
.amt-quiz-container .guest-popup-box button#guest-popup-close-btn:hover {
    color: var(--text-primary);
}


/* --- Course Card Shortcode Styles (v4.2.0) --- */
.amt-course-card {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 380px;
    margin: 1rem auto;
}
.amt-card-badge {
    position: absolute;
    top: 1.5rem;
    right: -5px;
    color: white;
    padding: 4px 12px;
    border-radius: 5px 0 0 5px;
    font-size: 0.8rem;
    font-weight: 600;
}
.amt-card-badge.amt-badge-orange { background-color: var(--orange); }
.amt-card-badge.amt-badge-red { background-color: var(--red); }
.amt-card-header { display: flex; align-items: center; gap: 1rem; }
.amt-card-icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; display: flex; justify-content: center; align-items: center; background-color: var(--bg); font-size: 1.5rem; font-weight: 600; color: var(--text-secondary); }
.amt-card-title { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--text-primary); }
.amt-card-body { flex-grow: 1; }
.amt-card-meta { padding: 1rem 0; }
.amt-card-meta-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-primary); }
.amt-card-features { list-style: none; padding-left: 0; margin: 1rem 0 0 0; font-size: 0.9rem; }
.amt-card-features li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.amt-card-features .material-symbols-outlined { color: var(--green); }
.amt-card-footer { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.amt-card-pricing { display: flex; align-items: baseline; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.amt-original-price { font-size: 1rem; color: var(--text-secondary); text-decoration: line-through; }
.amt-discount { font-size: 0.9rem; color: var(--green); background-color: #ecfdf5; padding: 2px 8px; border-radius: 99px; }
.amt-btn { text-decoration: none; display: inline-block; text-align: center; }
.amt-btn-primary { background: var(--primary); color: white; padding: 10px 24px; border-radius: 8px; font-weight: 600; }

/* --- Free Quiz Badge Styles (v4.3.0) --- */
.amt-quiz-container .test-card .quiz-access-badge.free {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--green);
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px 0 8px 0;
    z-index: 2;
}