.challenges-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(12px, 2vw, 16px);
    margin-bottom: clamp(20px, 3vw, 28px);
    padding: clamp(16px, 2.5vw, 20px);
    border-radius: 18px;
    border: 1px solid var(--white-15);
    backdrop-filter: blur(12px);
}

.dark-theme .challenges-filters {
    background: var(--dark-primary-08);
    border-color: var(--dark-primary-20);
}

.light-theme .challenges-filters {
    background: var(--light-primary-08);
    border-color: var(--light-primary-20);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 800;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: clamp(10px, 1.5vw, 12px) clamp(12px, 2vw, 14px);
    border-radius: 12px;
    border: 1px solid var(--white-15);
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 700;
    transition: all 0.3s ease;
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(10px, 1.5vw, 12px) center;
    padding-right: clamp(32px, 4vw, 36px);
    cursor: pointer;
}

.dark-theme .filter-group select {
    background-color: var(--dark-primary-08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    color: var(--white);
    border-color: var(--dark-primary-20);
}

.light-theme .filter-group select {
    background-color: var(--light-primary-08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    color: var(--black);
    border-color: var(--light-primary-20);
}

.dark-theme .filter-group input[type="text"] {
    background: var(--dark-primary-08);
    color: var(--white);
    border-color: var(--dark-primary-20);
}

.light-theme .filter-group input[type="text"] {
    background: var(--light-primary-08);
    color: var(--black);
    border-color: var(--light-primary-20);
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
}

.dark-theme .filter-group select:focus,
.dark-theme .filter-group input[type="text"]:focus {
    border-color: var(--dark-primary-40);
    box-shadow: 0 0 20px var(--dark-primary-20);
}

.light-theme .filter-group select:focus,
.light-theme .filter-group input[type="text"]:focus {
    border-color: var(--light-primary-40);
    box-shadow: 0 0 20px var(--light-primary-20);
}

.filter-group input[type="text"]::placeholder {
    opacity: 0.6;
}

.filter-group select option {
    padding: clamp(8px, 1.2vw, 10px);
    font-weight: 700;
}

.dark-theme .filter-group select option {
    background: var(--dropdown-option-dark-bg);
    color: var(--white);
}

.light-theme .filter-group select option {
    background: var(--dropdown-option-light-bg);
    color: var(--black);
}

.dark-theme .filter-group select option:hover {
    background: var(--dropdown-option-dark-hover-bg);
}

.light-theme .filter-group select option:hover {
    background: var(--dropdown-option-light-hover-bg);
}

.dark-theme .filter-group select option:checked {
    background: var(--dropdown-option-dark-checked-bg);
    font-weight: 800;
}

.light-theme .filter-group select option:checked {
    background: var(--dropdown-option-light-checked-bg);
    color: var(--white);
    font-weight: 800;
}

.type-info-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid;
}

.dark-theme .type-info-btn {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
    border-color: var(--dark-primary-40);
}

.light-theme .type-info-btn {
    background: var(--light-primary-15);
    color: var(--light-primary);
    border-color: var(--light-primary-40);
}

.type-info-btn:hover {
    transform: scale(1.15);
}

.dark-theme .type-info-btn:hover {
    background: var(--dark-primary-25);
    border-color: var(--dark-secondary);
}

.light-theme .type-info-btn:hover {
    background: var(--light-primary-25);
    border-color: var(--light-primary);
}

.author-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 800;
    text-transform: lowercase;
}

.dark-theme .author-tag {
    background: var(--dark-primary-20);
    color: var(--dark-secondary);
    border: 1px solid var(--dark-primary-30);
}

.light-theme .author-tag {
    background: var(--light-primary-20);
    color: var(--light-primary);
    border: 1px solid var(--light-primary-30);
}

.challenges-table {
    border-radius: 18px;
    border: 1px solid var(--white-15);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.dark-theme .challenges-table {
    background: var(--dark-primary-08);
    border-color: var(--dark-primary-20);
}

.light-theme .challenges-table {
    background: var(--light-primary-08);
    border-color: var(--light-primary-20);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 0.8fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.6fr;
    gap: clamp(12px, 2vw, 20px);
    padding: clamp(16px, 2.5vw, 20px) clamp(20px, 3vw, 24px);
    border-bottom: 1px solid var(--white-10);
    transition: all 0.3s ease;
    align-items: center;
}

.dark-theme .table-row {
    border-bottom-color: var(--dark-primary-15);
}

.light-theme .table-row {
    border-bottom-color: var(--light-primary-15);
}

.table-row:last-child {
    border-bottom: none;
}

.table-header-row {
    font-weight: 900;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-theme .table-header-row {
    background: var(--dark-primary-12);
    border-bottom-color: var(--dark-primary-25);
}

.light-theme .table-header-row {
    background: var(--light-primary-12);
    border-bottom-color: var(--light-primary-25);
}

.table-row.clickable {
    cursor: pointer;
}

.table-row.clickable:hover {
    transform: translateX(4px);
}

.dark-theme .table-row.clickable:hover {
    background: var(--dark-primary-12);
}

.light-theme .table-row.clickable:hover {
    background: var(--light-primary-12);
}

.table-cell {
    font-weight: 700;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
}

.points-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 900;
    letter-spacing: 0.03em;
    border: 1.5px solid;
}

.dark-theme .points-tag {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
    border-color: var(--dark-primary-40);
}

.light-theme .points-tag {
    background: var(--light-primary-15);
    color: var(--light-primary);
    border-color: var(--light-primary-40);
}

.challenge-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: clamp(0.6rem, 0.95vw, 0.7rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-block;
}

.challenge-badge.easy {
    background: var(--success-light);
    color: var(--success-primary);
    border: 1px solid var(--success-border);
}

.challenge-badge.medium {
    background: var(--warning-light);
    color: var(--warning-secondary);
    border: 1px solid var(--warning-border);
}

.challenge-badge.hard {
    background: var(--error-light);
    color: var(--error-primary);
    border: 1px solid var(--error-border);
}

.challenge-badge.leader {
    background: var(--warning-light);
    color: var(--warning-secondary);
    border: 1px solid var(--warning-border);
}

.challenge-badge.member {
    background: var(--info-light);
    color: var(--info-primary);
    border: 1px solid var(--info-border);
}

.challenge-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: clamp(0.6rem, 0.95vw, 0.7rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.challenge-type.normal {
    background: var(--info-light);
    color: var(--info-primary);
    border: 1px solid var(--info-border);
}

.challenge-type.serial {
    background: var(--warning-light);
    color: var(--warning-secondary);
    border: 1px solid var(--warning-border);
}

.challenge-type.mini {
    background: var(--success-light);
    color: var(--success-primary);
    border: 1px solid var(--success-border);
}

.challenge-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.challenge-status.unsolved {
    background: var(--info-light);
    color: var(--info-primary);
    border: 1px solid var(--info-border);
}

.challenge-status.in-progress {
    background: var(--warning-light);
    color: var(--warning-secondary);
    border: 1px solid var(--warning-border);
}

.challenge-status.solved {
    background: var(--success-light);
    color: var(--success-primary);
    border: 1px solid var(--success-border);
}

.assign-btn {
    width: clamp(32px, 4vw, 36px);
    height: clamp(32px, 4vw, 36px);
    border-radius: 50%;
    border: 1px solid var(--white-15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark-theme .assign-btn {
    background: var(--dark-primary-12);
    color: var(--dark-secondary);
    border-color: var(--dark-primary-30);
}

.light-theme .assign-btn {
    background: var(--light-primary-12);
    color: var(--light-primary);
    border-color: var(--light-primary-30);
}

.assign-btn .assign-icon {
    width: clamp(16px, 2vw, 18px);
    height: clamp(16px, 2vw, 18px);
}

.assign-btn .assign-avatar {
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.dark-theme .assign-btn.has-assignment {
    background: var(--dark-primary-20);
    border-color: var(--dark-primary-40);
}

.light-theme .assign-btn.has-assignment {
    background: var(--light-primary-20);
    border-color: var(--light-primary-40);
}

.assign-btn:hover {
    transform: scale(1.1);
}

.dark-theme .assign-btn:hover {
    background: var(--dark-primary-20);
    border-color: var(--dark-primary-40);
    box-shadow: 0 4px 12px var(--dark-primary-20);
}

.light-theme .assign-btn:hover {
    background: var(--light-primary-20);
    border-color: var(--light-primary-40);
    box-shadow: 0 4px 12px var(--light-primary-20);
}

.assigned-members-list {
    margin-bottom: clamp(16px, 2.5vw, 20px);
    padding: clamp(12px, 2vw, 16px);
    border-radius: 14px;
}

.dark-theme .assigned-members-list {
    background: var(--white-03);
    border: 1px solid var(--white-10);
}

.light-theme .assigned-members-list {
    background: var(--black-02);
    border: 1px solid var(--black-08);
}

.assigned-members-list h4 {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.members-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-members,
.no-questions {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 600;
    padding: clamp(12px, 2vw, 16px);
    border-radius: 12px;
    text-align: center;
}

.dark-theme .no-members,
.dark-theme .no-questions {
    background: var(--white-04);
    border: 1px dashed var(--white-15);
    color: var(--white-50);
}

.light-theme .no-members,
.light-theme .no-questions {
    background: var(--black-03);
    border: 1px dashed var(--black-15);
    color: var(--black-50);
}

.assigned-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 2vw, 14px) clamp(14px, 2.2vw, 16px);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dark-theme .assigned-member-item {
    background: var(--white-06);
    border: 1px solid var(--white-12);
}

.light-theme .assigned-member-item {
    background: var(--black-04);
    border: 1px solid var(--black-10);
}

.dark-theme .assigned-member-item:hover {
    background: var(--white-08);
    border-color: var(--white-18);
}

.light-theme .assigned-member-item:hover {
    background: var(--black-06);
    border-color: var(--black-15);
}

.member-info {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 12px);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

.member-info .team-avatar {
    width: clamp(28px, 3.5vw, 32px);
    height: clamp(28px, 3.5vw, 32px);
    font-size: clamp(0.65rem, 1vw, 0.75rem);
}

.remove-member-btn {
    width: clamp(24px, 3vw, 28px);
    height: clamp(24px, 3vw, 28px);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--error-light);
    color: var(--error-primary);
}

.remove-member-btn svg {
    width: clamp(12px, 1.5vw, 14px);
    height: clamp(12px, 1.5vw, 14px);
}

.remove-member-btn:hover {
    transform: scale(1.1);
    background: var(--error-primary);
    color: var(--white);
}

.challenge-questions {
    margin-top: clamp(20px, 3vw, 24px);
}

.dark-theme .challenge-questions {
    border-top-color: var(--dark-primary-15);
}

.light-theme .challenge-questions {
    border-top-color: var(--light-primary-15);
}

.flag-submission {
    margin-top: clamp(20px, 3vw, 28px);
    padding-top: clamp(20px, 3vw, 28px);
    padding-bottom: clamp(20px, 3vw, 28px);
    border-top: 1px solid var(--white-10);
    border-bottom: 1px solid var(--white-10);
}

.dark-theme .flag-submission {
    border-top-color: var(--dark-primary-15);
    border-bottom-color: var(--dark-primary-15);
}

.light-theme .flag-submission {
    border-top-color: var(--light-primary-15);
    border-bottom-color: var(--light-primary-15);
}

.challenge-questions h4 {
    margin-bottom: clamp(16px, 2.5vw, 20px);
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-item {
    padding: clamp(14px, 2.2vw, 16px);
    border-radius: 14px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.dark-theme .question-item {
    background: var(--white-04);
    border-color: var(--white-12);
}

.light-theme .question-item {
    background: var(--black-03);
    border-color: var(--black-10);
}

.question-item.locked {
    opacity: 0.5;
}

.dark-theme .question-item.locked {
    background: var(--white-02);
    border-color: var(--white-08);
}

.light-theme .question-item.locked {
    background: var(--black-02);
    border-color: var(--black-06);
}

.question-item.locked .question-text {
    display: none;
}

.question-item.solved {
    border-width: 2px;
}

.dark-theme .question-item.solved {
    background: var(--success-light);
    border-color: var(--success-border);
}

.light-theme .question-item.solved {
    background: var(--success-light);
    border-color: var(--success-border);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.question-number {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 900;
    text-transform: uppercase;
}

.dark-theme .question-number {
    background: var(--dark-primary-20);
    color: var(--dark-secondary);
    border: 1px solid var(--dark-primary-30);
}

.light-theme .question-number {
    background: var(--light-primary-20);
    color: var(--light-primary);
    border: 1px solid var(--light-primary-30);
}

.question-points {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 900;
    background: var(--warning-light);
    color: var(--warning-secondary);
    border: 1px solid var(--warning-border);
}

.question-lock,
.question-check {
    margin-left: auto;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.question-lock {
    background: var(--error-light);
    color: var(--error-primary);
    border: 1px solid var(--error-border);
}

.question-check {
    background: var(--success-light);
    color: var(--success-primary);
    border: 1px solid var(--success-border);
}

.question-text {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.question-hint-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-theme .question-hint-btn {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
    border-color: var(--dark-primary-30);
}

.light-theme .question-hint-btn {
    background: var(--light-primary-15);
    color: var(--light-primary);
    border-color: var(--light-primary-30);
}

.question-hint-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.dark-theme .question-hint-btn:hover:not(:disabled) {
    background: var(--dark-primary-25);
    border-color: var(--dark-primary-40);
    box-shadow: 0 4px 12px var(--dark-primary-20);
}

.light-theme .question-hint-btn:hover:not(:disabled) {
    background: var(--light-primary-25);
    border-color: var(--light-primary-40);
    box-shadow: 0 4px 12px var(--light-primary-20);
}

.question-hint-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.question-hint-content {
    display: none;
    margin-top: 10px;
    padding: clamp(12px, 2vw, 14px);
    border-radius: 10px;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 600;
    line-height: 1.5;
}

.dark-theme .question-hint-content {
    background: var(--white-06);
    border: 1px solid var(--white-12);
    color: var(--white-90);
}

.light-theme .question-hint-content {
    background: var(--black-05);
    border: 1px solid var(--black-12);
    color: var(--black-90);
}

.question-hint-content.show {
    display: block;
}

.no-challenges-message {
    padding: clamp(40px, 6vw, 60px);
    text-align: center;
}

.no-challenges-message p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 700;
    opacity: 0.6;
}

.type-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-70);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.type-info-modal.show {
    display: flex;
}

.type-info-content {
    max-width: 700px;
    width: 100%;
    border-radius: 20px;
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid var(--white-15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.dark-theme .type-info-content {
    background: var(--dark-primary-08);
    border-color: var(--dark-primary-25);
}

.light-theme .type-info-content {
    background: var(--light-primary-08);
    border-color: var(--light-primary-25);
}

.type-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 3vw, 24px);
}

.type-info-header h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 900;
}

.type-info-close {
    width: clamp(32px, 4vw, 36px);
    height: clamp(32px, 4vw, 36px);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .type-info-close {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
}

.light-theme .type-info-close {
    background: var(--light-primary-15);
    color: var(--light-primary);
}

.type-info-close svg {
    width: clamp(16px, 2vw, 18px);
    height: clamp(16px, 2vw, 18px);
}

.type-info-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.dark-theme .type-info-close:hover {
    background: var(--dark-primary-25);
}

.light-theme .type-info-close:hover {
    background: var(--light-primary-25);
}

.type-info-item {
    padding: clamp(18px, 3vw, 22px);
    border-radius: 16px;
    margin-bottom: clamp(16px, 2.5vw, 20px);
    border: 1px solid;
}

.type-info-item:last-child {
    margin-bottom: 0;
}

.dark-theme .type-info-item {
    background: var(--white-04);
    border-color: var(--white-12);
}

.light-theme .type-info-item {
    background: var(--black-03);
    border-color: var(--black-10);
}

.type-info-item h4 {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-info-item .challenge-type {
    font-size: clamp(0.65rem, 1vw, 0.75rem);
}

.type-info-item p {
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
    color: var(--white);
}

.type-info-item p:last-child {
    margin-bottom: 0;
}

.type-info-item ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.type-info-item ul li {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 600;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
    color: var(--white);
}

.type-info-item ul li:before {
    content: "•";
    position: absolute;
    left: 6px;
    font-weight: 900;
}

.instance-container {
    padding: clamp(16px, 2.5vw, 20px);
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.dark-theme .instance-container {
    background: var(--white-04);
    border-color: var(--white-12);
}

.light-theme .instance-container {
    background: var(--black-03);
    border-color: var(--black-10);
}

.instance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
}

.instance-header .icon {
    width: clamp(18px, 2.5vw, 20px);
    height: clamp(18px, 2.5vw, 20px);
}

.instance-info,
.instance-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: clamp(12px, 2vw, 14px);
    border-radius: 10px;
}

.dark-theme .instance-info,
.dark-theme .instance-details {
    background: var(--white-06);
    border: 1px solid var(--white-10);
}

.light-theme .instance-info,
.light-theme .instance-details {
    background: var(--black-05);
    border: 1px solid var(--black-08);
}

.instance-address,
.instance-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

.instance-label {
    font-weight: 700;
    opacity: 0.8;
}

.instance-value {
    font-weight: 800;
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 6px;
}

.dark-theme .instance-value {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
}

.light-theme .instance-value {
    background: var(--light-primary-15);
    color: var(--light-primary);
}

.clickable-address {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-address:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.sidebar-tabs {
    display: flex;
    gap: 8px;
    padding: 0 clamp(20px, 3vw, 24px);
    margin-bottom: clamp(16px, 2.5vw, 20px);
    border-bottom: 2px solid;
}

.dark-theme .sidebar-tabs {
    border-bottom-color: var(--dark-primary-20);
}

.light-theme .sidebar-tabs {
    border-bottom-color: var(--light-primary-20);
}

.sidebar-tab {
    padding: clamp(10px, 1.5vw, 12px) clamp(16px, 2.5vw, 20px);
    border: none;
    background: transparent;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.dark-theme .sidebar-tab {
    color: var(--white-70);
}

.light-theme .sidebar-tab {
    color: var(--black-70);
}

.sidebar-tab:hover {
    background: var(--white-05);
}

.dark-theme .sidebar-tab:hover {
    color: var(--white-90);
}

.light-theme .sidebar-tab:hover {
    color: var(--black-90);
}

.sidebar-tab.active {
    font-weight: 900;
}

.dark-theme .sidebar-tab.active {
    color: var(--dark-secondary);
}

.light-theme .sidebar-tab.active {
    color: var(--light-primary);
}

.sidebar-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
}

.dark-theme .sidebar-tab.active::after {
    background: var(--dark-secondary);
}

.light-theme .sidebar-tab.active::after {
    background: var(--light-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.solves-table-container {
    margin-top: clamp(16px, 2.5vw, 20px);
}

.solves-table {
    border-radius: 14px;
    border: 1px solid;
    overflow: hidden;
}

.dark-theme .solves-table {
    background: var(--dark-primary-08);
    border-color: var(--dark-primary-20);
}

.light-theme .solves-table {
    background: var(--light-primary-08);
    border-color: var(--light-primary-20);
}

.solves-table-row {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr 1.5fr 1fr;
    gap: clamp(12px, 2vw, 16px);
    padding: clamp(14px, 2.2vw, 16px) clamp(18px, 2.8vw, 20px);
    border-bottom: 1px solid;
    transition: all 0.3s ease;
    align-items: center;
}

.dark-theme .solves-table-row {
    border-bottom-color: var(--dark-primary-15);
}

.light-theme .solves-table-row {
    border-bottom-color: var(--light-primary-15);
}

.solves-table-row:last-child {
    border-bottom: none;
}

.solves-header-row {
    font-weight: 900;
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-theme .solves-header-row {
    background: var(--dark-primary-12);
    border-bottom-color: var(--dark-primary-25);
}

.light-theme .solves-header-row {
    background: var(--light-primary-12);
    border-bottom-color: var(--light-primary-25);
}

.solves-table-row:not(.solves-header-row):hover {
    transform: translateX(2px);
}

.dark-theme .solves-table-row:not(.solves-header-row):hover {
    background: var(--dark-primary-10);
}

.light-theme .solves-table-row:not(.solves-header-row):hover {
    background: var(--light-primary-10);
}

.solves-table-cell {
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

.solve-rank {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 900;
    letter-spacing: 0.03em;
    border: 1.5px solid;
}

.dark-theme .solve-rank {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
    border-color: var(--dark-primary-40);
}

.light-theme .solve-rank {
    background: var(--light-primary-15);
    color: var(--light-primary);
    border-color: var(--light-primary-40);
}

.solve-user,
.solve-team {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dark-theme .solve-user,
.dark-theme .solve-team {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
    border: 1.5px solid var(--dark-primary-40);
}

.light-theme .solve-user,
.light-theme .solve-team {
    background: var(--light-primary-15);
    color: var(--light-primary);
    border: 1.5px solid var(--light-primary-40);
}

.solve-user:hover,
.solve-team:hover {
    transform: translateY(-2px);
}

.dark-theme .solve-user:hover,
.dark-theme .solve-team:hover {
    background: var(--dark-primary-25);
    box-shadow: 0 4px 12px var(--dark-primary-20);
}

.light-theme .solve-user:hover,
.light-theme .solve-team:hover {
    background: var(--light-primary-25);
    box-shadow: 0 4px 12px var(--light-primary-20);
}

.solve-time {
    font-family: monospace;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}

.dark-theme .solve-time {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
    border: 1px solid var(--dark-primary-30);
}

.light-theme .solve-time {
    background: var(--light-primary-15);
    color: var(--light-primary);
    border: 1px solid var(--light-primary-30);
}

.no-solves {
    padding: clamp(40px, 6vw, 60px);
    text-align: center;
}

.no-solves p {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    font-weight: 700;
    opacity: 0.6;
}

.solves-search-container {
    padding: 0 clamp(20px, 3vw, 24px) clamp(16px, 2.5vw, 20px);
}

.solves-search-input {
    width: 100%;
    padding: clamp(10px, 1.5vw, 12px) clamp(14px, 2.2vw, 16px);
    border-radius: 12px;
    border: 1px solid;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 700;
    transition: all 0.3s ease;
}

.dark-theme .solves-search-input {
    background: var(--dark-primary-12);
    color: var(--white);
    border-color: var(--dark-primary-30);
}

.light-theme .solves-search-input {
    background: var(--light-primary-12);
    color: var(--black);
    border-color: var(--light-primary-30);
}

.solves-search-input::placeholder {
    opacity: 0.6;
}

.solves-search-input:focus {
    outline: none;
}

.dark-theme .solves-search-input:focus {
    border-color: var(--dark-primary-40);
    box-shadow: 0 0 20px var(--dark-primary-20);
}

.light-theme .solves-search-input:focus {
    border-color: var(--light-primary-40);
    box-shadow: 0 0 20px var(--light-primary-20);
}

.solves-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 20px);
    padding: clamp(20px, 3vw, 24px);
}

.pagination-btn {
    width: clamp(36px, 4.5vw, 40px);
    height: clamp(36px, 4.5vw, 40px);
    border-radius: 50%;
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .pagination-btn {
    background: var(--dark-primary-12);
    color: var(--dark-secondary);
    border-color: var(--dark-primary-30);
}

.light-theme .pagination-btn {
    background: var(--light-primary-12);
    color: var(--light-primary);
    border-color: var(--light-primary-30);
}

.pagination-btn svg {
    width: clamp(18px, 2.5vw, 20px);
    height: clamp(18px, 2.5vw, 20px);
}

.pagination-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.dark-theme .pagination-btn:hover:not(:disabled) {
    background: var(--dark-primary-20);
    border-color: var(--dark-primary-40);
    box-shadow: 0 4px 12px var(--dark-primary-20);
}

.light-theme .pagination-btn:hover:not(:disabled) {
    background: var(--light-primary-20);
    border-color: var(--light-primary-40);
    box-shadow: 0 4px 12px var(--light-primary-20);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    font-weight: 800;
    padding: clamp(8px, 1.2vw, 10px) clamp(16px, 2.5vw, 20px);
    border-radius: 10px;
}

.dark-theme .pagination-info {
    background: var(--dark-primary-15);
    color: var(--dark-secondary);
}

.light-theme .pagination-info {
    background: var(--light-primary-15);
    color: var(--light-primary);
}

.instance-actions {
    display: flex;
    gap: 8px;
}

.instance-btn,
.instance-action-btn {
    flex: 1;
    padding: clamp(10px, 1.5vw, 12px);
    border-radius: 10px;
    border: 1px solid;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.create-instance-btn {
    background: linear-gradient(135deg, var(--info-primary), var(--info-secondary));
    color: var(--white);
    border-color: var(--info-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 12px);
    padding: clamp(12px, 2vw, 14px) clamp(14px, 2.2vw, 16px);
    border-radius: 12px;
    text-decoration: none;
}

.create-instance-btn .icon {
    width: clamp(18px, 2.5vw, 20px);
    height: clamp(18px, 2.5vw, 20px);
    flex-shrink: 0;
}

.create-instance-btn:hover {
    transform: translateY(-2px);
}

.dark-theme .create-instance-btn:hover {
    box-shadow: 0 8px 16px rgba(147, 51, 234, 0.3);
}

.light-theme .create-instance-btn:hover {
    box-shadow: 0 8px 16px rgba(234, 179, 8, 0.3);
}

.restart-btn {
    background: var(--warning-light);
    color: var(--warning-secondary);
    border-color: var(--warning-border);
}

.restart-btn:hover {
    transform: translateY(-2px);
    background: var(--warning-secondary);
    color: var(--white);
}

.add-time-btn {
    background: var(--success-light);
    color: var(--success-primary);
    border-color: var(--success-border);
}

.add-time-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    background: var(--success-primary);
    color: var(--white);
}

.add-time-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.close-btn {
    background: var(--error-light);
    color: var(--error-primary);
    border-color: var(--error-border);
}

.close-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--error-primary);
    color: var(--white);
}

.instance-btn:disabled,
.instance-action-btn:disabled,
.close-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.instance-btn:disabled:hover,
.instance-action-btn:disabled:hover,
.close-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
}

.dark-theme .progress-bar {
    background: var(--white-10);
}

.light-theme .progress-bar {
    background: var(--black-10);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.dark-theme .progress-fill {
    background: linear-gradient(135deg, var(--dark-primary), var(--dark-secondary));
}

.light-theme .progress-fill {
    background: linear-gradient(135deg, var(--light-primary), var(--light-secondary));
}

.instance-error {
    margin-top: 10px;
    padding: clamp(10px, 1.5vw, 12px);
    border-radius: 10px;
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 700;
    background: var(--error-light);
    color: var(--error-primary);
    border: 1px solid var(--error-border);
    text-align: center;
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 24px);
    border-radius: 12px;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    font-weight: 800;
    background: var(--success-primary);
    color: var(--white);
    box-shadow: 0 8px 24px var(--black-20);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.styled-select {
    appearance: none;
    padding: clamp(12px, 2vw, 14px) clamp(16px, 2.5vw, 18px);
    border-radius: 14px;
    border: 1.5px solid;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background-repeat: no-repeat;
    background-position: right clamp(14px, 2vw, 16px) center;
    padding-right: clamp(40px, 5vw, 44px);
    background-size: clamp(14px, 2vw, 16px);
}

.dark-theme .styled-select {
    background-color: var(--dark-primary-12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23a855f7' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    color: var(--white);
    border-color: var(--dark-primary-30);
}

.light-theme .styled-select {
    background-color: var(--light-primary-12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23f59e0b' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    color: var(--black);
    border-color: var(--light-primary-30);
}

.styled-select:hover {
    transform: translateY(-2px);
}

.dark-theme .styled-select:hover {
    background-color: var(--dark-primary-15);
    border-color: var(--dark-primary-40);
    box-shadow: 0 6px 20px var(--dark-primary-20);
}

.light-theme .styled-select:hover {
    background-color: var(--light-primary-15);
    border-color: var(--light-primary-40);
    box-shadow: 0 6px 20px var(--light-primary-20);
}

.styled-select:focus {
    outline: none;
    transform: translateY(0);
}

.dark-theme .styled-select:focus {
    border-color: var(--dark-secondary);
    box-shadow: 0 0 0 3px var(--dark-primary-15);
}

.light-theme .styled-select:focus {
    border-color: var(--light-secondary);
    box-shadow: 0 0 0 3px var(--light-primary-15);
}

.styled-select option {
    padding: clamp(10px, 1.5vw, 12px);
    font-weight: 700;
}

.dark-theme .styled-select option {
    background: var(--dropdown-option-dark-bg);
    color: var(--white);
}

.light-theme .styled-select option {
    background: var(--dropdown-option-light-bg);
    color: var(--black);
}

.dark-theme .styled-select option:hover {
    background: var(--dropdown-option-dark-hover-bg);
}

.light-theme .styled-select option:hover {
    background: var(--dropdown-option-light-hover-bg);
}

.dark-theme .styled-select option:checked {
    background: var(--dropdown-option-dark-checked-bg);
    font-weight: 800;
}

.light-theme .styled-select option:checked {
    background: var(--dropdown-option-light-checked-bg);
    color: var(--white);
    font-weight: 800;
}

.no-resources {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 600;
    padding: clamp(14px, 2.2vw, 16px);
    border-radius: 12px;
    text-align: center;
}

.dark-theme .no-resources {
    background: var(--white-04);
    border: 1px dashed var(--white-15);
    color: var(--white-50);
}

.light-theme .no-resources {
    background: var(--black-03);
    border: 1px dashed var(--black-15);
    color: var(--black-50);
}

.instance-info-box {
    padding: clamp(16px, 2.5vw, 20px);
    border-radius: 14px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.dark-theme .instance-info-box {
    background: var(--white-04);
    border-color: var(--white-12);
}

.light-theme .instance-info-box {
    background: var(--black-03);
    border-color: var(--black-10);
}

.instance-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
}

.instance-info-header .icon {
    width: clamp(18px, 2.5vw, 20px);
    height: clamp(18px, 2.5vw, 20px);
}

@media (max-width: 1024px) {
    .table-row {
        grid-template-columns: 2fr 1fr 0.8fr 1fr 0.8fr;
    }
    
    .table-cell:nth-child(6),
    .table-cell:nth-child(7),
    .table-cell:nth-child(8),
    .table-cell:nth-child(9) {
        display: none;
    }
}

@media (max-width: 768px) {
    .table-row {
        grid-template-columns: 2fr 1fr 1fr;
        gap: clamp(8px, 1.5vw, 12px);
    }
    
    .table-cell:nth-child(4),
    .table-cell:nth-child(5),
    .table-cell:nth-child(6),
    .table-cell:nth-child(7),
    .table-cell:nth-child(8),
    .table-cell:nth-child(9) {
        display: none;
    }
    
    .challenges-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .table-row {
        padding: clamp(12px, 2vw, 16px);
    }
}