[v-cloak] {
    display: none;
}

.services-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.services-search input {
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.services-search input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.services-list {
    margin-top: 30px;
}

.services-list .table {
    background: #f6f6f8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
}

.services-list .table thead th {
    background: #ececf0;
    border-bottom: 2px solid #e0e0e0;
    padding: 20px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.services-list .table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    color: #333;
    background: #f6f6f8;
}

.services-list .table tbody tr:hover {
    background-color: #ededed;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.service-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #222;
}

.service-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #007bff;
}

.badge-category {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    background: #e0e0e0;
    color: #444;
}

.service-limits {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.service-limits .min {
    color: #3a7f5a;
}

.service-limits .max {
    color: #888;
}

.service-features {
    display: flex;
    gap: 8px;
}

.service-features .badge {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
}

.service-features .badge i {
    margin-right: 4px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #888;
}

.loading-spinner i {
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-list .table thead {
        display: none;
    }
    
    .services-list .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 10px;
    }
    
    .services-list .table tbody td {
        display: block;
        text-align: right;
        padding: 12px 15px;
        position: relative;
        border-bottom: 1px solid #dee2e6;
    }
    
    .services-list .table tbody td:last-child {
        border-bottom: none;
    }
    
    .services-list .table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
    }
    
    .service-name {
        justify-content: flex-end;
    }
    
    .badge-category {
        margin-left: auto;
    }
    
    .service-features {
        justify-content: flex-end;
    }
}

.services-categories-horizontal {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.categories-row-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}
.category-btn {
    white-space: nowrap;
    background: #ececf0;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0;
}
.category-btn.active, .category-btn:hover {
    background: #bdbdbd;
    color: #222;
}

.category-btn:focus, .category-btn:active {
    outline: none;
    box-shadow: none;
}

.services-search-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-input-group:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input-group:focus-within {
    box-shadow: 0 12px 40px rgba(141, 91, 255, 0.2);
    border-color: rgba(141, 91, 255, 0.3);
    transform: translateY(-2px);
}

.search-icon-left {
    position: absolute;
    left: 20px;
    color: #8D5BFF;
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s ease;
}

.search-input-group:focus-within .search-icon-left {
    color: #6B46C1;
    transform: scale(1.1);
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 55px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #2A2D45;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #8D5BFF;
    opacity: 0.7;
    font-weight: 400;
}

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

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .services-search-container {
        justify-content: center;
        margin-top: 20px;
        animation: slideInFromBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideInFromBottom {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .search-input-group {
        border-radius: 25px;
    }
    
    .search-input {
        padding: 15px 45px 15px 45px;
        font-size: 15px;
    }
    
    .search-icon-left {
        left: 15px;
        font-size: 16px;
    }
    
    .search-clear-btn {
        right: 12px;
        font-size: 14px;
        padding: 6px;
    }
    
    .search-results-info {
        font-size: 13px;
        padding: 6px 12px;
        margin-top: 6px;
    }
}

.sticky-header th {
    position: sticky;
    top: 0;
    background: #ececf0;
    z-index: 2;
    box-shadow: 0 2px 8px 0 rgba(141,91,255,0.04);
}

.services-categories-horizontal {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.services-categories-horizontal::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.platform-tab-btn {
    display: flex;
    outline: none!important;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 25px;
    background-color: #ececf0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.platform-tab-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.platform-tab-btn.active {
    background: #8D5BFF;
    -webkit-box-shadow: -1px -1px 2px rgba(127, 82, 230, 0.5), 1px 1px 2px rgba(155, 100, 255, 0.3), inset 1px 1px 3px rgba(127, 82, 230, 0.9), inset -1px -1px 2px rgba(155, 100, 255, 0.9), inset 1px -1px 2px rgba(127, 82, 230, 0.2), inset -1px 1px 2px rgba(127, 82, 230, 0.2);
    box-shadow: -1px -1px 2px rgba(127, 82, 230, 0.5), 1px 1px 2px rgba(155, 100, 255, 0.3), inset 1px 1px 3px rgba(127, 82, 230, 0.9), inset -1px -1px 2px rgba(155, 100, 255, 0.9), inset 1px -1px 2px rgba(127, 82, 230, 0.2), inset -1px 1px 2px rgba(127, 82, 230, 0.2);
    border-radius: 27.5px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3);
    transform: translateY(-2px);
}

.platform-icon {
    width: 24px;
    background: white;
    padding: 4px;
    border-radius: 7px;
    height: 24px;
}

/* Services Table Styling */

.services-scroll-container {
    background-color: #333776;
    padding: 5px 15px;
    border-radius: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.services-scroll-container .table {
    background-color: transparent;
    border-collapse: separate;
    border-spacing: 0 8px; /* Vertical spacing between rows */
    margin-bottom: 0;
}

.services-scroll-container .table thead th {
    background-color: #333776; /* Match container background */
    padding: 10px;
    color: white;
    border: none;
    font-weight: 500;
    font-size: 16px;
    position: sticky;
    top: 0;
    min-width: 152px;
    z-index: 10;
}

.services-scroll-container .table tbody {
    background-color: transparent;
}

.services-scroll-container .table .category-divider-row td {
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 20px 10px 10px;
    border: none;
}

.services-scroll-container .table tr[data-service-row] td {
    background: rgba(0, 0, 0, 0.07);
    color: #fff;
    padding: 20px 25px;
    border: none;
    vertical-align: middle;
}

.services-scroll-container .table tr[data-service-row] td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.services-scroll-container .table tr[data-service-row] td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

tr[data-service-row] .form-text.text-muted {
    color: #A9B4C8 !important;
    font-size: 0.9em;
}

/* Remove border from the first service row after a category */
.category-divider-row + tr[data-service-row] {
    /* This row doesn't need special styling */
}

.table-responsive {
    overflow-x: hidden;
}

.services-list .table-responsive {
    border: none;
    border-radius: 12px;
}

/* Order Button */
.btn-order {
    background: linear-gradient(180deg, #5e71ba 0%, #46589F 115.74%);
    color: #FFFFFF !important;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-order:hover {
    transform: scale(1.05);
}

/* Price Modal */
.price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.price-modal {
    background-color: #2A2D45;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.price-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.price-modal .modal-title {
    margin-bottom: 25px;
    font-size: 1.3em;
}

.price-modal .form-control {
    background-color: #3B3E63;
    border: 1px solid #4a4d7b;
    color: #fff;
}

.price-modal .form-control:focus {
    background-color: #3B3E63;
    border-color: #8e2de2;
    color: #fff;
    box-shadow: none;
}

.price-modal .price-result {
    margin-top: 25px;
    text-align: center;
}

.price-modal .price-result p {
    margin-bottom: 5px;
    color: #A9B4C8;
}

.price-modal .price-result h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0;
}

.price-modal .btn-order-final {
    margin-top: 30px;
    padding: 12px;
    font-size: 16px;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    border: none;
}

/* Header & Search Bar */
.services-header-container {
    padding: 50px 0 30px;
    position: relative;
}

.services-section-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg, #8D5BFF 0%, #6B46C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(141, 91, 255, 0.3);
    position: relative;
}

.services-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #8D5BFF, #6B46C1);
    border-radius: 2px;
}

.services-section-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #A9B4C8;
    text-transform: uppercase;
    margin: 0;
}

.services-search {
    max-width: 450px;
    margin: 0 auto 40px;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: #2A2D45;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.search-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

.search-input:focus {
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    color: #2A2D45;
}

.search-icon {
    display: none;
} 


    @media (max-width: 767.98px) {
        .platform-tabs {
            display: flex;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 10px;
        }

        .platform-tab-btn {
            flex: 0 0 auto;
        }

        .services-scroll-container table {
            border: 0;
        }

        .services-scroll-container table caption {
            font-size: 1.3em;
        }

        .services-scroll-container table thead {
            border: none;
            clip: rect(0 0 0 0);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            width: 1px;
        }

        .services-scroll-container table tr:not(.category-divider-row) {
            border: 1px solid #f8f8f81f;
            display: block;
            margin-bottom: .625em;
            border-radius: 8px;
            padding: .625em;
        }

        .services-scroll-container table td {
            border-bottom: 1px solid #f8f8f81f;
            display: block;
            font-size: .8em;
            text-align: right;
            padding: .625em .625em .625em 40%;
            position: relative;
        }

        .services-scroll-container table td::before {
            content: attr(data-label);
            display: block;
            font-weight: bold;
            text-transform: uppercase;
            position: absolute;
            left: .625em;
            top: 50%;
            transform: translateY(-50%);
            white-space: nowrap;
        }

        .services-scroll-container table td:last-child {
            border-bottom: 0;
        }

        .services-scroll-container table td.text-center {
            text-align: center;
        }

        .services-scroll-container table td[data-label="Действие"] {
            padding-left: 0.625em;
        }
        
        .services-scroll-container table td[data-label="Действие"]::before {
            display: none;
        }

        .services-scroll-container table tr.category-divider-row td {
            display: block;
            text-align: center;
            font-weight: bold;
            font-size: 1.2em;
            padding: 1em 0;
        }
    }

.platform-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    margin-bottom: 10px;
}

.platform-header .platform-icon {
    width: 36px;
    height: 36px;
    padding: 4px;
    background: white;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.platform-header .platform-name {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 767.98px) {
    .platform-header {
        justify-content: center;
        padding: 15px 0;
    }
    
    .platform-header .platform-name {
        font-size: 20px;
    }
}