body{
margin:0;
font-family:Arial,sans-serif;
background-image:url("public/background.jpg");
background-size:cover;
background-position:center;
background-attachment:fixed;
}

/* DASHBOARD */

.container{
display:flex;
}

.sidebar{
width:220px;
height:100vh;
padding:25px;
display:flex;
flex-direction:column;
transition:.4s;
background:rgba(255,255,255,.75);
backdrop-filter:blur(20px);
border-top-right-radius:30px;
border-bottom-right-radius:30px;
box-shadow:5px 0px 30px rgba(0,0,0,.08);
position:sticky;
top:0;
overflow:hidden;
}

.sidebar.closed{
width:70px;
}

.menu-btn{
border:none;
background:none;
font-size:28px;
cursor:pointer;
margin-bottom:20px;
display:flex;
justify-content:flex-start;
padding-left:5px;
}

.sidebar h2{
font-size:34px;
margin-bottom:45px;
margin-top:10px;
}

.sidebar a{
text-decoration:none;
color:#333;
padding:14px;
margin-bottom:10px;
border-radius:15px;
transition:.3s;
font-size:20px;
}

.sidebar a:hover{
background:rgba(255,255,255,.15);
transform:scale(1.03);
}

.bottom{
margin-top:auto;
display:flex;
flex-direction:column;
gap:18px;
}

.sidebar.closed h2{
display:none;
}

.sidebar.closed a{
font-size:0;
padding:14px 0;
text-align:center;
}

.sidebar.closed a::first-letter{
font-size:26px;
}

.sidebar.closed .menu-btn{
justify-content:center;
}

.main{
flex:1;
padding:30px;
}

.hero img{
width:100%;
border-radius:30px;
box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.cards{
display:flex;
gap:25px;
margin-top:30px;
}

.feature-card,
.stat-card,
.achievement-card{
background:rgba(255,255,255,.65);
backdrop-filter:blur(15px);
box-shadow:0 8px 25px rgba(0,0,0,.1);
border-radius:25px;
}

.feature-card{
flex:1;
padding:15px;
}

.feature-card img{
width:100%;
height:220px;
object-fit:cover;
border-radius:15px;
}

.dashboard-title{
margin-top:50px;
}

.dashboard-title p{
color:#555;
}

.stats{
display:flex;
gap:20px;
margin-top:25px;
}

.stat-card{
flex:1;
padding:20px;
transition:.3s;
}

.stat-card:hover{
transform:translateY(-8px);
}

.stat-card h2{
font-size:35px;
margin:0;
}

.stat-card p{
font-size:24px;
font-weight:bold;
}

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
padding:15px 20px;
background:white;
border-radius:20px;
box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.topbar button{
padding:10px 18px;
border:none;
border-radius:12px;
cursor:pointer;
}

.achievement-section{
margin-top:35px;
}

.achievement-card{
padding:25px;
}

.achievement-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-top:20px;
}

.badge-grid{

display:grid;

grid-template-columns:

repeat(
3,
1fr
);

gap:18px;

margin-top:20px;

margin-bottom:35px;

}


.badge{

padding:25px;

border-radius:22px;

text-align:center;

font-weight:700;

min-height:90px;

display:flex;

justify-content:center;

align-items:center;

}


.badge.earned{

background:

#f4e8d7;

color:#111;

border:

2px solid
#1e7770;

}


.badge.locked{

background:

#ececec;

color:

#999;

border:

2px dashed
#bbb;

opacity:.8;

}


.secret-box{

background:#121212;

border:

2px dashed
#444;

border-radius:24px;

padding:50px 30px;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

gap:15px;

min-height:180px;

/* ← important */

width:100%;

}


/* SECRET BADGES FIX */

.secret-box{
  background:#111 !important;
  color:white !important;
  border:2px dashed #555 !important;
  border-radius:24px !important;

  height:160px !important;
  min-height:160px !important;
  max-height:160px !important;

  padding:20px !important;
  margin-top:15px !important;

  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;

  font-size:18px !important;
  box-sizing:border-box !important;
}

.secret-box span,
.secret-box .question-marks{
  font-size:38px !important;
  line-height:1 !important;
}
/* DARK MODE */

.dark-mode{
background:#121212;
color:white;
}

.dark-mode .sidebar{
background:#1f1f1f;
color:white;
}

.dark-mode .sidebar a{
color:white;
}

.dark-mode .feature-card,
.dark-mode .stat-card,
.dark-mode .topbar,
.dark-mode .achievement-card,
.dark-mode .badge{
background:#2a2a2a;
color:white;
}

.dark-mode .dashboard-title p{
color:#ddd;
}

/* DESMOS PAGE */

.desmos-page{
background:#0f172a;
color:white;
height:100vh;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;
position:relative;
}

.formula{
position:absolute;
color:rgba(255,255,255,.12);
font-size:42px;
font-weight:bold;
user-select:none;
animation:floatOnly 6s ease-in-out infinite;
}

.formula1{
top:80px;
left:90px;
transform:rotate(-45deg);
}

.formula2{
top:120px;
right:120px;
transform:rotate(20deg);
animation-delay:1s;
}

.formula3{
bottom:90px;
left:100px;
transform:rotate(-25deg);
animation-delay:2s;
}

.formula4{
bottom:120px;
right:120px;
transform:rotate(-30deg);
animation-delay:3s;
}

@keyframes floatOnly{
0%{margin-top:0;}
50%{margin-top:-18px;}
100%{margin-top:0;}
}

.curve{
position:absolute;
border:2px solid rgba(255,255,255,.08);
border-radius:50%;
}

.curve1{
width:900px;
height:900px;
top:-400px;
left:-250px;
}

.curve2{
width:1100px;
height:1100px;
bottom:-550px;
right:-350px;
}

.card{
width:900px;
height:520px;
border-radius:30px;
background:rgba(30,41,59,.78);
backdrop-filter:blur(20px);
box-shadow:0 20px 60px rgba(0,0,0,.4);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
z-index:2;
position:relative;
}

.inside-back{
position:absolute;
top:25px;
left:25px;
text-decoration:none;
color:#cbd5e1;
font-weight:bold;
padding:10px 18px;
border-radius:14px;
background:rgba(255,255,255,.06);
transition:.3s;
}

.inside-back:hover{
background:rgba(255,255,255,.12);
}

.card h1{
font-size:52px;
margin-bottom:10px;
letter-spacing:1px;
}

.card p{
font-size:24px;
color:#cbd5e1;
line-height:1.6;
}

.start-btn{
margin-top:30px;
padding:18px 38px;
border-radius:20px;
font-size:20px;
font-weight:bold;
font-family:Arial,sans-serif;
color:white !important;
text-decoration:none !important;
display:inline-block;
background:linear-gradient(90deg,#7c3aed,#2563eb);

box-shadow:
0 0 25px rgba(124,58,237,.9),
0 0 60px rgba(124,58,237,.7),
0 0 110px rgba(37,99,235,.6);

transition:all .35s ease;
}

.start-btn:hover{
transform:scale(1.08);

box-shadow:
0 0 35px rgba(124,58,237,1),
0 0 80px rgba(124,58,237,.9),
0 0 140px rgba(37,99,235,.85);
}



/* QUESTION PAGE */

.question-page{
margin:0;
font-family:Arial,sans-serif;
background:#0f172a;
color:white;
min-height:100vh;
overflow-y:auto;
overflow-x:hidden;
}

.back-question{
display:flex;
width:max-content;
margin:18px 0 10px 35px;
padding:10px 18px;
font-size:16px;
font-weight:700;
text-decoration:none;
color:#e2e8f0;
background:rgba(255,255,255,.06);
border-radius:16px;
backdrop-filter:blur(10px);
}

.question-layout{
display:grid;
grid-template-columns:1fr 1fr;
gap:28px;
padding:0 35px 22px;
align-items:stretch;
}

.question-left,
.answer-right{
height:430px;
overflow-y:auto;
border-radius:28px;
background:rgba(30,41,59,.88);
box-shadow:0 20px 60px rgba(0,0,0,.35);
padding:30px;
box-sizing:border-box;
}

.question-left::-webkit-scrollbar,
.answer-right::-webkit-scrollbar{
width:8px;
}

.question-left::-webkit-scrollbar-thumb,
.answer-right::-webkit-scrollbar-thumb{
background:#7c3aed;
border-radius:20px;
}

#qNumber{
font-size:18px;
font-weight:800;
color:#a78bfa;
margin:0 0 14px;
}

#qTitle{
font-size:34px;
margin:0 0 18px;
font-weight:800;
line-height:1.1;
}

#qText{
font-size:18px;
line-height:1.6;
color:#d1d5db;
}

.math-box{
font-size:28px;
font-weight:800;
padding:22px;
margin:20px 0;
border-radius:22px;
background:rgba(255,255,255,.08);
text-align:center;
}

.options{
display:grid;
grid-template-columns:1fr 1fr;
gap:14px;
}

.options button{
padding:16px;
border:none;
border-radius:18px;
font-size:18px;
font-weight:bold;
color:white;
background:rgba(255,255,255,.08);
cursor:pointer;
transition:.3s;
}

.options button:hover{
background:rgba(124,58,237,.45);
transform:scale(1.03);
}

.answer-right h2{
font-size:34px;
margin:0 0 20px;
color:#a78bfa;
}

.answer-box{
font-size:20px;
font-weight:bold;
padding:16px;
border-radius:18px;
background:rgba(34,197,94,.18);
color:#bbf7d0;
margin-bottom:20px;
}

.answer-box span{
color:#22c55e;
}

.explanation-text{
white-space:pre-line;
font-size:16px;
line-height:1.7;
color:#cbd5e1;
}

.solution-img{
display:block;
width:100%;
max-height:300px;
object-fit:contain;
border-radius:18px;
margin-top:18px;
background:white;
}

.question-nav{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
padding:5px 35px 25px;
}

.question-card-btn{
width:46px;
height:46px;
border:none;
border-radius:14px;
font-size:16px;
font-weight:bold;
color:white;
background:rgba(255,255,255,.08);
cursor:pointer;
transition:.3s;
}

.question-card-btn.active{
background:linear-gradient(90deg,#7c3aed,#2563eb);
box-shadow:0 0 20px rgba(124,58,237,.8);
}

.desmos-bottom{
margin:0 35px 30px;
height:58vh;
border-radius:28px;
overflow:hidden;
box-shadow:0 20px 60px rgba(0,0,0,.4);
}

.desmos-bottom iframe{
width:100%;
height:100%;
border:none;
display:block;
}

.bottom-nav{
display:flex;
justify-content:center;
gap:20px;
padding:0 0 45px;
}

.nav-btn{
min-width:170px;
padding:15px 28px;
border:none;
border-radius:18px;
font-size:16px;
font-weight:bold;
color:white;
background:linear-gradient(90deg,#7c3aed,#2563eb);
box-shadow:0 0 35px rgba(124,58,237,.55);
cursor:pointer;
}

@media(max-width:900px){
.question-layout{
grid-template-columns:1fr;
}

.question-left,
.answer-right{
height:360px;
}

.options{
grid-template-columns:1fr;
}

.desmos-bottom{
height:60vh;
margin:20px;
}
}
/* PRACTICE PAGE */

.practice-page{
margin:0;
font-family:Arial,sans-serif;
background:#0f172a;
color:white;
min-height:100vh;
padding:40px;
box-sizing:border-box;
}

.practice-container{
max-width:1400px;
margin:auto;
}

.practice-title{
text-align:center;
font-size:62px;
margin:20px 0 10px;
letter-spacing:2px;
}

.practice-subtitle{
text-align:center;
font-size:22px;
color:#cbd5e1;
margin-bottom:55px;
}

.practice-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:30px;
}

.practice-card{
text-decoration:none;
color:white;
padding:42px;
border-radius:32px;
background:rgba(30,41,59,.86);
box-shadow:0 20px 60px rgba(0,0,0,.35);
min-height:270px;
display:flex;
flex-direction:column;
justify-content:space-between;
transition:.35s;
}

.practice-card:hover{
transform:translateY(-10px) scale(1.02);
}

.practice-card h2{
font-size:38px;
margin:0 0 22px;
}

.practice-card p{
font-size:21px;
line-height:1.8;
color:#cbd5e1;
}

.practice-card span{
margin-top:28px;
font-size:18px;
font-weight:bold;
}

.algebra{border:2px solid #a855f7;}
.psda{border:2px solid #3b82f6;}
.advanced{border:2px solid #22c55e;}
.geometry{border:2px solid #facc15;}

@media(max-width:900px){
.practice-grid{
grid-template-columns:1fr;
}

.practice-title{
font-size:42px;
}
}

.disclaimer{
margin-top:15px;
font-size:13px;
line-height:1.5;
color:#555;
text-align:center;
}
.mission-box{

background:
#8b8f58;

/* bronze green */

color:#111111;

padding:40px;

border-radius:30px;

border:3px solid #1e7770;

}


.rule-grid{

display:grid;

grid-template-columns:
repeat(
auto-fit,
minmax(240px,1fr)
);

gap:20px;

margin-top:25px;

}


.rule-card{

background:#f4e8d7;

/* beige */

color:#111111;

/* black text */

padding:25px;

border-radius:20px;

border:2px solid #1e7770;

/* turquoise outline */

}

.start-btn{

margin-top:30px;

padding:18px;

width:100%;

border:none;

border-radius:20px;

font-size:18px;

cursor:pointer;

background:

#1e7770;

color:white;

}


.start-btn:hover{

transform:translateY(-3px);

}


.desmos{

background:

#083344;

}
.rule-card h3{

color:#0f4f4a;

font-size:22px;

margin-bottom:18px;

}


.mission-box h2{

color:#111111;

font-size:36px;

}
.achievement-section{
margin-top:30px;
}

.achievement-card{
padding:28px;
}

.badge-layout{

display:grid;

grid-template-columns:2fr 1fr;

gap:35px;

align-items:start;

}


.left-badges{

display:flex;

flex-direction:column;

gap:25px;

}


.achievement-grid{

display:grid;

grid-template-columns:
repeat(
auto-fit,
minmax(230px,1fr)
);

gap:18px;

margin-top:18px;

}


.badge{

background:

#f4e8d7;

color:#111;

padding:20px;

border-radius:22px;

font-weight:700;

border:
2px solid
#1e7770;

}


#lockedBadges .badge{

background:

transparent;

color:

#777;

border:

2px dashed
#555;

opacity:.45;

}


.secret-box{

background:

#121212;

border:

2px dashed
#666;

border-radius:24px;

padding:35px;

min-height:420px;

}


#secretBadges{

display:flex;

justify-content:center;

align-items:center;

height:100%;

font-size:30px;

opacity:.5;

}
.badge-popup{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.65);
z-index:9999;
justify-content:center;
align-items:center;
}

.badge-popup-card{
background:#f4e8d7;
color:#111;
padding:35px;
border-radius:28px;
text-align:center;
min-width:320px;
box-shadow:0 20px 60px rgba(0,0,0,.4);
animation:popBadge .35s ease;
}

#badgePopupName{
font-size:30px;
font-weight:900;
margin:25px 0;
}

.badge-popup-card button{
padding:14px 28px;
border:none;
border-radius:16px;
background:#1e7770;
color:white;
font-weight:bold;
cursor:pointer;
}

@keyframes popBadge{
from{
transform:scale(.7);
opacity:0;
}
to{
transform:scale(1);
opacity:1;
}
}
.sat-start-card{

background:

#f4e8d7;

color:black;

padding:40px;

border-radius:35px;

margin-top:40px;

}



.syllabus-grid{

display:grid;

grid-template-columns:

repeat(
2,
1fr
);

gap:20px;

margin:30px 0;

}



.topic{

background:white;

padding:25px;

border-radius:20px;

}



.topic label{

display:block;

margin:10px;

}



.exam{

display:flex;

gap:15px;

margin-top:20px;

}



.launch{

background:

#1e7770;

color:white;

padding:18px;

border:none;

border-radius:20px;

margin-top:30px;

cursor:pointer;

}
.topic ul{

padding-left:18px;

line-height:1.8;

font-size:14px;

margin-bottom:20px;

}



.topic{

background:white;

padding:28px;

border-radius:25px;

transition:.3s;

}



.topic:hover{

transform:translateY(-5px);

}



.topic h3{

margin-bottom:18px;

}



.topic label{

display:block;

margin-top:10px;

font-weight:700;

}
.bottom{

display:flex;

align-items:center;

justify-content:flex-end;

gap:12px;

padding:20px;

}



.icon-btn{

width:48px;

height:48px;

border:none;

border-radius:50%;

background:#f4e8d7;

cursor:pointer;

font-size:22px;

transition:.25s;

}



.icon-btn:hover{

transform:scale(1.08);

}



#themeBtn{

width:48px;

height:48px;

display:flex;

align-items:center;

justify-content:center;

border-radius:50%;

background:#f4e8d7;

}