
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;600;700;800&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Lexend Deca',sans-serif;
background:#f5f5f7;
color:#111827;
}

/* MAP */

.app{
display:flex;
height:100vh;
}

.sidebar{
width:190px;
background:#fff;
border-right:1px solid #ececec;
padding:24px;
}

.brand{
font-size:26px;
font-weight:800;
letter-spacing:-0.04em;
}

.map-screen{
flex:1;
overflow-y:auto;
}

.top-header{
position:sticky;
top:0;
height:82px;
background:rgba(255,255,255,.92);
backdrop-filter:blur(20px);
border-bottom:1px solid #ececec;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 34px;
z-index:50;
}

.header-center{
font-size:17px;
font-weight:700;
}

.header-right{
font-size:14px;
font-weight:600;
color:#64748b;
}

.map{
position:relative;
width:760px;
height:3200px;
margin:0 auto;
}

.path{
position:absolute;
top:0;
left:50%;
transform:translateX(-50%);
width:420px;
height:3200px;
}

.base-line{
fill:none;
stroke:#fff;
stroke-width:14;
stroke-linecap:round;
}

.dot-line{
fill:none;
stroke:#cbd5e1;
stroke-width:3;
stroke-linecap:round;
stroke-dasharray:1 16;
}

.node{
position:absolute;
}

.orb{
width:72px;
height:72px;
border-radius:50%;
background:#dbeafe;
border:8px solid rgba(191,219,254,.55);
display:flex;
align-items:center;
justify-content:center;
font-weight:700;
font-size:26px;
color:#334155;
}

.node-link{
text-decoration:none;
}

.lesson-card{
position:absolute;
top:50%;
transform:translateY(-50%);
background:#fff;
padding:16px 20px;
border-radius:20px;
min-width:240px;
box-shadow:0 8px 22px rgba(15,23,42,.05);
}

.lesson-card.right{
left:96px;
}

.lesson-card.left{
right:96px;
}

.lesson-card strong{
font-size:18px;
color:#111827;
}

/* LESSON */

.lesson-layout{
display:flex;
height:100vh;
}

.lesson-sidebar{
width:290px;
background:rgba(255,255,255,.9);
backdrop-filter:blur(20px);
border-right:1px solid #ececec;
padding:110px 20px 30px;
overflow-y:auto;
}

.lesson-brand{
font-size:28px;
font-weight:800;
margin-bottom:42px;
letter-spacing:-0.04em;
}

.section-list{
display:flex;
flex-direction:column;
gap:8px;
}

.section-item{
text-decoration:none;
color:#475569;
padding:14px 18px;
border-radius:18px;
font-size:15px;
font-weight:500;
letter-spacing:-0.01em;
}

.section-item.active{
background:#eef2f7;
color:#111827;
}

.lesson-main{
flex:1;
overflow-y:auto;
}

.lesson-progress{
padding:34px 0 20px;
display:flex;
justify-content:center;
}

.lesson-progress-bar{
width:420px;
height:10px;
background:#e2e8f0;
border-radius:999px;
overflow:hidden;
}

.lesson-progress-fill{
width:35%;
height:100%;
background:#111827;
border-radius:999px;
}

.single-card-layout{
display:flex;
justify-content:center;
padding:0 40px 80px;
}

.hero-card{
width:100%;
max-width:860px;
padding:30px 20px;
}

.hero-section-title{
font-size:30px;
font-weight:700;
letter-spacing:-0.03em;
text-align:center;
margin-bottom:24px;
}

.hero-card-content{
font-size:18px;
font-weight:300;
line-height:1.95;
letter-spacing:-0.01em;
color:#475569;
text-align:center;
}

.hero-card-content p{
margin-bottom:22px;
}

.hero-card-content img{
max-width:100%;
border-radius:24px;
box-shadow:0 12px 30px rgba(15,23,42,.06);
}

.lesson-actions{
display:flex;
justify-content:center;
margin-top:38px;
}

.next-button{
display:inline-flex;
align-items:center;
justify-content:center;
text-decoration:none;
background:#f8fafc;
color:#111827;
border:1px solid #e2e8f0;
padding:16px 26px;
border-radius:16px;
font-size:15px;
font-weight:600;
min-width:180px;
}


/* FLOATING TEXT BUBBLE */

.hero-section-title{
margin-bottom:18px !important;
}

.lesson-progress{
padding-bottom:28px !important;
}

.hero-card{
background:transparent !important;
padding-top:10px !important;
}

.hero-card-content{
display:inline-block;
background:#ffffff;
padding:34px 42px;
border-radius:32px;
box-shadow:
0 12px 30px rgba(15,23,42,.05);
max-width:760px;
margin:0 auto;
}

.hero-card{
display:flex;
flex-direction:column;
align-items:center;
}

/* keep title + progress on gray background */
.single-card-layout{
padding-top:0 !important;
}


/* FULL WIDTH CONTINUE BUTTON */

.lesson-actions{
width:100%;
margin-top:26px;
}

.next-button{
display:flex !important;
justify-content:center;
align-items:center;
width:100%;
padding:20px 24px !important;
border-radius:22px !important;
font-size:16px !important;
font-weight:700 !important;
background:#111827 !important;
color:#ffffff !important;
border:none !important;
box-shadow:
0 10px 28px rgba(15,23,42,.12);
transition:.2s;
}

.next-button:hover{
transform:translateY(-1px);
background:#1e293b !important;
}

/* attach button visually to bubble */

.hero-card-content{
border-bottom-left-radius:24px !important;
border-bottom-right-radius:24px !important;
}


/* MATCH BUTTON WIDTH TO BUBBLE */

.hero-card{
max-width:760px !important;
width:100%;
}

.hero-card-content{
width:100%;
}

.lesson-actions{
width:100%;
max-width:760px;
margin-top:18px !important;
}

.next-button{
width:100% !important;
max-width:100% !important;
border-radius:24px !important;
}


/* MAP SUBSECTIONS */

.subsection-node{
position:absolute;
display:flex;
align-items:center;
gap:12px;
z-index:4;
opacity:.9;
}

.subsection-node.right{
transform:translateX(92px);
}

.subsection-node.left{
transform:translateX(-240px);
}

.subsection-dot{
width:10px;
height:10px;
border-radius:50%;
background:#94a3b8;
flex-shrink:0;
}

.subsection-title{
font-size:13px;
font-weight:500;
letter-spacing:-0.01em;
color:#64748b;
white-space:nowrap;
line-height:1.4;
}


/* ALTERNATING SUBSECTION SIDES */

.subsection-node.right{
transform:translateX(92px);
}

.subsection-node.left{
transform:translateX(-220px);
flex-direction:row-reverse;
text-align:right;
}


/* BETTER SUBSECTION BALANCE */

.subsection-node{
max-width:220px;
}

.subsection-node.right{
transform:translateX(96px);
}

.subsection-node.left{
transform:translateX(-250px);
flex-direction:row-reverse;
text-align:right;
justify-content:flex-end;
}

.subsection-title{
display:block;
}


/* TRUE ALTERNATING SUBSECTION LAYOUT */

.subsection-node{
position:absolute;
display:flex;
align-items:center;
gap:12px;
max-width:220px;
z-index:4;
}

.subsection-node.right{
transform:translateX(96px);
flex-direction:row;
text-align:left;
justify-content:flex-start;
}

.subsection-node.left{
transform:translateX(-260px);
flex-direction:row-reverse;
text-align:right;
justify-content:flex-end;
}

.subsection-title{
font-size:13px;
font-weight:500;
line-height:1.45;
letter-spacing:-0.01em;
color:#64748b;
white-space:normal;
}


/* CLICKABLE TRUE ALTERNATING SUBSECTIONS */

.subsection-node{
position:absolute;
display:flex;
align-items:center;
gap:12px;
max-width:220px;
text-decoration:none;
z-index:5;
transition:.18s ease;
}

.subsection-node:hover{
opacity:1;
transform-origin:center;
}

.subsection-node.right{
transform:translateX(96px);
flex-direction:row;
text-align:left;
}

.subsection-node.left{
transform:translateX(-280px);
flex-direction:row-reverse;
text-align:right;
}

.subsection-node.left:hover{
transform:translateX(-280px) scale(1.02);
}

.subsection-node.right:hover{
transform:translateX(96px) scale(1.02);
}

.subsection-dot{
width:10px;
height:10px;
border-radius:50%;
background:#94a3b8;
flex-shrink:0;
}

.subsection-title{
font-size:13px;
font-weight:500;
line-height:1.45;
letter-spacing:-0.01em;
color:#64748b;
white-space:normal;
}


/* ACTUAL TWO-SIDED SUBSECTIONS */

.subsection-node{
position:absolute;
display:flex;
align-items:center;
gap:12px;
max-width:220px;
text-decoration:none;
z-index:5;
}

.subsection-node.right{
flex-direction:row;
text-align:left;
justify-content:flex-start;
}

.subsection-node.left{
flex-direction:row-reverse;
text-align:right;
justify-content:flex-end;
}

.subsection-title{
font-size:13px;
font-weight:500;
line-height:1.45;
letter-spacing:-0.01em;
color:#64748b;
white-space:normal;
}

.subsection-dot{
width:10px;
height:10px;
border-radius:999px;
background:#94a3b8;
flex-shrink:0;
}


/* CATEGORY PILLS RESTORED */

.category-pill{
position:absolute;
left:50%;
transform:translateX(-50%);
background:#374151;
color:#ffffff;
padding:10px 22px;
border-radius:999px;
font-size:12px;
font-weight:700;
letter-spacing:.08em;
z-index:20;
box-shadow:
0 8px 20px rgba(15,23,42,.10);
}




/* CLEAN CATEGORY SYSTEM */

.category-pill{
position:absolute;
left:50%;
transform:translateX(-50%);
background:#374151;
color:#ffffff;
padding:10px 24px;
border-radius:999px;
font-size:12px;
font-weight:700;
letter-spacing:.08em;
z-index:30;
box-shadow:
0 8px 20px rgba(15,23,42,.10);
}

/* ONLY hide path line behind category */

.category-pill-mask{
position:absolute;
left:50%;
transform:translateX(-50%);
width:74px;
height:150px;
background:#f5f5f7;
border-radius:999px;
z-index:12;
pointer-events:none;
}

.path{
z-index:1;
}

.node,
.subsection-node{
z-index:5;
}

.category-pill{
z-index:20;
}


/* PROFILE */

.profile-card,
.guest-card{
position:absolute;
left:24px;
bottom:24px;
right:24px;
background:#ffffff;
border-radius:26px;
padding:18px;
box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.profile-card{
display:flex;
align-items:center;
gap:14px;
}

.profile-avatar{
width:54px;
height:54px;
border-radius:50%;
background:#111827;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-weight:700;
font-size:18px;
}

.profile-meta{
display:flex;
flex-direction:column;
gap:4px;
}

.profile-meta strong{
font-size:15px;
}

.profile-meta span{
font-size:13px;
color:#64748b;
}

.open-auth-modal{
width:100%;
border:none;
background:#111827;
color:#fff;
padding:16px;
border-radius:18px;
font-weight:700;
cursor:pointer;
}

/* AUTH MODAL */

.auth-overlay{
position:fixed;
inset:0;
background:rgba(15,23,42,.42);
backdrop-filter:blur(18px);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.auth-overlay.visible{
display:flex;
}

.auth-modal{
width:420px;
background:rgba(255,255,255,.92);
backdrop-filter:blur(30px);
border-radius:36px;
padding:36px;
box-shadow:0 20px 60px rgba(15,23,42,.16);
}

.auth-title{
font-size:32px;
font-weight:800;
letter-spacing:-0.04em;
text-align:center;
margin-bottom:10px;
}

.auth-subtitle{
text-align:center;
font-size:15px;
color:#64748b;
margin-bottom:28px;
}

.auth-step{
display:none;
flex-direction:column;
gap:14px;
}

.auth-step.active{
display:flex;
}

.auth-login{
display:flex;
flex-direction:column;
gap:14px;
margin-top:24px;
padding-top:24px;
border-top:1px solid #e2e8f0;
}

.auth-modal input{
border:none;
background:#f8fafc;
padding:18px 20px;
border-radius:18px;
font-size:15px;
outline:none;
}

.auth-button{
border:none;
background:#111827;
color:#fff;
padding:18px;
border-radius:18px;
font-weight:700;
cursor:pointer;
}


/* AUTH GATE */

.auth-page-body{
background:#f5f5f7;
font-family:'Lexend Deca',sans-serif;
}

.auth-page{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
padding:40px;
}

.auth-shell{
width:100%;
max-width:460px;
background:rgba(255,255,255,.92);
backdrop-filter:blur(24px);
border:1px solid rgba(255,255,255,.6);
border-radius:40px;
padding:42px;
box-shadow:0 24px 80px rgba(15,23,42,.08);
}

.auth-logo{
font-size:38px;
font-weight:800;
letter-spacing:-0.05em;
text-align:center;
margin-bottom:24px;
color:#111827;
}

.auth-headline{
font-size:34px;
font-weight:700;
letter-spacing:-0.04em;
text-align:center;
margin-bottom:14px;
color:#111827;
}

.auth-description{
font-size:15px;
line-height:1.7;
text-align:center;
color:#64748b;
margin-bottom:28px;
}

.auth-tabs{
display:flex;
gap:8px;
background:#f1f5f9;
padding:6px;
border-radius:18px;
margin-bottom:28px;
}

.auth-tab{
flex:1;
border:none;
background:transparent;
padding:14px;
border-radius:14px;
font-weight:600;
cursor:pointer;
}

.auth-tab.active{
background:#ffffff;
box-shadow:0 6px 18px rgba(15,23,42,.06);
}

.auth-panel{
display:none;
flex-direction:column;
gap:14px;
}

.auth-panel.active{
display:flex;
}

.register-step{
display:none;
flex-direction:column;
gap:14px;
}

.register-step.active{
display:flex;
}

.auth-shell input{
border:none;
background:#f8fafc;
padding:18px 20px;
border-radius:18px;
font-size:15px;
outline:none;
}

.auth-submit{
border:none;
background:#111827;
color:#fff;
padding:18px;
border-radius:18px;
font-size:15px;
font-weight:700;
cursor:pointer;
}

.profile-card,
.guest-card{
margin-top:40px;
background:#ffffff;
border-radius:26px;
padding:18px;
box-shadow:0 10px 30px rgba(15,23,42,.06);
position:relative !important;
left:auto !important;
right:auto !important;
bottom:auto !important;
}


/* PROFILE SIDEBAR REFINEMENT */

.sidebar{
display:flex;
flex-direction:column;
}

.profile-card,
.guest-card{
margin-top:auto !important;
width:100%;
display:flex;
align-items:center;
gap:16px;
padding:18px 20px !important;
border-radius:28px !important;
}

.profile-avatar{
width:58px !important;
height:58px !important;
min-width:58px !important;
min-height:58px !important;
border-radius:50% !important;
font-size:20px !important;
flex-shrink:0 !important;
}

.profile-meta{
display:flex;
align-items:center;
}

.profile-meta strong{
font-size:16px;
font-weight:700;
letter-spacing:-0.02em;
color:#111827;
}

.profile-meta span{
display:none !important;
}


/* MINIMAL PROFILE ROW */

.profile-row{
margin-top:auto;
display:flex;
align-items:center;
justify-content:space-between;
padding:18px 8px 4px;
}

.profile-left{
display:flex;
align-items:center;
gap:12px;
min-width:0;
}

.profile-avatar{
width:42px !important;
height:42px !important;
min-width:42px !important;
min-height:42px !important;
font-size:15px !important;
background:#111827 !important;
}

.profile-meta strong{
font-size:14px !important;
font-weight:650 !important;
}

.logout-button{
width:36px;
height:36px;
display:flex;
align-items:center;
justify-content:center;
border-radius:12px;
text-decoration:none;
color:#64748b;
transition:.18s ease;
flex-shrink:0;
}

.logout-button:hover{
background:#f1f5f9;
color:#111827;
}

/* REMOVE OLD CARD STYLE */

.profile-card{
background:transparent !important;
box-shadow:none !important;
padding:0 !important;
border-radius:0 !important;
}


/* MORE SPACE BETWEEN NAME AND LOGOUT */

.profile-row{
gap:18px;
}

.profile-left{
flex:1;
}

.logout-button{
margin-left:12px;
}


/* MAP NAV LINK */

.sidebar-map-link{
display:flex;
align-items:center;
gap:12px;
padding:14px 16px;
margin-top:24px;
margin-bottom:28px;
border-radius:18px;
text-decoration:none;
color:#475569;
font-size:15px;
font-weight:600;
transition:.18s ease;
}

.sidebar-map-link:hover{
background:#f8fafc;
color:#111827;
}

.sidebar-map-link.active{
background:#eef2f7;
color:#111827;
}

.sidebar-map-link svg{
flex-shrink:0;
}


/* WIDER MAP SIDEBAR */

.sidebar{
width:220px !important;
padding-left:28px !important;
padding-right:28px !important;
}

/* LESSON TOP ACTION */

.lesson-sidebar{
display:flex;
flex-direction:column;
}

.lesson-sidebar-top{
display:flex;
justify-content:center;
margin-top:-34px;
margin-bottom:26px;
}

.map-circle-button{
width:48px;
height:48px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
background:#ffffff;
color:#475569;
text-decoration:none;
box-shadow:
0 8px 24px rgba(15,23,42,.06);
transition:.18s ease;
}

.map-circle-button:hover{
transform:translateY(-1px);
color:#111827;
}

/* LESSON PROFILE FOOTER */

.lesson-sidebar .profile-row{
margin-top:auto;
padding-bottom:6px;
}


/* UNIFIED SIDEBAR WIDTH */

.sidebar{
width:290px !important;
padding:24px 20px 30px !important;
}

/* MAP BUTTON TOP RIGHT */

.lesson-sidebar-top{
justify-content:flex-end !important;
margin-top:-34px !important;
padding-right:6px !important;
margin-bottom:18px !important;
}


/* LESSON SIDEBAR GAP FIX */

.lesson-sidebar{
position:relative;
padding-top:28px !important;
}

.lesson-sidebar-top{
position:absolute !important;
top:22px !important;
right:22px !important;
margin:0 !important;
padding:0 !important;
justify-content:flex-end !important;
}


/* LIGHTER MAP LABEL */

.sidebar-map-link{
font-weight:400 !important;
}

.sidebar-map-link span{
font-weight:400 !important;
letter-spacing:-0.01em;
}


/* USER PROGRESS */

.node-circle.completed{
background:#22c55e !important;
color:#ffffff !important;
box-shadow:
0 12px 32px rgba(34,197,94,.26) !important;
}

.node-circle.completed svg{
display:block;
}

.subsection-dot.completed{
background:#22c55e !important;
box-shadow:
0 0 0 5px rgba(34,197,94,.12);
}

/* smoother transitions */

.node-circle,
.subsection-dot{
transition:.25s ease;
}


/* COMPLETED LESSON STATES */

.orb.completed{
background:#22c55e !important;
border-color:rgba(34,197,94,.22) !important;
color:#ffffff !important;
box-shadow:
0 14px 36px rgba(34,197,94,.26);
}

.orb.completed svg{
display:block;
}

.subsection-dot.completed{
background:#22c55e !important;
box-shadow:
0 0 0 5px rgba(34,197,94,.12);
}

.completed-button{
background:#22c55e !important;
border:none !important;
}


/* SIDEBAR COMPLETION */

.section-item{
display:flex !important;
align-items:center;
justify-content:space-between;
gap:14px;
}

.section-item-left{
min-width:0;
}

.section-complete-icon{
width:22px;
height:22px;
min-width:22px;
border-radius:999px;
background:#22c55e;
display:flex;
align-items:center;
justify-content:center;
box-shadow:
0 4px 14px rgba(34,197,94,.18);
flex-shrink:0;
}

.section-complete-icon svg{
display:block;
}


/* DYNAMIC LESSON PROGRESS */

.lesson-progress-fill{
transition:width .35s ease;
}


/* BRANDING */

.brand,
.lesson-brand{
display:flex;
align-items:center;
gap:12px;
font-size:24px;
font-weight:800;
letter-spacing:-0.04em;
line-height:1;
color:#111827;
}

.brand span,
.lesson-brand span{
display:block;
font-size:24px;
}

.brand-logo{
width:34px;
height:34px;
object-fit:contain;
flex-shrink:0;
}

.lesson-brand .brand-logo{
width:32px;
height:32px;
}


/* REFINED BRANDING TYPOGRAPHY */

.brand,
.lesson-brand{
font-size:19px !important;
letter-spacing:0.04em !important;
font-weight:700 !important;
}

.brand span,
.lesson-brand span{
font-size:19px !important;
letter-spacing:0.04em !important;
}

.brand-logo{
width:30px !important;
height:30px !important;
}

.lesson-brand .brand-logo{
width:28px !important;
height:28px !important;
}


/* BRAND LETTER SPACING FIX */

.brand,
.lesson-brand{
letter-spacing:0.015em !important;
}

.brand span,
.lesson-brand span{
letter-spacing:0.015em !important;
}


/* ERA SIDEBAR */

.era-list{
display:flex;
flex-direction:column;
gap:6px;
margin-bottom:24px;
}

.era-item{
display:flex;
align-items:center;
gap:10px;
padding:10px 12px;
border-radius:14px;
font-size:14px;
font-weight:400;
letter-spacing:-0.01em;
color:#64748b;
}

.era-item svg{
flex-shrink:0;
opacity:.8;
}

/* RETURN TO PROGRESS BUTTON */

.return-progress-button{
position:fixed;
right:28px;
bottom:28px;
width:52px;
height:52px;
border:none;
border-radius:50%;
background:#ffffff;
color:#111827;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
box-shadow:
0 12px 32px rgba(15,23,42,.10);
z-index:120;
transition:.18s ease;
}

.return-progress-button:hover{
transform:translateY(-2px);
}


/* CLICKABLE ERA NAVIGATION */

.era-item{
text-decoration:none;
transition:.18s ease;
}

.era-item:hover{
background:#f8fafc;
color:#111827;
transform:translateX(2px);
}

.category-anchor{
position:absolute;
left:0;
width:1px;
height:1px;
pointer-events:none;
}


/* CATEGORY PAGE FEEL */

.current-category-header{
text-transform:none;
}


/* FULLSCREEN MAP */

.map-wrapper{
padding-left:0 !important;
}

/* FLOATING USER */

.map-user-floating{
position:fixed;
left:26px;
bottom:26px;
z-index:120;
}

.floating-user-trigger{
display:flex;
align-items:center;
gap:12px;
background:transparent;
border:none;
padding:4px;
cursor:pointer;
transition:.18s ease;
}

.floating-user-trigger:hover{
opacity:.72;
}

.floating-user-trigger span{
font-size:14px;
font-weight:500;
letter-spacing:-0.01em;
color:#111827;
}

.floating-user-avatar{
width:38px;
height:38px;
border-radius:50%;
background:#111827;
color:#ffffff;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
font-weight:700;
flex-shrink:0;
}

.floating-user-dropdown{
position:absolute;
left:0;
bottom:52px;
min-width:170px;
background:#ffffff;
border-radius:18px;
padding:8px;
box-shadow:0 18px 48px rgba(15,23,42,.12);
opacity:0;
visibility:hidden;
transform:translateY(6px);
transition:.18s ease;
}

.floating-user-dropdown.visible{
opacity:1;
visibility:visible;
transform:translateY(0);
}

.floating-user-dropdown a{
display:block;
padding:12px 14px;
border-radius:12px;
text-decoration:none;
font-size:14px;
color:#111827;
}

.floating-user-dropdown a:hover{
background:#f8fafc;
}


/* MAP USER */

.map-user-floating{
position:fixed;
left:26px;
bottom:26px;
z-index:999;
}

.floating-user-trigger{
display:flex;
align-items:center;
gap:12px;
border:none;
background:transparent;
cursor:pointer;
padding:4px;
}

.floating-user-avatar{
width:38px;
height:38px;
border-radius:999px;
background:#111827;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
font-weight:700;
}

.floating-user-trigger span{
font-size:14px;
font-weight:500;
color:#111827;
}

.floating-user-dropdown{
position:absolute;
left:0;
bottom:54px;
background:#fff;
border-radius:18px;
padding:8px;
min-width:170px;
box-shadow:0 18px 48px rgba(15,23,42,.12);
opacity:0;
visibility:hidden;
transform:translateY(6px);
transition:.18s ease;
}

.floating-user-dropdown.visible{
opacity:1;
visibility:visible;
transform:translateY(0);
}

.floating-user-dropdown a{
display:block;
padding:12px 14px;
text-decoration:none;
color:#111827;
border-radius:12px;
font-size:14px;
}

/* LESSON SIDEBAR */

.lesson-sidebar{
top:0 !important;
padding-top:92px !important;
transition:.25s ease;
z-index:50;
}

.lesson-sidebar.collapsed{
transform:translateX(-100%);
}

.lesson-sidebar-top{
position:absolute;
top:24px;
left:24px;
right:24px;
display:flex;
align-items:center;
justify-content:space-between;
margin:0 !important;
padding:0 !important;
}

.map-icon-link{
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
color:#64748b;
transition:.18s ease;
}

.map-icon-link:hover{
color:#111827;
}

.sidebar-toggle{
border:none;
background:transparent;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
color:#64748b;
padding:0;
}

.sidebar-toggle:hover{
color:#111827;
}

.lesson-brand{
display:none !important;
}


/* TOP HEADER ABOVE SIDEBAR */

.lesson-header{
position:fixed !important;
top:0 !important;
left:0 !important;
right:0 !important;
z-index:120 !important;
height:72px !important;
}

.lesson-sidebar{
top:72px !important;
height:calc(100vh - 72px) !important;
padding-top:28px !important;
}

/* REOPENABLE SIDEBAR */

.sidebar-toggle{
position:fixed !important;
top:24px !important;
left:24px !important;
z-index:220 !important;
width:40px;
height:40px;
display:flex !important;
align-items:center;
justify-content:center;
border-radius:12px;
background:#ffffff;
box-shadow:0 8px 24px rgba(15,23,42,.08);
}

.lesson-sidebar.collapsed{
transform:translateX(-100%);
}

.lesson-sidebar.collapsed + .lesson-content{
margin-left:0 !important;
}


/* CLEAN LESSON LAYOUT FIX */

.lesson-header{
height:72px !important;
z-index:120 !important;
}

.lesson-sidebar{
top:72px !important;
height:calc(100vh - 72px) !important;
padding-top:18px !important;
width:280px !important;
background:#f8fafc !important;
border-right:1px solid #e5e7eb !important;
overflow-y:auto;
}

.lesson-sidebar-top{
position:relative !important;
top:auto !important;
left:auto !important;
right:auto !important;
margin-bottom:18px !important;
padding:0 22px !important;
display:flex !important;
align-items:center !important;
justify-content:space-between !important;
}

.lesson-content{
margin-left:280px !important;
padding-top:110px !important;
transition:.25s ease;
}

.lesson-sidebar.collapsed{
transform:translateX(-100%);
}

.lesson-sidebar.collapsed ~ .lesson-content{
margin-left:0 !important;
}

.sidebar-toggle{
position:relative !important;
top:auto !important;
left:auto !important;
width:auto !important;
height:auto !important;
background:transparent !important;
box-shadow:none !important;
border-radius:0 !important;
padding:0 !important;
}

.map-icon-link{
opacity:.7;
}

.map-icon-link:hover{
opacity:1;
}

.lesson-sidebar .section-item:first-of-type{
margin-top:6px !important;
}

/* BETTER USER ROW */

.lesson-sidebar .user-row{
margin-top:auto !important;
padding:20px 22px !important;
}


/* RESTORE WHITE HEADER */

.lesson-header{
position:fixed !important;
top:0 !important;
left:0 !important;
right:0 !important;
height:72px !important;
background:#ffffff !important;
border-bottom:1px solid #e5e7eb !important;
z-index:200 !important;
display:flex;
align-items:center;
justify-content:center;
}

.lesson-sidebar{
top:72px !important;
height:calc(100vh - 72px) !important;
}

/* FIX CONTENT */

.lesson-content{
padding-top:120px !important;
}

/* FLOATING SIDEBAR TOGGLE */

.sidebar-toggle{
position:fixed !important;
top:92px !important;
left:18px !important;
width:42px !important;
height:42px !important;
border-radius:14px !important;
background:#ffffff !important;
box-shadow:0 8px 28px rgba(15,23,42,.08) !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
z-index:400 !important;
}

/* COLLAPSED */

.lesson-sidebar.collapsed{
transform:translateX(-100%);
}

.lesson-sidebar.collapsed ~ .lesson-content{
margin-left:0 !important;
}


.sidebar-toggle svg{
transition:transform .25s ease;
}

.sidebar-toggle.collapsed svg{
transform:rotate(180deg);
}


/* COLLAPSIBLE RAIL SIDEBAR */

.lesson-sidebar{
width:280px !important;
transition:
width .25s ease,
background .25s ease !important;
overflow:hidden !important;
transform:none !important;
}

.lesson-sidebar.collapsed{
width:72px !important;
transform:none !important;
}

.lesson-content{
margin-left:280px !important;
transition:margin-left .25s ease !important;
}

.lesson-sidebar.collapsed ~ .lesson-content{
margin-left:72px !important;
}

/* KEEP TOGGLE ACCESSIBLE */

.lesson-sidebar-top{
display:flex !important;
align-items:center !important;
justify-content:space-between !important;
}

.sidebar-toggle{
position:relative !important;
top:auto !important;
left:auto !important;
z-index:50 !important;
}

/* ARROW ROTATION */

.sidebar-toggle svg{
transition:transform .25s ease;
}

.lesson-sidebar.collapsed .sidebar-toggle svg{
transform:rotate(180deg);
}

/* HIDE TEXTS WHEN COLLAPSED */

.lesson-sidebar.collapsed .section-item-left,
.lesson-sidebar.collapsed .section-complete-icon,
.lesson-sidebar.collapsed .user-row span,
.lesson-sidebar.collapsed .map-icon-link{
opacity:0;
pointer-events:none;
}

.lesson-sidebar.collapsed .section-item{
justify-content:center !important;
}

.lesson-sidebar.collapsed .user-row{
justify-content:center !important;
}

/* CLEAN RAIL */

.lesson-sidebar.collapsed .lesson-sidebar-top{
justify-content:center !important;
}


/* HEADER TOGGLE */

.lesson-header{
display:flex !important;
align-items:center !important;
justify-content:center !important;
position:fixed !important;
}

.header-sidebar-toggle{
position:absolute;
left:24px;
top:50%;
transform:translateY(-50%);
width:38px;
height:38px;
border:none;
background:transparent;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
color:#64748b;
transition:.18s ease;
z-index:300;
}

.header-sidebar-toggle:hover{
color:#111827;
}

.header-sidebar-toggle svg{
transition:transform .25s ease;
}

/* ROTATE WHEN COLLAPSED */

.lesson-sidebar.collapsed ~ .lesson-content .header-sidebar-toggle svg{
transform:rotate(180deg);
}

/* FALLBACK */

.lesson-sidebar.collapsed + .lesson-content .header-sidebar-toggle svg{
transform:rotate(180deg);
}

body.sidebar-hidden .header-sidebar-toggle svg{
transform:rotate(180deg);
}


.header-sidebar-toggle.collapsed svg{
transform:rotate(180deg);
}


/* REMOVE SIDEBAR LAYOUT */

.lesson-content{
margin-left:0 !important;
max-width:820px;
padding-top:150px !important;
margin-right:auto !important;
margin-left:auto !important;
}

/* HEADER */

.lesson-header{
height:72px !important;
background:#ffffff !important;
border-bottom:1px solid #e5e7eb;
display:flex;
align-items:center;
justify-content:center;
position:fixed;
top:0;
left:0;
right:0;
z-index:200;
}

/* TOP SECTIONS */

.lesson-top-sections{
position:fixed;
top:72px;
left:0;
right:0;
height:64px;
background:#ffffff;
border-bottom:1px solid #f1f5f9;
display:flex;
align-items:center;
gap:10px;
padding:0 28px;
overflow-x:auto;
z-index:180;
}

.lesson-top-section-item{
display:flex;
align-items:center;
gap:10px;
padding:10px 14px;
border-radius:14px;
text-decoration:none;
font-size:14px;
font-weight:500;
white-space:nowrap;
color:#64748b;
transition:.18s ease;
}

.lesson-top-section-item:hover{
background:#f8fafc;
color:#111827;
}

.lesson-top-section-item.active{
background:#f1f5f9;
color:#111827;
}

.lesson-top-section-check{
width:18px;
height:18px;
border-radius:999px;
background:#22c55e;
display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;
}

/* CLEAN READING LAYOUT */

.lesson-body{
padding-left:24px;
padding-right:24px;
}


/* FLOATING MAP BUTTON */

.lesson-map-floating{
position:fixed;
top:92px;
right:28px;
width:48px;
height:48px;
border-radius:999px;
background:#ffffff;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
color:#64748b;
box-shadow:
0 10px 32px rgba(15,23,42,.08);
z-index:250;
transition:.18s ease;
}

.lesson-map-floating:hover{
transform:translateY(-1px);
color:#111827;
}


/* TITLE DROPDOWN */

.lesson-title-dropdown{
position:relative;
display:flex;
justify-content:center;
margin-top:10px;
}

.lesson-title-trigger{
display:flex;
align-items:center;
gap:10px;
border:none;
background:transparent;
cursor:pointer;
font-size:52px;
font-weight:800;
letter-spacing:-0.04em;
color:#0f172a;
}

.lesson-title-arrow{
transition:transform .2s ease;
color:#64748b;
margin-top:6px;
}

.lesson-title-trigger.active .lesson-title-arrow{
transform:rotate(180deg);
}

.lesson-title-menu{
position:absolute;
top:84px;
min-width:420px;
background:#ffffff;
border-radius:24px;
padding:12px;
box-shadow:0 24px 64px rgba(15,23,42,.12);
opacity:0;
visibility:hidden;
transform:translateY(8px);
transition:.2s ease;
z-index:300;
}

.lesson-title-menu.visible{
opacity:1;
visibility:visible;
transform:translateY(0);
}

.lesson-title-menu-item{
display:flex;
align-items:center;
justify-content:space-between;
padding:14px 16px;
border-radius:16px;
text-decoration:none;
transition:.18s ease;
}

.lesson-title-menu-item:hover{
background:#f8fafc;
}

.lesson-title-menu-item.active{
background:#f1f5f9;
}

.lesson-title-menu-left{
display:flex;
align-items:center;
gap:14px;
}

.lesson-title-menu-left span{
font-size:15px;
font-weight:500;
color:#0f172a;
}

.lesson-title-check{
width:22px;
height:22px;
border-radius:999px;
background:#22c55e;
display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;
}

.lesson-title-circle{
width:22px;
height:22px;
border-radius:999px;
border:2px solid #cbd5e1;
flex-shrink:0;
}


/* DROPDOWN FIX */

.lesson-header{
overflow:visible !important;
z-index:500 !important;
}

.lesson-title-dropdown{
position:relative !important;
z-index:600 !important;
overflow:visible !important;
}

.lesson-title-menu{
display:none;
position:absolute !important;
top:76px !important;
left:50% !important;
transform:translateX(-50%);
width:460px;
max-height:70vh;
overflow-y:auto;
background:#ffffff;
border-radius:28px;
padding:12px;
box-shadow:
0 24px 80px rgba(15,23,42,.14);
border:1px solid #eef2f7;
z-index:9999 !important;
}

.lesson-title-menu.visible{
display:block !important;
}

.lesson-title-trigger{
position:relative;
z-index:10000;
}


/* MAP TIMELINE FIX */

.timeline-lesson-card,
.lesson-node-card,
.map-lesson-card{
overflow:visible !important;
position:relative !important;
}

.timeline-lesson-card::before,
.timeline-lesson-card::after,
.lesson-node-card::before,
.lesson-node-card::after,
.map-lesson-card::before,
.map-lesson-card::after{
display:none !important;
content:none !important;
}

/* FIX SPACING */

.timeline-lesson{
position:relative !important;
padding-bottom:140px !important;
margin-bottom:0 !important;
}

.timeline-lesson:last-child{
padding-bottom:80px !important;
}

/* SECTION LABELS SHOULD NOT PUSH THE TRACK */

.timeline-lesson-sections{
position:absolute !important;
top:100% !important;
left:0 !important;
width:100% !important;
padding-top:18px !important;
}

/* CATEGORY SORT SUPPORT */

.category-sort-item{
cursor:grab;
user-select:none;
}

.category-sort-item:active{
cursor:grabbing;
}



/* ===== REAL MAP FIX ===== */

.map-timeline,
.timeline-wrapper{
position:relative !important;
display:flex !important;
flex-direction:column !important;
align-items:center !important;
}

/* each lesson becomes isolated block */
.timeline-lesson,
.map-lesson,
.lesson-node{
position:relative !important;
width:100% !important;
max-width:980px !important;
min-height:220px !important;
margin:0 auto 120px auto !important;
padding:0 !important;
}

/* stop labels from stretching layout */
.timeline-lesson-sections,
.lesson-sections{
position:absolute !important;
top:110px !important;
left:50% !important;
transform:translateX(-50%) !important;
width:320px !important;
display:flex !important;
flex-direction:column !important;
gap:16px !important;
z-index:5 !important;
}

/* remove weird bubble notch */
.timeline-lesson-card::before,
.timeline-lesson-card::after,
.lesson-node-card::before,
.lesson-node-card::after,
.map-lesson-card::before,
.map-lesson-card::after{
display:none !important;
content:none !important;
}

/* clean cards */
.timeline-lesson-card,
.lesson-node-card,
.map-lesson-card{
overflow:hidden !important;
border-radius:28px !important;
position:relative !important;
z-index:10 !important;
}

/* prevent path from drifting */
.timeline-path{
position:absolute !important;
left:50% !important;
transform:translateX(-50%) !important;
top:0 !important;
bottom:0 !important;
}

/* section labels */
.timeline-lesson-sections a,
.lesson-sections a{
display:flex !important;
align-items:center !important;
justify-content:space-between !important;
gap:12px !important;
white-space:nowrap !important;
}

/* section dots */
.timeline-lesson-sections a::after,
.lesson-sections a::after{
content:'' !important;
width:10px !important;
height:10px !important;
border-radius:999px !important;
background:#cbd5e1 !important;
flex-shrink:0 !important;
}

.timeline-lesson-sections a.completed::after,
.lesson-sections a.completed::after{
background:#22c55e !important;
}


/* LESSON DROPDOWN NAV */

.duolearn-lesson-dropdown-wrap{
position:sticky;
top:18px;
z-index:40;
margin:18px 0 28px;
}

.duolearn-lesson-dropdown-toggle{
width:100%;
border:none;
background:#fff;
border-radius:18px;
padding:16px 20px;
font-size:15px;
font-weight:700;
display:flex;
align-items:center;
justify-content:space-between;
box-shadow:0 8px 24px rgba(15,23,42,.08);
cursor:pointer;
}

.duolearn-lesson-dropdown{
display:none;
flex-direction:column;
gap:10px;
margin-top:12px;
background:#fff;
border-radius:18px;
padding:14px;
box-shadow:0 10px 30px rgba(15,23,42,.08);
}

body.duo-nav-open .duolearn-lesson-dropdown{
display:flex;
}

.duolearn-lesson-dropdown-item{
display:flex;
align-items:center;
gap:12px;
padding:12px 14px;
border-radius:14px;
text-decoration:none;
color:#111827;
transition:background .18s ease;
}

.duolearn-lesson-dropdown-item:hover{
background:#f3f4f6;
}

.duo-dot{
width:12px;
height:12px;
border-radius:999px;
background:#d1d5db;
flex-shrink:0;
}

.duo-arrow{
font-size:12px;
}




/* SIMPLE LESSON HAMBURGER */

.duo-lesson-menu{
position:fixed;
top:18px;
left:18px;
z-index:9999;
}

.duo-lesson-menu-btn{
width:46px;
height:46px;
border:none;
border-radius:14px;
background:#fff;
box-shadow:0 10px 24px rgba(15,23,42,.12);
font-size:22px;
font-weight:700;
cursor:pointer;
}

.duo-lesson-menu-panel{
display:none;
position:absolute;
top:58px;
left:0;
width:260px;
background:#fff;
border-radius:18px;
padding:14px;
box-shadow:0 18px 40px rgba(15,23,42,.16);
flex-direction:column;
gap:10px;
}

body.duo-lesson-menu-open .duo-lesson-menu-panel{
display:flex;
}

.duo-lesson-menu-item{
display:block;
padding:12px 14px;
border-radius:12px;
text-decoration:none;
color:#111827;
font-size:15px;
font-weight:600;
transition:background .18s ease;
}

.duo-lesson-menu-item:hover{
background:#f3f4f6;
}


.duo-lesson-menu{
position:fixed;
top:16px;
left:16px;
z-index:99999;
}

.duo-lesson-menu-btn{
width:44px;
height:44px;
border:none;
border-radius:12px;
background:#fff;
box-shadow:0 10px 24px rgba(15,23,42,.12);
font-size:22px;
cursor:pointer;
}

.duo-lesson-menu-panel{
display:none;
position:absolute;
top:56px;
left:0;
width:260px;
background:#fff;
border-radius:16px;
padding:12px;
box-shadow:0 18px 40px rgba(15,23,42,.16);
}

body.duo-lesson-menu-open .duo-lesson-menu-panel{
display:flex;
flex-direction:column;
gap:8px;
}

.duo-lesson-menu-item{
padding:12px 14px;
border-radius:10px;
text-decoration:none;
color:#111827;
font-weight:600;
}

.duo-lesson-menu-item:hover{
background:#f3f4f6;
}


#duo-force-lesson-menu{
position:fixed;
top:14px;
left:14px;
z-index:999999;
}

#duo-force-btn{
width:46px;
height:46px;
border:none;
border-radius:12px;
background:#fff;
box-shadow:0 10px 24px rgba(0,0,0,.12);
font-size:22px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
}

#duo-force-panel{
display:none;
position:absolute;
top:56px;
left:0;
width:240px;
background:#fff;
border-radius:14px;
padding:12px;
box-shadow:0 18px 40px rgba(0,0,0,.14);
}

#duo-force-panel.open{
display:block;
}

#duo-force-panel a{
display:block;
padding:10px 12px;
text-decoration:none;
color:#111827;
font-weight:600;
border-radius:10px;
}

#duo-force-panel a:hover{
background:#f3f4f6;
}


/* REAL LESSON MENU */

.duo-real-lesson-menu{
position:fixed;
top:14px;
left:14px;
z-index:999999;
}

.duo-real-menu-btn{
width:46px;
height:46px;
border:none;
border-radius:12px;
background:#fff;
box-shadow:0 10px 24px rgba(0,0,0,.12);
font-size:22px;
cursor:pointer;
}

.duo-real-menu-panel{
display:none;
position:absolute;
top:56px;
left:0;
width:260px;
background:#fff;
border-radius:16px;
padding:12px;
box-shadow:0 18px 40px rgba(0,0,0,.14);
flex-direction:column;
gap:8px;
}

body.duo-real-open .duo-real-menu-panel{
display:flex;
}

.duo-real-menu-item{
display:block;
padding:12px 14px;
border-radius:10px;
text-decoration:none;
color:#111827;
font-weight:600;
}

.duo-real-menu-item:hover{
background:#f3f4f6;
}


.duo-real-lesson-menu{
position:fixed;
top:14px;
left:14px;
z-index:999999;
}

.duo-real-menu-btn{
width:46px;
height:46px;
border:none;
border-radius:12px;
background:#fff;
box-shadow:0 10px 24px rgba(0,0,0,.12);
font-size:22px;
cursor:pointer;
}

.duo-real-menu-panel{
display:none;
position:absolute;
top:56px;
left:0;
width:260px;
background:#fff;
border-radius:16px;
padding:12px;
box-shadow:0 18px 40px rgba(0,0,0,.14);
}

body.duo-real-open .duo-real-menu-panel{
display:block;
}

.duo-real-menu-item{
display:block;
padding:12px 14px;
border-radius:10px;
text-decoration:none;
color:#111827;
font-weight:600;
}

.duo-real-menu-item:hover{
background:#f3f4f6;
}


/* SIDEBAR LESSON MENU */

.duo-real-lesson-menu{
position:fixed;
top:18px;
left:18px;
z-index:999999;
}

.duo-real-menu-btn{
width:42px;
height:42px;
border:none;
background:transparent !important;
box-shadow:none !important;
font-size:28px;
font-weight:700;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
color:#111827;
padding:0;
}

.duo-real-menu-panel{
position:fixed !important;
top:0 !important;
left:-320px !important;
width:300px !important;
height:100vh !important;
background:#ffffff !important;
padding:90px 18px 24px !important;
box-shadow:8px 0 30px rgba(15,23,42,.12) !important;
display:flex !important;
flex-direction:column !important;
gap:10px !important;
transition:left .25s ease !important;
overflow:auto !important;
border-radius:0 !important;
}

body.duo-real-open .duo-real-menu-panel{
left:0 !important;
}

.duo-real-menu-item{
display:flex !important;
align-items:center !important;
padding:14px 16px !important;
border-radius:14px !important;
text-decoration:none !important;
color:#111827 !important;
font-weight:700 !important;
font-size:15px !important;
transition:background .18s ease !important;
}

.duo-real-menu-item:hover{
background:#f3f4f6 !important;
}


/* SIDEBAR HEIGHT + ACTIVE ITEM */

.duo-real-menu-panel{
top:72px !important;
height:calc(100vh - 72px) !important;
padding-top:24px !important;
border-top-right-radius:22px !important;
}

.duo-real-menu-item.active{
background:#f3f4f6 !important;
border-radius:14px !important;
}


/* CENTER DROPDOWN MENU */

.duo-real-lesson-menu{
position:fixed;
top:12px;
left:50%;
transform:translateX(-50%);
z-index:999999;
display:flex;
flex-direction:column;
align-items:center;
}

.duo-real-menu-btn{
width:auto !important;
height:auto !important;
background:transparent !important;
border:none !important;
box-shadow:none !important;
font-size:22px !important;
font-weight:800 !important;
display:flex !important;
align-items:center !important;
gap:10px !important;
cursor:pointer !important;
padding:10px 18px !important;
border-radius:999px !important;
color:#111827 !important;
}

.duo-real-menu-btn::after{
content:'⌄';
font-size:14px;
}

.duo-real-menu-panel{
position:absolute !important;
top:56px !important;
left:50% !important;
transform:translateX(-50%) translateY(-10px) !important;
width:320px !important;
height:auto !important;
max-height:70vh !important;
background:#fff !important;
border-radius:22px !important;
padding:14px !important;
box-shadow:0 20px 50px rgba(15,23,42,.16) !important;
display:flex !important;
flex-direction:column !important;
gap:10px !important;
opacity:0 !important;
pointer-events:none !important;
transition:all .2s ease !important;
overflow:auto !important;
}

body.duo-real-open .duo-real-menu-panel{
opacity:1 !important;
pointer-events:auto !important;
transform:translateX(-50%) translateY(0) !important;
}

.duo-real-menu-item{
display:flex !important;
align-items:center !important;
padding:14px 16px !important;
border-radius:14px !important;
text-decoration:none !important;
color:#111827 !important;
font-weight:700 !important;
font-size:15px !important;
}

.duo-real-menu-item.active{
background:#f3f4f6 !important;
}


/* FULLSCREEN LESSON CARDS MENU */

.duo-real-lesson-menu{
position:fixed !important;
top:14px !important;
left:14px !important;
transform:none !important;
z-index:999999 !important;
}

.duo-real-menu-btn{
background:transparent !important;
border:none !important;
box-shadow:none !important;
font-size:28px !important;
padding:0 !important;
width:44px !important;
height:44px !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
}

.duo-real-menu-btn::after{
display:none !important;
}

.duo-real-menu-panel{
position:fixed !important;
inset:0 !important;
width:100vw !important;
height:100vh !important;
max-height:none !important;
border-radius:0 !important;
background:#f5f5f7 !important;
padding:120px 28px 80px !important;
display:grid !important;
grid-template-columns:repeat(auto-fit,minmax(240px,320px)) !important;
justify-content:center !important;
align-content:start !important;
gap:22px !important;
overflow:auto !important;

opacity:0 !important;
pointer-events:none !important;
transform:none !important;
transition:opacity .18s ease !important;
}

body.duo-real-open .duo-real-menu-panel{
opacity:1 !important;
pointer-events:auto !important;
}

.duo-real-menu-item{
background:#fff !important;
border-radius:24px !important;
padding:26px 24px !important;
min-height:120px !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
text-align:center !important;

font-size:20px !important;
font-weight:800 !important;
line-height:1.35 !important;

box-shadow:0 10px 30px rgba(15,23,42,.08) !important;

transition:transform .18s ease, box-shadow .18s ease !important;
}

.duo-real-menu-item:hover{
transform:translateY(-3px) !important;
box-shadow:0 18px 40px rgba(15,23,42,.12) !important;
background:#fff !important;
}

.duo-real-menu-item.active{
background:#eef2ff !important;
}


/* APP STYLE BOTTOM SHEET */

.duo-real-lesson-menu{
position:fixed !important;
top:14px !important;
left:14px !important;
z-index:999999 !important;
}

.duo-real-menu-btn{
width:44px !important;
height:44px !important;
border:none !important;
background:transparent !important;
box-shadow:none !important;
font-size:28px !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
cursor:pointer !important;
padding:0 !important;
}

.duo-real-menu-btn::after{
display:none !important;
}

.duo-real-menu-panel{
position:fixed !important;
left:0 !important;
right:0 !important;
bottom:-85vh !important;

width:100% !important;
height:72vh !important;
max-height:none !important;

background:#fff !important;
border-radius:28px 28px 0 0 !important;

padding:18px 18px 40px !important;

display:flex !important;
flex-direction:column !important;
gap:10px !important;

overflow:auto !important;

box-shadow:0 -12px 40px rgba(15,23,42,.18) !important;

transition:bottom .26s ease !important;

opacity:1 !important;
pointer-events:auto !important;
transform:none !important;
}

body.duo-real-open .duo-real-menu-panel{
bottom:0 !important;
}

.duo-real-menu-panel::before{
content:'' !important;
width:54px !important;
height:6px !important;
border-radius:999px !important;
background:#d1d5db !important;
margin:0 auto 12px auto !important;
display:block !important;
flex-shrink:0 !important;
}

.duo-real-menu-item{
display:flex !important;
align-items:center !important;
gap:14px !important;

background:#fff !important;
border-radius:18px !important;

padding:16px 18px !important;

text-decoration:none !important;
color:#111827 !important;

font-size:16px !important;
font-weight:700 !important;

box-shadow:none !important;
min-height:auto !important;
}

.duo-real-menu-item::before{
content:'○';
font-size:18px;
color:#9ca3af;
}

.duo-real-menu-item.active{
background:#f3f4f6 !important;
}

.duo-real-menu-item.active::before{
content:'✓';
color:#22c55e;
}

body.duo-real-open::after{
content:'' !important;
position:fixed !important;
inset:0 !important;
background:rgba(15,23,42,.28) !important;
backdrop-filter:blur(3px) !important;
z-index:999998 !important;
}


/* FIX BOTTOM SHEET VISIBILITY */

.duo-real-menu-panel{
bottom:-85vh !important;
opacity:0 !important;
pointer-events:none !important;
}

body.duo-real-open .duo-real-menu-panel{
bottom:0 !important;
opacity:1 !important;
pointer-events:auto !important;
}

body:not(.duo-real-open) .duo-real-menu-panel{
display:flex !important;
visibility:hidden !important;
}

body.duo-real-open .duo-real-menu-panel{
visibility:visible !important;
}

body:not(.duo-real-open)::after{
display:none !important;
content:none !important;
}

body.duo-real-open::after{
content:'' !important;
position:fixed !important;
inset:0 !important;
background:rgba(15,23,42,.28) !important;
backdrop-filter:blur(3px) !important;
z-index:999998 !important;
}


/* REAL MOBILE BOTTOM SHEET */

.duo-real-menu-panel{
position:fixed !important;
left:0 !important;
right:0 !important;
top:auto !important;

bottom:-100vh !important;

width:100vw !important;
height:68vh !important;

background:#ffffff !important;

border-radius:28px 28px 0 0 !important;

padding:18px 18px 42px !important;

display:flex !important;
flex-direction:column !important;
gap:10px !important;

overflow-y:auto !important;
overflow-x:hidden !important;

z-index:999999 !important;

transition:bottom .28s cubic-bezier(.22,1,.36,1) !important;

box-shadow:0 -10px 40px rgba(15,23,42,.18) !important;

opacity:1 !important;
visibility:visible !important;
pointer-events:auto !important;

transform:none !important;
max-height:none !important;
}

body.duo-real-open .duo-real-menu-panel{
bottom:0 !important;
}

body:not(.duo-real-open) .duo-real-menu-panel{
bottom:-100vh !important;
}

.duo-real-menu-panel::before{
content:'' !important;
width:54px !important;
height:6px !important;
border-radius:999px !important;
background:#d1d5db !important;
margin:0 auto 12px auto !important;
display:block !important;
flex-shrink:0 !important;
}

body.duo-real-open::after{
content:'' !important;
position:fixed !important;
inset:0 !important;
background:rgba(15,23,42,.24) !important;
backdrop-filter:blur(3px) !important;
z-index:999998 !important;
}

body:not(.duo-real-open)::after{
display:none !important;
content:none !important;
}


/* CENTERED BOTTOM SHEET */

.duo-real-menu-panel{
left:50% !important;
right:auto !important;
transform:translateX(-50%) !important;

width:min(720px, calc(100vw - 32px)) !important;

bottom:-100vh !important;
}

body.duo-real-open .duo-real-menu-panel{
bottom:18px !important;
transform:translateX(-50%) !important;
}

body:not(.duo-real-open) .duo-real-menu-panel{
bottom:-100vh !important;
transform:translateX(-50%) !important;
}

.duo-real-menu-item{
width:100% !important;
}


/* HARD RESET FOR SHEET POSITION */

.duo-real-menu-panel{
position:fixed !important;

top:auto !important;
right:auto !important;

left:50% !important;
bottom:-120vh !important;

transform:translateX(-50%) !important;

margin:0 !important;

width:min(720px, calc(100vw - 32px)) !important;
max-width:720px !important;

height:68vh !important;

z-index:999999 !important;
}

body.duo-real-open .duo-real-menu-panel{
bottom:16px !important;
left:50% !important;
transform:translateX(-50%) !important;
}

body:not(.duo-real-open) .duo-real-menu-panel{
bottom:-120vh !important;
left:50% !important;
transform:translateX(-50%) !important;
}


/* POLISHED SHEET */

.duo-real-menu-item{
font-weight:500 !important;
font-size:18px !important;
padding:16px 18px !important;
border-radius:16px !important;
width:100% !important;
box-sizing:border-box !important;
}

.duo-real-menu-item::before{
display:none !important;
content:none !important;
}

.duo-real-menu-item.active{
background:#f1f5f9 !important;
width:100% !important;
display:flex !important;
}


/* HAMBURGER CLICK FIX */

.duo-real-lesson-menu{
position:fixed !important;
top:14px !important;
left:14px !important;
z-index:2147483647 !important;
pointer-events:auto !important;
}

.duo-real-menu-btn{
pointer-events:auto !important;
position:relative !important;
z-index:2147483647 !important;
cursor:pointer !important;
}

.duo-real-menu-panel{
z-index:2147483646 !important;
}


/* FINAL TOGGLE FIX */

.duo-real-menu-btn{
position:fixed !important;
top:14px !important;
left:14px !important;
z-index:2147483647 !important;
cursor:pointer !important;
}

.duo-real-menu-panel{
z-index:2147483646 !important;
}

.duo-real-menu-panel::before{
margin-top:8px !important;
margin-bottom:18px !important;
}


/* CLEAN BOTTOM SHEET */

.duo-sheet-menu{
position:fixed;
top:14px;
left:14px;
z-index:999999;
}

.duo-sheet-btn{
width:44px;
height:44px;
border:none;
background:transparent;
font-size:28px;
cursor:pointer;
}

.duo-sheet-overlay{
position:fixed;
inset:0;
background:rgba(15,23,42,.24);
backdrop-filter:blur(3px);
opacity:0;
pointer-events:none;
transition:opacity .2s ease;
z-index:999998;
}

.duo-sheet-panel{
position:fixed;
left:50%;
bottom:-100vh;
transform:translateX(-50%);
width:min(720px, calc(100vw - 24px));
height:68vh;
background:#fff;
border-radius:28px 28px 0 0;
padding:18px;
display:flex;
flex-direction:column;
gap:10px;
overflow:auto;
transition:bottom .25s ease;
z-index:999999;
box-shadow:0 -10px 40px rgba(15,23,42,.18);
}

body.duo-sheet-open .duo-sheet-overlay{
opacity:1;
pointer-events:auto;
}

body.duo-sheet-open .duo-sheet-panel{
bottom:0;
}

.duo-sheet-handle{
width:54px;
height:6px;
border-radius:999px;
background:#d1d5db;
margin:6px auto 14px;
flex-shrink:0;
}

.duo-sheet-item{
display:block;
padding:16px 18px;
border-radius:16px;
text-decoration:none;
color:#111827;
font-size:17px;
font-weight:500;
}

.duo-sheet-item.active{
background:#f1f5f9;
}


/* NO ROUNDED IMAGES */

.duolearn-content img,
.lesson-content img,
.wp-block-image img,
.duolearn-section img{
border-radius:0 !important;
}


/* REMOVE IMAGE SHADOW */

.duolearn-content img,
.lesson-content img,
.wp-block-image img,
.duolearn-section img,
figure img{
box-shadow:none !important;
filter:none !important;
}


/* REMOVE IMAGE CARD BACKGROUND */

.wp-block-image,
.duolearn-content .wp-block-image,
.lesson-content .wp-block-image,
figure.wp-block-image{
background:transparent !important;
padding:0 !important;
border:none !important;
box-shadow:none !important;
filter:none !important;
border-radius:0 !important;
}

.wp-block-image img,
figure.wp-block-image img,
.duolearn-content img,
.lesson-content img{
background:transparent !important;
box-shadow:none !important;
filter:none !important;
}


/* HARD REMOVE MEDIA CONTAINERS */

.wp-block-image,
.wp-block-media-text,
.wp-caption,
figure,
figure.wp-block-image,
.duolearn-content figure,
.lesson-content figure{
background:transparent !important;
box-shadow:none !important;
border:none !important;
outline:none !important;
padding:0 !important;
margin-left:auto !important;
margin-right:auto !important;
border-radius:0 !important;
overflow:visible !important;
}

.wp-block-image img,
figure img,
.duolearn-content img,
.lesson-content img{
display:block !important;
background:transparent !important;
box-shadow:none !important;
filter:none !important;
border-radius:0 !important;
padding:0 !important;
}


/* REMOVE ACTUAL IMAGE BOX SHADOW */

.hero-card-content img{
box-shadow:none !important;
}
