body {
	font-family: 'Roboto', sans-serif;
	background: var(--gray900, #040519);
	color: var(--gray200, #B2B2C1);
	margin: 0;
	padding: 20px;
	line-height: 1.6;
}

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

h1, h2 {
	text-align: center;
	color: var(--gray50, #F4F4F4);
	margin-bottom: 30px;
}

.search-section {
	display: flex;
	gap: 10px;
	margin: 20px 0;
	background: var(--gray700-default, #1D1D37);
	padding: 20px;
	border-radius: var(--radiusInput, 7px);
	border: var(--borderInput, 1px solid) var(--gray600, #2B2B40);
}

input {
	flex: 1;
	padding: 12px;
	border: var(--borderInput, 1px solid) var(--gray600, #2B2B40);
	background: var(--gray800, #0B0D2A);
	color: var(--gray200, #B2B2C1);
	border-radius: var(--radiusInput, 7px);
	font-size: 16px;
	transition: all 0.2s ease;
}

input:focus {
	border-color: var(--primary, #4A35CF);
	box-shadow: 0 0 0 2px rgba(74, 53, 207, 0.2);
	outline: none;
}

button {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	color: #fff;
}

button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		120deg,
		transparent,
		rgba(255, 255, 255, 0.1),
		transparent
	);
	transition: 0.5s;
}

button:hover::before {
	left: 100%;
}

.primary-btn {
	background: #00bc8c;
	box-shadow: 0 2px 4px rgba(0, 188, 140, 0.2);
	position: relative;
}

.primary-btn.loading {
	background: #2d3341;
	color: transparent;
	pointer-events: none;
}

.primary-btn.loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin: -8px 0 0 -8px;
	border: 2px solid #00bc8c;
	border-right-color: transparent;
	border-radius: 50%;
	animation: button-loading-spinner 0.75s linear infinite;
}

@keyframes button-loading-spinner {
	from {
		transform: rotate(0turn);
	}
	to {
		transform: rotate(1turn);
	}
}

.primary-btn.added {
	background: #2d3341;
	color: #00bc8c;
	border: 1px solid #00bc8c;
	pointer-events: none;
}

.primary-btn.added::before {
	content: "✓";
	margin-right: 4px;
}

.primary-btn:hover {
	background: #00d6a1;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 188, 140, 0.3);
}

.secondary-btn {
	background: #3c4655;
	box-shadow: 0 2px 4px rgba(60, 70, 85, 0.2);
}

.secondary-btn:hover {
	background: #4a5568;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(60, 70, 85, 0.3);
}

.danger-btn {
	background: #e74c3c;
	box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.danger-btn:hover {
	background: #f55a4e;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.results-section, .selected-mods {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	background: var(--gray700-default, #1D1D37);
	padding: 30px;
	border-radius: var(--radiusInput, 7px);
	margin-top: 20px;
	border: var(--borderInput, 1px solid) var(--gray600, #2B2B40);
	backdrop-filter: blur(16px);
}

.mod-item {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: var(--borderInput, 1px solid) var(--gray600, #2B2B40);
	border-radius: var(--radiusInput, 7px);
	background: var(--gray800, #0B0D2A);
	transition: all 0.3s ease;
	min-height: 320px;
	position: relative;
	backdrop-filter: blur(16px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mod-item:hover {
	transform: translateY(-4px);
	border-color: var(--primary, #4A35CF);
	box-shadow: 0 8px 16px rgba(74, 53, 207, 0.15);
}

.mod-item-content {
	display: flex;
	flex-direction: column;
	gap: 15px;
	height: 100%;
}

.mod-image {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: var(--radiusInput, 7px);
	background: var(--gray900, #040519);
	transition: all 0.3s ease;
}

.mod-item:hover .mod-image {
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(74, 53, 207, 0.2);
}

.mod-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mod-title {
	color: var(--gray50, #F4F4F4);
	font-size: 18px;
	font-weight: 500;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease;
}

.mod-item:hover .mod-title {
	color: var(--primary, #4A35CF);
}

.mod-id {
	color: var(--gray400, #5E5E7F);
	font-size: 13px;
	margin: 0;
}

.mod-actions {
	display: flex;
	gap: 12px;
	margin-top: auto;
	padding-top: 20px;
	flex-wrap: wrap;
	border-top: 1px solid var(--gray600, #2B2B40);
}

.mod-actions button {
	flex: 1;
	min-width: 0;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--radiusInput, 7px);
	transition: all 0.3s ease;
}

.mod-dependencies {
	margin-top: 15px;
	padding: 15px;
	background: var(--gray700-default, #1D1D37);
	border-radius: var(--radiusInput, 7px);
	font-size: 13px;
	border: 1px solid var(--gray600, #2B2B40);
	transition: all 0.3s ease;
}

.mod-dependencies:hover {
	border-color: var(--primary, #4A35CF);
	background: var(--gray800, #0B0D2A);
}

.dependencies-count {
	color: var(--primary, #4A35CF);
	font-weight: 500;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dependencies-count::before {
	content: "⚡";
	font-size: 16px;
	color: var(--primary, #4A35CF);
}

.dependencies-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.mod-dependencies:hover .dependencies-list {
	max-height: 300px;
	overflow-y: auto;
	padding-right: 8px;
}

.dependencies-list::-webkit-scrollbar {
	width: 4px;
}

.dependencies-list::-webkit-scrollbar-track {
	background: var(--gray700-default, #1D1D37);
	border-radius: 2px;
}

.dependencies-list::-webkit-scrollbar-thumb {
	background: var(--primary, #4A35CF);
	border-radius: 2px;
}

.dependency-item {
	padding: 8px;
	border-bottom: 1px solid var(--gray600, #2B2B40);
	font-size: 12px;
	color: var(--gray300, #8282A4);
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.2s ease;
}

.dependency-item:hover {
	background: rgba(74, 53, 207, 0.1);
	color: var(--gray50, #F4F4F4);
	border-radius: 4px;
}

.dependency-name {
	color: var(--gray200, #B2B2C1);
	transition: color 0.2s ease;
}

.dependency-id {
	color: var(--gray400, #5E5E7F);
	font-size: 11px;
	transition: color 0.2s ease;
}

.dependency-item:hover .dependency-name {
	color: var(--gray50, #F4F4F4);
}

.dependency-item:hover .dependency-id {
	color: var(--primary, #4A35CF);
}

.generate-btn {
	width: 100%;
	margin-top: 20px;
	background: var(--primary, #4A35CF);
	color: var(--gray50, #F4F4F4);
	border: none;
	padding: 12px 24px;
	border-radius: var(--radiusInput, 7px);
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.generate-btn:hover {
	background: color-mix(in srgb, var(--primary) 80%, white);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(74, 53, 207, 0.2);
}

.loading, .error, .no-results, .no-mods {
	text-align: center;
	padding: 20px;
	color: #888;
}

.error {
	color: #ff6b6b;
}

.loading {
	color: #449EBD;
}

@media (max-width: 1400px) {
	.results-section, .selected-mods {
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	}
}

@media (max-width: 1100px) {
	.results-section, .selected-mods {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
	
	.mod-item {
		min-height: 280px;
	}
	
	.mod-image {
		height: 100px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 10px;
	}
	
	.search-section {
		flex-direction: column;
	}
	
	button {
		width: 100%;
	}
	
	.results-section, .selected-mods {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		padding: 10px;
		gap: 15px;
	}
	
	.mod-item {
		padding: 10px;
		min-height: 260px;
	}
}

@media (max-width: 480px) {
	.results-section, .selected-mods {
		grid-template-columns: 1fr;
	}
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
}

.modal-content {
    background: var(--gray800, #0B0D2A);
    margin: 5% auto;
    padding: 30px;
    border: var(--borderInput, 1px solid) var(--gray600, #2B2B40);
    width: 90%;
    max-width: 900px;
    border-radius: var(--radiusInput, 7px);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Modal image styles */
.modal-image-container {
    width: 400px;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1a1a;
}

.modal-info {
    flex: 1;
    min-width: 300px;
}

.modal-info h2 {
    color: var(--gray50, #F4F4F4);
    margin: 0 0 20px 0;
    font-size: 24px;
    text-align: left;
}

/* BB-code styles */
.bb-header {
    color: var(--gray50, #F4F4F4);
    font-size: 20px;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray600, #2B2B40);
}

.mod-description {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 1.6;
    font-size: 15px;
}

.mod-description strong {
    color: var(--gray200, #B2B2C1);
    font-weight: 600;
}

.mod-description em {
    color: var(--gray300, #8282A4);
    font-style: italic;
}

.mod-description .underline {
    text-decoration: underline;
    text-decoration-color: var(--primary, #4A35CF);
    text-decoration-thickness: 2px;
}

/* Комбинации стилей */
.mod-description em strong,
.mod-description strong em {
    color: var(--gray200, #B2B2C1);
    font-weight: 600;
    font-style: italic;
}

.mod-description .underline strong,
.mod-description strong .underline {
    text-decoration: underline;
    text-decoration-color: var(--primary, #4A35CF);
    text-decoration-thickness: 2px;
    color: var(--gray200, #B2B2C1);
    font-weight: 600;
}

.mod-description .underline em,
.mod-description em .underline {
    text-decoration: underline;
    text-decoration-color: var(--primary, #4A35CF);
    text-decoration-thickness: 2px;
    color: var(--gray300, #8282A4);
    font-style: italic;
}

.mod-description .underline em strong,
.mod-description em .underline strong,
.mod-description strong .underline em,
.mod-description em strong .underline {
    text-decoration: underline;
    text-decoration-color: var(--primary, #4A35CF);
    text-decoration-thickness: 2px;
    color: var(--gray200, #B2B2C1);
    font-weight: 600;
    font-style: italic;
}

.indented-text {
    padding: 5px 0 5px 20px;
    position: relative;
    color: var(--gray300, #8282A4);
}

.indented-text::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--primary, #4A35CF);
}

/* Новые стили для контента */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.content-divider {
    border: 0;
    height: 1px;
    background: #444;
    margin: 20px 0;
}

.bb-header strong,
.bb-header em,
.bb-header .underline {
    color: inherit;
}

/* Группировка списков */
.indented-text + .indented-text {
    margin-top: 0;
}

.indented-text strong,
.indented-text em,
.indented-text .underline {
    color: inherit;
}

/* Стили для ссылок */
.mod-description a {
    color: var(--primary, #4A35CF);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mod-description a:hover {
    color: color-mix(in srgb, var(--primary) 80%, white);
    text-decoration: underline;
}

/* Стили для текста */
.mod-description br {
    margin-bottom: 10px;
    display: block;
    content: "";
}

.dependencies {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.dependencies h3 {
    color: var(--primary, #4A35CF);
    margin: 0 0 20px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dependencies h3::before {
    content: "⚡";
}

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

.dependency-item {
    padding: 4px 0;
    border-bottom: 1px solid #2d3341;
    font-size: 11px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dependency-item:hover {
    color: #fff;
    background: rgba(0, 188, 140, 0.1);
}

.dependency-item:hover .dependency-name {
    color: #fff;
}

.dependency-item:hover .dependency-id {
    color: #00bc8c;
}

.dependency-info {
    flex: 1;
    margin-bottom: 15px;
}

.dependency-title {
    color: var(--primary, #4A35CF);
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 16px;
}

.dependency-id {
    color: #666;
    font-size: 10px;
}

.dependency-subscribed {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

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

.dependency-actions button {
    flex: 1;
    font-size: 14px;
    padding: 8px 12px;
}

.no-dependencies {
    text-align: center;
    padding: 30px;
    color: #888;
    background: #2a2a2a;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.loading-dependencies {
    text-align: center;
    padding: 20px;
    color: #888;
    grid-column: 1 / -1;
}

.error-dependencies {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    grid-column: 1 / -1;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #fff;
}

#modTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--primary, #4A35CF);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.tag:hover {
    transform: translateY(-2px);
}

/* BB-code additional styles */
.bb-list {
    margin: 15px 0;
    padding-left: 25px;
}

.bb-list li {
    margin: 8px 0;
    color: var(--gray300, #8282A4);
}

.bb-list li strong {
    color: var(--gray200, #B2B2C1);
}

.bb-quote {
    margin: 15px 0;
    padding: 15px;
    background: #1a1a1a;
    border-left: 4px solid var(--primary, #4A35CF);
    font-style: italic;
}

.bb-quote cite {
    display: block;
    color: var(--primary, #4A35CF);
    font-weight: bold;
    margin-bottom: 10px;
}

.bb-code {
    margin: 15px 0;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    color: #e6e6e6;
    overflow-x: auto;
}

.bb-spoiler {
    margin: 15px 0;
    border-radius: 4px;
    overflow: hidden;
}

.bb-spoiler summary {
    padding: 10px 15px;
    background: #1a1a1a;
    cursor: pointer;
    user-select: none;
}

.bb-spoiler summary:hover {
    background: #222;
}

.bb-spoiler div {
    padding: 15px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.bb-table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.bb-table th,
.bb-table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}

.bb-table th {
    background: #1a1a1a;
    font-weight: bold;
    color: var(--primary, #4A35CF);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 15px 0;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Улучшенные стили для изображений */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

/* Стили для текстовых элементов */
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

del {
    color: #666;
    text-decoration: line-through;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .bb-quote,
    .bb-code,
    .bb-spoiler,
    .video-container {
        margin: 10px -20px;
        border-radius: 0;
    }
    
    .bb-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .bb-list {
        padding-left: 20px;
    }
}

.upload-section {
    margin: 20px 0;
    text-align: center;
    background: var(--gray700-default, #1D1D37);
    padding: 20px;
    border-radius: var(--radiusInput, 7px);
    border: var(--borderInput, 1px solid) var(--gray600, #2B2B40);
}

.file-label {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--gray800, #0B0D2A);
    border: 2px dashed var(--primary, #4A35CF);
    border-radius: var(--radiusInput, 7px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-label:hover {
    background: var(--gray700-default, #1D1D37);
    border-color: var(--gray50, #F4F4F4);
}

.file-label span {
    color: var(--primary, #4A35CF);
    font-weight: 500;
}

.upload-info {
    margin-top: 8px;
    color: var(--gray300, #8282A4);
    font-size: 14px;
}

.from-file {
    position: relative;
}

.from-file::after {
    content: "Из файла";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary, #4A35CF);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.search-btn {
    background: var(--primary, #4A35CF);
    color: var(--gray50, #F4F4F4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: color-mix(in srgb, var(--primary) 80%, white);
    transform: translateY(-2px);
}

.search-btn:active, 
.search-btn.active {
    background: color-mix(in srgb, var(--primary) 60%, white);
    transform: translateY(1px);
}

.button-flash {
    animation: flash 0.3s;
}

@keyframes flash {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
        background: color-mix(in srgb, var(--primary) 60%, white);
    }
    100% {
        transform: scale(1);
    }
}

.primary-btn.with-deps {
    flex: 100%;
    background: #2d3341;
    font-size: 11px;
    padding: 8px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #00bc8c;
    color: #00bc8c;
}

.primary-btn.with-deps:hover {
    background: #00bc8c;
    color: #fff;
}

.primary-btn.with-deps.loading {
    background: #2d3341;
    color: transparent;
    pointer-events: none;
    border-color: #2d3341;
}

.primary-btn.with-deps.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #00bc8c;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 0.75s linear infinite;
}

.primary-btn.with-deps.added {
    background: #2d3341;
    color: #00bc8c;
    border: 1px solid #00bc8c;
    pointer-events: none;
}

.primary-btn.with-deps.added::before {
    content: "✓";
    margin-right: 4px;
}

.dependency-item.added {
    border-left: 2px solid #00bc8c;
    padding-left: 8px;
}

.dependency-item.missing {
    border-left: 2px solid #e74c3c;
    padding-left: 8px;
}

.missing-deps-count {
    color: #e74c3c;
    font-size: 11px;
    margin-left: 4px;
}

.all-deps-added {
    color: #00bc8c;
    font-size: 11px;
    margin-left: 4px;
}

.selected-mods .mod-dependencies {
    margin-top: 12px;
    background: #1a1c24;
}

.selected-mods .dependency-item.added .dependency-name {
    color: #00bc8c;
}

.selected-mods .dependency-item.missing .dependency-name {
    color: #e74c3c;
}

.selected-mods .dependency-item.added:hover {
    background: rgba(0, 188, 140, 0.1);
}

.selected-mods .dependency-item.missing:hover {
    background: rgba(231, 76, 60, 0.1);
}

.selected-mods .primary-btn.with-deps {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.selected-mods .primary-btn.with-deps:hover {
    background: #f55a4e;
}

.selected-mods .primary-btn.with-deps.loading {
    background: #2d3341;
    border-color: #e74c3c;
}

.selected-mods .primary-btn.with-deps.loading::after {
    border-color: #e74c3c;
    border-right-color: transparent;
}

.missing-deps-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.missing-deps-list::-webkit-scrollbar {
    width: 4px;
}

.missing-deps-list::-webkit-scrollbar-track {
    background: #1d1f2b;
}

.missing-deps-list::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 2px;
}

.mod-with-missing-deps {
    background: #1d1f2b;
    border: 1px solid #2d3341;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.mod-with-missing-deps:hover {
    border-color: #e74c3c;
    background: #252836;
}

.mod-with-missing-deps h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.missing-deps-info {
    margin-top: 10px;
}

.missing-deps-info p {
    color: #e74c3c;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.missing-deps-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.missing-dep-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #2d3341;
    font-size: 12px;
}

.missing-dep-item:hover {
    background: rgba(231, 76, 60, 0.1);
}

.dep-title {
    color: #bbb;
}

.dep-id {
    color: #666;
    font-size: 11px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions button {
    min-width: 200px;
    padding: 12px 24px;
}

.loading-dependencies-modal {
    text-align: center;
    padding: 40px 20px;
}

.loading-dependencies-modal h2 {
    color: var(--primary, #4A35CF);
    margin: 20px 0;
}

.loading-dependencies-modal p {
    color: var(--gray300, #8282A4);
    font-size: 16px;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary, #4A35CF);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

.dependencies-success {
    text-align: center;
    padding: 30px 20px;
}

.dependencies-success h2 {
    color: var(--primary, #4A35CF);
    margin-bottom: 20px;
}

.dependencies-success p {
    color: var(--gray300, #8282A4);
    font-size: 16px;
    margin-bottom: 30px;
}

.dependencies-error {
    text-align: center;
    padding: 30px 20px;
}

.dependencies-error h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.dependencies-error p {
    color: var(--gray300, #8282A4);
    font-size: 16px;
    margin-bottom: 30px;
}

.modal-content .modal-actions {
    margin-top: 30px;
}

.modal-content .modal-actions button {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 16px;
}

.dependencies-success .modal-actions button {
    background: var(--primary, #4A35CF);
}

.dependencies-success .modal-actions button:hover {
    background: color-mix(in srgb, var(--primary) 80%, white);
}

.dependencies-error .modal-actions button {
    background: #e74c3c;
}

.dependencies-error .modal-actions button:hover {
    background: #f55a4e;
}

.instruction-section {
    background: #2d3341;
    border-radius: 8px;
    padding: 20px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instruction-section h3 {
    color: var(--primary, #4A35CF);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.instruction-section ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-section li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--gray200, #B2B2C1);
}

.instruction-section li:last-child {
    margin-bottom: 0;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    background: var(--gray700-default, #1D1D37);
    color: var(--gray200, #B2B2C1);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radiusInput, 7px);
    font-weight: 500;
    transition: all 0.3s ease;
    border: var(--borderInput, 1px solid) var(--gray600, #2B2B40);
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    backdrop-filter: blur(16px);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(74, 53, 207, 0.2),
        transparent
    );
    transition: 0.5s;
}

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

.nav-btn:hover {
    background: var(--primary, #4A35CF);
    color: var(--gray50, #F4F4F4);
    transform: translateY(-2px);
    border-color: var(--primary, #4A35CF);
    box-shadow: 0 4px 12px rgba(74, 53, 207, 0.2);
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    .nav-btn {
        text-align: center;
        width: 100%;
    }
}

.title-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: relative;
    padding: 0 20px;
}

.title-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-right: auto;
}

.title-link {
    color: var(--primary, #4A35CF);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.title-link:hover {
    color: var(--gray50, #F4F4F4);
    text-shadow: 0 0 10px rgba(74, 53, 207, 0.5);
}

h1 {
    text-align: center;
    margin: 0;
    font-size: 1.8em;
    font-weight: 500;
    width: 100%;
}

@media (max-width: 768px) {
    .title-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 10px;
    }

    .title-logo {
        height: 40px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    h1 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .title-logo {
        height: 32px;
    }

    h1 {
        font-size: 1.2em;
    }
}