/* ---------------------------------- */
/* 0. Reset and Base Styles */
/* ---------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #5d5dff; 
    --secondary-color: #c988ff; 
    --background-color: #0c0c1e; 
    --card-color: #1a1a2e; 
    --text-color: #e0e0ff; 
    --highlight-gradient: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --logo-shadow: 0 0 10px rgba(93, 93, 255, 0.7); 
    --navbar-bg: rgba(12, 12, 30, 0.9);
    --review-card-border: var(--secondary-color);
    --safe-section-bg: #111122;
    --mobile-menu-bg: rgba(12, 12, 30, 0.97);
}

/* ---- Light Mode ---- */
body[data-theme="light"] {
    --primary-color: #4040cc;
    --secondary-color: #9933cc;
    --background-color: #f0f0fa;
    --card-color: #ffffff;
    --text-color: #1a1a2e;
    --logo-shadow: 0 0 10px rgba(64, 64, 204, 0.4);
    --navbar-bg: rgba(240, 240, 250, 0.95);
    --review-card-border: #9933cc;
    --safe-section-bg: #e0e0f0;
    --mobile-menu-bg: rgba(240, 240, 250, 0.98);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: var(--primary-color); text-decoration: none; }
h1, h2, h3 { font-weight: 900; margin-bottom: 0.5rem; }

.highlight {
    background-image: var(--highlight-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Navbar */
.main-navbar {
    position: sticky; top: 0; width: 100%;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000; padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}
.navbar-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.main-navbar .logo { font-size: 1.7rem; font-weight: 900; color: var(--secondary-color); text-shadow: var(--logo-shadow); }
.nav-links { display: none; list-style: none; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-right .discord-link { display: none; font-size: 1.5rem; color: var(--text-color); transition: color 0.2s; }
.nav-right .discord-link:hover { color: var(--secondary-color); }

/* Hamburger Button */
.hamburger {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 26px; height: 20px; background: none; border: none; cursor: pointer;
    padding: 0; z-index: 1100;
}
.hamburger span {
    display: block; width: 100%; height: 2px;
    background-color: var(--text-color); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* X animation when open */
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Dropdown Menu */
.mobile-menu {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease, background-color 0.3s ease;
    background-color: var(--mobile-menu-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none; border: 2px solid var(--primary-color);
    color: var(--text-color); cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; transition: background 0.3s, color 0.3s, transform 0.3s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--primary-color); color: #fff;
    transform: rotate(20deg);
}
.theme-toggle i { transition: transform 0.4s ease; pointer-events: none; }
.mobile-menu.open { max-height: 300px; padding: 0.5rem 0; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu ul li { border-bottom: 1px solid #1a1a2e; }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-nav-link {
    display: block; padding: 0.9rem 1.5rem;
    color: var(--text-color); font-weight: 700; font-size: 0.95rem;
    letter-spacing: 0.05em; transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover { background-color: #1a1a2e; color: var(--secondary-color); }
.discord-mobile i { margin-right: 0.5rem; color: #7289da; }

/* Hero Section (Original Static Background) */
.hero-section {
    position: relative; padding: 0; text-align: center;
    min-height: 75vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; overflow: hidden; 
    
    background-image: url('mobile-hero-image.jpg'); 
    background-size: cover;
    background-position: center;
}

.video-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.4); 
}
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1rem; }
.hero-section h1 { font-size: 2.8rem; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; color: white; text-shadow: 0 0 15px rgba(0, 0, 0, 0.7); }
.download-button {
    background: var(--highlight-gradient); color: var(--text-color);
    padding: 1rem 2.5rem; font-weight: 700; border-radius: 5px;
    box-shadow: 0 0 10px rgba(56, 200, 255, 0.5); transition: transform 0.2s;
}
.download-button:hover { transform: translateY(-2px); }

/* Games Grid */
.featured-mods-section, .category-section, .reviews-section { padding: 2rem 1rem; }
.section-subtitle { text-align: center; color: #9999ff; margin-bottom: 1.5rem; }

/* Search Bar */
.search-container {
    max-width: 600px; margin: 0 auto 2.5rem; position: relative;
    display: flex; align-items: center;
}
.search-icon {
    position: absolute; left: 1rem; color: #999; font-size: 1.1rem;
    pointer-events: none; transition: color 0.3s;
}
.search-input {
    width: 100%; padding: 0.9rem 1rem 0.9rem 2.8rem;
    border-radius: 50px; border: 2px solid #2a2a44;
    background-color: var(--card-color); color: var(--text-color);
    font-size: 1rem; font-family: inherit; outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(93, 93, 255, 0.3);
}
.search-input:focus + .search-icon, 
.search-container:focus-within .search-icon {
    color: var(--primary-color);
}
.no-results {
    text-align: center; color: #999; padding: 3rem 1rem;
    grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.no-results i { font-size: 3rem; color: #444; }

.games-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.game-card {
    background-color: var(--card-color); border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6); 
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid #2a2a44; cursor: pointer;
}
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(93, 93, 255, 0.45), 0 6px 16px rgba(0, 0, 0, 0.5);
}
.game-card img {
    width: 100%; height: 180px; object-fit: cover;
    transition: opacity 0.3s ease;
}
.type-badge { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; z-index: 2; }
.mobile-badge { background-color: #5d5dff; color: white; }
.mod-badge { background-color: #c988ff; color: white; }
.updated-badge {
    position: absolute; bottom: 10px; right: 10px;
    background-color: rgba(0, 255, 136, 0.9); color: #000;
    padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 900;
    z-index: 2; display: flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.game-info { padding: 1rem; }
.rating { color: #ffcc00; }

/* Skeleton Loader */
.skeleton-box {
    position: relative;
    overflow: hidden;
    background-color: #2a2a44;
}
body[data-theme="light"] .skeleton-box {
    background-color: #e0e0f0;
}
.skeleton-box::after {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.15) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
    content: '';
}
body[data-theme="light"] .skeleton-box::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.8) 60%,
        rgba(255, 255, 255, 0)
    );
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
.skeleton-img { opacity: 0; }
.skeleton-img.loaded { opacity: 1; }

/* Categories & Reviews */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.category-button {
    background-color: var(--card-color); color: var(--text-color); padding: 1.5rem 1rem;
    border-radius: 12px; font-weight: 700; display: flex; flex-direction: column;
    align-items: center; border: 2px solid #2a2a44; transition: 0.3s;
}
.category-button i { font-size: 2rem; margin-bottom: 0.75rem; color: var(--primary-color); }
.review-card { background-color: var(--card-color); padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem; border-left: 5px solid var(--review-card-border); }
.user-info { display: flex; align-items: center; font-size: 0.9rem; color: var(--primary-color); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background-color: var(--primary-color); color: #000; display: flex; align-items: center; justify-content: center; margin-right: 0.5rem; font-weight: bold;}

/* Footer */
.safe-download-section { text-align: center; background-color: var(--safe-section-bg); padding: 3rem 1rem; margin-top: 2rem; transition: background-color 0.3s ease; }

.main-footer {
    background-color: #0c0c1e; border-top: 1px solid #1a1a2e;
    padding: 4rem 1rem 2rem; color: #a0a0b8; font-size: 0.9rem;
}
body[data-theme="light"] .main-footer {
    background-color: #f0f0fa; border-top-color: #d0d0e0; color: #555;
}
.footer-container {
    max-width: 1200px; margin: 0 auto; display: grid; gap: 3rem;
    grid-template-columns: 1fr;
}
.footer-brand .logo-text {
    font-size: 1.5rem; font-weight: 900; color: var(--text-color);
    display: inline-block; margin-bottom: 1rem;
}
.footer-brand p { line-height: 1.8; margin-bottom: 1.5rem; max-width: 400px; }
.security-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.security-badges .badge {
    background: rgba(93, 93, 255, 0.1); border: 1px solid rgba(93, 93, 255, 0.3);
    padding: 6px 12px; border-radius: 4px; color: var(--primary-color);
    font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
body[data-theme="light"] .security-badges .badge {
    background: rgba(64, 64, 204, 0.1); border-color: rgba(64, 64, 204, 0.3);
}
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.link-column h4 { color: var(--text-color); font-size: 1.1rem; margin-bottom: 1.2rem; }
.link-column ul { list-style: none; }
.link-column ul li { margin-bottom: 0.8rem; }
.link-column a { color: inherit; transition: color 0.2s; }
.link-column a:hover { color: var(--primary-color); }
.footer-bottom {
    max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem;
    border-top: 1px solid #1a1a2e; display: flex; flex-direction: column;
    align-items: center; gap: 1.5rem; text-align: center;
}
body[data-theme="light"] .footer-bottom { border-top-color: #d0d0e0; }
.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: #1a1a2e; color: var(--text-color); border-radius: 50%;
    font-size: 1.2rem; transition: all 0.3s ease;
}
body[data-theme="light"] .social-links a { background: #e0e0f0; }
.social-links a:hover { background: var(--primary-color); color: #fff; transform: translateY(-3px); }

/* Modals */
.modal-overlay {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    overflow: auto; padding-top: 50px; animation: fadeIn 0.3s ease-out forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background-color: var(--card-color); margin: 5% auto; padding: 20px; border-radius: 15px;
    box-shadow: 0 0 40px rgba(93, 93, 255, 0.4); max-width: 90%; min-width: 300px;
}
.close-button { color: var(--secondary-color); float: right; font-size: 35px; background: none; border: none; cursor: pointer; }
.modal-image { width: 100%; max-width: 300px; border-radius: 10px; border: 3px solid var(--primary-color); display: block; margin: 0 auto; }
.download-links { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 350px; margin: 1rem auto; }
.android-button { background: linear-gradient(90deg, #5CB85C, #449D44); }
.ios-button { background: linear-gradient(90deg, #424242, #1C1C1C); }

/* Loading Animation (Trustworthy UI) */
#loading-modal { z-index: 3000; align-items: center; justify-content: center; }
.loading-content {
    background-color: var(--card-color); padding: 40px 30px; border-radius: 15px;
    width: 90%; max-width: 400px; text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    border: 1px solid #2a2a44;
}
.secure-header {
    color: #00ff88; font-size: 1.2rem; font-weight: 700;
    margin-bottom: 25px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.progress-bar-container {
    width: 100%; height: 8px; background-color: #1a1a2e;
    border-radius: 10px; overflow: hidden; margin-bottom: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px; transition: width 0.3s ease;
}
.percentage-text { font-size: 2rem; font-weight: 900; color: var(--text-color); margin-bottom: 10px; }
.loading-console {
    font-family: monospace; font-size: 0.85rem; color: #888;
    min-height: 20px; transition: color 0.2s;
}

/* Scroll Reveal */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1s; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* Final Download Button (Magic Button) */
.final-download-btn {
    display: inline-block; margin-top: 20px; padding: 12px 30px;
    background: #00ff88; color: #000; font-weight: 900; text-decoration: none;
    border-radius: 50px; box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    animation: pulse 1.5s infinite; cursor: pointer; font-size: 1.1rem; border: 2px solid #fff;
    transition: transform 0.2s, background 0.2s;
    width: 100%; box-sizing: border-box;
}
.final-download-btn:hover { background: #00cc6a; transform: scale(1.05); }
@keyframes pulse { 0% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); } 50% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.8); } 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); } }

/* Media Queries */
@media (min-width: 768px) {
    .nav-links { display: flex; gap: 15px; }
    .hamburger { display: none; }
    .mobile-menu { display: none; }
    .nav-right .discord-link { display: flex; }
    .games-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; }
    .footer-container { grid-template-columns: 2fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .categories-grid { grid-template-columns: repeat(5, 1fr); max-width: 1200px; margin: 0 auto; }
    .modal-content { max-width: 700px; margin-top: 10%; }
    #modal-game-details { display: flex; gap: 2rem; align-items: flex-start; }
    .modal-text-content { text-align: left; flex: 1; }
    .download-links { flex-direction: row; max-width: none; }
    .download-links a { flex-basis: 50%; }
}

/* ---------------------------------- */
/* TikTok Overlay Styles (التحديث الأخير) */
/* ---------------------------------- */
.tiktok-overlay {
    display: none; /* Hidden by default */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999; 
    justify-content: center; align-items: center; text-align: center; padding: 20px;
}
.tiktok-content {
    background: var(--card-color); padding: 2.5rem 2rem; border-radius: 20px;
    border: 1px solid #2a2a44; max-width: 420px; width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(93, 93, 255, 0.15);
    position: relative;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.tiktok-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--highlight-gradient);
}

.tiktok-icon { font-size: 3.5rem; margin-bottom: 1.2rem; position: relative; display: inline-block; }
.tiktok-icon .fa-tiktok { 
    color: var(--text-color); 
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}
.tiktok-icon .fa-ban {
    color: #ff3366; position: absolute; bottom: -5px; right: -10px;
    font-size: 2rem; background: var(--card-color); border-radius: 50%;
    border: 3px solid var(--card-color);
}
.tiktok-content h2 { 
    color: var(--text-color); margin-bottom: 0.5rem; font-size: 1.6rem; font-weight: 900; 
}
.tiktok-content p { color: #a0a0b8; font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }

.instruction-box { 
    background: rgba(12, 12, 30, 0.6); 
    border: 1px solid #2a2a44;
    padding: 1.5rem; border-radius: 12px; margin-bottom: 1.8rem; text-align: left; 
}
body[data-theme="light"] .instruction-box {
    background: rgba(240, 240, 250, 0.6);
    border-color: #d0d0e0;
}
.instruction-box p {
    color: var(--text-color); font-weight: 700; margin-bottom: 1rem; font-size: 1rem;
}
.instruction-box .step { display: flex; align-items: center; margin: 12px 0; font-size: 0.95rem; color: var(--text-color); }
.instruction-box .step span:not(.action-hint) {
    background: var(--highlight-gradient); width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 900; margin-right: 12px; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(93, 93, 255, 0.4);
}
.instruction-box .step .action-hint {
    font-size: 0.8rem; color: #ff3366; margin-left: auto; font-weight: 700;
}
.instruction-box strong { color: var(--secondary-color); font-weight: 900; margin: 0 5px; }

.copy-btn {
    background: transparent; color: var(--text-color); 
    border: 2px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 50px; cursor: pointer; width: 100%; font-weight: 700; font-size: 1rem;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.copy-btn:hover { 
    background: rgba(93, 93, 255, 0.1); 
    box-shadow: 0 0 15px rgba(93, 93, 255, 0.3);
    transform: translateY(-2px);
}
.copy-btn i { color: var(--primary-color); }

/* NEW: Red Arrow and Animation for TikTok */
.tiktok-arrow {
    display: none; /* يتم إظهاره بواسطة JavaScript */
    position: fixed;
    top: 15px; 
    right: 20px;
    font-size: 45px; 
    color: #ff3366; 
    z-index: 10000; 
    transform: rotate(-10deg); 
    animation: bounce-arrow 0.8s infinite alternate ease-in-out; 
    filter: drop-shadow(0 0 12px rgba(255, 51, 102, 0.6));
}

@keyframes bounce-arrow {
    0% { transform: translateY(0) rotate(-10deg); }
    100% { transform: translateY(-12px) rotate(-10deg); }
}

/* close-ad-btn is shared by multiple ad types */
.close-ad-btn {
    position: absolute;
    top: -30px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: var(--card-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.close-ad-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ---------------------------------- */
/* CPM Optimized Tall Side Ad */
/* ---------------------------------- */
.sticky-tall-ad {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 1040;
    background: rgba(12, 12, 30, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(201, 136, 255, 0.3);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(93, 93, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sticky-tall-ad:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(93, 93, 255, 0.3);
}
body[data-theme="light"] .sticky-tall-ad {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(153, 51, 204, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(64, 64, 204, 0.15);
}
.side-close-btn {
    top: -12px;
    left: -12px;
    right: auto;
    width: 24px;
    height: 24px;
    font-size: 16px;
}
.tall-ad-wrapper {
    width: 160px;
    height: 300px;
    overflow: hidden;
    position: relative;
}
@media (max-width: 768px) {
    .sticky-tall-ad {
        padding: 5px;
    }
    .tall-ad-wrapper {
        transform: scale(0.55);
        transform-origin: right center;
        margin: -67px -72px -67px 0; 
    }
}

/* ---------------------------------- */
/* Premium Inline Native Ad */
/* ---------------------------------- */
.premium-inline-ad {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    background: linear-gradient(145deg, var(--card-color), rgba(26, 26, 46, 0.5));
    border: 1px solid rgba(93, 93, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(93, 93, 255, 0.05);
    min-height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.premium-inline-ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(93, 93, 255, 0.2);
    border-color: var(--primary-color);
}
body[data-theme="light"] .premium-inline-ad {
    background: linear-gradient(145deg, #ffffff, rgba(240, 240, 250, 0.5));
}
.ad-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--highlight-gradient);
    color: #fff;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(93, 93, 255, 0.5);
    letter-spacing: 1px;
}
.inline-close-btn {
    top: -12px;
    right: 15px;
}
@media (max-width: 768px) {
    .premium-inline-ad {
        margin: 25px 15px;
        padding: 15px;
    }
}