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





body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}





.brand-top {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
    letter-spacing: 2px;
    margin-right: -2px;
}





.brand-kodari {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    margin-right: 0;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    text-shadow: none;
}





.advanced-filter-item {
    position: relative;
    flex-shrink: 0;
}





.filter-lock-icon {
    font-size: 12px;
    margin-left: 4px;
}





.kodari-id-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin: 0 12px 16px;
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.95), rgba(20, 20, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 10;
}





.kodari-id-notice::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    pointer-events: none;
}





.kodari-id-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #8b5cf6, #3b82f6);
}





.kodari-id-notice svg {
    display: none !important;
}





.kodari-id-notice span {
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    letter-spacing: 0.3px !important;
}





.kodari-id-notice span::before {
    content: '🔒 ';
    margin-right: 4px;
}





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





.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}





.upload-subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}





.file-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}





.merged-names-container {
    margin-top: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}





.merged-names-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}





.merged-names-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}





.merged-name-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}





.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}





.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4b5563;
    transition: .4s;
}





.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}





.slider.round {
    border-radius: 34px;
}





.slider.round:before {
    border-radius: 50%;
}





.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}





.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}





.detail-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}





.detail-label {
    color: rgba(156, 163, 175, 0.8);
    font-size: 14px;
    font-weight: 500;
}





.detail-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}





.topgems-amount {
    color: #34d399 !important;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}





.topmoney-total {
    color: #fbbf24 !important;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}





.moderation-comment {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
}





.telegram-icon {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}





.app-version-info {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}





.version-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}





.version-label {
    font-size: 12px;
    color: rgba(156, 163, 175, 0.6);
}





.version-value {
    font-size: 12px;
    color: rgba(156, 163, 175, 0.9);
    font-weight: 600;
}





@media (max-width: 480px) {
    .top-bar {
        padding: 16px 12px 12px;
    }

    .date-container {
        padding: 6px;
    }

    .date-item {
        padding: 12px 6px;
        margin: 0 1px;
        border-radius: 12px;
        gap: 3px;
    }

    .date-day {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .date-number {
        font-size: 18px;
    }

    .date-item.active .date-number {
        font-size: 18px;
    }

    .date-month {
        font-size: 9px;
    }

    .content {
        padding: 0 12px;
        padding-bottom: 140px;
    }

    .lesson-card {
        padding: 14px;
        gap: 12px;
    }

    .lesson-time {
        min-width: 70px;
        font-size: 13px;
    }

    .lesson-title {
        font-size: 15px;
    }

    .lesson-teacher {
        font-size: 13px;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .nav-row {
        padding: 8px 12px 0px;
    }
}





@media (max-width: 360px) {
    .date-container {
        padding: 4px;
    }

    .date-item {
        padding: 10px 4px;
        margin: 0;
        border-radius: 10px;
        gap: 2px;
    }

    .date-day {
        font-size: 9px;
    }

    .date-number {
        font-size: 16px;
    }

    .date-item.active .date-number {
        font-size: 16px;
    }

    .date-month {
        font-size: 8px;
    }

    .content {
        padding: 0 8px;
        padding-bottom: 140px;
    }

    .lesson-card {
        padding: 12px;
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .homework-filters {
        gap: 6px;
        margin-bottom: 12px;
        padding: 0 2px;
    }

    .homework-card,
    .subject-grades,
    .profile-header,
    .stat-item,
    .profile-action {
        padding: 12px;
    }

    .profile-header {
        gap: 12px;
    }

    .profile-avatar {
        width: 56px;
        height: 56px;
    }

    .profile-name {
        font-size: 18px;
    }
}





.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 16px;
    color: #ef4444;
    text-align: center;
    margin: 20px 0;
}





.cache-status {
    margin: 12px 16px 8px;
    animation: fadeInDown 0.4s ease-out;
}





.cache-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffc107;
    font-size: 13px;
    font-weight: 500;
}





.cache-warning svg {
    color: #ffc107;
    flex-shrink: 0;
}





.cache-text {
    line-height: 1.4;
}





.connection-status {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    animation: slideDown 0.3s ease-out;
}





.offline-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
}





.offline-indicator svg {
    color: #ef4444;
    flex-shrink: 0;
}





@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}





body.ios {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}





.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 16px;
}





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





.detail-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}





.detail-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    text-align: right;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}





.upload-subtitle {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}





.file-upload-section {
    margin-bottom: 20px;
    text-align: center;
}





.archive-name-section {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
}





.archive-name-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}





.archive-extension {
    display: inline-block;
    padding: 12px 8px;
    color: #a855f7;
    font-weight: 500;
    font-size: 14px;
    vertical-align: middle;
}





.file-name {
    color: #22c55e;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}





.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}





.file-info svg {
    color: #22c55e;
    flex-shrink: 0;
}





.file-info .file-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}





.file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-left: 4px;
}





.no-file-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}





.file-info,
.text-info {
    display: flex;
    align-items: center;
    gap: 16px;
}





.file-details,
.text-details {
    flex: 1;
    min-width: 0;
}





.file-name,
.text-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}





.file-date,
.text-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}





.mark-info {
    display: flex;
    align-items: center;
    gap: 16px;
}





.mark-info svg {
    color: #f59e0b;
    flex-shrink: 0;
}





.mark-details {
    display: flex;
    align-items: center;
    gap: 12px;
}





.mark-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}





.mark-value {
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
    padding: 8px 16px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    min-width: 48px;
    text-align: center;
    box-shadow:
        0 2px 8px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}





.overdue-mark svg {
    color: #ef4444;
    flex-shrink: 0;
}





.overdue-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}





.overdue-value {
    font-size: 20px;
    font-weight: 800;
    color: #f87171;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    min-width: 48px;
    text-align: center;
    box-shadow:
        0 2px 8px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}





.info-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}





.teacher-comment {
    margin: 20px 0;
    padding: 16px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
}





.comment-title {
    font-size: 14px;
    font-weight: 600;
}





.comment-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: pre-wrap;
}





.comment-date {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}





.evaluation-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 140px;
}





.evaluation-subtitle {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}





.evaluation-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}





.evaluation-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}





.evaluation-step {
    margin-bottom: 24px;
}





.evaluation-step.hidden {
    display: none;
}





.evaluation-step h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}





.tags-container {
    margin-bottom: 20px;
}





.tags-title {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
    font-weight: 500;
}





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





.comment-container {
    margin-bottom: 20px;
}





.comment-container label {
    display: block;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 500;
}





.comment-container textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}





.comment-container textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}





.comment-container textarea::placeholder {
    color: #6b7280;
}





.evaluation-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}






@media (max-width: 480px) {
    .evaluation-header h2 {
        font-size: 20px;
    }

    .rating-buttons {
        gap: 6px;
    }

    .rating-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .tags-list {
        gap: 6px;
    }

    .tag-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .evaluation-actions {
        flex-direction: column;
    }

    .back-btn,
    .submit-btn {
        width: 100%;
    }

    .nav-row {
        gap: 4px;
    }

    .nav-item {
        padding: 6px 2px;
    }

    .nav-item span {
        font-size: 10px;
    }

    .nav-badge {
        top: 6px;
        right: 6px;
        font-size: 9px;
        min-width: 18px;
        width: 18px;
        height: 18px;
        border-width: 1.5px;
    }
}






.overall-average-card {
    padding: 12px;
    border-radius: 12px;
}

.overall-average-header {
    gap: 8px;
}

.group-rating-card {
    padding: 10px;
    border-radius: 12px;
    margin: 6px 0;
}

.group-rating-title {
    font-size: 14px;
}

.rating-position {
    font-size: 20px;
}

.overall-average-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.overall-average-title {
    font-size: 14px;
}

.overall-average-subtitle {
    font-size: 11px;
}

.overall-average-value {
    font-size: 20px;
}

.archive-name-section {
    padding: 10px;
    margin-bottom: 10px;
}

.archive-name-input {
    width: calc(100% - 30px);
    padding: 8px 10px;
    font-size: 12px;
}

.archive-extension {
    padding: 8px 4px;
    font-size: 12px;
}

.file-input-label {
    padding: 12px 14px;
    gap: 8px;
    font-size: 13px;
}

.files-preview {
    padding: 10px;
}

.files-count {
    font-size: 12px;
    margin-bottom: 8px;
}

.file-item {
    padding: 6px 8px;
}

.file-info .file-name {
    font-size: 11px;
    max-width: 100px;
}

.file-size {
    font-size: 10px;
}

.clear-all-files-btn {
    padding: 6px 10px;
    font-size: 11px;
}

.submitted-homework-info {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
}

.submitted-homework-info h4 {
    font-size: 14px;
    margin-bottom: 12px;
    gap: 6px;
}

.submitted-homework-info h4::before {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.submitted-homework-content {
    gap: 10px;
}

.submitted-homework-file,
.submitted-homework-text,
.submitted-homework-mark {
    padding: 10px;
    border-radius: 10px;
}

.download-submitted-btn {
    padding: 10px 12px;
    font-size: 12px;
    gap: 6px;
    margin-top: 8px;
    border-radius: 8px;
}

.file-details .file-name,
.text-details .text-label {
    font-size: 12px;
}

.file-details .file-date,
.text-details .text-date {
    font-size: 10px;
}

.download-submitted-btn {
    padding: 4px 8px;
    font-size: 10px;
    gap: 2px;
}

.text-content {
    font-size: 12px;
    margin-top: 6px;
}

.mark-details .mark-label {
    font-size: 12px;
}

.mark-details .mark-value {
    font-size: 14px;
}

.homework-upload-form {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
}

.homework-upload-form h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.homework-rating-section,
.homework-tags-section,
.homework-comment-section {
    margin-bottom: 12px;
}

.rating-label,
.tags-label {
    font-size: 12px;
    margin-bottom: 6px;
}

.homework-rating-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-radius: 6px;
}

.homework-comment-section textarea {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 6px;
    min-height: 70px;
}

.submit-homework-btn {
    padding: 10px 14px;
    font-size: 13px;
    gap: 6px;
    border-radius: 8px;
}

.modal-overlay {
    padding: 8px;
}

.modal-content {
    border-radius: 12px;
    max-height: calc(100vh - 16px);
}

.modal-header {
    padding: 16px 16px 0;
}

.modal-body {
    padding: 0 16px 16px;
}

.modal-title {
    font-size: 16px;
}






@media (max-width: 480px) {
    .overall-average-card {
        padding: 16px;
        margin-bottom: 6px;
        border-radius: 16px;
    }

    .overall-average-header {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .group-rating-card {
        padding: 12px;
        border-radius: 14px;
        margin: 8px 0;
    }

    .group-rating-title {
        font-size: 15px;
    }

    .rating-position {
        font-size: 22px;
    }

    .overall-average-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .overall-average-title {
        font-size: 16px;
    }

    .overall-average-subtitle {
        font-size: 12px;
    }

    .overall-average-value {
        font-size: 24px;
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .archive-name-section {
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .archive-name-section label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .archive-name-input {
        width: calc(100% - 35px);
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .archive-extension {
        padding: 10px 6px;
        font-size: 13px;
    }

    .file-input-label {
        padding: 14px 16px;
        gap: 10px;
        border-radius: 10px;
        font-size: 14px;
    }

    .files-preview {
        padding: 12px;
        border-radius: 10px;
    }

    .files-count {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .files-list {
        gap: 6px;
        margin-bottom: 10px;
    }

    .file-item {
        padding: 8px 10px;
        border-radius: 6px;
    }

    .file-info .file-name {
        font-size: 12px;
        max-width: 120px;
    }

    .file-size {
        font-size: 11px;
    }

    .remove-file-btn {
        padding: 4px;
        border-radius: 4px;
    }

    .clear-all-files-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
        border-radius: 6px;
    }

    .submitted-homework-info {
        margin-top: 16px;
        padding: 16px;
        border-radius: 16px;
    }

    .submitted-homework-info h4 {
        font-size: 16px;
        margin-bottom: 16px;
        gap: 8px;
    }

    .submitted-homework-info h4::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .submitted-homework-content {
        gap: 12px;
    }

    .submitted-homework-file,
    .submitted-homework-text,
    .submitted-homework-mark {
        padding: 12px;
        border-radius: 12px;
    }

    .download-submitted-btn {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
        margin-top: 10px;
        border-radius: 10px;
    }

    .file-info,
    .text-info,
    .mark-info {
        gap: 8px;
    }

    .file-details .file-name,
    .text-details .text-label {
        font-size: 13px;
    }

    .file-details .file-date,
    .text-details .text-date {
        font-size: 11px;
    }

    .download-submitted-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .text-content {
        font-size: 13px;
        line-height: 1.4;
        margin-top: 8px;
    }

    .mark-details .mark-label {
        font-size: 13px;
    }

    .mark-details .mark-value {
        font-size: 16px;
    }

    .homework-upload-form {
        margin-top: 16px;
        padding: 16px;
        border-radius: 12px;
    }

    .homework-upload-form h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .homework-rating-section,
    .homework-tags-section,
    .homework-comment-section {
        margin-bottom: 16px;
    }

    .rating-label,
    .tags-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .homework-rating-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }

    .homework-comment-section textarea {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
        min-height: 80px;
    }

    .submit-homework-btn {
        padding: 12px 16px;
        font-size: 14px;
        gap: 8px;
        border-radius: 10px;
    }

    .modal-overlay {
        padding: 12px;
    }

    .modal-content {
        border-radius: 16px;
    }

    .modal-header {
        padding: 20px 20px 0;
    }

    .modal-body {
        padding: 0 20px 20px;
    }

    .homework-rating-btn,
    .rating-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    .file-input-label {
        min-height: 44px;
        touch-action: manipulation;
    }

    .remove-file-btn,
    .download-submitted-btn {
        min-height: 32px;
        min-width: 32px;
        touch-action: manipulation;
    }

    .homework-tag-btn,
    .tag-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 8px;
        touch-action: manipulation;
    }

    .detail-item {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .detail-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .detail-value {
        font-size: 13px;
        line-height: 1.4;
    }

    .nav-item {
        padding: 8px 4px;
        gap: 4px;
        min-height: 60px;
    }

    .nav-item span {
        font-size: 11px;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-badge {
        top: 7px;
        right: 7px;
        font-size: 9px;
        min-width: 18px;
        width: 18px;
        height: 18px;
        border-width: 1.5px;
    }

    .modal-title {
        font-size: 18px;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-value {
        text-align: left;
    }
}





.notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}





.notification-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}





.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}





.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}





.notification-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}





.notification-body::-webkit-scrollbar {
    width: 6px;
}





.notification-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}





.notification-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}





.notification-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}





.notification-message {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    hyphens: auto;
}





.notification-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}





.notification-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}





.premium-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}





.premium-benefits-body {
    padding: 20px !important;
}





.premium-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}





.premium-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}





.premium-benefit-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}





.premium-benefit-card .benefit-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}





.premium-benefit-card .benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}





.premium-benefit-card .benefit-text strong {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}





.premium-benefit-card .benefit-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}





.premium-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
}

.premium-actions {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
}

.premium-actions .notification-btn {
    width: 100%;
}

.premium-hide-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
    text-align: center;
    padding: 2px 0 0 !important;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none !important;
}

.premium-hide-btn:hover {
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
    transform: none !important;
}

.premium-connect-btn {
    white-space: nowrap;
}

.telegram-notify-content {
    max-width: 440px !important;
}

.telegram-notify-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
}

.telegram-notify-body {
    padding: 18px !important;
}

.telegram-notify-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.telegram-notify-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.telegram-notify-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
}

.telegram-notify-actions .notification-btn {
    width: 100%;
}

@media (max-width: 480px) {
    .premium-actions {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px;
    }

    .telegram-notify-actions {
        grid-template-columns: 1fr;
    }
}





@media (max-width: 480px) {
    .premium-benefits-grid {
        grid-template-columns: 1fr;
    }

    .kodari-premium-content {
        max-width: 95% !important;
    }
}





.contacts-section {
    margin-bottom: 24px;
}





.contacts-section h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}





.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}





.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}





.contact-address {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}





.contact-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}





.contact-phones,
.contact-emails {
    color: #e5e7eb;
    font-size: 14px;
    margin-bottom: 4px;
}





.contact-phones strong,
.contact-emails strong {
    color: #a78bfa;
}





.contact-phones a,
.contact-emails a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}





.contact-phones a:hover,
.contact-emails a:hover {
    color: #60a5fa;
    text-decoration: underline;
}





.contact-description {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.3;
}





.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}





.social-link:hover {
    color: #60a5fa;
    transform: translateX(4px);
}





.annual-quiz-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}





.quiz-banner-icon {
    color: #ffffff;
    flex-shrink: 0;
}





.quiz-banner-text {
    flex: 1;
}





.quiz-banner-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}





.quiz-banner-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}





.quiz-time-limit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
}





.quiz-questions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}





.quiz-question {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
}





.quiz-question-number {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}





.quiz-question-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-line;
}





.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}





.quiz-answer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}





.quiz-answer-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}





.quiz-answer-text {
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.4;
}





.quiz-text-answer {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}





.quiz-text-answer:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}





.quiz-text-answer::placeholder {
    color: #9ca3af;
}





.quiz-submit-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}





.telegram-icon {
    flex-shrink: 0;
    border-radius: 6px;
    filter: brightness(1.1);
}





@media (max-width: 768px) {
    .notification-content {
        width: 95%;
        margin: 0 auto;
        max-height: 90vh;
    }

    .notification-header {
        padding: 16px 20px;
    }

    .notification-body {
        padding: 20px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .notification-footer {
        padding: 12px 20px 20px;
    }

    .notification-title {
        font-size: 16px;
    }

    .notification-message {
        font-size: 15px;
        line-height: 1.5;
    }

    .connect-kodari-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .connect-kodari-btn img {
        width: 22px;
        height: 22px;
    }
}





.loader-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}





.loader-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}





.loader-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}





.pulse-loader {
    display: flex;
    gap: 4px;
    align-items: center;
}





.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    animation: pulse-dot 1.4s ease-in-out infinite both;
}





.pulse-dot:nth-child(1) {
    animation-delay: -0.32s;
}





.pulse-dot:nth-child(2) {
    animation-delay: -0.16s;
}





.pulse-dot:nth-child(3) {
    animation-delay: 0;
}





.success-animation {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.6s ease-out;
}





.success-checkmark {
    width: 20px;
    height: 20px;
    color: white;
    animation: checkmarkDraw 0.3s ease-out 0.2s both;
    opacity: 0;
}





.error-animation {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: errorShake 0.6s ease-out;
}





.error-cross {
    width: 20px;
    height: 20px;
    color: white;
    animation: crossDraw 0.3s ease-out 0.2s both;
    opacity: 0;
}





.current-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}





.current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





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





.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}





.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}





.moderation-comment {
    background: rgba(220, 53, 69, 0.05);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid #dc3545;
}








@media (max-width: 768px) {
    .subject-stats-modal {
        max-width: 95vw;
        margin: 8px;
        max-height: 85vh;
    }

    .subject-info-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .subject-info-header .subject-name {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .subject-info-header .subject-average {
        font-size: 32px;
        padding: 14px 24px;
    }

    .timeline-container {
        max-height: 300px;
        gap: 12px;
        padding: 4px 2px;
    }


    .grade-value {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}





.stats-error-text {
    font-size: 10px;
    color: #fbbf24;
    line-height: 1.3;
    text-align: center;
}





.stats-notice {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #93c5fd;
    line-height: 1.4;
}





.stats-notice.stats-error {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    text-align: center;
}





.detailed-stats-title {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 500;
}





.detailed-marks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}





.detailed-mark-item {
    display: flex;
    align-items: center;
    gap: 8px;
}





.detailed-mark-text {
    font-size: 13px;
    color: #d1d5db;
}





.current-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}





.current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





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





.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}





.load-more-text {
    font-weight: 600;
    position: relative;
    z-index: 1;
}





.load-more-icon {
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}





@media (max-width: 768px) {
    .lesson-modal-content {
        max-height: 80vh;
        padding: 16px;
    }

    .lesson-modal-title {
        font-size: 24px;
    }

    .lesson-detail-item {
        font-size: 14px;
    }
}





.kodari-id-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    margin-top: 12px;
}





.kodari-id-notice svg {
    flex-shrink: 0;
}





.scope-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 12px;
}





.payment-section {
    margin-bottom: 32px;
}





.payment-section h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}





.payment-info-card,
.payment-requisites-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}





.payment-requisites-card {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
}





.payment-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}





.payment-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}





.payment-label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    flex-shrink: 0;
}





.payment-value {
    color: #ffffff;
    font-size: 14px;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}





.payment-value.payment-amount {
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
}





.payment-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}





.payment-warning svg {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}





.payment-warning p {
    color: #ef4444;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}





.payment-warning a {
    color: #ef4444;
    text-decoration: underline;
}





.payment-warning a:hover {
    color: #dc2626;
}





.payment-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}





.payment-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}





.payment-history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}





.payment-history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}





.payment-date {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}





.payment-description {
    color: #ffffff;
    font-size: 14px;
    margin: 4px 0;
    flex: 1;
    padding: 0 16px;
}





.payment-amount {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}





.payment-amount.positive {
    color: #10b981;
}





.payment-amount.negative {
    color: #ef4444;
}





.payment-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}





.payment-schedule-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}





.payment-schedule-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}





.payment-schedule-info {
    flex: 1;
}





.payment-schedule-description {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}





.payment-schedule-date {
    color: #9ca3af;
    font-size: 13px;
}





.payment-schedule-amount {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}





.payment-schedule-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 110px;
}





.payment-schedule-status.pending {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}





.payment-schedule-status.paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}





.payment-schedule-status.overdue {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}





@media (max-width: 768px) {
    .payment-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .payment-label {
        min-width: auto;
    }

    .payment-value {
        text-align: left;
        max-width: 100%;
    }

    .payment-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .payment-description {
        padding: 0;
    }

    .payment-schedule-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .payment-schedule-amount {
        text-align: left;
    }

    .payment-schedule-status {
        text-align: left;
        min-width: auto;
        align-self: flex-start;
    }
}





@media (max-width: 480px) {
    .payment-section h4 {
        font-size: 16px;
    }

    .payment-info-card {
        padding: 16px;
    }

    .payment-field {
        padding: 8px 0;
    }

    .payment-history-item,
    .payment-schedule-item {
        padding: 12px;
    }

    .payment-actions {
        flex-direction: column;
    }
}





.gaming-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}





.gaming-activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease;
}





.gaming-activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}





.activity-info {
    flex: 1;
    margin-right: 16px;
}





.activity-action {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}





.activity-action.earning {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}





.activity-action.spending {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}





.activity-date {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}





.points-amount {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}





.points-amount.earning {
    color: #10b981;
}





.points-amount.spending {
    color: #ef4444;
}





.points-type {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}





.summary-gems {
    color: #667eea !important;
}





.balance-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}





.balance-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}





.balance-item {
    display: flex;
    align-items: center;
    gap: 12px;
}





.balance-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}





.balance-label {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}





.balance-value {
    font-size: 32px;
    font-weight: 700;
    color: #f9fafb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}





.status-icon {
    font-size: 16px;
}





.status-text {
    color: #f9fafb;
}





.info-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}





.info-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}





.info-value {
    font-size: 14px;
    color: #f9fafb;
    font-weight: 500;
}





.total-label {
    font-size: 18px;
    font-weight: 700;
    color: #f9fafb;
}





.total-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}





.price-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}





.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #f9fafb;
}





.price-plus {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}





.textarea-counter {
    text-align: right;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}





@media (max-width: 768px) {
    .market-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .market-container {
        margin-left: 0;
        margin-right: 0;
        width: auto;
        padding: 20px 0 120px;
    }

    .market-item {
        padding: 12px;
        border-radius: 16px;
    }

    .market-item-image-wrapper {
        height: 140px;
        margin-bottom: 12px;
    }

    .market-item-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .market-item-prices {
        padding: 8px;
        gap: 8px;
        flex-direction: column;
    }

    .price-badge {
        padding: 6px 10px;
        width: 100%;
        justify-content: center;
    }

    .price-value {
        font-size: 14px;
    }

    .price-plus {
        display: none;
    }

    .market-buy-btn {
        padding: 10px;
        font-size: 14px;
    }

    .market-item-info {
        margin-bottom: 12px;
    }

    .market-header h2,
    .feedback-header h2 {
        font-size: 24px;
    }

    .balance-info {
        flex-direction: row;
        gap: 12px;
    }

    .balance-divider {
        display: block;
        width: 1px;
        height: 50px;
    }

    .balance-item {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.2);
        padding: 12px 8px;
        border-radius: 12px;
    }

    .balance-icon {
        font-size: 32px;
    }

    .balance-content {
        align-items: center;
        text-align: center;
    }

    .balance-value {
        font-size: 20px;
    }
}





@media (max-width: 768px) {
    .gaming-activity-item {
        flex-direction: column;
        gap: 12px;
    }

    .activity-info {
        margin-right: 0;
    }

    .activity-points {
        text-align: left;
        min-width: auto;
    }

    .points-amount {
        display: inline;
        margin-right: 8px;
    }

    .gaming-activity-list {
        max-height: 50vh;
    }
}





@media (max-width: 480px) {
    .gaming-details-btn {
        font-size: 13px;
        padding: 10px 14px;
        margin-top: 12px;
    }

    .gaming-activity-item {
        padding: 12px;
    }

    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}





.stats-item {
    text-align: center;
}





.stats-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
    display: block;
}





.stats-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}





.distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}





.distribution-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}





.distribution-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}





.distribution-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}





.distribution-fill.excellent {
    background: #10b981;
}





.distribution-fill.good {
    background: #3b82f6;
}





.distribution-fill.satisfactory {
    background: #f59e0b;
}





.distribution-fill.poor {
    background: #ef4444;
}





.distribution-fill.very-poor {
    background: #991b1b;
}





.distribution-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 60px;
    flex-shrink: 0;
}





.distribution-count {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}





.distribution-percent {
    font-size: 12px;
    color: #9ca3af;
}





.clickable-overall-stats {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}





.clickable-overall-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}





.no-data {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}





@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .distribution-item {
        gap: 8px;
    }

    .distribution-grade {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .distribution-stats {
        min-width: 50px;
    }

    .grade-type-item {
        padding: 10px 12px;
    }

    .grade-type-details {
        flex-direction: column;
        gap: 2px;
    }
}





.absence-stats {
    margin-top: 24px;
}





.absence-stats h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}





.absence-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}





.absence-item {
    text-align: center;
}





.absence-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
    display: block;
}





.absence-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}





.top-absences h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}





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





.top-absence-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.1);
}





.absence-count {
    font-weight: 700;
    font-size: 14px;
    color: #ef4444;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}





@media (max-width: 768px) {
    .absence-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .top-absence-item {
        padding: 8px 12px;
    }
}





.notification-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}





@media (max-width: 480px) {
    .notification-footer {
        flex-direction: column;
        gap: 8px;
    }

    .notification-btn {
        width: 100%;
    }

    .notification-btn.secondary {
        margin-right: 0;
    }
}





.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}





.notification-success {
    background: #4caf50;
}





.notification-error {
    background: #f44336;
}





.notification-warning {
    background: #ff9800;
}





.notification-info {
    background: #2196f3;
}





@media (max-width: 768px) {
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}






@media (max-width: 768px) {
    .file-preview-container {
        width: 95%;
        height: 90vh;
        border-radius: 12px;
    }

    .file-preview-header {
        padding: 16px;
    }

    .file-preview-header h3 {
        font-size: 16px;
    }

    .close-preview-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        margin-left: 12px;
    }

    .file-preview-content {
        padding: 12px;
    }

    .preview-download-btn {
        width: 100%;
        justify-content: center;
    }
}





.break-container {
    position: relative;
    padding: 8px 0;
    margin: 4px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}





.break-container.active {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}





.break-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(59, 130, 246, 0.1);
}





.break-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    width: 0%;
    transition: width 1s linear;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}





.warning-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}





.warning-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}





.kodari-id-notice {
    position: relative;
    z-index: 0 !important;
}





.advanced-filter-item {
    position: relative;
    z-index: 10000 !important;
}





.stat-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}





.stat-column.main-stat {
    flex: 1.2;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}





.stat-column:first-child {
    border-left: none;
}





.stat-column:last-child {
    border-right: none;
}





.notifications-support-section {
    padding: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin: 0 16px 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}





.notifications-support-section p {
    font-size: 14px;
    color: #dbeafe;
    line-height: 1.5;
    margin: 0;
}





.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 24px 16px;
}





.notification-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Override layout.css .notification-header styles inside list items */
.notification-item .notification-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    border-bottom: none;
    background: none;
}

.notification-item .notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    line-height: 1.4;
}

.notification-item .notification-time {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-item .notification-message {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Guaranteed single-column layout (override any cascade) */
#notificationsModal .notifications-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

#notificationsModal .notification-item {
    width: 100%;
    box-sizing: border-box;
}

/* update-type: "Что нового" changelog format */
.notification-item.notif-update {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.07);
    gap: 12px;
}

.notification-item.notif-update .notification-title {
    font-size: 15px;
    font-weight: 700;
}

.notif-update-divider {
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
    margin: 0;
}

.notif-update-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #818cf8;
    margin-bottom: 8px;
}

.notif-update-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.notif-update-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
}

.notif-update-line-module {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 4px;
    padding: 2px 7px;
    margin-top: 1px;
    line-height: 1.4;
}





.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.3;
}





.notification-time {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    margin-top: 2px;
}





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





.notification-link {
    align-self: flex-start;
    color: #60a5fa;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}





.notification-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}





.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}





.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}





.review-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    min-width: 0;
    max-width: 100%;
}





.review-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}





.review-teacher-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}





.review-teacher-name {
    font-size: 15px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 2px;
    word-break: break-word;
    overflow-wrap: anywhere;
}





.review-subject {
    font-size: 13px;
    color: #9ca3af;
    word-break: break-word;
    overflow-wrap: anywhere;
}





.review-date {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}





.review-text {
    font-size: 14px;
    color: #e5e7eb;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}





.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}





@media (max-width: 480px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .review-date {
        align-self: flex-end;
        margin-top: -24px;
    }
}

@media (min-width: 768px) {

    .reviews-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* Notifications stay single-column inside the modal */
    .notifications-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

@media (min-width: 1024px) {

    .reviews-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
