
.skeleton-loader {
    display: contents;
}
.skeleton-loader>* {
    margin-bottom: 16px;
}

.skeleton-homework-card,
.skeleton-lesson-card,
.skeleton-grades-card,
.skeleton-market-card,
.skeleton-feedback-card,
.skeleton-order-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.market-skeletons .skeleton-market-card {
    height: 100%;
}

.skeleton-homework-card::after,
.skeleton-lesson-card::after,
.skeleton-grades-card::after,
.skeleton-market-card::after,
.skeleton-feedback-card::after,
.skeleton-order-card::after,
.skeleton-profile-avatar::after,
.skeleton-profile-name::after,
.skeleton-profile-group::after,
.skeleton-stat-value::after,
.skeleton-stat-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

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


.skeleton-homework-header,
.skeleton-grades-header,
.skeleton-lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skeleton-homework-subject,
.skeleton-subject-name,
.skeleton-title,
.skeleton-profile-name {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 60%;
}

.skeleton-homework-status,
.skeleton-subject-average,
.skeleton-status,
.skeleton-profile-group {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 25%;
}

.skeleton-homework-theme,
.skeleton-homework-teacher,
.skeleton-teacher,
.skeleton-room,
.skeleton-market-desc,
.skeleton-feedback-subject {
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    width: 85%;
    margin-top: 8px;
}

.skeleton-homework-teacher,
.skeleton-room {
    width: 60%;
}

.skeleton-homework-footer,
.skeleton-market-footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.skeleton-homework-deadline,
.skeleton-market-prices {
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    width: 40%;
}

.skeleton-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.skeleton-profile-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.skeleton-profile-info {
    flex: 1;
}

.skeleton-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    width: 100%;
}

.skeleton-stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.skeleton-stat-value {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 60%;
    margin: 0 auto 4px;
}

.skeleton-stat-label {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 80%;
    margin: 0 auto;
}

.skeleton-market-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
}

.skeleton-market-btn {
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 100px;
}

.skeleton-time {
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 40px;
    margin-bottom: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}




.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}




.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}




.filter-btn.has-overdue {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    animation: pulse-overdue 2s ease-in-out infinite;
}




.filter-btn.has-overdue.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}




@keyframes pulse-overdue {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}




.advanced-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}




.advanced-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}




.advanced-filter-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}




.advanced-filter-btn.locked {
    opacity: 0.6;
    cursor: not-allowed;
}




.advanced-filter-btn.locked:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}




.advanced-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin-top: 4px;
    padding: 6px;
    background: rgba(30, 30, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(20px);
}




.advanced-filter-dropdown.open {
    display: block;
    animation: dropdownFadeIn 0.15s ease-out;
}




@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.dropdown-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}




.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}




.dropdown-option.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}




.dropdown-option.active::before {
    content: '✓';
    margin-right: 8px;
}




.kodari-id-notice .connect-kodari-btn {
    align-self: flex-end !important;
    flex-shrink: 0 !important;
    height: 36px !important;
    padding: 0 24px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-transform: none !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
    width: auto !important;
    min-width: 120px !important;
}




.kodari-id-notice .connect-kodari-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5) !important;
    filter: brightness(1.1);
}




.kodari-id-notice .connect-kodari-btn:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: #a78bfa !important;
    transform: translateY(-1px);
}




.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: none;
}




.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}




.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}




.file-input-container {
    position: relative;
}




.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}




.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}




.file-input-label:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}




.clear-all-files-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}




.clear-all-files-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}




#fileDropZone.drag-over .file-input-label {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}




.lab-work-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #a855f7;
    margin-left: 8px;
}




.completion-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}




.completion-toggle:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}




.completion-toggle.completed {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #16a34a;
}




.completion-toggle.completed:hover {
    background: rgba(34, 197, 94, 0.3);
}




.toggle-icon {
    font-size: 14px;
}




@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}




.completion-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 16px 0;
    width: 100%;
    justify-content: center;
}




.completion-toggle-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}




.completion-toggle-btn.completed {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #16a34a;
}




.completion-toggle-btn.completed:hover {
    background: rgba(34, 197, 94, 0.3);
}




.remove-file-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 4px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}




.remove-file-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}




@keyframes shimmerGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: rotate(3deg);
    }
}




.duplicate-toggle-wrapper,
.duplicate-toggle-locked {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}




.duplicate-toggle-locked {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}




.duplicate-toggle-locked:hover {
    opacity: 1;
}




.toggle-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}




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




.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}




input:checked+.slider {
    background-color: #3b82f6;
}




input:focus+.slider {
    box-shadow: 0 0 1px #3b82f6;
}




input:checked+.slider:before {
    transform: translateX(20px);
}




.toggle-switch {
    position: relative;
    display: inline-block;
}




.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}




.toggle-label {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 280px;
    height: 44px;
    position: relative;
}




.toggle-text-left,
.toggle-text-right {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 2;
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
}




.toggle-text-left {
    left: 4px;
}




.toggle-text-right {
    right: 4px;
}




.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    z-index: 1;
}




.toggle-input:checked+.toggle-label .toggle-slider {
    transform: translateX(100%);
}




.toggle-input:checked+.toggle-label .toggle-text-left {
    color: rgba(255, 255, 255, 0.6);
}




.toggle-input:checked+.toggle-label .toggle-text-right {
    color: #ffffff;
    font-weight: 600;
}




.toggle-input:not(:checked)+.toggle-label .toggle-text-left {
    color: #ffffff;
    font-weight: 600;
}




.toggle-input:not(:checked)+.toggle-label .toggle-text-right {
    color: rgba(255, 255, 255, 0.6);
}




.toggle-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}




.telegram-btn-subtitle {
    font-size: 12px;
    color: rgba(156, 163, 175, 0.8);
    font-weight: 400;
}




.telegram-btn-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}




.nav-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 0;
    border-radius: 50%;
    min-width: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 3px 12px rgba(239, 68, 68, 0.5),
        0 1px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(10, 10, 10, 0.9);
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}




.nav-badge:empty {
    display: none;
}




.nav-badge-large {
    font-size: 9px;
    min-width: 24px;
    width: auto;
    padding: 0 4px;
    border-radius: 12px;
}




.loading,
.error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #9ca3af;
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
}




@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}




.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}




.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}




.modal-content {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}




.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}




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




.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}




.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}




.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}




.modal-close:active {
    transform: scale(0.95);
}




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




#modalCommentItem {
    flex-direction: column;
    align-items: flex-start;
}




#modalCommentItem .detail-label {
    margin-bottom: 8px;
}




#modalComment {
    text-align: left;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 4px;
    max-width: 100%;
}




.status-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}




.status-badge.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}




.status-badge.overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}




.status-badge.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}




.status-badge.waiting {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}




.modal-actions {
    text-align: center;
}




.download-btn {
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1);
}




.download-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow:
        0 8px 16px rgba(59, 130, 246, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.2);
}




.download-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(59, 130, 246, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.3);
}




.download-btn:active {
    transform: translateY(0);
}




.preview-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow:
        0 8px 16px rgba(139, 92, 246, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.2);
}




.preview-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    box-shadow:
        0 12px 24px rgba(139, 92, 246, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.3);
}




.preview-btn:active {
    transform: translateY(0);
    box-shadow:
        0 6px 12px rgba(139, 92, 246, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.2);
}




.preview-btn svg {
    flex-shrink: 0;
}




.preview-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}




.preview-btn:disabled:hover {
    transform: none;
    box-shadow:
        0 8px 16px rgba(139, 92, 246, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.2);
}





.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}




@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}




.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 16px rgba(239, 68, 68, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
}




.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(239, 68, 68, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.3);
}




.delete-btn:active {
    transform: translateY(0);
}




.archive-name-input {
    width: calc(100% - 40px);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    display: inline-block;
    vertical-align: middle;
}




.archive-name-input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}




.archive-name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}




.file-input-container {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px dashed transparent;
    border-radius: 12px;
    padding: 20px;
}




.file-input-container.drag-over {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
    transform: scale(1.02);
}




.file-input {
    display: none;
}




.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}




.file-input-label .upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 8px;
}




.file-input-label .upload-subtext {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}




.file-input-label:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}




.remove-file-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 6px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}




.remove-file-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}




.clear-all-files-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}




.clear-all-files-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}




.remove-file-btn {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}




.remove-file-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}




@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}




.download-submitted-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 3px 8px rgba(59, 130, 246, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 12px;
    white-space: nowrap;
}




.download-submitted-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}




.download-submitted-btn:active {
    transform: translateY(0);
}




.tag-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}




.tag-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}




.tag-btn.selected {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}




.continue-btn,
.submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}




.continue-btn:disabled,
.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #6b7280;
    cursor: not-allowed;
}




.continue-btn:not(:disabled):hover,
.submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}




.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 24px;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}




.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}




.submit-btn {
    flex: 2;
}




@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}




@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}




.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}




.notification-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}




.notification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}




.notification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}




.notification-btn:hover::before {
    left: 100%;
}




.notification-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}




.notification-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: translateY(-1px);
}




.premium-connect-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
}




.premium-connect-btn img {
    flex-shrink: 0;
}




.quiz-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}




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




.quiz-answer-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
}




.quiz-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: none;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}




.quiz-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}




.quiz-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}




.notification-btn:active {
    transform: translateY(0);
}




@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}




@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




.modal-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}




.connect-kodari-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}




.connect-kodari-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}




.connect-kodari-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}




.connect-kodari-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}




.continue-without-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}




.continue-without-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}




.telegram-btn-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}




.telegram-btn-arrow {
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}




.modal-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}




.modal-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}




.modal-loader {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 240px;
    min-width: 200px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}




.loader-spinner {
    width: 40px;
    height: 40px;
    position: relative;
}




.spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    position: absolute;
    animation: rotate 1.5s linear infinite;
}




.spinner-ring:nth-child(1) {
    border-top-color: #3b82f6;
    animation-delay: 0s;
}




.spinner-ring:nth-child(2) {
    border-right-color: #8b5cf6;
    animation-delay: 0.3s;
    animation-duration: 1.2s;
}




.spinner-ring:nth-child(3) {
    border-bottom-color: #06b6d4;
    animation-delay: 0.6s;
    animation-duration: 1.8s;
}




@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}




@keyframes pulse-dot {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}




@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}




@keyframes checkmarkDraw {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}




@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-3px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(3px);
    }
}




@keyframes crossDraw {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}




@keyframes tempMessageSlideIn {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}




@keyframes tempMessageSlideOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
}




.upload-photo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}




.upload-photo-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}




.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease;
}




.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}




.form-input.readonly {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
}




.cancel-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}




.cancel-btn:hover {
    background: var(--bg-secondary);
}




.save-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}




.save-btn:hover {
    background: var(--primary-hover);
}




.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}




.btn-loading svg {
    animation: spin 1s linear infinite;
}




@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}




.connect-kodari-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    font-size: 10px;
}




.connect-kodari-btn-small img {
    border-radius: 2px;
}




.connect-kodari-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 11px;
    transition: all 0.2s ease;
    cursor: pointer;
}




.connect-kodari-btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}




.connect-kodari-btn-inline:active {
    transform: translateY(0);
}




.connect-kodari-btn-inline img {
    border-radius: 2px;
}




.detailed-mark-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}




.detailed-mark-badge.excellent {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}




.detailed-mark-badge.good {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}




.detailed-mark-badge.satisfactory {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}




.detailed-mark-badge.unsatisfactory,
.detailed-mark-badge.poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}




.action-btn {
    width: 100%;
    border: none;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}




.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}




.action-btn.secondary {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}




.action-btn.secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.4);
}




.upload-photo-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}




.upload-photo-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}




.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    color: white;
    transition: all 0.2s ease;
}




.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}




.form-input.readonly {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
}




.btn-loading {
    display: none !important;
}




.btn-loading.active {
    display: flex !important;
}




.btn-text.hidden {
    display: none;
}




.load-more-btn {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    margin-top: 20px;
    grid-column: 1 / -1;
    width: 100%;
}




.load-more-button {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 16px 32px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}




.load-more-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}




.load-more-button:hover::before {
    opacity: 1;
}




.load-more-button:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}




.load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}




.load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}




.load-more-button:disabled:hover {
    transform: none;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: none;
}




.load-more-button:not(:disabled):hover .load-more-icon {
    transform: translateY(2px);
}




.load-more-button:disabled .load-more-icon {
    animation: spin 1s linear infinite;
}




@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




.connect-kodari-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: auto;
}




.connect-kodari-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}




.scope-toggle {
    display: flex;
    background: #374151;
    border-radius: 8px;
    padding: 4px;
    position: relative;
    border: 1px solid #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}




.toggle-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    z-index: 1;
}




.toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}




.toggle-label {
    display: block;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}




.toggle-option input[type="radio"]:checked+.toggle-label {
    color: white;
    background: #3b82f6;
    font-weight: 600;
}




.toggle-option:hover .toggle-label {
    color: #d1d5db;
}




.toggle-option input[type="radio"]:checked:hover+.toggle-label {
    color: white;
}




.copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
}




.copy-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}




.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}




.activity-badge {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 500;
}




.bottom-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}




.bottom-modal.active {
    display: flex;
}




.bottom-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}




.bottom-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}




.bottom-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}




.bottom-modal-header:active {
    cursor: grabbing;
}




.bottom-modal-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    transition: all 0.2s ease;
}




.bottom-modal-header:hover .bottom-modal-handle {
    background: rgba(255, 255, 255, 0.6);
    width: 50px;
}




.bottom-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f9fafb;
    transition: all 0.3s ease;
}




.bottom-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}




.bottom-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}




@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}




.price-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid;
    transition: all 0.3s ease;
}




.price-badge.affordable {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(56, 142, 60, 0.2));
    border-color: rgba(76, 175, 80, 0.4);
}




.price-badge.not-affordable {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
}




.price-badge.affordable .price-value {
    color: #4CAF50;
}




.price-badge.not-affordable .price-value {
    color: #f44;
}




.checkout-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}




.checkout-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}




.checkout-btn.disabled {
    background: linear-gradient(135deg, #555, #444);
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}




.unavailable-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}




.notification-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    min-width: 180px;
}




.notification-btn.secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    margin-right: 12px;
}




.notification-btn.secondary:hover {
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}




#telegramConnectModal .notification-btn.primary,
#kodariConnectModal .notification-btn.primary {
    background: linear-gradient(135deg, #0088cc 0%, #0066cc 100%);
    padding: 14px 28px;
    font-size: 15px;
}




#telegramConnectModal .notification-btn.primary:hover,
#kodariConnectModal .notification-btn.primary:hover {
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4);
    transform: translateY(-2px);
}




#kodariConnectModal .notification-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}




#kodariConnectModal .notification-btn.primary:hover {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}




#telegramConnectModal .notification-overlay,
#kodariConnectModal .notification-overlay {
    cursor: default;
    pointer-events: none;
}




#telegramConnectModal .notification-message,
#kodariConnectModal .notification-message {
    font-size: 15px;
    line-height: 1.6;
    color: #d1d5db;
    text-align: left;
    padding: 0;
    margin: 0;
}




@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}




.file-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}




.file-preview-modal.active {
    opacity: 1;
}




.close-preview-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}




.close-preview-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}




.close-preview-btn:active {
    transform: rotate(90deg) scale(0.95);
}




.preview-download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}




.preview-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}




.preview-download-btn:active {
    transform: translateY(0);
}




.full-load-btn {
    padding-right: 12px;
}




.toggle-switch {
    width: 28px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    position: relative;
    transition: background 0.3s ease;
    margin-left: 4px;
}




.toggle-knob {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}




.full-load-btn.active .toggle-switch {
    background: #10b981;
}




.full-load-btn.active .toggle-knob {
    transform: translateX(12px);
}




.warning-modal-content {
    text-align: center;
    padding: 32px 24px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: auto !important;
}




.warning-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}




.warning-modal-content p {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}




.warning-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}




.warning-actions button:active {
    transform: scale(0.98);
}




.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}




.confirm-btn {
    background: #f59e0b;
    color: #000000;
}




.advanced-filter-dropdown {
    z-index: 1000 !important;
}




.advanced-filter-dropdown {
    z-index: 10001 !important;
}




.notifications-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    position: relative;
}




.notifications-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}




.notifications-btn:active {
    transform: scale(0.95);
}




.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #3b82f6;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}




.support-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}




@keyframes rotate-dashed {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}




@keyframes color-cycle {
    0% {
        border-color: #3b82f6;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    }

    25% {
        border-color: #ec4899;
        box-shadow: 0 0 8px rgba(236, 72, 153, 0.3);
    }

    50% {
        border-color: #8b5cf6;
        box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
    }

    75% {
        border-color: #06b6d4;
        box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
    }

    100% {
        border-color: #3b82f6;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    }
}




@keyframes slideUpBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}




@keyframes fadeInModal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}




.file-preview-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 20000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}




.file-preview-modal.active {
    opacity: 1;
    visibility: visible;
}




.file-preview-modal.active .file-preview-container {
    transform: scale(1);
}




.close-preview-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    border-radius: 8px;
}




.close-preview-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}




.preview-download-btn {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}




.preview-download-btn:hover {
    background: #2563eb;
}




.toggle-switch {
    display: flex;
    align-items: center;
    position: relative;
    width: 240px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}




.toggle-input {
    display: none;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}




.toggle-label {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}




.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    bottom: 2px;
    width: calc(50% - 2px);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}




.toggle-input:checked+.toggle-label .toggle-slider {
    transform: translateX(100%);
}




.toggle-text-left,
.toggle-text-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}




.toggle-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
    margin: 0 !important;
}




.toggle-input:not(:checked)+.toggle-label .toggle-text-left {
    color: #ffffff;
}




.toggle-input:not(:checked)+.toggle-label .toggle-text-left .toggle-icon {
    opacity: 1;
}




.toggle-input:checked+.toggle-label .toggle-text-right {
    color: #ffffff;
}




.toggle-input:checked+.toggle-label .toggle-text-right .toggle-icon {
    opacity: 1;
}




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




.full-load-btn .toggle-switch {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    margin-left: 8px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}




.full-load-btn.active .toggle-switch {
    background: #3b82f6;
    border-color: #3b82f6;
}




.full-load-btn .toggle-knob {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}




.full-load-btn.active .toggle-knob {
    transform: translateX(16px);
}




.full-load-btn:hover .toggle-switch {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}




.full-load-btn.active:hover .toggle-switch {
    border-color: #2563eb;
    background: #2563eb;
}

@media (min-width: 768px) {

    .modal-content,
    .bottom-sheet {
        max-width: 500px;
        margin: auto;
        border-radius: 20px !important;
    }
}

@media (min-width: 1024px) {

    .modal-content,
    .bottom-sheet {
        max-width: 600px;
    }
}
