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

body {
    background: #000000;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.card-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        #DC143C 40px,
        #DC143C 41px
    ),
    repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        #DC143C 40px,
        #DC143C 41px
    );
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.logo-container {
    display: inline-block;
    position: relative;
    padding: 0 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.waifustash-logo {
    font-size: 84px;
    font-weight: 900;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    color: #FFFFFF;
    text-shadow: 
        3px 3px 0px #FF0000,
        -3px -3px 0px #FF0000,
        3px -3px 0px #000000,
        -3px 3px 0px #000000,
        0 0 20px rgba(255, 0, 0, 0.5);
    animation: glitch 2s ease-in-out infinite alternate;
}

.waifu {
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.stash {
    color: #FF0000;
    position: relative;
    z-index: 2;
    text-shadow: 
        2px 2px 0px #000000,
        -2px -2px 0px #FFFFFF,
        0 0 10px rgba(255, 255, 255, 0.8);
}

.diamond {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #FFFFFF;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.diamond.top-left {
    top: -5px;
    left: 20px;
    animation: float 3s ease-in-out infinite;
}

.diamond.top-right {
    top: -5px;
    right: 20px;
    background-color: #FF0000;
    animation: float 3s ease-in-out infinite reverse;
}

.diamond.bottom-left {
    bottom: -5px;
    left: 50px;
    background-color: #000000;
    border: 2px solid #FFFFFF;
    animation: float 3s ease-in-out infinite 0.5s;
}

.diamond.bottom-right {
    bottom: -5px;
    right: 50px;
    animation: float 3s ease-in-out infinite 1s;
}

.accent-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF0000, transparent);
    animation: slide 3s ease-in-out infinite;
}

.accent-line.top {
    top: 50%;
    left: -30px;
    right: -30px;
    transform: translateY(-50%);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 14px 36px;
    background: #000000;
    color: #FFFFFF;
    border: 3px solid #FF0000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 2px 2px 0px #FF0000;
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FF0000;
    transition: left 0.3s ease;
    z-index: -1;
}

.tab:hover::before {
    left: 0;
}

.tab:hover {
    transform: translateY(-2px);
    color: #000000;
    text-shadow: none;
}

.tab.active {
    background: #FF0000;
    color: #000000;
    border-color: #FFFFFF;
    text-shadow: none;
}

.tab-icon {
    font-size: 18px;
}

.card-style {
    background: #000000;
    border: 3px solid #FF0000;
    border-radius: 0;
    box-shadow: 5px 5px 0px #FF0000, 10px 10px 0px #FFFFFF;
    position: relative;
    overflow: hidden;
}

.search-panel {
    padding: 30px;
    margin-bottom: 30px;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 
        3px 3px 0px #FF0000,
        -3px -3px 0px #FF0000;
}

.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-group {
    flex: 1;
    min-width: 250px;
}

.search-group.full-width {
    width: 100%;
    flex: none;
}

.search-group label {
    display: block;
    color: #FF0000;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #FFFFFF;
}

.search-group input,
.search-group select,
.search-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #000000;
    border: 2px solid #FF0000;
    color: #FFFFFF;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 0px #FF0000;
}

.search-group input:focus,
.search-group select:focus,
.search-group textarea:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px #FF0000;
}

.search-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Inter', sans-serif;
}

.search-button {
    background: #FF0000;
    color: #000000;
    border: 3px solid #000000;
    padding: 16px 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    margin-top: 10px;
    width: 100%;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 5px 5px 0px #000000;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    transition: left 0.3s ease;
    z-index: 0;
}

.search-button:hover::before {
    left: 0;
}

.search-button:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px #000000;
}

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

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.info-text {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
}

.info-text span {
    color: #FF0000;
    font-weight: 900;
}

.export-btn {
    background: #000000;
    color: #00FF00;
    border: 3px solid #00FF00;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 0;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 3px 3px 0px #00FF00;
}

.export-btn:hover {
    background: #00FF00;
    color: #000000;
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px #000000;
}

.telegram-channel {
    text-align: center;
    font-size: 24px;
    margin: 30px 0;
}

.telegram-channel a {
    color: #FF0000;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.3s ease;
}

.telegram-channel a:hover {
    color: #FFFFFF;
}

.table-container {
    padding: 0;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    border: 3px solid #FF0000;
}

.results-table th {
    background: #FF0000;
    padding: 16px;
    text-align: left;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    color: #000000;
    white-space: nowrap;
    border-bottom: 3px solid #000000;
}

.results-table td {
    padding: 14px 16px;
    border-bottom: 2px solid #FF0000;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.results-table tbody tr {
    background: #000000;
    transition: all 0.3s ease;
}

.results-table tbody tr:nth-child(even) {
    background: #1a0000;
}

.results-table tbody tr:hover {
    background: #FF0000;
    color: #000000;
    text-shadow: none;
}

.buy-btn {
    background: #00FF00;
    color: #000000;
    border: 3px solid #000000;
    padding: 8px 24px;
    cursor: pointer;
    font-weight: 900;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: 3px 3px 0px #000000;
}

.buy-btn:hover {
    background: #000000;
    color: #00FF00;
    border-color: #00FF00;
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px #00FF00;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 16px;
    background: #000000;
    color: #FF0000;
    border: 2px solid #FF0000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 3px 3px 0px #FF0000;
}

.pagination button:hover {
    background: #FF0000;
    color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

.pagination button.active {
    background: #FF0000;
    color: #000000;
    border-color: #FFFFFF;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span {
    color: #FF0000;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 1px 1px 0px #FFFFFF;
}

@keyframes glitch {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    20% {
        filter: hue-rotate(5deg);
    }
    40% {
        filter: hue-rotate(-5deg);
    }
    60% {
        filter: hue-rotate(3deg);
    }
    80% {
        filter: hue-rotate(-3deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-10px);
    }
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
}

@media (max-width: 768px) {
    .waifustash-logo {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .logo-container {
        padding: 0 20px;
    }
    
    .search-group {
        min-width: 100%;
    }
    
    .tabs {
        width: 100%;
    }
    
    .tab {
        flex: 1;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .panel-title {
        font-size: 24px;
    }
    
    .search-panel {
        padding: 20px;
    }
    
    .table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .pagination {
        padding: 0 10px;
    }
    
    .pagination button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #FF0000;
}

::-webkit-scrollbar-thumb {
    background: #FF0000;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFFFFF;
}
