/* =========================================
   1. RESET & VARIABLES
   ========================================= */
* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
    /* 🔥 FIX: Remove bottom slider */
}


/* =========================================
   2. SIDEBAR
   ========================================= */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}


.sidebar {
    width: 280px;
    background: #1e1e1e;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    box-shadow: none;
}

.sidebar.open {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
    padding: 8px 10px;
    background: #252526;
    border-bottom: 1px solid #333;
}

.user-profile-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background: #333;
    color: #03dac6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #444;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-info-text h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.view-profile-link {
    font-size: 0.7rem;
    color: #aaa;
    text-decoration: none;
    margin-top: 2px;
}

.view-profile-link:hover {
    color: #03dac6;
}

.sets-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.section-title {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    margin: 15px 5px 5px;
    letter-spacing: 1px;
}

.set-btn {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    background: #2d2d30;
    border: 1px solid #3e3e42;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.set-btn:hover {
    background: #3e3e42;
    border-color: #03dac6;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
}

.submenu.open {
    max-height: 500px;
}

.sub-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    color: #bbb;
    text-align: left;
    border-left: 2px solid #444;
    margin-bottom: 2px;
    cursor: pointer;
}

.sub-btn:hover {
    color: #03dac6;
    border-left-color: #03dac6;
    background: rgba(3, 218, 198, 0.05);
}

.sidebar-footer {
    padding: 10px 15px;
    background: #1e1e1e;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-left-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dev-info {
    font-size: 0.75rem;
    color: #bbb;
    font-weight: 500;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #333;
    object-fit: cover;
    margin-left: 10px;
}

.social-icon {
    font-size: 1rem;
    color: #666;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.youtube:hover {
    color: #f44336;
}

.social-icon.telegram:hover {
    color: #2196f3;
}

.social-icon.whatsapp:hover {
    color: #25d366;
}

.social-icon.instagram:hover {
    color: #e91e63;
}

.social-icon.email:hover {
    color: #fbc02d;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#overlay.show {
    display: block;
    opacity: 1;
}

/* =========================================
   3. MAIN CONTENT
   ========================================= */
.content-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #121212;
    position: relative;
}


.main-header {
    height: 50px;
    padding: 0 15px;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    position: sticky;
    top: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
    white-space: nowrap;
}

.hamburger-btn,
.fullscreen-btn,
.back-header-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.back-header-btn {
    font-size: 0.9rem;
    background: #333;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scroll-content {
    padding: 15px;
}

.Hindi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.dash-card {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
}

.big-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #03dac6;
}

.chapter-card-container {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.chapter-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #252526;
}

.chapter-options {
    display: flex;
    gap: 5px;
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #121212;
}

.chapter-options.show {
    height: auto;
    padding: 10px;
}

.arrow-icon {
    transition: transform 0.3s;
    color: #aaa;
}

.arrow-icon.rotate {
    transform: rotate(180deg);
}

.action-btn {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: white;
    border: none;
    transition: 0.2s;
}

.note-card {
    background: #1e1e1e;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    line-height: 1.6;
    border: 1px solid #333;
}

.theory-content h2,
.theory-content h3 {
    margin-top: 20px;
    color: #fff;
}

.notes-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tool-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-btn:hover {
    transform: translateY(-2px);
}

.flash-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.mind-btn {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #000;
}

.test-question-card {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.question-figure {
    width: 100%;
    max-width: 280px;
    /* Reduced from 400px */
    margin: 10px 0;
    /* Align left/start instead of center if "behind" meant flow, or keep consistent margin */
    /* Remove background and border for better integration */
    background: transparent;
    padding: 5px;
    display: flex;
    justify-content: flex-start;
    /* Align left closer to question text start? Or keep center? Let's try center for now but smaller */
    justify-content: center;
}

.figure-svg {
    display: block;
    max-height: 200px;
    /* Reduced height */
}

.test-option {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    background: #2d2d30;
    border: 1px solid #444;
    color: #ddd;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
}

.test-option.selected {
    background: #03dac6;
    color: #000;
    font-weight: bold;
}

.explanation-container {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: #252526;
    border-left: 3px solid #03dac6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 50px;
    background: #121212;
    padding: 0;
    /* ❌ extra gap remove */
    margin-bottom: 5px;
    /* ✅ small controlled gap */
    z-index: 90;
}


.timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff9800;
    font-family: monospace;
}

.submit-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.test-navigation {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    background: #333;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #333;
    margin-bottom: 15px;
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    background: #03dac6;
    transition: width 0.3s;
}

/* =========================================
   4. GRID PANEL & INLINE STATS
   ========================================= */
.question-grid-panel {
    position: fixed;
    top: 0;
    right: -320px;
    /* Slightly wider */
    width: 300px;
    height: 100%;
    background: #1e1e1e;
    border-left: 1px solid #333;
    z-index: 1200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.question-grid-panel.open {
    right: 0;
}

.grid-header {
    padding: 15px;
    background: #252526;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-container {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    align-content: start;
}

.grid-item {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
    color: #aaa;
    border: 1px solid #444;
}

.grid-item.active {
    border: 2px solid #fff;
}

/* Colors */
.grid-item.correct {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.grid-item.wrong {
    background: #c62828;
    color: white;
    border-color: #c62828;
}

.grid-item.q-review {
    background: #fbc02d;
    color: black;
    border-color: #fbc02d;
    font-weight: bold;
}

.grid-item.t-attempted {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.grid-item.t-review {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

/* Footer & Inline Stats */
.grid-footer {
    padding: 15px;
    border-top: 1px solid #333;
    background: #1e1e1e;
}

.grid-submit-btn {
    width: 100%;
    padding: 12px;
    background: #03dac6;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* New Stats Box inside Grid */
.quiz-inline-summary {
    background: #252526;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    display: none;
    /* Hidden by default */
    border: 1px solid #444;
}

.quiz-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
}

.quiz-stat-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.qs-val {
    font-weight: bold;
}

.grid-overlay-back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: none;
}

/* =========================================
   6. MIND MAP REVISION MODE
   ========================================= */
.mm-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.mm-card:hover {
    transform: translateY(-3px);
    border-color: #764ba2;
}

.mm-card h4 {
    margin: 10px 0 5px;
    color: #fff;
    font-size: 1.1rem;
}

.mm-card p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
}

.mm-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
}

/* Sub-subject list (accordion style) */
.mm-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    margin-top: -10px;
    /* Connect to card above */
    margin-bottom: 15px;
    border: 1px solid #333;
    border-top: none;
}

.mm-sub-list.open {
    max-height: 300px;
    /* Adjust as needed */
    margin-top: 5px;
    border-top: 1px solid #333;
}

.mm-sub-item {
    padding: 12px 20px;
    border-bottom: 1px solid #252526;
    color: #ccc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mm-sub-item:last-child {
    border-bottom: none;
}

.mm-sub-item:hover {
    background: #252526;
    color: #03dac6;
}

.rev-btn {
    background: linear-gradient(135deg, #2b5876, #4e4376);
}

.rev-btn i {
    color: #a8edea;
}

/* =========================================
   5. ANALYTICS MODAL
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #333;
    position: relative;
}

.close-modal-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal-icon:hover {
    color: #fff;
}

.result-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    background: #252526;
    padding: 15px;
    border-radius: 8px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-box span:first-child {
    font-size: 0.8rem;
    color: #aaa;
}

.stat-box span:last-child {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

/* Hindi Styles */
.dash-hero {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
}

.hero-text p {
    margin: 5px 0 0;
    color: #aaa;
    font-style: italic;
    font-size: 0.9rem;
}

.exam-countdown {
    text-align: right;
}

.timer-box {
    font-size: 1.5rem;
    font-weight: bold;
    color: #03dac6;
    font-family: monospace;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 15px;
    border-radius: 10px;
    background: #1e1e1e;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-panel {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    display: block;
    margin: 5px 0;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-box {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.2;
    font-size: 2rem;
}

.green-glow {
    color: #4caf50;
}

.blue-glow {
    color: #2196f3;
}

.red-glow {
    color: #ff5252;
}

.mini-progress {
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-top: 10px;
}

#coverage-bar {
    height: 100%;
    background: #2196f3;
    transition: width 1s;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.big-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.big-btn:hover {
    transform: translateY(-3px);
    border-color: #03dac6;
}

.resume-btn {
    background: linear-gradient(45deg, #1b5e20, #2e7d32);
}

.daily-btn {
    background: linear-gradient(45deg, #4a148c, #7b1fa2);
}

.chart-section {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

/* Updated Test Set Box Style */
.test-set-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px;
}

.test-set-card {
    background: linear-gradient(145deg, #1e1e1e, #252526);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.test-set-card:hover {
    transform: translateY(-3px);
    border-color: #03dac6;
    box-shadow: 0 6px 12px rgba(3, 218, 198, 0.1);
}

.test-set-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #03dac6;
}

.test-set-info h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.1rem;
}

.test-set-info p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
}

/* Premium Flashcard (3:4 Ratio) */
.flashcard-container {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 350px;
    aspect-ratio: 3/4;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 50px rgba(123, 31, 162, 0.4);
    position: relative;
    overflow: hidden;
}

.fc-header {
    flex: 0 0 50px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.fc-header span {
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.close-btn {
    color: #fff;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.card-scene {
    flex: 1;
    width: 100%;
    perspective: 1000px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-object {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.card-object.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.card-front {
    background: linear-gradient(135deg, #2b2b2b 0%, #1f1f1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* 🔥 Ye 2 lines jodein taaki lamba text box ke andar hi scroll ho */
    overflow-y: auto;
    align-items: flex-start;
    /* Lambe text ko upar se shuru karega */
}

#fc-front-text {
    font-family: 'Times New Roman', serif;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
}

.card-back {
    background: #121212;
    transform: rotateY(180deg);
    border: 1px solid #7b1fa2;
    overflow-y: auto;
}

.fc-controls {
    flex: 0 0 70px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 10;
}

.fc-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.fc-btn:hover {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.tap-hint {
    position: absolute;
    bottom: 20px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mind Map Styling */
.mindmap-container {
    background: #000000;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 6001;
}

.mm-header {
    padding: 15px 25px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

#mm-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f7bf47;
}

#mindmap-canvas {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #050505;
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 30px 30px;
    cursor: grab;
}

#mindmap-canvas:active {
    cursor: grabbing;
}

.mm-footer {
    padding: 10px;
    background: rgba(20, 20, 20, 0.9);
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 10;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #63ffa4;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mm-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-btn {
    background: transparent;
    border: 1px solid #444;
    color: #1ae0bf;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #5e5bec;
}

.mode-btn.active {
    background: #03dac6;
    color: #000;
    border-color: #03dac6;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(3, 218, 198, 0.4);
}

.mm-action-btn {
    background: #333;
    color: rgb(193, 26, 226);
    border: 1px solid #555;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

.divider {
    width: 1px;
    height: 20px;
    background: #444;
    margin: 0 5px;
}

/* Buttons */
.save-quiz-btn {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.save-quiz-btn:hover {
    border-color: #03dac6;
    color: #fff;
}

.save-quiz-btn.saved {
    background: rgba(229, 57, 53, 0.2);
    border-color: #e53935;
    color: #e53935;
}

.review-quiz-btn {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-quiz-btn:hover {
    border-color: #fbc02d;
    color: #fff;
}

.review-quiz-btn.reviewing {
    background: rgba(251, 192, 45, 0.2);
    border-color: #fbc02d;
    color: #fbc02d;
}

.test-btn {
    background: #1e1e1e;
    border: 1px solid #333
}

.test-menu {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px
}

.tm-card {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 10px;
    margin: 8px 0;
    cursor: pointer
}

.tm-card:hover {
    border-color: #03dac6
}

.test-menu {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
}

.tm-card {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 10px;
    margin: 8px 0;
    cursor: pointer;
}

.tm-card:hover {
    border-color: #03dac6;
}

.custom-builder {
    margin-top: 10px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
}

.cb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.cb-item {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.cb-item.selected {
    background: #03dac6;
    color: #000;
    border-color: #03dac6;
}

.cb-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.cb-row input {
    flex: 1;
    padding: 10px;
}

.cb-btn {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: #03dac6;
    color: #000;
}

.test-btn {
    background: #1e1e1e;
    border: 1px solid #333;
}

.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.ct-card {
    position: relative;
}

.ct-card {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
}

.ct-card:hover {
    border-color: #03dac6;
}

.ct-list .ct-item {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
}

.ct-item.selected {
    background: #03dac6;
    color: #000;
}

.ct-controls {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.ct-settings {
    max-width: 520px;
    margin-bottom: 20px;
}

.ct-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.ct-row input {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    color: #eaeaea;
}

.ct-row input:focus {
    border-color: #03dac6;
}

.ct-toggle {
    justify-content: flex-start;
    font-size: 0.85rem;
    color: #bbb;
}

.premium-btn {
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: bold;
    background: linear-gradient(135deg, #03dac6, #00bfa5);
    color: #000;
    border: none;
    cursor: pointer;
}

/* ===== FIX TEST UI SHIFT ISSUE ===== */

/* Question area ko space dena taaki buttons overlap na kare */
#test-question-container {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-bottom: 20px;
}


/* Test navigation ko bottom pe fix karna */
.test-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #121212;
    border-top: 1px solid #2a2a2a;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 2000;
}

/* Buttons ko ek size aur stable look */
.test-navigation .nav-btn {
    flex: 1;
    max-width: 120px;
    text-align: center;
}

/* ================================
   TEST VIEW LAYOUT FIX (FINAL)
   ================================ */

/* Test view ko full height dena */
#test-view {
    height: calc(100vh - 60px);
    /* header height adjust */
    display: flex;
    flex-direction: column;
}

/* Header + timer compact */
.test-header {
    padding: 8px 12px;
    flex-shrink: 0;
}

/* Question container ko scrollable banana */
#test-question-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    padding-bottom: 110px;
    /* space for bottom nav */
}

/* Extra top space remove */
#test-view>*:first-child {
    margin-top: 0 !important;
}

/* Bottom navigation fixed & stable */
.test-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #121212;
    border-top: 1px solid #2a2a2a;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 3000;
}

/* Buttons size consistent */
.test-navigation .nav-btn {
    flex: 1;
    max-width: 120px;
    text-align: center;
}

/* Progress bar tight */
.progress-bar-container {
    margin: 0;
}

/* ================================
   FINAL TEST SCROLL FIX
   ================================ */

/* Test view full usable height */
#test-view {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* Header compact */
.test-header {
    flex-shrink: 0;
    padding: 6px 12px;
}

/* ✅ QUESTION SCROLL AREA */
#test-question-container {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    padding-bottom: 130px;
    /* bottom buttons ke liye */
}

/* Bottom nav fixed */
.test-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #121212;
    border-top: 1px solid #2a2a2a;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 5000;
}

/* ===== Advanced Mode UI ===== */

.ct-advanced-toggle {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #ccc;
}

.advanced-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
}

.adv-row {
    display: flex;
    gap: 10px;
}

.adv-row input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.85rem;
}

.adv-hint {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #888;

    /* Priority Slider (Premium Minimal) */
    .ct-priority-box {
        margin: 15px 0 10px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
    }

    .priority-label {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
        color: #ccc;
        margin-bottom: 8px;
    }

    #ct-priority {
        width: 100%;
    }

    .priority-scale {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        color: #888;
        margin-top: 4px;
    }
}

/* Star Priority (Premium) */
.star-priority-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.star-label {
    font-size: 0.85rem;
    color: #aaa;
}

.stars i {
    font-size: 1.2rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
}

.stars i.active {
    color: #FFD700;
}

.stars i:hover {
    transform: scale(1.1);
}

/* Subject Priority Stars */
.subj-card {
    position: relative;
    padding-bottom: 28px;
}

.subj-stars {
    position: absolute;
    bottom: 6px;
    left: 10px;
    display: flex;
    gap: 4px;
}

.subj-stars i {
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
}

.subj-stars i.active {
    color: #FFD700;
}

.subj-card {
    position: relative;
    padding-bottom: 28px;
}

.subj-stars {
    position: absolute;
    bottom: -6px;
    left: 5px;
    display: flex;
    gap: 4px;
}

.subj-stars i {
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
}

.subj-stars i.active {
    color: #FFD700;
}

/* Advanced-only priority stars */
.adv-only {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.25s ease;
}

.advanced-on .adv-only {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Advanced Subject Priority Stars ===== */

.subj-stars {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.35s ease;
    pointer-events: none;
}

.subj-stars i {
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.subj-stars i.active {
    color: #ffca28;
}

/* Advanced mode enabled */
.advanced-on .subj-stars {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Subject Priority Box ===== */

/* ===== Subject Priority Box ===== */

.subj-star-box {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    margin-left: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);

    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.35s ease;
    pointer-events: none;
}

.subj-star-box i {
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.subj-star-box i.active {
    color: #ffca28;
}

/* Advanced Mode ON */
.advanced-on .subj-star-box {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.subj-star-box i {
    color: #555;
    cursor: pointer;
    margin-right: 4px;
    transition: 0.2s;
}

.subj-star-box i.active {
    color: gold;
    transform: scale(1.1);
}

.adv-only {
    display: none;
}

.advanced-on .adv-only {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.subj-star-box {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.subj-star-box i {
    color: #555;
    cursor: pointer;
    font-size: 16px;
}

.subj-star-box i.active {
    color: gold;
    transform: scale(1.15);
}

.adv-only {
    display: none;
}

.advanced-on .adv-only {
    display: flex;
}

.practice-top-bar {
    display: flex;
    gap: 12px;
    margin: 15px 0 20px;
}

.practice-top-bar input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
}

/* 🔥 PRACTICE MODE – FORCE CHAPTER VISIBILITY */
#cp-chapters-box {
    display: block !important;
    margin-top: 10px;
}

#cp-chapters {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Individual chapter rows */
#cp-chapters>div {
    display: flex !important;
}

/* =========================================
   6. MIND MAP REVISION MODE
   ========================================= */
.mm-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.mm-card:hover {
    transform: translateY(-3px);
    border-color: #764ba2;
}

.mm-card h4 {
    margin: 10px 0 5px;
    color: #fff;
    font-size: 1.1rem;
}

.mm-card p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
}

.mm-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
}

/* Sub-subject list (accordion style) */
.mm-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    margin-top: -10px;
    /* Connect to card above */
    margin-bottom: 15px;
    border: 1px solid #333;
    border-top: none;
}

.mm-sub-list.open {
    max-height: 300px;
    /* Adjust as needed */
    margin-top: 5px;
    border-top: 1px solid #333;
}

.mm-sub-item {
    padding: 12px 20px;
    border-bottom: 1px solid #252526;
    color: #ccc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mm-sub-item:last-child {
    border-bottom: none;
}

.mm-sub-item:hover {
    background: #252526;
    color: #03dac6;
}

.rev-btn {
    background: linear-gradient(135deg, #2b5876, #4e4376);
}

.rev-btn i {
    color: #a8edea;
}

/* Saved Hub Button */
.saved-btn {
    background: linear-gradient(135deg, #FFC107, #FF9800);
}

.saved-btn i {
    color: #FFF8E1;
}

/* Saved Subject Cards */
.saved-subject-card {
    background: #252526;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-subject-card:hover {
    background: #2d2d30;
    border-color: #ffca28;
}

.saved-count-badge {
    background: #ffca28;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Saved Chapter List Style */
.saved-chapter-item {
    background: #1e1e1e;
    margin-bottom: 8px;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.saved-chapter-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.saved-chapter-header:hover {
    background: #252526;
}

.saved-chapter-options {
    display: none;
    padding: 10px;
    background: #121212;
    gap: 10px;
    justify-content: flex-end;
}

.saved-chapter-item:hover .saved-chapter-options {
    display: flex;
}

.sc-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: bold;
}

.sc-practice {
    background: #03dac6;
    color: #000;
}

.sc-test {
    background: #cf6679;
    color: #000;
}


/* Fixed Saved Button Contrast */
.saved-btn h4,
.saved-btn p,
.saved-btn i {
    color: #212121 !important;
    text-shadow: none !important;
}

.saved-btn span {
    color: #000 !important;
    font-weight: 800;
}


/* Fix Saved Card Text Overlap */
.saved-subject-card {
    align-items: flex-start !important;
    /* Allow multiline text */
}

.saved-subject-card span:first-child {
    flex: 1;
    /* Take available width */
    margin-right: 12px;
    word-break: break-word;
    /* Prevent overflow */
    line-height: 1.4;
    padding-top: 2px;
    /* Align with badge */
}

.saved-count-badge {
    white-space: nowrap;
    /* Keep badge intact */
    flex-shrink: 0;
    /* Prevent badge squishing */
    align-self: center;
}


/* Fix: Saved Subject Card - Column Layout */
.saved-subject-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 15px !important;
    height: auto !important;
    /* Allow growth */
}

.saved-subject-card span:first-child {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
    font-size: 1.1rem !important;
    line-height: 1.3;
}

.saved-count-badge {
    align-self: flex-end;
    /* Move badge to bottom-right or just bottom */
    background: #ffca28;
    color: #000;
    font-size: 0.9rem;
    padding: 4px 10px;
}


/* Safety fix for view headers */
#saved-header-title {
    margin-top: 0;
    padding-top: 0;
}

/* ================= SCIENCE ENGINE STYLES ================= */
.science-formula-box {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.formula-latex {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.formula-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.var-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.var-input-group label {
    margin-bottom: 5px;
    color: #03dac6;
    font-size: 0.9rem;
}

.var-input-group input {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    width: 80px;
    text-align: center;
}

.var-input-group input:focus {
    border-color: #03dac6;
    outline: none;
}

.science-btn {
    background: linear-gradient(135deg, #6200ea 0%, #3700b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s;
}

.science-btn:hover {
    transform: scale(1.05);
}

.formula-result {
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: #ffeb3b;
    font-weight: bold;
    min-height: 20px;
}

.science-diagram-box {
    background: #121212;
    border: 1px solid #333;
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

/* ================= SAVE ICON UX ================= */
.save-icon-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #888;
    /* Default Outline Color */
    transition: transform 0.2s, color 0.2s;
    z-index: 5;
}

.save-icon-btn:hover {
    transform: scale(1.1);
}

.save-icon-btn.active {
    color: #ffca28;
    /* Active Filled Color */
}

.save-icon-btn i {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

/* Hide Review Button on Mobile to save space */
@media (max-width: 600px) {
    .review-quiz-btn {
        display: none !important;
    }

    .test-question-card {
        padding-top: 35px !important;
        /* Extra space for top-right icon on small screens */
    }
}


/* ================= SCROLL LAYOUT FIXES ================= */
#test-view {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    /* Forces top alignment */
    padding-top: 5px;
    min-height: calc(100vh - 60px);
    /* Fill screen but allow scroll */
    /* Removed overflow-y:auto to let body scroll */
}

/* Ensure container allows content to flow */
#test-question-container {
    width: 100%;
    scroll-margin-top: 60px;
    margin-bottom: 60px;
    /* Space for footer/nav */
}

/* Make sure the question card doesn't have massive margins pushing it down */
.test-question-card {
    margin-top: 0 !important;
}

/* Review Button Global Removal (If any remains) */
.review-quiz-btn {
    display: none !important;
}

/* 🔥 TEST VIEW GAP FIX */
#test-view {
    padding-top: 0 !important;
}

#test-question-container {
    margin-top: 5px;
}

/* =========================================
   👑 COMPACT PREMIUM AUTH SCREEN
   ========================================= */

.premium-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 10px;
    box-sizing: border-box;
}

.premium-auth-card {
    background: #1e1e1e;
    width: 100%;
    max-width: 350px;
    /* चौड़ाई थोड़ी कम की है */
    padding: 20px 18px;
    /* पैडिंग को एकदम टाइट (Tight) कर दिया है */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-top: 4px solid #03dac6;
    text-align: center;
}

.auth-header {
    margin-bottom: 15px;
}

.premium-logo {
    background: rgba(3, 218, 198, 0.1);
    color: #03dac6;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin: 0 auto 8px auto;
    /* मार्जिन घटाया है */
}

.premium-auth-card h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 2px 0;
}

.premium-auth-card .auth-subtitle {
    color: #03dac6;
    font-size: 0.8rem;
    margin: 0;
    font-weight: bold;
}

.premium-google {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.premium-divider {
    margin: 15px 0;
    position: relative;
    text-align: center;
}

.premium-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #333;
}

.premium-divider span {
    background: #1e1e1e;
    padding: 0 10px;
    color: #777;
    font-size: 0.75rem;
    position: relative;
    font-weight: bold;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

/* गैप कम किया */
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9rem;
}

.premium-form input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    /* इनपुट बॉक्स पतले किए हैं */
    background: #2d2d30;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.premium-form input:focus {
    border-color: #03dac6;
    background: #252528;
}

.premium-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.premium-login-btn,
.premium-reg-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
}

.premium-login-btn {
    background: #03dac6;
    color: #000;
    border: none;
}

.premium-reg-btn {
    background: transparent;
    color: #03dac6;
    border: 1px solid #03dac6;
}

.forgot-box {
    text-align: right;
    margin-top: 6px;
}

.forgot-link {
    color: #aaa;
    font-size: 0.8rem;
    cursor: pointer;
}

.guest-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.terms-footer {
    margin-top: 12px;
    font-size: 0.7rem;
    color: #777;
    line-height: 1.4;
}

.terms-footer a {
    color: #03dac6;
    text-decoration: none;
}

/* Registration Select Box Style */
.premium-select {
    width: 100%;
    padding: 10px 10px 10px 35px;
    background: #2d2d30;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    cursor: pointer;
}

.premium-select:focus {
    border-color: #03dac6;
    background: #252528;
    outline: none;
}

/* Legal Modal Content Style */
.legal-content {
    max-height: 50vh;
    /* आधे स्क्रीन तक की ऊँचाई */
    overflow-y: auto;
    /* लंबा होने पर स्क्रॉल आ जाएगा */
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.6;
    padding-right: 10px;
}

.legal-content h4 {
    color: #ffffff;
    margin: 15px 0 5px 0;
    font-size: 0.95rem;
}

.legal-content p {
    margin: 0 0 10px 0;
}

/* Custom Scrollbar for Legal Text */
.legal-content::-webkit-scrollbar {
    width: 5px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: #03dac6;
    border-radius: 10px;
}

/* ================= SAVE ICON UX ================= */
.save-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #888;
    transition: transform 0.2s, color 0.2s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-icon-btn:hover {
    transform: scale(1.1);
}

.save-icon-btn.active {
    color: #ffca28;
    /* Active Filled Color */
}

.save-icon-btn i {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

/* 🔥 FINAL OVERLAP FIX FOR SAVE & STAR BUTTONS 🔥 */
.save-icon-btn,
.star-action-btn {
    position: static !important;
    /* यह बटन को डब्बे से बाहर भागने से रोकेगा */
    margin: 0 !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* अगर होवर करने पर बटन अजीब व्यवहार करे, तो इसे स्टेबल रखने के लिए */
.save-icon-btn:hover,
.star-action-btn:hover {
    transform: scale(1.1) !important;
}

/* =========================================
   🎓 TCS iON MOCK TEST UI (PREMIUM DARK MODE)
   ========================================= */
/* =========================================
   🎓 TCS iON MOCK TEST UI (PREMIUM DARK MODE)
   ========================================= */
.mock-test-view {
    height: 100vh !important;
    /* 🔥 यहाँ से display: flex !important; हटा दिया गया है ताकि JS इसे छुपा सके */
    flex-direction: column !important;
    background: #121212 !important;
    color: #e0e0e0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    padding: 0 !important;
}

/* Header */
.mock-header {
    background: #1e1e1e;
    color: #03dac6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    border-bottom: 1px solid #333;
}

.mock-h-left {
    display: flex;
    align-items: center;
}

.mock-h-left h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.mock-timer-box {
    background: #252526;
    color: #ff5252;
    padding: 5px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px solid #ff5252;
}

.mock-h-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mock-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #aaa;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot.ans {
    background: #03dac6;
}

.dot.unans {
    background: #ff5252;
}

.mock-submit-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.mock-submit-btn:hover {
    background: #d32f2f;
}

/* Body Layout */
.mock-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 10px;
    gap: 10px;
}

/* Left Panel (Questions) */
.mock-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    overflow: hidden;
}

/* पुरानी जगह: line 281 के आसपास */
.mock-q-container {
    flex: 1;
    /* padding: 25px; <-- यह बहुत ज्यादा था */
    padding: 15px;
    /* NEW: अब यह टाइट है */
    overflow-y: auto;
    font-size: 1.05rem;
    /* फॉन्ट साइज भी हल्का सा कम किया ताकि ज्यादा टेक्स्ट आए */
    color: #fff;
}

/* Radio Button Options */
/* पुरानी जगह: line 286 के आसपास */
.mock-option-label {
    display: flex;
    align-items: center;
    /* padding: 12px 15px; margin-bottom: 12px; <-- पुराना */
    padding: 8px 12px;
    /* NEW: कॉम्पैक्ट पैडिंग */
    margin-bottom: 8px;
    /* NEW: ऑप्शंस एक-दूसरे के करीब */
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: #252526;
    color: #e0e0e0;
}

/* पुरानी जगह: line 295 के आसपास */
.opt-circle {
    /* width: 28px; height: 28px; <-- पुराना */
    width: 24px;
    height: 24px;
    /* NEW: गोला थोड़ा छोटा */
    border-radius: 50%;
    border: 1px solid #666;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    /* NEW: टेक्स्ट के करीब */
    font-weight: bold;
    color: #aaa;
    background: #1e1e1e;
    flex-shrink: 0;
    transition: 0.2s;
    font-size: 0.9rem;
    /* NEW */
}

.mock-option-label:hover {
    background: #2d2d30;
    border-color: #03dac6;
}

.mock-option-label.selected {
    border-color: #03dac6;
    background: rgba(3, 218, 198, 0.1);
    color: #03dac6;
    font-weight: bold;
}

.opt-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #666;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    color: #aaa;
    background: #1e1e1e;
    flex-shrink: 0;
    transition: 0.2s;
}

.mock-option-label.selected .opt-circle {
    background: #03dac6;
    color: #000;
    border-color: #03dac6;
}

.mock-option-label input {
    display: none;
}

/* Action Buttons */
.mock-action-row {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-top: 1px solid #333;
    background: #1a1a1a;
}

.mock-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid #555;
    cursor: pointer;
    background: #252526;
    color: #ccc;
    font-size: 0.9rem;
    transition: 0.2s;
}

.mock-btn.m-save {
    background: #03dac6;
    color: #000;
    border: none;
}

.mock-btn.m-review {
    background: #ffca28;
    color: #000;
    border: none;
}

.mock-btn.m-save:hover {
    background: #00bfa5;
}

.mock-btn.m-review:hover {
    background: #ffb300;
}

.mock-btn.m-clear:hover {
    background: #333;
    color: #fff;
}

/* Prev/Next Row */
.mock-nav-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #121212;
    border-top: 1px solid #333;
}

.mock-nav-btn {
    padding: 10px 25px;
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.mock-nav-btn:hover {
    background: #444;
    border-color: #03dac6;
    color: #03dac6;
}

/* Right Panel (Desktop Grid) */
.mock-right-panel {
    width: 320px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    overflow: hidden;
}

.mock-rp-header {
    padding: 15px;
    background: #252526;
    font-weight: bold;
    text-align: center;
    color: #03dac6;
    border-bottom: 1px solid #333;
}

.mock-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #333;
    font-size: 0.8rem;
    color: #ccc;
    background: #1a1a1a;
}

.l-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.q-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #444;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

/* Status Colors for Grid */
.q-box.not-visited {
    background: #252526;
    color: #888;
}

.q-box.not-answered {
    background: #ff5252;
    color: #fff;
    border-color: #d32f2f;
}

.q-box.answered {
    background: #03dac6;
    color: #000;
    border-color: #00bfa5;
}

.q-box.review {
    background: #ffca28;
    color: #000;
    border-color: #ffb300;
}

.q-box.active-q {
    border: 2px solid #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.mock-rp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    align-content: start;
}

/* Mobile Adjustments */
.show-on-mobile {
    display: important;
}

@media (max-width: 768px) {

    /* 📱 FIXED LAYOUT SYSTEM (Safe Version) */
    .mock-test-view[style*="display: flex"],
    .mock-test-view[style*="display: block"] {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: #121212 !important;
        z-index: 99999 !important;
        padding: 0 !important;
    }

    /* 1. HEADER (Fixed Top) */
    .mock-header {
        flex-shrink: 0;
        height: 55px;
        /* Compact height */
        padding: 0 10px;
        background: #1e1e1e;
        border-bottom: 1px solid #333;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 50;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .mock-h-left {
        max-width: 30%;
        /* Prevent taking too much space */
        overflow: hidden;
    }

    .mock-h-left h3 {
        display: none !important;
        /* Hide title on mobile to save space for Timer */
    }

    /* Timer Centered */
    .mock-timer-box {
        font-size: 1rem;
        padding: 4px 8px;
        border-radius: 4px;
        position: absolute;
        /* Center absolute */
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        background: #252526;
        z-index: 51;
    }

    /* 2. BODY (Scrollable Middle) */
    .mock-body {
        flex: 1;
        width: 100%;
        overflow: hidden;
        display: block !important;
        padding: 0 !important;
        position: relative;
    }

    .mock-left-panel {
        height: 100%;
        width: 100%;
        overflow-y: auto;
        padding-bottom: 80px !important;
        /* Extra padding for footer */
        border: none;
        background: #121212;
        margin: 0;
        display: block !important;
        /* Ensure block display */
    }

    /* Ensure content inside body is visible */
    .mock-q-container {
        padding: 15px;
        color: #fff;
        font-size: 1rem;
        display: block !important;
    }

    /* 3. FOOTER (Fixed Bottom) */
    .mobile-footer-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        border-top: 1px solid #333;
        z-index: 100;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    }

    .mf-btn {
        background: transparent;
        border: none;
        color: #aaa;
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        cursor: pointer;
    }

    .mf-btn i {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .mf-btn.save {
        background: #03dac6;
        color: #000;
        border-radius: 20px;
        padding: 8px 16px;
        flex-direction: row;
        font-weight: bold;
        gap: 6px;
    }

    /* UTILITIES */
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: flex !important;
    }

    /* 4. BOTTOM SHEET GRID (Drawer) */
    .question-grid-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 75vh !important;
        background: #1e1e1e !important;
        z-index: 2000 !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
        top: auto !important;
        right: auto !important;
    }

    .question-grid-panel.open {
        transform: translateY(0%) !important;
    }

    .grid-header {
        padding: 15px 20px;
        border-bottom: 1px solid #333;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
        color: #03dac6;
        background: #252526;
        border-radius: 20px 20px 0 0;
    }

    .grid-container {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        /* 5 columns strictly */
        gap: 12px;
        align-content: start;
    }

    .grid-overlay-back {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 1999;
        display: none;
    }

    .grid-overlay-back.show {
        display: block;
    }

    /* Mobile Typography Adjustments */
    .mock-h-left h3 {
        font-size: 1rem;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mock-timer-box {
        font-size: 1rem;
        padding: 4px 10px;
    }
}

/* Review Mode Filters */
.rf-btn {
    background: #252526;
    border: 1px solid #444;
    color: #aaa;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.2s;
}

.rf-btn:hover {
    background: #333;
}

.rf-btn.active {
    border-color: #03dac6;
    color: #03dac6;
    background: rgba(3, 218, 198, 0.1);
}

.rf-btn.correct.active {
    border-color: #4caf50;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.rf-btn.wrong.active {
    border-color: #f44336;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.rf-btn.skipped.active {
    border-color: #888;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Review Mode Question Highlights */
.opt-correct {
    border-color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4caf50 !important;
    font-weight: bold;
}

.opt-correct .opt-circle {
    background: #4caf50 !important;
    color: #000 !important;
    border-color: #4caf50 !important;
}

.opt-wrong {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.1) !important;
    color: #f44336 !important;
}

.opt-wrong .opt-circle {
    background: #f44336 !important;
    color: #fff !important;
    border-color: #f44336 !important;
}

.prev-ans-badge {
    font-size: 0.7rem;
    background: #f44336;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
}

/* 5th State: Answered & Marked for Review */
.q-box.answered-review {
    background: #9c27b0;
    color: #fff;
    border-color: #7b1fa2;
}

/* =========================================
   📱 100% TESTBOOK MOBILE CLONE UI
   ========================================= */
@media (max-width: 768px) {

    /* 🔴 1. हाइड डेस्कटॉप कचरा */
    .test-header,
    .test-footer-nav,
    #question-grid-panel,
    #desktop-question-grid {
        display: none !important;
    }

    /* 🔴 2. बॉडी और बैकग्राउंड */
    body,
    html {
        background: #222222 !important;
        margin: 0;
        padding: 0;
    }

    #test-view {
        padding-top: 125px !important;
        padding-bottom: 80px !important;
        background: #262626 !important;
        height: 100vh !important;
        box-sizing: border-box !important;
    }

    #test-question-container {
        height: 100% !important;
        overflow-y: auto !important;
        padding: 15px !important;
    }

    /* 🔴 3. TOP HEADER (Testbook Style) */
    #tb-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #333333;
        border-bottom: 1px solid #444;
    }

    .tb-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }

    .tb-left,
    .tb-right {
        display: flex;
        align-items: center;
    }

    .tb-sub-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background: #404040;
        border-top: 1px solid #4a4a4a;
    }

    .tb-q-badge {
        background: #555;
        color: #fff;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.9rem;
        border-left: 3px solid #607d8b;
    }

    .tb-marks {
        font-size: 0.8rem;
        display: flex;
        gap: 8px;
        margin-left: 12px;
    }

    .tb-marks .pos {
        background: rgba(76, 175, 80, 0.2);
        color: #81c784;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .tb-marks .neg {
        background: rgba(244, 67, 54, 0.2);
        color: #e57373;
        padding: 2px 6px;
        border-radius: 4px;
    }

    /* 🔴 4. BOTTOM ACTION BAR (3 Buttons) */
    .mock-action-row {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 12px 15px !important;
        background: #333 !important;
        border-top: 1px solid #444 !important;
        z-index: 9999 !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    .mock-action-row button {
        flex: 1;
        padding: 14px 0 !important;
        border-radius: 6px !important;
        font-weight: normal !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    .mock-action-row button:nth-child(1),
    .mock-action-row button:nth-child(2) {
        background: transparent !important;
        border: 1px solid #aaa !important;
        color: #fff !important;
    }

    .mock-action-row button:nth-child(3) {
        background: #1976d2 !important;
        border: none !important;
        color: #fff !important;
        font-weight: bold !important;
    }

    /* 🔴 5. QUESTION OPTIONS */
    .mock-options-container {
        margin-top: 25px !important;
    }

    .mock-option-label {
        display: flex !important;
        align-items: center !important;
        background: #3a3a3a !important;
        border: 1px solid #555 !important;
        padding: 18px !important;
        border-radius: 6px !important;
        margin-bottom: 12px !important;
        color: #eceff1 !important;
        font-size: 1.05rem !important;
    }

    .mock-option-label .opt-circle {
        background: transparent !important;
        color: #aaa !important;
        border: none !important;
        margin-right: 15px !important;
        font-size: 1.1rem !important;
        font-weight: normal !important;
    }

    .mock-option-label:has(input:checked),
    .mock-option-label.selected {
        background: #455a64 !important;
        border-color: #1976d2 !important;
    }

    /* 🔴 6. SIDE DRAWER (Question Palette) */
    #tb-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        display: none;
    }

    #tb-side-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: #2b2b2b;
        z-index: 10001;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .tb-drawer-header {
        background: #2b2b2b;
    }

    .tb-tabs {
        display: flex;
    }

    .tb-tabs button {
        flex: 1;
        background: #333;
        border: none;
        color: #888;
        padding: 16px;
        font-size: 1rem;
        cursor: pointer;
    }

    .tb-tabs button.active {
        color: #fff;
        border-bottom: 2px solid #fff;
        background: #2b2b2b;
        font-weight: bold;
    }

    .tb-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px;
        font-size: 0.85rem;
        color: #ccc;
        border-bottom: 1px solid #444;
    }

    .tb-stat-counts {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        background: #2b2b2b;
        border-bottom: 1px solid #444;
    }

    #tb-drawer-content {
        flex: 1;
        overflow-y: auto;
        background: #222;
    }

    .tb-grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        padding: 20px;
    }

    .tb-grid-item {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.95rem;
    }

    .tb-grid-item.unseen {
        border: 1px solid #666;
        color: #ccc;
    }

    .tb-grid-item.unattempted {
        background: #666;
    }

    .tb-grid-item.attempted {
        background: #1976d2;
    }

    .tb-grid-item.review {
        background: #333;
        color: #f44336;
        border: 1px solid #f44336;
    }

    .tb-grid-item.current {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    }

    .tb-list-container {
        padding: 10px 15px;
    }

    .tb-list-item {
        display: flex;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #333;
        gap: 15px;
    }

    .tb-list-num {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .tb-list-num.unseen {
        border: 1px solid #666;
        color: #ccc;
    }

    .tb-list-num.unattempted {
        background: #666;
        color: #fff;
    }

    .tb-list-num.attempted {
        background: #1976d2;
        color: #fff;
    }

    .tb-list-num.review {
        color: #f44336;
        border: 1px solid #f44336;
    }

    .tb-list-text {
        color: #ccc;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .tb-drawer-footer {
        padding: 15px;
        background: #333;
        border-top: 1px solid #444;
    }

    .tb-submit-btn {
        width: 100%;
        background: #607d8b;
        color: #fff;
        padding: 15px;
        font-weight: bold;
        border-radius: 4px;
        border: none;
        font-size: 1.05rem;
    }
}

/* =========================================
   📱 TESTBOOK MOBILE CLONE CSS (Moved from mobile.js)
   ========================================= */
/* =========================================
   🔥 PRACTICE MODE: DESKTOP ACTIONS (Restored from Inline)
   ========================================= */
.practice-action-wrapper {
    position: absolute;
    top: 12px;
    right: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #333;
    z-index: 5;
}

.test-question-card {
    position: relative;
    padding-top: 35px;
    /* Default for desktop */
}

/* =========================================
   📱 TESTBOOK MOBILE CLONE CSS (Integrated from mobile.js tweaks)
   ========================================= */
@media (max-width: 768px) {

    /* 🛑 HIDE ALL DESKTOP JUNK */
    .test-header,
    .test-footer-nav,
    #question-grid-panel,
    .mock-action-row:not(#tb-bottom-bar) {
        display: none !important;
    }

    /* 🌐 MAIN BODY SETUP */
    body,
    html {
        background: #222 !important;
        margin: 0;
        padding: 0;
    }

    #test-view {
        padding-top: 160px !important;
        /* 🔥 INCREASED based on user input */
        padding-bottom: 75px !important;
        background: #2c2c2c !important;
        height: 100vh !important;
        box-sizing: border-box !important;
    }

    #test-question-container {
        height: 100% !important;
        overflow-y: auto !important;
        padding: 20px !important;
    }

    /* 🌟 TOP HEADER */
    #tb-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background: #2c2c2c;
        border-bottom: 1px solid #3c3c3c;
        font-family: sans-serif;
    }

    .tb-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }

    .tb-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .tb-pause-btn {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        border: 2px solid #888;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .tb-timer-title {
        display: flex;
        flex-direction: column;
    }

    #tb-time-disp {
        font-weight: bold;
        font-size: 1.25rem;
        color: #fff;
        line-height: 1.1;
    }

    .tb-title {
        font-size: 0.85rem;
        color: #aaa;
    }

    .tb-right {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .tb-lang-btn {
        border: 1px solid #888;
        padding: 4px 8px;
        border-radius: 4px;
        color: #aaa;
        font-size: 0.9rem;
        font-weight: bold;
        cursor: pointer;
    }

    .tb-hamburger {
        font-size: 1.6rem;
        color: #fff;
        cursor: pointer;
    }

    /* 🌟 SUB HEADER */
    .tb-sub-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #333;
        border-top: 1px solid #444;
    }

    .tb-left-sub {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .tb-q-badge {
        background: #444;
        color: #fff;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.95rem;
    }

    .tb-q-time {
        color: #888;
        font-size: 0.85rem;
        border-left: 1px solid #555;
        padding-left: 12px;
    }

    .tb-marks {
        display: flex;
        gap: 6px;
        font-size: 0.8rem;
        font-weight: bold;
    }

    .tb-marks .pos {
        background: rgba(76, 175, 80, 0.2);
        color: #81c784;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .tb-marks .neg {
        background: rgba(244, 67, 54, 0.2);
        color: #e57373;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .tb-right-sub {
        display: flex;
        gap: 18px;
        color: #888;
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* 🌟 BOTTOM ACTION BAR */
    #tb-bottom-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        background: #2c2c2c !important;
        border-top: 1px solid #444 !important;
        z-index: 999 !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    .tb-btn {
        flex: 1;
        padding: 14px 0 !important;
        border-radius: 6px !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
        cursor: pointer;
        text-align: center;
        font-family: sans-serif;
    }

    .tb-btn.outline {
        background: transparent !important;
        border: 1px solid #ccc !important;
        color: #fff !important;
    }

    .tb-btn.primary {
        background: #1976d2 !important;
        border: none !important;
        color: #fff !important;
        font-weight: bold !important;
    }

    /* 🌟 QUESTION OPTIONS */
    .mock-options-container {
        margin-top: 25px !important;
    }

    .mock-option-label {
        display: flex !important;
        align-items: center !important;
        background: #3a3a3a !important;
        border: 1px solid #555 !important;
        padding: 18px !important;
        border-radius: 6px !important;
        margin-bottom: 15px !important;
        color: #fff !important;
        font-size: 1.05rem !important;
        cursor: pointer;
    }

    .mock-option-label .opt-circle {
        background: transparent !important;
        color: #aaa !important;
        border: none !important;
        margin-right: 15px !important;
        font-size: 1.1rem !important;
        font-style: italic !important;
    }

    .mock-option-label:has(input:checked),
    .mock-option-label.selected {
        background: #324452 !important;
        border-color: #1976d2 !important;
    }

    /* 🌟 SIDE DRAWER (Hamburger Menu) */
    #tb-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        display: none;
    }

    #tb-side-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: #2b2b2b;
        z-index: 10001;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        font-family: sans-serif;
    }

    .tb-tabs {
        display: flex;
    }

    .tb-tabs button {
        flex: 1;
        background: #333;
        border: none;
        color: #aaa;
        padding: 18px;
        font-size: 1rem;
        cursor: pointer;
    }

    .tb-tabs button.active {
        color: #fff;
        border-bottom: 3px solid #ccc;
        background: #2b2b2b;
        font-weight: bold;
    }

    .tb-instructions {
        padding: 15px;
        color: #fff;
        font-size: 1rem;
        border-bottom: 1px solid #444;
        cursor: pointer;
    }

    .tb-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px;
        font-size: 0.85rem;
        color: #ccc;
        border-bottom: 1px solid #444;
    }

    .tb-leg-item {
        display: flex;
        align-items: center;
    }

    .tb-icon {
        width: 16px;
        text-align: center;
        font-size: 1.2rem;
        margin-right: 8px;
    }

    .tb-icon.review {
        color: #f44336;
    }

    .tb-icon.attempted {
        color: #1976d2;
    }

    .tb-icon.unattempted {
        color: #888;
    }

    .tb-icon.unseen {
        color: #aaa;
    }

    .tb-section-header {
        padding: 15px;
        font-size: 1.1rem;
        color: #fff;
        border-bottom: 1px solid #444;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .tb-stat-counts {
        display: flex;
        justify-content: space-between;
        padding: 15px 20px;
        background: #2b2b2b;
        border-bottom: 1px solid #444;
        font-size: 1rem;
        font-weight: bold;
    }

    /* 🌟 GRID & LIST VIEWS */
    #tb-drawer-content {
        flex: 1;
        overflow-y: auto;
        background: #222;
    }

    /* Grid View */
    .tb-grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .tb-grid-item {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.95rem;
        font-weight: bold;
        cursor: pointer;
    }

    .tb-grid-item.unseen {
        border: 1px solid #666;
        color: #ccc;
    }

    .tb-grid-item.unattempted {
        background: #666;
    }

    .tb-grid-item.attempted {
        background: #1976d2;
    }

    .tb-grid-item.review {
        background: #333;
        color: #f44336;
        border: 1px solid #f44336;
    }

    .tb-grid-item.current {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    }

    /* List View (Matches Screenshot 3) */
    .tb-list-container {
        padding: 0;
    }

    .tb-list-item {
        display: flex;
        align-items: flex-start;
        padding: 15px;
        border-bottom: 1px solid #333;
        gap: 15px;
        cursor: pointer;
    }

    .tb-list-num {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        font-weight: bold;
        flex-shrink: 0;
    }

    .tb-list-num.unseen {
        border: 1px solid #666;
        color: #ccc;
    }

    .tb-list-num.unattempted {
        background: #666;
        color: #fff;
    }

    .tb-list-num.attempted {
        background: #1976d2;
        color: #fff;
    }

    .tb-list-num.review {
        color: #f44336;
        border: 1px solid #f44336;
    }

    .tb-list-text {
        color: #ccc;
        font-size: 0.95rem;
        line-height: 1.4;
        padding-top: 4px;
    }

    /* 🌟 SUBMIT BUTTON */
    .tb-drawer-footer {
        padding: 15px;
        background: #333;
        border-top: 1px solid #444;
    }

    .tb-submit-btn {
        width: 100%;
        background: #607d8b;
        color: #fff;
        padding: 15px;
        font-weight: bold;
        border-radius: 4px;
        border: none;
        font-size: 1.05rem;
        letter-spacing: 1px;
        cursor: pointer;
    }
}

/* 📱 MOBILE FIX: Release Wrapper Constraints */
@media (max-width: 768px) {
    .practice-action-wrapper {
        position: static !important;
        display: block !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        height: 0 !important;
    }
}

/* =========================================
   🔥 PRACTICE MODE: SAVE & STAR BUTTON PERFECT FIX 🔥
   ========================================= */

@media (max-width: 768px) {

    /* 1. सवाल वाले कार्ड को बड़ा और फिक्स करना */
    .test-question-card {
        position: relative !important;
        /* इससे बटन कार्ड के बाहर नहीं भागेंगे */
        padding-top: 50px !important;
        /* बटनों के लिए अंदर ही जगह बनाई */
        min-height: 140px !important;
        /* 🔥 कार्ड का साइज़ बढ़ा दिया ताकि छोटा न लगे */
        display: block !important;
    }

    /* 2. बटनों को कार्ड के बिल्कुल अंदर टॉप पर सेट करना */
    .save-icon-btn,
    .star-action-btn {
        position: absolute !important;
        top: 10px !important;
        /* कार्ड के अंदर ऊपर से फिक्स */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        font-size: 1.4rem !important;
        z-index: 10 !important;
        padding: 5px !important;
        margin: 0 !important;
    }

    /* 3. 'Save' बटन को दाईं ओर रखना */
    .save-icon-btn {
        right: 10px !important;
        left: auto !important;
    }

    /* 4. 'Star' बटन को 'Save' के बिल्कुल पास लाना (दूरी एकदम कम कर दी) */
    .star-action-btn {
        right: 45px !important;
        /* 🔥 दोनों के बीच अब सिर्फ़ 35px का गैप है */
        left: auto !important;
    }
}

/* 📱 MOBILE FIX: Release Wrapper Constraints */
@media (max-width: 768px) {
    .practice-action-wrapper {
        position: static !important;
        display: block !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        height: 0 !important;
    }
}

/* =========================================
   📱 MOBILE VIEW FIX (TEST ENGINE CLASH REMOVER)
   ========================================= */
@media (max-width: 768px) {

    /* 1. डेस्कटॉप के हेडर को मोबाइल में पूरी तरह छुपा दें */
    .mock-header {
        display: none !important;
    }

    /* 2. डेस्कटॉप के राइट पैनल (ग्रिड) को छुपाएं (क्योंकि मोबाइल का अपना ग्रिड ड्रॉअर है) */
    .mock-right-panel {
        display: none !important;
    }

    /* 3. डेस्कटॉप के पुराने 'Save & Next' और 'Prev/Next' बटनों को छुपाएं 
       (ताकि Testbook वाले मोबाइल फुटर के साथ मिक्स न हों) */
    .mock-action-row,
    .mock-nav-row {
        display: none !important;
    }

    /* 4. मोबाइल व्यू में लेफ्ट पैनल को 100% चौड़ाई दें ताकि वह पूरी स्क्रीन ले ले */
    .mock-left-panel {
        width: 100% !important;
        border-right: none !important;
        padding-bottom: 80px !important;
        /* मोबाइल फुटर के लिए जगह */
    }
}

/* =========================================
   📱 PREMIUM MOBILE TEST ENGINE (768px Below)
   ========================================= */
@media (max-width: 768px) {

    /* 1. TOP HEADER (65px Height) */
    #tb-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #1e1e24;
        border-bottom: 1px solid #333;
        z-index: 10000;
        display: flex;
        align-items: center;
        padding: 0 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .tb-top-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tb-header-left {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #fff;
    }

    #tb-time-disp {
        font-size: 1.25rem;
        font-weight: bold;
        color: #03dac6;
        letter-spacing: 0.5px;
    }

    .tb-header-right {
        display: flex;
        align-items: center;
        gap: 20px;
        color: #fff;
    }

    .tb-lang-pill {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid #555;
        padding: 5px 12px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.9rem;
    }

    /* 2. FLOATING QUESTION CARD */
    #test-question-container {
        background: #1e1e24 !important;
        border: 1px solid #333 !important;
        border-radius: 15px !important;
        /* Header(65px) + 10px gap */
        margin: 75px 12px 90px 12px !important;
        padding: 25px 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
        height: auto !important;
        min-height: 400px;
        overflow-y: visible !important;
    }

    /* Question Number Badge inside Card */
    .q-badge {
        display: inline-block;
        background: #03dac6;
        color: #000;
        padding: 2px 10px;
        border-radius: 6px;
        font-weight: bold;
        margin-right: 12px;
        font-size: 0.9rem;
        vertical-align: middle;
    }

    /* 3. BOTTOM ACTION BAR */
    #tb-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75px;
        background: #1e1e24;
        border-top: 1px solid #333;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 12px;
    }

    /* Buttons Styling */
    .tb-btn-review,
    .tb-btn-clear,
    .tb-btn-save {
        height: 48px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.85rem;
        text-transform: uppercase;
        transition: 0.2s;
    }

    /* Review Button (Laptop Style Sync) */
    .tb-btn-review {
        border: 1.5px solid #ffb300;
        color: #ffb300;
        background: transparent;
        flex: 1;
        margin-right: 8px;
    }

    .tb-btn-review.marked {
        background: #ffb300;
        color: #000;
        border-color: #ffb300;
    }

    .tb-btn-clear {
        border: 1.5px solid #666;
        color: #ccc;
        background: transparent;
        flex: 0.7;
        margin-right: 8px;
    }

    .tb-btn-save {
        background: #1890ff;
        color: #fff;
        border: none;
        flex: 1.4;
        box-shadow: 0 4px 10px rgba(24, 144, 255, 0.3);
    }

    /* 4. PREMIUM SIDE DRAWER (GRID/LIST) */
    #tb-side-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100%;
        background: #16161a;
        z-index: 10001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .tb-drawer-header {
        padding: 25px 20px;
        border-bottom: 1px solid #333;
    }

    .tb-tabs {
        display: flex;
        gap: 20px;
        border-bottom: 2px solid #2d2d2d;
        margin-bottom: 15px;
    }

    .tb-tabs button {
        padding: 10px 5px;
        background: transparent;
        border: none;
        color: #888;
        font-weight: bold;
        font-size: 1rem;
    }

    .tb-tabs button.active {
        color: #fff;
        border-bottom: 2px solid #1890ff;
    }

    /* Grid Items */
    .tb-grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        padding: 20px;
        overflow-y: auto;
    }

    .tb-grid-item {
        width: 45px;
        height: 45px;
        border: 1.5px solid #444;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: bold;
    }

    .tb-grid-item.attempted {
        background: #1890ff;
        border-color: #1890ff;
    }

    .tb-grid-item.review {
        background: #ffb300;
        border-color: #ffb300;
        color: #000;
    }

    /* List Items */
    .tb-list-container {
        padding: 10px 20px;
        overflow-y: auto;
    }

    .tb-list-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #222;
    }

    .list-num {
        width: 32px;
        height: 32px;
        border: 1px solid #444;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 0.85rem;
    }

    .list-num.attempted {
        background: #1890ff;
        border-color: #1890ff;
    }

    .list-text {
        font-size: 0.9rem;
        color: #aaa;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Drawer Footer */
    .tb-drawer-footer {
        padding: 20px;
        border-top: 1px solid #333;
        margin-top: auto;
    }

    .tb-submit-btn {
        width: 100%;
        padding: 16px;
        background: #37474f;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-weight: bold;
        font-size: 1rem;
    }

    #tb-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 10000;
        display: none;
    }
}

@media (max-width: 768px) {

    /* 1. Header Fix (Top Position) */
    #tb-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #1e1e24;
        border-bottom: 1px solid #333;
        z-index: 10000;
        display: flex;
        align-items: center;
        padding: 0 15px;
    }

    .tb-top-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #tb-time-disp {
        color: #03dac6;
        font-weight: bold;
        font-size: 1.1rem;
    }

    .tb-lang-btn {
        background: #333;
        border: 1px solid #444;
        color: #fff;
        padding: 4px 10px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 0.85rem;
    }

    /* 2. Question Card (Gap Fix) */
    #test-question-container {
        background: #1e1e24 !important;
        border: 1px solid #333 !important;
        border-radius: 12px !important;
        margin: 65px 10px 80px 10px !important;
        /* Only 65px margin from top header */
        padding: 20px !important;
        height: auto !important;
        min-height: 400px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
    }

    .card-num {
        background: #03dac6;
        color: #000;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: bold;
        margin-right: 8px;
    }

    /* 3. Drawer & View Design */
    #tb-side-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100%;
        background: #1a1a1f;
        z-index: 10001;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
    }

    .tb-tabs {
        display: flex;
        background: #25252b;
    }

    .tb-tabs button {
        flex: 1;
        padding: 15px;
        background: transparent;
        border: none;
        color: #888;
        font-weight: bold;
        border-bottom: 2px solid transparent;
    }

    .tb-tabs button.active {
        color: #fff;
        border-bottom-color: #1890ff;
    }

    /* Grid Icons */
    .tb-grid-flex {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        padding: 20px;
        overflow-y: auto;
    }

    .tb-circle {
        width: 42px;
        height: 42px;
        border: 1px solid #444;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.9rem;
    }

    .tb-circle.attempted {
        background: #1890ff;
        border-color: #1890ff;
    }

    .tb-circle.review {
        background: #ffb300;
        border-color: #ffb300;
        color: #000;
    }

    /* List Rows */
    .tb-list-column {
        padding: 10px;
        overflow-y: auto;
    }

    .tb-list-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px;
        border-bottom: 1px solid #2d2d33;
    }

    .list-idx {
        width: 30px;
        height: 30px;
        border: 1px solid #444;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 0.8rem;
    }

    .list-idx.attempted {
        background: #1890ff;
        border-color: #1890ff;
    }

    /* Bottom Bar */
    #tb-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #1e1e24;
        border-top: 1px solid #333;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
    }

    .tb-btn-review.marked {
        background: #ffb300;
        color: #000;
    }

    #tb-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 10000;
        display: none;
    }
}