body{padding-top:64px;}

  /* ---------- Top progress bar (shown during navigation/loads) ---------- */
  .top-loader{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:9999;transition:width .3s var(--ease),opacity .3s var(--ease);}
  .top-loader.active{width:70%;}
  .top-loader.done{width:100%;opacity:0;}

  /* ---------- Navbar ---------- */
  .glass-nav{position:fixed;top:0;left:0;right:0;z-index:1030;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);padding:.55rem 0;}
  .brand{display:flex;align-items:center;gap:.6rem;cursor:pointer;}
  .brand-badge{width:38px;height:38px;border-radius:10px;
    
    
    
    
    
    
    
    
    
    
    
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  margin-top: -80px;
    min-width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 6rem;
    position: relative;
    overflow: hidden;
}

/* Slide Theme Variations */
.slide-blue {
    background: url('https://viva24.in/img/tech.jpg');
    background-size: cover;
    color: #FFFFFF;
}
color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.05rem;overflow:hidden;flex-shrink:0;}
  .brand-badge img{width:100%;height:100%;object-fit:cover;}
  .brand-text{font-family:var(--font-display);font-weight:800;font-size:1.2rem;color:var(--text-dark);letter-spacing:-.01em;}
  .breadcrumb-nav{list-style:none;display:flex;align-items:center;gap:.25rem;margin:0;padding:0;flex-wrap:wrap;}
  .crumb-btn{background:none;border:none;color:var(--text-muted);font-weight:600;font-size:.88rem;padding:.4rem .55rem;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:.3rem;}
  .crumb-btn:hover{background:var(--primary-tint);color:var(--primary);}
  .crumb-btn.current{color:var(--text-dark);}
  .crumb-sep{color:var(--border);font-size:.75rem;}
  .badge-dot{position:absolute;top:2px;right:2px;background:var(--accent);color:#1e293b;font-size:.62rem;font-weight:800;min-width:16px;height:16px;border-radius:99px;display:flex;align-items:center;justify-content:center;padding:0 3px;}

  /* ---------- Student login ---------- */
  .student-login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem;}
  .student-login-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:2.2rem 2rem;text-align:center;}
  .student-login-card .brand-badge.lg{width:56px;height:56px;border-radius:14px;font-size:1.5rem;margin:0 auto 1rem;}
  .student-login-card h1{font-size:1.4rem;margin-bottom:.35rem;}
  .student-login-card form{text-align:left;margin-top:1.2rem;}
  .remember-row{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text-muted);margin:.2rem 0 1rem;cursor:pointer;}
  .remember-row input{width:auto;}
  .form-error{background:#fef2f2;color:var(--danger);border:1px solid #fecaca;border-radius:var(--radius-sm);padding:.7rem .9rem;font-size:.84rem;font-weight:600;margin-bottom:1rem;display:none;}
  [data-theme="dark"] .form-error{background:#2a1414;border-color:#4a1f1f;}
  .form-error.show{display:block;}
  .consent-note{font-size:.72rem;color:var(--text-muted);line-height:1.5;margin-top:1.3rem;}

  /* ---------- Profile chip & dropdown ---------- */
  .profile-chip-wrap{position:relative;}
  .profile-chip{display:flex;align-items:center;gap:.45rem;background:var(--surface-2);border:1px solid var(--border);border-radius:99px;padding:.3rem .7rem .3rem .3rem;cursor:pointer;color:var(--text-dark);}
  .profile-chip:hover{border-color:var(--primary);}
  .profile-avatar{width:28px;height:28px;border-radius:99px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;flex-shrink:0;}
  .profile-chip-name{font-weight:600;font-size:.85rem;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .profile-dropdown{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);width:230px;padding:.5rem;opacity:0;pointer-events:none;transform:translateY(-6px);transition:opacity .18s var(--ease),transform .18s var(--ease);z-index:1000;}
  .profile-dropdown.open{opacity:1;pointer-events:auto;transform:translateY(0);}
  .profile-dropdown-head{padding:.5rem .6rem .7rem;border-bottom:1px solid var(--border);margin-bottom:.4rem;display:flex;flex-direction:column;}
  .profile-dropdown-head b{font-size:.9rem;}
  .profile-dropdown-head span{font-size:.75rem;}
  .profile-dropdown button{width:100%;text-align:left;background:none;border:none;padding:.55rem .6rem;border-radius:8px;font-size:.85rem;color:var(--text-dark);cursor:pointer;display:flex;align-items:center;gap:.55rem;}
  .profile-dropdown button:hover{background:var(--primary-tint);color:var(--primary);}
  .profile-dropdown button.danger:hover{background:#fee2e2;color:var(--danger);}
  .profile-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem 1rem;text-align:left;}
  .pr-row{display:flex;flex-direction:column;gap:.15rem;}
  .pr-row span{font-size:.72rem;}
  .pr-row b{font-size:.92rem;color:var(--text-dark);}
  .badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;}
  .badge-tile{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:.9rem .5rem;border-radius:var(--radius-md);background:var(--surface-2);border:1px solid var(--border);opacity:.4;text-align:center;}
  .badge-tile.earned{opacity:1;background:var(--primary-tint);border-color:var(--primary);}
  .badge-tile i{font-size:1.4rem;color:var(--primary);}
  .badge-tile span{font-size:.7rem;font-weight:600;line-height:1.2;}

  /* ---------- Continue Learning ---------- */
  .continue-card{display:flex;align-items:center;gap:1rem;background:linear-gradient(135deg,var(--primary-tint),var(--surface));border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.1rem 1.3rem;margin:1.2rem 0;cursor:pointer;transition:box-shadow .18s var(--ease);}
  .continue-card:hover{box-shadow:var(--shadow-md);}
  .cc-icon{width:44px;height:44px;border-radius:12px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0;}
  .cc-body{flex:1;min-width:0;}
  .cc-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--primary);}
  .cc-body h4{font-size:1rem;margin:.15rem 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .cc-meta{font-size:.78rem;color:var(--text-muted);}
  .cc-progress{height:5px;background:var(--surface-2);border-radius:99px;margin-top:.5rem;overflow:hidden;}
  .cc-progress-fill{height:100%;background:var(--primary);border-radius:99px;}

  /* ---------- Hero ---------- */
  .hero-section{padding:3.2rem 0 2.6rem;position:relative;}
  .eyebrow{
    display:inline-flex;align-items:center;gap:.4rem;background:var(--primary-tint);color:var(--primary);
    font-weight:700;font-size:.78rem;padding:.4rem .85rem;border-radius:99px;margin-bottom:1.1rem;
  }
  .hero-title{font-size:clamp(1.9rem,4.2vw,3rem);line-height:1.12;font-weight:800;letter-spacing:-.02em;max-width:700px;}
  .hl{position:relative;white-space:nowrap;}
  .hl::after{
    content:'';position:absolute;left:-.1em;right:-.1em;bottom:.06em;height:.34em;background:var(--accent);
    opacity:.45;z-index:-1;transform:rotate(-.6deg);border-radius:2px;
  }
  .hero-sub{margin-top:1rem;font-size:1.05rem;color:var(--text-muted);max-width:560px;line-height:1.6;}
  .hero-stats{display:flex;gap:2.2rem;margin-top:2rem;flex-wrap:wrap;}
  .hero-stat b{font-family:var(--font-display);font-size:1.7rem;color:var(--text-dark);display:block;line-height:1;}
  .hero-stat span{font-size:.8rem;color:var(--text-muted);font-weight:600;}

  /* ---------- View header / back button ---------- */
  .view-header{display:flex;align-items:center;gap:1rem;padding:1.6rem 0 1.4rem;}
  .back-btn{
    background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);
    width:42px;height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
    cursor:pointer;color:var(--text-dark);font-size:1rem;transition:all .18s var(--ease);
  }
  .back-btn:hover{border-color:var(--primary);color:var(--primary);}
  #viewTitle{font-size:1.5rem;font-weight:800;}
  .chapter-lock-note{display:inline-flex;align-items:center;gap:.35rem;color:var(--warning);font-size:.85rem;font-weight:600;margin-top:.2rem;}

  .section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:1.2rem;flex-wrap:wrap;gap:.5rem;}
  .section-head h3{font-size:1.3rem;font-weight:800;}

  /* ---------- Card grids ---------- */
  .grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.1rem;padding-bottom:2.5rem;}
  .view-section{padding-top:.3rem;}

  .class-card,.subject-card{
    --acc:var(--primary);
    background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
    padding:1.4rem 1.3rem;cursor:pointer;position:relative;overflow:hidden;
    transition:transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s var(--ease);
    display:flex;flex-direction:column;gap:.85rem;min-height:150px;
  }
  .class-card::before,.subject-card::before{
    content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--acc);
  }
  .class-card:hover,.subject-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:transparent;}
  .card-icon{
    width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;
    background:color-mix(in srgb, var(--acc) 14%, transparent);color:var(--acc);font-size:1.3rem;
  }
  .card-title{font-family:var(--font-display);font-weight:700;font-size:1.05rem;color:var(--text-dark);}
  .card-desc{font-size:.83rem;color:var(--text-muted);line-height:1.5;flex:1;}
  .card-foot{display:flex;align-items:center;justify-content:space-between;font-size:.78rem;color:var(--text-muted);font-weight:600;}
  .card-foot i{color:var(--acc);}
  .skel-card{height:170px;}

  /* ---------- Chapters list (numbered, "table of contents" pattern) ---------- */
  .chapters-list{display:flex;flex-direction:column;gap:.7rem;padding-bottom:2.5rem;}
  .chapter-row{
    background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
    padding:1.1rem 1.3rem;display:flex;align-items:center;gap:1.1rem;cursor:pointer;position:relative;overflow:hidden;
    transition:transform .18s var(--ease),box-shadow .18s var(--ease),border-color .18s var(--ease);
  }
  .chapter-row:hover{transform:translateX(4px);box-shadow:var(--shadow-md);border-color:var(--primary);}
  .chapter-row.locked{cursor:default;opacity:.72;}
  .chapter-row.locked:hover{transform:none;box-shadow:none;border-color:var(--border);}
  .chapter-num{
    font-family:var(--font-display);font-weight:800;font-size:2.4rem;color:var(--border);
    line-height:1;flex-shrink:0;width:58px;text-align:center;transition:color .18s var(--ease);
  }
  .chapter-row:hover .chapter-num{color:var(--primary-tint);}
  .chapter-body{flex:1;min-width:0;}
  .chapter-body h4{font-size:1.05rem;font-weight:700;margin-bottom:.2rem;}
  .chapter-body p{font-size:.82rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .chapter-meta{display:flex;align-items:center;gap:.5rem;flex-shrink:0;}
  .skel-chapter{height:78px;border-radius:var(--radius-md);}

  /* ---------- Resource tabs + section divider ---------- */
  .resource-tabs{list-style:none;display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.3rem;border:none;padding:0;}
  .resource-tabs .nav-link{
    border:1.5px solid var(--border);border-radius:99px;padding:.5rem 1.1rem;font-size:.86rem;font-weight:700;
    color:var(--text-muted);background:var(--surface);cursor:pointer;transition:all .18s var(--ease);
  }
  .resource-tabs .nav-link.active{background:var(--primary);border-color:var(--primary);color:#fff;}
  .resource-tabs .nav-link:hover:not(.active){border-color:var(--primary);color:var(--primary);}

  .section-divider{
    grid-column:1/-1;display:flex;align-items:center;gap:.7rem;margin:.4rem 0 .2rem;font-family:var(--font-display);
    font-weight:700;font-size:.92rem;color:var(--text-dark);
  }
  .section-divider .mark{background:var(--accent);opacity:.5;padding:.15rem .55rem;border-radius:4px;transform:rotate(-.6deg);}
  .section-divider::after{content:'';flex:1;height:1px;background:var(--border);}

  .resource-card{
    background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;
    display:flex;flex-direction:column;transition:transform .18s var(--ease),box-shadow .18s var(--ease);position:relative;
  }
  .resource-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);}
  .resource-thumb{
    height:110px;background:linear-gradient(135deg,var(--primary-tint),var(--accent-tint));
    display:flex;align-items:center;justify-content:center;font-size:2.2rem;color:var(--primary);position:relative;
  }
  .resource-thumb img{width:100%;height:100%;object-fit:cover;}
  .resource-type-chip{
    position:absolute;top:.6rem;left:.6rem;background:rgba(255,255,255,.92);color:var(--text-dark);
    font-size:.68rem;font-weight:800;padding:.22rem .55rem;border-radius:6px;text-transform:uppercase;letter-spacing:.03em;
  }
  .resource-star{position:absolute;top:.6rem;right:.6rem;color:var(--accent);font-size:1rem;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25));}
  .resource-body{padding:.9rem 1rem 1rem;display:flex;flex-direction:column;gap:.5rem;flex:1;}
  .resource-body h5{font-size:.92rem;font-weight:700;line-height:1.35;}
  .resource-body .rmeta{font-size:.74rem;color:var(--text-muted);display:flex;gap:.6rem;flex-wrap:wrap;}
  .resource-actions{display:flex;gap:.5rem;margin-top:auto;padding-top:.3rem;}
  .resource-actions .btn-brand,.resource-actions .btn-ghost{flex:1;justify-content:center;padding:.5rem .6rem;font-size:.82rem;}
  .skel-resource{height:230px;}

  /* ---------- Search overlay ---------- */
  .search-overlay{
    position:fixed;inset:0;background:rgba(10,14,26,.6);backdrop-filter:blur(4px);z-index:9500;
    display:flex;flex-direction:column;align-items:center;padding:5vh 1rem;opacity:0;pointer-events:none;transition:opacity .2s var(--ease);
  }
  .search-overlay.open{opacity:1;pointer-events:auto;}
  .search-box{
    width:100%;max-width:640px;background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
    padding:.4rem .5rem .4rem 1.2rem;display:flex;align-items:center;gap:.7rem;font-size:1.15rem;color:var(--text-muted);
  }
  .search-box input{flex:1;border:none;outline:none;background:transparent;padding:.85rem 0;font-size:1rem;color:var(--text);font-family:inherit;}
  .search-results{width:100%;max-width:640px;margin-top:.8rem;max-height:60vh;overflow-y:auto;}
  .search-result-item{
    background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.8rem 1rem;
    display:flex;align-items:center;gap:.8rem;margin-bottom:.5rem;cursor:pointer;transition:border-color .15s var(--ease);
  }
  .search-result-item:hover{border-color:var(--primary);}
  .search-result-item .sri-icon{width:38px;height:38px;border-radius:9px;background:var(--primary-tint);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
  .search-result-item .sri-title{font-weight:700;font-size:.9rem;}
  .search-result-item .sri-path{font-size:.76rem;color:var(--text-muted);}

  /* ---------- Viewer modal (PPT/Notes/Book/Video preview) ---------- */
  .viewer-modal{position:fixed;inset:0;z-index:9600;display:none;align-items:center;justify-content:center;padding:1rem;}
  .viewer-modal.open{display:flex;}
  .viewer-backdrop{position:absolute;inset:0;background:rgba(6,9,18,.82);}
  .viewer-panel{
    position:relative;background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:920px;
    max-height:88vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);
  }
  .viewer-head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.2rem;border-bottom:1px solid var(--border);}
  .viewer-head h5{font-size:1rem;font-weight:700;}
  .viewer-body{flex:1;overflow:auto;background:#0f172a;display:flex;align-items:center;justify-content:center;min-height:340px;}
  .viewer-body iframe,.viewer-body video{width:100%;height:min(70vh,600px);border:none;}
  .viewer-body .no-preview{color:#cbd5e1;text-align:center;padding:2.5rem;}

  /* ---------- Test taking ---------- */
  .test-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;max-width:640px;margin:0 auto;text-align:center;}
  .test-card .ticon{width:64px;height:64px;border-radius:16px;background:var(--primary-tint);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:1.8rem;margin:0 auto 1.2rem;}
  .test-stats-row{display:flex;justify-content:center;gap:1.8rem;margin:1.4rem 0;flex-wrap:wrap;}
  .test-stats-row div{text-align:center;}
  .test-stats-row b{display:block;font-family:var(--font-display);font-size:1.3rem;}
  .test-stats-row span{font-size:.76rem;color:var(--text-muted);font-weight:600;}
  .name-input-wrap{max-width:320px;margin:0 auto 1.2rem;}

  .test-runner{max-width:720px;margin:0 auto;}
  .test-topbar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:.9rem 1.2rem;margin-bottom:1.2rem;position:sticky;top:74px;z-index:5;transition:top .2s var(--ease);}
  .test-topbar-info{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;}
  .timer-chip{display:flex;align-items:center;gap:.5rem;font-family:var(--font-display);font-weight:800;font-size:1.05rem;color:var(--text-dark);}
  .timer-chip.low{color:var(--danger);}
  .q-progress{font-size:.82rem;color:var(--text-muted);font-weight:600;}
  #focusModeBtn.active{border-color:var(--primary);color:var(--primary);background:var(--primary-tint);}
  .test-nav-group{display:flex;gap:.6rem;flex-wrap:wrap;}
  #markReviewBtn.active{border-color:var(--warning);color:var(--warning);background:color-mix(in srgb, var(--warning) 10%, transparent);}
  .q-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.6rem;margin-bottom:1.2rem;}
  .q-card h5{font-size:1.05rem;line-height:1.5;margin-bottom:1.2rem;}
  .q-option{
    display:flex;align-items:center;gap:.8rem;padding:.85rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);
    margin-bottom:.6rem;cursor:pointer;transition:all .15s var(--ease);font-size:.92rem;
  }
  .q-option:hover{border-color:var(--primary);}
  .q-option.selected{border-color:var(--primary);background:var(--primary-tint);font-weight:600;}
  .q-option .opt-letter{width:26px;height:26px;border-radius:50%;background:var(--surface-2);border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.76rem;font-weight:800;flex-shrink:0;}
  .q-option.selected .opt-letter{background:var(--primary);border-color:var(--primary);color:#fff;}
  .q-jump-grid{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.4rem;}
  .q-jump{position:relative;width:36px;height:36px;border-radius:9px;border:1.5px solid var(--border);background:var(--surface);font-weight:700;font-size:.8rem;cursor:pointer;color:var(--text-muted);}
  .q-jump.answered{background:var(--primary-tint);border-color:var(--primary);color:var(--primary);}
  .q-jump.current{background:var(--primary);border-color:var(--primary);color:#fff;}
  .q-jump.locked{cursor:not-allowed;opacity:.45;}
  .q-jump.marked::after{content:'';position:absolute;top:-3px;right:-3px;width:9px;height:9px;border-radius:50%;background:var(--warning);border:1.5px solid var(--surface);}

  .result-card{max-width:560px;margin:0 auto;text-align:center;}
  .score-ring{width:160px;height:160px;margin:0 auto 1.2rem;position:relative;display:flex;align-items:center;justify-content:center;}
  .score-ring svg{transform:rotate(-90deg);}
  .score-ring .score-label{position:absolute;font-family:var(--font-display);font-weight:800;font-size:1.9rem;}
  .review-item{text-align:left;background:var(--surface-2);border-radius:var(--radius-sm);padding:1rem;margin-bottom:.7rem;border-left:4px solid var(--border);}
  .review-item.correct{border-left-color:var(--success);}
  .review-item.wrong{border-left-color:var(--danger);}
  .review-item .rq{font-weight:600;font-size:.9rem;margin-bottom:.4rem;}
  .review-item .ra{font-size:.82rem;color:var(--text-muted);line-height:1.7;}
  .review-item .ra-label{text-transform:uppercase;font-size:.68rem;letter-spacing:.03em;font-weight:700;color:var(--text-muted);}
  .review-item .ra-letter{font-weight:400;color:var(--text-muted);}
  .review-item .rexp{font-size:.8rem;margin-top:.4rem;color:var(--text-dark);background:var(--surface);padding:.5rem .7rem;border-radius:8px;}
  .review-options{display:flex;flex-direction:column;gap:.5rem;margin:.7rem 0 .3rem;}
  .review-option{display:flex;align-items:center;gap:.7rem;padding:.6rem .85rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.86rem;background:var(--surface);}
  .review-option .opt-letter{width:24px;height:24px;border-radius:50%;background:var(--surface-2);border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:800;flex-shrink:0;}
  .review-option .opt-text{flex:1;}
  .review-option.correct{border-color:var(--success);background:color-mix(in srgb, var(--success) 10%, transparent);}
  .review-option.correct .opt-letter{background:var(--success);border-color:var(--success);color:#fff;}
  .review-option.correct i{color:var(--success);}
  .review-option.wrong{border-color:var(--danger);background:color-mix(in srgb, var(--danger) 10%, transparent);}
  .review-option.wrong .opt-letter{background:var(--danger);border-color:var(--danger);color:#fff;}
  .review-option.wrong i{color:var(--danger);}
  .leaderboard-row{display:flex;align-items:center;gap:.8rem;padding:.7rem .9rem;border-radius:var(--radius-sm);}
  .leaderboard-row:nth-child(odd){background:var(--surface-2);}
  .lb-rank{width:26px;height:26px;border-radius:50%;background:var(--primary-tint);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:.76rem;font-weight:800;flex-shrink:0;}
  .lb-rank.top{background:var(--accent);color:#1e293b;}

  #certificateCanvas{max-width:100%;border-radius:var(--radius-md);box-shadow:var(--shadow-md);margin:1rem 0;}

  /* ---------- Footer ---------- */
  .footer{background:var(--footer-bg);color:var(--footer-muted);padding:1.6rem 0;margin-top:2rem;font-size:.85rem;text-align:center;}

  /* ---------- Focus Mode (distraction-free test attempts) ---------- */
  body.focus-mode{padding-top:16px;}
  body.focus-mode .glass-nav,
  body.focus-mode .footer{display:none;}
  body.focus-mode .test-topbar{top:16px;}

  @media (max-width:768px){
    body{padding-top:60px;}
    body.focus-mode{padding-top:12px;}
    .hero-section{padding:2.2rem 0 1.8rem;}
    .hero-stats{gap:1.4rem;}
    .grid-cards{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:.8rem;}
    .chapter-num{font-size:1.7rem;width:40px;}
    .test-topbar{position:static;}
  }








  /* ---------- Performance Dashboard ---------- */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.glass-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ph-subject-row { padding:.85rem 0; border-bottom:1px dashed var(--border); }
.ph-subject-row:last-child { border-bottom:none; }
.ph-subject-head { display:flex; align-items:baseline; justify-content:space-between; gap:.8rem; margin-bottom:.5rem; }
.ph-subject-head .ph-subject-title { font-size:.9rem; font-weight:600; color:var(--text-dark); }
.ph-subject-head b { font-size:.88rem; font-family:var(--font-display); color:var(--text-dark); flex-shrink:0; }
.ph-bar { height:8px; background:var(--surface-2); border-radius:99px; overflow:hidden; }
.ph-bar-fill { height:100%; background:var(--primary); border-radius:99px; transition:width .5s var(--ease); }
.ph-subject-note { font-size:.74rem; color:var(--text-muted); margin-top:.45rem; }

.sd-heatmap { display:flex; flex-wrap:wrap; gap:4px; margin:.5rem 0; }
.hm-cell { width:16px; height:16px; border-radius:4px; background:var(--surface-2); transition:transform .15s var(--ease); cursor:pointer; }
.hm-cell:hover { transform:scale(1.25); box-shadow:var(--shadow-sm); z-index:2; }
.hm-cell.hm-1 { background:#bbf7d0; } .hm-cell.hm-2 { background:#86efac; } .hm-cell.hm-3 { background:#4ade80; } .hm-cell.hm-4 { background:#16a34a; }
[data-theme="dark"] .hm-cell.hm-1 { background:#064e3b; } [data-theme="dark"] .hm-cell.hm-2 { background:#065f46; } [data-theme="dark"] .hm-cell.hm-3 { background:#047857; } [data-theme="dark"] .hm-cell.hm-4 { background:#059669; }

.sd-timeline-row { display:flex; align-items:flex-start; gap:.9rem; padding:.8rem 0; border-bottom:1px solid var(--border); }
.sd-timeline-row:last-child { border-bottom:none; padding-bottom:0; }
.sd-timeline-row .sti { width:36px; height:36px; border-radius:10px; background:var(--surface-2); color:var(--text-dark); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:.95rem; }
.sd-timeline-row .time-detail { flex:1; min-width:0; font-size:.85rem; }
.sd-timeline-row .time-detail b { color:var(--text-dark); }












.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  margin-top: -80px;
    min-width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 6rem;
    position: relative;
    overflow: hidden;
}

/* Slide Theme Variations */
.slide-blue {
    background: url('https://viva24.in/img/tech.jpg');
    background-size: cover;
    color: #FFFFFF;
}
