:root {
    --bg-color: #09090b;
    --card-bg: #18181b;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #8b5cf6;
    --gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --skeleton-base: #27272a;
    --skeleton-highlight: #3f3f46;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* ===== PROFESSIONAL LOADING SCREEN ===== */
.loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: linear-gradient(135deg, #09090b 0%, #18181b 50%, #09090b 100%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.loading-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bolt-icon {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.loading-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #8b5cf6;
    border-right-color: #3b82f6;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    border-top-color: #3b82f6;
    border-right-color: #8b5cf6;
    animation: rotate 1.5s linear infinite reverse;
    opacity: 0.7;
}

.ring-3 {
    width: 60%;
    height: 60%;
    border-top-color: #8b5cf6;
    animation: rotate 1s linear infinite;
    opacity: 0.5;
}

.loading-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.loading-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-bar {
    width: 250px;
    height: 4px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    margin: 0 auto 15px;
    overflow: hidden;
    animation: fadeIn 1s ease-out 0.5s both;
}

.loading-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    animation: progressBar 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.7s both, textPulse 2s ease-in-out infinite;
}

/* Loading Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

@keyframes progressBar {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(0);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Hide main content initially */
body.loading header,
body.loading .categories,
body.loading main,
body.loading footer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.6s ease 0.3s, visibility 0.6s ease 0.3s;
}

body.loaded header,
body.loaded .categories,
body.loaded main,
body.loaded footer {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Responsive Loading Screen */
@media (max-width: 768px) {
    .loading-logo {
        width: 100px;
        height: 100px;
    }
    
    .bolt-icon {
        font-size: 3rem;
    }
    
    .loading-title {
        font-size: 1.6rem;
    }
    
    .loading-bar {
        width: 200px;
    }
    
    .loading-text {
        font-size: 0.85rem;
    }
}
/* ===== END LOADING SCREEN ===== */

/* Smooth Scrolling Optimization */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 90px; /* Account for sticky header */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve scrollbar aesthetics */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(9, 9, 11, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

/* HEADER */
header {
    padding: 15px 20px;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo.small {
    font-size: 1.1rem;
}

/* Home Button for Static Pages */
.home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.home-btn i {
    font-size: 1.1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: var(--gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.home-btn:hover i {
    -webkit-text-fill-color: white;
}

.home-btn:active {
    transform: translateY(0) scale(0.98);
}

.search-bar {
    background: var(--card-bg);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 40%;
    min-width: 150px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}

.categories {
    display: flex;
    gap: 12px;
    padding: 18px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    z-index: 10;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    height: 3px;
}

.categories::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.categories::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.categories::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.cat-btn {
    position: relative;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.9), rgba(39, 39, 42, 0.7));
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 11px 22px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: fit-content;
    letter-spacing: 0.3px;
}

.cat-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cat-btn:hover::before {
    width: 200%;
    height: 200%;
}

.cat-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

.cat-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    font-weight: 600;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.6), 
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                0 2px 4px rgba(0, 0, 0, 0.3) inset;
    transform: translateY(-2px);
}

.cat-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
    border-radius: 30px;
    pointer-events: none;
}

.cat-btn:active {
    transform: translateY(0) scale(0.96);
    transition: transform 0.1s;
}

/* Smooth Scrolling for Main Content */
main {
    flex: 1;
    width: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
    contain: layout style;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 15px;
    min-height: 50vh;
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* CARD STYLE */
.card {
    background: transparent;
    border-radius: 12px;
    position: relative;
    aspect-ratio: 9/16;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: block;
    text-decoration: none;
    padding: 1.5px;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
    content-visibility: auto;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: 0;
    animation: rgbBorderAnimation 6s linear infinite;
}

@keyframes rgbBorderAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card:active {
    transform: scale(0.98);
}

.video-wrapper {
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: var(--card-bg);
    position: relative;
    z-index: 1;
    border-radius: 9px;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-wrapper.loaded::before {
    opacity: 0;
    animation: none;
}

@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    
    100% {
        background-position: 200% 0;
    }
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.video-wrapper.loaded video {
    opacity: 1;
}

/* NEW Badge */
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    animation: newBadgePulse 2s ease-in-out infinite;
}

.new-badge i {
    font-size: 0.7rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
        transform: scale(1.05);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg);
    }
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 6;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover .card-info,
.card:active .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-height: 2.6em;
    margin: auto 0;
    padding: 0 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.card-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.card-meta .hd-badge {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    margin-right: 20px;
}

/* HD Badge Top Left */
.hd-badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.6);
    z-index: 10;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .hd-badge-top,
.card:active .hd-badge-top {
    opacity: 1;
    transform: scale(1);
}

.card-meta i {
    font-size: 0.7rem;
    color: var(--accent);
}

/* No Results Empty State */
.no-results-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.no-results-content {
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out;
}

.no-results-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    border: 2px dashed rgba(139, 92, 246, 0.3);
}

.no-results-icon i:first-child {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.no-results-icon-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: bounceIn 0.6s ease-out 0.3s both;
}

.no-results-icon-overlay i {
    color: white;
    font-size: 1.2rem;
}

.no-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.no-results-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.no-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.no-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.no-results-btn:active {
    transform: translateY(0) scale(0.98);
}

.no-results-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.no-results-btn:hover i {
    transform: rotate(180deg);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive No Results */
@media (max-width: 768px) {
    .no-results-icon {
        width: 100px;
        height: 100px;
    }
    
    .no-results-icon i:first-child {
        font-size: 3rem;
    }
    
    .no-results-title {
        font-size: 1.6rem;
    }
    
    .no-results-text {
        font-size: 0.95rem;
    }
}

/* PAGINATION */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.page-btn {
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.page-btn.active {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* FOOTER */
footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.footer-links a i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.footer-links a:hover::before {
    width: 200%;
    height: 200%;
}

.footer-links a:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.15));
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.footer-links a:hover i {
    transform: scale(1.1);
}

.footer-links a:active {
    transform: translateY(-1px) scale(0.98);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #555;
    font-size: 0.8rem;
}

/* DETAIL PAGE & RESPONSIVE TEXT */
.detail-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.detail-nav {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 9, 11, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-btn {
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.back-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.detail-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

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

.detail-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.detail-video-box {
    background: black;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: 50vh;
}

.detail-video-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info-box {
    padding: 25px;
    background: var(--bg-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.badge {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.detail-header h1 {
    font-size: 1.6rem;
    margin-top: 8px;
    line-height: 1.2;
}

/* NEW DESCRIPTION STYLES */
.short-desc {
    font-size: 0.95rem;
    color: #e4e4e7;
    line-height: 1.5;
    margin-top: 5px;
    font-weight: 300;
}

.long-desc-section {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.long-desc-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: #8b5cf6;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.long-desc-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-line;
}

.stats-row {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 8px;
}

.stat i {
    color: var(--accent);
}

/* Wallpaper Details Table */
.wallpaper-details-table {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-title i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-item:hover {
    background: rgba(24, 24, 27, 0.9);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 100px;
}

.detail-label i {
    color: var(--accent);
    font-size: 0.85rem;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
    text-align: right;
}

/* Responsive Details Table */
@media (max-width: 768px) {
    .wallpaper-details-table {
        padding: 16px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .table-title {
        font-size: 1rem;
    }
    
    .detail-item {
        padding: 12px 14px;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-download {
    flex: 1;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-share {
    width: 50px;
    background: #27272a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
}

.tags-section h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- LEGAL & CONTACT PAGES CSS --- */
.legal-page {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.legal-container h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-container .last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.legal-container section {
    margin-bottom: 30px;
}

.legal-container h2 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
}

.legal-container p,
.legal-container li {
    line-height: 1.7;
    color: #d4d4d8;
    margin-bottom: 10px;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-container a {
    color: var(--accent);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

.highlight-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 15px;
    border-radius: 8px;
    color: white;
}

/* Contact Page Specifics */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.contact-card a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
}

.contact-card a:hover {
    background: var(--gradient);
    text-decoration: none;
}

@media (min-width: 768px) {
    .detail-layout {
        flex-direction: row;
        height: calc(100vh - 70px);
    }
    
    .detail-video-box {
        width: 50%;
        height: 100%;
        max-height: none;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .detail-info-box {
        width: 50%;
        padding: 40px;
        justify-content: flex-start;
    }
    
    .detail-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-links {
        gap: 30px;
    }
}

/* --- SAFELINK INLINE SECTIONS --- */
.safelink-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Countdown Timer */
.countdown-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.countdown-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.countdown-message {
    font-size: 1.1rem;
    color: #e4e4e7;
    margin-bottom: 15px;
}

.countdown-timer {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-seconds {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ad Containers */
.ad-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    min-height: 250px;
    display: block;
    width: 100%;
    overflow: hidden;
}

.ad-container ins {
    min-height: 250px;
}

.ad-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Get Wallpaper Section */
.get-wallpaper-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.get-wallpaper-section h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-get-wallpaper {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-get-wallpaper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.wait-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 20px;
}

.wait-message i {
    font-size: 1.5rem;
}

.btn-final-download {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    margin-top: 20px;
    animation: downloadButtonPulse 2s ease-in-out infinite;
}

@keyframes downloadButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
    }
}

.btn-final-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.btn-final-download:active {
    transform: translateY(0);
}

/* Update Download Button to be a button instead of link */
.btn-download {
    flex: 1;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .countdown-timer {
        font-size: 3rem;
    }
    
    .countdown-icon {
        font-size: 2.5rem;
    }
    
    .get-wallpaper-section {
        padding: 20px;
    }
    
    .get-wallpaper-section h3 {
        font-size: 1.3rem;
    }
    
    .ad-container {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 20px;
    }
    
    .countdown-timer {
        font-size: 2.5rem;
    }
    
    .btn-get-wallpaper,
    .btn-final-download {
        font-size: 1rem;
        padding: 14px;
    }
    
    /* NEW badge responsive */
    .new-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .new-badge i {
        font-size: 0.65rem;
    }
}

/* --- COOKIE CONSENT BANNER STYLES --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e1e2e 0%, #27272a 100%);
    border-top: 2px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #a78bfa;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.cookie-reject {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cookie-reject:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.cookie-customize {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-customize:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Customization Panel */
.cookie-custom-panel {
    padding: 25px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.cookie-custom-panel h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 12px;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info strong {
    display: block;
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
}

.cookie-option-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background: var(--gradient);
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.cookie-toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-custom-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

/* Responsive Cookie Banner */
@media (max-width: 968px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cookie-icon {
        font-size: 2.5rem;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-custom-panel {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-text h3 {
        font-size: 1.1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-toggle {
        align-self: flex-end;
    }
}
