/* ============================================================
   언어 전환(EN/FR) 클래스 이름 안내 — 3가지는 서로 다른 용도예요
   - modal-lang-en / modal-lang-fr : "How to Use" 팝업 안에서만 쓰임
   - site-lang-toggle / site-lang-btn : 헤더의 EN/FR 토글 "버튼" 자체 모양
   - glang-en / glang-fr : 첫 화면(제목, 버튼 10개) 전체 글자 전환용
   ============================================================ */

/* CSS Variables for theming */
:root {
    color-scheme: dark;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #0ea5e9;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --shadow-color: rgba(99, 102, 241, 0.25);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Main Content */
main {
    flex: 1;
}

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.license-btn {
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.license-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.license-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.license-btn:hover::before {
    opacity: 0.2;
}

.license-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.license-btn.endorsement {
    grid-column: span 1;
    background: var(--card-bg);
    border-color: var(--card-border);
    font-size: 0.78rem;
    line-height: 1.2;
    padding-top: 12px;
    padding-bottom: 12px;
}

.license-btn .btn-subtitle {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.85;
}

.license-btn.endorsement:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.license-btn.endorsement.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    box-shadow: 0 8px 32px var(--shadow-color);
}

/* Mascot Section */
.mascot-section {
    text-align: center;
    margin: 40px 0 20px;
}

.mascot-section.hidden {
    display: none;
}

.mascot-img {
    width: 550px;
    max-width: 90%;
    height: auto;
}

/* Selection Panel */
.selection-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.4s ease;
}

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

.selection-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.selection-panel .description {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Language Selector */
.language-selector {
    margin-bottom: 30px;
}

.language-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}

.language-selector select {
    width: 100%;
    max-width: 300px;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.language-selector select:hover,
.language-selector select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Start Button */
.start-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.start-btn:active {
    transform: translateY(0);
}

/* Quiz Container */
#quiz-container {
    animation: slideUp 0.4s ease;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

#question-counter {
    font-weight: 500;
    color: var(--text-secondary);
}

#score-display {
    font-weight: 600;
    color: var(--success-color);
}

/* Question Card */
.question-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

#question-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 1rem;
    text-align: left;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.option-btn .option-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--card-border);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.option-btn.correct {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.15);
}

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

.option-btn.incorrect {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.15);
}

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

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: flex-end;
}

.nav-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Container */
#result-container {
    text-align: center;
    padding: 60px 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

#result-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#final-score {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.back-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 16px;
}

.back-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Set Selection Buttons */
.set-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.set-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.set-btn:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    background: rgba(99, 102, 241, 0.1);
}

.set-number {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.set-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sign Image Container */
.sign-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-image-container svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.sign-image-container img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    border-radius: 4px;
}

/* Set Detail Text */
.set-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    opacity: 0.8;
}

/* Explanation Box */
.explanation-box {
    margin-top: 24px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

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

.explanation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--warning-color);
}

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

.explanation-box p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Review Button */
.review-btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--warning-color);
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 16px;
}

.review-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .license-btn {
        padding: 16px 12px;
        font-size: 0.9rem;
    }

    .selection-panel {
        padding: 24px;
    }

    .question-card {
        padding: 24px;
    }

    #question-text {
        font-size: 1.1rem;
    }

    .quiz-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    header {
        padding: 24px 12px;
    }

    header h1 {
        font-size: 1.25rem;
    }

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

    .option-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .option-btn .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

/* ── How to Use Modal ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 750px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-header h2 {
    flex: 1;
}

.modal-lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
    flex-shrink: 0;
}

.modal-lang-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-lang-btn:hover {
    color: #f8fafc;
}

.modal-lang-btn.active {
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}
.modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-steps {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-steps li {
    color: #94a3b8;
    line-height: 1.7;
}

.modal-steps li strong {
    color: #f8fafc;
}

.modal-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 28px 0;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-table tr:last-child {
    border-bottom: none;
}

.modal-table td {
    padding: 10px 8px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.modal-table td:first-child {
    color: #f8fafc;
    font-weight: 500;
    width: 55%;
}

.modal-section p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.modal-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.modal-img:hover {
    transform: scale(1.03);
    border-color: #6366f1;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.modal-close-btn {
    padding: 12px 48px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* ── Modal EN/FR content visibility ────────────────────────────── */
.modal-box .lang-fr {
    display: none;
}

.modal-box.fr-mode .lang-en {
    display: none;
}

.modal-box.fr-mode h2 .lang-fr,
.modal-box.fr-mode h3 .lang-fr,
.modal-box.fr-mode .modal-close-btn .lang-fr {
    display: inline;
}

.modal-box.fr-mode ol.modal-steps.lang-fr {
    display: flex;
}

.modal-box.fr-mode table.modal-table.lang-fr {
    display: table;
}

.modal-box.fr-mode p.lang-fr {
    display: block;
}
.modal-box.fr-mode .modal-images.lang-fr {
    display: grid;
}
@media (max-width: 480px) {
    .modal-images {
        grid-template-columns: 1fr;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-header {
        padding: 18px 20px;
    }
}

/* ── Image Lightbox ────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-img {
    cursor: zoom-in;
}

/* ── Status Light (Traffic Light) ──────────────────────────────── */
header {
    position: relative;
}

.status-light {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 24px;
    height: 64px;
    background: #05070f;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 5px 0;
}

.status-lamp {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a1216;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-lamp.red.on {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.status-lamp.yellow.on {
    background: #eab308;
    box-shadow: 0 0 8px #eab308;
}

.status-lamp.green.on {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-badge {
    position: absolute;
    top: 82px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-badge.red-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.status-badge.yellow-badge {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid #eab308;
    color: #eab308;
}

/* ── Global Site Language Toggle ───────────────────────────────── */
.site-lang-toggle {
    position: absolute;
    top: 12px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
}

.site-lang-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.site-lang-btn:hover {
    color: #f8fafc;
}

.site-lang-btn.active {
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* ── First-screen (header + button grid) EN/FR visibility ─────── */
.glang-fr {
    display: none;
}

body.site-fr .glang-en {
    display: none;
}

body.site-fr .glang-fr {
    display: inline;
}

/* ── How to Use button: French text is longer, needs smaller font to avoid wrapping ── */
#how-to-use-btn .glang-fr {
    font-size: 0.78rem;
}

/* ── Footer Feedback Button ────────────────────────────────────── */
footer {
    position: relative;
}

.feedback-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 16px;
    color: #cbd2e8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #f8fafc;
}

@media (max-width: 480px) {
    footer {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        padding: 20px;
    }

    footer p {
        width: 100%;
        text-align: center;
    }

    .feedback-btn {
        position: static;
    }
}

@media (max-width: 480px) {
    .site-lang-toggle {
        position: static;
        display: flex;
        justify-content: center;
        margin: 0 auto 12px auto;
        width: fit-content;
    }

    header {
        padding-top: 20px;
    }

    .site-lang-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .feedback-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

.round-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.round-panel-header h2 {
    margin: 0;
}

.order-mode-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
    flex-shrink: 0;
}

.order-mode-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-mode-btn:hover {
    color: #f8fafc;
}

.order-mode-btn.active {
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.demo-btn-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.demo-btn {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    padding: 10px 12px;
    font-size: 0.90rem;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.access-badge.expiring-soon {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

.paylock-card {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

.paylock-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.paylock-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 0 0 20px 0;
}

.paylock-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    display: inline-block;
}

.paylock-features li {
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 26px;
    position: relative;
    font-size: 0.95rem;
}

.paylock-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.paylock-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

#paypal-button-container {
    margin-bottom: 16px;
}

.paylock-trust {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.paylock-price-sub {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 4px;
}

.paylock-policy {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 16px;
    opacity: 0.75;
}

.paylock-policy-link,
.paylock-policy-link:visited {
    color: #ffc439;
    text-decoration: underline;
}

.paylock-policy-link:hover {
    color: #f4bb37;
}
