* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #fff;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
}

.tabs {
    display: flex;
    background: #0a0a0a;
    border-bottom: 2px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tab {
    flex: 1;
    padding: 18px;
    text-align: center;
    background: none;
    border: none;
    color: #666;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab:hover {
    color: #ffd000;
    background: rgba(255, 208, 0, 0.05);
}

.tab.active {
    color: #ffd000;
    border-bottom-color: #ffd000;
    background: rgba(255, 208, 0, 0.1);
}

.main {
    padding: 20px 0;
    min-height: calc(100vh - 60px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.filters {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-select,
.search-input {
    background: #0a0a0a;
    border: 2px solid #333;
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    outline: none;
}

.filter-select:focus,
.search-input:focus {
    border-color: #ffd000;
    box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.1);
}

.filter-select:hover,
.search-input:hover {
    border-color: #555;
}

.filter-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.search-bar {
    margin-bottom: 24px;
}

.cats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.cats::-webkit-scrollbar {
    height: 6px;
}

.cats::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.cats::-webkit-scrollbar-thumb {
    background: #ffd000;
    border-radius: 3px;
}

.cat {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 24px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.cat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffd000, #ffb700);
    opacity: 0;
    transition: opacity 0.3s;
}

.cat.active::before {
    opacity: 1;
}

.cat span {
    position: relative;
    z-index: 1;
}

.cat.active {
    color: #000;
    border-color: #ffd000;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1400px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #2a2a2a;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #ffd000;
    box-shadow: 0 12px 40px rgba(255, 208, 0, 0.2);
}

.card-img {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.card-img img,
.card-img .lottie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    filter: drop-shadow(0 0 10px rgba(255, 208, 0, 0.3));
}

.card-body {
    padding: 16px;
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd000, #ffb700);
    color: #000;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 208, 0, 0.3);
}

.card-badge.normal {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
}

.card-badge.lite {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
}

.card-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.card-phone {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    margin-bottom: 12px;
    color: #ffd000;
    letter-spacing: 1px;
}

.price-big {
    text-align: center;
    margin-bottom: 12px;
    background: rgba(255, 208, 0, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 208, 0, 0.2);
}

.price-big .label {
    color: #999;
    font-size: 11px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-big .value {
    font-weight: 800;
    font-size: 20px;
    color: #ffd000;
}

.prices {
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 12px;
}

.price {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.price:last-child {
    margin-bottom: 0;
}

.price .label {
    color: #999;
    font-weight: 600;
}

.price .value {
    font-weight: 700;
}

.price .value.green {
    color: #10b981;
}

.price .value.blue {
    color: #3b82f6;
}

.duration {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.card-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffd000, #ffb700);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.3);
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.5);
}

.card-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 208, 0, 0.3);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #666;
    display: none;
    font-size: 16px;
    font-weight: 600;
}

.loading.show {
    display: block;
}

.loading::after {
    content: '';
    display: block;
    margin: 20px auto 0;
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top-color: #ffd000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: grayscale(1) opacity(0.5);
}

.empty-text {
    font-size: 18px;
    font-weight: 600;
}