.input-images{
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.image-uploader{
    min-height:10rem;
    border:1px solid #c990ea; /* Neon green border */
    background: #111111;
    position:relative
}
.image-uploader.drag-over{background-color:#f3f3f3}
.image-uploader input[type="file"] {
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.image-uploader .uploaded{
    padding:.5rem;
    line-height:0;
/*    border: solid 1px black;*/
}
.image-uploader .uploaded .uploaded-image{
    display:inline-block;
    width:calc(16.6666667% - 1rem);
    padding-bottom:calc(16.6666667% - 1rem);
    height:0;
    position:relative;
    margin:.5rem;
    background:#222222;
    cursor:default
}
.image-uploader .uploaded .uploaded-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    position:absolute
}
.image-uploader .uploaded .uploaded-image .delete-image{
    display:none;
    cursor:pointer;
    position:absolute;
    top:.2rem;
    right:.2rem;
    border-radius:50%;
    padding:.3rem;
    background-color:rgba(201,144,234,0.5); /* Neon green with transparency */
    -webkit-appearance:none;
    border:none;
}
.image-uploader .uploaded .uploaded-image:hover .delete-image{
    display:block;
}
.image-uploader .uploaded .uploaded-image .delete-image i{
    color:#fff;
    font-size:1.4rem;
}
.switch .option::before {
    width: 72px;
}
.switch .option span {
    padding: 10px 10px;
}
.text{
    color: #c990ea; /* Red text */
}
ul.switchul{
	background-color: #111111;
	border: 2px solid #c990ea;
	border-radius: 15px;
	position: relative;
	z-index: 1;
	list-style: none;
	width: 112px;
	padding: 0px;
}
ul.switchul > li{
	display: inline-flex;
	border-radius: 14px;
	background-color: #000000;
	height: 100%;
	width: 52px;
	box-sizing: border-box;
	position: relative;
	left: 0;
	top: 0;
	padding: 10px;
	color: #c990ea;
}
ul.switchul > li.style_select{
	background-color: #c990ea;
	color: #000000;
}
ul.switchul > li > a:link,
ul.switchul > li > a:visited,
ul.switchul > li > a:hover,
ul.switchul > li > a:active{
	color: #c990ea;
}
.filter {
    display: flex;
    align-items: center;  /* Changed from flex-start to center */
    flex-wrap: wrap;
    color: #ffffff;
    width: 100%;
}

.filter label {
    margin-right: 15px;  /* Increased from 10px to 15px for better spacing */
    margin-bottom: 0;    /* Removed bottom margin since we're centering */
    display: inline-flex; /* Changed from inline-block to inline-flex */
    align-items: center;  /* Center the label text vertically */
    height: 38px;        /* Match the height of filter buttons (padding + border) */
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.enroll-btn,
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #c990ea;
    border-radius: 4px;
    background: #111111;
    color: #c990ea;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.enroll-btn.active,
.filter-btn.active {
    background: #c990ea;
    color: #000000;
    border-color: #c990ea;
}

.enroll-btn:hover,
.filter-btn:hover {
    background: rgba(201, 144, 234, 0.2);
    color: #c990ea;
    border-color: #c990ea;
}

/* First, disable hover effects on touch devices */
@media (hover: none) {
    .enroll-btn:hover,
    .filter-btn:hover {
        background: #111111;
        color: #c990ea;
        border-color: #c990ea;
    }
}

/* Ensure active state takes precedence and works on all devices */
.enroll-btn.active,
.enroll-btn:active,
.filter-btn.active,
.filter-btn:active {
    background: #c990ea !important;
    color: #000000 !important;
    border-color: #c990ea !important;
}

/* Service button styles */
.service-btn {
    padding: 8px 16px;
    border: 1px solid #c990ea;
    border-radius: 4px;
    background: #111111;
    color: #c990ea;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.service-btn.active {
    background: #c990ea;
    color: #000000;
    border-color: #c990ea;
}

.service-btn:hover {
    background: rgba(255, 167, 198, 0.2);
    color: #c990ea;
    border-color: #c990ea;
}

/* Disable hover effects on touch devices for service buttons */
@media (hover: none) {
    .service-btn:hover {
        background: #111111;
        color: #c990ea;
        border-color: #c990ea;
    }
}

/* Ad Popup */
.ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.ad-popup {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.ad-popup-img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
.ad-popup-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}
.ad-popup-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    background: rgba(201, 144, 234, 0.08);
    cursor: pointer;
    user-select: none;
}
.ad-popup-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c990ea;
    cursor: pointer;
}

/* Service filter collapsible */
.service-toggle {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(201, 144, 234, 0.08);
    border: 1px solid #c990ea;
    border-radius: 4px;
    color: #c990ea;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    width: 100%;
}
.service-toggle .toggle-arrow {
    display: inline-block;
    font-size: 12px;
    transition: transform 0.3s ease;
}
.service-filter.collapsed .toggle-arrow {
    transform: rotate(-90deg);
}
.service-filter.collapsed .service-filter-buttons {
    display: none !important;
}

/* Ensure active state takes precedence for service buttons */
.service-btn.active,
.service-btn:active {
    background: #c990ea !important;
    color: #000000 !important;
    border-color: #c990ea !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .enroll-btn, .filter-btn, .service-btn {
        padding: 8px 14px;
        font-size: 15px;
        min-width: 55px;
    }
    
    .filter-buttons {
        gap: 12px;
    }
    
    .filter label {
        font-size: 15px;
        margin-right: 10px;
    }
    
    .meme-info .head .t-lg {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .enroll-btn, .filter-btn, .service-btn {
        padding: 7px 12px;
        font-size: 14px;
        min-width: 50px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter label {
        font-size: 14px;
        margin-right: 8px;
        width: 100%;
        margin-bottom: 2px;
    }
    
    .meme-info .head .t-lg {
        font-size: 17px;
    }
}

/* Lazy loading placeholder */
.lazy-bg {
    background-color: #222222;
    background-size: cover;
    background-position: center;
}

/* Carousel watermark */
.carousel-watermark {
    position: absolute;
    bottom: 30px;
    right: 12px;
    text-align: right;
    z-index: 3;
    pointer-events: none;
    line-height: 1.3;
}
.carousel-watermark .watermark-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.carousel-watermark .watermark-url {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
@media (max-width: 600px) {
    .carousel-watermark {
        bottom: 26px;
        right: 8px;
    }
    .carousel-watermark .watermark-title {
        font-size: 14px;
    }
    .carousel-watermark .watermark-url {
        font-size: 11px;
    }
}

/* Ensure cover images on main listing page show full image without cropping */
.meme-img.lazy-bg {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video play icon overlay */
.img-container .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.img-container {
    position: relative;
}

/* ================================================
   HOMEPAGE VISUAL ENHANCEMENTS
   ================================================ */

/* 1. Sticky glassy header */
header.content {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 144, 234, 0.25);
}

/* 2. Subtle ambient purple tint on page background */
.wrap {
    background: radial-gradient(ellipse 90% 45% at 50% 0%, rgba(201, 144, 234, 0.07) 0%, transparent 65%), #000;
}

/* 3. Carousel enhanced glow */
.carousel {
    box-shadow: 0 0 30px rgba(201, 144, 234, 0.35), 0 0 60px rgba(201, 144, 234, 0.12);
}

/* 4. Carousel nav button hover glow */
.carousel-btn:hover {
    background: rgba(201, 144, 234, 0.9) !important;
    box-shadow: 0 0 12px rgba(201, 144, 234, 0.55);
}

/* 5. Active carousel dot glow */
.carousel-dot.active {
    box-shadow: 0 0 6px rgba(201, 144, 234, 0.85);
}

/* 6. Search bar focus glow */
.search-bar:focus-within {
    box-shadow: 0 0 14px rgba(201, 144, 234, 0.55);
    border-color: #da9ef0;
}

/* 7. Search button hover glow */
.btn-search:hover {
    background: #d4aaef;
    box-shadow: 0 0 10px rgba(201, 144, 234, 0.6);
}

/* 8. Logo subtle glow + hover */
.logo img {
    filter: drop-shadow(0 0 6px rgba(201, 144, 234, 0.3));
    transition: filter 0.3s ease;
}
.logo:hover img {
    filter: drop-shadow(0 0 14px rgba(201, 144, 234, 0.7));
}

/* 9. Filter section labels - purple accent */
.filter > label {
    color: #c990ea !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

/* 10. Pill-shaped filter / enroll / service buttons */
.enroll-btn,
.filter-btn,
.service-btn {
    border-radius: 20px !important;
}

/* 11. Active button glow */
.enroll-btn.active,
.filter-btn.active,
.service-btn.active {
    box-shadow: 0 0 10px rgba(201, 144, 234, 0.55) !important;
}

/* 12. Girl card hover lift */
.meme-item {
    border-radius: 14px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
@media (hover: hover) {
    .meme-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(201, 144, 234, 0.28);
    }
}

/* 13. Girl card header gradient */
.meme-info .head {
    background: linear-gradient(120deg, #c990ea 0%, #9b3fcc 100%);
}

/* 14. Frosted glass footer */
.menu {
    background: rgba(5, 5, 5, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201, 144, 234, 0.35);
}

/* 15. Active footer nav item */
.menu > li.menu-active {
    background: rgba(201, 144, 234, 0.08) !important;
    box-shadow: inset 0 3px 0 rgba(201, 144, 234, 0.75) !important;
}

/* 16. Subtle section divider between filter rows */
.content > .top-bar + .top-bar {
    border-top: 1px solid rgba(201, 144, 234, 0.1);
    padding-top: 6px;
}

/* 17. Custom scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 144, 234, 0.35);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 144, 234, 0.65);
}