:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #10131a;
    --light: #f8f9fa;
    --card-bg: rgba(25, 30, 45, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --pastel-purple: #d8b9ff;
    --yellow-info: #f1c40f;
    --like-pink: #ff69b4;
    --success-green: #2ecc71;
    --error-red: #e74c3c;
    --showcase-tag: #0ecfe4;
    --free-tag: #2ecc71;
    --paid-tag: #ff99cc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(162, 155, 254, 0.15) 0%, transparent 50%);
    color: var(--light);
    min-height: 100vh;
    user-select: none;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1500px;
    z-index: 1000;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(16, 19, 26, 0.8);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 32px;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav a.active {
    color: var(--primary);
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

nav a.active:after,
nav a:hover:after {
    width: 100%;
}

main {
    padding-top: 100px;
}

.hero {
    padding: 40px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff79c6, #8a70ff, #50c4fa, #a0e8b7, #ffd166, #ff79c6);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: soapFilm 22s ease infinite;
    font-weight: 700;
}

@keyframes soapFilm {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.8;
    line-height: 1.6;
}

.search-bar {
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    position: relative;
    z-index: 6;
}

input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    color: var(--light);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

input[type="search"]:focus,
select:focus {
    border-top: none;
    border-right: 1px solid #6c5ce7;
    border-bottom: 2px solid #6c5ce7;
    border-left: 1px solid #6c5ce7;
    box-shadow: 0 2px 0 0 rgba(108, 92, 231, 0.2);
}

.disclaimer {
    text-align: center;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.tags-container {
    max-width: 700px;
    margin: 0 auto 20px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tags-container::-webkit-scrollbar {
    display: none;
}

.tag-item {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--card-bg);
    color: var(--light);
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    margin-right: 10px;
    transition: all 0.3s;
}

.tag-item.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.tag-item:hover {
    background: rgba(108, 92, 231, 0.2);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.card-carousel {
    position: relative;
    overflow-x: auto;
    margin-bottom: 60px;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
    display: none;
}

.card-carousel::before,
.card-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.card-carousel::before {
    left: 0;
    background: linear-gradient(to right, #10131af0 0%, transparent 100%);
}

.card-carousel::after {
    right: 0;
    background: linear-gradient(to left, #10131af0 0%, transparent 100%);
}

.card-carousel-inner {
    display: inline-flex;
    animation: scroll var(--scroll-duration, 40s) linear infinite;
}

.card-carousel-inner:hover {
    animation-play-state: paused !important;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.css-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 300px;
    margin-right: 30px;
    display: inline-block;
}

.css-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.css-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.css-card img.loaded {
    opacity: 1;
}

.css-info {
    padding: 20px;
}

.css-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.css-info .owner {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.css-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.css-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--light);
}

.btn-primary:hover {
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
    transform: scale(1.05);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon.liked {
    background: var(--like-pink);
    border-color: var(--like-pink);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.btn-icon.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

.btn-source,
#preview-source {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 1px solid var(--glass-border);
}

.tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin: 0 5px 5px 0;
    display: inline-block;
    background: rgba(108, 92, 231, 0.2);
    color: var(--secondary);
}

.tag.free {
    background: rgba(46, 204, 113, 0.2);
    color: var(--free-tag);
}

.tag.paid {
    background: rgba(255, 153, 204, 0.2);
    color: var(--paid-tag);
}

.tag.showcase {
    background: rgba(39, 191, 208, 0.2);
    color: var(--showcase-tag);
}

footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

.submit-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.submit-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.submit-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.submit-section ul {
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.6;
    list-style: disc;
    padding-left: 20px;
}

.submit-section ul li {
    margin-bottom: 10px;
}

.discord-info,
.warning-box,
.info-box {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-info {
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.warning-box {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--error-red);
}

.info-box {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.discord-info i {
    color: #5865F2;
}

.warning-box i,
.info-box i {
    color: var(--yellow-info);
}

.discord-info a,
.warning-box a,
.info-box a {
    color: var(--pastel-purple);
    text-decoration: none;
    transition: color 0.3s;
}

.discord-info a:hover,
.warning-box a:hover,
.info-box a:hover {
    color: var(--secondary);
}

.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal.active {
    display: flex;
    opacity: 1;
}

.preview-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.preview-modal.active .preview-content {
    transform: scale(1);
    opacity: 1;
}

@keyframes modalClose {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.preview-actions {
    position: absolute;
    top: 37px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.preview-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preview-slider {
    position: relative;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    backdrop-filter: blur(5px);
}

.preview-slider img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    display: block;
}

.preview-slider img.active,
.preview-slider img.loaded {
    opacity: 1;
}

.preview-slider .image-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    text-align: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preview-slider .image-error {
    font-size: 1.2rem;
    color: var(--light);
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--error-red);
    border-radius: 8px;
    text-align: center;
    display: none;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.preview-slider .image-error.active {
    display: block;
}

.preview-slider .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 100%;
    max-width: 4rem;
}

.preview-slider.grabbing {
    cursor: grabbing;
}

.preview-slider img.zoomed {
    cursor: grab;
}

.preview-slider img.zoomed.grabbing {
    cursor: grabbing;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--light);
    cursor: pointer;
    opacity: 0.7;
    padding: 10px;
    transition: opacity 0.3s;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    display: none;
}

.preview-slider:has(#prev-arrow, #next-arrow) .arrow {
    display: block;
}

.arrow:hover {
    opacity: 1;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.preview-content .owner-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--pastel-purple);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s;
}

.preview-content .owner-link:hover {
    color: var(--secondary);
    opacity: 0.9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 135px);
    background: var(--card-bg);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--glass-border);
    border-top: none;
    backdrop-filter: blur(10px);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.search-dropdown.active {
    max-height: 200px;
    overflow-y: auto;
}

.search-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--glass-border);
}

.search-dropdown-item:hover {
    background: rgba(108, 92, 231, 0.1);
}

.search-dropdown-item .match-type {
    font-size: 0.8rem;
    color: rgba(189, 189, 189, 0.806);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.availability-dropdown {
    min-width: 120px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.availability-dropdown:hover {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.2);
    transform: translateY(-2px);
}

.dropdown-selected {
    padding: 0 35px 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--light);
    font-size: 0.9rem;
    background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 12px center;
    background-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.availability-dropdown.open .dropdown-menu {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.dropdown-item {
    padding: 6px 10px;
    color: var(--light);
    font-size: 0.9rem;
    transition: background 0.2s;
    border-bottom: 1px solid var(--glass-border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.251);
}

.error-popup,
.success-popup {
    position: fixed;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-popup {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success-green);
}

.error-popup {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--error-red);
}

.error-popup.active,
.success-popup.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.error-popup i,
.success-popup i {
    font-size: 1.2rem;
}

.success-popup i {
    color: var(--success-green);
}

.error-popup i {
    color: var(--yellow-info);
}

.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 6rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    animation: pulsOut 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.75));
}

.loader:before {
    width: 100%;
    padding-bottom: 100%;
    box-shadow: inset 0 0 0 1rem #fff;
    animation-name: pulsIn;
}

.loader:after {
    width: calc(100% - 2rem);
    padding-bottom: calc(100% - 2rem);
    box-shadow: 0 0 0 0 #fff;
}

@keyframes pulsIn {
    0% {
        box-shadow: inset 0 0 0 1rem #fff;
        opacity: 1;
    }

    50%,
    100% {
        box-shadow: inset 0 0 0 0 #fff;
        opacity: 0;
    }
}

@keyframes pulsOut {

    0%,
    50% {
        box-shadow: 0 0 0 0 #fff;
        opacity: 0;
    }

    100% {
        box-shadow: 0 0 0 1rem #fff;
        opacity: 1;
    }
}

.css-card .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 100%;
    max-width: 4rem;
}

.featured-star {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--yellow-info);
    z-index: 1;
    animation: shimmer 2s infinite linear;
}

.zoom-level {
    background: var(--card-bg);
    color: var(--light);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    margin: 0 5px;
    min-width: 60px;
    text-align: center;
}

.card-carousel.search-active::before,
.card-carousel.search-active::after {
    display: none;
}

.card-carousel-inner.search-active {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    animation: none !important;
}

.card-carousel-inner.search-active .css-card {
    margin-right: 0;
}

@keyframes shimmer {
    0% {
        filter: brightness(1) drop-shadow(0 0 2px rgba(241, 196, 15, 0.5));
    }

    50% {
        filter: brightness(1.5) drop-shadow(0 0 8px rgba(241, 196, 15, 0.8));
    }

    100% {
        filter: brightness(1) drop-shadow(0 0 2px rgba(241, 196, 15, 0.5));
    }
}

.tooltip {
    position: absolute;
    top: 100%;
    left: 70%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--light);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
}

.btn-icon.disabled:hover .tooltip,
.btn-icon.disabled.showcase:hover .tooltip,
#preview-source.disabled:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.filter-container {
    max-width: 700px;
    margin: 0 auto 40px;
}

.availability-container {
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

nav {
    transition: transform 0.3s ease;
}

.tags-container-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
}

.tag-scroll-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--light);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    z-index: 5;
    flex-shrink: 0;
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 19px;
}

.tag-scroll-btn:hover {
    background: rgba(108, 92, 231, 0.2);
    transform: scale(1.1);
    opacity: 1;
}


.tag-scroll-left {
    margin-right: 10px;
}

.tag-scroll-right {
    margin-left: 10px;
}

#all-availability-dropdown {
    position: relative;
    z-index: 5000;
}

@media (max-width: 768px) {
    .tag-scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(16, 19, 26, 0.95);
        border-radius: 0 0 16px 16px;
        border: 1px solid var(--glass-border);
        border-top: none;
        transform: translateY(-100%);
        visibility: hidden;
        opacity: 0;
    }

    nav.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 15px;
    }

    nav a {
        font-size: 1.1rem;
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    .header-container {
        justify-content: space-between;
        align-items: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    header {
        top: 10px;
    }

    .preview-content {
        width: 95%;
        padding: 20px;
    }

    .preview-slider,
    .preview-slider img {
        max-height: 50vh;
    }

    .preview-slider .image-error {
        font-size: 1rem;
    }

    .arrow {
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }

    .css-card {
        width: 250px;
        margin-right: 20px;
    }

    .search-dropdown {
        width: 100%;
        top: calc(100% - 15px);
    }

    input[type="search"],
    .availability-dropdown {
        width: 100%;
    }

    .error-popup,
    .success-popup {
        width: 90%;
        font-size: 0.8rem;
        padding: 12px 15px;
    }
}

@media (max-width: 585px) {
    .preview-content h2 {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .preview-actions {
        margin-top: 20px;
    }
}