/* ============================================================
   DAILY PRACTICE PAGE — scoped under .daily-practice-page.
   Extracted from the inline <style> block in daily-practice.ejs.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

.daily-practice-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

.daily-practice-page * { box-sizing: border-box; }

/* ── STREAK BANNER ── */
.daily-practice-page .streak-wrap {
    background: linear-gradient(135deg, var(--primary-600, #4338ca) 0%, var(--primary-800, #312e81) 100%);
    padding: .85rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, .25);
}

.daily-practice-page .streak-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, .15) 0%, transparent 60%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, .12) 0%, transparent 60%);
}

.daily-practice-page .streak-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.daily-practice-page .sb-left,
.daily-practice-page .sb-right {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.daily-practice-page .sb-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50px;
    padding: .28rem .8rem;
    font-size: .75rem;
    font-weight: 600;
    color: #e0e7ff;
    letter-spacing: .2px;
    white-space: nowrap;
}

.daily-practice-page .sb-pill i {
    color: #a5b4fc;
    font-size: .68rem;
}

.daily-practice-page .streak-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .1rem .75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .12);
    white-space: nowrap;
    transition: all .2s ease;
    position: relative;
}

.daily-practice-page .sb-hot {
    background: rgba(249, 115, 22, .25);
    border-color: rgba(249, 115, 22, .35);
}

.daily-practice-page .sb-risk {
    background: rgba(239, 68, 68, .2);
    border-color: rgba(239, 68, 68, .3);
}

.daily-practice-page .sb-new {
    background: rgba(255, 255, 255, .08);
}

.daily-practice-page .sb-fire {
    font-size: 1.2rem;
    animation: dp-flame 1.6s ease-in-out infinite;
}

@keyframes dp-flame {

    0%,
    100% {
        transform: scale(1) rotate(-2deg);
    }

    50% {
        transform: scale(1.2) rotate(2deg);
    }
}

.daily-practice-page .sb-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .25rem;
}

.daily-practice-page .sb-num {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Sora', sans-serif;
}

.daily-practice-page .sb-lbl {
    font-size: .7rem;
    color: rgba(255, 255, 255, .6);
    text-transform: lowercase;
}

.daily-practice-page .sb-alertdot {
    width: 8px;
    height: 8px;
    background: #f87171;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -2px;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, .3);
    animation: dp-adot 1.5s infinite;
}

@keyframes dp-adot {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.5)
    }
}

.daily-practice-page .e-obtained-marks {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: .2rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    margin-right: .35rem;
    white-space: nowrap;
}

.daily-practice-page .sb-warn {
    font-size: .72rem;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: .28rem;
    font-weight: 500;
}

.daily-practice-page .sb-best {
    font-size: .72rem;
    color: rgb(246, 242, 242);
    display: flex;
    align-items: center;
    gap: .28rem;
}

.daily-practice-page .sb-best i {
    color: #fbbf24;
}

/* ── LAYOUT ── */
.daily-practice-page .practice-section {
    padding: 1.5rem 0 3rem;
}

.daily-practice-page .practice-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 1.4rem;
    align-items: start;
}

.daily-practice-page .practice-grid-solo {
    grid-template-columns: 1fr;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── COLUMN HEADS ── */
.daily-practice-page .col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .8rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.daily-practice-page .col-head-left {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    flex-wrap: wrap;
}

.daily-practice-page .col-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    font-family: 'Sora', sans-serif;
    letter-spacing: -.2px;
}

.daily-practice-page .col-title i {
    color: #6366f1;
    font-size: .8rem;
}

.daily-practice-page .col-sub {
    font-size: .7rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: .1rem .5rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── EXAM CONTAINER ── */
.daily-practice-page .exam-scroll {
    height: 580px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.daily-practice-page .exam-scroll::-webkit-scrollbar {
    width: 4px;
}

.daily-practice-page .exam-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.daily-practice-page .exam-scroll::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 10px;
}

.daily-practice-page .exam-scroll::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
}

/* ── EXAM ROW ── */
.daily-practice-page .exam-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background .15s, transform .15s;
    position: relative;
}

.daily-practice-page .exam-row:last-child {
    border-bottom: none;
}

.daily-practice-page .exam-row:hover {
    background: #f8f9ff;
}

.daily-practice-page .row-done {
    background: rgba(22, 163, 74, .03);
}

.daily-practice-page .row-done:hover {
    background: rgba(22, 163, 74, .06);
}

.daily-practice-page .row-prog {
    background: rgba(245, 158, 11, .03);
}

.daily-practice-page .row-prog:hover {
    background: rgba(245, 158, 11, .06);
}

.daily-practice-page .exam-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: transparent;
    transition: background .15s;
}

.daily-practice-page .exam-row:hover::before {
    background: #6366f1;
}

.daily-practice-page .row-done::before {
    background: #16a34a !important;
}

.daily-practice-page .row-prog::before {
    background: #f59e0b !important;
}

.daily-practice-page .e-status {
    flex-shrink: 0;
}

.daily-practice-page .es-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    transition: transform .2s;
}

.daily-practice-page .exam-row:hover .es-icon {
    transform: scale(1.08);
}

.daily-practice-page .es-idle {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-light);
}

.daily-practice-page .es-done {
    background: linear-gradient(135deg, #bbf7d0, #dcfce7);
    color: #15803d;
    box-shadow: 0 2px 8px rgba(22, 163, 74, .2);
}

.daily-practice-page .es-prog {
    background: linear-gradient(135deg, #fde68a, #fef3c7);
    color: #b45309;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .2);
}

.daily-practice-page .e-info {
    flex: 1;
    min-width: 0;
}

.daily-practice-page .e-title {
    font-size: .845rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .25rem;
    line-height: 1.35;
    font-family: 'Sora', sans-serif;
    letter-spacing: -.1px;
}

.daily-practice-page .e-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .22rem;
}

.daily-practice-page .em-tag {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    font-size: .62rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: .07rem .42rem;
    font-weight: 500;
    white-space: nowrap;
}

.daily-practice-page .em-tag i {
    font-size: .55rem;
}

.daily-practice-page .em-free {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

.daily-practice-page .em-ok {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.daily-practice-page .em-paid {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.daily-practice-page .e-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    line-height: 1.2;
}

.daily-practice-page .e-mrp {
    font-size: .6rem;
    color: #9ca3af;
}

.daily-practice-page .e-fee {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
}

.daily-practice-page .e-date {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    font-size: .63rem;
    font-weight: 600;
    border-radius: 6px;
    padding: .22rem .55rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Sora', sans-serif;
    letter-spacing: .1px;
}

.daily-practice-page .e-date i {
    font-size: .56rem;
}

.daily-practice-page .dl-today {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}

.daily-practice-page .dl-old {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.daily-practice-page .e-cta {
    flex-shrink: 0;
}

.daily-practice-page .ebtn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: .3rem;
    padding: .38rem .85rem;
    border-radius: 8px;
    font-size: .73rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
    white-space: nowrap;
    font-family: 'Sora', sans-serif;
    letter-spacing: .1px;
}

.daily-practice-page .ebtn span {
    font-size: .73rem;
}

.daily-practice-page .ebtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
}

.daily-practice-page .ebtn:active {
    transform: translateY(0);
}

.daily-practice-page .ebtn i {
    font-size: .64rem;
    flex-shrink: 0;
}

.daily-practice-page .eb-start {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}

.daily-practice-page .eb-start:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

.daily-practice-page .eb-resume {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .3);
}

.daily-practice-page .eb-resume:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.daily-practice-page .eb-score {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, .3);
}

.daily-practice-page .eb-score:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.daily-practice-page .eb-buy {
    background: transparent;
    color: #6366f1;
    border: 1.5px solid #c7d2fe;
}

.daily-practice-page .eb-buy:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-color: transparent;
}

/* ── SIDE CARDS ── */
.daily-practice-page .col-side {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.daily-practice-page .side-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    padding: 1rem 1.05rem;
    transition: box-shadow .2s;
    min-width: 0;
}

.daily-practice-page .side-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .09);
}

/* PDF list (side panel — distinct from pdf-modal.css's PDF viewer) */
.daily-practice-page .pdf-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    max-height: 550px;
    overflow-y: auto;
}

.daily-practice-page .pdf-list::-webkit-scrollbar {
    width: 3px;
}

.daily-practice-page .pdf-list::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 10px;
}

.daily-practice-page .pdf-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .7rem;
    border-radius: 9px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    transition: all .18s;
    cursor: default;
}

.daily-practice-page .pdf-row:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(99, 102, 241, .1);
}

.daily-practice-page .pdf-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: .9rem;
    box-shadow: 0 2px 6px rgba(220, 38, 38, .15);
}

.daily-practice-page .pdf-info {
    flex: 1;
    min-width: 0;
}

.daily-practice-page .pdf-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Sora', sans-serif;
}

.daily-practice-page .pdf-sub {
    font-size: .67rem;
    color: var(--text-secondary);
}

.daily-practice-page .pdf-date {
    font-size: .62rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: .2rem;
    margin-top: .12rem;
}

.daily-practice-page .pdf-dl {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 7px;
    background: #ede9fe;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    text-decoration: none;
    transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
    border: 1px solid #c4b5fd;
}

.daily-practice-page .pdf-dl:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    transform: scale(1.12) rotate(-6deg);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
}

.daily-practice-page .pdf-empty {
    text-align: center;
    padding: 1.25rem .5rem;
    color: var(--text-secondary);
}

.daily-practice-page .pdf-empty i {
    font-size: 1.6rem;
    margin-bottom: .45rem;
    display: block;
    opacity: .4;
    color: #6366f1;
}

.daily-practice-page .pdf-empty p {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 .2rem;
    font-family: 'Sora', sans-serif;
}

.daily-practice-page .pdf-empty small {
    font-size: .7rem;
}

/* Progress */
.daily-practice-page .prog-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.daily-practice-page .prog-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .48rem .1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: .79rem;
    flex-wrap: wrap;
    gap: .3rem;
}

.daily-practice-page .prog-row:last-child {
    border-bottom: none;
}

.daily-practice-page .pr-lbl {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: .32rem;
    font-size: .78rem;
}

.daily-practice-page .pr-lbl i {
    font-size: .68rem;
    color: #818cf8;
    width: 13px;
    text-align: center;
}

.daily-practice-page .pr-val {
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: .88rem;
}

.daily-practice-page .pr-green {
    color: #16a34a;
}

.daily-practice-page .pr-orange {
    color: #f97316;
}

/* Empty state */
.daily-practice-page .empty-box {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.daily-practice-page .empty-box i {
    font-size: 2.2rem;
    color: #a5b4fc;
    margin-bottom: .85rem;
    display: block;
}

.daily-practice-page .empty-box h3 {
    font-size: .92rem;
    color: var(--text-primary);
    margin-bottom: .35rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

.daily-practice-page .empty-box p {
    font-size: .8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Modal — scoped since .modal-backdrop is appended as a child of
   <body class="daily-practice-page">, so it IS a valid descendant. */
.daily-practice-page .modal-backdrop.show {
    opacity: .5;
}

.daily-practice-page #comboSuggestionModal .modal-content {
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f5f3ff);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    border: none;
    text-align: center;
    position: relative;
}

.daily-practice-page #comboSuggestionModal .modal-header {
    border-bottom: none;
    justify-content: center;
}

.daily-practice-page #comboSuggestionModal .modal-title {
    font-size: 1.2rem;
    color: #4f46e5;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
}

.daily-practice-page #comboSuggestionModal .btn-close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #e9ecef;
    opacity: 1;
    border: none;
    z-index: 1055;
}

.daily-practice-page #comboSuggestionModal .btn-close:hover {
    background: #4f46e5;
}

.daily-practice-page #comboSuggestionModal .btn {
    padding: 11px 18px;
    font-size: .88rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all .25s;
    font-family: 'Sora', sans-serif;
}

.daily-practice-page #comboSuggestionModal .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
}

.daily-practice-page #comboSuggestionModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .4);
}

.daily-practice-page #comboSuggestionModal .btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, .3);
}

.daily-practice-page #comboSuggestionModal .btn-success:hover {
    transform: translateY(-2px);
}

.daily-practice-page .e-score-box {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 50px;
    padding: .07rem .42rem;
}

.daily-practice-page .score-label {
    font-size: .62rem;
    font-weight: 500;
    color: #15803d;
}

.daily-practice-page .score-value {
    font-size: .62rem;
    font-weight: 700;
    color: #15803d;
}

/* ── PDF open button inside pdf-row ── */
.pdf-open-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 7px;
    background: #ede9fe;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    border: 1px solid #c4b5fd;
    transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
    flex-shrink: 0;
}

.pdf-row:hover .pdf-open-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    transform: scale(1.12);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
}

/* ══ PDF MODAL ══ */
.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 19999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pdf-modal.open {
    opacity: 1;
    pointer-events: all;
}

.pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pdf-modal-panel {
    position: relative;
    z-index: 1;
    width: calc(100% - 24px);
    max-width: 1080px;
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.26s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pdf-modal.open .pdf-modal-panel {
    transform: translateY(0) scale(1);
}

.pdf-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.pdf-modal-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.pdf-modal-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.pdf-modal-meta {
    min-width: 0;
}

.pdf-modal-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.pdf-modal-date {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-top: 1px;
}

.pdf-modal-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pdf-modal-pages {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 3px 11px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.page-sep {
    opacity: 0.4;
    margin: 0 1px;
}

.pdf-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.pdf-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.pdf-modal-body {
    flex: 1;
    position: relative;
    background: #525659;
    overflow: hidden;
    min-height: 0;
}

.pdf-modal-spinner {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #525659;
}

.modal-spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pdf-modal-spinner p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.pdf-modal-error {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #525659;
    text-align: center;
    padding: 24px;
}

.pdf-modal-error i {
    font-size: 2rem;
    color: #f87171;
}

.pdf-modal-error h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.pdf-modal-error p {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.pdf-modal-canvas {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
}

.pdf-modal-canvas::-webkit-scrollbar {
    width: 7px;
}

.pdf-modal-canvas::-webkit-scrollbar-track {
    background: #3a3c3f;
}

.pdf-modal-canvas::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}

.pdf-modal-canvas::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
}

.pdf-page-wrapper {
    position: relative;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
    border-radius: 2px;
    line-height: 0;
    max-width: 100%;
}

.pdf-page-wrapper canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.pdf-page-wrapper .textLayer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 1;
    line-height: 1;
}

.pdf-page-wrapper .textLayer span {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
}

.pdf-page-wrapper .textLayer ::selection {
    background: rgba(59, 130, 246, 0.35);
    color: transparent;
}

.pdf-page-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* ── ≤1024px : tablets ── */
@media (max-width: 1024px) {
    .daily-practice-page .practice-grid {
        grid-template-columns: 1fr;
    }

    .daily-practice-page .col-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem;
    }

    .daily-practice-page .exam-scroll {
        height: 500px;
    }

    .pdf-modal-title { max-width: 340px; }
}

/* ── ≤900px : streak banner starts wrapping ── */
@media (max-width: 900px) {
    .daily-practice-page .streak-bar {
        justify-content: flex-start;
    }

    .daily-practice-page .sb-left,
    .daily-practice-page .sb-right {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── ≤768px : large phones / small tablets ── */
@media (max-width: 768px) {
    .daily-practice-page .practice-section {
        padding: 1.1rem 0 2.2rem;
    }

    .daily-practice-page .streak-wrap {
        padding: .7rem 0;
    }

    .daily-practice-page .streak-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
    }

    .daily-practice-page .sb-pill {
        font-size: .7rem;
        padding: .24rem .65rem;
    }

    .daily-practice-page .col-side {
        grid-template-columns: 1fr;
    }

    .daily-practice-page .side-card {
        padding: .9rem .9rem;
    }

    .daily-practice-page .exam-scroll {
        height: 460px;
        border-radius: 12px;
    }

    .pdf-modal-panel {
        width: calc(100% - 16px);
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
    }

    .pdf-modal-title { max-width: 220px; }
    .pdf-modal-icon { width: 32px; height: 32px; font-size: .8rem; }
}

/* ── ≤640px : phones ── */
@media (max-width: 640px) {
    .daily-practice-page .col-side {
        grid-template-columns: 1fr;
    }

    .daily-practice-page .exam-scroll {
        height: 420px;
    }

    .daily-practice-page .exam-row {
        flex-wrap: wrap;
        gap: .55rem;
        padding: .8rem .9rem;
    }

    .daily-practice-page .e-status { order: 1; }
    .daily-practice-page .e-info   { order: 2; width: calc(100% - 44px); }
    .daily-practice-page .e-price  { order: 4; }

    .daily-practice-page .e-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .daily-practice-page .e-date {
        order: 3;
        margin-left: auto;
    }

    .daily-practice-page .e-cta {
        order: 5;
        width: 100%;
    }

    .daily-practice-page .ebtn {
        flex: 1;
        width: 100%;
        justify-content: center;
    }

    .daily-practice-page .streak-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .daily-practice-page .sb-info { flex-wrap: wrap; }

    .daily-practice-page .col-head {
        flex-direction: row;
        align-items: center;
    }

    .daily-practice-page .col-title { font-size: .82rem; }

    .daily-practice-page .pdf-row {
        flex-wrap: wrap;
    }

    .daily-practice-page .pdf-info { width: calc(100% - 44px - .65rem); }

    /* PDF modal */
    .pdf-modal-bar { padding: .6rem .75rem; flex-wrap: wrap; }
    .pdf-modal-bar-right { gap: 6px; }
    .pdf-modal-title { max-width: 160px; font-size: .8rem; }
    .pdf-modal-date { font-size: .62rem; }
    .pdf-modal-pages { font-size: .64rem; padding: 2px 8px; }
    .pdf-modal-close { width: 28px; height: 28px; font-size: .75rem; }
    .pdf-modal-canvas { padding: 10px; }
}

/* ── ≤480px : small phones ── */
@media (max-width: 480px) {
    .daily-practice-page .streak-wrap { padding: .6rem 0; }
    .daily-practice-page .sb-pill { font-size: .66rem; padding: .22rem .55rem; }
    .daily-practice-page .sb-num { font-size: .85rem; }
    .daily-practice-page .sb-lbl { font-size: .64rem; }

    .daily-practice-page .col-title { font-size: .78rem; }
    .daily-practice-page .col-sub { font-size: .64rem; }

    .daily-practice-page .exam-scroll { height: 400px; }
    .daily-practice-page .es-icon { width: 30px; height: 30px; font-size: .72rem; }
    .daily-practice-page .e-title { font-size: .8rem; }
    .daily-practice-page .em-tag { font-size: .58rem; }
    .daily-practice-page .e-fee { font-size: .82rem; }
    .daily-practice-page .ebtn { font-size: .68rem; padding: .34rem .7rem; }

    .daily-practice-page .side-card { padding: .8rem .8rem; border-radius: 12px; }
    .daily-practice-page .pdf-icon { width: 30px; height: 30px; min-width: 30px; font-size: .8rem; }
    .daily-practice-page .pdf-name { font-size: .72rem; }
    .daily-practice-page .pdf-sub, .daily-practice-page .pdf-date { font-size: .6rem; }
    .daily-practice-page .pdf-dl, .pdf-open-btn { width: 27px; height: 27px; min-width: 27px; }

    .daily-practice-page .empty-box { padding: 2.5rem 1rem; }
    .daily-practice-page .empty-box i { font-size: 1.8rem; }
    .daily-practice-page .empty-box h3 { font-size: .85rem; }
    .daily-practice-page .empty-box p { font-size: .74rem; }

    .pdf-modal {
        align-items: flex-end;
    }

    .pdf-modal-panel {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        height: 97vh;
        max-height: 97vh;
    }

    .pdf-modal-title {
        max-width: 140px;
    }

    .pdf-modal-bar-left { gap: 8px; }
}

/* ── ≤360px : very small phones ── */
/* ── ≤360px : very small phones ── */
@media (max-width: 360px) {
    .daily-practice-page .sb-pill {
        font-size: .6rem;
        padding: .2rem .45rem;
        gap: .25rem;
    }
    .daily-practice-page .sb-pill i { font-size: .62rem; }

    .daily-practice-page .exam-row { padding: .7rem .75rem; }

    .daily-practice-page .ebtn {
        font-size: .64rem;
        padding: .36rem .5rem;
        gap: .2rem;
    }
    .daily-practice-page .ebtn i { font-size: .58rem; }

    .pdf-modal-title { max-width: 100px; font-size: .68rem; }
    .pdf-modal-date { font-size: .56rem; }
}