/* تنظیمات پایه */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Vazirmatn', sans-serif; background-color: #111; color: #f0f0f0; direction: rtl; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: #a0a0ff; text-decoration: none; transition: color 0.3s; }
a:hover { color: #fff; }

/* هدر */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background-color: #1a1a1a; box-shadow: 0 2px 10px rgba(0,0,0,.5); flex-wrap: wrap; gap: 15px; }
.logo-link { order: 1; text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 15px; }
.demin-title { font-size: 32px; font-weight: 900; letter-spacing: 2px; color: #fff; background: linear-gradient(45deg, #1fa2ff, #12d8fa, #a6ffcb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: transform .3s ease-out; display: inline-block; }
.logo-link:hover .demin-title { transform: translateY(-3px) scale(1.05); }
.slogan { font-size: 16px; font-weight: 700; color: #FFD700; text-shadow: 0 0 5px rgba(255,215,0,.5), 0 0 10px rgba(255,215,0,.3); }
.main-nav { order: 2; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.header-link { display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 6px; background-color: #2a2a2a; color: #f0f0f0; font-weight: 700; transition: all .3s; font-size: 14px; }
.header-link i { font-size: 16px; }
.header-link.active, .header-link:hover { background-color: #1fa2ff; color: #fff; }
body.admin-page .header-link.active, body.admin-page .header-link:hover { background-color: #FFD700; color: #0d0d0d; }

/* زیر هدر */
.sub-header-nav { display: flex; justify-content: center; gap: 15px; padding: 15px 20px; background-color: #121212; border-bottom: 1px solid #2a2a2a; }
.sub-header-link { font-size: 18px; font-weight: 800; color: #aaa; padding: 10px 20px; border-radius: 8px; transition: all .3s; display: flex; align-items: center; gap: 10px; }
.sub-header-link i { font-size: 20px; }
.sub-header-link:hover { background-color: #2a2a2a; color: #fff; }
.sub-header-link.active { background: linear-gradient(45deg, #1fa2ff, #12d8fa); color: #fff; text-shadow: 0 0 5px rgba(0,0,0,.3); }
.sub-header-link.active.android-active { background: linear-gradient(45deg, #a6ffcb, #12d8fa); }
.sub-header-link.disabled { color: #555; cursor: not-allowed; opacity: .6; }
.sub-header-link.disabled:hover { background-color: transparent; color: #555; }

/* جستجو */
.search-section { text-align: center; padding: 50px 20px 30px; background-color: #121212; }
.integrated-search-container { display: flex; justify-content: center; position: relative; max-width: 700px; margin: 0 auto; }
.search-input-integrated { width: 100%; padding: 15px 65px 15px 25px; border: 2px solid #3a3a3a; border-radius: 8px; font-size: 18px; background-color: #2a2a2a; color: #fff; outline: none; transition: all .3s; }
.search-input-integrated:focus { border-color: #1fa2ff; box-shadow: 0 0 10px rgba(31,162,255,.5); }
body.admin-page .search-input-integrated:focus { border-color: #FFD700; box-shadow: 0 0 10px rgba(255,215,0,.5); }
.search-button-integrated { position: absolute; left: 0; top: 0; bottom: 0; width: 55px; border: none; background: transparent; color: #a0a0ff; cursor: pointer; font-size: 20px; z-index: 10; transition: color .3s; }
.search-button-integrated:hover { color: #fff; }
body.admin-page .search-button-integrated { color: #FFD700; } body.admin-page .search-button-integrated:hover { color: #fff5cc; }

/* گالری تصاویر */
.wallpaper-section { padding: 30px 40px; }
.wallpaper-gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.wallpaper-item { position: relative; padding-top: 56.25%; background-size: cover; background-position: center; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.4); transition: all .3s; display: block; }
.wallpaper-gallery.android-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 1400px; margin: 0 auto; }
.wallpaper-gallery.android-gallery .wallpaper-item { padding-top: 177.78%; }
.wallpaper-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.6); }
.wallpaper-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; font-weight: 700; text-align: center; opacity: 0; transition: opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallpaper-item:hover .wallpaper-title { opacity: 1; }

/* دسته‌بندی‌های صفحه اصلی */
.category-showcase { padding: 30px 40px; }
.category-showcase.android-showcase { background-color: #121212; }
.showcase-title { font-size: 32px; font-weight: 900; text-align: center; margin-bottom: 30px; border-bottom: 2px solid #2a2a2a; padding-bottom: 15px; font-family: 'Vazirmatn', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #a6ffcb; text-shadow: 0 0 5px rgba(166,255,203,.5), 0 0 10px rgba(166,255,203,.3); }
.category-item { position: relative; padding-top: 56.25%; background-size: cover; background-position: center; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.4); transition: all .3s; display: block; border: 2px solid #333; }
.category-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(166,255,203,.5); border-color: #a6ffcb; }
.category-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; background: rgba(0,0,0,.85); color: #fff; font-size: 16px; font-weight: 700; text-align: center; transition: all .3s; }
.category-item:hover .category-title { background-color: #a6ffcb; color: #0d0d0d; }
.wallpaper-gallery.android-gallery .category-item { padding-top: 177.78%; }
.category-item.placeholder { border-style: dashed; background-color: #1a1a1a; background-image: none !important; cursor: default; }
.category-item.placeholder:hover { transform: none; box-shadow: 0 4px 15px rgba(0,0,0,.4); border-color: #333; }
.category-item.placeholder .category-title { opacity: .5; background: transparent !important; color: #aaa !important; }

/* صفحه‌بندی */
.pagination-controls { display: flex; justify-content: center; align-items: center; padding: 30px 0; gap: 10px; flex-wrap: wrap; }
.page-link { display: inline-block; padding: 10px 15px; color: #a0a0ff; background-color: #2a2a2a; border-radius: 6px; transition: all .3s; font-weight: 700; font-size: 14px; }
body.admin-page .page-link { color: #FFD700; background-color: #3a3a3a;}
.page-link:hover { background-color: #1fa2ff; color: #fff; }
body.admin-page .page-link:hover { background-color: #FFD700; color: #0d0d0d; }
.page-link.active { background-color: #1fa2ff; color: #fff; pointer-events: none; }
body.admin-page .page-link.active { background-color: #FFD700; color: #0d0d0d; }

/* صفحه دانلود */
.download-page-container { max-width: 1200px; margin: 40px auto; padding: 30px; background-color: #1a1a1a; border-radius: 12px; box-shadow: 0 0 20px rgba(0,0,0,.5); }
.download-content { display: flex; flex-direction: row-reverse; gap: 30px; align-items: flex-start; }
.wallpaper-preview { flex: 2; text-align: center; }
.wallpaper-preview img { max-width: 100%; width: auto; max-height: 80vh; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.5); object-fit: contain; }
.wallpaper-preview.android-preview img { max-width: 50%; height: auto; max-height: 80vh; }
.wallpaper-details { flex: 1; text-align: right; min-width: 300px; }
.wallpaper-details h1 { font-size: 28px; margin-bottom: 20px; color: #fff; border-bottom: 2px solid #2a2a2a; padding-bottom: 10px; direction: ltr; text-align: left; }
.category-link-container { margin-bottom: 10px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.category-link-container i { color: #1fa2ff; font-size: 16px; margin-left: 5px; }
.category-link { padding: 4px 8px; background-color: #1fa2ff; color: #fff; border-radius: 4px; font-size: 13px; font-weight: 700; transition: all .3s; border: 1px solid #1fa2ff; }
.category-link:hover { background-color: #12d8fa; color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(31,162,255,.2); }
.tag-list { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; direction: rtl; justify-content: flex-end; }
.tag-list i { color: #FFD700; font-size: 16px; margin-left: 5px; }

/* (تغییر) استایل جدید تگ‌ها در صفحه دانلود */
.tag-list a, .tag-list span { 
    display: inline-block; 
    padding: 5px 12px; 
    background-color: #333; 
    border-radius: 15px; 
    font-size: 13px; 
    color: #FFD700; 
    transition: all .3s; 
    font-weight: 700; 
    border: 1px solid #444;
}
.tag-list a:hover { 
    background-color: #FFD700; 
    color: #0d0d0d; 
    border-color: #FFD700; 
    transform: translateY(-1px); 
    box-shadow: 0 2px 5px rgba(255,215,0,.3); 
}

.download-description { font-size: 15px; color: #ccc; margin-bottom: 30px; line-height: 1.6; }
.download-button { display: block; width: 100%; padding: 15px; background-color: #1fa2ff; color: #fff; text-align: center; border-radius: 8px; font-size: 18px; font-weight: 700; transition: all .3s; }
.download-button i { margin-left: 10px; }
.download-button:hover { background-color: #12d8fa; transform: translateY(-2px); }
.similar-wallpapers-section { margin-top: 40px; padding-top: 20px; border-top: 2px solid #2a2a2a; }
.similar-wallpapers-section h2 { text-align: right; font-size: 24px; color: #1fa2ff; margin-bottom: 20px; }

/* -------------------- پنل مدیریت -------------------- */
body.admin-page a { color: #FFD700; } body.admin-page a:hover { color: #fff5cc; }
.admin-outer-container { display: flex; flex-direction: row; gap: 20px; padding: 30px 40px; max-width: 1400px; margin: 30px auto; }
.admin-sidebar { width: 250px; flex-shrink: 0; background-color: #1f1f1f; padding: 20px; border-radius: 8px; border: 1px solid #3a3a3a; align-self: flex-start; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.admin-main-content { flex-grow: 1; background-color: #1f1f1f; padding: 30px; border-radius: 8px; border: 1px solid #3a3a3a; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.admin-sidebar .admin-tab-btn { display: flex; width: 100%; padding: 12px 15px; margin-bottom: 10px; border: none; background-color: #2a2a2a; color: #ccc; text-align: right; border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; gap: 10px; border-right: 4px solid transparent; }
.admin-sidebar .admin-tab-btn:hover { background-color: #3a3a3a; color: #fff; border-right-color: #555; }
.admin-sidebar .admin-tab-btn.active { background-color: #333; color: #FFD700; border-right-color: #FFD700; }
.admin-tab-content { display: none; } .admin-tab-content.active { display: block; }
.admin-main-content h1 { text-align: center; margin-bottom: 30px; color: #FFD700; }
.sidebar-stats { margin-top: 30px; padding-top: 20px; border-top: 1px solid #3a3a3a; }
.sidebar-stats h2 { font-size: 16px; color: #FFD700; margin-bottom: 10px; text-align: center; }
.sidebar-stats p { font-size: 14px; color: #ccc; margin-bottom: 5px; text-align: right; }
.sidebar-stats span { color: #fff; font-weight: bold; }

/* صفحه آمار */
.analytics-section h1 { color: #FFD700; }
.analytics-summary { display: flex; justify-content: space-around; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.summary-box { flex: 1; min-width: 200px; background-color: #2a2a2a; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #3a3a3a; }
.summary-box i { font-size: 24px; color: #FFD700; margin-bottom: 10px; } .summary-box h3 { font-size: 16px; color: #ccc; margin-bottom: 5px; } .summary-box p { font-size: 28px; color: #fff; font-weight: bold; }
.chart-container { background-color: #2a2a2a; padding: 20px; border-radius: 8px; margin-bottom: 40px; border: 1px solid #3a3a3a; position: relative; max-width: 100%; overflow: hidden; }
.chart-container h2 { font-size: 20px; color: #FFD700; margin-bottom: 15px; text-align: right; }
#dailyTrafficChart { max-width: 100%; height: 300px !important; display: block; box-sizing: border-box; }
.data-table h2 { font-size: 20px; color: #FFD700; margin-bottom: 15px; text-align: right; }
.data-table { overflow-x: auto;}

/* فرم‌ها */
.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: #c9c9c9; }
.form-group input[type="text"], .form-group input[type="password"], .form-group input[type="url"], .form-group input[type="number"], .form-group select { width: 100%; padding: 12px; border: 1px solid #3a3a3a; border-radius: 6px; background-color: #2a2a2a; color: #f0f0f0; font-size: 16px; outline: none; transition: all .3s; }
.form-group input:focus, .form-group select:focus { border-color: #FFD700; box-shadow: 0 0 8px rgba(255,215,0,.4); }
.form-group .form-hint { display: none; font-size: 12px; color: #aaa; margin-top: 5px; }
.upload-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.upload-toggle-group { display: flex; border: 1px solid #3a3a3a; border-radius: 6px; overflow: hidden; }
.upload-toggle-btn { flex: 1; background-color: #2a2a2a; color: #aaa; border: none; padding: 12px 10px; font-family: 'Vazirmatn', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.upload-toggle-btn:hover { background-color: #3a3a3a; color: #fff; }
.upload-toggle-btn.active { background-color: #FFD700; color: #0d0d0d; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.upload-toggle-btn:first-child { border-left: 1px solid #3a3a3a; }
.upload-toggle-btn:last-child { border-right: 1px solid #3a3a3a; }
.url-inputs-wrapper, .file-input-wrapper { display: none; }
.url-inputs-wrapper.active, .file-input-wrapper.active { display: block; }
.form-divider { border: 0; border-top: 1px solid #3a3a3a; margin: 25px 0; }
.file-input-wrapper input[type="file"] { background-color: #2a2a2a; border: 1px solid #3a3a3a; color: #f0f0f0; padding: 10px; border-radius: 6px; width: 100%; }
.file-input-wrapper input[type="file"]::file-selector-button { background-color: #FFD700; color: #0d0d0d; border: none; border-radius: 4px; padding: 8px 12px; font-weight: 700; font-family: 'Vazirmatn', sans-serif; cursor: pointer; margin-left: 10px; transition: background-color 0.2s; }
.file-input-wrapper input[type="file"]::file-selector-button:hover { background-color: #ffe066; }
.progress-bar-container { width: 100%; background-color: #3a3a3a; border-radius: 6px; overflow: hidden; margin-top: 10px; display: none; position: relative; height: 25px; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(45deg, #FFD700, #ffc107); transition: width 0.3s ease; }
.progress-text { position: absolute; top: 0; left: 50%; transform: translateX(-50%); color: #0d0d0d; font-weight: bold; line-height: 25px; font-size: 14px; text-shadow: 0 0 2px rgba(255,255,255,0.5); }

/* ادیتور اسلات‌ها */
.category-admin-section h3, .manage-categories-section h3 { font-size: 20px; color: #FFD700; margin-top: 20px; margin-bottom: 15px; padding-bottom: 5px; border-bottom: 1px solid #3a3a3a; }
.category-admin-section p, .manage-categories-section p { color: #ccc; font-size: 14px; margin-bottom: 15px; line-height: 1.6; }
.slot-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.slot-controls h3 { margin: 0; border: none; padding: 0; }
.slot-action-button { width: auto !important; padding: 8px 15px !important; font-size: 14px !important; background: linear-gradient(45deg, #4CAF50, #45a049) !important; color: white !important; }
.slot-action-button:hover { background: linear-gradient(45deg, #45a049, #4CAF50) !important; box-shadow: none !important; }
.remove-slot-btn { background: linear-gradient(45deg, #f44336, #d32f2f) !important; color: white !important; padding: 4px 8px !important; font-size: 12px !important; border-radius: 4px !important; cursor: pointer; width: auto !important; margin-top: 5px; display: inline-block; }
.remove-slot-btn:hover { background: linear-gradient(45deg, #d32f2f, #f44336) !important; }
.category-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.category-editor-grid.android-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.category-slot { background-color: #2a2a2a; padding: 15px; border-radius: 8px; border: 1px solid #3a3a3a; position: relative; }
.category-slot label { font-size: 14px; color: #aaa; margin-bottom: 10px; }
.category-slot .form-group { margin-bottom: 10px; }
.category-slot input, .category-slot select { padding: 8px; font-size: 14px; }

/* مدیریت دسته‌بندی‌ها */
.manage-categories-section { padding-top: 10px; }
.defined-categories-list { margin-bottom: 20px; max-height: 300px; overflow-y: auto; border: 1px solid #3a3a3a; border-radius: 6px; padding: 10px; }
.defined-category-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background-color: #2a2a2a; border-radius: 4px; margin-bottom: 8px; }
.defined-category-item span { color: #FFD700; font-weight: bold; flex-grow: 1; margin-left: 10px; }
.delete-category-btn { background-color: #f44336; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.add-category-form { display: flex; gap: 10px; margin-bottom: 20px; }
.add-category-form input { flex-grow: 1; }
.add-inline-button { padding: 10px 15px !important; width: auto !important; font-size: 16px !important; flex-shrink: 0; }

/* تگ‌ها */
.tags-input-container { border: 1px solid #3a3a3a; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 6px; background-color: #2a2a2a; }
.tags-input-container:focus-within { border-color: #FFD700; box-shadow: 0 0 8px rgba(255,215,0,.4); }
.tag-item { display: flex; align-items: center; gap: 6px; background-color: #444; color: #FFD700; padding: 5px 10px; border-radius: 4px; font-size: 14px; font-weight: 700; }
.remove-tag { cursor: pointer; font-size: 12px; color: #aaa; transition: color .2s; } .remove-tag:hover { color: #f44336; }
#tags-input { flex: 1; border: none; background: transparent; padding: 4px; color: #f0f0f0; outline: none; font-size: 16px; min-width: 150px; }
.tags-suggestions-container { position: relative; width: 100%; background-color: #2a2a2a; border: 1px solid #3a3a3a; border-top: none; border-radius: 0 0 6px 6px; margin-top: -6px; display: none; z-index: 100; }

/* (تغییر) استایل جدید لیست پیشنهادات تگ */
.suggestion-item { 
    padding: 10px 15px; 
    color: #f0f0f0; 
    cursor: pointer; 
    text-align: right; 
    transition: all .2s; 
    border-bottom: 1px solid #3a3a3a; 
    font-size: 14px; 
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: #3a3a3a; color: #FFD700; } 
.suggestion-item.selected { background-color: #444; color: #FFD700; padding-right: 20px; }


/* دکمه‌ها و جدول ادمین */
.admin-button { display: block; width: 100%; padding: 15px; background: linear-gradient(45deg, #FFD700, #ffc107); color: #0d0d0d; border: none; border-radius: 8px; cursor: pointer; font-size: 18px; font-weight: 700; transition: all .3s; text-align: center; }
.admin-button:hover { background: linear-gradient(45deg, #ffe066, #ffca2c); box-shadow: 0 0 10px rgba(255,215,0,.5); }
.admin-button:disabled { background: #555; color: #888; cursor: not-allowed; }
.admin-button i { margin-left: 10px; }
.save-button { background: linear-gradient(45deg, #ffc107, #FFD700); } .save-button:hover { background: linear-gradient(45deg, #FFD700, #ffc107); }
.cancel-button { display: block; width: 100%; padding: 12px; background-color: #6c757d; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 700; transition: background-color .3s; margin-top: 10px; text-align: center; }
.cancel-button:hover { background-color: #5a6268; }
.message { padding: 15px; margin-bottom: 20px; border-radius: 6px; font-weight: 700; text-align: center; display: none; }
.message.success { background-color: #4caf50; color: #fff; } .message.error { background-color: #f44336; color: #fff; }
.admin-filters { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap;}
.admin-filters input, .admin-filters select { padding: 12px; border: 1px solid #3a3a3a; border-radius: 6px; background-color: #2a2a2a; color: #f0f0f0; font-size: 16px; outline: none; }
.admin-filters input:focus, .admin-filters select:focus { border-color: #FFD700; }
.admin-filters input { flex: 2; min-width: 200px; } .admin-filters select { flex: 1; min-width: 150px; }
.wallpaper-list-section h1, .hot-tags-admin-section h1, .category-admin-section h1, .manage-categories-section h1 { color: #FFD700; }
.wallpaper-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,.3); table-layout: fixed; border: 1px solid #3a3a3a; }
.wallpaper-table th, .wallpaper-table td { padding: 12px; text-align: right; border: 1px solid #3a3a3a; word-wrap: break-word; }
.wallpaper-table th { background-color: #252525; color: #FFD700; font-weight: 700; }
.wallpaper-table th:nth-child(1){width:8%} .wallpaper-table th:nth-child(2){width:10%} .wallpaper-table th:nth-child(3){width:27%} .wallpaper-table th:nth-child(4){width:15%} .wallpaper-table th:nth-child(5){width:25%} .wallpaper-table th:nth-child(6){width:15%}
.wallpaper-table td { background-color: #1f1f1f; }
.type-cell { font-weight: 700; text-align: center; } .type-cell.pc { color: #a0a0ff; } .type-cell.android { color: #a6ffcb; }
.actions-cell { text-align: center; } .actions-cell button { padding: 5px 10px; margin: 2px; border: none; border-radius: 4px; cursor: pointer; font-weight: 700; transition: background-color .3s; }
.edit-btn { background-color: #FFD700; color: #0d0d0d; } .edit-btn:hover { background-color: #ffe066;}
.delete-btn { background-color: #f44336; color: #fff; } .delete-btn:hover { background-color: #d32f2f;}
.hot-tags-editor { max-height: 400px; overflow-y: auto; border: 1px solid #3a3a3a; border-radius: 6px; padding: 15px; margin-bottom: 20px; }
.hot-tag-item { display: flex; align-items: center; gap: 10px; }
.hot-tag-name-input { flex: 1; margin-bottom: 0 !important; }
.hot-tag-count-input { width: 100px; padding: 8px !important; margin-bottom: 0 !important; }
.hot-tag-item .delete-tag-btn { background-color: #f44336; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }


/* فوتر */
.main-footer { padding: 20px 40px; background-color: #1a1a1a; text-align: center; border-top: 1px solid #2a2a2a; margin-top: auto; }
.footer-content { display: flex; justify-content: center; align-items: center; gap: 20px; }
.telegram-link { font-size: 24px; color: #0088cc; transition: all .3s; } .telegram-link:hover { color: #00b0f0; transform: scale(1.1); }
.main-footer p { font-size: 14px; color: #aaa; }

/* واکنش‌گرایی */
@media(max-width:1024px){.main-header{padding:20px;flex-direction:row;justify-content:space-between}.main-nav{justify-content:flex-end}.logo{width:auto}.slogan{display:block}.wallpaper-section,.category-showcase{padding:20px}.wallpaper-gallery{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.wallpaper-gallery.android-gallery{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))} .admin-outer-container{padding: 20px; flex-direction: column;} .admin-sidebar{width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px;} .admin-sidebar .admin-tab-btn{width: auto; flex-grow: 1; text-align: center; border-right: none; border-bottom: 4px solid transparent;} .admin-sidebar .admin-tab-btn.active{border-bottom-color: #FFD700;} .category-editor-grid.android-grid{grid-template-columns:1fr 1fr} .analytics-summary { justify-content: center; } .upload-options-grid { grid-template-columns: 1fr; } }
@media(max-width:768px){.main-header{flex-direction:column;padding:20px}.main-nav{justify-content:center}.logo{width:100%;justify-content:space-between}.slogan{display:none}.sub-header-nav{gap:5px;padding:10px;flex-wrap:wrap}.sub-header-link{font-size:14px;padding:8px 10px}.sub-header-link i{font-size:16px}.search-section{padding:30px 20px 20px}.search-input-integrated{font-size:16px}.wallpaper-gallery{grid-template-columns:1fr 1fr;gap:15px}.wallpaper-gallery.android-gallery{grid-template-columns:1fr 1fr 1fr;gap:10px}.wallpaper-title{font-size:12px;padding:8px}.download-page-container{padding:15px;margin:20px auto}.download-content{flex-direction:column}.wallpaper-details,.wallpaper-preview{flex:none;width:100%;min-width:unset}.wallpaper-preview.android-preview img{max-width:100%}.wallpaper-details h1{font-size:24px}.category-link-container,.tag-list{justify-content:center} .admin-outer-container{flex-direction: column; padding: 15px;} .admin-sidebar{width: 100%; margin-bottom: 15px; display: flex; flex-wrap: wrap; justify-content: center;} .admin-sidebar .admin-tab-btn{width: auto; flex-grow: 1; text-align: center; border-right: none; border-bottom: 4px solid transparent;} .admin-sidebar .admin-tab-btn.active{border-bottom-color: #FFD700;} .admin-main-content{padding: 20px;} .category-editor-grid,.category-editor-grid.android-grid{grid-template-columns:1fr}.admin-filters{flex-direction:column}.admin-filters input,.admin-filters select{width:100%}.wallpaper-table{display:block;width:100%;overflow-x:auto}.wallpaper-table th,.wallpaper-table td{font-size:12px;padding:8px;white-space:nowrap}.wallpaper-table th:nth-child(1){width:50px}.wallpaper-table th:nth-child(2){width:70px}.wallpaper-table th:nth-child(3){width:150px}.wallpaper-table th:nth-child(4){width:100px}.wallpaper-table th:nth-child(5){width:150px}.wallpaper-table th:nth-child(6){width:100px}.actions-cell button{padding:5px 8px;font-size:12px}.main-footer{padding:20px} .analytics-summary { flex-direction: column; } #dailyTrafficChart { height: 250px !important; } }