/* ============================================
   ABICRACK – Content Page Styles
   Ersetzt: textstyle.css, general.css, fonts.css,
   questions.css, abithemen.css, landingpage.css,
   sharedResources/css/fonts.css, appReg.css
   ============================================ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background: #fafafa;
    padding: 0;
    margin: 0;
}

/* --- Hide unwanted elements --- */
div[module='navbar'],
.leftbar,
.left,
.sperrer,
.priceBox,
.globalPopUps,
.globalPopUpsOverlay,
.userSettingsOverlay,
.userSettingsPopUp,
.searchResults,
.formWrap,
.collapser,
.quationsOverlay {
    display: none !important;
}

/* --- Remove blur/paywall --- */
.blurMe {
    filter: none !important;
    -webkit-filter: none !important;
}

.previewText.blurMe {
    filter: none !important;
}

/* --- Layout --- */
.lernbereich {
    display: block;
}

.bibliothek {
    display: block;
}

.bibliothek .right {
    width: 100%;
    max-width: 100%;
}

.bibliothek .right .inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

div[module='bibliothek/inhalt'] {
    display: block;
}

/* --- Typography --- */
h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f0f1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e4e4e7;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f0f1a;
    margin: 32px 0 16px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 24px 0 12px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 16px 0 8px;
}

/* --- Element Title --- */
.elementTitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f0f1a;
    margin: 36px 0 12px;
    padding-top: 8px;
}

.elementTitle:empty {
    display: none;
}

.elementTitle:first-of-type {
    margin-top: 16px;
}

/* --- Preview Text (Content Blocks) --- */
.previewText {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #27272a;
}

.previewText p {
    margin-bottom: 14px;
}

.previewText[data-style='2'] {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f0ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #3730a3;
    position: relative;
}

.previewText[data-style='2']::before {
    content: 'Prüfungstipp';
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 8px;
    font-style: normal;
}

.previewText[data-style='3'] {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.previewText[data-style='4'] {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.previewText[data-style='5'] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

/* --- Lists --- */
ol, ul {
    padding-left: 28px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

ol li {
    padding-left: 4px;
}

/* --- Bold / Strong --- */
b, strong {
    font-weight: 600;
    color: #0f0f1a;
}

/* --- Italic --- */
i, em {
    color: #52525b;
}

/* --- Image Elements --- */
.imageElement {
    margin: 28px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.imageElement:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.imageElement[data-border='0'] {
    border: none;
    box-shadow: none;
}

.imageElement img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    margin: 0 auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.imageElement .cnt {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f5;
}

.imageElement .cnt .descr {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #52525b;
}

.imageElement .cnt .descr h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f0f1a;
    margin: 0 0 6px;
}

.imageElement .cnt .copyright {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 8px;
}

.imageElement[showcr='0'] .copyright {
    display: none;
}

.imageElement[descrpos='0'] .cnt {
    display: none;
}

/* Image style variants */
.imageElement[data-style='0'] img {
    max-width: 100%;
}

.imageElement[data-style='1'] img {
    max-width: 100%;
}

.imageElement[data-style='4'] img {
    max-width: 60%;
    margin: 0 auto;
}

/* --- Formula Elements (MathJax) --- */
.formulaElement {
    margin: 24px 0;
    padding: 20px 24px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 1.05rem;
    text-align: center;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
}

th {
    background: #f0f0f5;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    color: #0f0f1a;
    border-bottom: 2px solid #e4e4e7;
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f5;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fafafa;
}

/* --- Legacy font color tags --- */
font[color='#CB1417'],
font[color='#cb1517'],
font[color='#cb1417'] {
    color: #dc2626 !important;
    font-weight: 600;
}

font[color='#267ba3'] {
    color: #2563eb !important;
    font-weight: 600;
}

/* --- Quiz / Question Elements --- */
.questionsWrap {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.questionProgress {
    margin-bottom: 16px;
}

.questionProgress .bars {
    display: flex;
    gap: 4px;
    height: 4px;
}

.qstns {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.frage {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tipp {
    margin: 16px 0;
}

.tipp .top {
    cursor: pointer;
    color: #6366f1;
    font-weight: 500;
    font-size: 0.9rem;
}

.tipp .bd {
    display: none;
    margin-top: 8px;
    padding: 12px 16px;
    background: #f5f3ff;
    border-radius: 8px;
    font-size: 0.9rem;
}

.tipp .hd {
    font-weight: 600;
    margin-bottom: 4px;
}

.turnCardAround {
    cursor: pointer;
    color: #6366f1;
    font-size: 0.85rem;
}

/* Multiple Choice */
.multipleChoiceAnswers {
    list-style: none;
    padding: 0;
}

.multipleChoiceAnswers li {
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.multipleChoiceAnswers li:hover {
    border-color: #6366f1;
    background: #f5f3ff;
}

.multipleChoiceAnswers li.selected {
    border-color: #6366f1;
    background: #ede9fe;
}

/* Buttons */
.gardient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 4px;
    font-family: inherit;
}

.gardient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.gardient.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.gardient.red:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Answer Results */
.rstlAnswer[for-answer='right'] {
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #166534;
}

.rstlAnswer[for-answer='wrong'] {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #991b1b;
}

.karteikarteAnswer {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 16px 0;
    line-height: 1.6;
}

.right_or_wrong {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.goToNext {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Close overlay */
.closeOverlay {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f5;
}

.closeOverlay::before {
    content: '\00d7';
    font-size: 1.5rem;
    color: #71717a;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
}

/* --- Selection --- */
::selection {
    background: rgba(99, 102, 241, 0.15);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
    .bibliothek .right .inner { padding: 28px 24px 50px; }
}

/* Mobile */
@media (max-width: 768px) {
    .bibliothek .right .inner { padding: 20px 16px 40px; }
    h1 { font-size: 1.5rem; padding-bottom: 12px; }
    .elementTitle { font-size: 1.15rem; margin: 28px 0 10px; }
    .imageElement { margin: 16px -16px; border-radius: 0; }
    .imageElement .cnt { padding: 12px 16px; }
    .formulaElement { padding: 14px; font-size: 0.9rem; }
    table { font-size: 0.8rem; }
    th, td { padding: 8px 10px; }
    .previewText[data-style='2'] { padding: 16px; }
    .learned-container { margin-bottom: 20px; }
    .learned-btn { padding: 8px 16px; font-size: 0.82rem; }

/* Small Mobile */
@media (max-width: 480px) {
    .bibliothek .right .inner { padding: 16px 12px 36px; }
    h1 { font-size: 1.3rem; }
    .elementTitle { font-size: 1.05rem; }
    body { font-size: 15px; }
    ol, ul { padding-left: 20px; }
    .imageElement img { max-height: 60vh; }
    .coffee-banner-inner { padding: 14px; flex-direction: column; text-align: center; }
    .coffee-banner-btn { width: 100%; text-align: center; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .imageElement img { max-height: 50vh; }
}

/* PWA standalone */
@media (display-mode: standalone) {
    .bibliothek .right .inner { padding-top: calc(16px + env(safe-area-inset-top, 0)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

    .formulaElement {
        padding: 16px;
        font-size: 0.95rem;
    }
}

/* --- Print --- */
@media print {
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    .imageElement {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .sperrer,
    .globalPopUps,
    .questionsWrap {
        display: none !important;
    }
}

/* --- Learned Button --- */
.learned-container {
    margin: -8px 0 28px;
}

.learned-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.learned-btn:hover {
    border-color: #a78bfa;
    color: #6366f1;
    background: #f5f3ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.learned-btn.is-learned {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.learned-btn.is-learned:hover {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.learned-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.learned-btn.is-learned .learned-btn-icon {
    background: #10b981;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.learned-btn .check-icon {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.learned-btn.is-learned .check-icon {
    animation: checkBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Confetti */
.learned-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
}

.confetti-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: confettiBurst 0.8s var(--d) cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes confettiBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0);
    }
}

/* --- Quiz System --- */
.quiz-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.quiz-header-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.quiz-header-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 2px;
}

.quiz-header-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.quiz-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    animation: quizSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quizSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.quiz-progress-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-progress-text {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.quiz-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 20px;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-answer-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: left;
    color: #374151;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-answer-btn:hover:not(.quiz-answered) {
    border-color: #6366f1;
    background: #f5f3ff;
    transform: translateX(4px);
}

.quiz-answer-letter {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.quiz-answer-btn:hover:not(.quiz-answered) .quiz-answer-letter {
    background: #6366f1;
    color: white;
}

.quiz-answer-text { flex: 1; line-height: 1.5; }
.quiz-answer-icon { flex-shrink: 0; width: 18px; }

.quiz-answer-btn.quiz-answered { cursor: default; pointer-events: none; }
.quiz-answer-btn.quiz-correct {
    border-color: #10b981;
    background: #ecfdf5;
}
.quiz-answer-btn.quiz-correct .quiz-answer-letter {
    background: #10b981;
    color: white;
}
.quiz-answer-btn.quiz-wrong {
    border-color: #ef4444;
    background: #fef2f2;
}
.quiz-answer-btn.quiz-wrong .quiz-answer-letter {
    background: #ef4444;
    color: white;
}

.quiz-explanation {
    margin-top: 20px;
    animation: quizSlideIn 0.3s ease;
}

.quiz-explanation-inner {
    padding: 20px;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4b5563;
}

.quiz-result-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.quiz-result-badge.correct { background: #ecfdf5; color: #059669; }
.quiz-result-badge.wrong { background: #fef2f2; color: #dc2626; }

.quiz-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.quiz-btn-next {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.quiz-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.quiz-btn-retry {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.quiz-btn-retry:hover {
    background: #e5e7eb;
}

/* Results */
.quiz-results { text-align: center; }

.quiz-results-circle {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--percent) * 1%), #f3f4f6 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: circleIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes circleIn {
    from { transform: scale(0.5) rotate(-90deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

.quiz-results-circle-inner {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quiz-results-score { font-size: 1.8rem; font-weight: 900; color: #111827; }
.quiz-results-percent { font-size: 0.8rem; color: #9ca3af; font-weight: 500; }
.quiz-results-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.quiz-results-subtitle { color: #6b7280; margin-bottom: 32px; }

.quiz-results-details {
    text-align: left;
    margin-bottom: 24px;
}

.quiz-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.85rem;
}
.quiz-result-item.correct { background: #f0fdf4; }
.quiz-result-item.wrong { background: #fef2f2; }
.quiz-result-num {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.quiz-result-q { flex: 1; color: #4b5563; }
.quiz-result-icon { font-weight: 700; font-size: 1.1rem; }
.quiz-result-item.correct .quiz-result-icon { color: #10b981; }
.quiz-result-item.wrong .quiz-result-icon { color: #ef4444; }

.quiz-wrong-review {
    text-align: left;
    margin: 24px 0;
    padding: 24px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 14px;
}

.quiz-wrong-review h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 16px;
}

.quiz-review-item {
    padding: 16px;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #fde68a;
}

.quiz-review-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #111827;
}

.quiz-review-item p {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 4px;
    line-height: 1.6;
}

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

@media (max-width: 640px) {
    .quiz-card { padding: 20px; }
    .quiz-answer-btn { padding: 12px 14px; }
}

/* --- Coffee Banner (end of content) --- */
.coffee-banner {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.coffee-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    flex-wrap: wrap;
}

.coffee-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffdd00;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coffee-banner-text {
    flex: 1;
    min-width: 200px;
}

.coffee-banner-text strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.coffee-banner-text span {
    font-size: 0.85rem;
    color: #52525b;
}

.coffee-banner-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: #ffdd00;
    color: #1a1a2e;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 221, 0, 0.3);
    white-space: nowrap;
}

.coffee-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 221, 0, 0.4);
}

@media (max-width: 640px) {
    .coffee-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .coffee-banner-btn {
        width: 100%;
        justify-content: center;
    }
}
