@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
    --blue: #2098e8;
    --bg: #e9e9e9;
    --text: #2c2c2c;
    --shadow: 0 8px 16px rgba(0, 0, 0, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Poppins", "Noto Sans Devanagari", Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

main,
.home-main {
    animation: pageSlideIn .34s ease both;
}

.app {
    min-height: 100vh;
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg);
    padding-bottom: 92px;
    position: relative;
    overflow-x: hidden;
}

.topbar {
    height: 108px;
    background: var(--blue);
    display: grid;
    grid-template-columns: 1fr 62px;
    align-items: center;
    gap: 8px;
    padding: 28px 18px 10px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.course-select,
.icon-button,
.menu-button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.course-select {
    font-size: 18px;
    padding: 8px 0;
    white-space: nowrap;
}

.course-select span {
    display: inline-block;
    margin-left: 6px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #fff;
    vertical-align: middle;
}

.brand {
    justify-self: start;
    margin-left: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

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

.bell {
    width: 25px;
    height: 28px;
    border: 4px solid #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom: 0;
    display: inline-block;
    position: relative;
}

.bell::before,
.bell::after {
    content: "";
    position: absolute;
    background: #fff;
}

.bell::before {
    width: 30px;
    height: 4px;
    left: -6px;
    bottom: -4px;
}

.bell::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 5px;
    bottom: -13px;
}

.menu-button {
    display: grid;
    gap: 8px;
    padding: 8px 0;
}

.menu-button span {
    width: 44px;
    height: 6px;
    background: #fff;
    display: block;
}

.side-menu {
    position: fixed;
    top: 102px;
    right: max(0px, calc(50% - 280px));
    width: min(92vw, 280px);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 10px;
    border-radius: 0 0 0 16px;
    transform: translateX(120%);
    transition: .25s ease;
    z-index: 30;
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu a {
    display: block;
    padding: 14px 15px;
    border-bottom: 1px solid #eee;
    color: #071654;
    font-weight: 800;
}

.banner-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 14px 16px 22px;
    scroll-snap-type: x mandatory;
}

.banner-card {
    min-width: 100%;
    height: 188px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    scroll-snap-align: center;
    box-shadow: var(--shadow);
}

.banner-card img,
.course-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 0 20px 28px;
}

.quick-card {
    height: 124px;
    background: #fff;
    border-radius: 7px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: 78px auto;
    place-items: center;
    padding: 8px;
}

.quick-icon {
    width: 76px;
    height: 70px;
    display: grid;
    place-items: center;
    color: #ff5960;
    font-size: 28px;
    font-weight: 700;
}

.quick-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    grid-area: 1 / 1;
    z-index: 2;
}

.fallback {
    grid-area: 1 / 1;
}

.quick-title {
    font-size: 16px;
    text-align: center;
    line-height: 1.15;
}

.latest {
    padding: 0 16px 22px;
}

.latest h2 {
    font-size: 26px;
    margin: 0 0 24px 8px;
}

.course-row {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.course-card {
    min-width: 82%;
    height: 205px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.course-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 2px;
    padding: 12px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 560px);
    height: 86px;
    background: #1395e8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 40;
}

.bottom-nav a {
    color: #fff;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    font-size: 14px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .85);
    min-width: 0;
}

.bottom-nav a:first-child {
    border-left: 0;
}

.bottom-nav span {
    font-size: 26px;
    line-height: 1;
}

.page-topbar {
    height: 92px;
    grid-template-columns: 46px 1fr 58px;
    padding-top: 22px;
}

.page-topbar h1 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.back-page {
    color: #fff;
    font-size: 44px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.quiz-page {
    padding: 16px 14px 24px;
}

.quiz-hero {
    background: linear-gradient(135deg, #1594e8, #0665c7);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
}

.quiz-hero h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.quiz-hero p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.4;
}

.quiz-hero-count {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.quiz-hero-count strong {
    font-size: 24px;
    line-height: 1;
}

.quiz-hero-count span {
    font-size: 12px;
}

.quiz-search {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 10px;
}

.quiz-search input {
    min-width: 0;
    height: 44px;
    border: 0;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 15px;
}

.quiz-search button,
.start-button {
    border: 0;
    border-radius: 9px;
    background: #071654;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 18px 0 14px;
}

.category-tabs a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    font-size: 14px;
    font-weight: 700;
}

.category-tabs a.active {
    background: var(--blue);
    color: #fff;
}

.quiz-list {
    display: grid;
    gap: 14px;
}

.quiz-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
    border-left: 5px solid var(--blue);
}

.quiz-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.quiz-card-head > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quiz-badge {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: #20b56b;
    font-size: 13px;
    font-weight: 800;
}

.quiz-badge.paid {
    background: #f06b2f;
}

.quiz-category {
    color: #555;
    font-size: 13px;
    font-weight: 700;
    background: #f2f7fb;
    border-radius: 999px;
    padding: 6px 10px;
}

.quiz-live-dot {
    color: #0b8f54;
    background: #dcfce7;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.quiz-card h3 {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.3;
}

.quiz-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.quiz-meta span {
    min-height: 54px;
    border-radius: 7px;
    background: #f2f7fb;
    display: grid;
    place-items: center;
    align-content: center;
    color: #666;
    font-size: 12px;
    text-align: center;
    font-weight: 700;
}

.quiz-meta strong {
    color: #222;
    font-size: 16px;
}

.start-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0 18px;
}

.quiz-card-foot {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.quiz-card-foot small {
    color: #0b8f54;
    font-weight: 800;
}

.simple-page {
    padding: 16px;
    animation: pageRise .32s ease both;
}

.simple-card,
.list-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 14px;
}

.simple-card h2,
.simple-card h3,
.list-card h3 {
    margin: 0 0 8px;
}

.simple-card p,
.list-card p {
    margin: 0 0 10px;
    color: #666;
    line-height: 1.4;
}

.list-stack {
    display: grid;
    gap: 14px;
}

.list-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    animation: cardIn .3s ease both;
}

.list-card img {
    width: 96px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: #edf2f7;
}

.page-button,
.link-grid a {
    min-height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #fff;
    background: var(--blue);
    font-weight: 800;
}

.card-actions {
    margin-top: 10px;
}

.card-actions .page-button {
    min-height: 38px;
    font-size: 14px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.quiz-attempt {
    display: grid;
    gap: 14px;
    animation: pageRise .34s ease both;
}

.quiz-question-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
    animation: cardIn .34s ease both;
}

.quiz-question-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.35;
}

.quiz-question-card label {
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-top: 8px;
    background: #fff;
    font-weight: 700;
}

.quiz-question-card label.correct-option {
    border-color: #10b981;
    background: #ecfdf5;
}

.question-exp {
    margin: 12px 0 0;
    color: #0f766e;
    background: #ecfeff;
    border-radius: 8px;
    padding: 10px;
    line-height: 1.4;
}

.daily-quiz-hero {
    background: linear-gradient(135deg, #0f8fe8, #0b63c7);
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    animation: cardIn .34s ease both;
}

.daily-quiz-hero span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.daily-quiz-hero h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.daily-quiz-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    line-height: 1.45;
}

.daily-quiz-list {
    display: grid;
    gap: 14px;
}

.daily-options {
    display: grid;
    gap: 10px;
}

.daily-option {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
    color: #172033;
    display: grid;
    grid-template-columns: 1fr 30px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.daily-option:hover {
    transform: translateY(-1px);
    border-color: #1395e8;
}

.daily-option.correct {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
}

.daily-option.wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.daily-option:disabled {
    cursor: default;
    opacity: 1;
}

.daily-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.daily-option.correct .daily-icon {
    background: #16a34a;
}

.daily-option.wrong .daily-icon {
    background: #ef4444;
}

.daily-explanation {
    margin: 12px 0 0;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 10px 12px;
    font-weight: 700;
    line-height: 1.45;
}

.quiz-submit {
    width: 100%;
    border: 0;
    margin-bottom: 16px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 14px;
    text-align: center;
    animation: resultPop .38s ease both;
}

.result-card h2 {
    margin: 0 0 8px;
}

.result-card strong {
    display: block;
    color: var(--blue);
    font-size: 34px;
    line-height: 1;
}

.result-card p {
    color: #666;
    margin: 8px 0 14px;
    font-weight: 800;
}

.rank-card h2 {
    margin-bottom: 12px;
}

.rank-list {
    display: grid;
    gap: 9px;
}

.rank-row {
    min-height: 52px;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.rank-number {
    min-height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #071654;
    font-weight: 900;
}

.rank-row strong {
    min-width: 0;
    color: #172033;
}

.rank-row small {
    color: #0b8f54;
    font-weight: 900;
}

.test-status-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.test-status-bar div {
    min-height: 64px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.test-status-bar strong {
    color: #071654;
    font-size: 20px;
    line-height: 1;
}

.test-status-bar span {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.timer-box {
    background: #071654 !important;
}

.timer-box strong,
.timer-box span {
    color: #fff;
}

.timer-box.danger {
    background: #ef4444 !important;
}

.result-review {
    display: grid;
    gap: 14px;
}

.readonly-option {
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 24px 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    margin-top: 8px;
    background: #fff;
    font-weight: 700;
}

.result-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #fff;
    font-size: 9px;
    line-height: 1;
}

.readonly-option.selected-option .result-radio {
    border-color: var(--blue);
    background: var(--blue);
}

.readonly-option.selected-option .result-radio::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}

.readonly-option.correct-option .result-radio {
    border-color: #10b981;
}

.readonly-option.correct-option.selected-option .result-radio {
    background: #10b981;
}

.readonly-option.wrong-option .result-radio {
    border-color: #ef4444;
    background: #ef4444;
}

.readonly-option b {
    border-radius: 999px;
    padding: 4px 8px;
    color: #fff;
    background: #64748b;
    font-size: 11px;
}

.readonly-option.correct-option {
    border-color: #10b981;
    background: #ecfdf5;
}

.readonly-option.correct-option b:last-child {
    background: #10b981;
}

.readonly-option.wrong-option {
    border-color: #ef4444;
    background: #fef2f2;
}

.readonly-option.wrong-option b {
    background: #ef4444;
}

@media (max-width: 560px) {
    .readonly-option {
        grid-template-columns: 24px 1fr;
    }

    .readonly-option b {
        width: max-content;
        margin-left: 32px;
    }
}

.public-dashboard-hero {
    border-radius: 14px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, #1297e8, #071654);
    box-shadow: var(--shadow);
    animation: pageRise .32s ease both;
}

.purchase-card {
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.purchase-card img {
    width: 100%;
    max-height: 220px;
    border-radius: 10px;
    object-fit: cover;
    background: #eef6ff;
}

.purchase-card strong {
    color: #071654;
    font-size: 22px;
}

.purchase-actions {
    display: grid;
    gap: 10px;
}

.secondary-button {
    background: #071654;
}

.error-text {
    color: #ef4444 !important;
    font-weight: 800;
}

.payment-note {
    margin: 0;
    color: #64748b;
    font-weight: 800;
}

.student-profile-card .page-button {
    margin-top: 10px;
    margin-right: 8px;
}

.student-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.student-title-row h2 {
    margin: 0;
}

.logout-chip {
    min-height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    color: #fff;
    background: #ef4444;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 auto;
}

.mini-course-list {
    display: grid;
    gap: 10px;
}

.mini-course-list a {
    min-height: 72px;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    background: #f8fafc;
}

.mini-course-list img {
    width: 74px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
}

.mini-course-list strong,
.mini-course-list small {
    display: block;
}

.mini-course-list small {
    margin-top: 4px;
    color: #0b8f54;
    font-weight: 800;
}

.video-grid {
    display: grid;
    gap: 14px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    animation: cardIn .32s ease both;
}

.video-frame {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #111827;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h3 {
    margin: 10px 4px 2px;
    font-size: 17px;
    line-height: 1.35;
}

.ebook-card {
    display: grid;
    gap: 8px;
}

.ebook-card strong {
    color: #071654;
    font-size: 18px;
}

.comment-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.comment-list {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.comment-list div {
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.comment-list strong,
.comment-list p {
    display: block;
    margin: 0;
}

.comment-list p {
    margin-top: 4px;
    color: #555;
    line-height: 1.35;
}

.public-dashboard-hero h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.public-dashboard-hero p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .88);
}

.whatsapp-button {
    min-height: 46px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: #25d366;
    color: #fff;
    font-weight: 900;
}

.public-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.public-stat-grid article {
    min-height: 78px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    align-content: center;
}

.public-stat-grid strong {
    color: var(--blue);
    font-size: 23px;
    line-height: 1;
}

.public-stat-grid span {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

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

.dashboard-links a {
    min-height: 58px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #071654;
    font-weight: 900;
}

.legal-links {
    margin: 16px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.legal-page-card p {
    margin-bottom: 12px;
}

.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 22, 84, .58);
    animation: resultPop .24s ease both;
}

.promo-popup.closed {
    display: none;
}

.promo-box {
    width: min(100%, 430px);
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.promo-box img {
    width: 100%;
    display: block;
    max-height: 440px;
    object-fit: cover;
}

.promo-box strong {
    display: block;
    padding: 13px 16px;
    color: #071654;
    font-size: 17px;
}

.promo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

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

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: scale(.98) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes resultPop {
    from {
        opacity: 0;
        transform: scale(.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    main,
    .home-main,
    .simple-page,
    .quiz-attempt,
    .quiz-question-card,
    .result-card,
    .public-dashboard-hero {
        animation: none;
    }
}

@media (max-width: 430px) {
    .topbar {
        height: 104px;
        padding-left: 14px;
        padding-right: 14px;
        grid-template-columns: 1fr 52px;
    }

    .banner-row {
        padding: 12px 14px 20px;
    }

    .banner-card {
        height: 170px;
    }

    .rank-row {
        grid-template-columns: 48px 1fr;
    }

    .rank-row small {
        grid-column: 2;
    }

    .quick-grid {
        gap: 18px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .quick-card {
        height: 116px;
    }

    .quick-title,
    .bottom-nav a {
        font-size: 15px;
    }

    .page-topbar {
        height: 88px;
    }

    .quiz-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .list-card {
        grid-template-columns: 78px 1fr;
        gap: 10px;
    }

    .list-card img {
        width: 78px;
        height: 64px;
    }

    .bottom-nav {
        height: 78px;
    }

    .bottom-nav a {
        font-size: 12px;
        gap: 4px;
        padding: 0 3px;
    }

    .bottom-nav span {
        font-size: 22px;
    }

    .side-menu {
        top: 96px;
        right: 8px;
        left: 8px;
        width: auto;
        border-radius: 14px;
    }
}
