/* --- APPLIKÁCIÓ TELJES KÉPERNYŐS NÉZET ÉS REJTÉS --- */
body { overflow: hidden; }

#sema-app-fullscreen {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
height: 100vh !important;
background-color: #24231E !important;
z-index: 999999 !important;
overflow-y: auto !important;
padding: 0 20px 140px 20px !important;
box-sizing: border-box !important;
margin: 0 !important;
display: block !important;
}

/* --- PATENT KÖZÉPRE IGAZÍTÁSÚ FEJLÉC STÍLUS --- */
.app-sticky-header {
position: sticky !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
background-color: #24231E !important;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 11px;
font-weight: 600;
letter-spacing: 2px;
color: rgba(255, 255, 255, 0.5);
text-transform: uppercase;
padding: 14px 20px !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
z-index: 99999 !important;
margin: 0 0 20px 0 !important;
display: flex !important;
box-sizing: border-box !important;
}

/* A rugalmas növekedés biztosítja, hogy a center blokk mértanilag középen maradjon */
.header-left {
flex: 1 !important;
display: flex !important;
justify-content: flex-start !important;
align-items: center !important;
}
.header-center {
flex: 2 !important;
text-align: center !important;
white-space: nowrap !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
.header-right {
flex: 1 !important;
display: flex !important;
justify-content: flex-end !important;
align-items: center !important;
position: relative !important;
}

/* Mentésjelző stílusa */
#save-indicator {
font-size: 11px;
font-weight: bold;
opacity: 0;
transition: opacity 0.3s;
letter-spacing: 0;
text-transform: none;
}

/* Hamburger ikon konténer */
.app-hamburger {
width: 20px;
height: 14px;
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
}

/* VISSZATETT CSÍKOK: Ez hiányzott a kirajzoláshoz */
.app-hamburger span {
display: block;
width: 100%;
height: 2px;
background-color: rgba(255, 255, 255, 0.6);
border-radius: 2px;
transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger ikon átalakulása X alakká nyitott állapotban */
.app-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.app-hamburger.open span:nth-child(2) { opacity: 0; }
.app-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- LEGÖRDÜLŐ MENÜ PANEL --- */
.app-dropdown-content {
display: none;
position: absolute;
top: 100%;
right: 0px;
background: #2d2c25;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
z-index: 999999 !important;
min-width: 190px;
overflow: hidden;
box-sizing: border-box;
}
.app-dropdown-content.show {
display: block;
animation: fadeIn 0.15s ease-out;
}

.menu-item {
width: 100%;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.85);
padding: 12px 16px;
text-align: left;
font-family: 'Segoe UI', sans-serif;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s, color 0.2s;
box-sizing: border-box;
display: block;
}
.menu-item:hover {
background: rgba(255, 255, 255, 0.05);
color: #fff;
}

body > *:not(#sema-app-fullscreen):not(#sema-login-fullscreen):not(#psy-workbook-wrapper):not(#tut-overlay):not(#tut-modal):not(#tut-tooltip):not(script):not(style) {
  opacity: 0 !important;
  pointer-events: none !important;
}

.app-header {
max-width: 850px;
margin: 0 auto 30px auto;
display: flex;
justify-content: flex-start;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.app-btn {
background: rgba(255,255,255,0.1);
color: #fff;
text-decoration: none;
padding: 8px 15px;
border-radius: 8px;
font-size: 13px;
font-weight: bold;
transition: all 0.2s;
border: 1px solid rgba(255,255,255,0.2);
display: inline-flex;
align-items: center;
gap: 8px;
}

.app-btn:hover {
background: rgba(255,255,255,0.2);
}


/* --- CSONTVÁZ (SKELETON) CSS --- */
.skeleton-tabs {
display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; padding-top: 10px;
}
.skeleton-tab {
flex: 1; height: 80px; border-radius: 12px; background: #f0f0f0;
animation: pulse-bg 1.5s infinite ease-in-out;
}
.skeleton-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 25px; padding: 20px 0; width: 100%;
}
.skeleton-card {
height: 220px; border-radius: 12px; background: #fff; border: 1px solid #f0f0f0;
overflow: hidden; display: flex; flex-direction: column;
box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.skeleton-card::before {
content: ''; display: block; height: 140px; background: #f0f0f0;
animation: pulse-bg 1.5s infinite ease-in-out;
}
.skeleton-card::after {
content: ''; display: block; margin: 20px 15px; height: 16px; width: 60%;
background: #f0f0f0; border-radius: 4px; animation: pulse-bg 1.5s infinite ease-in-out;
}
@keyframes pulse-bg {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}

@media (max-width: 600px) {
.skeleton-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.skeleton-card { height: 160px; }
.skeleton-card::before { height: 110px; }
.skeleton-card::after { margin: 15px 10px; height: 12px; }

/* Oldalsó margók finomítása mobilon a fix fejléc alatt */
#sema-app-fullscreen { padding: 0 15px 120px 15px !important; }

/* Kizárólag a főmenü konténert keskenyítjük le mobilon */
#course-container {
max-width: 420px !important;
margin: 0 auto !important;
width: 100% !important;
}

/* Az olvasó felület megőrzi a teljes szélességét, nem zsugorodik össze */
#reader-container {
max-width: 100% !important;
width: 100% !important;
padding: 0 !important;
}

/* A felső "Vissza" sáv illesztése a szélekhez */
#reader-container > div:first-child {
border-radius: 0 !important;
border-left: none !important;
border-right: none !important;
margin-bottom: 0 !important;
}

/* Maga az olvasó doboz faltól falig ér a maximális olvashatóságért */
#reader-content {
padding: 15px !important;
border-radius: 0 !important;
box-shadow: none !important;
}
}

.category-section {
display: none;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 25px !important;
padding: 20px 0 !important;
width: 100% !important;
animation: fadeIn 0.4s;
align-items: start;
box-sizing: border-box;
}

.locked-filter { filter: grayscale(100%) brightness(0.7); opacity: 0.8; }

.course-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
overflow: hidden;
border: 1px solid #eee;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
position: relative;
margin-bottom: 10px;
}
.course-card:hover {
box-shadow: 0 12px 24px rgba(0,0,0,0.15);
border-color: #bbdefb;
}

.card-clickable-area {
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;
}

.card-cover {
height: 140px;
background-size: cover;
background-position: center;
position: relative;
}

.card-title-area {
padding: 15px;
display: flex;
justify-content: space-between;
align-items: center;
background: #fff;
}
.course-title {
font-weight: 700; font-size: 16px; color: #333; line-height: 1.3; flex: 1; text-align: center;
}
.expand-icon {
font-size: 14px; color: #888; transition: transform 0.3s ease; margin-left: 10px;
}

.card-body-area {
display: none;
padding: 0 15px 15px 15px;
border-top: 1px solid #f0f0f0;
text-align: center;
}

.status-badge {
position: absolute; top: 10px; right: 10px;
font-size: 11px; padding: 5px 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.status-locked { background: #9e9e9e; color: #fff; }
.status-explore { background: #1976d2; color: #fff; border: 1px solid #1565c0; }
.status-preorder { background: #fff9c4; color: #b88a00; border: 1px solid #fff176; }
.status-active { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.status-ongoing { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.status-expired { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.status-workbook { background: #f1f8e9; color: #33691e; border: 1px solid #c5e1a5; }
.new-badge { font-size: 10px; background-color: #d32f2f; color: white; padding: 2px 6px; border-radius: 4px; margin-left: 8px; font-weight: bold; display: inline-block; vertical-align: middle; transform: translateY(-1px); }

.week-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.week-link { display: block; padding: 10px; background: #f8f9fa; border-radius: 6px; text-decoration: none; color: #333; font-size: 13px; font-weight: 600; border: 1px solid #eee; transition: background 0.2s; text-align: center; }
.week-link.active:hover { background: #e3f2fd; border-color: #90caf9; color: #1565c0; }
.week-link.locked { background: #f5f5f5; color: #999; cursor: not-allowed; }

.btn-unlock-info { background: #f1f8e9; color: #2e7d32; border: 1px solid #c5e1a5; font-size: 12px; font-weight: bold; padding: 10px; border-radius: 4px; width: 100%; cursor: pointer; transition: all 0.2s; margin-top: 10px;}
.btn-unlock-info:hover { background: #e8f5e9; transform: translateY(-2px); }
.btn-start { background: #2e7d32; color: white; border: none; cursor: pointer; width: 100%; padding: 12px; font-size: 13px; font-weight: bold; border-radius: 6px; text-transform: uppercase; margin-top: 10px; }
.btn-start:hover { background: #1b5e20; box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3); }
.btn-jump { background: transparent; color: #d32f2f; border: 1px solid #ef9a9a; font-size: 12px; font-weight: bold; padding: 8px; border-radius: 4px; margin-top: 10px; cursor: pointer; width: 100%; }
.btn-jump:hover { background: #ffebee; }
.btn-renew { background: #1976d2; color: white; text-decoration: none; display: block; width: 100%; text-align: center; padding: 10px; font-size: 13px; font-weight: bold; border-radius: 6px; margin-top: 10px; transition: all 0.3s; }
.btn-renew:hover { background: #1565c0; }
.btn-access { background: #2e7d32; color: white; display: block; text-align: center; padding: 10px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 13px; margin-top: 10px;}
.btn-access:hover { background: #1b5e20; }

.lock-info { font-size: 11px; color: #999; display: block; margin-top: 2px; font-weight: normal; }

@media (max-width: 600px) {
/* JAVÍTVA: Mivel egymás alatti struktúrát használunk, mobilon is 1 oszlopos listává tesszük, így nem nyúlik el semmi */
.category-section {
display: none;
grid-template-columns: 1fr !important;
gap: 16px !important;
padding: 10px 0 !important;
}
.card-cover { height: 120px !important; }
.course-title { font-size: 14px !important; }
.status-badge { font-size: 9px; padding: 3px 6px; top: 5px; right: 5px;}
.card-body-area { padding: 0 10px 10px 10px; }
}


/* --- ÚJ TUTORIAL CSS (FIX ALSÓ MOBIL SÁVVAL ÉS JAVÍTOTT POZÍCIÓKKAL) --- */
#tut-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.7); display: none;
pointer-events: auto;
z-index: 100 !important;
}

#tut-modal {
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
background: #fff; padding: 30px; border-radius: 12px;
text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); width: 90%; max-width: 400px;
display: none; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
z-index: 105 !important;
}

.tut-modal-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; color: #333; }

.tut-modal-btn {
display: block; width: 100%; padding: 12px; margin-bottom: 10px;
background: #f8f9fa; border: 1px solid #ddd; border-radius: 8px;
cursor: pointer; font-weight: bold; color: #444; transition: all 0.2s; font-size: 14px;
}
.tut-modal-btn:hover { background: #e3f2fd; border-color: #90caf9; color: #1565c0; }
.tut-modal-btn.primary { background: #1976d2; color: #fff; border: none; margin-top: 20px;}
.tut-modal-btn.primary:hover { background: #1565c0; }

#tut-tooltip {
position: fixed; background: #fff; padding: 20px;
border-radius: 12px; color: #333; width: 250px; text-align: center;
box-shadow: 0 10px 25px rgba(0,0,0,0.3); display: none;
border: 2px solid #1976d2; font-family: 'Segoe UI', sans-serif;
z-index: 105 !important;
}

.tut-promote {
z-index: 101 !important;
position: relative !important;
}
.course-card.tut-promote { overflow: visible !important; }

.tut-highlight {
position: relative !important;
z-index: 102 !important;
animation: tut-pulse 1.5s infinite !important;
opacity: 1 !important;
pointer-events: auto !important;
}

@keyframes tut-pulse {
0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9); }
70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.tut-tooltip-text { font-size: 14px; line-height: 1.4; }

.tut-btn {
background: #1976d2; color: #fff; border: none; padding: 10px 20px;
border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; transition: background 0.2s;
}
.tut-btn:hover { background: #1565c0; }

/* --- MOBILOS TRANSZFORMÁCIÓ: FIX ALSÓ PANELLE VÁLTÁS --- */
/* --- MOBILOS TRANSZFORMÁCIÓ: LEBEGŐ ALSÓ ÉS FELSŐ PANEL --- */
@media (max-width: 600px) {
#tut-tooltip {
position: fixed !important;
bottom: 25px !important; /* Lebegő távolság az aljától */
left: 16px !important; /* Lebegő távolság a bal szélétől */
right: 16px !important; /* Lebegő távolság a jobb szélétől */
top: auto !important;
width: auto !important; /* Kitölti a két oldal közötti teret */
max-width: none !important;
border-radius: 14px !important;
border: 2px solid #1976d2 !important;
background-color: #ffffff !important;
box-shadow: 0 10px 35px rgba(0,0,0,0.4) !important;
padding: 18px 20px !important;
box-sizing: border-box !important;
z-index: 2000005 !important;
}
.tut-tooltip-text {
font-size: 14px !important;
line-height: 1.5 !important;
color: #24231E !important;
text-align: left !important;
}
/* Új osztály, amit a lecke borítójánál fogunk aktiválni felülre */
#tut-tooltip.tut-mobile-top {
bottom: auto !important;
top: 25px !important;
}
}



/* --- PROGRESSZ SÁV ÉS DINAMIKUS GOMBOK --- */
.progress-wrapper { margin: 15px 0 10px 0; text-align: left; }
.progress-info { display: flex; justify-content: space-between; font-size: 11px; color: #666; font-weight: bold; margin-bottom: 5px; text-transform: uppercase;}
.progress-bar-bg { background: #eee; height: 8px; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { background: #4caf50; height: 100%; transition: width 0.4s ease; }

.week-link.lesson-done { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.week-link.lesson-done:hover { background: #c8e6c9; }
.week-link.lesson-active { background: #e3f2fd; border-color: #90caf9; color: #1565c0; }
.week-link.lesson-active:hover { background: #bbdefb; }
.week-link.lesson-locked { background: #f5f5f5; color: #999; border-color: #eee; cursor: not-allowed; }

/* --- AJÁNLÓ BANNER STÍLUSOK --- */
.promo-banner {
width: 100%;
max-width: 850px;
height: 110px;
margin: 0 auto 25px auto;
border-radius: 12px;
background-size: cover;
background-position: center;
position: relative;
cursor: pointer;
overflow: hidden;
display: flex;
align-items: center;
text-decoration: none;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
transition: transform 0.2s, box-shadow 0.2s;
box-sizing: border-box;
border: 1px solid rgba(255,255,255,0.1);
}
.promo-banner:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.promo-overlay {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
box-sizing: border-box;
}
.promo-title {
font-size: 18px;
font-weight: bold;
color: #fff;
margin-bottom: 4px;
text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.promo-desc {
font-size: 13px;
color: #e0e0e0;
max-width: 70%;
line-height: 1.3;
text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* --- ÚJ: PROMO CÍMKE DIZÁJN --- */
.promo-badge {
position: absolute;
top: 12px;
right: 12px;
padding: 5px 14px;
border-radius: 20px;
font-size: 11px;
font-weight: 800;
font-family: 'Montserrat', sans-serif;
color: #fff;
text-transform: uppercase;
letter-spacing: 1px;
z-index: 10;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
border: 1px solid rgba(255,255,255,0.2);
text-align: center;
line-height: 1.2;
}

@media (max-width: 600px) {
.promo-banner {
height: 95px;
margin-bottom: 15px;
}
.promo-badge {
top: 8px;
right: 8px;
font-size: 9px;
padding: 4px 8px;
letter-spacing: 0.5px;
max-width: 85px; /* Hosszabb szövegnél sortörést kényszerít ki */
white-space: normal; /* Engedélyezi, hogy a szavak egymás alá kerüljenek */
}
.promo-title {
font-size: 15px;
max-width: 75%; /* Balra tartja a címet, hogy helyet hagyjon a címkének */
}
.promo-desc {
font-size: 11px;
max-width: 85%; /* Balra tartja a leírást */
}
}


/* --- VISSZAJELZÉS MODUL CSS --- */
.feedback-container {
margin: 40px auto !important;
padding: 35px 20px !important;
background-color: #F7FAF9 !important;
border: 1px solid #C6F6D5 !important;
border-radius: 12px !important;
animation: fadeIn 0.5s ease !important;
width: 100% !important;
max-width: 500px !important;
box-sizing: border-box !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
align-self: center !important;
}
.feedback-title {
font-family: 'Montserrat', sans-serif !important;
font-size: 16px !important;
font-weight: 600 !important;
color: #1C4532 !important;
margin-bottom: 20px !important;
padding: 0 !important;
}
.star-rating {
display: flex !important;
justify-content: center !important;
gap: 10px !important;
margin-bottom: 25px !important;
flex-direction: row-reverse !important;
padding: 0 !important;
}
.star-rating input {
display: none; /* Itt nem szabad !important-nak lennie */
}
.star-rating label {
font-size: 38px !important;
color: #E2E8F0 !important;
cursor: pointer !important;
transition: all 0.2s !important;
line-height: 1 !important;
padding: 0 !important;
margin: 0 !important;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
color: #F6AD55 !important;
transform: scale(1.1) !important;
}
.feedback-textarea {
width: 85% !important;
max-width: 400px !important;
border: 1px solid #C6F6D5 !important;
background-color: #FFFFFF !important;
border-radius: 8px !important;
padding: 15px !important;
font-family: 'Open Sans', sans-serif !important;
font-size: 14px !important;
resize: vertical !important;
min-height: 80px !important;
display: none; /* Itt nem szabad !important-nak lennie, különben a JS nem tudja megjeleníteni */
margin: 0 auto 25px auto !important;
box-sizing: border-box !important;
color: #2D3748 !important;
outline: none !important;
}
.feedback-textarea:focus {
border-color: #2F855A !important;
}
.feedback-submit {
background-color: #2F855A !important;
color: white !important;
border: none !important;
padding: 14px 30px !important;
border-radius: 50px !important;
font-family: 'Montserrat', sans-serif !important;
font-weight: 600 !important;
font-size: 14px !important;
cursor: pointer !important;
display: none; /* Itt nem szabad !important-nak lennie */
transition: all 0.3s ease !important;
margin: 0 auto !important;
}
.feedback-submit:hover {
background-color: #1C4532 !important;
transform: translateY(-2px) !important;
box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}
.feedback-success {
color: #2F855A !important;
font-weight: bold !important;
font-family: 'Montserrat', sans-serif !important;
font-size: 15px !important;
display: none; /* Itt sem szabad */
margin-top: 10px !important;
padding: 0 !important;
}

/* --- INGYENES HÍRLEVÉL POPUP DIZÁJN --- */
#news-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.75); display: none;
pointer-events: auto;
z-index: 2000000 !important;
backdrop-filter: blur(4px);
}
#news-modal {
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
background: #fff; padding: 35px 25px; border-radius: 16px;
text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.4);
width: 90%; max-width: 420px; display: none;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
z-index: 2000005 !important;
animation: popIn 0.3s ease-out;
}
@keyframes popIn {
0% { transform: translate(-50%, -45%) scale(0.95); opacity: 0; }
100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.news-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #1a1a1a; line-height: 1.3; }
.news-text { font-size: 14px; color: #555; margin-bottom: 25px; line-height: 1.5; }
.news-btn-group { display: flex; flex-direction: column; gap: 10px; }
.news-btn {
width: 100%; padding: 14px; border-radius: 10px; font-size: 14px; font-weight: bold;
cursor: pointer; transition: all 0.2s ease; box-sizing: border-box; text-align: center;
}
.news-btn.yes { background: #2e7d32; color: #fff; border: none; }
.news-btn.yes:hover { background: #1b5e20; transform: translateY(-1px); }
.news-btn.no { background: transparent; color: #777; border: none; font-weight: normal; text-decoration: underline; font-size: 13px; margin-top: 5px; }


/* --- ÚJ: PROBLÉMAKÖR VÁLASZTÓ ÉS LÉPÉSJELZŐ (STEPPER) --- */
.path-selector { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; padding-top: 10px; }
.path-btn { flex: 1; padding: 15px 10px; border-radius: 12px; cursor: pointer; text-align: center; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); opacity: 0.6; filter: grayscale(0.4); border: 2px solid transparent; box-sizing: border-box; }
.path-btn:hover { transform: translateY(-2px); opacity: 0.9; filter: grayscale(0); }
.path-btn.active { opacity: 1; filter: grayscale(0); box-shadow: 0 8px 15px rgba(0,0,0,0.2); transform: translateY(-4px); border: 2px solid #fff; }

.path-icon { font-size: 24px; display: block; margin-bottom: 5px; line-height: 1; }
.path-text { font-weight: 700; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; }

/* Színátmenetek a két útvonalhoz */
.path-magany { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.path-szorongas { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.path-hatarok { background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); }

/* Lépésjelző (Stepper) vonal és karikák */
.stepper-wrapper { position: relative; max-width: 650px; margin: 0 auto 35px auto; padding: 0 10px; display: none; animation: fadeIn 0.4s; }
.stepper-line { position: absolute; top: 22px; left: 15%; right: 15%; height: 4px; background: #e0e0e0; z-index: 1; border-radius: 2px; }
.stepper-line-fill { position: absolute; top: 0; left: 0; height: 100%; background: #4caf50; width: 0%; transition: width 0.5s ease; border-radius: 2px; }
.stepper-steps { position: relative; z-index: 2; display: flex; justify-content: space-between; }

.step-item { display: flex; flex-direction: column; align-items: center; width: 33%; cursor: pointer; transition: transform 0.2s; }
.step-item:hover { transform: translateY(-3px); }

.step-circle { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid #e0e0e0; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; color: #999; margin-bottom: 10px; transition: all 0.3s; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.step-label { font-size: 11px; font-weight: 700; color: #777; text-align: center; text-transform: uppercase; max-width: 140px; line-height: 1.3; }

/* Státuszok: Lezárt / Aktív (Kattintott) / Kész (Megvásárolt) */
.step-item.locked .step-circle { background: #f5f5f5; border-color: #eeeeee; color: #ccc; }
.step-item.active .step-circle { border-color: #1976d2; color: #1976d2; box-shadow: 0 0 0 5px rgba(25, 118, 210, 0.1); }
.step-item.active .step-label { color: #1976d2; }
.step-item.done .step-circle { border-color: #4caf50; background: #4caf50; color: #fff; }
.step-item.done .step-label { color: #2e7d32; }

/* --- NAPI SOROZAT ÉS HETI ÁTTEKINTŐ STÍLUSOK --- */
.streak-badge-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 15px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.streak-count {
  color: #ff9800;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Modal háttér és doboz */
.weekly-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.weekly-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  z-index: 10001;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.weekly-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 20px 0;
  text-align: center;
}

.day-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.day-box.active {
  background: rgba(255, 152, 0, 0.2);
  border: 1px solid #ff9800;
}

.day-box.freeze {
  background: rgba(33, 150, 243, 0.2);
  border: 1px solid #2196f3;
}

.day-icon {
  font-size: 16px;
}

.streak-stats-row {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
}

.stat-item .val {
  font-size: 18px;
  font-weight: 700;
  color: #ff9800;
}

.stat-item .lbl {
  font-size: 11px;
  color: #aaa;
}


@media (max-width: 600px) {
.step-circle { width: 40px; height: 40px; font-size: 16px; border-width: 2px; }
.stepper-line { top: 19px; left: 16%; right: 16%; }
.step-label { font-size: 9px; }
}

/* Új stílus a sötét hátterű olvasóhoz blog és ajánlat esetén */
#reader-container.dark-reader,
#reader-container.dark-reader #reader-content {
background: #24231E !important;
background-color: #24231E !important;
border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   VILÁGOS MÓD (LIGHT MODE) FELÜLÍRÁSOK
   ========================================================================== */

/* Főkonténer és fejléc világos háttérbe állítása */
#sema-app-fullscreen.light-mode {
  background-color: #F7F7F5 !important;
}

#sema-app-fullscreen.light-mode .app-sticky-header {
  background-color: #FFFFFF !important;
  color: #555555 !important;
  border-bottom: 1px solid #E0E0E0 !important;
}

/* Hamburger ikon csíkjai világos módban */
#sema-app-fullscreen.light-mode .app-hamburger span {
  background-color: #333333 !important;
}

/* Legördülő menü sötétből világosba fordítása */
#sema-app-fullscreen.light-mode .app-dropdown-content {
  background: #FFFFFF !important;
  border: 1px solid #E0E0E0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

#sema-app-fullscreen.light-mode #menu-user-profile {
  background: #F9F9F9 !important;
  border-bottom: 1px solid #EEEEEE !important;
}

#sema-app-fullscreen.light-mode #menu-user-profile div:first-child {
  color: #888888 !important;
}

#sema-app-fullscreen.light-mode #user-display-email {
  color: #222222 !important;
}

#sema-app-fullscreen.light-mode .menu-item {
  color: #333333 !important;
}

#sema-app-fullscreen.light-mode .menu-item:hover {
  background: #F0F0F0 !important;
  color: #000000 !important;
}

/* Napi sorozat badge a menüben */
#sema-app-fullscreen.light-mode .streak-badge-menu {
  background: #F5F5F5 !important;
  border: 1px solid #E0E0E0 !important;
  color: #333333 !important;
}

/* Kezdő opcióválasztó segédszöveg világosban */
#sema-app-fullscreen.light-mode #path-helper-text {
  color: #333333 !important;
  background: #FFFFFF !important;
  border: 1px dashed #CCCCCC !important;
}

/* Heti áttekintő modal világos stílusa */
#sema-app-fullscreen.light-mode .weekly-modal {
  background: #FFFFFF !important;
  color: #222222 !important;
  border: 1px solid #E0E0E0 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

#sema-app-fullscreen.light-mode .weekly-modal h3 {
  color: #222222 !important;
}

#sema-app-fullscreen.light-mode .weekly-modal button[onclick*="closeWeeklyModal"] {
  color: #666666 !important;
}

#sema-app-fullscreen.light-mode .day-box {
  background: #F5F5F5 !important;
  color: #333333 !important;
}

#sema-app-fullscreen.light-mode .streak-stats-row {
  background: #F9F9F9 !important;
}

#sema-app-fullscreen.light-mode .stat-item .lbl {
  color: #666666 !important;
}

@media print {
  body { overflow: visible !important; }
}