/* ============================================================
   LifeStyleMod – Main Stylesheet (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Variables (بر اساس بنر) ---------- */
:root {
    --bg: #020617;
    --bg-glass: rgba(15, 23, 42, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --primary: #8b5cf6;         /* بنفش جدید */
    --primary-hover: #a78bfa;
    --success: #2dd4bf;         /* فیروزه‌ای بنر */
    --warning: #f59e0b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --glass-border: 1px solid rgba(245, 158, 11, 0.15);
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #b45309;
    --cyan: #2dd4bf;
    --container: 1200px;
    --gap: 24px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.4); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.7); }

/* ---------- Body (با پترن الماس و خطوط مورب) ---------- */
body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(139,92,246,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(45,212,191,0.09) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(245,158,11,0.07) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='40,5 75,40 40,75 5,40' fill='none' stroke='rgba(245,158,11,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: auto, auto, auto, 120px 120px;
    background-attachment: fixed;
    font-size: 16px;
    padding-top: 80px;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(139,92,246,0.03) 60px,
        rgba(139,92,246,0.03) 61px
    );
    opacity: 0.6;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ---------- Glass Card (حاشیه طلایی) ---------- */
.glass-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--radius-lg);
}
.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 50px rgba(139,92,246,0.15), 0 0 30px rgba(245,158,11,0.15);
    transform: translateY(-6px);
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-explore {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    color: #fff;
    box-shadow: 0 8px 35px rgba(139,92,246,0.4);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(139,92,246,0.6); }
.btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(245,158,11,0.2);
    color: #fff;
}
.btn-secondary:hover {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.5);
    transform: translateY(-3px);
}
.btn-explore {
    background: linear-gradient(135deg, rgba(45,212,191,0.15), rgba(45,212,191,0.05));
    border: 1px solid rgba(45,212,191,0.3);
    color: #2dd4bf;
}
.btn-explore:hover {
    background: rgba(45,212,191,0.2);
    box-shadow: 0 15px 40px rgba(45,212,191,0.3);
    transform: translateY(-3px);
}

/* ---------- Navbar ---------- */
nav#mainNav {
    position: fixed;
    top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(245,158,11,0.1);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(245,158,11,0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
nav#mainNav.hide { transform: translateY(-100%); }

/* لوگو */
.logo { font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; white-space: nowrap; flex-shrink: 0; }
.logo:hover { opacity: 0.95; }
.logo-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; transition: transform 0.3s ease; }
.logo:hover .logo-icon { transform: scale(1.05) rotate(5deg); }
.logo-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(245,158,11,0.5)); animation: diamondPulse 2.5s ease-in-out infinite; }
@keyframes diamondPulse { 0%, 100% { filter: drop-shadow(0 0 6px rgba(245,158,11,0.4)); } 50% { filter: drop-shadow(0 0 16px rgba(245,158,11,0.8)) drop-shadow(0 0 24px rgba(139,92,246,0.4)); } }
.logo span {
    background: linear-gradient(135deg, #fbbf24 0%, #c4b5fd 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* لینک‌های اصلی */
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 13px;
    white-space: nowrap; transition: color 0.2s, background 0.2s; padding: 8px 12px; border-radius: 10px; position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(245,158,11,0.06); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--primary)); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover::after { width: 70%; }

/* کاربر دسکتاپ */
.desktop-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-name {
    color: #c4b5fd; font-size: 12px; font-weight: 600; background: rgba(139,92,246,0.15);
    padding: 6px 14px; border-radius: 24px; border: 1px solid rgba(139,92,246,0.2); backdrop-filter: blur(10px); white-space: nowrap;
}
.btn-nav {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 8px 14px; border-radius: 24px; text-decoration: none;
    font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
    transition: all 0.25s; backdrop-filter: blur(12px); white-space: nowrap;
}
.btn-nav:hover { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.4); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(139,92,246,0.2); }
.btn-profile { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.06); }
.btn-upload  { border-color: rgba(45,212,191,0.3); background: rgba(45,212,191,0.06); }
.btn-dashboard { border-color: rgba(129,140,248,0.3); background: rgba(129,140,248,0.06); }
.btn-owner   { border-color: #8b5cf6; background: rgba(139,92,246,0.08); }
.btn-login { background: linear-gradient(135deg, #8b5cf6, #f59e0b); border: none; box-shadow: 0 4px 15px rgba(139,92,246,0.3); }
.btn-login:hover { background: linear-gradient(135deg, #a78bfa, #fbbf24); box-shadow: 0 8px 25px rgba(139,92,246,0.5); }
.btn-referral {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.4); color: #fbbf24; font-weight: 700; box-shadow: 0 0 10px rgba(245,158,11,0.15);
}
.btn-referral:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(245,158,11,0.1));
    border-color: #f59e0b; box-shadow: 0 0 20px rgba(245,158,11,0.4); transform: translateY(-2px);
}

/* موبایل */
.mobile-right { display: none; align-items: center; gap: 6px; }
.hamburger { display: flex; flex-direction: column; cursor: pointer; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-light, #e2e8f0); border-radius: 2px; transition: 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* منوی کناری */
.side-menu {
    position: fixed; top: 0; left: 0; width: 78%; max-width: 320px; height: 100%;
    background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(35px);
    border-right: 1px solid rgba(245,158,11,0.1); z-index: 1100;
    transform: translateX(-100%); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px 5%; display: flex; flex-direction: column; box-shadow: 10px 0 40px rgba(0,0,0,0.6);
}
.side-menu.active { transform: translateX(0); }
.side-menu .close-btn { align-self: flex-end; background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; padding: 8px; }
.side-menu .close-btn:hover { color: #fff; }
.side-menu a {
    display: flex; align-items: center; gap: 12px; padding: 14px 12px; color: #cbd5e1; text-decoration: none;
    font-size: 14px; font-weight: 500; border-radius: 12px; margin-bottom: 2px; transition: all 0.2s;
}
.side-menu a:hover { background: rgba(245,158,11,0.1); color: #fff; }
.side-menu .menu-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 0; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.overlay.active { opacity: 1; pointer-events: auto; }

/* FAB */
.fab-upload {
    position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px;
    background: linear-gradient(135deg, #2dd4bf, #8b5cf6); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 8px 28px rgba(139,92,246,0.4), 0 0 0 4px rgba(139,92,246,0.1);
    z-index: 998; transition: transform 0.3s, box-shadow 0.3s; animation: fabFloat 3s ease-in-out infinite;
}
.fab-upload .fab-icon { font-size: 26px; transition: transform 0.3s; }
.fab-upload:hover { transform: scale(1.08) translateY(-4px); box-shadow: 0 12px 35px rgba(139,92,246,0.6); }
.fab-upload:hover .fab-icon { transform: rotate(10deg); }
@keyframes fabFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Footer ---------- */
footer.site-footer {
    text-align: center;
    padding: 35px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid rgba(245,158,11,0.1);
    position: relative;
    z-index: 1;
    background: rgba(2,6,23,0.5);
    backdrop-filter: blur(10px);
    margin-top: 40px;
}
footer.site-footer .footer-text { font-size: 11px; margin-top: 8px; color: var(--text-muted); }

/* ---------- دکمه بازگشت به بالا ---------- */
#scrollTop {
    position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(139,92,246,0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(245,158,11,0.3); color: #fff; font-size: 22px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease;
    z-index: 997; box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
#scrollTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTop:hover { background: var(--primary-hover); }

/* ---------- انیمیشن‌های عمومی ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes floatUpDown { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- ریسپانسیو عمومی ---------- */
@media (max-width: 768px) {
    nav#mainNav { height: 60px; padding: 0 4%; }
    .nav-links, .desktop-user { display: none; }
    .mobile-right { display: flex; }
    .logo { font-size: 18px; }
    .logo-icon { width: 36px; height: 36px; }
    .logo span { font-size: 18px; }
    .user-name { font-size: 11px; padding: 4px 10px; }
    .fab-upload { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .fab-upload .fab-icon { font-size: 24px; }
}