@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Stack+Sans+Text:wght@200..700&display=swap');

*{
    font-family: "Roboto", sans-serif;
    padding: 0px;
    margin: 0px;
    text-decoration: none;



}

body{
    background-color: #141518;
    color: #e3e3e3;
}


.wrapper{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

:root{
    --global-green: #58cc03;
    --collor-border: #4eaf08;
    --text-color: #e3e3e3;
    --second-text-color: #a0a0a0;
    --accent-btn-color: #0080ff;
    --accent-color-hover: #1a8ad5;
    ---bg: #1a1d23;
    --box-bg: #ffffff0d;
    --box-bg-blured: rgba(40, 40, 40, .95);
    --tme-logo-color: #e3e3e3;
    --tme-desc-color: #a0a0a0;
    --tme-table-bg-color: #ffffff0d;
    --tme-table-border-color: #333;
    --tme-table-head-color: #333;
    --tme-table-accent-color: #58cc03;
    --tme-table-accent-bg-color: rgba(88, 204, 3, 0.15);
    --accent-link-color: #58cc03;
}

.top-bar-logo{
    width: 150px;
}

.hello-reg_top-bar-block{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    height:65px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}
.about-our{
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.lengset{
    color: rgb(152, 152, 152);
    font-weight: 700;
}
.go-start{
    background-color: var(--global-green);
    padding: 10px 22px;
    border-bottom:5px solid var(--collor-border) ;
    border-radius: 15px;
    color: #ffff;
    cursor: pointer;
    transition: 0.3s ease; /* Плавность */
}

a{
    text-decoration: none;
}

a:hover { text-decoration: none; }

.aut-btn{
    background-color: transparent;
    padding: 10px 22px;
    border-radius: 15px;
    border: 3px solid #555;
    color: #c8c8c8;
    cursor: pointer;
    transition: 0.3s ease;
}
.aut-btn:hover{
    border-color: #58cc03;
    color: #58cc03;
}

.hello-reg_top-bar-block-left{
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-our{
    background-color: #cc035d;
    padding: 10px 22px;
    border-bottom: 5px solid #8d0657;
    border-radius: 15px;
    color: #ffff;
    cursor: pointer;
    transition: 0.3s ease;
}
.reg-block-btn{
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-weight: 600;
    max-width: 330px;
    width: 100%;

}
.hello-reg_top-bar-wrapper{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
    background-color: #1a1d23;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Top bar (top-bar-ref) — по референсу */
.top-bar-ref {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.top-bar-ref--scrolled {
    background: #191919e0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 65px;
    gap: 16px;
}
.top-bar-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.top-bar-logo-img {
    height: 30px;
    width: auto;
    display: block;
}
.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: space-between;
    padding-bottom: 15px;
}
.top-bar-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 1000px;
    transition: color 0.2s, background 0.2s;
    background: #ffffff0d;
}

.menu-nav-bar {
    display: flex;
    gap: 10px;
    width: 65vw;
    overflow: scroll;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #EBECF2 10%);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: calc(-12px) calc(-15px);
    padding: 16px;
}
.top-bar-nav-item:hover {
    color: #e3e3e3;
    background: rgba(255,255,255,0.05);
}
.top-bar-nav-item svg {
    flex-shrink: 0;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.top-bar-gcoin {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffc107;
    font-weight: 600;
    font-size: 15px;
}
.top-bar-gcoin-icon { font-size: 18px; }
.top-bar-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    color: #e3e3e3;
    font-weight: 600;
    font-size: 14px;
}
.top-bar-balance:hover { color: #fff; }
.top-bar-balance svg { color: #a0a0a0; }
.top-bar-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #58cc03;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    transition: background 0.2s;
}
.top-bar-profile-btn:hover {
    background: #61e106;
    color: #fff;
}
.top-bar-back {
    color: #a0a0a0;
    font-size: 13px;
}
.top-bar-back:hover { color: #e3e3e3; }
.top-bar-login-btn {
    padding: 10px 20px;
    border: 2px solid #555;
    border-radius: 12px;
    color: #c8c8c8;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.top-bar-login-btn:hover {
    border-color: #58cc03;
    color: #58cc03;
}
.top-bar-burger { display: none; }
.top-bar-burger .burger-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 10px;
    padding: 8px;
    color: #e3e3e3;
    cursor: pointer;
}
.top-bar-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #1a1d23;
    z-index: 1001;
    padding: 80px 24px 24px;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}
.top-bar-mobile-menu.active { left: 0; }
.top-bar-mobile-menu .mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #a0a0a0;
    background: none;
    border: none;
    cursor: pointer;
}
.top-bar-mobile-menu .mobile-menu-close:hover { color: #e3e3e3; }
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu-nav a {
    color: #e3e3e3;
    font-size: 16px;
    padding: 10px 0;
}
.mobile-menu-nav a:hover { color: #fff; }
.mobile-logout {
    background: transparent;
    border: 2px solid #555;
    color: #a0a0a0;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 16px;
}
.mobile-logout:hover { border-color: #58cc03; color: #58cc03; }
.top-bar-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}
/* .top-bar-menu-overlay.active { display: block; } */
main.page-container { padding-top: 65px; min-height: 100vh; }
@media (max-width: 1024px) {

    .top-bar-burger { display: flex; }
}
@media (max-width: 600px) {
    .top-bar-gcoin,
    .top-bar-back { display: none; }
}

svg {
    width: 20px;
    height: 20px;
    align-items: center;
    display: flex;

}

.greed{
    fill: #a2a2a2;
}

/* .hello-info_m1.hello-reg {
    height: 700px;
} */
.aling-center{
    align-items: center;
    justify-content: center;
    display: flex;
}



.go-start:hover{
    background-color: #61e106;
    border-bottom:5px solid #57c10c;

}
.hello-info_m1text{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hello-info_m1text h2{
    color: var(--global-green);
    font-size: 48px;
}

.hello-info_m1text span{
    color: rgb(152, 152, 152);
}


.hello-info_m1{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    padding: 0px 40px;
    padding-top: 65px;
}

.limits-info {
    background: rgba(0, 128, 255, 0.15);
    border: 2px solid #0080ff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #7fb3ff;
}

.limits-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid #ffc107;
    color: #ffc107;
}

.error-list {
    background: rgba(204, 3, 93, 0.15);
    border: 2px solid #cc035d;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    color: #e91e63;
    list-style: none;
}

.success-message {
    background: rgba(88, 204, 3, 0.15);
    border: 2px solid var(--global-green);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    color: var(--global-green);
}

/* Формы авторизации */
.auth-container {
    width: 440px;
    margin: 100px 20px;
    padding: 40px;
    background: #ffffff0d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    
}

.auth-title {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #e3e3e3;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #555;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #333;
    color: #e3e3e3;
}

.form-group input:focus {
    outline: none;
    border-color: var(--global-green);
    box-shadow: 0 0 0 3px rgba(88, 204, 3, 0.2);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #cc035d;
}

/* Weekly Limits Styles */
.weekly-limits-card {
    background: linear-gradient(135deg, #606060 0%, #f4036b 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.limits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.limits-header h3 {
    color: white;
    margin: 0;
}

.reset-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.limits-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.limits-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.user-balance {
    display: flex;
    gap: 5px;
}

.limits-stats .stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.limits-stats .stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.limits-progress {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.limits-progress .progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.limits-warning-message {
    background: rgba(255, 193, 7, 0.2);

    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
}

.limits-warning-message strong {
    color: #ffc107;
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar.small {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--global-green);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-bar .progress-fill {
    background: linear-gradient(90deg, var(--global-green), var(--collor-border));
}

.weekly-limits-card .progress-fill {
    background: linear-gradient(90deg, #ffd700, #ffa000);
}

/* Lesson Limit Styles */
.limit-progress {
    margin-top: 10px;
}

.limit-progress .progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

/* Стили для новой статистики */
.stat-card.planned {
    /* background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); */
    color: white;
}

.lesson-meta-small {
    display: flex;
    gap: 30px;
}


.stat-card.planned:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.stat-card.tomorrow {
    /* background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); */
    color: #333;
}

.stat-card.tomorrow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(168, 237, 234, 0.3);
}

.stat-subtext {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
    font-weight: 400;
}

/* Стили для блока времени в сайдбаре */
.time-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.time-info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.time-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.time-info-label {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 4px;
}

.time-info-value {
    font-weight: 600;
    font-size: 16px;
    color: rgb(0, 0, 0);
}

.time-info-subtext {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 2px;
}

/* Стили для предупреждения о времени */
.time-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        background: rgba(255, 152, 0, 0.1);
    }
    50% {
        background: rgba(255, 152, 0, 0.15);
    }
    100% {
        background: rgba(255, 152, 0, 0.1);
    }
}

.time-warning svg {
    flex-shrink: 0;
}

/* Стили для времени в мета-информации задачи */
.time-estimate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(100, 100, 100, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    margin-right: 8px;
}

.time-actual {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #4caf50;
    margin-right: 8px;
}

/* Обновление для day-progress с временем */
.day-progress {
    font-size: 14px;
    color: #666;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .stat-card.planned,
    .stat-card.tomorrow {
        grid-column: span 2;
    }
    
    .time-warning {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .time-info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .time-info-label {
        margin-bottom: 0;
    }
    
    .time-info-subtext {
        display: none;
    }
}

a.tag-item {
    background: #7fbeff;
    padding: 5px 10px;
    border-radius: 20px;
    color: black;
}

.tag-list {
    gap: 8px;
    display: flex;
}

.limit-warning {
    color: #ffc107;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .limits-stats {
        grid-template-columns: 1fr;
    }
    
    .limits-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.auth-btn {
    background-color: var(--global-green);
    padding: 12px;
    border: none;
    
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

.auth-btn:hover {
    background-color: #61e106;
    border-bottom-color: #57c10c;
    transform: translateY(-2px);
}

.auth-btn:active {
    transform: translateY(1px);
    border-bottom-width: 3px;
}

.auth-after {
    display: flex;
    /* padding: 10px; */
    gap: 10px;
    padding-bottom: 10px;
}

a.yandex.oauth-btn {
    background: linear-gradient(63deg, rgb(255 0 44) 0%, rgb(175 0 14) 100%);
}

a.telegram.oauth-btn {
    background: linear-gradient(63deg, rgb(0 133 255) 0%, rgb(0 246 255) 100%);
}

.info-time-and-go {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Level System Styles — layout по референсу */
.level-progress-section {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #ffffff0d;
    
    border-radius: 20px;
    padding: 24px 28px;
    margin: 24px 0;
}

.level-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.level-hexagon {
    width: 72px;
    height: 72px;
    background: #ffc107;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-num {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.level-label {
    font-size: 14px;
    color: #a0a0a0;
}

.level-center {
    flex: 1;
    min-width: 0;
}

.level-exp-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.level-progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.level-progress-fill {
    height: 100%;
    background: #00e676;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.next-level-reward {
    font-size: 14px;
    color: #fff;
}

.next-level-reward .gcoin-reward {
    color: #ffc107;
}

.next-level-reward .fa-gg-circle {
    margin-left: 4px;
    color: #ffc107;
}

.level-right {
    text-align: right;
    flex-shrink: 0;
}

.level-next-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.level-rank {
    font-size: 13px;
    color: #a0a0a0;
    margin-bottom: 4px;
}

.level-to-next {
    font-size: 13px;
    color: #a0a0a0;
}

.level-percent {
    margin-left: 4px;
    font-weight: 600;
    color: #fff;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.level-badge {
    background: #FFC107;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Quiz Styles */
.quiz-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.gx-w-banner{
    padding: 35px;
    height: 120px;

}

.quiz-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.quiz-title h1 {
    margin: 0 0 10px 0;
    font-size: 2em;
}

.quiz-info {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    font-size: 0.9em;
    opacity: 0.8;
}

.info-item .value {
    font-size: 1.1em;
    font-weight: bold;
}

.info-item.warning .value {
    color: #ffd700;
}

/* Question Cards */
.question-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.question-header h3 {
    margin: 0;
    color: #2c3e50;
}

/* Lesson Limit Message Styles */
.lesson-limit-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.limit-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.limit-content h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.5rem;
}

.limit-content p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.limit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.limit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.limit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.limit-btn.secondary {
    background: transparent;
}

/* Weekly Limits Card when limit reached */


.limits-warning-message {
    background: rgba(255, 255, 255, 0.2);

    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
    color: white;
}

.limits-warning-message strong {
    color: white;
}

/* No Lessons Message */
.no-lessons-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 30px 0;
}

.no-lessons-message h3 {
    color: #787878;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .lesson-limit-message {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .limit-actions {
        justify-content: center;
    }
    
    .limit-icon {
        font-size: 2.5rem;
    }
}


/* Locked Categories and Lessons */
.category-locked {
    opacity: 0.7;
    position: relative;
}

.category-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: white;
    text-align: center;
    padding: 20px;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: #e9ecef;
}

/* Или просто две отдельные кнопки */
.action-btn.orange {
    background: #ff9800;
    border-color: #f57c00;
    color: white;
}

.action-btn.orange:hover {
    background: #f57c00;
    border-color: #e65100;
}

.action-btn.yellow {
    background: #ffc107;
    border-color: #ffb300;
    color: #212529;
}

.action-btn.yellow:hover {
    background: #ffb300;
    border-color: #ffa000;
}

/* Стили для просроченных задач */
.task-card.overdue {
    border-left: 4px solid #dc3545;
    background: linear-gradient(90deg, #fff8f8, #fff);
    position: relative;
}

.task-card.overdue::before {
    content: "⏰ Не выполненно";
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-card.overdue .task-actions {
    opacity: 0.9;
}

.task-card.overdue .task-actions .action-btn:not(.danger) {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.task-card.overdue .task-actions .action-btn:not(.danger):hover {
    background: #f1b0b7;
}

/* Скрываем ненужные кнопки для просроченных через CSS на всякий случай */
.task-card.overdue .action-btn[title="Редактировать"],
.task-card.overdue .action-btn[title="Завершить задачу"],
.task-card.overdue .action-btn[title="Пропустить задачу"] {
    display: none !important;
}


/* VIP Status Card */
.vip-status-card {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.vip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vip-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.vip-content h3 {
    color: #000;
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.vip-content p {
    margin: 0;
    opacity: 0.8;
    font-weight: 500;
}

.vip-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 1.2rem;
}

/* Premium Tag Unlocked */
.premium-tag.unlocked {
    background: #FFD700;
    color: #000;
}

/* Small Unlock Button */
.unlock-btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 10px;
    width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-header {
        flex-direction: column;
        text-align: center;
    }
    
    .vip-benefits {
        grid-template-columns: 1fr;
    }
}

.lock-content .lock-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stop-block{
    width: 50px;
    height: 50px;
}

/* Blur only when limit is reached (not for premium locks) */
.category-locked:not(.premium-category-locked) .category-header,
.category-locked:not(.premium-category-locked) .category-progress,
.category-locked:not(.premium-category-locked) .category-actions {
    filter: blur(2px);
}

.lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lock-content h4 {
    color: white;
    margin-bottom: 10px;
}

.lock-content p {
    margin: 5px 0;
    opacity: 0.9;
}

.lesson-locked {
    opacity: 0.7;
    position: relative;
}

.category-btn.disabled,
.start-lesson-btn.disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Limit Notice */
.limit-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    color: #856404;
}

.limit-notice .notice-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.limit-notice .notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Hover effects for locked items */
.category-locked:hover {
    transform: none;
    cursor: not-allowed;
}

.lesson-locked:hover {
    transform: none;
    cursor: not-allowed;
}

.points {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

.question-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Answers */
.answers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.answer-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.answer-text {
    font-size: 1em;
    line-height: 1.4;
}

/* Quiz Actions */
.quiz-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.submit-quiz-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.cancel-quiz-btn {
    background: #95a5a6;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.cancel-quiz-btn:hover {
    background: #7f8c8d;
}

/* Quiz Results */
.quiz-result-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-result-container {
    text-align: center;
}

.result-success, .result-failure {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.result-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.result-success h1 {
    color: #27ae60;
    margin-bottom: 15px;
}

.result-failure h1 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.result-message {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #7f8c8d;
}

/* Score Display */
.score-display {
    margin: 30px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.score-circle.failure {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.score-value {
    color: white;
    font-size: 2em;
    font-weight: bold;
}

.score-label {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Course Completed Info */
.course-completed-info, .retry-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.course-completed-info h3, .retry-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Limits Info */
.limits-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vip-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #27ae60;
    font-weight: bold;
}

.vip-badge {
    background: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.weekly-limits h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.limits-progress {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.limits-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #7f8c8d;
}

.limits-warning {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 10px;
}

.limits-warning a {
    color: #e74c3c;
    font-weight: bold;
}

/* Limits Exceeded Page */
.limits-exceeded-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.limits-exceeded-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.limits-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.limits-message {
    font-size: 1.3em;
    color: #e74c3c;
    margin-bottom: 30px;
}

.limits-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.premium-offer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.premium-benefits {
    text-align: left;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.premium-benefits li {
    padding: 8px 0;
    font-size: 1.1em;
}

.btn-premium {
    background: #f39c12;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quiz-actions, .result-actions {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

.level-stats {
    text-align: right;
}

.exp-text {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.rank-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.level-progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
}

.level-progress-fill {
    height: 100%;
    background: var(--global-green);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.level-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.level-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .level-stats {
        text-align: left;
    }
    
    .level-progress-section {
        padding: 15px;
    }
}

span.duration1 {
    display: flex;
    gap: 5px;
    align-items: center;
}

.categories-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 3px solid #00d4ff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Основные колонки */
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    animation: fadeInUp 0.6s ease-out;
}

.footer-title {
    color: #00d4ff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.footer-column:hover .footer-title::after {
    width: 50px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: -15px;
    color: #00d4ff;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Социальные сети и язык */
.footer-social-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #2d3748;
    border-bottom: 1px solid #2d3748;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #b0b0b0;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #2d3748;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* Нижняя часть */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 15px;
}

.security-badge,
.ssl-badge {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
    
    .footer-social-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Balance & Payment Styles */
.balance-wrapper, .payment-wrapper, .vip-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}



.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}



.vip-status-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.vip-status-badge .expires {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Deposit Form */
.deposit-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.amount-selector {
    margin-bottom: 25px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.amount-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

#amount {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.2em;
    text-align: center;
}

.deposit-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

/* Quick Deposit */
.quick-deposit {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quick-amounts {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.quick-form {
    flex: 1;
}

.quick-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #2980b9;
}

/* History */
.history-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.history-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.history-item:last-child {
    border-bottom: none;
}

.item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #7f8c8d;
}

.item-amount.completed {
    color: #27ae60;
    font-weight: bold;
}

.item-amount.pending {
    color: #f39c12;
}

.item-amount.failed {
    color: #e74c3c;
}

.status-completed { color: #27ae60; }
.status-pending { color: #f39c12; }
.status-failed { color: #e74c3c; }
.status-cancelled { color: #95a5a6; }

/* Payment Page */
.payment-header {
    text-align: center;
    margin-bottom: 25px;
}

.payment-amount {
    font-size: 3em;
    font-weight: bold;
    color: #27ae60;
    margin: 15px 0;
}

.payment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.payment-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.payment-security {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* VIP Plans */
.vip-plans {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.plan-card {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
}

.plan-card input[type="radio"] {
    display: none;
}

.plan-card input[type="radio"]:checked + .plan-content {
    border-color: #27ae60;
    background: #f8fff9;
}

.plan-card.popular {
    border-color: #f39c12;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f39c12;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.plan-content {
    text-align: center;
    transition: all 0.3s ease;
}

.plan-price {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
}

.plan-savings {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 15px;
}

.plan-features {
    text-align: left;
    margin: 20px 0;
}

.plan-features span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.plan-select {
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
}

.vip-purchase-btn {
    width: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vip-purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}


.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.benefit-item p {
    color: #7f8c8d;
    line-height: 1.5;
}

/* VIP Status */
.vip-active, .vip-inactive {
    text-align: center;
    padding: 30px;
}

.vip-icon-large {
    font-size: 4em;
    margin-bottom: 20px;
}

.vip-active {
    background: linear-gradient(135deg, #fff9e6, #fff3d1);
    border-radius: 15px;
}

.vip-inactive {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.vip-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Error Messages */
.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-cards {
        grid-template-columns: 1fr;
    }
    
    .plan-card.popular {
        transform: none;
    }
    
    .quick-amounts {
        flex-direction: column;
    }
    
    .item-main, .item-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .balance-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.oauth-btn {
    /* padding: 10px; */
    background: #e8f0fe;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #787878;
}

.auth-link a {
    color: #0080ff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}


.go-start.burger-trigger:hover {
    background: #555;
}

/* Само меню */
.burger-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #2c3e50;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.burger-menu.active {
    left: 0;
}

/* Контент меню */
.burger-menu-content {
    padding: 20px;
    position: relative;
    height: 100%;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: -6px;
    right: 7px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Навигация в меню */
.burger-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.burger-nav a {
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 18px;
}

.burger-nav a:hover {
    background: #34495e;
}
.menu-01d1 {
    /* display: none; */
    display: flex;
    gap: 10px;
}

/* Затемнение фона */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0,0,0,0.5); */
    display: none;
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

.error-list {
    background-color: #ffe6e6;
    border: 2px solid #cc035d;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    list-style: none;
}

img.grand-img {
    width: 400px;
}

.hello-main-txt{
    color: #3b3b3b;
    text-align: center;
     font-size: 32px;
}



.reg-main-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}


.error-list li {
    color: #cc035d;
    font-weight: 600;
    padding: 5px 0;
}

.success-message {
    background-color: #e6ffe6;
    border: 2px solid var(--global-green);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    color: #2d6600;
    font-weight: 600;
    text-align: center;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .auth-container {

        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}



/* Дашборд */

.dashboard-container {
    max-width: 1200px;
    margin: 0px auto 10px auto;

}


.tasks-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.tasks-main {
    min-width: 0;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #ffffff0d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
}

.stat-card.total .stat-number {
    color: #2c3e50;
}

.stat-card.completed .stat-number {
    color: var(--global-green);
}

.stat-card.overdue .stat-number {
    color: #cc035d;
}

.stat-card.time .stat-number {
    color: #0080ff;
}

/* Фильтры */
.filters-panel {
    background: #ffffff0d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    
}

.filters-row {
    display: grid;
    gap: 14px;
    /* flex-wrap: wrap; */
    align-items: flex-end;
    grid-template-columns: repeat(6, 1fr);
}


.filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #a0a0a0;
    font-weight: 500;
}

.filter-select,
.filter-input {
    padding: 10px 15px;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #333;
    color: #e3e3e3;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--global-green);
}

.filter-btn {
    padding: 10px 20px;
    background: var(--global-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    border-bottom: 3px solid var(--collor-border);
}

.filter-btn:hover {
    background: #61e106;
}

.filter-btn.secondary {
    background: #6c757d;
    border-color: #545b62;
}

.filter-btn.secondary:hover {
    background: #5a6268;
}

/* Группировка по дням */
.day-group {
    margin-bottom: 40px;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.day-title {
    font-size: 22px;
    font-weight: 700;
    color: #e3e3e3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tasks-count {
    background: var(--global-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.day-stats {
    font-size: 14px;
    color: #6c757d;
}

.day-progress {
    background: #e8f5e8;
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--global-green);
    font-weight: 500;
}

.tasks-for-day {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Карточка задачи */
.task-card {
    background: #ffffff0d;
    border-radius: 12px;
    padding: 20px;
    
    border-left: 4px solid var(--global-green);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.task-card.high-priority {
    border-left-color: #cc035d;
}

.task-card.critical-priority {
    border-left-color: #ff0000;
}

.task-card.low-priority {
    border-left-color: #0080ff;
}

.task-card.completed {
    border-left-color: #787878;
    opacity: 0.7;
}

.task-card.completed:hover {
    opacity: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-title {
    font-size: 18px;
    font-weight: 600;
    color: #e3e3e3;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-card.completed .task-title s {
    color: #787878;
}

.task-icon {
    font-size: 20px;
}

.task-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.action-btn {
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #e3e3e3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #444;
    border-color: #666;
}

.action-btn.primary {
    background: var(--global-green);
    border-color: var(--collor-border);
    color: white;
}

.action-btn.primary:hover {
    background: #61e106;
    border-color: #57c10c;
}

.action-btn.danger {
    background: #cc035d;
    border-color: #8d0657;
    color: white;
}

.action-btn.danger:hover {
    background: #d90468;
    border-color: #a10766;
}

.priority-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.priority-high {
    background: #f8d7da;
    color: #721c24;
}

.priority-critical {
    background: #721c24;
    color: white;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-low {
    background: #d1ecf1;
    color: #0c5460;
}

.task-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 13px;
    color: #6c757d;
    flex-wrap: wrap;
}

.task-tag {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-due-date.overdue {
    color: #cc035d;
    font-weight: bold;
}

.checklist {
    margin-top: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.checklist-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checklist-text {
    flex: 1;
}

.checklist-text.completed {
    text-decoration: line-through;
    color: #6c757d;
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Сайдбар */
.create-task-btn {
    display: block;
    padding: 15px;
    background: var(--global-green);
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--collor-border);
    transition: background 0.2s;
}

.create-task-btn:hover {
    background: #61e106;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list,
.tag-list {
    list-style: none;
}

.category-item,
.tag-item {
    margin-bottom: 8px;
}

.category-link,
.tag-link {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: background 0.2s;
}

.category-link:hover,
.tag-link:hover {
    background: #e9ecef;
}

.category-link.active,
.tag-link.active {
    background: var(--global-green);
    color: white;
}

.quick-stats {
    font-size: 13px;
    color: #6c757d;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e3e3e3;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal- {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--global-green);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--global-green);
    color: white;
    border-bottom: 3px solid var(--collor-border);
}

.btn-primary:hover {
    background: #61e106;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border-bottom: 3px solid #545b62;
}

.btn-secondary:hover {
    background: #5a6268;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s;
}

.checkbox-label:hover {
    border-color: var(--global-green);
    background: #f8fff3;
}

.icon-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.icon-option.active {
    border-color: var(--global-green);
    background: #e8f5e8;
}

.reminder-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.reminder-option {
    padding: 8px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.reminder-option.active {
    border-color: var(--global-green);
    background: #e8f5e8;
}

/* Адаптивность */
@media (max-width: 992px) {
    .tasks-container {
        grid-template-columns: 1fr;
    }
    
    .tasks-sidebar {
        position: static;
    }
    
    .filters-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .day-title {
        font-size: 20px;
    }
}

.user-greeting h1 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 32px;
}
.user-greeting h1 .username { color: #58cc03; }
.user-greeting p {
    color: #a0a0a0;
    font-size: 16px;
}

.user-stats {
    display: flex;
    gap: 20px;
}

.user-stats .stat-card {
    text-align: center;
    padding: 10px 25px;
    background: #ffffff0d;
    border-radius: 15px;
    min-width: 100px;
    
}

.user-stats .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.user-stats .stat-label {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 600;
}

/* Сетка дашборда */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: #ffffff0d;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    
}

.dashboard-card h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Прогресс бар */
.progress-section {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--global-green), #61e106);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-info1 {
    display: flex;
    justify-content: space-between;
    color: #a0a0a0;
    font-weight: 600;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-weight: 600;
}

/* Кнопки курсов */
.course-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.course-btn {
    padding: 12px 24px;
    border-radius: 15px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.course-btn.primary {
    background: var(--global-green);
    color: white;
    
}

.course-btn.primary:hover {
    background: #61e106;
    border-bottom-color: #57c10c;
    transform: translateY(-2px);
}

.course-btn.secondary {
    background: #ffffff0d;
    color: #0080ff;
    border: 2px solid #555;
}

.course-btn.secondary:hover {
    border-color: #0080ff;
    transform: translateY(-2px);
}

/* Список активностей */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #333;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #3a3a3a;
}

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-message {
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-time {
    color: #a0a0a0;
    font-size: 12px;
}

/* Реферальная система */
.invite-code-section {
    margin-bottom: 20px;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.code-value {
    background: #333;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    border: 2px solid #444;
}

.copy-btn {
    background: #0080ff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 3px solid #0066cc;
}

.copy-btn:hover {
    background: #0066cc;
}

.referrer-info, .no-referrer {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 15px;
}

.referrer-name {
    font-weight: 700;
    color: var(--global-green);
    font-size: 18px;
    margin-top: 5px;
}

.referral-bonus {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 700;
    color: #8b6b00;
    margin-top: 10px;
    text-align: center;
}

/* Быстрые действия */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #333;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    color: #fff;
}

/* Quiz Promo Section */
.quiz-promo-section {
    margin: 40px 0;
    padding: 0 20px;
}

.quiz-promo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quiz-promo-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.quiz-icon {
    font-size: 3em;
}

.quiz-promo-title h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.quiz-promo-title p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Quiz Stats */
.quiz-promo-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.quiz-stats {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Quiz Benefits */
.quiz-benefits h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.quiz-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quiz-benefits li {
    padding: 5px 0;
    font-size: 1em;
}

/* Quiz Actions */
.quiz-promo-actions {
    text-align: center;
}

.start-quiz-btn-promo {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.start-quiz-btn-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    background: #e67e22;
}

/* Limits Warning */
.limits-warning-block {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.warning-icon {
    font-size: 2em;
}

.warning-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.warning-text p {
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.upgrade-link {
    color: #f39c12;
    font-weight: bold;
    text-decoration: none;
}

.upgrade-link:hover {
    text-decoration: underline;
}

/* Quiz Tips */
.quiz-tips {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
}

.quiz-tips p {
    margin: 0;
    opacity: 0.9;
}

/* Quiz Completed Section */
.quiz-completed-section {
    margin: 40px 0;
    padding: 0 20px;
}

.quiz-completed-card {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.completed-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.completed-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.completed-content p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.score-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.completed-actions {
    margin-top: 20px;
}

.view-result-btn {
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-result-btn:hover {
    background: white;
    color: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-promo-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quiz-stats {
        justify-content: space-between;
    }
    
    .quiz-promo-header {
        flex-direction: column;
        text-align: center;
    }
    
    .limits-warning-block {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-promo-card,
    .quiz-completed-card {
        padding: 20px;
    }
}

.quick-action:hover {
    background: var(--global-green);
    color: white;
    transform: translateY(-3px);
}

.action-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.action-text {
    font-weight: 600;
    font-size: 12px;
}

/* Следующий урок */
.next-lesson {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.next-lesson h2,
.next-lesson h3,
.next-lesson p {
    color: white;
}

.lesson-preview h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.lesson-preview p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.lesson-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.start-lesson-btn {
    display: block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.start-lesson-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Адаптивность дашборда: 1024, 768, 480, 400 */
@media (max-width: 1024px) {
    .dashboard-container { padding: 0 16px; }
    .dashboard-header { padding: 18px 16px; }
    .dashboard-grid { gap: 24px; }
    .dashboard-card { padding: 22px 20px; }
    .user-greeting h1 { font-size: 28px; }
    .level-progress-section { gap: 24px; padding: 20px 22px; }
}
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .user-stats { justify-content: center; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 20px; }
    .course-actions { flex-direction: column; }

    .stat-card { min-width: 80px; padding: 15px; }
    .stat-value { font-size: 24px; }
    .level-progress-section { flex-direction: column; text-align: center; gap: 20px; padding: 20px 16px; }
    .level-right { text-align: center; }
    .dashboard-card { padding: 20px 18px; margin-bottom: 20px; }
    .dashboard-card h2 { font-size: 18px; margin-bottom: 16px; }
    .code-display { flex-wrap: wrap; }
    .code-value { font-size: 16px; min-width: 0; }
    .info-time-and-go { flex-direction: column; align-items: stretch; gap: 12px; }
}
@media (max-width: 480px) {
    .dashboard-container { padding: 0 12px; }
    .dashboard-header { padding: 16px 12px; gap: 16px; }
    .user-greeting h1 { font-size: 22px; }
    .user-greeting p { font-size: 14px; }
    .user-stats { gap: 12px;  justify-content: center; }
    .user-stats .stat-card { min-width: 70px; padding: 12px 14px; }
    .user-stats .stat-value { font-size: 20px; }
    .user-stats .stat-label { font-size: 12px; }
    .level-progress-section { padding: 16px 12px; gap: 16px; }
    .level-hexagon { width: 56px; height: 56px; }
    .level-num { font-size: 24px; }
    .level-label { font-size: 12px; }
    .level-exp-text { font-size: 14px; }
    .level-next-title { font-size: 16px; }
    .level-rank, .level-to-next { font-size: 12px; }
    .next-level-reward { font-size: 13px; }
    .dashboard-card { padding: 16px 14px; margin-bottom: 16px; }
    .dashboard-card h2 { font-size: 16px; margin-bottom: 12px; }
    .course-btn { padding: 10px 18px; font-size: 14px; min-width: 0; }
    .quick-action { padding: 16px 12px; }
    .action-text { font-size: 11px; }
    .invite-code-section label { font-size: 13px; }
    .code-value { font-size: 14px; padding: 10px 12px; }
    .copy-btn { padding: 10px; }
}
@media (max-width: 400px) {
    .dashboard-container { padding: 0 10px; }
    .dashboard-header { padding: 12px 10px; gap: 12px; }
    .user-greeting h1 { font-size: 18px; }
    .user-greeting p { font-size: 13px; }
    .user-stats .stat-card { min-width: 60px; padding: 10px 12px; }
    .user-stats .stat-value { font-size: 18px; }
    .user-stats .stat-label { font-size: 11px; }
    .level-progress-section { padding: 14px 10px; gap: 14px; }
    .level-hexagon { width: 48px; height: 48px; }
    .level-num { font-size: 20px; }
    .level-exp-text { font-size: 13px; }
    .level-progress-bar { height: 10px; margin-bottom: 10px; }
    .dashboard-card { padding: 14px 12px; margin-bottom: 14px; }
    .dashboard-card h2 { font-size: 15px; margin-bottom: 10px; }
    .course-btn { padding: 10px 14px; font-size: 13px; }
    .quick-action { padding: 14px 10px; }
    .action-text { font-size: 10px; }
    .code-value { font-size: 13px; padding: 8px 10px; }
}

@media (max-width: 600px) {
    .menu-01d1{
        display: none;
    }
    .go-start.burger-trigger{
        display: block;
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #ffffff0d;
    border-radius: 20px;
    
}

/* Стили для системы уроков */
.courses-wrapper, .category-wrapper, .lesson-wrapper {
    padding: 80px 20px;
    background: #1a1d23;
    min-height: calc(100vh - 65px);
}

.courses-container, .category-container, .lesson-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок курсов */
.courses-header {
    background: #ffffff0d;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    
    text-align: center;
}

.courses-header h1 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 32px;
}

.courses-header p {
    color: #a0a0a0;
    margin-bottom: 20px;
}

.overall-progress {
    max-width: 500px;
    margin: 0 auto;
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: #ffffff0d;
    border-radius: 20px;
    padding: 20px;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-text{
    display: flex;
    align-items: center;
    gap: 5px;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.category-info h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 20px;
}

.category-info p {
    color: #a0a0a0;
    line-height: 1.5;
}

.category-progress {
    margin-bottom: 20px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #787878;
    font-weight: 600;
}

.progress-bar.small {
    height: 8px;
}

.category-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-btn.primary {
    background: var(--global-green);
    color: white;
    border-bottom: 4px solid var(--collor-border);
}

.category-btn.primary:hover {
    background: #61e106;
    border-bottom-color: #57c10c;
    transform: translateY(-2px);
}

.completion-badge {
    background: #e6ffe6;
    color: #2d6600;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Рекомендации */
.recommendations {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.recommendations h2 {
    color: #3b3b3b;
    margin-bottom: 20px;
    text-align: center;
}

.recommended-lessons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.recommended-lesson {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--global-green);
}

.recommended-lesson h4 {
    color: #3b3b3b;
    margin: 10px 0;
    font-size: 16px;
}

.recommended-lesson p {
    color: #787878;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Страница категории */
.category-header {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-title .category-icon {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.category-title h1 {
    color: #3b3b3b;
    margin-bottom: 8px;
    font-size: 28px;
}

.category-title p {
    color: #787878;
    margin: 0;
}

.back-btn {
    color: #0080ff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid #0080ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #0080ff;
    color: white;
}

/* Список уроков */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.lesson-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--global-green);
}

.lesson-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.lesson-card.completed {
    border-left-color: #00aaff;
    background: #f8fdff;
}

.lesson-number {
    background: var(--global-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.lesson-card.completed .lesson-number {
    background: #00aaff;
}

.lesson-content {
    flex: 1;
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
/* Стили для секции привычек в профиле */
.habits-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    margin-bottom: 30px;
    margin-top: 10px;
}

.habits-section h2 {
    color: #000000;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.habits-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 25px;
}

.habits-stat-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e0e0e0;
    transition: 0.3s ease;
}

.habits-stat-card:hover {
    border-color: var(--global-green);
    transform: translateY(-2px);
}

.habits-stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--global-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.habits-stat-content {
    flex: 1;
}

.habits-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.habits-stat-label {
    color: #787878;
    font-size: 14px;
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.habit-card-public {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 30px;
    border: 2px solid #e0e0e0;
    transition: 0.3s ease;
}
svg.habit-icon {
    width: 30px;
    height: 30px;
    color: white;
    fill: white;
}

.habit-card-public:hover {
    border-color: var(--global-green);
    transform: translateY(-2px);
}

.habit-header-public {
    display: flex;
    align-items: center;
    gap: 15px;
}

.habit-icon-public {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.habit-info-public {
    flex: 1;
}

.habit-info-public h4 {
    margin: 0 0 10px 0;
    color: #3b3b3b;
    font-size: 16px;
}

.habit-progress-public {
    margin-top: 8px;
}

.progress-bar-public {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill-public {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text-public {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #787878;
}

.view-more-habits {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    display: inline-block;
    background: var(--global-green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 3px solid var(--collor-border);
    transition: 0.3s ease;
}

.view-more-btn:hover {
    background: #61e106;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .habits-stats {
        grid-template-columns: 1fr;
    }
    
    .habits-grid {
        grid-template-columns: 1fr;
    }
    
    .habit-header-public {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--global-green);
}

.search-btn {
    padding: 12px 20px;
    background: var(--global-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #4cb302;
}

.clear-search {
    padding: 8px 12px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
}

.clear-search:hover {
    background: #ff5252;
}

.search-results-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--global-green);
}

.search-results-info h3 {
    margin: 0 0 5px 0;
    color: #2d5016;
}

.search-results-info p {
    margin: 0;
    color: #4a7c2a;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input, .search-btn {
        width: 100%;
    }
}

/* Стили для блока сообщества */
.community-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.community-stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--global-green);
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.follow-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.follow-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

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

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.user-item:hover {
    background: #f5f5f5;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-mini {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--global-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.username {

    font-weight: 500;

    color: var(--global-green);

}

.balance-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--global-green);
}

.current-balance, .required-amount {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.balance-amount {
    font-weight: 500;

}

.required-amount-value {
    font-weight: bold;
    color: #ff6b00;
}

.insufficient-balance {
    background: #ffe6e6;
    color: #d63031;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.sufficient-balance {
    background: #e8f5e8;
    color: #2d5016;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.error-message {
    background: #ffe6e6;
    color: #d63031;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #d63031;
}

.upgrade-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

.balance-topup-suggestion {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
}

.topup-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
}

.topup-btn:hover {
    background: #1976D2;
}

.payment-methods {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.no-users {
    color: #999;
    font-style: italic;
    margin: 0;
    padding: 20px;
    text-align: center;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--global-green);
    text-decoration: none;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}

.community-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn.primary {
    background: var(--global-green);
    color: white;
}

.action-btn.primary:hover {
    background: #4cb302;
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.action-btn.secondary:hover {
    background: #e9ecef;
}

/* Адаптивность */
@media (max-width: 768px) {
    .follow-sections {
        grid-template-columns: 1fr;
    }
    
    .community-actions {
        flex-direction: column;
    }
}

.community-stats {
    display: flex;
    justify-content: space-around;
    /* gap: 10px; */
}

.community-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 10px;
}

.user-balance {
    background: var(--global-green);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lesson-header h3 {
    color: #3b3b3b;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    color: rgb(151, 151, 151);
}

.coin-loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 20px;
    perspective: 800px;
}

.coin-front, .coin-back {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.coin-front {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B7500;
    transform: rotateY(0deg);
}

.coin-back {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
    color: #696969;
    transform: rotateY(180deg);
}

.coin-loader {
    animation: coin-rotate 2s infinite ease-in-out;
}

@keyframes coin-rotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.loader-container p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.lesson-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.lesson-meta span {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.duration {
    background: #e6f7ff;
    color: #0080ff;
}

.difficulty.beginner {
    background: #e6ffe6;
    color: #2d6600;
}

.difficulty.intermediate {
    background: #fff9e6;
    color: #8a6d00;
}

.difficulty.advanced {
    background: #ffe6e6;
    color: #cc0000;
}

.completed-badge {
    background: #e6ffe6;
    color: #2d6600;
}

.lesson-excerpt {
    color: #787878;
    margin-bottom: 15px;
    line-height: 1.5;
}

.lesson-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lesson-btn.start {
    background: var(--global-green);
    color: white;
    border-bottom: 3px solid var(--collor-border);
}

.lesson-btn.start:hover {
    background: #61e106;
    border-bottom-color: #57c10c;
    transform: translateY(-2px);
}

.lesson-btn.review {
    background: #0080ff;
    color: white;
    border-bottom: 3px solid #0066cc;
}

.lesson-btn.review:hover {
    background: #0066cc;
    border-bottom-color: #0052a3;
    transform: translateY(-2px);
}

/* Статистика категории */
.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-item .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #414141;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

/* Страница урока */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.nav-back {
    color: #0080ff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid #0080ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-back:hover {
    background: #0080ff;
    color: white;
}

.lesson-progress {
    background: #e6ffe6;
    color: #2d6600;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 600;
}

.lesson-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.lesson-category {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lesson-header h1 {
    color: #3b3b3b;
    margin-bottom: 15px;
    font-size: 32px;
    line-height: 1.3;
}

.lesson-header .lesson-meta {
    justify-content: center;
}

.lesson-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    line-height: 1.7;
    font-size: 16px;
}

.lesson-content h2 {
    color: #3b3b3b;
    margin: 30px 0 15px 0;
    font-size: 24px;
}

.lesson-content h3 {
    color: #3b3b3b;
    margin: 25px 0 12px 0;
    font-size: 20px;
}

.lesson-content p {
    margin-bottom: 15px;
    color: #444;
}

.lesson-content ul, .lesson-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.lesson-content li {
    margin-bottom: 8px;
    color: #444;
}

.lesson-content strong {
    color: #3b3b3b;
}

.lesson-actions {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.completion-message h3 {
    color: var(--global-green);
    margin-bottom: 10px;
    font-size: 24px;
}

.completion-message p {
    color: #787878;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.next-lesson-btn, .back-to-category-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.next-lesson-btn {
    background: var(--global-green);
    color: white;
    border-bottom: 4px solid var(--collor-border);
}

.next-lesson-btn:hover {
    background: #61e106;
    border-bottom-color: #57c10c;
    transform: translateY(-2px);
}

.back-to-category-btn {
    background: white;
    color: #0080ff;
    border: 3px solid #787878;
}

.back-to-category-btn:hover {
    border-color: #0080ff;
    transform: translateY(-2px);
}

.lesson-navigation-bottom {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.nav-section h4 {
    color: #3b3b3b;
    margin-bottom: 15px;
}

.next-preview {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #3b3b3b;
    transition: background 0.3s ease;
}

.next-preview:hover {
    background: #e9ecef;
}

.next-preview strong {
    color: #0080ff;
    display: block;
    margin-bottom: 5px;
}

.course-completed {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--global-green), #61e106);
    color: white;
    border-radius: 15px;
}

.course-completed strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.back-to-courses-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-courses-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .category-title {
        flex-direction: column;
        text-align: center;
    }
    
    .lesson-header {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }
    
    .lesson-meta {
        justify-content: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .category-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lesson-content {
        padding: 25px 20px;
    }
    
    .lesson-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .lesson-number {
        align-self: flex-start;
    }
}


.profile-container, .profiles-container, .edit-profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка профиля */
.profile-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.rate-limited {
    opacity: 0.6;
    cursor: not-allowed;
}

.rate-limit-message {
    font-size: 12px;
    color: #ff9500;
    margin-top: 5px;
    text-align: center;
}

.follow-btn:disabled,
.unfollow-btn:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}
.rate-limit-notification.show {
    transform: translateX(0) !important;

}

.rate-limit-notification {
    top: 20px;
    right: 415px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    z-index: 10000;
    transform: translateX(400px);

    transition: all 0.3s ease;
    max-width: 400px;
    position: absolute;
}

.rate-limit-notification.show {
    opacity: 1 !important;
    
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 5px;
    font-size: 16px;
}

.notification-message {
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #856404;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.notification-close:hover {
    background: rgba(133, 100, 4, 0.1);
}

/* Анимация счетчика */
#countdown {
    font-weight: bold;
    color: #ff6b00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Стили для заблокированных кнопок */
.btn-rate-limited {
    position: relative;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-rate-limited::after {
    content: '⏳';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--global-green);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    border: 4px solid currentColor;
}

.profile-info {
    flex: 1;
}

.profile-main h1 {
    color: #3b3b3b;
    margin-bottom: 8px;
    font-size: 32px;
}

.profile-rank {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.profile-bio {
    color: #787878;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.profile-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    color: #787878;
    font-size: 14px;
}

.meta-item a {
    color: #0080ff;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.profile-actions {
    flex-shrink: 0;
}

.edit-profile-btn {
    background: #0080ff;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid #0066cc;
}

.edit-profile-btn:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

/* Статистика профиля */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.left-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-stats-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.achievements-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
}

.avatar-placeholder-large {
    background: #787878;
    width: 36px;
    /* height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
}

.bio-user-info {
    margin-top: 10px;
    color: #4a4a4a;
    font-style: italic;
    max-width: 500px;
}

.profile-basic-info {
    display: flex;
    gap: 20px;
}

.avatar-large {
    display: flex;
    gap: 10px;
}

.profile-stats-grid .stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--global-green);
}

.profile-stats-grid .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--global-green);
    margin-bottom: 8px;
}

.profile-stats-grid .stat-label {
    color: #787878;
    font-size: 14px;
    font-weight: 600;
}

/* Контент профиля */
.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.profile-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.profile-section h2 {
    color: #3b3b3b;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Достижения */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.achievement-card {
    border-left: 4px solid;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateX(5px);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.achievement-info h4 {
    color: #3b3b3b;
    margin-bottom: 5px;
    font-size: 16px;
}

.achievement-info p {
    color: #787878;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.achievement-info small {
    color: #999;
    font-size: 12px;
}

/* Последние уроки */
.recent-lessons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-habits {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-habits-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-habits h3 {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 18px;
}

.empty-habits p {
    color: #8a94a6;
    font-size: 14px;
    margin: 0;
}

.recent-lesson {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid var(--global-green);
}

.lesson-title {
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.search-btn{
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-users {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 200px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.online-users h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
}

.delete-message-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.delete-message-btn:hover {
    opacity: 1;
    background: #ffebee;
}

.moderator-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.moderator-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.ban-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ban-btn:hover {
    opacity: 1;
    background: #fff3cd;
}

.ban-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10000;
}

.ban-duration-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ban-duration-btn:hover {
    background: #f8f9fa;
}

.message {
    transition: all 0.3s ease;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: var(--global-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.lesson-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #787878;
}

/* Рефералы */
.referrals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.referral-item:hover {
    background: #e9ecef;
}

.referral-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--global-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.referral-info {
    flex: 1;
}

.referral-name {
    color: #3b3b3b;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.referral-name:hover {
    color: #0080ff;
}

.referral-date {
    font-size: 12px;
    color: #787878;
}

/* Инвайт-код в профиле */
.invite-code-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.invite-code-profile code {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--global-green);
    flex: 1;
    border: 2px solid #e0e0e0;
}

.copy-btn-small {
    background: #0080ff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 2px solid #0066cc;
}

.copy-btn-small:hover {
    background: #0066cc;
}

.invite-hint {
    font-size: 14px;
    color: #787878;
    text-align: center;
}

/* Пустые состояния */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #a0a0a0;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #e3e3e3;
}

.primary-btn {
    display: inline-block;
    background: var(--global-green);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    border-bottom: 4px solid var(--collor-border);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: #61e106;
    transform: translateY(-2px);
}

/* Страница всех профилей */
.profiles-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.profiles-header h1 {
    color: #3b3b3b;
    margin-bottom: 10px;
    font-size: 32px;
}

.profiles-header p {
    color: #787878;
    font-size: 16px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.user-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--global-green);
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.user-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.user-info h3 {
    margin-bottom: 5px;
}

.user-info h3 a {
    color: #3b3b3b;
    text-decoration: none;
}

.user-info h3 a:hover {
    color: #0080ff;
}

.user-rank {
    font-size: 14px;
    font-weight: 600;
}

.user-stats {
    display: flex;
    justify-content: space-around;

}

.user-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--global-green);
}

.stat-label {
    font-size: 12px;
    color: #787878;
}

.view-profile-btn {
    display: block;
    text-align: center;
    background: #f8f9fa;
    color: #0080ff;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}
.about-container .particle:nth-child(1) {
    top: -100px;
    right: -50px;
}
.about-container .particle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(88, 204, 3, 0.05);
    filter: blur(60px);
}
.view-profile-btn:hover {
    background: #0080ff;
    color: white;
    border-color: #0080ff;
}

/* Редактирование профиля */
.edit-profile-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #3b3b3b;
    margin-bottom: 20px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e3e3e3;
    font-weight: 600;
}

.go-start.burger-trigger {
    display: none;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #333;
    color: #e3e3e3;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--global-green);
    box-shadow: 0 0 0 3px rgba(88, 204, 3, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Чекбоксы */
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #3b3b3b;
}

.checkbox-label input {
    margin-right: 10px;
}

.checkbox-help {
    margin-top: 5px;
    font-size: 14px;
    color: #787878;
    margin-left: 25px;
}

/* Кнопки формы */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.save-btn {
    background: var(--global-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--collor-border);
}

.save-btn:hover {
    background: #61e106;
    transform: translateY(-2px);
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    background: white;
    padding: 5px;
    border-radius: 3px;
}

.cancel-btn {
    background: white;
    color: #787878;
    border: 2px solid #787878;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    border-color: #cc035d;
    color: #cc035d;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для страницы ачивок */
.achievements-wrapper {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 65px);
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок ачивок */
.achievements-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.achievements-header h1 {
    color: #3b3b3b;
    margin-bottom: 10px;
    font-size: 32px;
}

.achievements-header p {
    color: #787878;
    margin-bottom: 25px;
    font-size: 16px;
}

.achievements-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.achievement-stat {
    text-align: center;
    padding: 20px;
    min-width: 120px;
}

.achievement-stat .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--global-green);
    margin-bottom: 8px;
}

.achievement-stat .stat-label {
    color: #787878;
    font-size: 14px;
    font-weight: 600;
}

/* Категории ачивок */
.progress-category {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.progress-category h3 {
    color: #3b3b3b;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Сетка ачивок */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Карточки ачивок */
.achievement-card {
    border-left: 4px solid;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.achievement-card.earned {
    border-color: var(--global-green);
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
}

.achievement-card.locked {
    border-color: #ccc;
    background: #f8f9fa;
    opacity: 0.7;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    color: #3b3b3b;
    margin-bottom: 8px;
    font-size: 18px;
}

.achievement-info p {
    color: #787878;
    margin-bottom: 12px;
    line-height: 1.4;
}

.achievement-progress {
    margin-top: 10px;
}

.progress-complete {
    color: var(--global-green);
    font-weight: 600;
    font-size: 14px;
}

.achievement-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.achievement-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--global-green), #61e106);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.achievement-progress span {
    font-size: 12px;
    color: #787878;
    font-weight: 600;
}

/* Таймлайн последних ачивок */
.recent-achievements {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.recent-achievements h2 {
    color: #3b3b3b;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.achievements-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid var(--global-green);
}

.timeline-date {
    flex-shrink: 0;
    width: 80px;
    color: #787878;
    font-size: 12px;
    font-weight: 600;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.achievement-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.timeline-content strong {
    color: #3b3b3b;
    display: block;
    margin-bottom: 4px;
}

.timeline-content p {
    color: #787878;
    font-size: 14px;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-stats {
        gap: 15px;
    }
    
    .achievement-stat {
        min-width: 100px;
        padding: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timeline-date {
        width: auto;
    }
}


/* Premium Styles */
.premium-teaser {
    background: linear-gradient(135deg, #FFD70010, #FFD70020);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
}

.premium-teaser-content {
    position: relative;
    z-index: 2;
}

.premium-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.premium-teaser h2 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 24px;
}

.premium-features-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.premium-features-list span {
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #FFD700;
    color: #FFD700;
    font-size: 14px;
}

.premium-teaser-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000 !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.premium-teaser-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Premium Card Styles */
.category-card.premium {
    position: relative;
    background: linear-gradient(135deg, #FFD70010, #FFD70005) !important;
    border: 2px solid #FFD700 !important;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Premium Required Page */
.premium-required-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.premium-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #FFD700;
}

.premium-features {
    margin: 30px 0;
    text-align: left;
}

.premium-features h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.premium-features ul {
    list-style: none;
    padding: 0;
}

.premium-features li {
    padding: 8px 0;
    font-size: 16px;
}

.premium-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.premium-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.premium-btn.primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.premium-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Upgrade Page */
.upgrade-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 40px;
}

.premium-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
}

.pricing-plans {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #ddd;
    max-width: 400px;
    width: 100%;
}

.pricing-card.premium {
    border-color: #FFD700;
    transform: scale(1.05);
    position: relative;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.plan-header h3 {
    color: #333;
    margin-bottom: 10px;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
}

.price span {
    font-size: 16px;
    color: #666;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 8px 0;
    font-size: 16px;
}

.upgrade-form {
    text-align: center;
}

.upgrade-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.guarantee {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Success Page */
.success-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.success-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #4CAF50;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.success-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.success-btn.primary {
    background: #4CAF50;
    color: white;
}

.success-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.go-adm{
    background: linear-gradient(135deg, #ffa404, #ff1500);
    color: white;
    border-radius: 12px;
    padding: 8px 16px;
    margin: 0 5px;
    border-bottom: 5px solid #e03d00;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .premium-features-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .premium-actions,
    .success-actions {
        flex-direction: column;
    }
    
    .pricing-card.premium {
        transform: none;
    }
}

/* Premium Locked Styles */
.premium-category-locked {
    position: relative;
    opacity: 0.7;
    filter: grayscale(0.3);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
}

.premium-categories-section {
  padding-bottom: 25px;
}

.premium-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 10;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #FFD700;
}

.lock-text {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.lock-text h4 {
    margin-bottom: 10px;
    color: #FFD700;
}

.unlock-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.premium-badge-locked {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 5;
}

/* Для VIP пользователей */
.premium-category-unlocked {
    border: 2px solid #FFD700 !important;
    background: linear-gradient(135deg, #FFD70010, #FFD70005) !important;
}

.premium-badge-unlocked {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Стили для системы подписок */
.follow-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.follow-stat {
    text-align: center;
}

.follow-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--global-green);
}

.follow-label {
    font-size: 12px;
    color: #787878;
}

.follow-actions {
    margin-top: 15px;
}

.follow-form {
    display: inline-block;
}

.follow-btn, .unfollow-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.follow-btn {
    background: var(--global-green);
    color: white;
}

.follow-btn:hover {
    background: var(--collor-border);
}

.unfollow-btn {
    background: #cc035d;
    color: white;
}

.unfollow-btn:hover {
    background: #a8044a;
}


@media (max-width: 600px) {
    .go-start.burger-trigger {
        display: block;
    }
    .stats-grid{
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


@media (max-width: 500px) {
    .hello-info_m1{
        display: block;
    }
    .img-hello {
        align-items: center;
        display: flex;
        justify-content: center;
    }
    img.grand-img {
    width: 300px;
    }
    .hello-info_m1text h2 {
    font-size: 30px;
    }
    .hello-info_m1{
        padding: 1p 15px;
    }
    .hello-main-txt{
        font-size: 24px;
    }
    .top-bar-logo{
        width: 170px;
    }
}

/* ========== ABOUT / MAIN PAGE — dark theme ========== */

.about-container { overflow-x: hidden; }

.page-about .hello-reg_top-bar-wrapper {
    background-color: #1a1d23;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.page-about .hello-reg_top-bar-block-left .go-start:not(.burger-trigger) {
    background-color: #58cc03;
    border-bottom-color: #4eaf08;
    color: #fff;
}
.page-about .hello-reg_top-bar-block-left .go-start:not(.burger-trigger):hover {
    background-color: #61e106;
}
.page-about .hello-reg_top-bar-block-left .aut-btn {
    background-color: transparent;
    border-color: #787878;
    color: #c8c8c8;
}
.page-about .hello-reg_top-bar-block-left .aut-btn:hover {
    border-color: #58cc03;
    color: #58cc03;
}
.page-about .user-balance { color: #e3e3e3; }
.page-about .user-balance .balance-amount { color: #ffc107; }
.page-about .go-start.burger-trigger {
    background-color: #333;
    border-color: #444;
}
.page-about .go-start.burger-trigger:hover { background-color: #444; }

.auth-social {
    display: grid;
    /* width: 100%; */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 100px;
}
.hero-content { flex: 1; max-width: 450px; }
.main-title {
    font-size: 75px;
    font-weight: 800;
    /* margin-bottom: 20px; */
    letter-spacing: -0.5px;
    display: flex;
}
.logo-text{color: #fff; }
.logo-gradient { color: #58cc03; }
.hero-tagline {
    font-size: 30px;
    line-height: 1.5;
    color: #e3e3e3;
    margin-bottom: 16px;
    width: 460px;
}
.hero-tagline .highlight {
    padding: 5px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(72, 155, 42, 1) 0%, rgba(0, 0, 0, 1) 100%);
}
.hero-description {
    font-size: 16px;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 32px;
}
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #58cc03;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    
    transition: all 0.2s;
}
.cta-primary:hover {
    background: #61e106;
    color: #fff;
    transform: translateY(-1px);
}
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    color: #e3e3e3;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid #444;
    transition: all 0.2s;
}
.cta-secondary:hover {
    background: #363b44;
    color: #fff;
    border-color: #555;
}
.hero-visual {
    flex: 1;
    max-width: 480px;
    position: relative;
    min-height: 280px;
}
.hero-visual canvas {
    width: 100%;
    min-width: 320px;
    height: 280px;
    display: block;
}
.floating-elements {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}
.float-item {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.float-item.coin { top: 10%; left: 5%; background: #fff; color: #333; }
.float-item.chart { top: 20%; right: 15%; background: #ffc107; color: #333; }
.float-item.book { top: 55%; left: 20%; background: #58cc03; color: #fff; }
.float-item.users { top: 50%; right: 10%; background: #0080ff; color: #fff; }

.mission-section, .features-section, .steps-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.section-subtitle { font-size: 18px; color: #a0a0a0; margin-bottom: 16px; }
.section-divider {
    width: 80px;
    height: 4px;
    background: #58cc03;
    margin: 0 auto;
    border-radius: 2px;
}
.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mission-card {
    background: #ffffff0d;
    
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: border-color 0.2s;
}
.mission-card:hover { border-color: #58cc03; }
.mission-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(88, 204, 3, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #58cc03;
}
.mission-card h3 { font-size: 20px; color: #fff; margin-bottom: 12px; }
.mission-card p { font-size: 15px; color: #a0a0a0; line-height: 1.5; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    background: #ffffff0d;
    
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s;
}
.feature-item:hover { border-color: #58cc03; }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.feature-icon.tool { background: rgba(88, 204, 3, 0.2); color: #58cc03; }
.feature-icon.community { background: rgba(0, 128, 255, 0.2); color: #0080ff; }
.feature-icon.security { background: rgba(255, 149, 0, 0.2); color: #ff9500; }
.feature-icon.gaming { background: rgba(204, 3, 93, 0.2); color: #cc035d; }
.feature-item h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: #a0a0a0; line-height: 1.5; margin-bottom: 12px; }
.feature-stats { font-size: 13px; color: #58cc03; }
.feature-stats .stat { display: inline-flex; align-items: center; gap: 6px; }

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.step-number {
    width: 56px;
    height: 56px;
    background: #58cc03;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.step-content { max-width: 280px; }
.step-content h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.step-content p { font-size: 15px; color: #a0a0a0; line-height: 1.5; margin-bottom: 12px; }
.step-icon { font-size: 32px; color: #58cc03; }

.final-cta { position: relative; padding: 80px 24px; overflow: hidden; }
.cta-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e2330 0%, #1a1d23 100%);
}
.cta-background .particle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(88, 204, 3, 0.05);
    filter: blur(60px);
}
.cta-background .particle:nth-child(1) { top: -100px; right: -50px; }
.cta-background .particle:nth-child(2) { bottom: -80px; left: -80px; }
.cta-background .particle:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cta-content { position: relative; max-width: 600px; margin: 0 auto; text-align: center; }
.cta-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-subtitle { font-size: 18px; color: #a0a0a0; margin-bottom: 24px; }
.users-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.users-avatars .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1a1d23;
    overflow: hidden;
}
.users-avatars .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-text { font-size: 14px; color: #a0a0a0; }
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #58cc03;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    
    transition: all 0.2s;
}
.cta-button:hover {
    background: #61e106;
    color: #fff;
    transform: translateY(-2px);
}
.cta-bonus { margin-top: 24px; }
.bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(88, 204, 3, 0.15);
    color: #58cc03;
    font-weight: 600;
    border-radius: 20px;
}

/* Нижнее мобильное меню */
.bottom-nav-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 10px;
    right: 0;
    border-radius: 20px;
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(26, 29, 35, 0.75);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    isolation: isolate;
    transform: translateZ(0);
}

.bottom-nav-mobile-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: 100%;
    padding: 8px 4px 10px;
    gap: 4px;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 6px 4px 4px;
    text-decoration: none;
    color: #a0a0a0;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
    position: relative;
}
.bottom-nav-item:hover {
    color: #e3e3e3;
}
.bottom-nav-item.active {
    color: #58cc03;
}
.bottom-nav-item.active .bottom-nav-icon {
    color: #58cc03;
}
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #58cc03;
    border-radius: 2px;
}
.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    color: #a0a0a0;
    transition: color 0.2s;
}
.bottom-nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.bottom-nav-item.active .bottom-nav-icon {
    color: #58cc03;
}
.bottom-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (min-width: 769px) {
    .bottom-nav-mobile { display: none !important; }
}
@media (max-width: 768px) {
    .bottom-nav-mobile { display: block; }
    main.page-container { padding-bottom: 72px; }
    main.page-container.has-bottom-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
}
@media (max-width: 480px) {
    .bottom-nav-mobile { margin: 8px; border-radius: 16px; }
    .bottom-nav-mobile-inner { padding: 6px 2px 8px; }
    .bottom-nav-item { padding: 4px 2px 2px; font-size: 10px; }
    .bottom-nav-icon { width: 22px; height: 22px; margin-bottom: 1px; }
    .bottom-nav-item.active::before { width: 16px; height: 2px; top: 2px; }
    main.page-container { padding-bottom: 64px; }
}
@media (max-width: 400px) {
    .bottom-nav-mobile { margin: 6px; border-radius: 14px; }
    .bottom-nav-mobile-inner { padding: 5px 2px 6px; gap: 2px; }
    .bottom-nav-item { padding: 4px 2px 2px; font-size: 9px; }
    .bottom-nav-icon { width: 20px; height: 20px; }
    .bottom-nav-item.active::before { width: 14px; height: 2px; }
    main.page-container { padding-bottom: 58px; }
}
@media (max-width: 1024px) {
    .hero-section.wrapper { padding-left: 20px; padding-right: 20px; }
    .about-container .mission-section,
    .about-container .features-section,
    .about-container .steps-section { padding: 50px 20px; }
}
@media (max-width: 768px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-section.wrapper { padding-left: 24px; padding-right: 24px; }
    .hero-content { max-width: 100%; }
    .hero-tagline { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
    .cta-buttons { justify-content: center; }
    .mission-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-timeline { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .about-container .hero-section { padding: 80px 16px 48px; gap: 40px; }
    .about-container .hero-section.wrapper { padding-left: 16px; padding-right: 16px; }
    .main-title { font-size: 70px; margin-bottom: 15px; line-height: 1.15; flex-wrap: wrap; justify-content: center; }
    .hero-tagline { font-size: 18px; width: 100%; max-width: none; margin-bottom: 12px; }
    .hero-description { font-size: 15px; margin-bottom: 24px; }
    .cta-buttons { flex-direction: column; align-items: stretch; justify-content: center; max-width: 280px; margin: 0 auto; }
    .cta-primary, .cta-secondary { justify-content: center; }
    .hero-visual { min-height: 220px; max-width: 100%; }
    .hero-visual canvas { min-width: 0; width: 100%; height: 220px; }
    .float-item { width: 36px; height: 36px; font-size: 14px; }
    .about-container .mission-section,
    .about-container .features-section,
    .about-container .steps-section { padding: 40px 16px; }
    .about-container .section-header { margin-bottom: 32px; }
    .about-container .section-title { font-size: 26px; margin-bottom: 10px; }
    .about-container .section-subtitle { font-size: 16px; }
    .about-container .mission-card { padding: 24px 20px; }
    .about-container .mission-icon { width: 52px; height: 52px; font-size: 22px; margin-bottom: 16px; }
    .about-container .mission-card h3 { font-size: 18px; }
    .about-container .mission-card p { font-size: 14px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .about-container .feature-item { padding: 22px 20px; }
    .about-container .feature-icon { width: 48px; height: 48px; font-size: 20px; margin-bottom: 12px; }
    .about-container .feature-item h3 { font-size: 17px; }
    .about-container .feature-item p { font-size: 14px; }
    .about-container .steps-timeline { gap: 28px; }
    .about-container .step-number { width: 48px; height: 48px; font-size: 20px; margin-bottom: 16px; }
    .about-container .step-content { max-width: none; }
    .about-container .step-content h3 { font-size: 18px; }
    .about-container .step-content p { font-size: 14px; }
    .about-container .step-icon { font-size: 28px; }
    .about-container .final-cta { padding: 48px 16px; }
    .about-container .cta-title { font-size: 24px; margin-bottom: 10px; line-height: 1.3; }
    .about-container .cta-subtitle { font-size: 16px; margin-bottom: 20px; }
    .about-container .users-avatars { margin-bottom: 20px; gap: 6px; }
    .about-container .users-avatars .avatar { width: 36px; height: 36px; }
    .about-container .avatar-text { font-size: 13px; }
    .about-container .cta-button { padding: 14px 24px; font-size: 15px; }
    .about-container .bonus-badge { padding: 8px 16px; font-size: 14px; }
}
@media (max-width: 480px) {
    .about-container .hero-section { padding: 72px 12px 40px; gap: 32px; }
    .about-container .hero-section.wrapper { padding-left: 12px; padding-right: 12px; }
    .hero-tagline { font-size: 16px; }
    .hero-description { font-size: 14px; }
    .cta-buttons { padding: 0 8px; }
    .cta-primary, .cta-secondary { padding: 12px 20px; font-size: 15px; }
    .hero-visual { min-height: 180px; display: none;}
    .hero-visual canvas { height: 180px; }
    .float-item { width: 32px; height: 32px; font-size: 12px; }
    .about-container .mission-section,
    .about-container .features-section,
    .about-container .steps-section { padding: 32px 20px; }
    .about-container .section-title { font-size: 22px; }
    .about-container .mission-card { padding: 20px 16px; }
    .about-container .feature-item { padding: 18px 16px; }
    .about-container .final-cta { padding: 40px 12px; }
    .about-container .cta-title { font-size: 20px; }
    .about-container .cta-subtitle { font-size: 15px; }
    .about-container .users-avatars .avatar { width: 32px; height: 32px; }
    .about-container .avatar-text { font-size: 12px; }
}
@media (max-width: 400px) {
    .about-container .hero-section { padding: 64px 10px 32px; gap: 24px; }
    .about-container .hero-section.wrapper { padding-left: 10px; padding-right: 10px; }
    .main-title { font-size: 26px; }
    .hero-tagline { font-size: 15px; }
    .hero-description { font-size: 13px; }
    .cta-buttons { max-width: none; padding: 0 4px; }
    .cta-primary, .cta-secondary { padding: 10px 16px; font-size: 14px; }
    .about-container .mission-section,
    .about-container .features-section,
    .about-container .steps-section { padding: 28px 10px; }
    .about-container .section-header { margin-bottom: 24px; }
    .about-container .section-title { font-size: 20px; }
    .about-container .mission-card { padding: 18px 12px; }
    .about-container .mission-card h3 { font-size: 16px; }
    .about-container .mission-card p { font-size: 13px; }
    .about-container .feature-item { padding: 16px 12px; }
    .about-container .feature-item h3 { font-size: 16px; }
    .about-container .steps-timeline { gap: 24px; }
    .about-container .step-number { width: 44px; height: 44px; font-size: 18px; }
    .about-container .step-content h3 { font-size: 17px; }
    .about-container .final-cta { padding: 32px 10px; }
    .about-container .cta-title { font-size: 18px; }
    .about-container .cta-subtitle { font-size: 14px; }
    .about-container .users-avatars .avatar { width: 28px; height: 28px; }
    .about-container .users-avatars { gap: 4px; margin-bottom: 16px; }
    .about-container .cta-button { padding: 12px 20px; font-size: 14px; }
    .about-container .bonus-badge { padding: 6px 12px; font-size: 12px; }
}

.page-dashboard .hello-reg_top-bar-wrapper {
    background-color: #1a1a1a;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.page-dashboard .hello-reg_top-bar-block-left .go-start:not(.burger-trigger) {
    background-color: #58cc03;
    border-bottom-color: #4eaf08;
    color: #fff;
}
.page-dashboard .hello-reg_top-bar-block-left .aut-btn {
    background-color: transparent;
    border-color: #787878;
    color: #c8c8c8;
}
.page-dashboard .user-balance { color: #e3e3e3; }
.page-dashboard .user-balance .balance-amount { color: #ffc107; }


.page-dashboard .dashboard-header {
    background: #ffffff0d;
    border-radius: 20px;
    padding: 24px;
    
}
.page-dashboard .user-greeting h1 {
    color: #fff;
}
.page-dashboard .user-greeting h1 .username {
    color: #58cc03;
}
.page-dashboard .user-greeting p {
    color: #a0a0a0;
}

.page-dashboard .user-stats .stat-value {
    color: #fff;
}
.page-dashboard .user-stats .stat-label {
    color: #a0a0a0;
}
.page-dashboard .level-progress-section {
    background: #ffffff0d;
    
    border-radius: 20px;
}
.page-dashboard .level-badge {
    background: #ffc107;
    color: #fff;
}
.page-dashboard .level-stats,
.page-dashboard .level-progress-info,
.page-dashboard .exp-text,
.page-dashboard .rank-text {
    color: #fff;
}
.page-dashboard .level-progress-bar {
    background: #333;
}
.page-dashboard .level-progress-fill {
    background: #00e676;
}
.page-dashboard .gcoin-reward { color: #ffc107; }
.page-dashboard .dashboard-card {
    background: #ffffff0d;
    
    border-radius: 20px;
}
.page-dashboard .dashboard-card h2 {
    color: #fff;
}
.page-dashboard .dashboard-card h2 svg { fill: #a0a0a0; }
.page-dashboard .progress-bar { background: #333; }
.page-dashboard .progress-fill {
    background: linear-gradient(90deg, #00e676, #58cc03);
}
.page-dashboard .progress-info1 { color: #a0a0a0; }
.page-dashboard .course-btn.primary {
    background: #58cc03;
    color: #fff;
}
.page-dashboard .course-btn.secondary {
    background: #ffffff0d;
    color: #0080ff;
    border-color: #555;
}
.page-dashboard .activity-item {
    background: #333;
}
.page-dashboard .activity-message { color: #fff; }
.page-dashboard .activity-time { color: #a0a0a0; }
.page-dashboard .invite-code-section label,
.invite-code-section small { color: #a0a0a0; }

.page-dashboard .invite-code-section small { color: #a0a0a0; }
.page-dashboard .copy-btn {
    background: #0080ff;
}
.page-dashboard .quick-action {
    background: #ffffff0f;
    color: #fff;
}
.page-dashboard .quick-action:hover {
    background: #444;
}
.page-dashboard .quick-action .action-icon svg { fill: #a0a0a0; }
.page-dashboard .community-stats .stat-number { color: #fff; }
.page-dashboard .community-stats .stat-label { color: #a0a0a0; }
.recommended-lesson-item .lesson-title { color: #fff !important; }
.recommended-lesson-item .lesson-excerpt { color: #a0a0a0 !important; }
.no-recommendations p { color: #a0a0a0 !important; }

/* Калькуляторы и саморазвитие — тёмная тема */

.calculators-page .page-title { color: #fff !important; }
.calculators-page .page-subtitle { color: #a0a0a0 !important; }
.calculator-card {
    background: #ffffff0d !important;

}
.calculator-card:hover {
    border-color: #58cc03 !important;
}
.calculator-card h3 { color: #fff !important; }
.calculator-card p { color: #a0a0a0 !important; }
.calculator-features span {
    background: #333;
    color: #a0a0a0;
}

.motivation-card {
    background: linear-gradient(135deg, #2d4a1a, #1e3312) !important;
    
}
.motivation-card a { color: #90ee90; }
.calculators-page .motivation-card a:hover { color: #fff; }

.burger-menu {
    background: #1a1d23 !important;
}

.user-balance,
.user-balance .balance-amount {
    color: #ffc107 !important;
}

.go-start.burger-trigger {
    background: #333 !important;
    border-color: #444 !important;
    color: #e3e3e3 !important;
}

.page-profiles .profiles-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 16px;
}
.page-profiles .profiles-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.page-profiles .profiles-header p {
    font-size: 17px;
    color: #a0a0a0;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

.page-profiles .profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.page-profiles .profile-card-link {
    text-decoration: none;
    display: block;
}
.page-profiles .profile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.25s ease;
    position: relative;
}
.page-profiles .profile-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(88, 204, 3, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.page-profiles .profile-card-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #333 0%, #444 100%);
}
.page-profiles .profile-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-profiles .avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #58cc03;
    text-transform: uppercase;
}
.page-profiles .profile-card-vip {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1d23;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}
.page-profiles .profile-card- {
    flex: 1;
    min-width: 0;
}
.page-profiles .profile-card- h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.page-profiles .profile-card- p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 12px;
}
.page-profiles .profile-card-muted {
    color: #555 !important;
    font-style: italic;
}
.page-profiles .profile-card-level {
    display: inline-flex;
}
.page-profiles .level-badge {
    font-size: 12px;
    font-weight: 600;
    color: #58cc03;
    background: rgba(88, 204, 3, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
}
.page-profiles .profile-card-arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: #555;
    transition: transform 0.25s ease;
}
.page-profiles .profile-card:hover .profile-card-arrow {
    color: #58cc03;
    transform: translateX(4px);
}

.page-profiles .profiles-empty {
    text-align: center;
    padding: 80px 24px;
}
.page-profiles .profiles-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}
.page-profiles .profiles-empty h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}
.page-profiles .profiles-empty p {
    color: #a0a0a0;
    font-size: 16px;
}

.page-profiles .profiles-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.page-profiles .profiles-pagination nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.page-profiles .profiles-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.page-profiles .profiles-pagination li {
    margin: 0;
}
.page-profiles .profiles-pagination a,
.page-profiles .profiles-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-profiles .profiles-pagination a {
    background: rgba(255, 255, 255, 0.06);
    color: #e3e3e3;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.page-profiles .profiles-pagination a:hover {
    background: rgba(88, 204, 3, 0.2);
    color: #58cc03;
    border-color: rgba(88, 204, 3, 0.3);
}
.page-profiles .profiles-pagination span {
    background: rgba(88, 204, 3, 0.15);
    color: #58cc03;
    border: 1px solid rgba(88, 204, 3, 0.3);
}


.page-profiles .profile-header {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
.page-profiles .profile-avatar-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #333, #444);
}
.page-profiles .profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-profiles .avatar-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: #58cc03;
    text-transform: uppercase;
}
.page-profiles .profile-main-info { flex: 1; min-width: 200px; }
.page-profiles .profile-main-info h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-profiles .vip-badge-large {
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1d23;
    padding: 4px 12px;
    border-radius: 8px;
}
.page-profiles .profile-main-info .profile-bio {
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.6;
}
.page-profiles .follow-btn,
.page-profiles .unfollow-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.page-profiles .follow-btn {
    background: #58cc03;
    color: #fff;
    
}
.page-profiles .follow-btn:hover {
    background: #61e106;
}
.page-profiles .unfollow-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #a0a0a0;
    border: 2px solid #444;
}
.page-profiles .unfollow-btn:hover {
    background: rgba(204, 3, 93, 0.2);
    color: #e91e63;
    border-color: #cc035d;
}
.page-profiles .profile-stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.page-profiles .profile-stats-section .stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.page-profiles .profile-stats-section .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #58cc03;
    margin-bottom: 4px;
}
.page-profiles .profile-stats-section .stat-label {
    font-size: 13px;
    color: #a0a0a0;
}
.page-profiles .achievements-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
}
.page-profiles .achievements-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}
.page-profiles .achievements-section p {
    color: #a0a0a0;
    font-size: 14px;
}
@media (max-width: 640px) {
    .page-profiles .profile-stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-profiles .profile-header { flex-direction: column; align-items: center; text-align: center; }
}

/* ========== Трекер привычек ========== */

.habit-tracker-container { max-width: 1400px; margin: 0 auto; }
.habit-tracker-flash { padding: 12px 20px; border-radius: 12px; margin-bottom: 20px; }
.habit-tracker-flash.success { background: rgba(88, 204, 3, 0.2); color: #58cc03; }
.habit-tracker-flash.error { background: rgba(204, 3, 93, 0.2); color: #e91e63; }

.habit-tracker-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    margin-bottom: 28px; padding: 20px 24px; background: rgba(255, 255, 255, 0.03);
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06);
}
.habit-tracker-header-left { display: flex; flex-direction: column; gap: 4px; }
.habit-tracker-title { font-size: 22px; color: #fff; margin: 0; }
.habit-tracker-date { color: #a0a0a0; font-size: 14px; margin: 0; }
.habit-tracker-nav-month { display: flex; align-items: center; gap: 12px; }
.habit-tracker-nav-btn {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.08); border-radius: 10px; color: #e3e3e3; text-decoration: none;
}
.habit-tracker-nav-btn:hover { background: rgba(88, 204, 3, 0.3); color: #58cc03; }
.habit-tracker-month-label { font-weight: 600; color: #fff; min-width: 140px; text-align: center; }
.habit-tracker-header-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.habit-tracker-total, .habit-tracker-avg { text-align: center; }
.habit-tracker-total .label, .habit-tracker-avg .label { display: block; font-size: 12px; color: #a0a0a0; }
.habit-tracker-total .value, .habit-tracker-avg .value { font-size: 20px; font-weight: 700; color: #58cc03; }
.habit-tracker-export-btn {
    display: inline-flex; align-items: center; padding: 10px 16px; background: rgba(88, 204, 3, 0.2);
    color: #58cc03; border-radius: 10px; font-size: 14px; text-decoration: none; border: 1px solid rgba(88, 204, 3, 0.4);
}
.habit-tracker-export-btn:hover { background: rgba(88, 204, 3, 0.35); color: #fff; }

.habit-tracker-main {
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    gap: 10px;
}
.habit-tracker-habits-col {
    background: rgba(255, 255, 255, 0.03); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px; height: fit-content;
}
.habit-tracker-col-title { color: #fff; font-size: 16px; margin: 0 0 16px 0; }
.habit-tracker-templates-label { color: #888; font-size: 12px; margin: 0 0 8px 0; }
.habit-tracker-templates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.habit-tracker-template-chip {
    padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05); color: #e3e3e3; font-size: 12px; cursor: pointer;
    transition: background 0.2s, border-color 0.2s; white-space: nowrap;
    border-left: 3px solid var(--chip-color, #58cc03);
}
.habit-tracker-template-chip:hover { background: rgba(255,255,255,0.1); border-color: var(--chip-color, #58cc03); }
.habit-tracker-add-form { display: flex; gap: 8px; margin-bottom: 10px; align-items: stretch; }
.habit-tracker-add-field {
    display: flex;
    flex: 1;
    min-width: 0;
    background: #333;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
}
.habit-tracker-add-field:focus-within { border-color: #58cc03; }
.habit-tracker-add-icon {
    width: 20px;
    flex-shrink: 0;
    padding: 10px;
    background: transparent;
    border: none;
    color: #ffc107;
    font-size: 16px;
    text-align: center;
}
.habit-tracker-add-field .habit-tracker-add-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
}
.habit-tracker-add-field .habit-tracker-add-input::placeholder { color: #888; }
.habit-tracker-add-field .habit-tracker-add-input:focus { outline: none; }
.habit-tracker-add-desc { margin-bottom: 16px; }
.habit-tracker-add-desc .habit-tracker-add-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: #333;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
}
.habit-tracker-add-desc .habit-tracker-add-input:focus { outline: none; border-color: #58cc03; }
.habit-tracker-add-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #58cc03;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    flex-shrink: 0;
}
.habit-tracker-add-btn:hover { background: #61e106; }
.habit-tracker-habits-list { list-style: none; margin: 0; padding: 0; }
.habit-tracker-habit-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 10px; margin-bottom: 6px;
}
.habit-tracker-habit-item:hover { background: rgba(255, 255, 255, 0.04); }
.habit-tracker-habit-item .habit-icon-sm { font-size: 18px; flex-shrink: 0; }
.habit-tracker-habit-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.habit-tracker-habit-item .habit-title { color: #e3e3e3; font-size: 14px; }
.habit-description { font-size: 11px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.habit-streak { font-size: 11px; color: #ff9800; display: inline-block; }
.habit-tracker-item-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.habit-delete-form { margin: 0; }
.habit-edit-btn, .habit-delete-btn {
    width: 28px; height: 28px; padding: 0; background: rgba(255,255,255,0.08); border: none;
    border-radius: 6px; color: #888; cursor: pointer; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.habit-edit-btn:hover { color: #58cc03; }
.habit-delete-btn:hover { color: #e91e63; }
.habit-tracker-empty-hint { color: #666; font-size: 13px; margin: 0; padding: 12px 0; }

.habit-tracker-calendar-col {
    min-width: 0;
}
.habit-tracker-calendar {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.habit-tracker-cal-habits {
    flex-shrink: 0;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.habit-tracker-cal-corner {
    padding: 12px 14px;
    font-size: 12px;
    color: #a0a0a0;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 52px;
    box-sizing: border-box;
}
.habit-tracker-cal-habit-label {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e3e3e3;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 44px;
    box-sizing: border-box;
}
.habit-tracker-cal-habit-label .habit-icon-sm { font-size: 16px; flex-shrink: 0; }

.habit-tracker-cal-dates {
    display: flex;
    overflow: scroll;
}
.habit-tracker-cal-day-col {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}
.habit-tracker-cal-day-head {
    padding: 8px 4px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    font-size: 11px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}
.habit-tracker-cal-day-head .cal-dow { display: block; color: #888; line-height: 1.2; }
.habit-tracker-cal-day-head .cal-day-num { color: #e3e3e3; font-weight: 600; line-height: 1.2; }
.habit-tracker-cal-cell {
    padding: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}
.habit-tracker-cal-day-col .habit-tracker-cal-cell:last-child { border-bottom: none; }
.habit-tracker-cal-check-wrap { cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 0; }
.habit-tracker-cal-check { display: none; }
.habit-tracker-cal-check-mark {
    width: 20px; height: 20px; border: 2px solid #555; border-radius: 6px; transition: all 0.2s; position: relative; display: block;
}
.habit-tracker-cal-check:checked + .habit-tracker-cal-check-mark,
.habit-tracker-cal-check-mark.checked { background: #58cc03; border-color: #58cc03; }
.habit-tracker-cal-check:checked + .habit-tracker-cal-check-mark::after,
.habit-tracker-cal-check-mark.checked::after {
    content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: bold;
}
.habit-tracker-cal-check:disabled + .habit-tracker-cal-check-mark { opacity: 0.4; cursor: not-allowed; }

.habit-tracker-chart-section { margin-top: 10px; padding: 24px; background: rgba(255, 255, 255, 0.03); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06); }
.habit-tracker-chart-title { color: #fff; font-size: 16px; margin: 0 0 16px 0; }
.habit-tracker-daily-bars-wrap {
    overflow-x: auto; overflow-y: visible; margin-bottom: 16px; -webkit-overflow-scrolling: touch;
}
.habit-tracker-daily-bars {
    display: flex; gap: 6px; align-items: flex-end; height: 48px; min-width: min-content;
    padding-bottom: 4px;
}
.habit-tracker-daily-bar-wrap {
    flex: 0 0 auto; width: 28px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%;
}
.habit-tracker-daily-bar {
    width: 18px; height: 100%; max-height: 32px; background: #58cc03; border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.2s;
}
.habit-tracker-daily-percent { font-size: 10px; color: #888; margin-top: 4px; white-space: nowrap; }
.habit-tracker-chart-wrap { height: 160px; }
.habit-tracker-chart-wrap canvas { max-width: 100%; height: auto; display: block; }

.habit-tracker-progress-col {
    background: rgba(255, 255, 255, 0.03); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px; height: fit-content;
}
.habit-tracker-progress-list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.habit-tracker-progress-item .p-habit { display: block; color: #e3e3e3; font-size: 13px; margin-bottom: 6px; }
.habit-tracker-progress-item .p-stats { display: block; font-size: 11px; color: #888; margin-bottom: 4px; }
.habit-tracker-progress-item .p-bar-wrap {
    position: relative;
    height: 14px;
    background: #333;
    border-radius: 50px;
    overflow: hidden;
}
.habit-tracker-progress-item .p-bar { height: 100%; background: #58cc03; border-radius: 50px; transition: width 0.3s; }
.habit-tracker-progress-item .p-percent { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #a0a0a0; }
.habit-tracker-progress-avg .p-habit { color: #58cc03; font-weight: 600; }

.habit-tracker-modal {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 20px; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s;
}
.habit-tracker-modal.open { visibility: visible; opacity: 1; }
.habit-tracker-modal[aria-hidden="true"] { pointer-events: none; }
.habit-tracker-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6); cursor: pointer;
}
.habit-tracker-modal-content {
    position: relative; background: #1e1e22; border-radius: 16px; padding: 24px; max-width: 400px; width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
}
.habit-tracker-modal-title { color: #fff; font-size: 18px; margin: 0 0 20px 0; }
.habit-tracker-form-group { margin-bottom: 16px; }
.habit-tracker-form-group label { display: block; color: #a0a0a0; font-size: 12px; margin-bottom: 6px; }
.habit-tracker-form-group input[type="text"],
.habit-tracker-form-group input[type="number"] {
    width: 100%; padding: 10px 14px; background: #333; border: 1px solid #444; border-radius: 10px; color: #fff; font-size: 14px; box-sizing: border-box;
}
.habit-tracker-form-group input:focus { outline: none; border-color: #58cc03; }
.habit-tracker-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.habit-tracker-form-row .habit-tracker-form-group { flex: 1; min-width: 80px; }
.habit-tracker-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.habit-tracker-btn { padding: 10px 20px; border-radius: 10px; font-size: 14px; cursor: pointer; border: none; }
.habit-tracker-btn.secondary { background: rgba(255,255,255,0.1); color: #e3e3e3; }
.habit-tracker-btn.primary { background: #58cc03; color: #fff; }
.habit-tracker-btn.primary:hover { background: #61e106; }

@media (max-width: 1024px) {
    .habit-tracker-main { grid-template-columns: 1fr; }
    .habit-tracker-progress-col { order: -1; }
}

/* Трекер привычек — мобильная адаптация */
@media (max-width: 768px) {

    .habit-tracker-header {
        flex-direction: column; align-items: stretch; gap: 16px; padding: 16px;
    }
    .habit-tracker-header-right {
        justify-content: space-between; flex-wrap: wrap;
    }
    .habit-tracker-export-btn { order: 1; width: 100%; justify-content: center; }
    .habit-tracker-title { font-size: 18px; }
    .habit-tracker-main { gap: 16px; }
    .habit-tracker-habits-col { padding: 16px; }
    .habit-tracker-templates { gap: 6px; }
    .habit-tracker-template-chip { padding: 10px 12px; font-size: 13px; white-space: normal; min-height: 44px; }
    .habit-tracker-add-form { flex-wrap: wrap; }
    .habit-tracker-add-field { min-width: 0; }
    .habit-tracker-add-btn { width: 48px; height: 48px; font-size: 22px; }
    .habit-tracker-cal-habits { min-width: 100px; }
    .habit-tracker-cal-corner { padding: 10px 8px; font-size: 11px; min-height: 48px; }
    .habit-tracker-cal-day-col { width: 34px; }
    .habit-tracker-cal-day-head { padding: 6px 2px; font-size: 10px; min-height: 48px; }
    .habit-tracker-cal-cell { padding: 6px 2px; min-height: 40px; }
    .habit-tracker-cal-habit-label { padding: 10px 8px; font-size: 12px; min-height: 40px; }
    .habit-tracker-cal-check-mark {
        width: 24px; height: 24px; min-width: 24px; min-height: 24px;
    }
    .habit-tracker-chart-section { padding: 16px; margin-top: 16px; }
    .habit-tracker-daily-bars { height: 40px; }
    .habit-tracker-daily-percent { font-size: 9px; }
    .habit-tracker-chart-wrap { height: 120px; }
    .habit-tracker-chart-wrap canvas { width: 100% !important; height: 120px !important; }
    .habit-tracker-progress-col { padding: 16px; }
    .habit-tracker-modal-content { margin: 16px; max-width: none; padding: 20px; }
    .habit-tracker-form-row { flex-direction: column; }
    .habit-edit-btn, .habit-delete-btn { width: 36px; height: 36px; font-size: 16px; min-width: 36px; min-height: 36px; }
}
@media (max-width: 550px) {
    .top-bar-profile-btn {display: none;}
}

@media (max-width: 480px) {
    .habit-tracker-cal-habits { min-width: 80px; }
    .habit-tracker-cal-corner { padding: 8px 6px; font-size: 10px; }
    .habit-tracker-cal-day-col { width: 30px; }
    .habit-tracker-cal-day-head { padding: 4px 2px; font-size: 9px; min-height: 44px; }
    .habit-tracker-cal-cell { padding: 4px 2px; min-height: 36px; }
    .habit-tracker-cal-habit-label { padding: 8px 6px; font-size: 11px; min-height: 36px; }
    .habit-tracker-cal-check-mark { width: 22px; height: 22px; min-width: 22px; min-height: 22px; }
}
@media (max-width: 400px) {
    .habit-tracker-header { padding: 12px; gap: 12px; }
    .habit-tracker-title { font-size: 16px; }
    .habit-tracker-habits-col, .habit-tracker-progress-col { padding: 12px; }
    .habit-tracker-cal-habits { min-width: 72px; }
    .habit-tracker-cal-corner { padding: 6px 4px; font-size: 9px; }
    .habit-tracker-cal-day-col { width: 26px; }
    .habit-tracker-cal-day-head { padding: 3px 2px; font-size: 8px; min-height: 40px; }
    .habit-tracker-cal-cell { padding: 3px 2px; min-height: 32px; }
    .habit-tracker-cal-habit-label { padding: 6px 4px; font-size: 10px; min-height: 32px; }
    .habit-tracker-cal-check-mark { width: 20px; height: 20px; min-width: 20px; min-height: 20px; }
    .habit-tracker-add-btn { width: 44px; height: 44px; font-size: 20px; }
    .habit-tracker-modal-content { padding: 16px; margin: 12px; }
}

