@import url('Vazirmatn-font-face.css');:root { --global-bg: #ffffff; --global-msg-me: #007aff; --global-msg-them: #e5e5ea; --verified-color: #007aff; }
/* ================= قفل کردن قطعی سلکت و منوی کپی ================= */
* {
    -webkit-touch-callout: none !important; /* غیرفعال کردن پاپ‌آپِ مزاحم آیفون */
    -webkit-user-select: none !important;   /* سافاری و کروم */
    -moz-user-select: none !important;      /* فایرفاکس */
    -ms-user-select: none !important;       /* اینترنت اکسپلورر */
    user-select: none !important;           /* استاندارد جهانی */
}

/* استثنا: جاهایی که کاربر باید بتونه تایپ کنه رو باز می‌ذاریم */
input, textarea, [contenteditable="true"] {
    -webkit-touch-callout: default !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Vazirmatn", sans-serif; -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y; }html, body { background: #f2f2f7; color: #1c1c1e; display: flex; justify-content: center; align-items: center; width: 100vw; height: 100vh; height: -webkit-fill-available; position: fixed; top: 0; left: 0; overflow: hidden; overscroll-behavior: none; }body.rtl { direction: rtl; font-weight: 500; letter-spacing: -0.2px; }#top-progress { position: fixed; top: 0; left: 0; height: 3px; background: #007aff; width: 0%; z-index: 9999999; transition: width 0.3s ease; box-shadow: 0 0 10px rgba(0,122,255,0.5); }.app-container { width: 100%; max-width: 420px; height: 100%; background: #ffffff; position: relative; overflow: hidden; box-shadow: 0 0 30px rgba(0,0,0,0.08); }.view { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; flex-direction: column; align-items: center; padding: 60px 24px 24px; background: #ffffff; overflow-y: auto; z-index: 1; opacity: 0; transform: scale(0.98); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); scroll-behavior: smooth; }.view.active { display: flex; z-index: 10; opacity: 1; transform: scale(1); }.app-logo-wrap { position: absolute; top: 15px; left: 0; width: 100%; display: flex; justify-content: center; pointer-events: none; z-index: 90; }.app-logo-img { height: 28px; border-radius: 6px; object-fit: contain; cursor: pointer; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); display: none; pointer-events: auto; }.app-logo-img:active { transform: scale(0.85); }.header-actions-left { position: absolute; top: 20px; left: 24px; display: flex; gap: 15px; z-index: 100; }body.rtl .header-actions-left { left: auto; right: 24px; }.header-actions { position: absolute; top: 20px; right: 24px; display: flex; gap: 15px; z-index: 100; }body.rtl .header-actions { right: auto; left: 24px; }.icon-btn { background: none; border: none; color: #1c1c1e; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); position: relative; }.icon-btn:active { transform: scale(0.8); color: #007aff; }.badge { position: absolute; top: -4px; right: -6px; background: #ff3b30; color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #ffffff; box-shadow: 0 2px 5px rgba(255,59,48,0.3); pointer-events: none; }.avatar-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }.avatar-placeholder, .star-mask { background-color: #e5e5ea; cursor: pointer; background-position: center; background-size: cover; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s; -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 C 50 30, 70 50, 100 50 C 70 50, 50 70, 50 100 C 50 70, 30 50, 0 50 C 30 50, 50 30, 50 0 Z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 C 50 30, 70 50, 100 50 C 70 50, 50 70, 50 100 C 50 70, 30 50, 0 50 C 30 50, 50 30, 50 0 Z' fill='black'/%3E%3C/svg%3E"); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; mask-size: contain; mask-repeat: no-repeat; mask-position: center; }.avatar-placeholder:active { transform: scale(0.85); }.avatar-placeholder.xlarge { width: 125px; height: 125px; } .avatar-placeholder.large { width: 105px; height: 105px; }.avatar-placeholder.medium { width: 65px; height: 65px; }.avatar-placeholder.small { width: 50px; height: 50px; }.cropper-view-box, .cropper-face { border-radius: 0 !important; -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 C 50 30, 70 50, 100 50 C 70 50, 50 70, 50 100 C 50 70, 30 50, 0 50 C 30 50, 50 30, 50 0 Z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 C 50 30, 70 50, 100 50 C 70 50, 50 70, 50 100 C 50 70, 30 50, 0 50 C 30 50, 50 30, 50 0 Z' fill='black'/%3E%3C/svg%3E"); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; mask-size: contain; mask-repeat: no-repeat; mask-position: center; }.verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; color: #fff; margin-left: 5px; vertical-align: middle; -webkit-clip-path: polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%); clip-path: polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%); }.verified-badge svg { width: 8px; height: 8px; stroke-width: 3.5px; }.profile-card { width: 100%; background: #ffffff; border-radius: 20px; padding: 10px 0 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }.profile-name { font-weight: 700; color: #1c1c1e; font-size: 22px; margin-bottom: 2px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.2s; }.profile-name:active { opacity: 0.6; }.profile-username { font-weight: 500; font-size: 14px; color: #8e8e93; margin-bottom: 15px; }.profile-bio { font-size: 14px; line-height: 1.6; margin-bottom: 20px; padding: 12px 16px; background: #f2f2f7; border-radius: 16px; max-width: 95%; word-wrap: break-word; transition: all 0.3s; }body.rtl .profile-bio { line-height: 1.8; }@keyframes anim-pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1); } }@keyframes anim-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }.anim-pulse { animation: anim-pulse 2s ease-in-out infinite; display: inline-block; width:100%; }.anim-bounce { animation: anim-bounce 2s ease-in-out infinite; display: inline-block; width:100%; }.stats-row { display: flex; justify-content: center; gap: 40px; margin-bottom: 15px; width: 100%; }.stat-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); }.stat-item:active { transform: scale(0.85); }.stat-val { font-weight: 700; font-size: 18px; color: #1c1c1e; }.stat-lbl { font-size: 11px; color: #8e8e93; text-transform: uppercase; font-weight: 600; margin-top: 2px; }.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: calc(100% + 48px); margin: 10px -24px 0 -24px; border-top: 1px solid #f2f2f7; }.post-thumb { width: 100%; aspect-ratio: 1; background-color: #f2f2f7; background-size: cover; background-position: center; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }.post-thumb:active { transform: scale(0.97); opacity: 0.8; }.subtitle, label { font-size: 11px; color: #8e8e93; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; align-self: flex-start; width: 100%; padding-left: 8px; }body.rtl label { padding-left: 0; padding-right: 8px; }.input-field { width: 100%; background: #f2f2f7; border: none; border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; outline: none; font-size: 15px; color: #1c1c1e; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }.input-field:focus { background: #e5e5ea; transform: scale(1.02); }.btn-primary { border: none; border-radius: 14px; padding: 14px 20px; color: white; font-weight: 600; cursor: pointer; font-size: 14px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s, background 0.2s; }.btn-primary:active { transform: scale(0.94); opacity: 0.8; }.btn-primary.blue { background: #007aff; }.btn-outline { background: transparent; color: #1c1c1e; border: 1.5px solid #e5e5ea; }.format-toolbar { display: flex; gap: 8px; margin-bottom: 5px; background: #f2f2f7; padding: 8px 12px; border-radius: 14px; align-items: center; width: 100%; }.format-toolbar button { background: #ffffff; border-radius: 8px; width: 32px; height: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }.format-toolbar input[type="color"] { border: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; padding: 0; background: none; cursor: pointer; }.format-toolbar input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }.format-toolbar input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }.user-list { width: 100%; display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding-bottom: 20px; }.user-item { display: flex; align-items: center; gap: 15px; background: #ffffff; padding: 12px 16px; border-bottom: 1px solid #f2f2f7; cursor:pointer; transition: background 0.2s; }.user-item:active { background: #f9f9f9; }.chat-header { display: flex; align-items: center; gap: 12px; width: 100%; padding: 20px 24px 15px; background: inherit; z-index: 5; border-bottom: 1px solid rgba(0,0,0,0.05); position:relative; flex-shrink: 0; }.chat-area { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 15px 24px; background: inherit; scroll-behavior: smooth; overflow-x: hidden; }
.chat-input-container { width: 100%; display: flex; flex-direction: column; background: inherit; border-top: 1px solid rgba(0,0,0,0.05); margin: 0; z-index: 20; position: relative; flex-shrink: 0; }
.chat-input-area { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 24px 20px; background: inherit; margin: 0; }
.chat-input-area input { flex: 1; margin: 0; min-width: 0; border-radius: 20px; }.send-btn-circle { width: 40px; height: 40px; border-radius: 50%; background: #007aff; color: white; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; flex-shrink: 0; transition: transform 0.2s; }.send-btn-circle:active { transform: scale(0.85); }body.rtl .send-btn-circle svg { transform: rotate(180deg); }.chat-blocked-notice { width: 100%; padding: 15px 20px 25px; background: inherit; text-align: center; color: #8e8e93; font-size: 13px; font-weight: 600; display: none; flex-direction: column; align-items: center; gap: 5px; border-top: 1px solid rgba(0,0,0,0.05); } .chat-blocked-notice i { color: #ff3b30; } .msg-wrapper { display: flex; flex-direction: row; width: 100%; margin-bottom: 4px; position: relative; align-items: flex-end; }.msg-wrapper.me { justify-content: flex-end; }.msg-wrapper.them { justify-content: flex-start; }body.rtl .msg-wrapper.me { justify-content: flex-start; }body.rtl .msg-wrapper.them { justify-content: flex-end; }.bubble-wrap { display: flex; flex-direction: column; max-width: 78%; position: relative; cursor: pointer; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s; touch-action: pan-y; border-radius: 18px; }.bubble-wrap:active { transform: scale(0.97); }.bubble { border-radius: 18px; padding: 8px 12px; font-size: 15px; line-height: 1.4; position: relative; width: max-content; max-width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,0.05); display: flex; flex-direction: column; }.bubble.me { background: var(--global-msg-me); color: #ffffff; border-bottom-right-radius: 4px; border-bottom-left-radius: 18px; }.bubble.them { background: var(--global-msg-them); color: #1c1c1e; border-bottom-left-radius: 4px; border-bottom-right-radius: 18px; }body.rtl .bubble.me { border-bottom-right-radius: 18px; border-bottom-left-radius: 4px; }body.rtl .bubble.them { border-bottom-left-radius: 18px; border-bottom-right-radius: 4px; }.bubble-sticker { background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; display: flex; flex-direction: column; align-items: flex-end; }body.rtl .bubble-sticker { align-items: flex-start; }.chat-sticker { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1)); pointer-events: auto; background: transparent !important; border:none; outline:none; }.bubble-sticker .msg-text { display: none; }.bubble-sticker .msg-meta { background: rgba(0,0,0,0.4); color: white; padding: 3px 8px; border-radius: 12px; display: inline-flex; margin-top: -25px; margin-right: 5px; position: relative; z-index: 2; font-size: 10px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }body.rtl .bubble-sticker .msg-meta { margin-right: 0; margin-left: 5px; }.msg-content-flex { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }.msg-text { word-break: break-word; white-space: pre-wrap; flex: 1; min-width: 0; direction: inherit; }.msg-meta { font-size: 10px; opacity: 0.7; white-space: nowrap; flex-shrink: 0; margin-left: auto; display: flex; align-items: center; gap: 4px; }body.rtl .msg-meta { margin-left: 0; margin-right: auto; }.reactions-cluster { position: absolute; bottom: -12px; display: flex; z-index: 2; }.msg-wrapper.me .reactions-cluster { right: 8px; flex-direction: row-reverse; }.msg-wrapper.them .reactions-cluster { left: 8px; }body.rtl .msg-wrapper.me .reactions-cluster { right: auto; left: 8px; flex-direction: row; }body.rtl .msg-wrapper.them .reactions-cluster { left: auto; right: 8px; }.pm-reaction-tag { background: #ffffff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); border: 2px solid #f2f2f7; animation: pop 0.3s cubic-bezier(0.25, 1, 0.5, 1); margin-left: -8px; }.msg-wrapper.me .pm-reaction-tag { margin-left: 0; margin-right: -8px; }body.rtl .msg-wrapper.me .pm-reaction-tag { margin-right: 0; margin-left: -8px; }.date-divider { text-align: center; font-size: 11px; color: #8e8e93; margin: 15px 0 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; width: 100%; align-self: center; display: block; }.typing-indicator { height: 30px; background: inherit; flex-shrink: 0; }.chat-media { max-width: 100%; border-radius: 12px; display: block; object-fit: cover; margin-bottom: 5px; background: transparent !important; }.media-container { position: relative; display: inline-block; margin-bottom: 5px; width: 100%; background: transparent; }.timer-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: white; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: bold; display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px); z-index: 2; pointer-events: none; font-variant-numeric: tabular-nums; transition: background 0.3s; }.media-download-btn { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.5); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); text-decoration: none; transition: transform 0.2s; z-index: 3; }.file-attachment { background: #f2f2f7; padding: 12px 16px; border-radius: 12px; display: flex; flex-direction: row; align-items: center; gap: 10px; color: #1c1c1e; font-size: 13px; font-weight: 600; min-width: 180px; max-width: 100%; position:relative; margin-bottom: 5px; }.bubble.me .file-attachment { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }.modal-overlay { visibility: hidden; opacity: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999999; display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: all 0.3s; padding: 20px; box-sizing: border-box;}.modal-overlay > div { transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }.modal-overlay.active { visibility: visible; opacity: 1; }.modal-overlay.active > div { transform: translateY(0) scale(1); }.modal-close { position: absolute; top: 20px; right: 20px; background: #fff; color: #1c1c1e; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 100000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.2s; }.cropper-container-box { width: 100%; max-width: 100%; height: 50vh; background: transparent; border-radius: 16px; overflow: hidden; margin-bottom: 20px; display:flex; justify-content:center; align-items:center;}.action-sheet { position: absolute; bottom: 0; left: 0; width: 100%; background: #ffffff; border-top-left-radius: 24px; border-top-right-radius: 24px; padding: 20px 24px 30px; display: flex; flex-direction: column; gap: 15px; transform: translateY(100%) scale(1) !important; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); z-index: 100001; }.modal-overlay.active .action-sheet { transform: translateY(0) scale(1) !important; }.sheet-drag { width: 40px; height: 4px; background: #e5e5ea; border-radius: 4px; align-self: center; margin-bottom: 10px; }.sheet-reactions { display: flex; justify-content: space-around; background: #f2f2f7; padding: 10px; border-radius: 16px; margin-bottom: 10px; align-items: center; }.sheet-reactions button { background: none; border: none; font-size: 24px; cursor: pointer; transition: transform 0.2s; }.sheet-reactions button:active { transform: scale(0.7); }.sheet-btn { background: none; border: none; width: 100%; padding: 15px; border-radius: 14px; font-size: 16px; font-weight: 600; color: #1c1c1e; text-align: left; display: flex; align-items: center; gap: 10px; background: #f2f2f7; transition: transform 0.2s; }body.rtl .sheet-btn { text-align: right; }.sheet-btn:active { transform: scale(0.96); }.sheet-btn.del { color: #ff3b30; background: rgba(255,59,48,0.1); }.toggle-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 16px; background: #f2f2f7; border-radius: 14px; margin-bottom: 10px; font-size: 14px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.2s; }.toggle-row:active { transform: scale(0.98); }.toggle-switch { position: relative; width: 46px; height: 26px; background: #e5e5ea; border-radius: 26px; transition: background 0.3s; pointer-events: none;}.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: white; border-radius: 50%; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }body.rtl .toggle-switch::after { left: auto; right: 2px; }.toggle-switch.active { background: #34c759; }.toggle-switch.active::after { transform: translateX(20px); }body.rtl .toggle-switch.active::after { transform: translateX(-20px); }.admin-card { background: #ffffff; padding: 20px; border-radius: 20px; margin-bottom: 15px; width: 100%; border: 1px solid #f2f2f7; display: flex; flex-direction: column; gap: 10px;}.admin-card h3 { font-size: 15px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; color: #1c1c1e; }.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 10px; }.admin-table th, .admin-table td { text-align: left; padding: 10px 5px; border-bottom: 1px solid #f2f2f7; }body.rtl .admin-table th, body.rtl .admin-table td { text-align: right; }.admin-btn { padding: 6px 12px; border: none; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: bold; transition: transform 0.2s; }.admin-btn:active { transform: scale(0.9); }.admin-btn.verify { background: #007aff; color: white; }.admin-btn.del { background: rgba(255,59,48,0.1); color: #ff3b30; }.post-likes-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; }.like-btn { display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600; color: #1c1c1e; transition: transform 0.2s; }.like-btn:active { transform: scale(0.8); }.like-btn.liked svg { stroke: #ff3b30; fill: #ff3b30; animation: pop 0.3s cubic-bezier(0.25, 1, 0.5, 1); }.post-image-container { position: relative; width: 100%; overflow: hidden; }.post-note-stack { position: absolute; bottom: 15px; right: 15px; display: flex; align-items: flex-end; justify-content: flex-end; cursor: pointer; animation: float-note 3.5s ease-in-out infinite; perspective: 1000px; -webkit-tap-highlight-color: transparent; }body.rtl .post-note-stack { right: auto; left: 15px; justify-content: flex-start; }.post-note-layer { position: absolute; display: flex; align-items: flex-end; gap: 8px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease; transform-origin: bottom right; pointer-events: none; }body.rtl .post-note-layer { flex-direction: row-reverse; transform-origin: bottom left; }.post-note-layer.front { transform: translateY(0) scale(1); z-index: 2; opacity: 1; pointer-events: auto; }.post-note-layer.back { transform: translateY(6px) scale(0.9) translateX(-10px); z-index: 1; opacity: 0; filter: blur(1px); }body.rtl .post-note-layer.back { transform: translateY(6px) scale(0.9) translateX(10px); }.post-note-layer.back.visible { opacity: 0.6; }.post-note-content { display: flex; flex-direction: column; align-items: flex-end; }body.rtl .post-note-content { align-items: flex-start; }.post-note-username { font-size: 10px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); margin-bottom: 3px; margin-right: 4px; opacity: 0.9; }body.rtl .post-note-username { margin-right: 0; margin-left: 4px; }.post-note-bubble { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 20px; border-bottom-right-radius: 4px; font-size: 13px; font-weight: 600; color: #1c1c1e; box-shadow: 0 4px 15px rgba(0,0,0,0.15); max-width: 200px; width: max-content; min-width: 40px; white-space: pre-wrap; word-break: normal; overflow-wrap: break-word; line-height: 1.3; text-align: left; transition: background-color 0.3s, color 0.3s; direction: rtl; display: inline-block; }body.rtl .post-note-bubble { border-bottom-right-radius: 20px; border-bottom-left-radius: 4px; text-align: right; }.post-note-avatar { width: 36px; height: 36px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); margin-bottom: -4px; flex-shrink: 0; pointer-events: auto; position: relative; z-index: 10; transition: transform 0.2s; }.post-note-avatar:active { transform: scale(0.8); }@keyframes float-note { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }.rich-text a { color: #007aff; text-decoration: none; font-weight: 600; }.rich-text strong { font-weight: 800; }.rich-text em { font-style: italic; }.private-page-notice { text-align: center; padding: 30px 20px; background: #f2f2f7; border-radius: 16px; margin-top: 20px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }@keyframes pop { 0% { transform: scale(0.5); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; max-height: 50vh; overflow-y: auto; padding-right: 5px; }.gif-item { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f2f2f7; cursor: pointer; position: relative; transition: transform 0.2s; display: flex; align-items: center; justify-content: center; }.gif-item:active { transform: scale(0.95); }.gif-item video, .gif-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.del-badge { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.4); color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: transform 0.2s, background 0.2s; }
.del-badge:active { transform: scale(0.8); background: rgba(255,59,48,0.8); }
.del-badge svg { width: 12px; height: 12px; }

.swipe-reply-icon { position: absolute; left: -40px; top: 50%; transform: translateY(-50%) scale(0.5); opacity: 0; background: #e5e5ea; color: #1c1c1e; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; pointer-events: none; transition: transform 0.1s, opacity 0.1s; }
body.rtl .swipe-reply-icon { left: auto; right: -40px; }

.reply-preview-box { display: none; background: transparent; padding: 0 24px 8px; position: relative; text-align: left; }
body.rtl .reply-preview-box { text-align: right; }
.reply-preview-box .close-btn { position: absolute; right: 24px; top: 5px; cursor: pointer; color: #8e8e93; border-radius: 50%; width: 22px; height: 22px; display: flex; justify-content: center; align-items: center; transition: transform 0.2s; }
.reply-preview-box .close-btn:active { transform: scale(0.8); color: #1c1c1e; }
body.rtl .reply-preview-box .close-btn { right: auto; left: 24px; }
.reply-preview-content { border-left: 3px solid #007aff; padding-left: 10px; }
body.rtl .reply-preview-content { border-left: none; border-right: 3px solid #007aff; padding-left: 0; padding-right: 10px; }
.reply-preview-box b { color: #007aff; display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; }
.reply-preview-box span { font-size: 12px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 90%; }

.reply-quote { background: transparent; border-left: 2px solid #007aff; padding: 2px 8px; margin-bottom: 6px; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; text-align: left; opacity: 0.85; transition: opacity 0.2s; }
.reply-quote:active { opacity: 0.6; }
body.rtl .reply-quote { border-left: none; border-right: 2px solid #007aff; text-align: right; }
.bubble.me .reply-quote { border-left-color: #ffffff; }
body.rtl .bubble.me .reply-quote { border-right-color: #ffffff; }
.reply-quote b { font-weight: 700; margin-bottom: 2px; color: #007aff; }
.bubble.me .reply-quote b { color: #ffffff; }
.reply-quote span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }

.sticker-tab { width: 40px; height: 40px; flex-shrink: 0; cursor: pointer; padding-bottom: 5px; transition: all 0.2s; opacity: 0.5; border-bottom: 2px solid transparent; display: flex; justify-content: center; align-items: center; }
.sticker-tab.active-tab { opacity: 1; border-bottom-color: #007aff; }
@keyframes highlight-pulse { 0% { background: rgba(0,122,255,0.3); } 100% { background: inherit; } }
.highlight-pulse { animation: highlight-pulse 1.5s ease-out; border-radius: 18px; }

.custom-react-btn { background: #e5e5ea; color: #1c1c1e; border-radius: 50%; width: 34px; height: 34px; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: bold; border: none; cursor: pointer; transition: transform 0.2s; }
.custom-react-btn:active { transform: scale(0.8); }

.toast-notification { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(0,0,0,0.8); color: white; padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 9999999; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

.pinned-message-bar { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 24px; border-bottom: 1px solid rgba(0,0,0,0.05); width: 100%; z-index: 4; cursor: pointer; transition: background 0.2s; position: relative; flex-shrink: 0; }
.pinned-message-bar:active { background: rgba(255,255,255,1); }
.pinned-message-bar::before { content: ''; position: absolute; left: 24px; top: 10px; bottom: 10px; width: 3px; background: #007aff; border-radius: 3px; }
body.rtl .pinned-message-bar::before { left: auto; right: 24px; }
.pinned-content { flex: 1; display: flex; flex-direction: column; padding-left: 10px; overflow: hidden; }
body.rtl .pinned-content { padding-left: 0; padding-right: 10px; }
.pinned-content b { font-size: 12px; color: #007aff; margin-bottom: 2px; }
.pinned-content span { font-size: 12px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unpin-btn { background: none; border: none; color: #8e8e93; cursor: pointer; padding: 5px; flex-shrink: 0; }

.custom-prompt-modal { background: #fff; width: 90%; max-width: 320px; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.msg-wrapper.selectable { cursor: pointer; }
.msg-wrapper.selected .bubble-wrap { background: rgba(0,122,255,0.1); border-radius: 18px; }
.msg-checkbox { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #e5e5ea; position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: none; align-items: center; justify-content: center; background: #fff; z-index: 2; transition: all 0.2s; }
body.rtl .msg-checkbox { left: auto; right: 0; }
.msg-wrapper.selectable .msg-checkbox { display: flex; }
.msg-wrapper.selected .msg-checkbox { border-color: #007aff; background: #007aff; }
.msg-wrapper.selected .msg-checkbox::after { content: ''; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px; }
.bulk-action-bar { display: none; position: absolute; bottom: 0; left: 0; width: 100%; background: #ffffff; padding: 15px 24px 25px; justify-content: space-between; border-top: 1px solid rgba(0,0,0,0.05); z-index: 30; }
.bulk-action-bar.active { display: flex; }

.suggested-container { width: 100%; padding: 0 24px; display: flex; justify-content: space-between; gap: 10px; overflow: hidden; margin-bottom: 20px; align-items: flex-start; box-sizing: border-box; }
.suggested-card { flex: 1; min-width: 0; background: transparent; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; transition: transform 0.2s; }
.suggested-card:active { transform: scale(0.95); }
.suggested-card .avatar-placeholder { width: 75px; height: 75px; margin-bottom: 10px; flex-shrink: 0; }
.suggested-card b { font-size: 13px; color: #1c1c1e; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

@keyframes popZoom { 0% { transform: scale(0.5); opacity: 0; } 80% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes popSlide { 0% { transform: translateY(50px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes popFade { 0% { opacity: 0; } 100% { opacity: 1; } }
.random-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99999999; display: flex; justify-content: center; align-items: center; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.random-popup-overlay.active { opacity: 1; visibility: visible; }
.random-popup-overlay img { max-width: 80%; max-height: 50vh; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
.random-popup-overlay span { margin-top: 20px; font-size: 24px; font-weight: 800; color: white; text-shadow: 0 4px 10px rgba(0,0,0,0.5); text-align: center; max-width: 80%; word-wrap: break-word; }
.anim-zoom { animation: popZoom 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.anim-slide { animation: popSlide 0.4s ease-out; }
.anim-fade { animation: popFade 0.4s ease-in; }

.star-video-msg { width: 150px; height: 150px; object-fit: cover; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: transparent !important; }
.video-record-modal { background: rgba(0,0,0,0.9); width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; top:0; left:0; z-index: 1000000; }
.video-record-preview { width: 220px; height: 220px; object-fit: cover; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: transparent; margin-bottom: 30px; transform: scale(-1, 1); border: 2px solid #007aff; }
.animated-emoji-render { width: 120px; height: 120px; object-fit: contain; background: transparent; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1)); }
/* ================= قفل کردن سلکت متن (شبیه‌ساز اپلیکیشن نیتیو) ================= */
body {
    -webkit-touch-callout: none; /* غیرفعال کردن منوی طولانی در آیفون (پاپ‌آپ کپی/پیست پیش‌فرض) */
    -webkit-user-select: none;   /* Safari */
    -ms-user-select: none;       /* IE 10 and IE 11 */
    user-select: none;           /* Standard syntax */
}

/* 🚀 اما اینپوت‌ها و جاهایی که کاربر باید تایپ کنه رو باز می‌ذاریم: */
input, textarea {
    -webkit-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

