.mod-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 20px;
}

.mod-header {
    text-align: center;
    margin-bottom: 30px;
}

.mod-title {
    font-size: 32px;
    color: #E63946;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.mod-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.mod-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.mod-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.mod-tab-btn:hover,
.mod-tab-btn.active {
    color: #E63946;
}

.mod-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #E63946;
}

.mod-tab-icon {
    margin-right: 8px;
}

.mod-tab-content {
    display: none;
}

.mod-tab-content.active {
    display: block;
}

.mod-search-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.mod-search-box {
    position: relative;
}

.mod-search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #ffffff;
}

.mod-search-input:focus {
    outline: none;
    border-color: #E63946;
}

.mod-search-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #E63946;
    animation: spin 1s linear infinite;
}

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

.mod-results-section {
    margin-top: 30px;
}

.mod-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mod-manga-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mod-manga-card:hover {
    transform: translateY(-2px);
    border-color: #E63946;
}

.mod-card-cover {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.mod-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-card-info {
    padding: 12px;
}

.mod-card-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mod-card-author {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.mod-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.mod-card-genre {
    background: rgba(230, 57, 70, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
}

.mod-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.mod-page-btn {
    min-width: 35px;
    height: 35px;
    padding: 0 5px;
    background: rgba(255,255,255,0.1);
    border: 2px solid #E63946;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.mod-page-btn:hover,
.mod-page-btn.active {
    background: #E63946;
}

.mod-selected-section {
    margin-top: 30px;
}

.mod-selected-card {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 25px;
}

.mod-selected-cover {
    flex: 0 0 150px;
}

.mod-selected-cover img {
    width: 100%;
    border-radius: 8px;
}

.mod-selected-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #E63946;
}

.mod-selected-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.mod-selected-meta-item {
    background: rgba(230, 57, 70, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.mod-selected-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.mod-selected-genre {
    background: #E63946;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.mod-selected-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.mod-change-selection {
    background: none;
    border: 2px solid #E63946;
    color: #E63946;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.mod-change-selection:hover {
    background: #E63946;
    color: white;
}

.mod-new-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.mod-form-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
}

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

.mod-form-group label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 14px;
}

.mod-required {
    color: #E63946;
}

.mod-input,
.mod-textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
}

.mod-input:focus,
.mod-textarea:focus {
    outline: none;
    border-color: #E63946;
}

.mod-hint {
    margin-top: 5px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.mod-form-info {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(230, 57, 70, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.mod-form-info p {
    margin: 5px 0;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.mod-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mod-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mod-btn-primary {
    background: #E63946;
    color: white;
}

.mod-btn-primary:hover {
    background: #c92c3a;
}

.mod-btn-primary:disabled {
    background: #4a4a4a;
    cursor: not-allowed;
}

.mod-btn-icon {
    margin-right: 8px;
}

.mod-message {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.mod-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.mod-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7b;
}

/* Стили для раздела "Ваши заказы" */
.mod-orders-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.mod-orders-section h3 {
    margin: 0 0 20px 0;
    color: #E63946;
    font-size: 20px;
    font-weight: 700;
}

.mod-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.mod-orders-table th {
    text-align: left;
    padding: 10px;
    background: rgba(230, 57, 70, 0.2);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.mod-orders-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.mod-orders-table tr:hover td {
    background: rgba(255,255,255,0.05);
}

.mod-orders-table a {
    color: #E63946;
    text-decoration: none;
}

.mod-orders-table a:hover {
    text-decoration: underline;
}

.mod-order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mod-order-status.status-pending {
    background: rgba(255, 186, 0, 0.2);
    color: #ffba00;
    border: 1px solid #ffba00;
}

.mod-order-status.status-in_progress {
    background: rgba(0, 115, 170, 0.2);
    color: #0073aa;
    border: 1px solid #0073aa;
}

.mod-order-status.status-completed {
    background: rgba(70, 180, 80, 0.2);
    color: #46b450;
    border: 1px solid #46b450;
}

.mod-order-status.status-rejected {
    background: rgba(220, 50, 50, 0.2);
    color: #dc3232;
    border: 1px solid #dc3232;
}

.mod-no-orders {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
}

.mod-loading,
.mod-error {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

.mod-error {
    color: #E63946;
}

/* Стили для ссылок в таблице заказов */
.mod-site-link {
    color: #4CAF50;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 3px 8px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
}

.mod-site-link:hover {
    text-decoration: underline;
    background: rgba(76, 175, 80, 0.2);
}

.mod-external-link {
    color: #FFA500;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 15px;
}

.mod-external-link:hover {
    text-decoration: underline;
    background: rgba(255, 165, 0, 0.2);
}

@media (max-width: 768px) {
    .mod-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .mod-tab-btn {
        width: 100%;
        text-align: left;
    }
    
    .mod-selected-card {
        flex-direction: column;
    }
    
    .mod-selected-cover {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .mod-form-actions {
        flex-direction: column;
    }
    
    .mod-btn {
        width: 100%;
    }
    
    .mod-orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .mod-orders-table th,
    .mod-orders-table td {
        padding: 8px;
        font-size: 12px;
    }
}