:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --accent: #ff4f9d;
    --muted: #6b6f76;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow: 0 8px 24px rgba(20,20,30,0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fbf8ff, var(--bg));
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #111;
}

.container {
    max-width: 1000px;
    padding: 18px;
}

.header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.tabs {
    display: flex;
    gap: 8px;
}

.btn {
    background: var(--card);
    border: 1px solid #eee;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), #d93f8c);
    color: white;
    border: none;
}

@media (max-width:700px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tabs {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

.option.selected {
    border: 2px solid #ff4f9d !important;
    background: #ffe4f1 !important;
}

.topline {
    font-size: 13px;
    color: var(--muted);
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.center {
    text-align: Justify;
}

.hidden {
    display: none;
}

.question {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #f0eef6;
}

.qtext {
    font-weight: 700;
    margin-bottom: 10px;
}

.options {
    display: grid;
    gap: 10px;
}

.options.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.option {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option .label {
    font-weight: 700;
    width: 26px;
}

.row-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.small {
    font-size: 13px;
    color: var(--muted);
}

.results {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #fff7fb;
    border: 1px solid #ffe6f2;
}

.correct {
    color: var(--success);
    font-weight: 700;
}

.wrong {
    color: var(--danger);
    font-weight: 700;
}

.explain {
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #fffaf6;
    border: 1px solid #fff0df;
    color: #333;
}

.footer-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.share-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width:700px) {
    .options.grid-2 {
        grid-template-columns: 1fr;
    }

    .option .label {
        width: 22px;
        font-size: 14px;
    }

    .btn {
        padding: 8px 10px;
    }
}

.paginator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.pagebtn {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: var(--card);
    cursor: pointer;
}

.filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.notice {
    padding: 14px;
    border-radius: 10px;
    background: #fff8f9;
    border: 1px solid #ffebf0;
    color: #7b1f3a;
}

.scorebox {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

label.date-label {
    font-weight: 700;
    color: #444;
    margin-right: 6px;
}