﻿@font-face {
    font-family: 'SHABNAM';
    src: url('../fonts/SHABNAM.TTF') format('truetype');
}
@font-face {
    font-family: 'freescpt';
    src: url('../fonts/freescpt.ttf') format('truetype');
}
@font-face {
    font-family: 'segoepr';
    src: url('../fonts/segoepr.ttf') format('truetype');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'SHABNAM', sans-serif !important;
    padding: 16px;
    margin: 0;
}

.app-container {
    width: 100%;
    max-width: 450px;
    height: 90vh;
    max-height: 850px;
    background-color: #ffffff;
    border-radius: 36px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

/* اسکرول داخلی محتوا */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 8px 4px;
    scrollbar-width: none;
    user-select: none;
}

    .main-content::-webkit-scrollbar {
        width: 4px;
    }

    .main-content::-webkit-scrollbar-track {
        background: #ffffff;
    }

    .main-content::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 8px;
    }

/* هدر */
.app-header {
    background: white;
    padding: 16px 16px 8px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .header-title i {
        font-size: 2.2rem;
        color: #1d9bf0;
        background: #e8f5fe;
        padding: 6px;
        border-radius: 14px;
        box-shadow: 0 6px 12px rgba(29, 155, 240, 0.15);
    }

    .header-title span {
        font-size: 1.8rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: #0f1419;
        text-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }

.header-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1419;
    font-size: 1.5rem;
}

/* استوری ها */
.stories-section {
    padding: 14px 0px 8px 0px;
    background: white;
    margin-top: 2px;
}


.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    cursor: pointer;
    transition: transform 0.2s;
}

    .story-item:hover {
        transform: translateY(-2px);
    }

.story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.story-item:hover .story-ring {
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
}

.story-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2f3336;
    max-width: 70px;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
    line-height: 1.3;
}

/* کارت پست */
.post-card {
    background: white;
    border-radius: 20px;
    padding: 14px 12px;
    margin: 6px 12px 14px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.02);
}


.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.post-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.post-username {
    font-weight: 700;
    font-size: 1rem;
    color: #0f1419;
}

.post-handle {
    font-size: 0.8rem;
    color: #536471;
    font-weight: 500;
}

.post-text {
    font-size: 0.95rem;
    color: #0f1419;
    line-height: 1.7;
    margin-bottom: 14px;
    font-weight: 500;
    padding-right: 2px;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 6px;
    border-top: 1px solid #eff3f4;
    padding-top: 12px;
    color: #536471;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #536471;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
}

    .action-btn i {
        font-size: 1.25rem;
    }

    .action-btn:hover {
        color: #1d9bf0;
    }

    .action-btn.like-btn:hover {
        color: #e0245e;
    }

    .action-btn span {
        font-size: 0.85rem;
    }

/* نوار پایین */
.bottom-nav {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 4px 12px 4px;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0 0 36px 36px;
}




/* فاصله های استاندارد */
.divider-light {
    height: 1px;
    background: #f0f3f5;
    margin: 2px 0;
}

/* تنظیمات پیش فرض متن */
p {
    margin-bottom: 0;
}
/*login css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Open Sans', sans-serif;
    padding: 16px;
    margin: 0;
    direction: rtl;
}

/* کانتینر اصلی - دقیقاً مشابه app-container */
.login-wrapper {
    width: 100%;
    max-width: 450px;
    height: 90vh;
    max-height: 850px;
    background-color: #ffffff;
    border-radius: 36px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

@media (min-width: 576px) {
    .login-wrapper {
        height: 90vh;
        max-height: 850px;
    }
}

@media (max-width: 575.98px) {
    .login-wrapper {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* هدر */
.login-header {
    padding: 60px 16px 20px;
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: none;
}

.login-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

    .login-logo-container i {
        font-size: 2.2rem;
        color: #1d9bf0;
        background: #e8f5fe;
        padding: 6px;
        border-radius: 14px;
        box-shadow: 0 6px 12px rgba(29, 155, 240, 0.15);
    }

.login-brand-text {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #0f1419;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* محتوای اسکرول‌شونده */
.login-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

    .login-content::-webkit-scrollbar {
        width: 4px;
    }

    .login-content::-webkit-scrollbar-track {
        background: #ffffff;
    }

    .login-content::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 8px;
    }

/* کارت فرم */
.login-card {
    display: flex;
    flex-direction: column;
    padding: 0 24px 20px;
    background: #fff;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* ورودی‌ها */
.login-input-group {
    position: relative;
    width: 100%;
}

.login-input {
    width: 100%;
    padding: 7px 67px 6px 12px;
    background-color: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'SHABNAM', sans-serif;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    color: #262626;
    font-weight: 400;
    line-height: 1.5;
    height: 40px;
}

    .login-input:focus {
        border-color: #a8a8a8;
        background-color: #fafafa;
        box-shadow: 0 0 0 1px rgba(168, 168, 168, 0.3);
    }

.login-input-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #8e8e8e;
    transition: all 0.15s ease;
    pointer-events: none;
    background-color: transparent;
    padding: 0 4px;
    font-weight: 400;
}

.login-input:focus + .login-input-label,
.login-input:not(:placeholder-shown) + .login-input-label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.7rem;
    color: #8e8e8e;
    background-color: #fafafa;
    border-radius: 4px;
}

.login-input::placeholder {
    color: transparent;
}

.login-input:placeholder-shown {
    color: #262626;
}

/* دکمه ورود */
.login-button {
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 16px;
    width: 100%;
    margin-top: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'SHABNAM', sans-serif;
    height: 44px;
}

    .login-button:hover {
        background-color: #1877f2;
    }

    .login-button:active {
        background-color: #0a6ec7;
        transform: scale(0.98);
    }

/* فراموشی رمز */
.login-forgot-link {
    text-align: center;
}

    .login-forgot-link a {
        color: #00376b;
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        font-family: 'SHABNAM', sans-serif;
    }

        .login-forgot-link a:hover {
            text-decoration: underline;
        }

/* جداکننده */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #8e8e8e;
    font-size: 0.85rem;
    font-weight: 500;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #dbdbdb;
    }

/* دکمه SMS */
.login-sms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: transparent;
    margin: 4px 0 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'SHABNAM', sans-serif;
        background-color: rgba(0, 149, 246, 0.05);
}

    .login-sms-button i {
        font-size: 1.3rem;
        color: #0095f6;
    }

/* بخش ثبت‌نام - دقیقاً مثل اینستاگرام */
.login-signup-container {
    padding: 20px 24px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #dbdbdb;
}

.login-signup-prompt {
    font-size: 0.9rem;
    color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'SHABNAM', sans-serif;
}

    .login-signup-prompt span {
        color: #262626;
    }

    .login-signup-prompt a {
        color: #0095f6;
        font-weight: 600;
        text-decoration: none;
    }

        .login-signup-prompt a:hover {
            text-decoration: underline;
        }
/* =============== استایل دراپ‌داون =============== */
.dropdown-menu {
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    z-index: 1050;
}

.dropdown-item {
    padding: 10px 16px;
    transition: all 0.15s;
    font-weight: 500;
    cursor: pointer;
}

    .dropdown-item:hover {
        background-color: #f7f9f9;
    }

/* =============== انیمیشن مودال‌ها از پایین =============== */
#shareModal .modal-dialog,
#commentModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

#shareModal.show .modal-dialog,
#commentModal.show .modal-dialog {
    transform: translateY(0) !important;
}

/* کانتنت مودال */
#shareModal .modal-content,
#commentModal .modal-content {
    border-radius: 24px 24px 0 0 !important;
    border: none !important;
    max-height: 90vh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    background: white !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1060;
}

/* مودال ریپورت (وسط صفحه) */
#reportModal .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease-out !important;
}

#reportModal.show .modal-dialog {
    transform: scale(1) !important;
}

#reportModal .modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: white !important;
    opacity: 1 !important;
}

/* رفع مشکل تیرگی مودال */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040;
}

.modal {
    z-index: 1055;
}

.modal-content {
    background-color: #ffffff !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/*sign up*/


/* ============================
           ریست و تنظیمات پایه
        ============================ */


/* ============================
           ساختار اصلی موبایل-فرست
        ============================ */
.signup-wrapper {
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    max-width: 100%;
}

/* استایل دسکتاپ: تبدیل به طرح موبایل با حداکثر عرض */
@media screen and (min-width: 768px) {
    body {
        padding: 20px;
    }

    .signup-wrapper {
        max-width: 450px;
        height: 90vh;
        max-height: 850px;
        border-radius: 36px;
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    }
}

/* ============================
           هدر (لوگو و توضیح)
        ============================ */
.signup-header {
    padding: 32px 24px 12px 24px;
    margin-top: 5px;
    text-align: center;
    flex-shrink: 0;
}

.signup-logo-container {
    margin-bottom: 12px;
}

.signup-brand-text {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 800;
    font-size: 2.3rem;
    letter-spacing: -0.5px;
    color: #262626;
    line-height: 1.2;
    display: inline-block;
}

.signup-subtitle {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #737373;
    line-height: 1.8;
    margin-top: 8px;
    padding: 0 10px;
    text-align: center;
}

/* ============================
           محتوای اسکرول‌شونده
        ============================ */
.signup-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 #f0f0f0;
}

    .signup-content::-webkit-scrollbar {
        width: 4px;
    }

    .signup-content::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 8px;
    }

    .signup-content::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 8px;
    }

.signup-card {
    width: 100%;
    background: transparent;
}

/* ============================
           فرم و فیلدهای ورودی (استایل شناور)
        ============================ */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.signup-input-group {
    position: relative;
    width: 100%;
}

.signup-input {
    width: 100%;
    height: 35px;
    padding: 8px 80px 5px 12px;
    background-color: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #262626;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    direction: rtl;
    text-align: right;
}

    .signup-input:focus {
        border-color: #a8a8a8;
        background-color: #fafafa;
    }

.signup-input-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #8e8e8e;
    pointer-events: none;
    transition: all 0.15s ease;
    background-color: transparent;
    padding: 0 2px;
    line-height: 1.2;
}

/* حرکت لیبل به بالا در حالت فوکوس یا پر بودن */
.signup-input:focus + .signup-input-label,
.signup-input:not(:placeholder-shown) + .signup-input-label {
    top: 12px;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 500;
    color: #8e8e8e;
}

/* مخفی کردن پلیس‌هولدر پیش‌فرض برای نشان دادن فقط لیبل */
.signup-input::placeholder {
    color: transparent;
    opacity: 0;
}

/* ============================
           دکمه ثبت‌نام
        ============================ */
.signup-button {
    width: 100%;
    height: 44px;
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    font-family: 'SHABNAM', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

    .signup-button:hover {
        background-color: #1877c2;
    }

/* متن زیر دکمه */
.signup-terms-text {
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: #737373;
    text-align: center;
    margin-top: 16px;
    line-height: 1.7;
    padding: 0 6px;
}

    .signup-terms-text a {
        color: #00376b;
        text-decoration: none;
        font-weight: 500;
    }

        .signup-terms-text a:hover {
            text-decoration: underline;
        }

/* ============================
           جداکننده "یا"
        ============================ */
.signup-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 16px 0;
    color: #737373;
    font-size: 0.8rem;
    font-weight: 500;
}

    .signup-divider::before,
    .signup-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #dbdbdb;
    }

/* ============================
           دکمه ورود با SMS
        ============================ */
.signup-sms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: none;
    border: none;
    font-family: 'SHABNAM', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #0095f6;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 8px;
    transition: opacity 0.2s;
    width: 100%;
}

    .signup-sms-button i {
        font-size: 1.2rem;
        color: #0095f6;
    }

    .signup-sms-button:hover {
        opacity: 0.8;
    }

/* ============================
           بخش پایین (لینک ورود)
        ============================ */
.signup-login-container {
    flex-shrink: 0;
    border-top: 1px solid #dbdbdb;
    padding: 20px 24px;
    text-align: center;
    background-color: #ffffff;
    margin-top: auto;
}

.signup-login-prompt {
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .signup-login-prompt span {
        color: #262626;
    }

    .signup-login-prompt a {
        color: #0095f6;
        font-weight: 700;
        text-decoration: none;
    }

        .signup-login-prompt a:hover {
            text-decoration: underline;
        }

/* تنظیم فاصله داخلی برای کارت فرم */
.signup-card {
    padding-bottom: 8px;
}


/* استایل برای مودال پایین صفحه */
.modal-dialog-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-out !important;
}

.modal.show .modal-dialog-bottom {
    transform: translateY(0) !important;
}

.modal-dialog-bottom .modal-content {
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none !important;
}

/* انیمیشن نرم برای باز و بسته شدن */
.modal.fade .modal-dialog-bottom {
    transition: transform 0.3s ease-out;
    transform: translateY(100%);
}

.modal.show .modal-dialog-bottom {
    transform: translateY(0);
}

/*confirm phone*/

/* کانتینر اصلی موبایل-فرست */
.signup-wrapper {
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    max-width: 100%;
}

@media screen and (min-width: 768px) {
    body {
        padding: 20px;
    }

    .signup-wrapper {
        max-width: 450px;
        height: 90vh;
        max-height: 850px;
        border-radius: 36px;
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    }
}

/* هدر */
.signup-header {
    padding: 32px 24px 16px 24px;
    text-align: center;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f0f0;
}

.signup-logo-container {
    margin-bottom: 20px;
}

.signup-brand-text {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    color: #262626;
    line-height: 1.2;
    margin-top: -10px;
}

/* آیکون قفل یا موبایل (اختیاری) */
.verification-icon {
    font-size: 2.8rem;
    color: #262626;
    margin-bottom: 10px;
    display: inline-block;
}

.signup-subtitle {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #737373;
    line-height: 1.8;
    margin-top: 16px;
    padding: 0 10px;
}

.phone-number-highlight {
    font-weight: 700;
    color: #262626;
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

/* محتوای اسکرول‌شونده */
.signup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 #f0f0f0;
}

    .signup-content::-webkit-scrollbar {
        width: 4px;
    }

    .signup-content::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 8px;
    }

    .signup-content::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 8px;
    }

.signup-card {
    width: 100%;
    background: transparent;
}

/* فرم */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

/* کد تأیید - ۶ فیلد جداگانه */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 4px;
    direction: ltr;
}

.otp-input {
    width: 44px;
    height: 52px;
    background-color: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-family: 'SHABNAM', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #262626;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: #0095f6;
}

    .otp-input:focus {
        border-color: #a8a8a8;
        box-shadow: 0 0 0 1px rgba(0,149,246,0.2);
        background-color: #ffffff;
    }

    /* حذف فلش‌های number */
    .otp-input[type=number]::-webkit-inner-spin-button,
    .otp-input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otp-input[type=number] {
        -moz-appearance: textfield;
    }

.resend-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #737373;
}

.resend-timer {
    font-weight: 500;
    color: #262626;
}

.resend-button {
    background: none;
    border: none;
    font-family: 'SHABNAM', sans-serif;
    font-weight: 600;
    color: #0095f6;
    cursor: pointer;
    font-size: 0.85rem;
    display: none;
}

    .resend-button.visible {
        display: inline-block;
    }

    .resend-button:hover {
        color: #1877c2;
    }

/* دکمه تأیید */
.signup-button {
    width: 100%;
    height: 44px;
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    font-family: 'SHABNAM', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .signup-button:hover {
        background-color: #1877c2;
    }

/* لینک بازگشت */
.back-link {
    text-align: center;
    margin-top: 20px;
}

    .back-link a {
        color: #0095f6;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

        .back-link a:hover {
            text-decoration: underline;
        }

/* باکس پایین */
.signup-login-container {
    flex-shrink: 0;
    border-top: 1px solid #dbdbdb;
    padding: 20px 24px;
    text-align: center;
    background-color: #ffffff;
    margin-top: auto;
}

.signup-login-prompt {
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.85rem;
    color: #737373;
}

    .signup-login-prompt a {
        color: #0095f6;
        font-weight: 700;
        text-decoration: none;
    }

/* کلاس کمکی */
.hidden {
    display: none;
}

/*forget Password*/
body {
    font-family: 'SHABNAM', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    direction: rtl;
    overflow-x: hidden;
}

/* کانتینر اصلی */
.forget-wrapper {
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    max-width: 100%;
}

@media screen and (min-width: 768px) {
    body {
        padding: 20px;
    }

    .forget-wrapper {
        max-width: 450px;
        height: 90vh;
        max-height: 850px;
        border-radius: 36px;
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    }
}

/* هدر */
.forget-header {
    padding: 40px 24px 20px 24px;
    text-align: center;
    flex-shrink: 0;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.forget-logo-container {
    margin-bottom: 24px;
}

.forget-brand-text {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -0.5px;
    color: #262626;
    line-height: 1.2;
}

.forget-lock-icon {
    font-size: 3.2rem;
    color: #262626;
    margin-bottom: 16px;
    display: inline-block;
}

.forget-subtitle {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #737373;
    line-height: 1.8;
    margin-top: 8px;
    padding: 0 4px;
    text-align: center;
}

/* محتوای اسکرول‌شونده */
.forget-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

    .forget-content::-webkit-scrollbar {
        width: 4px;
    }

    .forget-content::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 8px;
    }

    .forget-content::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 8px;
    }

.forget-card {
    width: 100%;
    background: transparent;
    /* حاشیه امن برای جلوگیری از بیرون‌زدگی */
    padding: 0;
}

/* فرم */
.forget-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
    width: 100%;
}

/* گروه ورودی - تنظیم دقیق عرض */
.forget-input-group {
    position: relative;
    width: 100%;
}

.forget-input {
    width: 100%;
    height: 50px;
    padding: 18px 12px 6px 12px;
    background-color: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #262626;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    /* اطمینان از عدم بزرگ‌تر شدن */
    max-width: 100%;
}

    .forget-input:focus {
        border-color: #a8a8a8;
        background-color: #fafafa;
    }

.forget-input-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #8e8e8e;
    pointer-events: none;
    transition: all 0.15s ease;
    background-color: transparent;
    padding: 0 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.forget-input:focus + .forget-input-label,
.forget-input:not(:placeholder-shown) + .forget-input-label {
    top: 12px;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 500;
    color: #8e8e8e;
}

.forget-input::placeholder {
    color: transparent;
    opacity: 0;
}

/* دکمه ارسال لینک */
.forget-button {
    width: 100%;
    height: 44px;
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    font-family: 'SHABNAM', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

    .forget-button:hover {
        background-color: #1877c2;
    }

/* جداکننده */
.forget-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 16px 0;
    color: #737373;
    font-size: 0.8rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

    .forget-divider::before,
    .forget-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #dbdbdb;
        min-width: 0; /* مهم برای جلوگیری از بیرون‌زدگی flex */
    }

/* دکمه SMS */
.forget-sms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: none;
    border: none;
    font-family: 'SHABNAM', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #0095f6;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 8px;
    transition: opacity 0.2s;
    width: 100%;
    box-sizing: border-box;
}

    .forget-sms-button i {
        font-size: 1.2rem;
        color: #0095f6;
    }

    .forget-sms-button:hover {
        opacity: 0.8;
    }

/* لینک بازگشت */
.forget-back-link {
    text-align: center;
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

    .forget-back-link a {
        color: #262626;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .forget-back-link a:hover {
            color: #0095f6;
        }

/* باکس پایین */
.forget-login-container {
    flex-shrink: 0;
    border-top: 1px solid #dbdbdb;
    padding: 20px 24px;
    text-align: center;
    background-color: #ffffff;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.forget-login-prompt {
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .forget-login-prompt span {
        color: #262626;
    }

    .forget-login-prompt a {
        color: #0095f6;
        font-weight: 700;
        text-decoration: none;
    }

        .forget-login-prompt a:hover {
            text-decoration: underline;
        }
/*change pass*/

.change-body {
    font-family: 'SHABNAM', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    direction: rtl;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* کانتینر اصلی با پیشوند changepass- */
.changepass-wrapper {
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    max-width: 100%;
}

@media screen and (min-width: 768px) {
    body {
        padding: 20px;
    }

    .changepass-wrapper {
        max-width: 450px;
        height: 90vh;
        max-height: 850px;
        border-radius: 36px;
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    }
}

/* هدر */
.changepass-header {
    padding: 40px 24px 20px 24px;
    margin-top: 110px;
    text-align: center;
    flex-shrink: 0;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.changepass-logo-container {
    margin-bottom: 24px;
}

.changepass-brand-text {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -0.5px;
    color: #262626;
    line-height: 1.2;
}

.changepass-lock-icon {
    font-size: 3.2rem;
    color: #262626;
    margin-bottom: 16px;
    display: inline-block;
}

.changepass-subtitle {
    font-family: 'SHABNAM', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #737373;
    line-height: 1.8;
    margin-top: 8px;
    padding: 0 4px;
    text-align: center;
}

/* محتوای اسکرول‌شونده */
.changepass-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

    .changepass-content::-webkit-scrollbar {
        width: 4px;
    }

    .changepass-content::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 8px;
    }

    .changepass-content::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 8px;
    }

.changepass-card {
    width: 100%;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

/* فرم */
.changepass-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
    width: 100%;
}

/* گروه ورودی با لیبل شناور */
.changepass-input-group {
    position: relative;
    width: 100%;
}

.changepass-input {
    width: 100%;
    height: 50px;
    padding: 18px 12px 6px 12px;
    background-color: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #262626;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    max-width: 100%;
}

    .changepass-input:focus {
        border-color: #a8a8a8;
        background-color: #fafafa;
    }

.changepass-input-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #8e8e8e;
    pointer-events: none;
    transition: all 0.15s ease;
    background-color: transparent;
    padding: 0 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.changepass-input:focus + .changepass-input-label,
.changepass-input:not(:placeholder-shown) + .changepass-input-label {
    top: 12px;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 500;
    color: #8e8e8e;
}

.changepass-input::placeholder {
    color: transparent;
    opacity: 0;
}

/* دکمه تغییر رمز عبور */
.changepass-button {
    width: 100%;
    height: 44px;
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    font-family: 'SHABNAM', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

    .changepass-button:hover {
        background-color: #1877c2;
    }

/* لینک بازگشت */
.changepass-back-link {
    text-align: center;
    margin-top: 24px;
    padding: 16px 0 8px 0;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

    .changepass-back-link a {
        color: #262626;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .changepass-back-link a:hover {
            color: #0095f6;
        }

/* باکس پایین */
.changepass-login-container {
    flex-shrink: 0;
    border-top: 1px solid #dbdbdb;
    padding: 20px 24px;
    text-align: center;
    background-color: #ffffff;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.changepass-login-prompt {
    font-family: 'SHABNAM', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .changepass-login-prompt span {
        color: #262626;
    }

    .changepass-login-prompt a {
        color: #0095f6;
        font-weight: 700;
        text-decoration: none;
    }

        .changepass-login-prompt a:hover {
            text-decoration: underline;
        }

/* استایل اضافی برای آیکون مشاهده رمز (در صورت نیاز در آینده) */
.changepass-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8e8e8e;
    cursor: pointer;
    font-size: 1.2rem;
    display: none; /* در این نسخه مخفی است */
}




.stories-scroll {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 6px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-bottom: 1px solid #00000024;
    /* مهم: عرض کامل والدش */
    width: 100%;
    /* اگر والد width نداشت، این خط رو اضافه کن */
    max-width: 100%;
    flex-wrap: nowrap; /* مهم */
}


    .stories-scroll::-webkit-scrollbar {
        display: none;
    }

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    user-select: none;
    width: 70px; /* یا هر عرض ثابت دیگه */
}

    .story-item:active {
        transform: scale(0.94);
    }

/* مودال استوری (پاپ‌آپ) - بدون ضربدر */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    touch-action: pan-y;
    padding: 0;
    margin: 0;
}

    .story-modal.active {
        visibility: visible;
        transition: all 0.3s ease-in-out;
        opacity: 1;
    }

.modal-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
}
/* background تصادفی استوری */
.story-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7) blur(2px);
    transform: scale(1.02);
    z-index: 0;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 70%);
    z-index: 1;
}

/* محتوای بالای استوری: هدر با پروفایل و آیدی */
.story-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 10px;
    color: white;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-user-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.story-username {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.story-actions {
    display: flex;
    gap: 14px;
    color: white;
    cursor: pointer;
    font-size: 22px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

    .story-actions span:hover {
        opacity: 0.7;
    }

.more-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* ناحیه متن کاربر (فقط متن) */
.story-text-area {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 10px;
    pointer-events: none; /* متن قابل انتخاب باشد ولی کلیک به اسلایدر برود */
}

.user-story-text {
    font-size: 26px;
    font-weight: 600;
    color: white;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    padding: 18px 24px;
    border-radius: 28px;
    max-width: 90%;
    word-wrap: break-word;
    line-height: 1.5;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.25);
}

/* فوتر استوری: ریپلای و لایک */
.story-footer {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.reply-section {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 6px 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
}

.reply-input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'SHABNAM', sans-serif;
    font-size: 14px;
    width: 100%;
    padding: 10px 4px;
    outline: none;
}

    .reply-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
        font-weight: 300;
    }

.like-button {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    margin-right: 12px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .like-button:hover {
        transform: scale(1.15);
        color: #ff4d6d;
    }

.like-count {
    font-size: 15px;
    font-weight: 500;
}

/* مخفی کردن ضربدر */
.no-close-btn {
    display: none;
}

/* swipe handles (غیرقابل مشاهده) */
.swipe-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}
/* بخش اطلاعات لایک و تاریخ */
.post-likes-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #efefef;
    margin: 8px 0 4px 0;
}

/* بخش لایک (سمت چپ) */
.likes-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* آواتارهای لایک‌کنندگان */
.likes-avatars {
    display: flex;
    align-items: center;
    direction: ltr;
}

.like-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    margin-right: -8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* متن لایک */
.likes-text {
    font-size: 13px;
    color: #262626;
}

.liked-users {
    font-weight: 600;
    color: #262626;
}

.likes-count {
    font-weight: 600;
    color: #262626;
}

/* تاریخ انتشار (سمت راست) */
.post-date {
    font-size: 12px;
    color: #8e8e8e;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 576px) {
    .likes-text {
        font-size: 11px;
    }

    .post-date {
        font-size: 10px;
    }

    .like-avatar {
        width: 24px;
        height: 24px;
    }
}
/* کانتینر اصلی پیام‌ها */
.messages-container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    direction: rtl;
}

/* هدر پیام‌ها */
.messages-header {
    background: white;
    border-bottom: 1px solid #dbdbdb;
    padding: 16px;
}

.messages-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.messages-title {
    font-size: 20px;
    font-weight: 700;
    color: #262626;
    margin: 0;
}

.messages-new-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .messages-new-btn:hover {
        background: #f0f0f0;
    }

/* جعبه جستجو */
.messages-search-box {
    position: relative;
    background: #efefef;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.messages-search-icon {
    color: #8e8e8e;
    font-size: 16px;
}

.messages-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #262626;
}

    .messages-search-input::placeholder {
        color: #8e8e8e;
    }

/* لیست پیام‌ها */

    .messages-list::-webkit-scrollbar {
        width: 4px;
    }

    .messages-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .messages-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

/* آواتار پیام */
.messages-avatar {
    position: relative;
    flex-shrink: 0;
}

.messages-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

/* آواتار گروه */
.messages-avatar.group {
    position: relative;
    width: 56px;
    height: 56px;
}

    .messages-avatar.group .messages-avatar-img {
        position: absolute;
        width: 40px;
        height: 40px;
        border: 2px solid white;
    }

.messages-avatar-img.group-1 {
    top: 0;
    left: 0;
}

.messages-avatar-img.group-2 {
    bottom: 0;
    right: 0;
}

.messages-avatar-img.group-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
}

/* نشانگر آنلاین */
.messages-online-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #dbdbdb;
    border: 2px solid white;
    border-radius: 50%;
}

    .messages-online-badge.online {
        background: #4caf50;
    }

/* آیتم پیام */
.messages-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

    .messages-item:hover {
        background: #fafafa;
    }

    .messages-item.unread {
        background: #f8f9ff;
    }

        .messages-item.unread .messages-name {
            font-weight: 700;
        }

    .messages-item.request {
        background: #fff9f0;
    }

/* اطلاعات پیام */
.messages-info {
    flex: 1;
    min-width: 0;
}

.messages-info-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.messages-name {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.messages-time {
    font-size: 11px;
    color: #8e8e8e;
}

.messages-info-bottom {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
}

.messages-preview {
    font-size: 13px;
    color: #8e8e8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.messages-read-icon {
    font-size: 12px;
    color: #0095f6;
}

.messages-voice-icon {
    font-size: 14px;
    color: #8e8e8e;
}

.me-rep {
    direction: rtl;
    color: white;
    background-color: rgba(0, 0, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* نشانگر پیام نخوانده */
.messages-unread-badge {
    position: absolute;
    left: 15px;
    top: 20px;
    background: #0095f6;
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 12px;
    height: 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* پیام سنجاق شده */
.messages-pinned-icon {
    color: #8e8e8e;
    font-size: 16px;
}

/* دکمه‌های درخواست پیام */
.messages-request-actions {
    display: flex;
    gap: 8px;
}

.messages-accept-btn,
.messages-decline-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.messages-accept-btn {
    background: #0095f6;
    color: white;
}

    .messages-accept-btn:hover {
        background: #0081d6;
    }

.messages-decline-btn {
    background: #efefef;
    color: #262626;
}

    .messages-decline-btn:hover {
        background: #e0e0e0;
    }

/* عنوان بخش */
.messages-section-title {
    padding: 12px 16px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8e8e8e;
    border-bottom: 1px solid #f0f0f0;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 576px) {
    .messages-container {
        max-width: 100%;
        border-radius: 0;
    }

    .messages-avatar-img {
        width: 48px;
        height: 48px;
    }

    .messages-item {
        padding: 10px 12px;
    }
}
/* کانتینر اصلی چت */
.message-container {
    width: 100%;
    max-width: 450px;
    height: 90vh;
    max-height: 850px;
    background-color: #ffffff;
    border-radius: 36px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

/* هدر چت */
.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #dbdbdb;
    z-index: 10;
}

.message-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .message-back-btn:hover {
        background: #f0f0f0;
    }

.message-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.message-user-details {
    display: flex;
    flex-direction: column;
}

.message-username {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.message-status {
    font-size: 12px;
    color: #8e8e8e;
}

    .message-status.online {
        color: #4caf50;
    }

.message-actions {
    display: flex;
    gap: 8px;
}

.message-action-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .message-action-btn:hover {
        background: #f0f0f0;
    }

/* لیست پیام‌ها */
.message-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
    scrollbar-width: thin;
}

    .message-list::-webkit-scrollbar {
        width: 4px;
    }

    .message-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .message-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

/* تاریخ */
.message-date {
    text-align: center;
    margin: 16px 0;
}

    .message-date span {
        background: #efefef;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        color: #8e8e8e;
    }

/* آیتم پیام */
.message-item {
    display: flex;
    width: 100%;
}

    .message-item.received {
        justify-content: flex-start;
    }

    .message-item.sent {
        justify-content: flex-end;
    }

/* حباب پیام */
.message-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 20px;
    position: relative;
    word-wrap: break-word;
}

.message-item.received .message-bubble {
    background: white;
    border: 1px solid #efefef;
    border-bottom-left-radius: 4px;
}

.message-item.sent .message-bubble {
    background: #0095f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-text {
    font-size: 14px;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    direction: ltr;
    display: inline-block;
}

.message-item.sent .message-time {
    color: rgba(255,255,255,0.7);
}

.message-item.received .message-time {
    color: #8e8e8e;
}

/* وضعیت پیام */
.message-status-icon {
    display: inline-block;
    margin-right: 4px;
    font-size: 12px;
}

.message-item.sent .message-status-icon {
    color: rgba(255,255,255,0.7);
}

/* تصویر در پیام */
.message-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-top: 8px;
    cursor: pointer;
}

/* استیکر */
.message-sticker {
    font-size: 48px;
    text-align: center;
}

/* پیام صوتی */
.message-voice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.message-voice-play {
    font-size: 24px;
    cursor: pointer;
    color: #0095f6;
}

.message-voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
}

    .message-voice-wave span {
        width: 3px;
        height: 20px;
        background: #0095f6;
        border-radius: 2px;
        animation: voiceWave 1s ease infinite;
    }

        .message-voice-wave span:nth-child(2) {
            animation-delay: 0.2s;
            height: 30px;
        }

        .message-voice-wave span:nth-child(3) {
            animation-delay: 0.4s;
            height: 15px;
        }

        .message-voice-wave span:nth-child(4) {
            animation-delay: 0.6s;
            height: 25px;
        }

@keyframes voiceWave {
    0%, 100% {
        height: 10px;
    }

    50% {
        height: 30px;
    }
}

.message-voice-duration {
    font-size: 12px;
    color: #8e8e8e;
}

/* ریپلای */
.message-reply {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 12px;
    position: relative;
}

.message-reply-line {
    width: 3px;
    background: #0095f6;
    border-radius: 2px;
}

.message-reply-line2 {
    background: skyblue;
}

.message-reply-content {
    flex: 1;
}

.message-reply-name {
    font-size: 11px;
    font-weight: 600;
    display: block;
}

.message-reply-text {
    font-size: 12px;
    opacity: 1;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* نشانگر تایپ کردن */
.message-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid #efefef;
}

.message-typing-dots {
    display: flex;
    gap: 4px;
}

    .message-typing-dots span {
        width: 8px;
        height: 8px;
        background: #8e8e8e;
        border-radius: 50%;
        animation: typingDot 1.4s ease infinite;
    }

        .message-typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .message-typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.message-typing-text {
    font-size: 12px;
    color: #8e8e8e;
}

/* بخش ارسال پیام */
.message-input-container {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #dbdbdb;
    position: relative;
}

.message-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #efefef;
    border-radius: 25px;
    padding: 6px 12px;
}

.message-attach-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #262626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

    .message-attach-btn.rotated {
        transform: rotate(45deg);
    }

.message-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
    color: #262626;
}

    .message-input::placeholder {
        color: #8e8e8e;
    }

.message-input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-emoji-btn,
.message-send-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #262626;
}

.message-send-btn {
    color: #0095f6;
}

/* منوی Attach */
.message-attach-menu {
    position: absolute;
    bottom: 70px;
    right: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px;
    display: none;
    z-index: 20;
}

    .message-attach-menu.show {
        display: block;
    }

.message-attach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 14px;
}

    .message-attach-item:hover {
        background: #f0f0f0;
    }

    .message-attach-item i {
        font-size: 20px;
        width: 24px;
    }

/* استایل‌های ریسپانسیو */
@media (max-width: 576px) {
    .message-container {
        height: 100vh;
        max-height: 100vh;
    }

    .message-bubble {
        max-width: 85%;
    }

    .message-image {
        width: 150px;
        height: 150px;
    }
}
/* کانتینر اصلی تنظیمات */
.setting-container {
    max-width: 600px;
    width: 100%;
    background: white;
    min-height: 100vh;
    direction: rtl;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* هدر تنظیمات */
.setting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.setting-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .setting-back-btn:hover {
        background: #f0f0f0;
    }

.setting-title {
    font-size: 20px;
    font-weight: 700;
    color: #262626;
    margin: 0;
}

.setting-header-placeholder {
    width: 40px;
}

/* بخش‌ها */
.setting-section {
    margin-bottom: 5px;
    border-bottom: 8px solid #fafafa;
}

    .setting-section:last-child {
        border-bottom: none;
    }

.setting-section-title {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #8e8e8e;
    letter-spacing: 0.5px;
}

/* کارت پروفایل */
.setting-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

    .setting-profile-card:hover {
        background: #fafafa;
    }

.setting-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.setting-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-profile-name {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
}

.setting-profile-username {
    font-size: 13px;
    color: #8e8e8e;
}

.setting-profile-edit {
    background: none;
    border: none;
    font-size: 13px;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: right;
}

.setting-profile-arrow {
    color: #8e8e8e;
    font-size: 16px;
}

/* آیتم تنظیمات */
.setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

    .setting-item:hover {
        background: #fafafa;
    }

.setting-item-icon {
    width: 32px;
    color: #262626;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setting-item-label {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
}

.setting-item-sub {
    font-size: 12px;
    color: #8e8e8e;
}

.setting-item-arrow {
    color: #8e8e8e;
    font-size: 14px;
}

/* دکمه toggle (سوئیچ) */
.setting-toggle {
    position: relative;
}

.setting-toggle-input {
    display: none;
}

.setting-toggle-label {
    display: block;
    width: 44px;
    height: 24px;
    background: #dbdbdb;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

    .setting-toggle-label::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        top: 2px;
        right: 2px;
        transition: transform 0.2s;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

.setting-toggle-input:checked + .setting-toggle-label {
    background: #0095f6;
}

    .setting-toggle-input:checked + .setting-toggle-label::after {
        transform: translateX(-20px);
    }

/* آیتم خروج */
.setting-logout-item {
    border-top: 1px solid #dbdbdb;
}

.setting-logout-text {
    color: #ed4956;
    font-weight: 600;
}

.setting-delete-text {
    color: #ed4956;
}

/* نسخه اپلیکیشن */
.setting-version {
    padding: 24px 16px;
    text-align: center;
    font-size: 12px;
    color: #8e8e8e;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* انیمیشن‌ها */
@keyframes settingSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.setting-item {
    animation: settingSlideIn 0.3s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.03s);
    opacity: 0;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 576px) {
    .setting-container {
        max-width: 100%;
    }

    .setting-header {
        padding: 12px;
    }

    .setting-profile-avatar {
        width: 48px;
        height: 48px;
    }
}
/* profile */
:root {
    --primary: #0095f6;
    --primary-hover: #1877f2;
    --text: #0f1419;
    --secondary: #536471;
    --border: #eff3f4;
    --bg: #ffffff;
    --white: #ffffff;
    --danger: #e0245e;
    --gray-light: #f7f9f9;
}

.profile-body {
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 16px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    direction: rtl;
}

.app-container {
    width: 100%;
    max-width: 430px;
    height: 92vh;
    max-height: 880px;
    background-color: var(--bg);
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    background: var(--bg);
    padding: 0 4px 8px 4px;
}

    .main-content::-webkit-scrollbar {
        display: none;
    }

/* هدر مینیمال توییتری */
.profile-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    position: fixed;
    width:100%;
    top: 0;
    z-index: 30;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .back-btn:hover {
        background-color: none !important;
        color: #8e8e8e
    }

.profile-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-header-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.profile-header-posts-count {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.header-more-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .header-more-btn:hover {
        background: #f2f2f2;
    }

/* بخش پروفایل اینستاگرامی-توییتری */
.profile-info-section {
    background: var(--bg);
    padding: 18px 16px 0;
    margin-top:58px;
}

.profile-top-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.profile-avatar-lg {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    flex-shrink: 0;
    background-color: #e8ecf1;
    transition: transform 0.2s;
    cursor: pointer;
}

    .profile-avatar-lg:hover {
        transform: scale(1.03);
    }

.profile-stats-row {
    display: flex;
    flex: 1;
    justify-content: space-around;
    text-align: center;
}

.stat-block {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 4px 8px;
    border-radius: 12px;
}

    .stat-block:hover {
        background: var(--gray-light);
        transform: translateY(-1px);
    }

.stat-number {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--secondary);
    font-weight: 500;
}

/* نام و بایو */
.profile-name-section {
    margin-bottom: 4px;
}

.profile-display-name {
    font-weight: 750;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.2px;
}

.profile-username-inline {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 6px;
    font-weight: 450;
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--secondary);
    font-size: 0.82rem;
    margin-bottom: 8px;
    font-weight: 500;
}

    .profile-meta-row span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .profile-meta-row i {
        font-size: 0.95rem;
        color: #6b7a8a;
    }

/* دکمه‌های عملیات */
.profile-actions-row {
    display: flex;
    gap: 8px;
    margin: 10px 0 14px;
}

.btn-follow {
    width: 50%;
    background: #0f1419;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 14px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: -0.2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .btn-follow:hover {
        background: #272c30;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    }

    .btn-follow.following {
        background: white;
        color: #0f1419;
        border: 1.5px solid #cfd9de;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

        .btn-follow.following:hover {
            background: #fdf0f0;
            color: var(--danger);
            border-color: #f8b4b4;
        }

.btn-message {
    width: 50%;
    background: white;
    border: 1.5px solid #cfd9de;
    color: #0f1419;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: -0.2px;
}

    .btn-message:hover {
        background: #f7f9f9;
        border-color: #b0b8c1;
        color: black;
    }

.btn-more-circle {
    width: 38px;
    height: 38px;
    background: white;
    border: 1.5px solid #cfd9de;
    color: #0f1419;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .btn-more-circle:hover {
        background: #f7f9f9;
        border-color: #b0b8c1;
        transform: scale(1.04);
    }

/* تب‌های فارسی توییتری */
.profile-tabs {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 56px;
    z-index: 20;
    padding: 0 4px;
    margin: 0 12px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--secondary);
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: -0.2px;
}

    .tab-item.active {
        color: var(--text);
        font-weight: 700;
    }

        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 4px;
            background: #1d9bf0;
            border-radius: 4px 4px 0 0;
        }

    .tab-item:hover {
        background: var(--gray-light);
        color: var(--text);
    }

/* ========== استایل پست کارت دقیقاً مثل ایندکس ========== */
.post-card {
    background: white;
    border-radius: 20px;
    padding: 14px 12px;
    margin: 6px 12px 14px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

    .post-card:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
        transform: scale(1.01);
        border-color: rgba(0,0,0,0.04);
    }

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.post-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.post-username {
    font-weight: 700;
    font-size: 1rem;
    color: #0f1419;
}

.post-handle {
    font-size: 0.8rem;
    color: #536471;
    font-weight: 500;
}

.post-text {
    font-size: 0.95rem;
    color: #0f1419;
    line-height: 1.7;
    margin-bottom: 14px;
    font-weight: 500;
    padding-right: 2px;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 6px;
    border-top: 1px solid #eff3f4;
    padding-top: 12px;
    color: #536471;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #536471;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
}

    .action-btn i {
        font-size: 1.25rem;
    }

    .action-btn:hover {
        color: #1d9bf0;
        background: rgba(29, 155, 240, 0.08);
    }

    .action-btn.like-btn:hover {
        color: #e0245e;
        background: rgba(224, 36, 94, 0.08);
    }

    .action-btn span {
        font-size: 0.85rem;
    }

/* نوار پایین */
.bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 8px 16px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.02);
    border-radius: 0 0 40px 40px;
}


/* Dropdown */
.dropdown-menu {
    min-width: 200px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.dropdown-item {
    padding: 10px 18px;
    font-weight: 500;
    transition: background 0.15s;
}

    .dropdown-item:hover {
        background-color: #f2f4f7;
    }

/* مودال‌ها */
#shareModal .modal-dialog,
#commentModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

#shareModal.show .modal-dialog,
#commentModal.show .modal-dialog {
    transform: translateY(0) !important;
}

#shareModal .modal-content,
#commentModal .modal-content {
    border-radius: 28px 28px 0 0 !important;
    border: none !important;
    max-height: 85vh;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.2);
    background: white !important;
}

#reportModal .modal-content {
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

.modal-backdrop {
    background-color: rgba(0,0,0,0.55) !important;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .app-container {
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
        width: 100%;
        max-width: 100%;
    }

    .bottom-nav {
        border-radius: 0;
    }
}
/* کانتینر اصلی ادیت پروفایل */
.edite-container {
    max-width: 600px;
    width: 100%;
    background: white;
    min-height: 100vh; /* تغییر از height به min-height */
    height: auto; /* اضافه کنید */
    direction: rtl;
    margin: 0 auto;
    position: relative;
    animation: editeSlideIn 0.3s ease forwards;
    overflow-y: auto; /* اضافه کنید - مهم */
    overflow-x: hidden;
    scrollbar-width: none;
}

@keyframes editeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* هدر */
.edite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.edite-cancel-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    font-weight: 500;
}

    .edite-cancel-btn:hover {
        color: #8e8e8e;
    }

.edite-title {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
    margin: 0;
}

.edite-save-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
}

    .edite-save-btn:hover {
        color: #0077c2;
    }

/* بخش آواتار */
.edite-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-bottom: 1px solid #efefef;
}

.edite-avatar-container {
    position: relative;
    margin-bottom: 12px;
}

.edite-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.edite-avatar-change {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0095f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .edite-avatar-change:hover {
        transform: scale(1.05);
        background: #0081d6;
    }

.edite-avatar-hint {
    font-size: 12px;
    color: #8e8e8e;
}

/* فرم */
.edite-form {
    padding: 8px 0 32px;
}

/* فیلدها */
.edite-field {
    padding: 12px 16px;
}

.edite-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.edite-input-wrapper {
    position: relative;
}

.edite-input,
.edite-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    font-size: 14px;
    color: #262626;
    background: #fafafa;
    transition: all 0.2s;
    font-family: inherit;
    direction: rtl;
}

.edite-textarea {
    resize: vertical;
    min-height: 80px;
}

    .edite-input:focus,
    .edite-textarea:focus {
        outline: none;
        border-color: #0095f6;
        background: white;
    }

.edite-input-counter {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-size: 11px;
    color: #8e8e8e;
    pointer-events: none;
}

.edite-hint {
    display: block;
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 6px;
}

/* سلکت باکس */
.edite-select-wrapper {
    position: relative;
}

.edite-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    font-size: 14px;
    color: #262626;
    background: #fafafa;
    appearance: none;
    cursor: pointer;
    direction: rtl;
}

.edite-select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e8e;
    pointer-events: none;
}

/* دکمه سوئیچ */
.edite-switch-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edite-switch-info {
    flex: 1;
}

.edite-switch {
    position: relative;
}

.edite-switch-input {
    display: none;
}

.edite-switch-label {
    display: block;
    width: 44px;
    height: 24px;
    background: #dbdbdb;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

    .edite-switch-label::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        top: 2px;
        right: 2px;
        transition: transform 0.2s;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

.edite-switch-input:checked + .edite-switch-label {
    background: #0095f6;
}

    .edite-switch-input:checked + .edite-switch-label::after {
        transform: translateX(-20px);
    }

/* دکمه‌های رادیویی */
.edite-options {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.edite-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #262626;
}

    .edite-radio input {
        cursor: pointer;
        accent-color: #0095f6;
    }

/* جداکننده */
.edite-divider {
    height: 8px;
    background: #fafafa;
    margin: 8px 0;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 576px) {
    .edite-container {
        max-width: 100%;
    }

    .edite-header {
        padding: 10px 12px;
    }

    .edite-field {
        padding: 10px 12px;
    }

    .edite-avatar {
        width: 80px;
        height: 80px;
    }
}

/* انیمیشن خطا */
@keyframes editeShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.edite-input.error {
    border-color: #ed4956;
    animation: editeShake 0.3s ease;
}
/* کانتینر اصلی */
.addpost-container {
    max-width: 600px;
    width: 100%;
    background: white;
    height: auto;
    direction: rtl;
    margin: 0 auto;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    animation: addpostSlideIn 0.3s ease forwards;
    scrollbar-width: none;
}

@keyframes addpostSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* هدر */
.addpost-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.addpost-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .addpost-close-btn:hover {
        background: #f0f0f0;
    }

.addpost-title {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
    margin: 0;
}

.addpost-publish-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s;
}

    .addpost-publish-btn:hover {
        opacity: 0.7;
    }

    .addpost-publish-btn.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* بخش کاربر */
.addpost-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #efefef;
}

.addpost-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.addpost-user-info {
    flex: 1;
}

.addpost-username {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #262626;
}

.addpost-userhandle {
    display: block;
    font-size: 13px;
    color: #8e8e8e;
}

/* بخش متن */
.addpost-text-section {
    padding: 16px;
    border-bottom: 1px solid #efefef;
    position: relative;
}

.addpost-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.5;
    color: #262626;
    resize: none;
    font-family: inherit;
    direction: rtl;
    background: white;
}

    .addpost-textarea::placeholder {
        color: #8e8e8e;
    }

.addpost-counter {
    text-align: left;
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #efefef;
}

/* بخش نظرسنجی */
.addpost-poll-section {
    margin: 12px 16px;
    background: #fafafa;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #efefef;
}

.addpost-poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.addpost-poll-title {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.addpost-poll-remove {
    background: none;
    border: none;
    color: #8e8e8e;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.addpost-poll-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    background: white;
}

.addpost-poll-options {
    margin-bottom: 12px;
}

.addpost-poll-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.addpost-poll-option-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    font-size: 14px;
    background: white;
}

.addpost-poll-option-remove {
    background: none;
    border: none;
    color: #ed4956;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.addpost-poll-add-option {
    background: none;
    border: none;
    color: #0095f6;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.addpost-poll-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    background: white;
    direction: rtl;
}

/* بخش استوری */
.addpost-story-section {
    padding: 16px;
    border-bottom: 1px solid #efefef;
}

.addpost-story-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.addpost-story-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #dbdbdb;
    border-radius: 4px;
    transition: all 0.2s;
}

.addpost-story-label input:checked + .addpost-story-checkbox {
    background: #0095f6;
    border-color: #0095f6;
    position: relative;
}

    .addpost-story-label input:checked + .addpost-story-checkbox::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
    }

.addpost-story-text {
    font-size: 14px;
    color: #262626;
}

/* بخش تنظیمات پیشرفته */
.addpost-settings-section {
    border-bottom: 1px solid #efefef;
}

.addpost-setting-btn {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #262626;
}

    .addpost-setting-btn i:first-child {
        font-size: 20px;
    }

    .addpost-setting-btn span {
        flex: 1;
        text-align: right;
    }

.addpost-advanced-settings {
    padding: 0 16px 16px;
}

.addpost-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #efefef;
}

.addpost-setting-info {
    flex: 1;
}

.addpost-setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    margin-bottom: 4px;
}

.addpost-setting-hint {
    display: block;
    font-size: 12px;
    color: #8e8e8e;
}

/* سوئیچ */
.addpost-switch {
    position: relative;
}

.addpost-switch-input {
    display: none;
}

.addpost-switch-label {
    display: block;
    width: 44px;
    height: 24px;
    background: #dbdbdb;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

    .addpost-switch-label::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        top: 2px;
        right: 2px;
        transition: transform 0.2s;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

.addpost-switch-input:checked + .addpost-switch-label {
    background: #0095f6;
}

    .addpost-switch-input:checked + .addpost-switch-label::after {
        transform: translateX(-20px);
    }

/* بخش تگ */
.addpost-tag-section {
    border-bottom: 1px solid #efefef;
}

.addpost-tag-btn {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #262626;
}

    .addpost-tag-btn i {
        font-size: 20px;
    }

    .addpost-tag-btn span {
        flex: 1;
        text-align: right;
    }

.addpost-tag-count {
    background: #efefef;
    color: #262626;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.addpost-tag-list {
    padding: 0 16px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.addpost-tag-item {
    background: #efefef;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addpost-tag-item-remove {
    background: none;
    border: none;
    color: #8e8e8e;
    cursor: pointer;
    font-size: 14px;
}

/* بخش موقعیت مکانی */
.addpost-location-section {
    border-bottom: 1px solid #efefef;
}

.addpost-location-btn {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #262626;
}

    .addpost-location-btn i {
        font-size: 20px;
    }

.addpost-location-info {
    padding: 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    margin: 8px 16px;
    padding: 12px;
    border-radius: 12px;
}

.addpost-location-remove {
    background: none;
    border: none;
    color: #8e8e8e;
    cursor: pointer;
}

/* بخش پیش‌نمایش */
.addpost-preview-section {
    padding: 16px;
    background: #fafafa;
}

.addpost-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #8e8e8e;
    margin-bottom: 12px;
}

.addpost-preview-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #efefef;
}

.addpost-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.addpost-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.addpost-preview-user {
    flex: 1;
}

.addpost-preview-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.addpost-preview-handle {
    display: block;
    font-size: 11px;
    color: #8e8e8e;
}

.addpost-preview-text {
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
    margin: 12px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 60px;
}

.addpost-preview-actions {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #efefef;
    color: #8e8e8e;
    font-size: 20px;
}

/* اسکرول بار */
.addpost-container::-webkit-scrollbar {
    width: 4px;
}

.addpost-container::-webkit-scrollbar-track {
    background: #efefef;
}

.addpost-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

/* ریسپانسیو */
@media (max-width: 576px) {
    .addpost-container {
        max-width: 100%;
        height: 100vh;
    }
}

/* حالت شب */
body.dark-mode .addpost-container {
    background: #121212;
}

body.dark-mode .addpost-header {
    background: #121212;
    border-bottom-color: #2c2c2c;
}

body.dark-mode .addpost-title,
body.dark-mode .addpost-username,
body.dark-mode .addpost-textarea,
body.dark-mode .addpost-setting-label {
    color: #f0f0f0;
}

body.dark-mode .addpost-textarea {
    background: #121212;
}

body.dark-mode .addpost-preview-card {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

<style >
:root {
    --primary: #0095f6;
    --primary-hover: #1877f2;
    --text: #0f1419;
    --secondary: #536471;
    --border: #eff3f4;
    --bg: #ffffff;
    --white: #ffffff;
    --danger: #e0245e;
    --gray-light: #f7f9f9;
}



.explor-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 16px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    direction: rtl;
}

.app-container {
    width: 100%;
    max-width: 430px;
    height: 92vh;
    max-height: 880px;
    background-color: var(--bg);
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
    scrollbar-width:none;
    display: flex;
    flex-direction: column;
    position: relative;
   
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    background: var(--bg);
    padding: 0 4px 8px 4px;
}

    .main-content::-webkit-scrollbar {
        display: none;
    }

/* هدر اکسپلور */
.explore-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 10px 14px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.header-icon {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

    .header-icon:hover {
        background: #f2f2f2;
    }

/* باکس سرچ */
.search-section {
    padding: 8px 12px;
    position: sticky;
    top: 57px;
    z-index: 25;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f2f5;
    border-radius: 24px;
    padding: 12px 16px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

    .search-box:focus-within {
        background: white;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.15);
    }

    .search-box i {
        color: var(--secondary);
        font-size: 1.1rem;
    }

    .search-box input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 0.9rem;
        outline: none;
        color: var(--text);
        font-family: inherit;
    }

        .search-box input::placeholder {
            color: #8e9ba8;
        }

/* عنوان بخش */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 6px;
    font-weight: 750;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.2px;
}

    .section-title span {
        font-size: 0.8rem;
        color: var(--primary);
        font-weight: 600;
        cursor: pointer;
    }

        .section-title span:hover {
            text-decoration: underline;
        }

/* کارت کاربر پیشنهادی */
.suggested-users {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 16px 14px;
    scrollbar-width: none;
}

    .suggested-users::-webkit-scrollbar {
        display: none;
    }

.user-suggestion-card {
    min-width: 140px;
    background: white;
    border-radius: 18px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.25s;
    cursor: pointer;
    flex-shrink: 0;
}

    .user-suggestion-card:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        transform: translateY(-2px);
        border-color: #d0d5dd;
    }

.suggested-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    background-color: #e8ecf1;
}

.suggested-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
}

.suggested-handle {
    font-size: 0.78rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.btn-follow-sm {
    background: #0f1419;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 7px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

    .btn-follow-sm:hover {
        background: #272c30;
    }

    .btn-follow-sm.following {
        background: white;
        color: #0f1419;
        border: 1.5px solid #cfd9de;
    }

        .btn-follow-sm.following:hover {
            background: #fdf0f0;
            color: var(--danger);
            border-color: #f8b4b4;
        }

/* ترندها / موضوعات داغ */
.trends-section {
    padding: 0 16px 8px;
}

.trend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f6f7;
    cursor: pointer;
    transition: background 0.15s;
    margin: 0 -8px;
    padding: 12px 8px;
    border-radius: 12px;
}

    .trend-item:hover {
        background: #fafafa;
    }

.trend-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trend-category {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.trend-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.trend-posts-count {
    font-size: 0.75rem;
    color: var(--secondary);
}

.trend-more {
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

    .trend-more:hover {
        background: #e8ecf1;
        color: var(--text);
    }

/* ========== استایل پست کارت دقیقاً مثل ایندکس ========== */
.post-card {
    background: white;
    border-radius: 20px;
    padding: 14px 12px;
    margin: 6px 12px 14px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

    .post-card:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
        transform: scale(1.01);
        border-color: rgba(0,0,0,0.04);
    }

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.post-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.post-username {
    font-weight: 700;
    font-size: 1rem;
    color: #0f1419;
}

.post-handle {
    font-size: 0.8rem;
    color: #536471;
    font-weight: 500;
}

.post-text {
    font-size: 0.95rem;
    color: #0f1419;
    line-height: 1.7;
    margin-bottom: 14px;
    font-weight: 500;
    padding-right: 2px;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 6px;
    border-top: 1px solid #eff3f4;
    padding-top: 12px;
    color: #536471;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #536471;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
}

    .action-btn i {
        font-size: 1.25rem;
    }

    .action-btn:hover {
        color: #1d9bf0;
        background: rgba(29, 155, 240, 0.08);
    }

    .action-btn.like-btn:hover {
        color: #e0245e;
        background: rgba(224, 36, 94, 0.08);
    }

    .action-btn span {
        font-size: 0.85rem;
    }

/* نوار پایین */
.bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0px 8px 5px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.02);
    border-radius: 0 0 40px 40px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 24px;
    min-width: 56px;
    cursor: pointer;
    transition: all 0.2s;
}

    .nav-item i {
        font-size: 1.5rem;
        transition: transform 0.2s;
        transform: translateY(-1px) !important;
    }

    .nav-item.active {
        color: var(--text);
    }

        .nav-item.active i {
            color: var(--text);
        }

    .nav-item:hover {
        color: var(--text);
    }

        .nav-item:hover i {
            transform: translateY(-1px);
        }


/* Dropdown */
.dropdown-menu {
    min-width: 200px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.dropdown-item {
    padding: 10px 18px;
    font-weight: 500;
    transition: background 0.15s;
}

    .dropdown-item:hover {
        background-color: #f2f4f7;
    }

/* مودال‌ها */
#shareModal .modal-dialog,
#commentModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

#shareModal.show .modal-dialog,
#commentModal.show .modal-dialog {
    transform: translateY(0) !important;
}

#shareModal .modal-content,
#commentModal .modal-content {
    border-radius: 28px 28px 0 0 !important;
    border: none !important;
    max-height: 85vh;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.2);
    background: white !important;
}

#reportModal .modal-content {
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

.modal-backdrop {
    background-color: rgba(0,0,0,0.55) !important;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .app-container {
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
        width: 100%;
        max-width: 100%;
    }

    .bottom-nav {
        border-radius: 0;
    }
}

/* انیمیشن پالس برای آواتارهای پیشنهادی */
@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.suggested-avatar {
    animation: subtle-pulse 3s infinite ease-in-out;
}

.nav-profile-image {
    max-width: 33px;
    border-radius: 50%;
}

.upload-profile-image {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    object-fit: cover; /* عکس رو برش می‌زنه تا بدون تغییر نسبت، دایره کاملی بسازه */
    display: block;
    margin: 0 auto; /* وسط‌چین افقی */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /
}

.edite-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white; /* یا هر رنگی که بکگراند داری */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* سایه اختیاری برای جدایی از محتوا */
    z-index: 1000; /* بالاتر از همه المان‌ها */
    box-sizing: border-box;
}

.share-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 360px;
    z-index: 1000;
    animation: fadeInUp 0.3s ease;
    direction: rtl;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
    color: #1a1a1a;
}

.share-popup-body {
    padding: 20px;
}

/* باکس لینک */
.share-link-box {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 12px;
}

    .share-link-box input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 8px 12px;
        font-size: 0.85rem;
        color: #666;
        direction: ltr;
        outline: none;
        min-width: 0;
    }

.copy-btn {
    background: #1d9bf0;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .copy-btn:hover {
        background: #1a8cd8;
        transform: translateY(-1px);
    }

    .copy-btn.copied {
        background: #28a745;
    }

/* بخش اشتراک اجتماعی */
.share-label {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 12px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

    .social-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .social-btn.telegram {
        background: #0088cc;
    }

    .social-btn.whatsapp {
        background: #25D366;
    }

    .social-btn.twitter {
        background: #1DA1F2;
    }

/* مثلث بالای پاپ‌آپ */
.share-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 3px 0 0 0;
}

.like-btn.liked i {
    color: #e0245e !important;
    animation: heartBeat 0.3s ease;
}

.like-btn.liked span {
    color: #e0245e !important;
}

.save-btn.saved i {
    color: #0d6efd !important;
    animation: savePop 0.3s ease;
}

/* انیمیشن‌ها */
@@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@@keyframes savePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Optimistic UI - حالت hover */
.action-btn {
    transition: all 0.2s ease;
}

    .action-btn:active {
        transform: scale(0.9);
    }

.like-btn:hover i {
    color: #e0245e;
}

.save-btn:hover i {
    color: #1d9bf0;
}

.shadow-modal {
    box-shadow: 0 -8px 20px rgb(0 0 0 / 15%), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shadow-modal1 {
    box-shadow: 0 -8px 20px rgb(0 0 0 / 4%), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mirror-item {
    transform: scaleX(-1);
}
/* استایل‌های اضافی برای پاسخ‌ها */
.replies-container {
    overflow: hidden;
    transition: all 0.3s ease;
}

.replies-section {
    background: linear-gradient(to right, #007fff08, #004bf926);
    border-radius: 0 8px 8px 0;
    padding: 8px 0;
}

.toggle-replies-btn {
    transition: all 0.2s ease;
}

    .toggle-replies-btn:hover {
        transform: scale(1.05);
        text-decoration: none !important;
    }

    .toggle-replies-btn i {
        transition: transform 0.3s ease;
    }

.reply-item {
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 8px;
    margin-left: -4px;
}

    .reply-item:hover {
        background: rgba(29, 155, 240, 0.03);
    }

.delete-btn {
    transition: all 0.2s ease;
}

    .delete-btn:hover {
        opacity: 1 !important;
        transform: scale(1.1);
    }
/* استایل تب‌ها */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 0;
    padding: 0;
    margin: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.tab-item {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #536471;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .tab-item:hover {
        background-color: rgba(15, 20, 25, 0.1);
        color: #0f1419;
    }

    .tab-item.active {
        color: #0f1419;
        font-weight: 700;
    }

/* مخفی کردن تب‌ها به صورت پیش‌فرض */
.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

a {
    text-decoration: none !important;
}

/* header like instagram stories + notifications header */
.notif-header {
    padding: 14px 20px;
    border-bottom: 1px solid #efefef;
    background: white;
}

    .notif-header h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.3px;
    }

/* tab row: All / Follow requests (instagram style) */
.notif-tabs {
    display: flex;
    border-bottom: 1px solid #dbdbdb;
    background: white;
    padding: 0 16px;
}

.notif-tab {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 0;
    color: #8e8e8e;
    cursor: default;
    border-bottom: 2px solid transparent;
    transition: all 0.1s ease;
}

.notif-tab-active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* main list */
.notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

/* each notification row - base class notif-item */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background-color: white;
    transition: background 0.1s ease;
    border-bottom: 1px solid #efefef;
}

    /* subtle hover like instagram web */
    .notif-item:hover {
        background-color: #fafafa;
    }

/* avatar styling */
.notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* main content block: text + timestamp + extra info */
.notif-content {
    flex: 1;
}

.notif-text {
    line-height: 1.4;
    color: #262626;
    margin-bottom: 4px;
}

/* username style */
.notif-username {
    font-weight: 700;
    color: #000;
    text-decoration: none;
    margin-right: 4px;
}

    .notif-username:hover {
        text-decoration: underline;
    }

/* action badge (like, comment, follow, mention) */
.notif-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-size: 0.9rem;
}

/* timestamp */
.notif-time {
    font-size: 0.75rem;
    color: #8e8e8e;
    margin-top: 4px;
    letter-spacing: -0.2px;
}

/* follow request button group */
.notif-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.notif-btn-confirm {
    background: #0095f6;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 8px;
    transition: 0.1s;
}

    .notif-btn-confirm:hover {
        background: #1877f2;
    }

.notif-btn-delete {
    background: transparent;
    border: 1px solid #dbdbdb;
    color: #262626;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 5px 16px;
    border-radius: 8px;
}

/* media preview (for post image thumbnail) */
.notif-media-preview {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #efefef;
    flex-shrink: 0;
    margin-left: 4px;
}

/* separate class for like heart icon */
.notif-like-icon {
    color: #ed4956;
    font-size: 0.85rem;
    margin-left: 4px;
}

/* divider between groups? not needed, but inside list */
.notif-divider-text {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8e8e8e;
    background: #fafafa;
    border-bottom: 1px solid #efefef;
}
/* استایل‌های وضعیت نام کاربری */
.signup-input-group.error .signup-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.signup-input-group.success .signup-input {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.username-status {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

/* انیمیشن برای وضعیت‌ها */
.signup-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.username-status {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* اضافه کردن آیکون‌های وضعیت */
.signup-input-group.success::after {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-weight: bold;
}

.signup-input-group.error::after {
    content: '✕';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-weight: bold;
}
.logo-box-image{
    max-width:110px;
}
.decorative-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.3;
}

.line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ccc, transparent);
}

.dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 3px;
}
.notification-dot {
    position: absolute;
    top: 8px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: #0088cc;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 0 5px #0088cc;
}
#messages-link{
    position:relative;
}
.private-post-container {
    min-height: 70vh;
    padding: 2rem 1.5rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== انیمیشن ورود ========== */
@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== آواتار ========== */
.private-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.private-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #e0e0e0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .private-avatar:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    }

/* ========== آیکون قفل روی آواتار ========== */
.lock-icon-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 34px;
    height: 34px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

    .lock-icon-badge i {
        color: #fff;
        font-size: 15px;
    }

/* ========== متن‌ها ========== */
.private-title {
    font-size: 1.3rem;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.private-description {
    font-size: 0.9rem;
    color: #8e8e93;
    max-width: 280px;
    line-height: 1.7;
}

/* ========== دکمه مشاهده پروفایل (استایل اینستاگرامی) ========== */
.private-profile-btn {
    background: #0095f6;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 149, 246, 0.3);
}

    .private-profile-btn:hover {
        background: #1877f2;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 149, 246, 0.4);
    }

    .private-profile-btn:active {
        transform: scale(0.96);
    }
/* Skeleton Styles */
.skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.post-skeleton {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-info {
    flex: 1;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-body {
    margin-bottom: 16px;
}

    .skeleton-body .skeleton-line {
        margin-bottom: 8px;
    }

.skeleton-actions {
    display: flex;
    gap: 24px;
    justify-content: space-around;
}

.skeleton-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.profile-header-skeleton {
    margin-bottom: 20px;
}

#tab-profile {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

.snackbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
}

.snackbar-container {
    position: fixed;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    direction: rtl;
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.snackbar-message {
    font-size: 14px;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* متن لودر */
.loader-message {
    color: #151515;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* دات‌های متحرک */
.loader-dots {
    display: flex;
    gap: 8px;
}

    .loader-dots span {
        width: 6px;
        height: 6px;
        background-color: #64748b;
        border-radius: 50%;
        animation: bounce 1.4s infinite ease-in-out both;
    }

        .loader-dots span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .loader-dots span:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}