body {
    background: #f6f8fc;
    color: #0f172a;
}

.auth-page {
    background:
        radial-gradient(1100px 480px at 8% -10%, rgba(13, 110, 253, 0.18) 0%, rgba(13, 110, 253, 0) 60%),
        radial-gradient(900px 420px at 100% 0%, rgba(34, 197, 94, 0.16) 0%, rgba(34, 197, 94, 0) 55%),
        radial-gradient(900px 600px at 50% 110%, rgba(236, 72, 153, 0.14) 0%, rgba(236, 72, 153, 0) 60%),
        linear-gradient(180deg, #f6f8fc 0%, #eef2fb 100%);
    min-height: 100vh;
}

.auth-shell {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.auth-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.18);
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 0.75rem;
}

.btn-google {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d0d7de;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
}

.btn-google:hover,
.btn-google:focus {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.top-banner {
    background: #0d6efd;
    font-size: 0.9rem;
}

.main-nav {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.main-nav-toggler {
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.55rem;
}

.main-nav-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

@media (max-width: 991.98px) {
    .main-nav .navbar-collapse.collapse.show {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        margin-top: 0.35rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e8eef5;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 10px);
    }

    .main-nav .main-nav-menu {
        margin-left: 0 !important;
        padding-bottom: 0.25rem;
    }

    .main-nav .main-nav-menu > .nav-item {
        border-bottom: 1px solid #eef2f7;
    }

    .main-nav .main-nav-menu > .nav-item:last-child {
        border-bottom: 0;
    }

    .main-nav .main-nav-menu .nav-link {
        padding: 0.9rem 0.35rem;
        font-weight: 500;
        color: #1e293b;
        border-radius: 0.375rem;
    }

    .main-nav .main-nav-menu .nav-link:hover,
    .main-nav .main-nav-menu .nav-link:focus {
        background: #f1f5f9;
        color: #0d6efd;
    }

    .main-nav .main-nav-menu .nav-link.active {
        color: #0d6efd;
        background: rgba(13, 110, 253, 0.07);
    }

    .main-nav .main-nav-menu .nav-item.dropdown .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 0.9rem 0.35rem;
    }

    .main-nav .main-nav-menu .dropdown-menu {
        width: 100%;
    }

    .main-nav .main-nav-menu .nav-item-cta {
        padding-top: 0.65rem;
        margin-top: 0.15rem;
    }

    .main-nav .main-nav-menu .nav-item-cta .btn {
        min-height: 2.75rem;
        font-size: 1rem;
        font-weight: 600;
    }

    .main-nav .nav-search {
        margin-top: 0.25rem;
        padding-top: 0.85rem;
        margin-bottom: 0.35rem;
        border-top: 1px solid #e2e8f0;
        background: #fff;
    }

    .nav-search-input::placeholder {
        font-size: 0.8125rem;
    }
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    display: inline-block;
}

.site-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: inline-block;
}

.nav-search {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 460px;
}

.nav-search-input {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-search .form-control {
    border-radius: 0.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

@media (min-width: 992px) {
    .main-nav.navbar {
        flex-wrap: nowrap;
    }

    .main-nav .navbar-collapse {
        flex-wrap: nowrap !important;
        min-width: 0;
        flex: 1 1 0 !important;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end !important;
        gap: 0.5rem 1rem;
    }

    .main-nav .main-nav-menu {
        flex-wrap: nowrap !important;
        flex-direction: row;
        margin-left: 0 !important;
    }

    .main-nav .main-nav-menu > .nav-item {
        flex-shrink: 0;
    }

    .main-nav .main-nav-menu .nav-link,
    .main-nav .main-nav-menu .dropdown-toggle {
        white-space: nowrap;
    }

    .main-nav .navbar-brand {
        flex-shrink: 0;
    }

    .nav-search {
        flex: 0 1 auto !important;
        flex-shrink: 1;
        min-width: 0;
        max-width: 320px;
        width: auto;
    }

    .nav-search .form-control {
        border-radius: 999px;
    }
}

@media (max-width: 991.98px) {
    .nav-search {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }

    .nav-search-input,
    .nav-search-btn {
        min-height: 2.75rem;
    }

    .nav-search-btn {
        min-width: 5.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.hero {
    background: linear-gradient(140deg, #ffffff 0%, #e9f1ff 100%);
    border: 1px solid #dbe7ff;
}

.hero-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-art {
    position: relative;
    min-height: 200px;
    width: 100%;
}

.hero-art .blob {
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
}

.blob-1 {
    width: 210px;
    height: 210px;
    background: #dbeafe;
    top: 10px;
    left: 20px;
}

.blob-2 {
    width: 150px;
    height: 150px;
    background: #bfdbfe;
    bottom: 20px;
    left: 120px;
}

.blob-3 {
    width: 130px;
    height: 130px;
    background: #93c5fd;
    top: 45px;
    right: 35px;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    border-color: #dbeafe !important;
}

.hero-home-questions {
    border-color: #dbeafe !important;
}

.section-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}

.section-title {
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
}

.step-card .card-body,
.info-card .card-body {
    font-weight: 500;
}

.testimonial-card .card-body {
    font-weight: 400;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dbeafe;
    flex-shrink: 0;
}

.favourite-star {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.favourite-star:hover,
.favourite-star:focus {
    color: #f59e0b;
}

.favourite-star.is-active {
    color: #f59e0b;
}

.st-prep-important-count {
    font-size: 0.7rem;
    line-height: 1.1;
    min-width: 1.25rem;
    text-align: center;
}

.st-prep-q-actions {
    width: 100%;
    margin-top: 0;
}

.st-prep-q-header .st-prep-chapter-bar + .st-prep-q-actions {
    margin-top: 0.15rem;
}

.st-prep-q-fav-wrap {
    min-width: 2rem;
}

.st-prep-chapter-bar {
    display: block;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.65rem;
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    color: #1e40af;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.35rem;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-prep-q-meta {
    row-gap: 0.35rem;
}

.st-wrong-quiz-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.st-wrong-answer-card .st-wrong-quiz-context .badge {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-question-solve-pct {
    font-size: 0.75rem;
    white-space: nowrap;
}

.student-q-speak-btn {
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.student-q-speak-btn:hover,
.student-q-speak-btn:focus-visible {
    color: #1976d2;
    border-color: #2196f3;
    outline: none;
}

.student-q-speak-btn.is-speaking {
    background: #2196f3;
    border-color: #2196f3;
    color: #fff;
}

.student-q-speak-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-q-speak-icon svg {
    display: block;
}

.hero-testimonial {
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.06);
}

.hero-testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.45;
}

.hero-testimonial-avatar {
    object-fit: cover;
}

.home-features-embed,
.home-practice-embed,
.home-score-more-embed {
    scroll-margin-top: 5.5rem;
}

.home-left-embeds .home-features-embed .section-title,
.home-left-embeds .home-practice-embed .section-title,
.home-left-embeds .home-score-more-embed .section-title {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.testimonial-showcase {
    position: relative;
    border: 5px solid #63d4d7;
    background: #fff;
    border-radius: 2px;
    padding: 2.25rem 2rem 3.5rem;
    min-height: 320px;
}

.testimonial-quote-mark {
    position: absolute;
    left: 0.9rem;
    top: -0.9rem;
    font-size: 4rem;
    color: #374151;
    font-weight: 700;
    line-height: 1;
    background: #fff;
    padding: 0 0.25rem;
}

.testimonial-slide {
    text-align: center;
    color: #6b7280;
}

.testimonial-slide-message {
    max-width: 720px;
    margin: 0 auto 1.2rem;
    font-size: 1.1rem;
    font-style: italic;
}

.testimonial-divider {
    width: 250px;
    max-width: 75%;
    margin: 0.65rem auto 1.25rem;
    border-top: 1px solid #d1d5db;
}

.testimonial-divider::after {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin: -8px auto 0;
    background: #fff;
    border-left: 1px solid #d1d5db;
    border-top: 1px solid #d1d5db;
    transform: rotate(45deg);
}

.testimonial-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-showcase .testimonial-avatar {
    width: 72px;
    height: 72px;
    border: 3px solid #e5e7eb;
    margin-bottom: 0.7rem;
}

.testimonial-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #4b5563;
}

.testimonial-meta {
    color: #6b7280;
}

.testimonial-controls {
    position: absolute;
    right: 0.9rem;
    bottom: -0.9rem;
    display: flex;
    gap: 0.4rem;
}

.testimonial-nav-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #374151;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.testimonial-nav-btn:hover {
    background: #111827;
}

.chart-card canvas {
    width: 100% !important;
}

.timeline-list {
    display: grid;
    gap: 0.75rem;
}

.timeline-list div {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-list span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Progress / quiz share toolbar — one row when width allows, wraps on narrow screens */
.st-share-toolbar {
    width: 100%;
}

.st-share-row {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 0.65rem;
    row-gap: 0.65rem;
}

.st-share-hit {
    position: relative;
    display: inline-flex;
}

.st-share-done-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.st-share-done-badge--tile {
    top: -3px;
    right: -3px;
}

.st-share-hit.is-shared .st-share-done-badge {
    opacity: 1;
    transform: scale(1);
}

.st-share-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.st-share-circle:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.st-share-circle--fb {
    background: #1877f2;
}

.st-share-circle--twitter {
    background: #000;
    color: #fff;
}

.st-share-circle--twitter svg path {
    fill: #fff;
}

.st-share-circle--pinterest {
    background: #bd081c;
}

.st-share-circle--whatsapp {
    background: #25d366;
}

.st-share-tile {
    width: 48px;
    height: 48px;
    border-radius: 10px 6px 10px 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.st-share-tile:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.st-share-tile--linkedin {
    background: #0a66c2;
}

.st-share-tile--pocket {
    background: #ef4056;
}

.st-share-tile--print {
    background: #16a34a;
}

.st-share-tile--pdf {
    background: #dc2626;
}

.st-share-tile--native {
    background: #475569;
}

/* Student dashboard — quiz scores table: stack rows on phones (no horizontal scroll) */
@media (max-width: 767.98px) {
    .student-quiz-scores-wrap.table-responsive {
        overflow-x: visible;
        -webkit-overflow-scrolling: auto;
    }

    .student-quiz-scores-table thead {
        display: none;
    }

    .student-quiz-scores-table tbody,
    .student-quiz-scores-table tbody tr {
        display: block;
        width: 100%;
    }

    .student-quiz-scores-table tbody tr {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        padding: 0.65rem 0.85rem;
        margin-bottom: 0.65rem;
        background: rgba(248, 250, 252, 0.95);
    }

    .student-quiz-scores-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .student-quiz-scores-table tbody td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.35rem 0.75rem;
        width: 100%;
        padding: 0.4rem 0;
        border: 0;
    }

    .student-quiz-scores-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .student-quiz-scores-table tbody td.student-quiz-scores-col--action {
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.55rem;
        margin-top: 0.15rem;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }

    .student-quiz-scores-table tbody td.student-quiz-scores-col--action::before {
        margin-bottom: 0.15rem;
    }

    .student-quiz-scores-table tbody td.student-quiz-scores-col--action .btn {
        width: 100%;
        min-height: 2.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
}

@media print {
    body.st-print-progress .top-banner,
    body.st-print-progress nav.main-nav,
    body.st-print-progress footer {
        display: none !important;
    }

    body.st-print-progress main.container > section.app-section:not(#home) {
        display: none !important;
    }

    body.st-print-progress #home.app-section {
        display: block !important;
    }

    body.st-print-progress #home .hero .row > .col-lg-6:last-child {
        display: none !important;
    }

    body.st-print-progress #home .hero .row > .col-lg-6:first-child > *:not(.home-left-embeds) {
        display: none !important;
    }

    body.st-print-progress #home .home-left-embeds .home-features-embed,
    body.st-print-progress #home .home-left-embeds .home-practice-embed,
    body.st-print-progress #home .home-left-embeds .home-score-more-embed {
        display: none !important;
    }

    body.st-print-progress #home .hero .row > .col-lg-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    body.st-print-progress #home .home-progress-embed {
        display: block !important;
    }

    body.st-print-progress #home .hero > .row {
        display: flex !important;
    }

    body.st-print-progress .st-share-toolbar {
        display: none !important;
    }

    body.st-print-exam-result nav,
    body.st-print-exam-result footer {
        display: none !important;
    }

    body.st-print-exam-result .exam-result-actions,
    body.st-print-exam-result #resultShareBar {
        display: none !important;
    }
}

/* Tickets menu — unread count badge (top-right) */
.st-ticket-nav-item {
    padding-right: 2rem !important;
}

.st-ticket-nav-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.35rem;
    font-size: 0.625rem;
    line-height: 1.15;
    min-width: 1.1rem;
    padding: 0.2em 0.4em;
    font-weight: 700;
    border: 1px solid #fff;
}

/* Ticket conversation thread */
.st-ticket-thread {
    max-height: 20rem;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.st-ticket-bubble {
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
    max-width: 100%;
}

.st-ticket-bubble--student {
    background: #e7f1ff;
    border: 1px solid #cfe2ff;
    margin-right: 1.5rem;
}

.st-ticket-bubble--admin {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-left: 1.5rem;
}

.st-ticket-bubble--system {
    background: #fff8e6;
    border: 1px dashed #ffc107;
    font-style: italic;
}

