/* Fileech Master Stylesheet v200.0 - Full Features & Cleaned Up */

/* =========================================
   1. FONT & VARIABLES
   ========================================= */
@font-face { font-family: 'Dana'; src: url('/fonts/Dana-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dana'; src: url('/fonts/Dana-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dana'; src: url('/fonts/Dana-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dana'; src: url('/fonts/Dana-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dana'; src: url('/fonts/Dana-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
    --bg-color: #0f0f0f;
    --card-bg: #18181b;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --gold: #fbbf24;
    --border-color: #27272a;
    --danger: #ef4444;
    --success: #10b981;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #444 var(--bg-color); }
body {
    background-color: var(--bg-color); color: var(--text-main); font-family: 'Dana', sans-serif; margin: 0; padding: 0;
    line-height: 1.6; min-height: 100vh; overflow-x: hidden;
}

h1, h2, h3, h4, h5, .header-btn, .section-title, .user-name, .btn-buy-plan, .file-title { font-weight: 800; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header { background: rgba(24, 24, 27, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); padding: 12px 0; position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.brand-wrapper { display: flex; align-items: center; gap: 12px; }
.header-logo { width: 38px; height: auto; }
.brand-text h1 { margin: 0; font-size: 1.1rem; line-height: 1.2; color: #fff; }
.brand-text .subtitle { font-size: 0.7rem; color: var(--text-muted); margin: 0; font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.header-btn { background: var(--primary); color: white; padding: 8px 18px; border-radius: var(--radius-md); font-size: 0.85rem; white-space: nowrap; cursor: pointer; border: none; font-family: 'Dana', sans-serif; }
.header-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* User Profile */
.user-dropdown-container { position: relative; }
.user-profile-box { display: flex; align-items: center; gap: 10px; cursor: pointer; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); padding: 5px 10px 5px 5px; border-radius: 50px; transition: 0.3s; }
.user-profile-box:hover { background: rgba(255,255,255,0.08); }
.user-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; margin-left: 5px; }
.user-name { font-size: 0.8rem; color: #fff; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-wallet { font-size: 0.7rem; color: var(--gold); font-weight: 500; }
.profile-icon { width: 30px; height: 30px; background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.9rem; font-weight: 700; }
.user-dropdown-menu { position: absolute; top: 115%; left: 0; width: 180px; background: #222; border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.5); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.2s; z-index: 2000; }
.user-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); color: var(--text-main); font-size: 0.9rem; transition: 0.2s; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item.text-danger:hover { background: rgba(239, 68, 68, 0.1); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 6px 0; }

/* Prime Badge */
.prime-badge { display: flex; align-items: center; gap: 8px; background: #000; border: 1px solid rgba(251, 191, 36, 0.3); padding: 4px 12px 4px 4px; border-radius: 50px; cursor: pointer; transition: 0.3s; }
.prime-badge:hover { border-color: var(--gold); box-shadow: 0 0 15px rgba(251, 191, 36, 0.1); }
.prime-icon-circle { width: 28px; height: 28px; background: #222; color: var(--gold); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1rem; }
.prime-text { font-size: 0.8rem; color: var(--gold); font-weight: 700; }

/* =========================================
   3. HERO & INDEX
   ========================================= */
.hero-section { text-align: center; padding: 60px 20px 80px; background-image: radial-gradient(#333 1px, transparent 1px); background-size: 20px 20px; overflow: hidden; }
.hero-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-content h2 { font-size: 2.2rem; color: #fff; margin-bottom: 30px; letter-spacing: -1px; }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; line-height: 1.8; }

/* Logos Marquee */
.hero-logos { width: 100%; max-width: 900px; margin-bottom: 0; position: relative; overflow: hidden; direction: ltr; padding: 60px 0; mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); transition: all 0.3s ease; }
.hero-logos.selecting { mask-image: none !important; -webkit-mask-image: none !important; }
.logos-track { display: flex; align-items: center; width: max-content; animation: scroll-logos 60s linear infinite; gap: 20px; padding: 0 20px; }
.logo-box { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 8px 16px; border-radius: 50px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); white-space: nowrap; text-decoration: none !important; backface-visibility: hidden; }
.logo-box:hover { background: rgba(255,255,255,0.08); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.logo-box.selected { border-color: var(--brand-color) !important; background: color-mix(in srgb, var(--brand-color) 10%, transparent) !important; transform: scale(1.15) translateY(-3px) !important; z-index: 100; box-shadow: 0 8px 25px -5px var(--brand-color); filter: brightness(1.05); margin: 0 15px; }
.logo-box img { height: 24px; width: auto; display: block; }
.logo-box span { font-size: 0.8rem; color: #aaa; font-weight: 500; }
@keyframes scroll-logos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Hero Input Area */
.link-submission-box { width: 100%; max-width: 650px; margin: -10px auto 0; text-align: center; position: relative; z-index: 200; }
.input-group-hero { display: flex; gap: 10px; background: rgba(255,255,255,0.05); padding: 8px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 40px rgba(0,0,0,0.4); backdrop-filter: blur(10px); transition: border-color 0.3s; }
.input-group-hero:focus-within { border-color: var(--primary); box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2); }
#heroLinkInput { flex: 1; background: transparent; border: none; color: #fff; padding: 0 20px; font-size: 1rem; outline: none; font-family: 'Dana', sans-serif; width: 100%; text-align: right; direction: ltr; }
#heroLinkInput::placeholder { color: #888; font-size: 0.9rem; direction: rtl; }
#heroSubmitBtn { background: var(--primary); color: #fff; border: none; padding: 14px 35px; border-radius: 40px; font-weight: 900; cursor: pointer; font-size: 1rem; transition: all 0.3s; white-space: nowrap; min-width: 160px; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); display: flex; align-items: center; justify-content: center; font-family: 'Dana', sans-serif !important; }
#heroSubmitBtn:hover { transform: translateY(-2px); background: var(--primary-hover); }
#heroSubmitBtn:disabled { opacity: 0.7; cursor: wait; transform: none; background: #444; }

.loader-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-bottom-color: #fff; border-radius: 50%; display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   4. COMMON CARDS, GRIDS & SECTIONS
   ========================================= */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-title { font-size: 1.8rem; margin: 0; color: #fff; }
.section-subtitle { color: var(--gold); margin: 5px 0 0; font-size: 0.9rem; font-weight: 400; }
.view-all-btn { color: var(--primary); font-weight: 900; font-size: 0.9rem; }
.view-all-btn.full-width { display: block; width: 100%; text-align: center; background: #222; padding: 12px; border-radius: var(--radius-md); margin-top: 20px; }
.mobile-view-all { display: none; }

.carousel-container { width: 100%; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.carousel-track { display: flex; gap: 20px; }
.carousel-card { min-width: 240px; max-width: 240px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; text-decoration: none !important; display: flex; flex-direction: column; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.carousel-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

/* File Grid */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; width: 100%; }
.file-card-wrapper { width: 100%; }
.file-card { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease; height: 100%; text-decoration: none !important; position: relative; cursor: pointer; -webkit-user-drag: none; }
.file-card * { pointer-events: none; }
.file-card .btn-remove-from-pack { pointer-events: auto; }
.file-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.file-card .image-wrapper { position: relative; width: 100%; padding-top: 66%; background: #000; overflow: hidden; }
.file-card .image-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.file-card:hover .image-wrapper img { transform: scale(1.05); }
.file-card .card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.file-card h3 { font-size: 0.95rem; color: #fff; margin: 0 0 15px 0; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.file-card .card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; font-size: 0.8rem; color: var(--text-muted); }
.file-card .downloads { color: var(--gold); font-weight: bold; }
.file-card .code { background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; font-family: monospace; }
.file-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 900; z-index: 5; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(2px); letter-spacing: 0.5px; }

/* Selection Styles */
.file-card.user-selecting { cursor: alias !important; filter: grayscale(0.2); opacity: 0.8; border-color: #555; }
.file-card.user-selecting:hover { opacity: 1; filter: none; border-color: var(--success); }
.file-card.user-selected { border: 2px solid var(--success) !important; background: rgba(16, 185, 129, 0.08); transform: scale(0.96); opacity: 1; filter: none; box-shadow: 0 0 20px rgba(16, 185, 129, 0.1); }
.file-card.user-selected .image-wrapper::after { content: ''; position: absolute; inset: 0; background: rgba(16, 185, 129, 0.2); z-index: 5; }
.file-card.user-selected::before { content: '✓'; position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; z-index: 20; box-shadow: 0 4px 10px rgba(0,0,0,0.3); animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Packs Section */
.packs-section { padding: 40px 0; border-top: 1px solid var(--border-color); background: #141414; }
.pack-card { min-width: 280px; max-width: 280px; border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; transition: transform 0.3s ease; text-decoration: none; flex-shrink: 0; border: 1px solid var(--border-color); }
.pack-card:hover { transform: translateY(-8px); border-color: #a78bfa; }
.pack-cover { width: 100%; height: 180px; position: relative; }
.pack-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); filter: brightness(0.8); transition: 0.3s; }
.pack-card:hover .pack-cover img { filter: brightness(1); }
.pack-count { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; backdrop-filter: blur(4px); }
.pack-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.pack-info h3 { color: #fff; font-size: 1.1rem; margin: 0; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

/* Skeleton Loading */
.skeleton-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 15px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.skeleton-image { width: 100%; padding-top: 66%; background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; }
.skeleton-content { padding: 15px; }
.skeleton-line { height: 15px; background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 4px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.full { width: 100%; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =========================================
   5. PARTY & PACK PAGE SPECIFICS
   ========================================= */
.party-section { padding: 40px 0; border-top: 1px solid var(--border-color); background: var(--bg-color); }
.party-toolbar-wrapper { background-color: #1a1a1a; border-bottom: 1px solid var(--border-color); padding: 20px 0; margin-bottom: 30px; position: sticky; top: 60px; z-index: 90; }
.toolbar-inner { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.search-box { flex: 1; position: relative; min-width: 250px; }
.search-box input { width: 100%; background: #0f0f0f; border: 1px solid var(--border-color); padding: 12px 40px 12px 15px; border-radius: var(--radius-md); color: #fff; font-family: 'Dana', sans-serif; transition: 0.3s; }
.search-box input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #777; cursor: pointer; }
.filter-box select { background: #0f0f0f; border: 1px solid var(--border-color); color: #fff; padding: 12px 30px 12px 15px; border-radius: var(--radius-md); cursor: pointer; font-family: 'Dana', sans-serif; min-width: 160px; }
.load-more-container { text-align: center; margin-top: 40px; }
.load-more-btn { background: #27272a; color: #fff; border: 1px solid #3f3f46; padding: 10px 30px; border-radius: 50px; cursor: pointer; transition: 0.2s; font-family: 'Dana', sans-serif; }
.load-more-btn:hover { background: #3f3f46; }

/* Floating Bars */
.admin-floating-bar, .user-floating-bar { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(0); background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px; padding: 8px 8px 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 1000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,0,0,0.2); transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); min-width: 320px; }
.admin-floating-bar.hidden, .user-floating-bar.hidden { transform: translateX(-50%) translateY(150px); opacity: 0; pointer-events: none; }
.user-sel-count, .selected-count { background: var(--success); color: #000; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.admin-floating-bar .selected-count { background: var(--gold); }
.selection-text { color: #fff; font-size: 0.9rem; font-weight: 500; }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.btn-get-links { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; padding: 12px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); white-space: nowrap; font-family: 'Dana', sans-serif; position: relative; overflow: hidden; z-index: 1; }
.btn-get-links:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); filter: brightness(1.1); }
.btn-close-bar { background: rgba(255,255,255,0.1); border: none; color: #aaa; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s; margin-right: 10px; }
.btn-close-bar:hover { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Pack Header Specifics */
.pack-header-section { position: relative; padding: 60px 0; background: #111; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.pack-bg-blur { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: blur(50px) brightness(0.2); z-index: 1; opacity: 0.8; }
.pack-header-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; }
.pack-cover-large { flex-shrink: 0; width: 260px; height: 260px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); }
.pack-cover-large img { width: 100%; height: 100%; object-fit: cover; }
.pack-details { flex: 1; color: #fff; }
.pack-badge { background: var(--primary); color: #fff; font-size: 0.8rem; padding: 6px 14px; border-radius: 50px; font-weight: bold; margin-bottom: 15px; display: inline-block; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
.pack-details h1 { font-size: 2.5rem; margin: 0 0 15px 0; line-height: 1.1; letter-spacing: -1px; }
.pack-meta-row { display: flex; gap: 25px; font-size: 0.95rem; color: #d4d4d8; margin-bottom: 20px; font-weight: 500; }
.pack-desc { color: #a1a1aa; line-height: 1.8; max-width: 650px; font-size: 1rem; }
.bulk-action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 990; /* زیر نوار انتخاب که 1000 است قرار می‌گیرد */
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    width: auto;
    margin: 0;
    display: flex; /* مطمئن شویم فلکس است */
}
.bulk-action-bar.hidden {
    transform: translateX(-50%) translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.btn-bulk-select {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 12px 30px; /* کمی عریض‌تر */
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    min-width: auto; /* حذف عرض ثابت */
    margin: 0;
}

.btn-bulk-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    border-color: transparent;
}

/* ریسپانسیو موبایل */
@media (max-width: 600px) {
    .bulk-action-bar {
        bottom: 20px;
        width: 90%; /* در موبایل عرض بیشتر */
        justify-content: center;
    }
    .btn-bulk-select {
        width: 100%;
    }
}
.btn-remove-from-pack { position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; background: rgba(239, 68, 68, 0.9); color: #fff; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 50; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; }
.btn-remove-from-pack:hover { transform: scale(1.1); background: #ef4444; }
.file-grid.editing .btn-remove-from-pack { display: flex !important; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* =========================================
   6. PRIME LANDING SECTION
   ========================================= */
.prime-landing-section { padding: 60px 0; background: linear-gradient(to bottom, #0f0f0f, #161616); border-top: 1px solid #333; border-bottom: 1px solid #333; position: relative; }
.prime-landing-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(251, 191, 36, 0.03) 0%, transparent 70%); pointer-events: none; }
.prime-scroll-wrapper { position: relative; display: flex; align-items: center; justify-content: center; }
.prime-grid-landing { display: flex; overflow-x: auto; gap: 30px; padding: 40px 20px; justify-content: center; align-items: center; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; flex-wrap: nowrap; }
.prime-grid-landing::-webkit-scrollbar { display: none; }
.prime-card-landing { min-width: 300px; max-width: 300px; flex-shrink: 0; background: rgba(30, 30, 30, 0.9); border: 1px solid rgba(255, 215, 0, 0.15); border-radius: var(--radius-lg); padding: 25px; text-align: center; transition: all 0.3s ease; position: relative; backdrop-filter: blur(10px); display: flex; flex-direction: column; z-index: 1; margin: 0; scroll-snap-align: center; }
.prime-card-landing:hover { transform: scale(1.05) translateY(-10px); border-color: var(--gold); box-shadow: 0 15px 40px rgba(251, 191, 36, 0.15); z-index: 10; }
.prime-card-landing.regular-discount { border-color: #ef4444; }
.badge-featured { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #000; font-size: 0.75rem; font-weight: 900; padding: 4px 12px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.badge-discount { background: #ef4444; color: #fff; border: 1px solid #b91c1c; animation: pulse-red 2s infinite; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 900; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.p-name { font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.prime-card-landing .plan-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 0.9rem; color: #e0e0e0; }
.prime-card-landing .plan-info-row:last-of-type { border-bottom: none; }
.prime-card-landing .info-label { color: #aaa; }
.prime-card-landing .info-value { font-weight: bold; color: #fff; }
.prime-card-landing .info-value.price { color: var(--primary); font-size: 1.1rem; }
.prime-card-landing .info-value.credit { color: var(--gold); font-size: 1.1rem; }
.landing-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.btn-prime-action { width: 100%; padding: 12px; border-radius: var(--radius-md); font-size: 1rem; font-weight: 900; background: transparent; border: 1px solid var(--gold); color: var(--gold); cursor: pointer; transition: 0.2s; font-family: 'Dana', sans-serif; }
.btn-prime-action:hover { background: var(--gold); color: #000; }
.scroll-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.7); color: #fff; border: 1px solid var(--gold); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 50; font-size: 1.5rem; transition: 0.3s; backdrop-filter: blur(5px); }
.scroll-arrow:hover { background: var(--gold); color: #000; }
.scroll-arrow.left { left: 20px; }
.scroll-arrow.right { right: 20px; }

/* =========================================
   7. DOWNLOAD SIDEBAR & HISTORY
   ========================================= */
.floating-history-btn { position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px; background: var(--card-bg); border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 990; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.floating-history-btn:hover { transform: scale(1.1); background: var(--gold); color: #000; }
.floating-badge { position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff; font-size: 0.75rem; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid var(--bg-color); }

.download-sidebar { position: fixed; top: 0; left: -400px; width: 350px; height: 100vh; background: rgba(24, 24, 27, 0.98); backdrop-filter: blur(20px); border-right: 1px solid var(--border-color); z-index: 2000; transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: 10px 0 50px rgba(0,0,0,0.5); }
.download-sidebar.active { left: 0; }

.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); }
.sidebar-header h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.btn-close-sidebar { background: transparent; border: none; color: #aaa; font-size: 1.5rem; cursor: pointer; transition: 0.2s; }
.btn-close-sidebar:hover { color: #fff; transform: rotate(90deg); }

.sidebar-search { padding: 15px; border-bottom: 1px solid var(--border-color); }
.sidebar-search input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); padding: 10px; border-radius: 8px; color: #fff; font-family: 'Dana', sans-serif; font-size: 0.9rem; }
.sidebar-search input:focus { border-color: var(--primary); outline: none; }

.sidebar-content { flex: 1; overflow-y: auto; padding: 15px; }
.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.dl-item { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; margin-bottom: 12px; display: flex; gap: 12px; transition: 0.2s; position: relative; overflow: hidden; }
.dl-item:hover { border-color: var(--primary); }
.dl-item.new-item { animation: slideInLeft 0.5s ease; border-color: var(--gold); }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.dl-thumb { width: 60px; height: 60px; border-radius: 8px; background: #000; flex-shrink: 0; object-fit: cover; }
.dl-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.dl-title { font-size: 0.85rem; font-weight: bold; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.dl-meta { font-size: 0.75rem; color: #aaa; margin-bottom: 5px; display: flex; justify-content: space-between; }
.dl-status { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.dl-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.btn-mini-sidebar { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 0.75rem; padding: 6px; border-radius: 6px; text-decoration: none; transition: 0.2s; border: none; cursor: pointer; font-weight: bold; font-family: 'Dana', sans-serif; white-space: nowrap; position: relative; overflow: hidden; z-index: 1; }
.btn-bot { background: rgba(59, 130, 246, 0.15); color: var(--primary); border: 1px solid rgba(59, 130, 246, 0.3); }
.btn-bot:hover { background: var(--primary); color: #fff; }
.btn-direct { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.btn-direct:hover { background: var(--success); color: #fff; }

.mini-progress-track { width: 100%; height: 6px; background: rgba(0,0,0,0.3); border-radius: 6px; overflow: hidden; position: relative; margin-top: 5px; }
.mini-progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s; position: absolute; top: 0; left: 0; z-index: 0; opacity: 0.3; }
.btn-mini-sidebar .btn-text { position: relative; z-index: 2; }

/* =========================================
   8. MODALS & COMMON
   ========================================= */
.modal-overlay, .prime-info-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 10000; display: none; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active, .prime-info-modal.active { display: flex; opacity: 1; }
.modal-content { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7); }
.modal-overlay.active .modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 15px; left: 15px; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; z-index: 10; display: flex; justify-content: center; align-items: center; background: #333; color: #fff; border: none; cursor: pointer; transition: 0.2s; }
.close-modal:hover { background: #444; transform: rotate(90deg); }

/* Prime Modal */
.prime-card { background: #1c1c1f; width: 100%; max-width: 500px; border-radius: 24px; border: 1px solid #333; padding: 25px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.prime-card h3 { margin-top: 0; margin-bottom: 20px; font-size: 1.3rem; color: #fff; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.prime-list-container { max-height: 60vh; overflow-y: auto; padding-right: 5px; }
.prime-item-card { background: linear-gradient(145deg, #252529, #1e1e21); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 15px; margin-bottom: 15px; position: relative; transition: 0.3s; }
.prime-item-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.prime-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.prime-group-title { font-weight: 800; color: #fff; font-size: 1rem; }
.prime-days { background: rgba(16, 185, 129, 0.15); color: #10b981; font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: bold; border: 1px solid rgba(16, 185, 129, 0.3); }
.prime-details-list li { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.85rem; color: #ccc; border-bottom: 1px dashed rgba(255,255,255,0.05); padding-bottom: 8px; }
.prime-details-list li:last-child { border-bottom: none; margin-bottom: 0; }
.close-prime { display: block; width: 100%; margin-top: 20px; padding: 12px; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; cursor: pointer; font-family: 'Dana', sans-serif; font-weight: bold; transition: 0.2s; }
.close-prime:hover { background: rgba(255,255,255,0.1); }

/* Preview Modal */
.preview-modal-content { text-align: center; padding: 25px !important; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; display: flex !important; flex-direction: column; max-height: 85vh; overflow-y: auto; scrollbar-width: thin; position: relative; }
.preview-header h3 { margin: 0 0 15px 0; color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.preview-body { margin-bottom: 20px; }
.preview-image-box { margin: 0 auto 15px auto; border-radius: 15px; overflow: hidden; background: #000; border: 1px solid #333; display: flex; justify-content: center; align-items: center; width: 100%; max-width: 250px; height: 180px; position: relative; flex-shrink: 0; }
.preview-image-box img { width: 100%; height: 100%; object-fit: contain; }
.preview-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.close-modal-icon { position: absolute; top: 15px; left: 15px; width: 32px; height: 32px; background: rgba(255,255,255,0.1); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: 0.2s; z-index: 10; }
.close-modal-icon:hover { background: rgba(239, 68, 68, 0.8); transform: rotate(90deg); }
.preview-footer { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
.preview-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: linear-gradient(45deg, var(--primary), var(--primary-hover)); color: #fff !important; font-weight: 900; border-radius: 12px; text-decoration: none !important; transition: all 0.3s ease; font-family: 'Dana', sans-serif; border: none; cursor: pointer; font-size: 1rem; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.preview-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); }
.preview-btn.premium { background: linear-gradient(45deg, #fbbf24, #d97706); color: #000 !important; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); }
.preview-btn.premium:hover { box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5); }

/* Confirm Details */
.confirm-details-list { text-align: right; margin-bottom: 25px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; border: 1px solid var(--border-color); }
.confirm-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 8px; }
.confirm-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.confirm-label { color: #aaa; }
.confirm-value { color: #fff; font-weight: bold; }

/* Modal Progress */
.modal-progress-wrapper { margin-top: 25px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 15px; text-align: right; }
.modal-status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.9rem; color: #e0e0e0; }
.modal-status-label { display: flex; align-items: center; gap: 8px; font-weight: bold; }
.modal-status-percent { color: var(--gold); font-family: 'Dana', sans-serif; font-weight: 900; }
.modal-progress-track { width: 100%; height: 8px; background: rgba(0,0,0,0.3); border-radius: 10px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.05); }
.modal-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 10px; transition: width 0.3s ease; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.modal-progress-fill.active { background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 20px 20px; animation: progress-stripe 1s linear infinite; }
@keyframes progress-stripe { 0% { background-position: 20px 0; } 100% { background-position: 0 0; } }

/* =========================================
   9. SINGLE FILE & MEDIA
   ========================================= */
.single-card { display: flex; gap: 30px; background: var(--card-bg); border-radius: 20px; overflow: hidden; padding: 30px; border: 1px solid var(--border-color); box-shadow: 0 20px 60px rgba(0,0,0,0.5); margin-top: 40px; margin-bottom: 40px; }
.single-image-col, .modal-image-col { flex: 1.3; min-width: 300px; display: flex; align-items: center; justify-content: center; background: #000; border-radius: 15px; overflow: hidden; position: relative; border: 1px solid #333; }
.single-image-col img, .modal-image-col img { width: 100%; height: 100%; object-fit: contain; display: block; }
.single-info-col, .modal-info-col { flex: 1; padding: 30px 25px !important; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; gap: 20px; background: var(--card-bg); position: relative; }
.modal-info-col::-webkit-scrollbar { width: 6px; }
.modal-info-col::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.modal-info-col::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

#fileModal .modal-body { display: flex; gap: 0; height: 100%; padding: 0; }
.info-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-shrink: 0; }
.source-badge { background: rgba(255, 255, 255, 0.1); padding: 6px 12px; border-radius: 8px; color: #fff; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; transition: 0.3s; text-decoration: none; }
.source-badge:hover { background: var(--primary); color: #fff; }
.date-badge { color: var(--text-muted); font-size: 0.8rem; }
.file-title { font-size: 1.8rem; color: #fff; margin: 0 0 25px 0; line-height: 1.4; font-weight: 800; flex-shrink: 0; }
.meta-box { background: rgba(255,255,255,0.03); border: 1px dashed var(--border-color); border-radius: 12px; padding: 15px; margin-bottom: 25px; flex-shrink: 0; }
.meta-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.meta-row:last-child { border-bottom: none; }
.meta-label { color: #888; font-size: 0.9rem; }
.meta-value { color: #e0e0e0; font-weight: bold; font-size: 0.95rem; }
.code-style { font-family: monospace; letter-spacing: 1px; color: var(--gold); }

.action-box { margin-top: auto; display: flex; flex-direction: column; gap: 12px; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; flex-shrink: 0; }
.download-cta { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px; background: linear-gradient(45deg, var(--primary), #2563eb); color: #fff; font-weight: 900; font-size: 1rem; border-radius: 12px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.download-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5); filter: brightness(1.1); }
.note-text { font-size: 0.85rem; color: #888; text-align: center; margin: 0; }
.btn-direct-dl { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #10b981; font-weight: 900; font-size: 1rem; border-radius: 12px; text-decoration: none; transition: all 0.3s ease; cursor: pointer; font-family: 'Dana', sans-serif; margin: 0; position: relative; overflow: hidden; z-index: 1; }
.btn-direct-dl:hover { background: rgba(16, 185, 129, 0.25); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); color: #fff; }
.btn-direct-dl.loading { opacity: 0.7; cursor: wait; }

.image-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #000; }
.single-image-col video { width: 100%; max-height: 500px; object-fit: contain; border-radius: 15px; background: #000; outline: none; }
.modal-image-col video { width: 100%; height: 100%; max-height: 60vh; object-fit: contain; }
.audio-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #222 0%, #333 100%); position: absolute; top: 0; left: 0; }
.audio-icon { font-size: 4rem; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }

/* =========================================
   10. DOWNLOAD OPTIONS & EXTRA UI
   ========================================= */
.download-options-wrapper { max-width: 650px; margin: 15px auto 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 15px; padding: 15px; display: none; animation: fadeIn 0.5s ease; }
.download-options-wrapper.visible { display: block; }
.radio-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 10px; }
.custom-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; color: #ccc; transition: 0.3s; background: rgba(255,255,255,0.05); padding: 8px 15px; border-radius: 50px; border: 1px solid transparent; user-select: none; }
.custom-radio:hover { background: rgba(255,255,255,0.1); }
.custom-radio input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.custom-radio.active { border-color: var(--primary); color: #fff; background: rgba(59, 130, 246, 0.15); }

/* Custom Select Box */
.package-select-container { margin-top: 15px; display: none; animation: fadeIn 0.4s ease; }
.custom-select-box { width: 100%; background: #222; border: 1px solid #444; color: #fff; padding: 12px 40px 12px 15px; border-radius: 12px; font-family: 'Dana', sans-serif; font-size: 0.95rem; outline: none; cursor: pointer; transition: all 0.3s ease; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left 15px center; background-size: 16px; }
.custom-select-box:hover { border-color: #666; background-color: #2a2a2a; }
.custom-select-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.custom-select-box option { background: #1a1a1a; color: #fff; padding: 10px; }
.user-balance-info { font-size: 0.8rem; color: var(--gold); margin-top: 5px; display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Tooltip */
.info-tooltip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: rgba(255, 255, 255, 0.2); color: #fff; border-radius: 50%; font-size: 11px; cursor: pointer; margin-right: 5px; position: relative; font-weight: bold; }
.info-tooltip:hover, .info-tooltip.active { background: var(--primary); }
.info-tooltip::after { content: attr(data-title); position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 12px; border-radius: 8px; font-size: 0.85rem; white-space: pre-wrap; width: max-content; max-width: 250px; text-align: center; line-height: 1.5; z-index: 1000; border: 1px solid var(--border-color); box-shadow: 0 5px 20px rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity 0.2s; pointer-events: none; }
.info-tooltip:hover::after, .info-tooltip.active::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-5px); }

/* =========================================
   11. ADMIN DASHBOARD STYLES
   ========================================= */
.admin-dashboard-wrapper { display: flex; gap: 30px; min-height: 600px; }
.admin-sidebar { width: 260px; flex-shrink: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 25px; height: fit-content; position: sticky; top: 90px; }
.admin-user-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.admin-avatar { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }
.admin-details .name { display: block; font-weight: 800; color: #fff; font-size: 1rem; }
.admin-details .role { font-size: 0.8rem; color: var(--gold); }
.admin-nav { display: flex; flex-direction: column; gap: 8px; }
.admin-nav-btn { background: transparent; border: none; color: var(--text-muted); padding: 12px 15px; text-align: right; border-radius: var(--radius-md); cursor: pointer; transition: 0.2s; font-family: 'Dana', sans-serif; font-size: 0.95rem; font-weight: 500; }
.admin-nav-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav-btn.active { background: rgba(59, 130, 246, 0.1); color: var(--primary); font-weight: 800; border-right: 3px solid var(--primary); }
.admin-content { flex: 1; min-width: 0; }
.admin-tab-content { display: none; animation: fadeIn 0.4s ease; }
.admin-tab-content.active { display: block; }
.admin-section-title { font-size: 1.6rem; color: #fff; margin: 0 0 25px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

/* Stats & Tables */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 25px; border-radius: var(--radius-lg); display: flex; align-items: center; gap: 20px; transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.stat-card .icon { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.stat-card.blue .icon { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.stat-card.green .icon { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stat-card.gold .icon { background: rgba(251, 191, 36, 0.1); color: var(--gold); }
.stat-card.purple .icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.stat-card .info { display: flex; flex-direction: column; }
.stat-card .label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; }
.stat-card .value { font-size: 1.6rem; color: #fff; margin: 0; font-weight: 800; letter-spacing: 1px; }

.section-header-admin { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.admin-search-box { display: flex; gap: 10px; }
.admin-search-box input { background: var(--card-bg); border: 1px solid var(--border-color); color: #fff; padding: 12px 15px; border-radius: 12px; font-family: 'Dana'; font-size: 0.9rem; min-width: 250px; }
.admin-search-box input:focus { border-color: var(--primary); outline: none; }
.admin-search-box button { background: var(--primary); color: #fff; border: none; padding: 0 20px; border-radius: 12px; cursor: pointer; transition: 0.2s; font-size: 1.2rem; }
.admin-search-box button:hover { background: var(--primary-hover); }

.admin-table-wrapper { overflow-x: auto; background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.admin-table th { text-align: right; padding: 18px; background: rgba(0,0,0,0.3); color: var(--text-muted); font-size: 0.85rem; font-weight: bold; white-space: nowrap; }
.admin-table td { padding: 15px 18px; border-top: 1px solid var(--border-color); color: #e4e4e7; font-size: 0.95rem; vertical-align: middle; }
.admin-table tr:hover { background: rgba(255,255,255,0.03); }

.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; display: inline-block; }
.status-active { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-inactive { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.table-action-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.table-action-btn:hover {
    background: var(--primary);
    color: #fff;
}
.pagination-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: #fff; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: 'Dana'; transition: 0.2s; }
.pagination-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Edit Forms */
.edit-form-group { margin-bottom: 15px; text-align: right; }
.edit-label { display: block; margin-bottom: 5px; color: #aaa; font-size: 0.9rem; }
.edit-input { width: 100%; background: #111; border: 1px solid #333; color: #fff; padding: 10px; border-radius: 8px; font-family: 'Dana', sans-serif; }
.edit-input:focus { border-color: var(--primary); outline: none; }
.btn-save-changes { width: 100%; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: bold; font-family: 'Dana', sans-serif; margin-top: 10px; }
.btn-admin-edit { background: #eab308; color: #000; border: none; padding: 8px 15px; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: bold; cursor: pointer; margin-top: 15px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; font-family: 'Dana', sans-serif; }
.btn-admin-edit:hover { background: #ca8a04; }
.admin-actions-row { display: flex; gap: 10px; margin-top: 15px; border-top: 1px solid #333; padding-top: 15px; }
.btn-danger-admin { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #ef4444; flex: 1; padding: 10px; border-radius: 8px; cursor: pointer; font-family: 'Dana', sans-serif; font-size: 0.85rem; transition: 0.2s; }
.btn-danger-admin:hover { background: #ef4444; color: #fff; }
.btn-warning-admin { background: rgba(245, 158, 11, 0.15); border: 1px solid #f59e0b; color: #f59e0b; flex: 1; padding: 10px; border-radius: 8px; cursor: pointer; font-family: 'Dana', sans-serif; font-size: 0.85rem; transition: 0.2s; }
.btn-warning-admin:hover { background: #f59e0b; color: #000; }

/* Rates Table Modal */
#ratesModal .modal-content { background-color: #18181b; border: 1px solid #333; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; max-height: 85vh; }
#ratesModal .modal-header { background-color: #27272a; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #3f3f46; }
#ratesModal .modal-title { color: #fff; font-size: 1.1rem; font-weight: bold; margin: 0; }
#ratesModal .modal-body { padding: 0 !important; overflow-y: auto; background-color: #18181b; display: block !important; }
.table-responsive { width: 100%; overflow-x: auto; }
.rates-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; color: #e4e4e7; }
.rates-table th { background-color: #27272a; color: #a1a1aa; font-weight: 600; text-align: right; padding: 12px 15px; position: sticky; top: 0; z-index: 10; border-bottom: 2px solid #3f3f46; }
.rates-table td { padding: 12px 15px; border-bottom: 1px solid #27272a; vertical-align: middle; }
.rates-table tr:hover { background-color: rgba(255, 255, 255, 0.03); }
.rate-site-name { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #fff; }
.rate-site-name img { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; background: rgba(255,255,255,0.1); padding: 2px; }
.rate-count { font-family: 'Dana', sans-serif; color: var(--gold); font-weight: 700; text-align: center; background: rgba(251, 191, 36, 0.1); padding: 4px 8px; border-radius: 6px; font-size: 0.85rem; }
.unsupported-row td { background-color: rgba(239, 68, 68, 0.05); opacity: 0.7; }
.unsupported-row .rate-site-name img { filter: grayscale(100%); }
.text-center { text-align: center; }
.btn-view-rates { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px; border-radius: 10px; font-size: 0.9rem; cursor: pointer; transition: 0.2s; width: 100%; font-family:'Dana',sans-serif; font-weight:900; }
.btn-view-rates:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* =========================================
   12. FOOTER
   ========================================= */
.main-footer { background-color: #0f0f0f; border-top: 1px solid #222; padding: 30px 0; margin-top: 50px; font-size: 0.85rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.footer-message { max-width: 750px; color: #e0e0e0; font-size: 0.95rem; line-height: 1.7; font-style: italic; padding: 0 10px; }
.footer-disclaimer { font-size: 0.75rem; color: #555; max-width: 800px; line-height: 1.4; }
.footer-copy { font-size: 0.8rem; color: #444; margin-top: 10px; border-top: 1px solid #1a1a1a; padding-top: 15px; width: 100%; }
.heart-icon { color: #ef4444; display: inline-block; animation: heartbeat 1.5s infinite; vertical-align: middle; margin: 0 2px; }
@keyframes heartbeat { 0% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 100% { transform: scale(1); } }

/* =========================================
   13. NEW FEATURES (FORMATS & STATUS)
   ========================================= */
/* Format Selection Buttons */
.formats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.format-btn { background: rgba(59, 130, 246, 0.1); border: 1px solid var(--primary); color: var(--primary); padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 800; transition: all 0.2s ease; font-family: 'Dana', sans-serif; font-size: 0.9rem; }
.format-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }
.format-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Status & Action Buttons */
.btn-action-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 800; text-decoration: none !important; transition: 0.2s; justify-content: center; }
.btn-buy-prime-sm { background: linear-gradient(45deg, #fbbf24, #d97706); color: #000; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); }
.btn-buy-prime-sm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5); }
.btn-charge-wallet-sm { background: rgba(59, 130, 246, 0.1); border: 1px solid var(--primary); color: var(--primary); padding: 6px 15px; border-radius: 8px; font-size: 0.85rem; }
.btn-charge-wallet-sm:hover { background: var(--primary); color: #fff; }
.status-msg-empty { font-size: 0.9rem; color: #ef4444; margin-bottom: 12px; }
.status-info-box { text-align: center; padding: 10px; }
.wallet-text { margin-bottom: 12px; font-size: 0.9rem; }
.count-highlight { color: var(--gold); font-weight: bold; font-size: 1.1rem; }

/* =========================================
   14. RESPONSIVE
   ========================================= */
@media (min-width: 1001px) {
    .prime-grid-landing { justify-content: center; flex-wrap: wrap; overflow: visible; padding: 20px 0; }
    .prime-card-landing { margin: 15px; transform: none !important; }
    .prime-card-landing:hover { transform: translateY(-10px) !important; }
    .scroll-arrow { display: none !important; }
}
@media (max-width: 1000px) {
    .plans-grid { grid-template-columns: 1fr; padding: 0 10px; }
    .prime-card-landing { min-width: 85vw; max-width: 85vw; margin: 0 10px; scroll-snap-align: center; }
    .prime-grid-landing { padding: 40px 0; justify-content: flex-start; }
    .prime-scroll-wrapper { padding-bottom: 50px; }
    .scroll-arrow { top: auto; bottom: 0; transform: none; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
    .scroll-arrow.left { left: calc(50% - 60px); }
    .scroll-arrow.right { right: calc(50% - 60px); }
}
@media (max-width: 900px) {
    .single-card, #fileModal .modal-body { flex-direction: column !important; padding: 20px; display: block !important; }
    .single-image-col, .modal-image-col { width: 100% !important; min-height: 250px; border-radius: 20px 20px 0 0; flex: none; max-height: 350px; }
    .modal-info-col { padding: 20px !important; overflow-y: visible; flex: none; height: auto; }
    .modal-skeleton-wrapper { flex-direction: column; }
    .skeleton-left-col { min-height: 250px; }
    .skeleton-right-col { padding: 20px; }
    .pack-header-content { flex-direction: column; text-align: center; gap: 25px; }
    .pack-cover-large { width: 200px; height: 200px; }
    .pack-details h1 { font-size: 1.8rem; }
    .pack-meta-row { justify-content: center; }
    .file-title { font-size: 1.4rem; }
}
@media (max-width: 768px) { 
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .file-card .image-wrapper { padding-top: 100%; }
    .party-toolbar-wrapper { top: 55px; }
    .section-header .view-all-btn { display: none; }
    .mobile-view-all { display: block; }
    .info-tooltip::after { width: 200px; max-width: 200px; white-space: normal; left: -10px; right: auto; transform: none !important; text-align: center; }
    .info-tooltip:hover::after, .info-tooltip.active::after { transform: none; }
    .modal-content { width: 95% !important; margin: 10px; max-height: 90vh; }
    .consult-box { flex-direction: column; text-align: center; }
    .consult-info { flex-direction: column; }
    .consult-links { justify-content: center; width: 100%; }
    .consult-btn { width: 100%; justify-content: center; }
    .rates-table th, .rates-table td { padding: 10px 8px !important; font-size: 0.75rem !important; }
    .rate-site-name img { width: 18px !important; height: 18px !important; }
    .rates-table { min-width: 400px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 600px) { 
    .user-floating-bar { bottom: 10px; width: 95%; left: 50%; transform: translateX(-50%); padding: 10px; flex-wrap: wrap; justify-content: center; }
    .bar-actions { width: 100%; justify-content: space-between; }
    .btn-get-links { flex: 1; }
    .admin-floating-bar { width: 95%; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px; bottom: 15px; }
    .header-content { gap: 10px; justify-content: space-between; } 
    .header-logo { width: 32px; } 
    .brand-text h1 { font-size: 0.9rem; } 
    .brand-text .subtitle { display: none; } 
    .header-actions { gap: 5px; } 
    .prime-text { display: none; } 
    .prime-badge { padding: 4px; } 
    .prime-icon-circle { width: 32px; height: 32px; font-size: 0.9rem; } 
    .user-profile-box { padding: 4px 4px 4px 12px; gap: 8px; } 
    .profile-icon { width: 32px; height: 32px; font-size: 0.9rem; } 
    .user-name { font-size: 0.75rem; max-width: 90px; } 
    .user-wallet { font-size: 0.7rem; } 
    .header-btn { padding: 5px 12px; font-size: 0.75rem; white-space: nowrap; } 
    .logo-item { margin-right: 30px; } 
    .logo-item img { height: 22px; } 
    .logo-box { padding: 6px 12px; gap: 8px; } 
    .logo-box img { height: 16px; } 
    .logo-box span { font-size: 0.7rem; } 
    .admin-dashboard-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; position: static; }
    .admin-nav { flex-direction: row; overflow-x: auto; padding-bottom: 5px; }
    .admin-nav-btn { white-space: nowrap; flex: 1; text-align: center; border-right: none; }
    .admin-nav-btn.active { border-right: none; border-bottom: 3px solid var(--primary); background: transparent; }
}
/* =========================================
   STATS SECTION (COUNTERS)
   ========================================= */
.stats-section {
    padding: 60px 0;
    background: #111; /* رنگ پس‌زمینه تیره */
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    min-width: 250px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Dana', sans-serif; /* فونت فارسی سایت */
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .stat-item {
        width: 100%;
        max-width: 350px;
    }
}
/* =========================================
   MOBILE INPUT FIX (Add to end of style.css)
   ========================================= */
@media (max-width: 600px) {
    /* کاهش فضای خالی دور باکس اصلی */
    .input-group-hero {
        padding: 4px; 
        gap: 5px;
    }

    /* تنظیم فیلد ورودی */
    #heroLinkInput {
        padding: 0 10px;
        font-size: 0.85rem;
    }

    /* کوچک کردن دکمه در موبایل */
    #heroSubmitBtn {
        padding: 10px 15px !important; /* پدینگ کمتر */
        min-width: auto !important;    /* حذف حداقل عرض */
        font-size: 0.85rem;            /* فونت کوچکتر */
        height: auto;
        white-space: nowrap;
    }
    
    /* مخفی کردن متن طولانی در صورت نیاز و نمایش آیکون (اختیاری) */
    /* اگر خواستید فقط آیکون باشد، کلاس icon-only اضافه کنید */
}
/* جذاب‌سازی پراگرس بار داخل دکمه */
.btn-progress-bar, .float-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%; /* کل دکمه را می‌پوشاند اما با opacity کم */
    background: linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.4) 50%, rgba(16, 185, 129, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-right: 2px solid #10b981;
}

/* افکت درخشش متحرک */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* استایل متن وضعیت */
.status-text-pulse {
    font-size: 0.8rem;
    display: block;
    opacity: 0.8;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* تغییر ظاهر دکمه در حالت در حال پردازش */
.btn-bulk-select.processing {
    border-color: #10b981;
    color: #fff;
    background: rgba(16, 185, 129, 0.05);
}
/* اعمال فونت سایت روی دکمه شناور و منوی فرمت‌ها */
.btn-bulk-select, 
.custom-select, 
#packFormatFilter {
    font-family: 'Dana', sans-serif !important;
}

/* نکته حرفه‌ای: با اضافه کردن خط زیر، یک بار برای همیشه مشکل 
  فونتِ پیش‌فرضِ مرورگر را برای تمام فرم‌ها و دکمه‌های سایت حل می‌کنید:
*/
button, select, input, textarea {
    font-family: inherit;
}