/* =========================================================
   ASHTEMOBILE - PREMIUM CYBER NEON ARCHITECTURE
   Version: 11.3 | Settings Cards Neon Glowing Borders
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

:root {
    --bg-base: #07070a;
    --bg-surface: #12121a;
    --bg-surface-hover: #181824;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-glow: #8b5cf6;
    --accent-solid: #6366f1;
    --accent-success: #22c55e;
    --accent-danger: #ff3b30;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-highlight: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Outfit', -apple-system, sans-serif; 
    -webkit-user-select: none; user-select: none; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    background-color: var(--bg-base); 
    color: var(--text-primary); 
    padding-bottom: calc(120px + env(safe-area-inset-bottom)); 
    -webkit-overflow-scrolling: touch;
}

header { 
    padding: calc(16px + env(safe-area-inset-top)) 24px 16px; 
    display: flex; justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 50; 
    background: rgba(7, 7, 10, 0.85); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateZ(0);
}
.greeting h1 { 
    font-size: 28px; font-weight: 900; letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-glow)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.profile-logo { 
    width: 44px; height: 44px; border-radius: 14px; 
    border: 2px solid var(--accent-solid); padding: 2px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); object-fit: cover;
}

.now-dot {
    display: inline-block; width: 8px; height: 8px; background-color: var(--accent-success);
    border-radius: 50%; margin-left: 8px; vertical-align: middle;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8); 
    animation: pulseLiveGreen 2s infinite;
    transform: translateZ(0);
}
@keyframes pulseLiveGreen {
    0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 16px rgba(34, 197, 94, 1); }
    100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
}

.search-wrapper { padding: 16px 24px; }
.search-bar { 
    display: flex; align-items: center; background: var(--bg-surface); 
    border-radius: 16px; padding: 14px 20px; border: 1px solid var(--border-subtle); 
    transition: var(--transition-smooth);
}
.search-bar:focus-within { border-color: var(--accent-solid); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
.search-bar ion-icon { font-size: 22px; color: var(--text-secondary); margin-right: 12px; }
.search-bar input { border: none; background: transparent; width: 100%; font-size: 16px; color: var(--text-primary); outline: none; font-weight: 500;}

.categories { display: flex; gap: 10px; padding: 0 24px 20px; overflow-x: auto; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.cat-pill { 
    padding: 10px 24px; background: transparent; color: var(--text-secondary); 
    border-radius: 14px; font-size: 14px; font-weight: 700; 
    border: 1.5px solid var(--bg-surface); white-space: nowrap; cursor: pointer; 
    transition: var(--transition-smooth);
}
.cat-pill.active { 
    background: var(--accent-solid) !important; color: #ffffff !important; 
    border-color: var(--accent-solid); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.tab-content { display: none !important; opacity: 0; transition: opacity 0.3s ease; }
.tab-content.active { display: block !important; opacity: 1; animation: slideUp 0.4s ease forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.app-list-container { 
    padding: 0 24px 24px; display: flex; flex-direction: column; gap: 18px; 
    contain: content; backface-visibility: hidden;
}

/* ================= ئەنیمەیشنی ڕەنگاوڕەنگ بۆ چوارچێوەکان ================= */
@keyframes cyberNeonBorder {
    0% { border-color: #ff0055; box-shadow: 0 0 12px rgba(255, 0, 85, 0.2); }
    25% { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.2); }
    50% { border-color: #00d4ff; box-shadow: 0 0 12px rgba(0, 212, 255, 0.2); }
    75% { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.2); }
    100% { border-color: #ff0055; box-shadow: 0 0 12px rgba(255, 0, 85, 0.2); }
}

.app-card-row { 
    background: var(--bg-surface); border-radius: 20px; padding: 16px; display: flex; align-items: center; 
    border: 1.5px solid transparent; position: relative; overflow: hidden; 
    transition: transform 0.2s ease, background 0.2s ease;
    content-visibility: auto; contain-intrinsic-size: 100px; transform: translateZ(0); 
    animation: cyberNeonBorder 4s linear infinite;
}
.app-card-row:active { transform: scale(0.97) translateZ(0); background: var(--bg-surface-hover); }
.app-card-row::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--accent-solid), var(--accent-glow)); 
    opacity: 0.8; border-radius: 4px 0 0 4px;
}

.icon-container { position: relative; margin-right: 16px; flex-shrink: 0; }
.icon-container img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #000;}
.icon-status-badge { 
    position: absolute; top: -6px; right: -6px; font-size: 9px; font-weight: 900; 
    color: #ffffff; background: var(--accent-danger); padding: 4px 8px; 
    border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.badge-update { background: #eab308; box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4); }

.app-info-col { flex-grow: 1; overflow: hidden; }
.app-info-col h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-info-col .cat { font-size: 12px; color: var(--accent-glow); font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;}

.app-info-col .meta-info { 
    font-size: 13px; color: var(--text-secondary); 
    display: flex; align-items: center; gap: 14px; 
    font-weight: 600; letter-spacing: 0.3px;
}
.meta-info span { display: flex; align-items: center; gap: 6px; }
.meta-info ion-icon { font-size: 16px; color: var(--text-secondary); opacity: 0.8;}

.btn-get { 
    position: relative; overflow: hidden; z-index: 1; 
    background: rgba(255, 255, 255, 0.05) !important; 
    color: #a855f7; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 8px 20px; border-radius: 14px; 
    font-weight: 800; font-size: 14px; 
    cursor: pointer; flex-shrink: 0; margin-left: 10px;
    text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease;
    min-width: 85px; display: flex; align-items: center; justify-content: center;
}
.btn-get::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 0%;
    background: linear-gradient(90deg, #4f46e5, #d946ef); 
    z-index: -1; transition: width 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-get:active { transform: scale(0.92); background: rgba(255,255,255,0.1) !important;}
.btn-get.is-loading {
    color: #ffffff !important; border-color: transparent !important;
    box-shadow: 0 4px 20px rgba(217, 70, 239, 0.6); pointer-events: none; 
}
.btn-get.is-loading::before { width: 100%; }

.vip-header { font-size: 18px; font-weight: 900; padding: 10px 24px 15px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px;}

.vip-card { 
    margin: 0 24px; padding: 22px; display: flex; align-items: center; gap: 16px; 
    background: linear-gradient(145deg, #1e1b4b, #2e1065); border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3); box-shadow: var(--shadow-premium);
    transform: translateZ(0);
}
.vip-icon { 
    width: 64px; height: 64px; flex-shrink: 0; 
    background: transparent; 
    border-radius: 16px; 
    padding: 0; 
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.vip-icon img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    display: block;
}

.vip-details { flex-grow: 1; }
.vip-badge { color: #a78bfa; font-size: 11px; font-weight: 900; margin-bottom: 6px; display: block; letter-spacing: 1px;}
.vip-details h3 { font-size: 18px; font-weight: 900; color: #ffffff; margin-bottom: 2px; }
.vip-details p { font-size: 13px; color: #c7d2fe; font-weight: 500;}
.vip-buy-btn { background: #ffffff; color: #312e81; border: none; padding: 10px 20px; border-radius: 12px; font-weight: 800; font-size: 14px; cursor: pointer; transition: 0.2s;}

/* ================== بەشی Settings (گۆڕدرا بۆ ئەوەی ڕەنگاوڕەنگ بێت) ================== */
.settings-container { padding: 0 24px; margin-top: 10px; }

.profile-header-card {
    background: linear-gradient(145deg, #1e1b4b, #2e1065); border-radius: 24px; padding: 24px; display: flex; align-items: center; gap: 18px;
    margin-bottom: 30px; border: 1px solid rgba(99, 102, 241, 0.4); box-shadow: 0 10px 30px rgba(49, 46, 129, 0.5);
}
.profile-header-card img { width: 65px; height: 65px; border-radius: 18px; border: 2px solid var(--accent-glow); padding: 3px; background: #000;}
.profile-info h2 { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 6px; letter-spacing: 0.5px;}
.profile-info p { font-size: 13px; color: var(--accent-success); font-weight: 700; display: flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: 1px;}

.setting-section-title { font-size: 13px; font-weight: 800; color: var(--accent-glow); text-transform: uppercase; margin: 25px 0 12px 6px; letter-spacing: 1px;}

/* لێرەدا ئەنیمەیشنە ڕەنگاوڕەنگەکە خرایە سەر بۆکسەکانی سێتینگ */
.setting-card { 
    background: var(--bg-surface); 
    border-radius: 24px; 
    padding: 5px 22px; 
    margin-bottom: 24px; 
    border: 1.5px solid transparent; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: cyberNeonBorder 4s linear infinite; /* ئەنیمەیشنەکە لێرە جێبەجێ کراوە */
}
/* هێڵە شازەکەی لای چەپیشی بۆ دانرا وەک کارتەکان */
.setting-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--accent-solid), var(--accent-glow)); 
    opacity: 0.8; border-radius: 4px 0 0 4px;
}

.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); text-decoration: none; transition: 0.2s; cursor: pointer; position: relative; z-index: 1;}
.setting-row:active { opacity: 0.6; }
.setting-row:last-child { border-bottom: none; }
.setting-row .left { display: flex; align-items: center; gap: 16px; }
.icon-bg { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px;}
.setting-row .left span { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.setting-row .chevron { color: var(--text-secondary); opacity: 0.5; font-size: 20px;}

.app-version-info { text-align: center; padding: 25px 0 35px; }
.app-version-info img { width: 45px; height: 45px; border-radius: 14px; opacity: 0.6; margin-bottom: 12px; }
.app-version-info h4 { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; letter-spacing: 0.5px;}
.app-version-info p { font-size: 14px; color: var(--text-secondary); font-weight: 600;}
.app-version-info .copyright { font-size: 12px; opacity: 0.5; margin-top: 8px; }

.bottom-nav-wrap { 
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(to top, rgba(7,7,10,1) 60%, transparent);
    padding: 15px 24px calc(15px + env(safe-area-inset-bottom)); z-index: 100;
    transform: translateZ(0);
}
.bottom-nav { 
    background: rgba(18, 18, 26, 0.75); 
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 8px 12px; border-radius: 32px; 
    display: flex; justify-content: space-between; max-width: 420px; margin: 0 auto; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.nav-item { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-secondary); cursor: pointer; 
    width: 23%; padding: 10px 0; border-radius: 22px; 
    transition: var(--transition-smooth);
}
.nav-item.active { 
    background: rgba(255, 255, 255, 0.08); 
    color: #fff !important; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}
.nav-item.active ion-icon { 
    color: #a855f7; 
    filter: drop-shadow(0 0 8px rgba(168,85,247,0.8));
}
.nav-item ion-icon { font-size: 24px; margin-bottom: 4px; }
.nav-item span { font-size: 11px; font-weight: 700; letter-spacing: 0.3px;}

.vip-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 200; display: none; justify-content: center; align-items: center; padding: 24px; }
.vip-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.vip-modal-content { background: var(--bg-surface); width: 100%; max-width: 360px; border-radius: 24px; padding: 28px; text-align: center; position: relative; border: 1px solid var(--border-highlight); box-shadow: var(--shadow-premium);}
.close-btn { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.05); border: none; width: 32px; height: 32px; border-radius: 10px; font-size: 20px; color: var(--text-primary); cursor: pointer;}
.modal-title { font-size: 24px; font-weight: 900; color: #ffffff; margin-bottom: 6px; margin-top: 10px; }
.modal-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.vip-pricing-box { background: var(--bg-base); border-radius: 16px; padding: 20px; text-align: left; border: 1px solid rgba(99,102,241,0.3);}
.price-display { font-size: 32px; font-weight: 900; color: #ffffff; margin-bottom: 20px; }
.price-display span { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.vip-features { list-style: none; margin-bottom: 24px; }
.vip-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #ffffff; margin-bottom: 12px; font-weight: 500;}
.vip-features ion-icon { color: var(--accent-glow); font-size: 20px; }
.join-vip-btn { width: 100%; background: linear-gradient(135deg, var(--accent-solid), var(--accent-glow)); color: #ffffff; border: none; padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.2s;}
.join-vip-btn:active { transform: scale(0.96); }
.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; color: var(--text-secondary); font-size: 14px; font-weight: 700; width: 100%;}
.loading-wrap ion-icon { font-size: 32px; animation: spin 1s linear infinite; margin-bottom: 12px; color: var(--accent-glow); }
@keyframes spin { 100% { transform: rotate(360deg); } }
