:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #ec4899;
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(99, 102, 241, 0.1);
    --radius-xl: 16px;
    --radius-lg: 12px;
    --shadow-premium: 0 10px 30px rgba(99, 102, 241, 0.08);
}

body {
    background: var(--bg-body);
    background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.04) 0px, transparent 50%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .premium-font { font-family: 'Outfit', sans-serif; }

.dl-container { max-width: 1250px; width: 95%; margin: 1rem auto; }

.dl-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 1rem 2.5rem; margin-bottom: 2.5rem;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}
.dl-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.dl-logo:hover { opacity: 0.85; }
.dl-logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}
.dl-logo-text {
    font-size: 1.5rem; font-weight: 800; color: var(--text-main);
    letter-spacing: -0.5px;
}
.dl-logo-text span { font-weight: 400; color: var(--text-muted); }

.dl-nav { display: flex; gap: 1rem; align-items: center; }
.dl-nav-btn {
    color: var(--text-main); font-weight: 600; font-size: 0.9375rem;
    padding: 0.625rem 1.25rem; border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    display: flex; align-items: center; gap: 0.5rem;
    position: relative;
}
.dl-nav-btn i { font-size: 1rem; opacity: 0.8; }

.nav-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    background-color: var(--bg, #6366f1);
    animation: badgeFloat 2.5s ease-in-out infinite;
}

.nav-badge::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: transparent;
    border-top-color: var(--bg, #6366f1);
}

@keyframes badgeFloat {
    0%, 100% { transform: translate(-50%, 0); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
    50% { transform: translate(-50%, -5px); box-shadow: 0 8px 16px rgba(0,0,0,0.25); }
}

/* Mobile adjust */
@media (max-width: 768px) {
    .dl-header { padding: 1rem; flex-direction: column; gap: 1rem; text-align: center; }
    .dl-nav { flex-wrap: wrap; justify-content: center; }
}

/* Outer 3-column page layout: ads | card | ads */
.dl-page-row { display: grid; grid-template-columns: 300px 1fr 300px; gap: 1.5rem; align-items: start; margin-bottom: 0.75rem; }
.dl-side-col { width: 100%; display: flex; flex-direction: column; gap: 1rem; min-height: 250px; max-height: 250px; overflow: hidden; }

@media (max-width: 1300px) {
    .dl-page-row { grid-template-columns: 1fr 300px; }
    .dl-side-l { display: none; }
}
@media (max-width: 900px) {
    .dl-page-row { grid-template-columns: 1fr; }
    .dl-side-r { display: none; }
}

/* Download wait card */
.dl-main-card {
    background: #fff; border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 1.5rem; box-shadow: var(--shadow-premium);
    position: relative; overflow: hidden;
}
.dl-main-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }

.dl-slot-frame { text-align: center; line-height: 0; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 12px; overflow: hidden; min-height: 250px; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.dl-slot-frame:hover { box-shadow: 0 8px 24px rgba(99,102,241,0.12); transform: translateY(-2px); }
.dl-slot-frame img { max-width: 100%; border-radius: 8px; display: block; transition: transform 0.4s ease, filter 0.3s ease; }
.dl-slot-frame img:hover { transform: scale(1.03); filter: brightness(1.05); }
.dl-slot-frame iframe { max-width: 100%; border-radius: 8px; }

.explore-title { font-weight: 700; margin-bottom: 0.6rem; color: var(--text-main); font-size: 0.85rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 0.3rem; }
.explore-list { list-style: none; padding: 0; margin: 0; }
.explore-link {
    display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 0.7rem; background: #f8fafc; border-radius: 6px;
    color: var(--text-main); text-decoration: none !important; transition: all 0.2s ease; font-weight: 500; font-size: 0.78rem;
}
.explore-link:hover { background: var(--accent-primary); color: #fff; }

/* Wait Box (Simplified inside Card) */
.wait-box { text-align: center; }

.timer-wrapper { position: relative; width: 80px; height: 80px; margin: 0 auto 1rem; }
.timer-svg { transform: rotate(-90deg); width: 80px; height: 80px; }
.timer-bg { fill: none; stroke: #f1f5f9; stroke-width: 6; }
.timer-progress { fill: none; stroke: url(#grad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.timer-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.6rem; font-weight: 800; color: var(--text-main); }

.file-name { font-size: 1.25rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.25rem; line-height: 1.2; }
.file-meta { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; margin-bottom: 1rem; }

.download-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important; padding: 0.7rem 2.5rem; border-radius: 50px; font-size: 1.05rem; font-weight: 700;
    border: none; box-shadow: 0 6px 15px rgba(236, 72, 113, 0.2); transition: all 0.2s ease;
    display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none !important;
}
.download-btn:hover { transform: translateY(-2px); }

/* Suggest Grid - Gallery Style (No Desc) */
.suggest-section { margin-top: 0.75rem; border-top: 1px solid #f1f5f9; padding-top: 0.75rem; clear: both; }
.suggest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 992px) { .suggest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .suggest-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

.suggest-card {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 10px; overflow: hidden;
    transition: all 0.25s ease; text-decoration: none !important; display: flex; flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.suggest-card:hover { transform: translateY(-5px); border-color: var(--accent-primary); box-shadow: 0 12px 25px rgba(0,0,0,0.08); }
.suggest-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 0.3s ease; display: block; }
.suggest-card:hover .suggest-img { transform: scale(1.05); }
.suggest-body { padding: 0.85rem; flex: 1; background: #fff; }
.suggest-name { font-weight: 700; color: var(--text-main); margin: 0; font-size: 0.9rem; line-height: 1.4; height: 2.5rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; text-align: center; }

/* Spam Modal */
.spam-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1rem; }
.spam-card { background: #fff; border-radius: 12px; padding: 1.5rem; max-width: 350px; width: 100%; text-align: center; }
