/* ========================================================================= */
/* ===       ZRNG Mobile Store - V5.0 Modified                    === */
/* ===       4 Cards Per Row + Kurdish Font + Category Page Style      === */
/* ========================================================================= */

/* استيراد الخط الكردي */
@font-face {
    font-family: 'NRT';
    src: url('../fonts/NRT-Reg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Fallback للخطوط */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --primary: #01875f;
    --primary-dark: #016d4d;
    --primary-light: #02a575;
    --accent: #00d9a3;
    --accent-glow: rgba(0, 217, 163, 0.3);
    --bg-app: #0a0e1a;
    --bg-card: #151b2e;
    --bg-elevated: #1e2740;
    --bg-hover: #252d45;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
    --radius: 20px;
    --radius-lg: 24px;
    --radius-sm: 16px;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-overlay: linear-gradient(135deg, rgba(1, 135, 95, 0.9), rgba(0, 217, 163, 0.9));
}

/* =========================================================================
   Base reset & accessibility
   ========================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'NRT', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: clamp(60px, 8vh, 80px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    font-size: clamp(14px, 2.2vw, 16px);
    width: 100%;
    max-width: 100vw;
}

/* =========================================================================
   Utilities + small helpers
   ========================================================================= */

.container-pad {
    padding-left: clamp(12px, 2.5vw, 16px);
    padding-right: clamp(12px, 2.5vw, 16px);
}

/* =========================================================================
   Header
   ========================================================================= */

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(56px, 7.5vh, 65px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(12px, 2.5vw, 16px);
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.98) 0%, rgba(10, 14, 26, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-header.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* back & action buttons */
.back-btn,
.header-action-btn {
    width: clamp(38px, 5.5vw, 42px);
    height: clamp(38px, 5.5vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: clamp(15px, 2.2vw, 17px);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:active,
.header-action-btn:active {
    transform: scale(0.94);
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* logo area */
.logo {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 11px);
}

.logo-icon {
    width: clamp(38px, 7vw, 45px);
    height: clamp(38px, 7vw, 45px);
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 3vw, 21px);
    box-shadow: 0 4px 12px var(--accent-glow);
    animation: pulse-glow 2s ease-in-out infinite;
}

.site-name-text {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* header actions container */
.header-actions {
    display: flex;
    gap: clamp(8px, 2vw, 10px);
}

/* =========================================================================
   Main content & offsets
   ========================================================================= */

.mobile-main-content {
    padding-top: calc(clamp(56px, 7.5vh, 65px) + 10px);
}

/* =========================================================================
   Featured banner / slider
   ========================================================================= */

.featured-banner {
    position: relative;
    height: clamp(200px, 28vh, 320px);
    margin-bottom: clamp(14px, 2.5vh, 22px);
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.banner-slider {
    display: flex;
    flex-direction: row;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 100%;
    direction: ltr; /* جێگیرکردنی ئاراستەی سلایدەر بۆ ئەوەی translateX بە دروستی کار بکات */
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: transform 0.6s ease;
}

.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.98) 0%, transparent 60%);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(12px, 3vw, 18px);
    z-index: 2;
    animation: fadeInUp 0.6s ease;
}

.banner-category {
    display: inline-block;
    padding: clamp(5px, 1.2vw, 9px) clamp(10px, 2.5vw, 15px);
    background: var(--gradient-primary);
    border-radius: 8px;
    font-size: clamp(11px, 2.1vw, 12px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px var(--accent-glow);
    letter-spacing: 0.4px;
}

.banner-title {
    font-size: clamp(1.1rem, 3.4vw, 1.6rem);
    font-weight: 900;
    margin-bottom: 0.4rem;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-description {
    font-size: clamp(0.8rem, 2.1vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.45;
}

.banner-dots {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 18px);
    right: clamp(10px, 2.5vw, 18px);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.banner-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.24s ease;
    cursor: pointer;
}

.banner-dot.active {
    width: 22px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* =========================================================================
   Filters bar
   ========================================================================= */

.main-filters-container {
    padding: 0 clamp(12px, 2.5vw, 16px) clamp(12px, 2.5vh, 18px);
    display: flex;
    gap: clamp(8px, 2vw, 13px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.main-filter-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: clamp(8px, 1.5vw, 11px) clamp(12px, 2.6vw, 18px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: clamp(0.82rem, 2.1vw, 0.94rem);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.main-filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-2px);
}

/* =========================================================================
   Store sections (titles/buttons)
   ========================================================================= */

.store-section {
    margin-bottom: clamp(12px, 2.8vh, 24px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(12px, 2.5vw, 16px) clamp(8px, 2vh, 11px);
}

.section-title {
    font-size: clamp(0.95rem, 2.8vw, 1.2rem);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.section-title i {
    color: var(--primary);
    font-size: clamp(1.05rem, 2.7vw, 1.3rem);
    filter: drop-shadow(0 2px 4px var(--accent-glow));
}

.see-all-btn {
    color: var(--primary);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.22s ease;
}

/* =========================================================================
   Horizontal image cards (للسكرول الأفقي)
   ========================================================================= */

.horizontal-scroll {
    display: flex;
    gap: clamp(6px, 1.5vw, 10px);
    padding: 0 clamp(12px, 2.5vw, 16px);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.image-card {
    position: relative;
    flex-shrink: 0;
    width: clamp(80px, 18vw, 110px);
    height: clamp(80px, 18vw, 110px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
    cursor: pointer;
}

.image-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.32s ease;
    z-index: -1;
}

.image-card:hover::before,
.image-card:active::before {
    opacity: 1;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:active {
    transform: translateY(3px) scale(0.97);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.image-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.28s ease;
    backdrop-filter: blur(8px);
}

.image-card:active .image-card-overlay {
    opacity: 1;
}

.image-card-overlay i {
    font-size: clamp(1.5rem, 3.8vw, 2rem);
    color: white;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    animation: pulseIcon 1.5s ease-in-out infinite;
}

/* =========================================================================
   Grid image cards - 4 بطاقات في السطر (الستايل الرئيسي المحدث)
   ========================================================================= */

.mobile-programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 2.5vw, 14px);
    padding: clamp(14px, 3.5vw, 20px);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* إزالة شبكة الخطوط لأن عندنا مسافات الآن */
.mobile-programs-grid::before {
    display: none;
}

.grid-image-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    cursor: pointer;
    z-index: 2;
    /* تصغير حجم البطاقات */
    max-width: 100%;
    max-height: 100%;
}

.grid-image-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.32s ease;
    z-index: -1;
}

.grid-image-card:hover::before,
.grid-image-card:active::before {
    opacity: 1;
}

.grid-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.grid-image-card:active {
    transform: translateY(-4px) scale(0.98);
    background: var(--bg-hover);
    border-color: transparent;
    z-index: 10;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--accent-glow);
}

.grid-image-card:active img {
    transform: scale(1.1);
}

/* overlay icon for grid */
.overlay-icon {
    width: clamp(35px, 7vw, 45px);
    height: clamp(35px, 7vw, 45px);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.overlay-icon i {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    color: white;
    animation: bounce 1s ease-in-out infinite;
}

/* =========================================================================
   Category Page Specific Styles (لصفحة category.php)
   ========================================================================= */

/* تطبيق نفس الستايل على صفحة الفئات */
.category-grid,
.apps-grid,
.games-grid,
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(4px, 1vw, 8px);
    padding: clamp(12px, 2.5vw, 16px);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* إزالة شبكة الخطوط */
.category-grid::before,
.apps-grid::before,
.games-grid::before,
.programs-grid::before {
    display: none;
}

.category-card,
.app-card,
.game-card,
.program-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    cursor: pointer;
    z-index: 2;
}

.category-card::before,
.app-card::before,
.game-card::before,
.program-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.32s ease;
    z-index: -1;
}

.category-card:hover::before,
.category-card:active::before,
.app-card:hover::before,
.app-card:active::before,
.game-card:hover::before,
.game-card:active::before,
.program-card:hover::before,
.program-card:active::before {
    opacity: 1;
}

.category-card img,
.app-card img,
.game-card img,
.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.category-card:active,
.app-card:active,
.game-card:active,
.program-card:active {
    transform: translateY(-4px) scale(0.98);
    background: var(--bg-hover);
    border-color: transparent;
    z-index: 10;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--accent-glow);
}

/* =========================================================================
   Bottom Tab Bar
   ========================================================================= */

.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: clamp(56px, 7.5vh, 70px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(21, 27, 46, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 0.35rem 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 1vw, 5px);
    text-decoration: none;
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: clamp(0.62rem, 1.8vw, 0.72rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
    transition: width 0.22s ease;
}

.tab-item i {
    font-size: clamp(1.25rem, 3.3vw, 1.5rem);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-item.active {
    color: var(--primary);
}

.tab-item.active::before {
    width: 38%;
}

.tab-item.active i {
    transform: scale(1.12);
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.tab-item:active {
    transform: scale(0.94);
}

/* =========================================================================
   Sidebar
   ========================================================================= */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82%, 340px);
    height: 100%;
    background: var(--bg-card);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 200;
    transition: right 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(12px, 3vw, 18px);
    border-bottom: 1px solid var(--border);
    background: var(--gradient-primary);
}

.sidebar-header h3 {
    font-size: clamp(0.95rem, 3vw, 1.3rem);
    font-weight: 900;
    margin: 0;
    color: white;
    letter-spacing: 0.5px;
}

.close-btn {
    width: clamp(35px, 6.5vw, 38px);
    height: clamp(35px, 6.5vw, 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: clamp(17px, 3.2vw, 19px);
    cursor: pointer;
    transition: all 0.22s ease;
}

/* sidebar content */
.sidebar-content {
    flex: 1;
    padding: clamp(8px, 2vw, 12px) 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.8vw, 15px);
    padding: clamp(10px, 2.4vw, 15px);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.85rem, 2.2vw, 0.98rem);
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

/* =========================================================================
   Search overlay & results
   ========================================================================= */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(12px);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    padding: clamp(8px, 2vw, 13px) clamp(12px, 2.5vw, 16px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 11px);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.search-modal input {
    flex: 1;
    height: clamp(42px, 6vh, 50px);
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: white;
    font-size: clamp(0.9rem, 2.1vw, 1.02rem);
    padding: 0 1rem;
    outline: none;
    transition: all 0.22s ease;
    font-family: 'NRT', 'Cairo', sans-serif;
}

.search-modal input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-modal input::placeholder {
    color: var(--text-muted);
}

.search-results-container {
    flex: 1;
    overflow-y: auto;
    padding: clamp(8px, 2vw, 13px) clamp(12px, 2.5vw, 16px);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.3vw, 14px);
    padding: clamp(8px, 2vw, 13px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: clamp(8px, 2vw, 11px);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search-result-item img {
    width: clamp(45px, 10vw, 65px);
    height: clamp(45px, 10vw, 65px);
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* =========================================================================
   Misc UI states: loading, empty, retry
   ========================================================================= */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2vw, 14px);
    padding: clamp(22px, 5.5vh, 44px);
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: clamp(1.3rem, 3.8vw, 2.2rem);
    color: var(--primary);
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 2px 8px var(--accent-glow));
}

.empty-state,
.error-state {
    text-align: center;
    padding: clamp(26px, 5.5vh, 52px);
}

.empty-state i,
.error-state i {
    font-size: clamp(2.1rem, 5.3vw, 3.5rem);
    color: var(--text-muted);
    margin-bottom: clamp(8px, 2vh, 14px);
    opacity: 0.5;
}

.empty-state h3,
.error-state h3 {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    margin-bottom: 0.45rem;
    font-weight: 800;
}

.retry-btn {
    margin-top: clamp(10px, 2.2vw, 16px);
    padding: clamp(8px, 2vw, 11px) clamp(12px, 2.8vw, 18px);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: clamp(0.85rem, 2.1vw, 0.95rem);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: all 0.22s ease;
}

.retry-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* =========================================================================
   Accessibility & prefs
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================================
   Media queries للشاشات المختلفة
   ========================================================================= */

/* أجهزة صغيرة جداً (أقل من 360px) */
@media (max-width: 359px) {
    body { font-size: 13px; }
    .mobile-header { height: 52px; padding: 0 10px; }
    .site-name-text { font-size: 0.9rem; }
    .banner-title { font-size: 0.95rem; }
    
    /* 4 بطاقات في السطر حتى للشاشات الصغيرة جداً */
    .mobile-programs-grid,
    .category-grid,
    .apps-grid,
    .games-grid,
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 8px;
    }
    
    .image-card {
        width: 70px;
        height: 70px;
    }
    
    .mobile-tab-bar { height: 52px; }
    .tab-item i { font-size: 1.1rem; }
    .tab-item { font-size: 0.58rem; }
}

/* أجهزة متوسطة الصغر (360px - 400px) */
@media (min-width: 360px) and (max-width: 400px) {
    .mobile-programs-grid,
    .category-grid,
    .apps-grid,
    .games-grid,
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 10px;
    }
}

/* أجهزة متوسطة (tablets صغيرة) */
@media (min-width: 600px) and (max-width: 767px) {
    body { font-size: 15px; }
    
    .mobile-programs-grid,
    .category-grid,
    .apps-grid,
    .games-grid,
    .programs-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 12px;
    }
    
    .featured-banner {
        height: 300px;
    }
}

/* أجهزة متوسطة كبيرة (tablets) */
@media (min-width: 768px) and (max-width: 1023px) {
    body { font-size: 15px; }
    
    .mobile-programs-grid,
    .category-grid,
    .apps-grid,
    .games-grid,
    .programs-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        padding: 14px;
    }
    
    .image-card {
        width: 120px;
        height: 120px;
    }
    
    .featured-banner {
        height: 340px;
    }
}

/* شاشات كبيرة (desktops) */
@media (min-width: 1024px) {
    body { 
        font-size: 16px;
        max-width: 1280px;
        margin: 0 auto;
    }
    
    .mobile-header {
        max-width: 1280px;
        margin: 0 auto;
    }
    
    .mobile-programs-grid,
    .category-grid,
    .apps-grid,
    .games-grid,
    .programs-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
        padding: 16px;
    }
    
    .image-card {
        width: 140px;
        height: 140px;
    }
    
    .featured-banner {
        height: 380px;
        max-width: 100%;
        border-radius: var(--radius-lg);
        margin: 18px;
    }
    
    .horizontal-scroll {
        gap: 14px;
    }
}

/* شاشات كبيرة جداً */
@media (min-width: 1440px) {
    .mobile-programs-grid,
    .category-grid,
    .apps-grid,
    .games-grid,
    .programs-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
        padding: 18px;
    }
}

/* =========================================================================
   Interaction effects, keyframes, small extras
   ========================================================================= */

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 12px var(--accent-glow); }
    50% { box-shadow: 0 6px 20px rgba(0, 217, 163, 0.5); }
}

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

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* ripple effect */
.ripple { 
    position: relative; 
    overflow: hidden; 
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.ripple:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

/* subtle shine on hover */
.image-card:hover::after,
.grid-image-card:hover::after,
.category-card:hover::after,
.app-card:hover::after,
.game-card:hover::after,
.program-card:hover::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: shine 1.5s ease-in-out;
}

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

/* shadow tuning for depth */
.image-card,
.grid-image-card,
.category-card,
.app-card,
.game-card,
.program-card {
    box-shadow:
        0 1px 2px rgba(0,0,0,0.08),
        0 4px 8px rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.16);
}

/* active states */
.image-card:active, 
.grid-image-card:active,
.category-card:active,
.app-card:active,
.game-card:active,
.program-card:active {
    box-shadow:
        0 2px 4px rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.18),
        0 16px 32px rgba(0,0,0,0.22),
        0 0 0 4px var(--accent-glow);
}

/* =========================================================================
   Text & focus improvements
   ========================================================================= */

h1, h2, h3, h4, h5, h6 { 
    text-rendering: optimizeLegibility; 
    -webkit-font-smoothing: antialiased;
    font-family: 'NRT', 'Cairo', sans-serif;
}

img { 
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges; 
}

img[loading="lazy"] { 
    animation: fadeIn 0.45s ease; 
}

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

/* glass, gradient, badges */
.glass-effect {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.animated-gradient { 
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary-light), var(--accent)); 
    background-size: 300% 300%; 
    animation: gradient-shift 3s ease infinite; 
}

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

.new-badge { 
    position: absolute; 
    top: 6px; 
    right: 6px; 
    background: var(--gradient-primary); 
    color: white; 
    padding: 0.2rem 0.4rem; 
    border-radius: 6px; 
    font-size: clamp(0.6rem, 1.8vw, 0.7rem); 
    font-weight: 700; 
    z-index: 2; 
    box-shadow: 0 2px 8px var(--accent-glow); 
}

.popular-badge { 
    position: absolute; 
    top: 6px; 
    left: 6px; 
    background: linear-gradient(135deg, #ff6b6b, #ff8e53); 
    color: white; 
    padding: 0.2rem 0.4rem; 
    border-radius: 6px; 
    font-size: clamp(0.6rem, 1.8vw, 0.7rem); 
    font-weight: 700; 
    z-index: 2; 
    box-shadow: 0 2px 8px rgba(255,107,107,0.3); 
}

.featured-item { 
    animation: pulse-border 2s ease-in-out infinite; 
}

@keyframes pulse-border { 
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow);} 
    50% { box-shadow: 0 0 0 8px transparent; } 
}

/* focus outlines tuned */
*:focus { 
    outline: 2px solid var(--primary); 
    outline-offset: 2px; 
}

.image-card:focus, 
.grid-image-card:focus, 
.tab-item:focus,
.category-card:focus,
.app-card:focus,
.game-card:focus,
.program-card:focus { 
    outline: none; 
}

/* smooth transitions default */
* { 
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
}

/* =========================================================================
   Page-specific / download page overrides
   ========================================================================= */

body[data-page-title="download_page_title"] { 
    padding-bottom: 0 !important; 
}

body[data-page-title="download_page_title"] .mobile-header,
body[data-page-title="download_page_title"] .mobile-tab-bar { 
    display: none !important; 
}

/* =========================================================================
   Print styles
   ========================================================================= */

@media print {
    .mobile-header, 
    .mobile-tab-bar, 
    .mobile-sidebar, 
    .search-overlay { 
        display: none !important; 
    }
}

/* =========================================================================
   إضافات خاصة للفونت الكردي
   ========================================================================= */

/* تحسين عرض النصوص الكردية */
body, 
input, 
textarea, 
button, 
select {
    font-family: 'NRT', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* دعم اتجاه النص RTL للكردية */
[dir="rtl"] .mobile-programs-grid,
[dir="rtl"] .category-grid,
[dir="rtl"] .apps-grid,
[dir="rtl"] .games-grid,
[dir="rtl"] .programs-grid {
    direction: rtl;
}

/* =========================================================================
   End of file
   ========================================================================= */

/* =========================================================================
   Floating Action Button (FAB) for Add Program
   ========================================================================= */

.fab-add-program {
    position: fixed;
    bottom: clamp(75px, 10vh, 90px); /* فوق شريط التنقل السفلي */
    right: clamp(15px, 4vw, 25px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 8px 25px var(--accent-glow);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-add-program:hover {
    box-shadow: 0 12px 30px var(--accent-glow);
    transform: scale(1.05);
}

.fab-add-program:active {
    transform: scale(0.95);
}

/* =========================================================================
   Add Program Modal (Professional Design)
   ========================================================================= */

.add-program-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none; /* مخفي افتراضياً */
    justify-content: center;
    align-items: flex-end; /* يظهر من الأسفل */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.add-program-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-elevated);
    width: 100%;
    max-height: 90%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.add-program-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-light);
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

/* Form Styling */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-inline {
    display: flex;
    gap: 15px;
}

.form-group-inline .form-group {
    flex: 1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.modal-form input[type="text"],
.modal-form input[type="url"],
.modal-form textarea,
.modal-form select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.form-group-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.form-group-checkbox label {
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 400;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(1px);
}

.form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: rgba(1, 135, 95, 0.2);
    color: var(--primary-light);
}

.form-message.error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
}

/* Media Query for larger screens (e.g., tablets in portrait) */
@media (min-width: 600px) {
    .modal-content {
        max-width: 500px;
        border-radius: var(--radius-lg);
        transform: translateY(0);
        margin: auto;
    }

    .add-program-modal {
        align-items: center; /* يظهر في المنتصف */
    }
}


/* تنسيقات الإشعار المنبثق */
.pasha-notif-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 1000000 !important; /* ليكون فوق الهيدر والسلايدر وكل شيء */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pasha-notif-card {
    background: #121212 !important;
    width: 100%;
    max-width: 420px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.pasha-notif-img-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

.pasha-notif-body {
    padding: 20px;
    text-align: center;
    color: white;
}

.pasha-notif-body h2 {
    color: #00d9a3 !important;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.pasha-notif-btn-green a {
    background: #00d9a3;
    color: #000 !important;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-pink {
    background: #d81b60 !important;
    color: white !important;
    display: block;
    margin: 10px 20px;
    padding: 15px;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
}

.pasha-close-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

/* حركة ظهور الإشعار */
.pasha-notif-card {
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* تنسيق حاوية شاشة التحميل */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f0f23; /* لون خلفية الموقع الداكن */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999999; /* ليكون فوق كل شيء */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* نص التحميل أسفل الهامستر */
.loading-text {
    color: #00d9a3;
    margin-top: 20px;
    font-family: 'NRT', sans-serif;
    letter-spacing: 2px;
}

/* إخفاء شريط التمرير أثناء التحميل */
body.loading-active {
    overflow: hidden !important;
}

/* الكود الذي أرسلته أنت للهامستر */
.wheel-and-hamster {
  --dur: 1s;
  position: relative;
  width: 12em;
  height: 12em;
  font-size: 14px;
}

.wheel, .hamster, .hamster div, .spoke { position: absolute; }
.wheel, .spoke { border-radius: 50%; top: 0; left: 0; width: 100%; height: 100%; }
.wheel { background: radial-gradient(100% 100% at center,hsla(0,0%,60%,0) 47.8%,hsl(0,0%,60%) 48%); z-index: 2; }
.hamster { animation: hamster var(--dur) ease-in-out infinite; top: 50%; left: calc(50% - 3.5em); width: 7em; height: 3.75em; transform: rotate(4deg) translate(-0.8em,1.85em); transform-origin: 50% 0; z-index: 1; }
.hamster__head { animation: hamsterHead var(--dur) ease-in-out infinite; background: hsl(30,90%,55%); border-radius: 70% 30% 0 100% / 40% 25% 25% 60%; box-shadow: 0 -0.25em 0 hsl(30,90%,80%) inset, 0.75em -1.55em 0 hsl(30,90%,90%) inset; top: 0; left: -2em; width: 2.75em; height: 2.5em; transform-origin: 100% 50%; }
.hamster__ear { animation: hamsterEar var(--dur) ease-in-out infinite; background: hsl(0,90%,85%); border-radius: 50%; box-shadow: -0.25em 0 hsl(30,90%,55%) inset; top: -0.25em; right: -0.25em; width: 0.75em; height: 0.75em; transform-origin: 50% 75%; }
.hamster__eye { animation: hamsterEye var(--dur) linear infinite; background-color: hsl(0,0%,0%); border-radius: 50%; top: 0.375em; left: 1.25em; width: 0.5em; height: 0.5em; }
.hamster__nose { background: hsl(0,90%,75%); border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%; top: 0.75em; left: 0; width: 0.2em; height: 0.25em; }
.hamster__body { animation: hamsterBody var(--dur) ease-in-out infinite; background: hsl(30,90%,90%); border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%; box-shadow: 0.1em 0.75em 0 hsl(30,90%,55%) inset, 0.15em -0.5em 0 hsl(30,90%,80%) inset; top: 0.25em; left: 2em; width: 4.5em; height: 3em; transform-origin: 17% 50%; transform-style: preserve-3d; }
.hamster__limb--fr, .hamster__limb--fl { clip-path: polygon(0 0,100% 0,70% 80%,60% 100%,0% 100%,40% 80%); top: 2em; left: 0.5em; width: 1em; height: 1.5em; transform-origin: 50% 0; }
.hamster__limb--fr { animation: hamsterFRLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,80%) 80%,hsl(0,90%,75%) 80%); transform: rotate(15deg) translateZ(-1px); }
.hamster__limb--fl { animation: hamsterFLLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,90%) 80%,hsl(0,90%,85%) 80%); transform: rotate(15deg); }
.hamster__limb--br, .hamster__limb--bl { border-radius: 0.75em 0.75em 0 0; clip-path: polygon(0 0,100% 0,100% 30%,70% 90%,70% 100%,30% 100%,40% 90%,0% 30%); top: 1em; left: 2.8em; width: 1.5em; height: 2.5em; transform-origin: 50% 30%; }
.hamster__limb--br { animation: hamsterBRLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,80%) 90%,hsl(0,90%,75%) 90%); transform: rotate(-25deg) translateZ(-1px); }
.hamster__limb--bl { animation: hamsterBLLimb var(--dur) linear infinite; background: linear-gradient(hsl(30,90%,90%) 90%,hsl(0,90%,85%) 90%); transform: rotate(-25deg); }
.hamster__tail { animation: hamsterTail var(--dur) linear infinite; background: hsl(0,90%,85%); border-radius: 0.25em 50% 50% 0.25em; box-shadow: 0 -0.2em 0 hsl(0,90%,75%) inset; top: 1.5em; right: -0.5em; width: 1em; height: 0.5em; transform: rotate(30deg) translateZ(-1px); transform-origin: 0.25em 0.25em; }
.spoke { animation: spoke var(--dur) linear infinite; background: radial-gradient(100% 100% at center,hsl(0,0%,60%) 4.8%,hsla(0,0%,60%,0) 5%), linear-gradient(hsla(0,0%,55%,0) 46.9%,hsl(0,0%,65%) 47% 52.9%,hsla(0,0%,65%,0) 53%) 50% 50% / 99% 99% no-repeat; }

@keyframes hamster { from, to { transform: rotate(4deg) translate(-0.8em,1.85em); } 50% { transform: rotate(0) translate(-0.8em,1.85em); } }
@keyframes hamsterHead { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); } }
@keyframes hamsterEye { from, 90%, to { transform: scaleY(1); } 95% { transform: scaleY(0); } }
@keyframes hamsterEar { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); } }
@keyframes hamsterBody { from, 25%, 50%, 75%, to { transform: rotate(0); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); } }
@keyframes hamsterFRLimb { from, 25%, 50%, 75%, to { transform: rotate(50deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); } }
@keyframes hamsterFLLimb { from, 25%, 50%, 75%, to { transform: rotate(-30deg); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); } }
@keyframes hamsterBRLimb { from, 25%, 50%, 75%, to { transform: rotate(-60deg) translateZ(-1px); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); } }
@keyframes hamsterBLLimb { from, 25%, 50%, 75%, to { transform: rotate(20deg); } 12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); } }
@keyframes spoke { from { transform: rotate(0); } to { transform: rotate(-1turn); } }


/* إجبار الصفحة على التمرير مهما كانت الظروف في صفحة التحميل */
body[data-page-title="download_page_title"], 
.download-page-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    position: relative !important;
}

/* التأكد من أن الحاوية الرئيسية لا تمنع التمرير */
.download-section {
    min-height: 100vh;
    display: block !important;
}


.banner-slider {
    display: flex !important; /* إجبار الصور على الاصطفاف أفقيًا كقطار واحد */
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.banner-slide {
    min-width: 100% !important; /* كل صورة تأخذ عرض الشاشة بالكامل */
    width: 100% !important;
}


/* =========================================================================
   New Sidebar Styles - V7.1
   ========================================================================= */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-app);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border);
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header-new {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: var(--gradient-primary);
    padding: 2px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 13px;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.welcome-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.user-name {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-primary);
}

.sidebar-close-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-close-btn:active {
    transform: scale(0.9);
    background: var(--primary);
}

.sidebar-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section-title {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 800;
}

.sidebar-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sidebar-menu-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu-item .menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s;
}

.sidebar-menu-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-menu-item:active {
    transform: scale(0.95);
    background: var(--bg-elevated);
    border-color: var(--primary);
}

.ai-glow {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 0 15px var(--accent-glow);
    animation: pulse-glow 2s infinite;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sidebar-list-item i {
    font-size: 1.1rem;
    color: var(--primary);
}

.sidebar-list-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-list-item:active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border);
}

.sidebar-social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn.telegram { background: #0088cc; }
.social-btn.facebook { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tiktok { background: #000000; border: 1px solid rgba(255,255,255,0.1); }

.social-btn:active {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}
