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

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

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

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

/* ========== МОБИЛЬНЫЕ ВКЛАДКИ В ВИДЕ КАРТОЧЕК ========== */
.mod-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.mod-tab-btn {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.mod-tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #E63946;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mod-tab-btn:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: #E63946;
    transform: translateX(5px);
}

.mod-tab-btn.active {
    background: rgba(230, 57, 70, 0.15);
    border-color: #E63946;
    color: #E63946;
}

.mod-tab-btn.active::before {
    transform: translateX(0);
}

.mod-tab-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
}

.mod-tab-text {
    flex: 1;
    font-size: 16px;
}

/* ========== МОБИЛЬНЫЕ КАРТОЧКИ ЗАКАЗОВ ========== */
.mod-orders-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 20px 15px;
    margin-bottom: 30px;
}

.mod-orders-section h3 {
    margin: 0 0 20px 0;
    color: #E63946;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mod-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mod-order-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mod-order-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: width 0.3s ease;
}

.mod-order-card.status-pending::before {
    background: #ffba00;
}

.mod-order-card.status-in_progress::before {
    background: #0073aa;
}

.mod-order-card.status-completed::before {
    background: #46b450;
}

.mod-order-card.status-rejected::before {
    background: #dc3232;
}

.mod-order-card:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.08);
}

.mod-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.mod-order-id {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
}

.mod-order-type {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(230, 57, 70, 0.2);
    color: #E63946;
}

.mod-order-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
    word-break: break-word;
}

.mod-order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.mod-order-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.6);
}

.mod-order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

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

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

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

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

.mod-order-comment {
    margin-top: 12px;
    padding: 12px;
    background: rgba(230, 57, 70, 0.08);
    border-left: 3px solid #E63946;
    border-radius: 8px;
    font-size: 13px;
}

.mod-order-comment strong {
    color: #E63946;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.mod-order-comment p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    word-break: break-word;
}

.mod-order-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.mod-order-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mod-site-link {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.mod-external-link {
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.mod-order-link:hover {
    transform: translateY(-2px);
}

/* ========== МОБИЛЬНЫЙ ПОИСК ========== */
.mod-search-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.mod-search-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

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

/* ========== МОБИЛЬНЫЕ РЕЗУЛЬТАТЫ ПОИСКА ========== */
.mod-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    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(-3px);
    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: 10px;
}

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

.mod-card-author {
    font-size: 11px;
    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: 9px;
    color: rgba(255,255,255,0.8);
}

/* ========== МОБИЛЬНАЯ ФОРМА ========== */
.mod-form-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
}

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

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

.mod-form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.mod-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

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

.mod-btn-primary:hover {
    background: #c92c3a;
    transform: translateY(-2px);
}

.mod-btn-primary:disabled {
    background: #4a4a4a;
    transform: none;
}

.mod-message {
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

.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-selected-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.mod-selected-cover {
    max-width: 150px;
    margin: 0 auto;
}

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

.mod-selected-info h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #E63946;
    text-align: center;
}

.mod-selected-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

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

.mod-selected-genres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
}

.mod-selected-genre {
    background: #E63946;
    color: white;
    padding: 4px 12px;
    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: 13px;
    text-align: center;
}

.mod-change-selection {
    background: none;
    border: 2px solid #E63946;
    color: #E63946;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

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

/* ========== ПАГИНАЦИЯ ========== */
.mod-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.mod-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: rgba(255,255,255,0.1);
    border: 2px solid #E63946;
    border-radius: 30px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

/* ========== АНИМАЦИИ ========== */
@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-order-card {
    animation: fadeIn 0.3s ease;
}

/* ========== НОВЫЙ ТАЙТЛ ========== */
.mod-new-section {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.mod-new-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-note {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

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

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

.mod-required {
    color: #E63946;
}

.mod-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.2s ease;
}

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

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

/* ========== ДЕСКТОПНЫЙ РЕЖИМ ========== */
@media (min-width: 768px) {
    .mod-container {
        padding: 30px;
    }
    
    .mod-title {
        font-size: 36px;
    }
    
    .mod-tabs {
        flex-direction: row;
        gap: 10px;
        border-bottom: 2px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
        margin-bottom: 30px;
    }
    
    .mod-tab-btn {
        background: none;
        border: none;
        border-radius: 0;
        padding: 12px 24px;
        font-size: 16px;
        text-align: center;
        display: inline-flex;
        justify-content: center;
    }
    
    .mod-tab-btn::before {
        display: none;
    }
    
    .mod-tab-btn.active {
        background: none;
        position: relative;
    }
    
    .mod-tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 0;
        width: 100%;
        height: 3px;
        background: #E63946;
    }
    
    .mod-tab-icon {
        font-size: 18px;
        min-width: auto;
    }
    
    .mod-tab-text {
        font-size: 16px;
    }
    
    .mod-orders-list {
        display: block;
    }
    
    .mod-order-card {
        display: none;
    }
    
    .mod-orders-table {
        display: table;
        width: 100%;
    }
    
    .mod-form-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .mod-btn {
        width: auto;
        min-width: 200px;
    }
    
    .mod-selected-card {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .mod-selected-cover {
        margin: 0;
        max-width: 180px;
    }
    
    .mod-selected-info h3 {
        text-align: left;
    }
    
    .mod-selected-meta,
    .mod-selected-genres,
    .mod-selected-description {
        justify-content: flex-start;
        text-align: left;
    }
    
    .mod-change-selection {
        width: auto;
    }
}

/* ========== ДЕСКТОПНАЯ ТАБЛИЦА ========== */
.mod-orders-table {
    display: none;
    width: 100%;
    border-collapse: collapse;
}

@media (min-width: 768px) {
    .mod-orders-table {
        display: table;
    }
}

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

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

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

/* ========== МАЛЕНЬКИЕ ТЕЛЕФОНЫ ========== */
@media (max-width: 480px) {
    .mod-container {
        padding: 12px;
    }
    
    .mod-title {
        font-size: 24px;
    }
    
    .mod-tab-btn {
        padding: 14px 16px;
    }
    
    .mod-tab-icon {
        font-size: 22px;
        min-width: 28px;
    }
    
    .mod-tab-text {
        font-size: 15px;
    }
    
    .mod-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .mod-card-title {
        font-size: 12px;
    }
    
    .mod-order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mod-order-details {
        flex-direction: column;
        gap: 6px;
    }
    
    .mod-order-links {
        flex-direction: column;
    }
    
    .mod-order-link {
        justify-content: center;
    }
}

/* ========== УВЕЛИЧЕННЫЕ ОБЛАСТИ НАЖАТИЯ ========== */
@media (max-width: 768px) {
    .mod-tab-btn,
    .mod-manga-card,
    .mod-change-selection,
    .mod-btn,
    .mod-page-btn,
    .mod-order-link {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(230, 57, 70, 0.3);
        touch-action: manipulation;
    }
    
    .mod-orders-list {
        -webkit-overflow-scrolling: touch;
    }
    
    .mod-order-title {
        font-size: 15px;
    }
    
    .mod-order-detail {
        font-size: 11px;
    }
}

/* ========== СКРЫТИЕ ЛИШНИХ ЭЛЕМЕНТОВ НА ВКЛАДКАХ ========== */
.mod-tab-content {
    display: none;
}

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

#mod-tab-new .mod-search-section,
#mod-tab-new .mod-results-section,
#mod-tab-new .mod-selected-section {
    display: none !important;
}

#mod-tab-orders .mod-search-section,
#mod-tab-orders .mod-results-section,
#mod-tab-orders .mod-selected-section,
#mod-tab-orders .mod-new-section {
    display: none !important;
}

#mod-tab-update .mod-new-section {
    display: none !important;
}