/* ==========================================
   Blind Date - Full Neumorphic UI (Unified)
   ========================================== */

:root {
    --bg: #e0e5ec;
    --neu-light: #ffffff;
    --neu-shadow: #a3b1c6;
    --primary: #6d5dfc;
    --text: #44476a;
    --accent: #f06292;
    --success: #4caf50;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    transition: all 0.3s ease;
}

body { 
    background-color: var(--bg); 
    font-family: 'Tahoma', sans-serif; 
    color: var(--text);
    margin: 0; 
    padding: 0; 
    line-height: 1.6;
    direction: rtl;
}

.app-container { 
    padding: 15px; 
    padding-bottom: 120px; 
    max-width: 500px; 
    margin: auto; 
}

/* پایه نئومورفیسم (برجستگی) */
.neu-btn, .wallet-card, .avatar-wrap, .stats-box, .ad-container, .info-chip, .stat-card {
    background: var(--bg);
    box-shadow: 9px 9px 16px var(--neu-shadow), -9px -9px 16px var(--neu-light);
    border-radius: 15px;
    border: none;
}

/* هدر و پروفایل */
.main-header { margin-bottom: 25px; }
.header-top { display: flex; justify-content: space-between; align-items: center; }
.user-profile { display: flex; align-items: center; gap: 12px; }

.avatar-wrap { width: 60px; height: 60px; padding: 3px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.name-badge-row { display: flex; align-items: center; gap: 6px; }
.verify-icon { width: 18px; height: 18px; object-fit: contain; }

.user-text h2 { margin: 0; font-size: 1.1rem; }
.badge { font-size: 0.75rem; opacity: 0.7; }

/* سکه و انیمیشن چرخش */
.wallet-card { padding: 8px 15px; display: flex; align-items: center; gap: 8px; font-weight: bold; }
.wallet-card img { width: 22px; }

.rotating-coin {
    animation: rotateCoin 2s linear infinite;
}
@keyframes rotateCoin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* اطلاعات فنی (آیدی و یوزرنیم) */
.technical-info { display: flex; gap: 10px; margin-top: 15px; }
.info-chip { padding: 8px; font-size: 0.75rem; color: #777; cursor: pointer; flex: 1; text-align: center; }

/* بنر تبلیغاتی */
.ad-section { margin: 20px 0; }
.ad-container { overflow: hidden; width: 100%; line-height: 0; }
.ad-container img { width: 100%; height: auto; border-radius: 15px; transition: opacity 0.3s; }

/* ==========================================
   بخش دکمه‌های عملیاتی و انیمیشن - کاملاً اصلاح شده
   ========================================== */

/* والد اصلی دکمه‌ها */
.action-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    padding: 10px 15px 15px 15px; 
}

/* دکمه بزرگ چت */
.neu-btn.primary-action { 
    width: 100%;
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 20px 25px; 
    text-align: right; 
    cursor: pointer;
    border: none !important;
    outline: none !important;
    background: var(--bg);
    box-shadow: 8px 8px 16px var(--neu-shadow), -8px -8px 16px var(--neu-light) !important;
    border-radius: 25px;
    transition: all 0.2s ease;
}

/* دکمه‌های دوتایی پایین */
.secondary-actions { 
    display: flex; 
    gap: 15px; 
    padding: 0 15px 30px 15px; /* پدینگ پایین برای دیده شدن سایه */
}

.neu-btn.small { 
    flex: 1; 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 8px; 
    font-size: 0.85rem; 
    border: none !important;
    outline: none !important;
    background: var(--bg);
    box-shadow: 6px 6px 12px var(--neu-shadow), -6px -6px 12px var(--neu-light) !important;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
}

/* افکت کلیک برای همه دکمه‌ها */
.neu-btn:active { 
    box-shadow: inset 4px 4px 8px var(--neu-shadow), inset -4px -4px 8px var(--neu-light) !important;
    transform: scale(0.97); 
}

/* تنظیمات متون و آیکون‌ها */
.btn-icon { font-size: 2.4rem; display: flex; align-items: center; }
.btn-text h3 { margin: 0 !important; color: var(--primary); font-size: 1.1rem; }
.btn-text p { margin: 4px 0 0 0 !important; font-size: 0.8rem; opacity: 0.8; }
.icon { font-size: 1.4rem; }

/* --- اصلاح کامل انیمیشن نقطه چشمک‌زن --- */
.pulsing-dot {
    height: 10px;
    width: 10px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* داشبورد آمار لحظه‌ای */
.stats-box { margin-top: 30px; padding: 20px; }
.stats-header { text-align: center; font-weight: bold; margin-bottom: 20px; color: var(--text); font-size: 1rem; }
.stats-row-label { font-size: 0.8rem; margin: 15px 5px 8px 0; font-weight: bold; color: var(--primary); display: block; }

.stats-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.stat-card { 
    text-align: center; padding: 12px 5px; 
    box-shadow: 4px 4px 8px var(--neu-shadow), -4px -4px 8px var(--neu-light);
}
.stat-card.highlight { background: rgba(109, 93, 252, 0.05); }
.stat-card .val { display: block; font-size: 1rem; font-weight: bold; color: var(--primary); }
.stat-card .lbl { font-size: 0.65rem; opacity: 0.8; }

/* کارت ارواح و آنلاین */
.online-grid { grid-template-columns: 1fr 1fr 1fr 1fr !important; } /* چهار ستونه کردن ردیف آنلاین */
.stat-card.ghost-card { background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.1); }
.stat-card.ghost-card .val { color: #888; }

/* پنل مدیریت متامن */
.admin-panel-wrap { margin: 20px 15px; background: #1a1c23; border: 1px dashed #00ffc3; border-radius: 20px; padding: 15px; direction: rtl; font-family: 'Tahoma', sans-serif; }
.admin-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px solid #333; padding-bottom: 8px; color: #00ffc3; font-weight: bold; font-size: 13px; }
.spoiler-btn { background: #333; color: #fff; border: none; border-radius: 5px; padding: 2px 8px; font-size: 10px; cursor: pointer; }
.spoiler-content { filter: blur(8px); transition: 0.3s; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 11px; color: #eee; }
.admin-card { background: rgba(255,255,255,0.03); padding: 8px; border-radius: 10px; }
.admin-hr { border:0; border-top:1px solid #2d303a; margin: 5px 0; }
.admin-footer-info { margin-top: 10px; padding: 8px; background: rgba(0,255,195,0.05); border-radius: 8px; font-size: 11px; color: #aaa; text-align: center; }

/* رنگ‌های کمکی */
.yellow-text { color: #ffca28; }
.blue-text { color: #42a5f5; }
.primary-text { color: #00ffc3; }
.small-text { font-size: 9px; color: #888; }

/* فوتر و محتوا */
.neu-footer { 
    margin-top: 40px; padding: 25px; border-radius: 20px; 
    box-shadow: inset 6px 6px 12px var(--neu-shadow), inset -6px -6px 12px var(--neu-light); 
}
.creator-badge { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.creator-badge img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--neu-light); }

.footer-content { font-size: 0.85rem; color: #5a5d7a; text-align: justify; }
.quote-card { 
    margin: 20px 0; padding: 15px; 
    border-right: 4px solid var(--primary); 
    background: rgba(255,255,255,0.2); 
    font-style: italic; border-radius: 0 10px 10px 0;
}

.security-note { 
    background: rgba(240, 98, 146, 0.05); 
    padding: 15px; border-radius: 12px; margin-top: 20px; 
    border: 1px dashed var(--accent);
}

/* بخش اسپانسرینگ */
.ad-invite-box {
    margin-top: 25px; padding: 20px; 
    background: var(--bg); border-radius: 15px; text-align: center; 
    box-shadow: inset 3px 3px 7px var(--neu-shadow), inset -3px -3px 7px var(--neu-light);
}
.sponsor-btn {
    display: inline-block; margin-top: 12px; padding: 12px 25px; 
    background: var(--primary); color: white; text-decoration: none; 
    border-radius: 12px; font-weight: bold; 
    box-shadow: 4px 4px 10px var(--neu-shadow);
}
.sponsor-btn:active { transform: scale(0.95); }

.copyright {
    margin-top: 40px;
    text-align: center;
    font-size: 0.7rem; /* سایز کوچک‌تر */
    color: var(--text);
    opacity: 0.5; /* کمرنگ برای شیک شدن */
    padding-bottom: 20px;
}

/* نوار پیمایش پایین */
.bottom-tab-bar {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    height: 70px; background: var(--bg);
    display: flex; justify-content: space-around; align-items: center;
    border-radius: 25px; box-shadow: 10px 10px 20px var(--neu-shadow), -10px -10px 20px var(--neu-light);
    z-index: 1000;
}
.tab-item { font-size: 1.6rem; cursor: pointer; color: #888; }
.tab-item.active { color: var(--primary); transform: translateY(-5px); }
.main-tab { 
    width: 65px; height: 65px; background: var(--primary); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; margin-top: -45px; border: 6px solid var(--bg);
    box-shadow: 0 10px 20px rgba(109, 93, 252, 0.4);
}