/* ---------- متغیرهای رنگی ---------- */
:root {
    --primary: #4a7c6f;
    --primary-dark: #2c3e50;
    --accent: #1B998B;
    --pink: #d4a5a5;
    --orange: #f4a261;

    --bg-main: #F8F9FA;
    --bg-secondary: #EEF0F2;
    --bg-card: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5A6B7C;
    --text-light: #8898A5;
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 20px 35px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --gradient-btn: linear-gradient(145deg, #4a7c6f, #2c3e50);
    --radius-card: 20px;
    --radius-btn: 30px;
    --transition: all 0.2s ease;
}

[data-theme="dark"] {
    --bg-main: #121418;
    --bg-secondary: #1C1E23;
    --bg-card: #23262B;
    --text-primary: #EAE0D5;
    --text-secondary: #A0A8B8;
    --text-light: #7A8798;
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-glass: 0 20px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    --glass-bg: rgba(26, 28, 32, 0.85);
}

/* ---------- فونت‌ها ---------- */
@font-face {
    font-family: 'Peyda Web';
    src: url('../fonts/PeydaWeb-Bold.woff2') format('woff2'), url('../fonts/PeydaWeb-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda Web';
    src: url('../fonts/PeydaWeb-Black.woff2') format('woff2'), url('../fonts/PeydaWeb-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda Web';
    src: url('../fonts/PeydaWeb-Regular.woff2') format('woff2'), url('../fonts/PeydaWeb-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Regular.woff2') format('woff2'), url('../fonts/IRANSansX-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Bold.woff2') format('woff2'), url('../fonts/IRANSansX-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Medium.woff2') format('woff2'), url('../fonts/IRANSansX-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Light.woff2') format('woff2'), url('../fonts/IRANSansX-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ---------- ریست ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSansX', Tahoma, sans-serif;
    font-weight: 400;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- تایپوگرافی ---------- */
h1,
h2,
h3,
h4,
.section-title,
.page-title,
.logo-text,
.nav-item span,
.btn,
.post-author,
.expert-name,
.menu-title,
.tab,
.follow-btn {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-weight: 700;
}

/* ---------- کانتینر اصلی ---------- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    position: relative;
}

@media (min-width: 768px) {
    body {
        padding: 16px 0;
    }

    .app-container {
        max-width: 780px;
        border-radius: 28px;
    }
}

/* ---------- هدر ---------- */
.app-header {
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .app-header {
    background: rgba(18, 20, 24, 0.9);
}

.header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.logo-wrapper img {
    height: 48px;
}

@media (min-width: 768px) {
    .logo-wrapper img {
        height: 56px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-content-btn {
    background: var(--gradient-btn);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    order: -1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-content-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.header-row2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.search-icon-btn img {
    width: 20px;
    height: 20px;
}

.search-input-inline {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 10px 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.search-input-inline:focus {
    border-color: var(--primary);
}

.theme-toggle-btn,
.menu-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-toggle-btn img,
.menu-toggle img {
    width: 22px;
    height: 22px;
}

.theme-toggle-btn:hover,
.menu-toggle:hover {
    background: var(--bg-card);
}

/* ---------- منوی کشویی (بیرون کانتینر) ---------- */
.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    overflow-y: auto;
    border-radius: 40px 0 0 40px;
    transition: right 0.35s ease;
    visibility: hidden;
}

.slide-menu.active {
    right: 0;
    visibility: visible;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.menu-title {
    font-size: 20px;
    color: var(--primary);
}

.menu-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
}

.menu-close:hover {
    background: var(--pink);
    color: white;
}

.menu-list {
    list-style: none;
    padding: 12px;
}

.menu-list li {
    margin-bottom: 4px;
}

.menu-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.menu-list a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.menu-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-img-icon {
    width: 22px;
    height: 22px;
}

.badge-notif {
    background: var(--orange);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: auto;
}

.menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px;
}

.text-danger {
    color: #E07A5F !important;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- محتوای اصلی ---------- */
.app-main {
    flex: 1;
}

.content-wrapper {
    padding: 0 14px;
}

/* ---------- استوری‌ها (اسکرول بدون نوار) ---------- */
.stories-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0 16px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.stories-container::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 68px;
    cursor: pointer;
}

.story-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, var(--primary), var(--pink));
    transition: var(--transition);
}

.story-avatar.add {
    background: var(--bg-secondary);
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    object-fit: cover;
}

.story-avatar.seen {
    opacity: 0.5;
    filter: grayscale(40%);
    border: 2px solid #ccc !important;
}

.story-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---------- فید پست‌ها ---------- */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid rgba(212, 165, 165, 0.3);
    box-shadow: var(--shadow-sm);
    /* سایه اصلی کارت */
    overflow: visible;
    transition: var(--transition);
    cursor: pointer;
    outline: none;
    /* مطمئن شدن از نداشتن خط اضافی */
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #d4a5a5;
    /* رنگ بمونه، ضخیم نشه */
}

.post-header-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    position: relative;
}

.post-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(145deg, var(--primary), var(--pink));
    flex-shrink: 0;
}

.post-avatar-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
}

.post-author {
    font-size: 15px;
    margin-bottom: 2px;
}

.post-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

/* منوی سه‌نقطه */
.post-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 20;
}

.post-more-icon-img {
    width: 22px;
    opacity: 0.7;
}

.post-menu-new {
    position: absolute;
    top: 45px;
    left: 10px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    padding: 6px;
    z-index: 100;
    min-width: 180px;
    display: none;
}

.post-menu-new.hidden {
    display: none !important;
}

.post-menu-new.show {
    display: block;
}

.post-menu-new button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 12px;
}

.post-menu-new button:hover {
    background: var(--bg-secondary);
}

.menu-option-icon {
    width: 20px;
    height: 20px;
}

/* رسانه (عکس تکی) */
.single-post-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* اسلایدر تصاویر */
.post-media-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    height: 300px;
}

@media (min-width: 768px) {
    .post-media-slider {
        height: 400px;
    }
}

.slider-container {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
}

.slider-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-dots .dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* پلیر صوتی */
.audio-player-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 60px;
    margin: 8px 16px 12px;
    direction: ltr;
}

.play-pause-btn {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
}

.equalizer span {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: eq 0.8s infinite alternate;
}

.equalizer span:nth-child(1) {
    height: 10px;
    animation-delay: 0.1s;
}

.equalizer span:nth-child(2) {
    height: 18px;
    animation-delay: 0.3s;
}

.equalizer span:nth-child(3) {
    height: 14px;
    animation-delay: 0.5s;
}

.equalizer span:nth-child(4) {
    height: 22px;
    animation-delay: 0.2s;
}

.equalizer span:nth-child(5) {
    height: 12px;
    animation-delay: 0.4s;
}

@keyframes eq {
    from {
        transform: scaleY(0.4);
    }

    to {
        transform: scaleY(1);
    }
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: right;
}

/* ویدئو */
.video-container {
    position: relative;
    background: #000;
}

.video-player {
    width: 100%;
    display: block;
}

.post-card .video-container {
    height: 220px;
    /* ارتفاع ثابت برای ویدئو */
    background: #000;
    /* پس‌زمینه مشکی هنگام لود نشدن */
    overflow: hidden;
}

.post-card .video-container .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* تصویر ویدئو کل کادر را پر کند */
}

@media (min-width: 768px) {
    .post-card .video-container {
        height: 340px;
    }
}

/* محتوای پست (متن) */
.post-content {
    padding: 0 16px 16px;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
}

.post-content.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0;
    /* حذف پدینگ پایین */
    margin-bottom: 0;
    /* حذف margin پایین */
    line-height: 1.7;
    /* خط مشخص */
    max-height: calc(2 * 1.7 * 15px);
    /* خط کمکی: 2 خط × ارتفاع خط × سایز فونت */
}



.read-more-btn {
    display: block;
    margin: 8px 16px 0 16px;
    /* فاصله از لبه‌ها و از متن */
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-align: right;
}

/* فوتر پست */
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border-light);
}

.post-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn img {
    width: 22px;
    height: 22px;
    transition: 0.2s;
}

/* زرد */
.post-date {
    font-size: 12px;
    color: var(--text-light);
}

/* باکس نظرات */
.comment-box {
    margin: 0 16px 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    display: block !important;
}
.comment-box:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 15px !important;
    margin-top: 10px !important;
    border-top: 1px solid #eee !important;
}
.comment-box.hidden {
    display: none !important;
}
.comment-box.open {
    display: block;
}

.comment-list-inline {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-item .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    flex-shrink: 0;
    overflow: hidden;
}

.comment-item .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.view-all-comments-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
}

.comment-input-row {
    display: flex;
    gap: 8px;
}

.comment-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    outline: none;
}

.comment-submit-btn {
    background: var(--gradient-btn);
    border: none;
    color: white;
    padding: 0 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* toast پیغام موفقیت */
.toast-message {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a7c6f;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast-message.show {
    opacity: 1;
}

/* ---------- پیشنهاد متخصصان (اسکرول بدون نوار) ---------- */
.suggested-experts {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.see-all {
    font-size: 14px;
    color: var(--primary);
}

.experts-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.experts-list::-webkit-scrollbar {
    display: none;
}

.expert-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 18px 12px 16px;
    min-width: 160px;
    width: 160px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 260px;
    justify-content: space-between;
    flex-shrink: 0;
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 14px;
    padding: 3px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
}

.expert-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-field {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.follow-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    transition: var(--transition);
}

.follow-btn.followed {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

/* ---------- نوار پایین شیشه‌ای ---------- */
.bottom-nav {
    position: sticky;
    bottom: 15px;
    width: calc(100% - 32px);
    max-width: 448px;
    margin: 0 auto 10px;
    margin-top: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 40px;
    padding: 4px 12px 8px;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

[data-theme="dark"] .bottom-nav {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    color: #2a2d34;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    min-width: 56px;
}

[data-theme="dark"] .nav-item {
    color: #f0f2f2;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 15%;
    width: 70%;
    height: 6px;
    background: linear-gradient(to left, #4a7c6f, #2c3e50);
    border-radius: 4px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-item.active span {
    color: #4a7c6f;
    font-weight: 700;
}

/* ---------- مودال خروج ---------- */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: 0.3s;
}

.logout-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.logout-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.logout-modal-content {
    position: relative;
    width: 85%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    animation: modalPop 0.3s;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logout-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.logout-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.logout-message {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.logout-actions {
    display: flex;
    gap: 12px;
}

.logout-cancel,
.logout-confirm {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.logout-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.logout-confirm {
    background: #E07A5F;
    color: white;
}

.logout-confirm:hover {
    background: #c85a4a;
}

/* helper */
.hidden {
    display: none !important;
}

/* ============================================ */
/* صفحه ایجاد استوری (create-story.html)        */
/* ============================================ */
.story-creator-body {
    background: #000;
    margin: 0;
    min-height: 100vh;
}

.story-creator-container {
    max-width: 480px;
    margin: 0 auto;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.creator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: white;
    z-index: 10;
}

.creator-close,
.creator-publish {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.creator-publish {
    color: var(--primary, #1B998B);
    font-weight: 600;
}

.creator-title {
    font-weight: 600;
    font-size: 16px;
}

.creator-preview {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
}

.creator-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.creator-placeholder {
    text-align: center;
    color: white;
}

.placeholder-icon {
    font-size: 64px;
    font-style: normal;
    margin-bottom: 16px;
    display: block;
}

.creator-file-input {
    display: none;
}

.creator-upload-btn {
    background: var(--primary, #1B998B);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    margin-top: 16px;
    cursor: pointer;
    font-family: 'IRANSansX', sans-serif;
}

/* متن‌های قابل جابجایی روی استوری */
.text-layer {
    position: absolute;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    white-space: pre-wrap;
    word-break: break-word;
    cursor: move;
    user-select: none;
    z-index: 5;
    outline: none;
    min-width: 50px;
    padding: 4px;
    line-height: 1.2;
}

.text-layer:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* ابزارهای ویرایش */
.creator-tools {
    background: #1a1a1a;
    padding: 16px;
    display: flex;
    gap: 20px;
    justify-content: center;
    border-top: 1px solid #333;
}

.creator-tool-btn {
    background: #333;
    border: none;
    color: white;
    font-size: 22px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    cursor: pointer;
}

.creator-tool-btn:hover {
    background: #4a7c6f;
}

.color-picker-wrapper {
    position: relative;
}

.creator-color-input {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 50px;
    height: 50px;
    opacity: 0;
    cursor: pointer;
}

/* ============================================ */
/* صفحه ایجاد پست – کارت‌های انتخاب نوع محتوا    */
/* ============================================ */
.post-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.post-type-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 24px;
    padding: 28px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.post-type-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-type-card.selected {
    border-color: var(--primary);
    background: rgba(74, 124, 111, 0.05);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.15);
}

.post-type-card .type-icon {
    font-size: 42px;
    line-height: 1;
    opacity: 0.8;
}

.post-type-card.selected .type-icon {
    opacity: 1;
}

.post-type-card .type-label {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-type-card .type-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: -4px;
}

/* اگر فقط متن انتخاب شود، کارت مربوطه ممکن است استایل خاصی بگیرد */
.post-type-card.text-only .type-icon {
    font-size: 48px;
}

/* ============================================ */
/* صفحه انتشار محتوا – استایل کامل               */
/* ============================================ */

.create-post-page {
    padding: 16px 14px 30px;
    /* فاصله از لبه‌های کانتینر */
}

.create-post-page .page-header {
    margin-bottom: 20px;
}

.create-post-page .page-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.create-post-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--orange);
}

/* کارت‌های انتخاب نوع محتوا (همان که قبلاً دادم، اینجا تأکید می‌شه) */
.post-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.post-type-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 24px;
    padding: 28px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.post-type-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-type-card.selected {
    border-color: var(--primary);
    background: rgba(74, 124, 111, 0.05);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.15);
}

.post-type-card .type-icon {
    font-size: 42px;
    line-height: 1;
    opacity: 0.8;
}

.post-type-card.selected .type-icon {
    opacity: 1;
}

.post-type-card .type-label {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-type-card .type-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: -4px;
}

/* فیلدهای ورودی */
.form-input,
.create-post-form select.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus,
select.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* بخش آپلود */
.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-light);
    border-radius: 24px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(74, 124, 111, 0.02);
}

.upload-area i {
    font-style: normal;
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    opacity: 0.7;
}

.upload-area p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.upload-area .browse-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.file-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* پیش‌نمایش فایل */
.preview-area {
    margin-top: 12px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 8px;
    text-align: center;
}

.preview-area img,
.preview-area video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    object-fit: contain;
}

.preview-area audio {
    width: 100%;
    margin: 8px 0;
}

/* چک‌باکس */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-primary);
}

/* دکمه‌های فرم */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.cancel-btn {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: var(--bg-card);
}

.publish-btn {
    flex: 2;
    padding: 14px;
    border-radius: 40px;
    background: var(--gradient-btn);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
    transition: var(--transition);
}

.publish-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(244, 162, 97, 0.3);
}

/* کلاس کمکی */
.hidden {
    display: none !important;
}

/* ============================================ */
/* صفحه امکانات (features) – استایل کامل         */
/* ============================================ */

.feature-section {
    margin-bottom: 32px;
}

.section-heading {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.feature-list {
    display: flex;
    flex-direction: column;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    background: rgba(74, 124, 111, 0.03);
}

.feature-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(74, 124, 111, 0.08);
    border-radius: 12px;
    padding: 8px;
}

/* آیکون‌های بزرگ‌تر در صفحه امکانات - فقط دسکتاپ */
@media (min-width: 768px) {
    .feature-icon-img {
        width: 56px;
        /* اندازه جدید */
        height: 56px;
        padding: 10px;
        /* کمی فضای داخلی بیشتر */
    }
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-label {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

.arrow-icon {
    font-style: normal;
    font-size: 20px;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.feature-item:hover .arrow-icon {
    transform: translateX(-4px);
    color: var(--orange);
}

/* فاصلهٔ بالای عنوان اصلی هر صفحه از هدر */
.page-header,
.feature-section:first-child {
    margin-top: 20px;
}

/* ======================== */
/* صفحه اکسپلور نهایی       */
/* ======================== */

/* تب‌ها */
.explore-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-main);
    position: sticky;
    top: 96px;
    z-index: 50;
    border-bottom: 1px solid var(--border-light);
}

.explore-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.explore-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.explore-content {
    display: none;
    padding: 16px 0 20px;
}

.explore-content.active {
    display: block;
}

/* گرید عکس/ویدئو */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: var(--bg-secondary);
    padding: 0;
}

.explore-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
}

.explore-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.explore-item:hover img {
    transform: scale(1.03);
}

.explore-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
}

.explore-item.large-left {
    grid-column: 2 / span 2;
}

/* سمت چپ */

.video-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* گرید صوت (۳ ستونه) */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.audio-card {
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    padding: 12px;
    position: relative;
}

.audio-card:hover {
    background: var(--bg-secondary);
}

.audio-play-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.audio-card strong {
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
}

.audio-duration {
    font-size: 12px;
    color: var(--text-light);
}

/* گرید متن (۳ ستونه) */
.text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.text-card {
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.text-card:hover {
    background: var(--bg-secondary);
}

.text-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-card small {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================ */
/* کارت ویژه (محبوب‌ترین) در تب صوت و متن       */
/* ============================================ */

/* کارت ویژه که یک ردیف کامل را می‌گیرد */
.featured-audio-card,
.featured-text-card {
    grid-column: 1 / -1;
    /* کل عرض گرید */
    height: 140px;
    /* ارتفاع مستطیلی (بیشتر از مربع) */
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 20px;
    overflow: hidden;
    position: relative;
}

/* کارت صوت ویژه */
.featured-audio-card {
    background: linear-gradient(135deg, rgba(74, 124, 111, 0.05), rgba(27, 153, 139, 0.08));
    border-right: 5px solid var(--primary);
}

.featured-audio-card .featured-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.featured-audio-card .featured-play-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.featured-audio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-audio-info .featured-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: rgba(244, 162, 97, 0.1);
    padding: 2px 12px;
    border-radius: 20px;
    width: fit-content;
}

.featured-audio-info strong {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    color: var(--text-primary);
}

.featured-audio-info span {
    font-size: 13px;
    color: var(--text-light);
}

.featured-audio-duration {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 20px;
}

/* کارت متن ویژه */
.featured-text-card {
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.08), rgba(244, 162, 97, 0.05));
    border-right: 5px solid var(--pink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 160px;
}

.featured-text-card .featured-text-content {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    max-width: 90%;
}

.featured-text-card .featured-text-author {
    margin-top: 8px;
    font-size: 14px;
    color: var(--pink);
    font-weight: 500;
}

.featured-text-card .featured-text-badge {
    font-size: 11px;
    color: var(--orange);
    background: rgba(244, 162, 97, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* دکمه چت و نوبت در هدر */
.chat-appointment-btn {
    background: var(--gradient-btn);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chat-appointment-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    /* آیکون سفید */
}

.chat-appointment-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ============================================ */
/* صفحه نمایش استوری (view-story)                */
/* ============================================ */
.story-viewer-body {
    background: #000;
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
}

.story-viewer-container {
    max-width: 480px;
    margin: 0 auto;
    background: #000;
    min-height: 100vh;
    position: relative;
    touch-action: pan-y;
    /* اجازه اسکرول عمودی */
    user-select: none;
}

/* نوار پیشرفت */
.progress-container {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 20;
}

.progress-segment {
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    flex: 1;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #ffffff !important;
    transition: width 0.1s linear;
}

/* هدر استوری */
.story-header {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    color: white;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.owner-name {
    font-weight: 600;
    font-size: 15px;
}

.story-time {
    font-size: 12px;
    opacity: 0.8;
    display: block;
}

.close-viewer {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

/* محتوای استوری */
.story-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-text {
    position: absolute;
    bottom: 120px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    pointer-events: none;
}

/* فوتر: دکمه لایک */
.story-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.like-btn {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 32px;
    width: 70px;
    height: 70px;
    border-radius: 35px;
    backdrop-filter: blur(8px);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.like-btn.liked {
    color: #E07A5F;
}

/* ============================================ */
/* صفحه فروشگاه (shop) – بنر گرد و کارت‌های جدید */
/* ============================================ */

/* بنر گرد */
.shop-carousel {
    border-radius: 24px;
    overflow: hidden;
    margin: 16px 14px 24px;
    box-shadow: var(--shadow-md);
}

.shop-carousel .carousel-inner {
    border-radius: 24px;
}

.shop-carousel .carousel-item img {
    height: 200px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .shop-carousel .carousel-item img {
        height: 280px;
    }
}

/* عنوان بخش */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 14px 14px;
}

.see-all {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* کارت‌های آزمون */
.test-section {
    margin-bottom: 24px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 14px;
}

.test-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.test-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.test-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.test-badge.free {
    background: var(--primary);
}

.test-body {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.test-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    min-height: 40px;
}

.test-price .current-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.test-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    transition: var(--transition);
}

.test-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
}

/* کارت‌های محصول (اسکرول بدون نوار) */
.product-section {
    margin-bottom: 32px;
}

.product-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 14px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-grid::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: auto;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.02);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.product-body {
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-author {
    font-size: 13px;
    color: var(--text-light);
    display: block;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 4px;
    min-height: 42px;
}

.old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
}

.new-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.add-to-cart {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    font-family: 'IRANSansX', Tahoma, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .product-card {
        min-width: 200px;
        max-width: 200px;
    }

    .product-title {
        font-size: 16px;
        min-height: 44px;
    }

    .new-price {
        font-size: 17px;
    }
}

/* ============================================ */
/* اصلاح نهایی کارت محصول – قیمت ثابت و خوانا    */
/* ============================================ */

.product-card .price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* <-- اینجا را از center به flex-start تغییر بده */
    justify-content: flex-end;
    min-height: 56px;
    margin: 8px 0 4px;
    gap: 4px;
}

.product-card .old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.product-card .new-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

/* ============================================ */
/* صفحه همه محصولات – گرید واکنش‌گرا             */
/* ============================================ */

.all-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 14px 30px;
}

/* دسکتاپ: ۳ ستونه */
@media (min-width: 768px) {
    .all-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================ */
/* انیمیشن تحریک‌کننده دکمه افزودن محتوا        */
/* ============================================ */

.add-content-btn {
    /* اطمینان از اینکه انیمیشن پس‌زمینه را خراب نکند */
    position: relative;
    z-index: 1;
    overflow: visible;
    /* برای هاله */
    animation: gentle-pulse 2.2s infinite ease-in-out;
}

/* هالهٔ درخشان دور دکمه */
.add-content-btn::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: rgba(74, 124, 111, 0.25);
    z-index: -1;
    opacity: 0;
    animation: soft-glow 2.2s infinite ease-in-out;
}

/* انیمیشن پالس */
@keyframes gentle-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* انیمیشن درخشش */
@keyframes soft-glow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* هنگام hover، کمی بیشتر جلب توجه کند */
.add-content-btn:hover {
    animation: none;
    /* حذف انیمیشن تکراری */
    transform: scale(1.12);
    box-shadow: 0 0 18px rgba(74, 124, 111, 0.5);
    transition: all 0.25s ease;
}

/* برای اطمینان از عدم تداخل در حالت فعال (کلیک) */
.add-content-btn:active {
    transform: scale(0.95);
}

/* ============================================ */
/* پروفایل متخصص – بخش بالایی (آواتار و آمار)    */
/* ============================================ */

.profile-info-section {
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar.large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, var(--primary), var(--pink));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar.large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
}

/* دکمه ویرایش دایره‌ای */
.edit-profile-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.edit-profile-btn:hover {
    background: var(--orange);
}

.edit-profile-btn img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

/* آمار (ژی کانکت و ...) */
.profile-stats {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ============================================ */
/* پروفایل متخصص – جزئیات، بایو و کارت تماس */
/* ============================================ */

.profile-details {
    padding: 0;
}

.profile-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-specialty {
    font-size: 16px;
    color: var(--orange);
    /* رنگ نارنجی ویژه برای تخصص */
    font-weight: 500;
    display: block;
    margin-bottom: 14px;
}

/* بایو (توضیحات) */
.profile-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-bio.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.profile-bio p {
    margin: 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 4px 0;
    margin-bottom: 16px;
    cursor: pointer;
}

/* کارت تماس */
.profile-contact-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 16px 18px;
    margin-top: 16px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-contact-card .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.profile-contact-card .contact-item i {
    font-style: normal;
    font-size: 18px;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.profile-contact-card .contact-item span {
    flex: 1;
}

/* ============================================ */
/* پست‌های پروفایل – فیلترها، منوی مرتب‌سازی      */
/* ============================================ */

.profile-posts-section {
    margin-top: 24px;
}

.posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.filter-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    /* برای منوی کشویی */
}

.filter-tabs {
    display: flex;
    gap: 6px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

/* دکمه مرتب‌سازی */
.sort-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sort-icon-img {
    width: 20px;
    height: 20px;
}

/* منوی کشویی مرتب‌سازی */
.sort-dropdown {
    position: absolute;
    top: 46px;
    left: 0;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-light);
    padding: 8px 0;
    min-width: 140px;
    z-index: 10;
    display: none;
}

.sort-dropdown.show {
    display: block;
}

.sort-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.sort-option:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.sort-option.active {
    font-weight: 700;
    color: var(--primary);
}

/* ============================================ */
/* پست‌های پروفایل – گرید ۳ ستونه (مشابه اکسپلور) */
/* ============================================ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: transparent;
}

/* کارت عکس / ویدئو */
.post-grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-card);
}

.post-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-grid-item:hover img {
    transform: scale(1.03);
}

/* دکمه پلی برای ویدئوها */
.video-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
}

/* کارت صوت (مربعی) */
.post-grid-item.audio-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
    text-align: center;
}

.audio-card-item .audio-play-btn {
    background: var(--primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.audio-card-item strong {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.audio-card-item .audio-duration {
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
}

/* کارت متن (مشابه اکسپلور) */
.post-grid-item.text-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
}

.text-card-item .quote-icon {
    font-size: 24px;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 6px;
}

.text-card-item p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ============================================ */
/* پروفایل متخصص – مودال فالو و اصلاحات          */
/* ============================================ */

/* مودال فالو */
.follow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.follow-modal.hidden {
    display: none;
}

.follow-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.follow-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
}

.follow-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.follow-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 8px;
}

.follow-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.follow-user-info strong {
    display: block;
    font-size: 15px;
}

.follow-user-info span {
    font-size: 12px;
    color: var(--text-light);
}

.follow-user-actions {
    margin-right: auto;
    display: flex;
    gap: 6px;
}

.follow-action-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.unfollow-btn {
    background: #E07A5F;
    color: white;
}

.remove-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.follow-back-btn {
    background: var(--primary);
    color: white;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* بایو */
.profile-bio.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
}

/* پست‌های گرید */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.post-grid-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-card);
}

.post-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.audio-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px;
}

.audio-play-btn {
    background: var(--primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.audio-card-item strong {
    font-size: 12px;
    color: var(--text-primary);
}

.audio-duration {
    font-size: 11px;
    color: var(--text-light);
}

.text-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
}

.quote-icon {
    font-size: 24px;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 6px;
}

.text-card-item p {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.stat-item {
    cursor: pointer;
}

/* دکمه "دنبال کردن" در مودال فالو */
.follow-user-item .follow-back-btn {
    background: var(--primary);
    /* یا #4a7c6f */
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

/* ============================================ */
/* ویرایش پروفایل متخصص – استایل‌های کامل و جدید */
/* ============================================ */

/* استایل‌های پایه فرم */
.edit-profile-page {
    padding: 0 14px 30px;
}

.edit-profile-page .page-header {
    margin: 20px 0 24px;
}

.edit-profile-page .page-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group small {
    font-weight: 400;
    color: var(--text-light);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

textarea.form-input {
    resize: vertical;
}

/* آپلود آواتار */
.avatar-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-avatar.large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, var(--primary), var(--pink));
    margin-bottom: 14px;
}

.profile-avatar.large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
}

.change-avatar-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 8px 20px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.change-avatar-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* شبکه‌های اجتماعی */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.social-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 12px;
    transition: var(--transition);
}

.social-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
}

.social-checkbox:has(input:checked) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.social-input-group {
    margin-top: 8px;
}

.social-input-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

/* دکمه‌های فرم */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.btn {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--bg-card);
}

.btn-primary {
    flex: 2;
    background: var(--gradient-btn);
    color: white;
    border: none;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(244, 162, 97, 0.3);
}

/* ============================================ */
/* داشبورد متخصص - استایل‌های جدید                */
/* ============================================ */

.dashboard-page {
    padding: 0 14px 30px;
}

/* تیتر صفحه */
.dashboard-page .page-header {
    margin: 20px 0 16px;
}

.dashboard-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

/* کارت‌های آمار (مربعی) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.stat-value {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* بخش‌های مختلف داشبورد */
.dashboard-section {
    margin-bottom: 24px;
}

.dashboard-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

/* ---------- نوبت‌های امروز ---------- */
.appointments-mini {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.appointment-mini-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.appointment-mini-item:last-child {
    border-bottom: none;
}

.appointment-mini-item .patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* برچسب‌های آنلاین / حضوری */
.badge-online {
    background: rgba(27, 153, 139, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: auto;
    white-space: nowrap;
}

.badge-inperson {
    background: rgba(244, 162, 97, 0.1);
    color: var(--orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: auto;
    white-space: nowrap;
}

/* ---------- مراجعه‌کنندگان اخیر ---------- */
.patients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patient-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.patient-item .patient-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info {
    flex: 1;
}

.patient-name {
    font-weight: 600;
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.patient-last-visit {
    font-size: 12px;
    color: var(--text-light);
}

/* برچسب‌ها در مراجعه‌کنندگان */
.patient-item .badge-online,
.patient-item .badge-inperson {
    margin-right: 0;
}

/* ---------- محتوای اخیر (پست‌ها) ---------- */
.content-stats {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.content-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.content-stat-item:last-child {
    border-bottom: none;
}

/* ============================================ */
/* داشبورد - آيتم‌های فعالیت (فالو، لایک، کامنت) */
/* ============================================ */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--bg-secondary);
}

.activity-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-info strong {
    font-size: 15px;
    color: var(--text-primary);
}

.activity-role {
    font-size: 12px;
    color: var(--text-light);
}

.activity-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    align-self: flex-start;
}

/* ============================================ */
/* صفحه چت و نوبت‌ها – استایل‌های اختصاصی        */
/* ============================================ */

.chat-page .page-header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.chat-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

/* تب‌های ۳ ستونه */
.chat-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 0 16px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
}

.chat-tab-grid {
    background: none;
    border: none;
    padding: 12px 4px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.chat-tab-grid.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 124, 111, 0.15);
}

.chat-tab-content {
    padding: 16px 0 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* لیست چت */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.chat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.chat-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.chat-name {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-time {
    font-size: 12px;
    color: var(--text-light);
}

.chat-preview {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-badge {
    background: var(--orange);
    color: white;
    font-size: 13px;
    font-weight: 600;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

/* کارت‌های نوبت */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.appointment-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.appointment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.patient-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.patient-info {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.appointment-time {
    font-size: 13px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.appointment-body {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 12px 14px;
    border-radius: 16px;
}

.form-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 30px;
}

.has-form {
    background: rgba(74, 124, 111, 0.08);
    color: var(--primary);
}

.no-form {
    background: rgba(224, 122, 95, 0.08);
    color: var(--orange);
}

.appointment-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 18px;
}

.view-form-btn,
.create-form-btn,
.chat-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.view-form-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 124, 111, 0.15);
}

.create-form-btn {
    background: var(--orange);
    color: white;
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.15);
}

.chat-now-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

/* تقویم */
.calendar-container {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 20px 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.month-nav {
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    border: 1px solid var(--border-light);
}

.calendar-month-year {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 13px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-cell {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.calendar-cell.empty {
    background: transparent;
    cursor: default;
}

.calendar-cell.has-event {
    background: rgba(74, 124, 111, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.calendar-cell:hover:not(.empty) {
    background: var(--primary);
    color: white;
    transform: scale(0.95);
}

.selected-date-info {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
}

/* ============================================ */
/* مقالات علمی - استایل‌های کامل                 */
/* ============================================ */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
}

.article-card {
    background: var(--bg-card);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-img {
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.02);
}

.article-body {
    padding: 20px;
}

.article-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.read-more-btn:hover {
    background: var(--orange);
}

/* ============================================ */
/* بخش مقاله‌های پرکاربرد (اسکرول افقی)         */
/* ============================================ */

.popular-articles {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.articles-horizontal {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.articles-horizontal::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.article-card-small {
    min-width: 220px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-shrink: 0;
    overflow: hidden;
}

.article-card-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-thumbnail {
    width: 100%;
    height: 140px;
    /* ارتفاع ثابت برای همهٔ عکس‌ها */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    /* اختیاری: کمی انحنا فقط در بالا */
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-small:hover .article-thumbnail img {
    transform: scale(1.03);
}

.article-small-body {
    padding: 14px 14px 16px;
}

.article-small-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.4;
}

.article-small-author {
    font-size: 13px;
    color: var(--text-light);
}

.article-meta-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.article-meta-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

/* ============================================ */
/* صفحه همه مقاله‌های پرکاربرد – گرید ۲ ستونه    */
/* ============================================ */

.all-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.article-card-full {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-card-img {
    width: 100%;
    height: 160px;
    /* ارتفاع یکسان برای تمام تصاویر */
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-full:hover .article-card-img img {
    transform: scale(1.03);
}

.article-card-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-card-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.article-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.article-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

.read-more-btn-small {
    display: inline-block;
    text-align: center;
    background: var(--gradient-btn);
    color: white;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 8px;
    width: fit-content;
}

.read-more-btn-small:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.2);
}

/* ============================================ */
/* جزئیات مقاله (article-detail)                 */
/* ============================================ */
.article-detail {
    padding-bottom: 30px;
}

/* تصویر اصلی + کارت نویسنده */
.article-hero {
    position: relative;
    margin-bottom: 24px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.author-card {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 20px 8px 16px;
    border-radius: 60px;
    border: 1px solid var(--pink);
    /* حاشیه صورتی */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .author-card {
    background: rgba(35, 38, 43, 0.9);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--pink);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.author-title {
    font-size: 12px;
    color: var(--text-light);
}

/* محتوای مقاله */
.article-content {
    padding: 0 16px;
}

.article-main-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.4;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-content h2 {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--pink);
    margin: 28px 0 16px;
}

.article-figure {
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-figure img {
    width: 100%;
    display: block;
}

/* تاریخ انتشار */
.article-publish-date {
    padding: 24px 16px 8px;
    text-align: left;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
    margin-left: 14px;
    margin-right: 14px;
}

.article-publish-date span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

/* ============================================ */
/* پادکست‌ها – استایل‌های مشابه مقالات            */
/* ============================================ */

.podcasts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.podcast-card {
    background: var(--bg-card);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.podcast-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.podcast-img {
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.podcast-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-img img {
    transform: scale(1.02);
}

.podcast-body {
    padding: 20px;
}

.podcast-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.podcast-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.podcast-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

.podcast-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.podcast-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.read-more-btn:hover {
    background: var(--orange);
}

/* پادکست‌های کاربردی (اسکرول بدون نوار) */
.popular-podcasts {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.podcasts-horizontal {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.podcasts-horizontal::-webkit-scrollbar {
    display: none;
}

.podcast-card-small {
    min-width: 220px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.podcast-card-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.podcast-thumbnail {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card-small:hover .podcast-thumbnail img {
    transform: scale(1.03);
}

.podcast-small-body {
    padding: 14px;
}

.podcast-small-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.4;
}

.podcast-small-host {
    font-size: 13px;
    color: var(--text-light);
}

.podcast-meta-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.podcast-meta-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================ */
/* صفحه همه پادکست‌ها – گرید ۲ ستونه ثابت        */
/* ============================================ */

.all-podcasts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.podcast-card-full {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.podcast-card-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.podcast-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.podcast-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card-full:hover .podcast-card-img img {
    transform: scale(1.03);
}

.podcast-card-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.podcast-card-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.podcast-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.podcast-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.podcast-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

.read-more-btn-small {
    display: inline-block;
    text-align: center;
    background: var(--gradient-btn);
    color: white;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 8px;
    width: fit-content;
}

.read-more-btn-small:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.2);
}

/* ============================================ */
/* جزئیات پادکست (podcast-detail)                */
/* ============================================ */

.podcast-detail {
    padding-bottom: 30px;
}

.podcast-hero {
    margin-bottom: 24px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.podcast-hero .hero-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.podcast-main-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.podcast-full-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.podcast-info-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
}

.podcast-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.podcast-info-item .meta-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}

.episodes-section {
    margin-top: 8px;
}

.episodes-section .section-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.episode-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.episode-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.episode-duration {
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
}

/* پلیر صوتی (همان استایل global در پروژه) 
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: 60px;
    direction: ltr;
}

.play-pause-btn {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}*/

.play-pause-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.15);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: right;
}

/* ============================================ */
/* لایوها – استایل‌های مشترک                      */
/* ============================================ */

/* ---------- کارت بزرگ پربازدید ---------- */
.featured-live {
    margin-bottom: 28px;
}

.section-heading {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.live-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.live-card.featured {
    margin-bottom: 0;
}

.live-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn-large:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.05);
}

.live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E07A5F;
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.live-body {
    padding: 20px;
}

.live-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.live-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.live-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.live-meta .host,
.live-meta .duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.live-meta .meta-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}

.live-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    font-size: 13px;
    color: var(--text-light);
}

.live-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-footer .meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

/* ---------- لایوهای دیگر (اسکرول افقی) ---------- */
.other-lives {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.lives-horizontal {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lives-horizontal::-webkit-scrollbar {
    display: none;
}

.live-card.small {
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
}

.live-card.small .live-thumbnail {
    aspect-ratio: 16 / 9;
}

.live-card.small .live-body {
    padding: 14px;
}

.live-card.small .live-title {
    font-size: 16px;
    margin-bottom: 6px;
}

.live-card.small .host {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}

.live-meta-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.live-meta-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- صفحه مشاهده همه لایوها (all-lives) ---------- */
.all-lives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.live-card-full {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.live-card-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.live-card-img {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.live-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-card-img .play-btn-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.live-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-card-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.live-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.live-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.meta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

.read-more-btn-small {
    display: inline-block;
    text-align: center;
    background: var(--gradient-btn);
    color: white;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 8px;
    width: fit-content;
}

.read-more-btn-small:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.2);
}

/* ---------- صفحه جزئیات لایو (live-detail) ---------- */
.live-detail .content-wrapper {
    padding-top: 16px;
}

.live-detail-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.live-detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.live-info-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
}

.live-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.live-info-item .meta-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}

.live-detail-btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
}

.live-detail-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(244, 162, 97, 0.3);
}

/* تصویر اصلی لایو در صفحه جزئیات */
.live-hero {
    margin-bottom: 24px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.live-hero .live-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.live-hero .live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-hero .play-btn-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.live-hero .live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E07A5F;
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

/* ============================================ */
/* واژه‌نامه تخصصی – استایل‌های کامل              */
/* ============================================ */

/* اصطلاح امروز */
.term-of-day {
    margin: 20px 0 24px;
}

.term-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.term-card.featured {
    background: linear-gradient(145deg, var(--bg-card), rgba(74, 124, 111, 0.03));
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.term-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
}

.term-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.term-english {
    background: var(--bg-secondary);
    padding: 14px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.en-label {
    color: var(--text-light);
    font-weight: 500;
}

.en-value {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Peyda Web', Tahoma, sans-serif;
}

/* واژه‌های گذشته */
.past-terms {
    margin-top: 32px;
}

.section-heading {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.term-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.term-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hidden-term {
    display: none;
    /* مخفی در ابتدا */
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.term-title-small {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.term-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.term-desc-small {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.term-english-small {
    background: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
}

/* دکمه مشاهده بیشتر */
.view-more-wrapper {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 16px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 40px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.view-more-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
}

/* ============================================ */
/* تالار تجربه‌ها – استایل‌های کامل               */
/* ============================================ */

/* موضوع هفته */
.topic-section {
    margin: 20px 0 24px;
}

.topic-card {
    background: linear-gradient(145deg, rgba(212, 165, 165, 0.08), rgba(27, 153, 139, 0.04));
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 165, 165, 0.2);
    box-shadow: var(--shadow-sm);
}

.topic-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pink);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 40px;
    margin-bottom: 16px;
}

.topic-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.topic-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* تجربیات فصل گذشته */
.past-experiences-wrapper {
    position: relative;
}

.past-experiences-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.past-experiences-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.arrow-icon {
    font-size: 14px;
    transition: transform 0.2s;
}

.past-list {
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.past-list.hidden {
    display: none;
}

.past-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.past-item:last-child {
    border-bottom: none;
}

.past-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* بخش نظر شما (همان استایل کامنت‌ها) */
.your-comment-section {
    margin: 24px 0;
}

/* نظرات دیگران */
.comments-section {
    margin-top: 24px;
}

.section-subtitle {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.comment-card.pinned {
    border-right: 5px solid var(--pink);
    background: linear-gradient(to left, var(--bg-card), rgba(212, 165, 165, 0.02));
}

.comment-pin {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.like-btn {
    background: none;
    border: 1px solid rgba(212, 165, 165, 0.3);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.like-btn:hover {
    background: rgba(212, 165, 165, 0.1);
    border-color: var(--pink);
    color: var(--pink);
}

/* ============================================ */
/* افکت پرتاب قلب برای دکمه لایک                 */
/* ============================================ */
.floating-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.like-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(212, 165, 165, 0.3);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.like-btn:hover {
    background: rgba(212, 165, 165, 0.1);
    border-color: var(--pink);
    color: var(--pink);
}

.heart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s;
}

.like-btn:active .heart-icon {
    transform: scale(1.3);
}

/* ============================================ */
/* فرم ثبت نظر تالار تجربه‌ها                   */
/* ============================================ */
.add-comment-section {
    margin-top: 16px;
}

.comment-form {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.comment-input-forum {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    transition: var(--transition);
    margin-bottom: 12px;
}

.comment-input-forum :focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

.submit-comment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(74, 124, 111, 0.2);
    margin-left: auto;
    /* چپ‌چین (راست‌چین در RTL) */
    margin-top: 8px;
    float: none;
    /* ← حذف float */
}

.submit-comment-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(244, 162, 97, 0.3);
}



/* عنوان دکمه "تجربیات فصل گذشته" */
.past-experiences-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* راست‌چین */
    text-align: right;
    gap: 8px;
    margin: 20px 0 12px;
    /* فاصله از بالا و پایین */
}

/* ============================================ */
/* صفحات معرفی فیلم، موسیقی و کتاب                */
/* ============================================ */

.movie-hero,
.media-hero {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    margin-bottom: 20px;
}

.movie-hero-overlay,
.media-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%);
    backdrop-filter: blur(1px);
}

.movie-hero-content,
.media-hero-content {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.movie-poster-card,
.media-poster-card {
    width: 110px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(212, 165, 165, 0.5);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.movie-poster-card img,
.media-poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-title-section,
.media-title-section {
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.movie-en-title,
.media-en-title {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 4px;
}

.movie-fa-title,
.media-fa-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.movie-rating,
.media-rating {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgba(212, 165, 165, 0.5);
}

.media-info-section {
    padding: 8px 16px 0;
    margin-bottom: 20px;
}

.info-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(212, 165, 165, 0.2);
}

.info-row {
    display: flex;
    margin-bottom: 16px;
    font-size: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 100px;
    color: #d4a5a5;
    font-weight: 600;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-primary);
    line-height: 1.6;
}

.media-comments-section {
    padding: 20px 16px;
}

.section-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(212, 165, 165, 0.15);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.related-media,
.related-movies {
    padding: 8px 16px 30px;
}

.related-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-scroll::-webkit-scrollbar {
    display: none;
}

.media-mini-card,
.movie-mini-card {
    flex: 0 0 130px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(212, 165, 165, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.media-mini-card:hover,
.movie-mini-card:hover {
    transform: translateY(-3px);
    border-color: #d4a5a5;
}

.media-mini-card img,
.movie-mini-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mini-title {
    display: block;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
}

/* ============================================ */
/* حباب نگرانی‌ها و تمرین تنفس                   */
/* ============================================ */

/* ---------- استایل‌های مشترک ---------- */
.page-header-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.page-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.page-title-gradient {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 26px;
    font-weight: 900;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 8px 0 20px;
    line-height: 1.6;
}

/* ---------- حباب نگرانی‌ها ---------- */
.bubble-form {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.bubble-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 14px 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    resize: vertical;
}

.bubble-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.bubble-submit-btn {
    margin-top: 12px;
    width: 100%;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 14px;
    font-family: 'Peyda Web', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(74, 124, 111, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bubble-submit-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.bubbles-container {
    position: relative;
    background: rgba(168, 155, 181, 0.05);
    border-radius: 28px;
    border: 1px solid var(--border-light);
    min-height: 400px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .bubbles-container {
        min-height: 500px;
    }
}

.worry-bubble {
    position: absolute;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle at 30% 30%, rgba(212, 165, 165, 0.6), rgba(168, 155, 181, 0.4));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05), inset 0 -5px 15px rgba(255, 255, 255, 0.3);
    animation: floatBubble 6s infinite ease-in-out;
    transform-origin: center center;
}

.worry-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

.bubble-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 10px;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.worry-bubble.pop {
    animation: popBubble 0.3s ease forwards;
    pointer-events: none;
}

@keyframes popBubble {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ---------- تمرین تنفس ---------- */
.breathing-exercise {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.breath-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, var(--primary), #0F6B61);
    box-shadow: 0 20px 40px rgba(74, 124, 111, 0.3),
        0 0 0 15px rgba(74, 124, 111, 0.05),
        0 0 0 30px rgba(74, 124, 111, 0.02);
    transition: transform 1s ease;
    margin-bottom: 24px;
    transform: scale(1);
}

.breath-instruction {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.breath-timer {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
}

.breath-counter {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.breath-start-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 14px 40px;
    font-family: 'Peyda Web', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
    transition: var(--transition);
}

.breath-start-btn.running {
    background: linear-gradient(145deg, #E07A5F, #c85a4a);
    box-shadow: 0 8px 20px rgba(224, 122, 95, 0.25);
}

.breath-start-btn:hover {
    transform: translateY(-2px);
}

.breathing-info {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.breathing-info h3 {
    font-family: 'Peyda Web', sans-serif;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.breathing-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.breathing-info li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-primary);
}

.breathing-info li strong {
    color: var(--orange);
}

.breathing-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================ */
/* صفحات منو – استایل‌های کامل                    */
/* ============================================ */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.notification-item.unread {
    border-right: 4px solid var(--primary);
    background: rgba(27, 153, 139, 0.03);
}

.notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.notif-content {
    flex: 1;
}

.notif-text {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.notif-time {
    font-size: 12px;
    color: var(--text-light);
}

.info-card-static {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.info-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.info-content {
    padding: 20px;
}

.info-content .info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 15px;
}

.info-content .info-label {
    width: 80px;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

.info-content .info-value {
    color: var(--text-primary);
}

.info-text {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 22px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 16px 18px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-arrow {
    font-size: 14px;
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 18px 18px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.saved-tab-content {
    margin-top: 16px;
}

.saved-pane {
    display: none;
}

.saved-pane.active {
    display: block;
}

.saved-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saved-item {
    position: relative;
    width: calc(33.333% - 7px);
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.saved-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saved-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 12px;
    text-align: center;
}

.saved-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.saved-remove-btn img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.empty-saved {
    text-align: center;
    padding: 50px 16px;
}

.empty-saved img {
    width: 80px;
    opacity: 0.4;
    margin-bottom: 16px;
}

.empty-saved p {
    color: var(--text-light);
    font-size: 16px;
}

/* ============================================ */
/* موشن‌های منو و نوتیفیکیشن                      */
/* ============================================ */

/* چرخش و بزرگ شدن آیکون منو در هاور */
.menu-list a:hover .menu-img-icon {
    transform: scale(1.2) rotate(5deg);
    transition: transform 0.2s ease;
}

/* انیمیشن پالس برای عدد نوتیفیکیشن */
.badge-notif {
    animation: soft-pulse 2s infinite;
}

@keyframes soft-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        background: var(--orange);
    }
}

/* ============================================ */
/* صفحه محتوای ذخیره شده – گرید و کارت‌ها        */
/* ============================================ */

.saved-tab-content {
    margin-top: 16px;
}

.saved-pane {
    display: none;
}

.saved-pane.active {
    display: block;
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* کارت عکس/ویدئو */
.saved-grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.saved-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* دکمه پلی ویدئو */
.saved-grid-item.video-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* کارت صوت مربعی */
.audio-card-item {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    text-align: center;
}

.audio-play-btn {
    background: var(--primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.audio-card-item strong {
    font-size: 12px;
    color: var(--text-primary);
}

.audio-duration {
    font-size: 11px;
    color: var(--text-light);
}

/* پیام خالی */
.empty-saved {
    text-align: center;
    padding: 60px 16px;
}

.empty-saved p {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 16px;
}

/* ============================================ */
/* صندوقچه نظرات – استایل‌های کامل                */
/* ============================================ */

.new-feedback {
    margin-bottom: 32px;
}

.greeting-card {
    background: linear-gradient(145deg, rgba(212, 165, 165, 0.08), rgba(27, 153, 139, 0.04));
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 165, 165, 0.2);
}

.greeting-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

.submit-feedback-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 14px 24px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
}

.submit-feedback-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(244, 162, 97, 0.3);
}

/* تاریخچه */
.feedback-history {
    margin-top: 24px;
}

.section-subtitle {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.feedback-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.feedback-date {
    font-size: 13px;
    color: var(--text-light);
}

.feedback-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-right: 8px;
    border-right: 3px solid var(--pink);
}

/* پاسخ تیم */
.team-response {
    background: rgba(212, 165, 165, 0.05);
    border-radius: 20px;
    padding: 18px;
    margin-top: 16px;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/*.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pink);
    border: 2px solid white;
}*/

.team-label {
    font-weight: 700;
    color: var(--pink);
}

.response-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.response-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    text-align: left;
}

/* حالت انتظار */
.pending-status {
    border: 1px dashed var(--pink);
    border-radius: 20px;
    padding: 20px;
    background: rgba(212, 165, 165, 0.02);
    margin-top: 16px;
}

.zhikland-mascot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.mascot-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-main);
    object-fit: cover;
    border: 2px var(--pink);
}

.mascot-text {
    font-weight: 600;
    color: var(--pink);
}

.pending-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============================================ */
/* صفحات جزئیات پست – استایل‌های ایزوله           */
/* ============================================ */

.post-detail-page .post-card {
    margin: 16px 14px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.post-detail-profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.post-detail-profile-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.post-detail-profile-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.post-detail-profile-btn:hover img {
    filter: brightness(0) invert(1);
}

.post-detail-comment-box {
    margin: 0 16px 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.post-detail-comment-box.hidden {
    display: none;
}

.post-detail-comment-input-row {
    display: flex;
    gap: 8px;
}

.post-detail-comment-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.post-detail-comment-submit-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.post-detail-comments-section {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-detail-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 14px 16px;
    border-radius: 18px;
}

.post-detail-comment-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-detail-comment-content {
    flex: 1;
}

.post-detail-comment-author {
    margin-bottom: 6px;
}

.post-detail-comment-author strong {
    font-size: 15px;
    color: var(--text-primary);
    display: block;
}

.post-detail-comment-author span {
    font-size: 12px;
    color: var(--text-light);
}

.post-detail-comment-content p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.post-detail-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid rgba(212, 165, 165, 0.3);
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.post-detail-like-btn:hover {
    background: rgba(212, 165, 165, 0.1);
    border-color: var(--pink);
    color: var(--pink);
}

.post-detail-like-btn .heart-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.hidden-extra {
    display: none;
}

.post-detail-view-more-comments-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.post-detail-view-more-comments-btn:hover {
    background: var(--primary);
    color: white;
}

/* فقط دکمهٔ «مشاهدهٔ بیشتر» در کارت‌های پست صفحه اصلی */
.post-card .read-more-btn {
    display: block;
    margin: 8px 16px 0 16px;
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-align: right;
    border-radius: 0;
    box-shadow: none;
    width: auto;
}

/* فقط دکمهٔ «مشاهدهٔ بیشتر» در بخش بیوی پروفایل */
.profile-details .read-more-btn {
    display: block;
    margin: 8px 0 16px 0;
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-align: right;
    border-radius: 0;
    box-shadow: none;
    width: auto;
}

/* ============================================ */
/* صفحه رزرو نوبت – استایل‌های کامل               */
/* ============================================ */

.specialist-info {
    margin-bottom: 24px;
}

.specialist-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-card);
    border-radius: 28px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.specialist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 2px;
    background: linear-gradient(145deg, var(--primary), var(--orange));
}

.specialist-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
}

.specialist-name {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.specialist-title {
    font-size: 14px;
    color: var(--primary);
}

.section-label {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.date-selection,
.time-selection,
.session-type,
.visit-reason,
.for-other {
    margin-bottom: 24px;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.month-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-month {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    color: var(--primary);
}

.days-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.days-scroll::-webkit-scrollbar {
    display: none;
}

.days-container {
    display: flex;
    gap: 10px;
}

.day-btn {
    min-width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.day-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-btn {
    padding: 14px 8px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.time-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-btn.unavailable {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
    border-color: transparent;
    text-decoration: line-through;
    opacity: 0.6;
    pointer-events: none;
}

[data-theme="dark"] .time-btn.unavailable {
    background: #2a2d32;
    color: #555;
}

.type-options {
    display: flex;
    gap: 20px;
}

.type-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    display: inline-block;
}

.type-option input:checked+.type-custom {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 5px var(--bg-card);
}

.reason-input {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
}

.reason-input:focus {
    outline: none;
    border-color: var(--primary);
}

.other-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    direction: ltr;
    /* مهم برای جهت‌گیری صحیح */
}

.switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    /* به جای right، از left استفاده می‌کنیم */
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border-radius: 34px;
    border: 1px solid var(--border-light);
    transition: 0.2s;
}

.switch-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    /* دایره در سمت چپ */
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

input:checked+.switch-slider {
    background: var(--primary);
}

input:checked+.switch-slider::before {
    transform: translateX(24px);
    /* حرکت به سمت راست (چپ بصری) */
}

/* اطمینان از راست‌چین بودن فیلد شماره تماس */
.other-fields .form-input {
    text-align: right;
    direction: rtl;
}

input:checked+.switch-slider {
    background: var(--primary);
}

.other-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.other-fields.hidden {
    display: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.appointment-action {
    margin-top: 8px;
}

.book-appointment-btn {
    width: 100%;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 18px 24px;
    font-family: 'Peyda Web', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
    transition: var(--transition);
}

.book-appointment-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal.hidden {
    display: none;
}

.success-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.success-modal-content {
    position: relative;
    width: 85%;
    max-width: 380px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 48px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
    animation: modalPop 0.3s;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin-bottom: 24px;
}

.success-title {
    font-family: 'Peyda Web', sans-serif;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.success-doctor-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 16px;
    margin-bottom: 20px;
}

.doctor-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: block;
}

.doctor-specialty {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.success-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 28px;
}

.success-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 16px 24px;
    width: 100%;
    font-family: 'Peyda Web', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

/*آمار بازدید برای صفحات جزئیات پست*/
.post-detail-page .post-views-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px 12px 16px;
    font-size: 12px;
    /* کوچک‌تر شد */
    color: var(--text-light);
    margin-left: auto;
    /* هل دادن به سمت چپ (انتهای خط) */
    width: fit-content;
    /* فقط به اندازه محتوایش فضا بگیرد */
}

.post-detail-page .views-icon-detail {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
}

/* ============================================ */
/* سبد خرید – استایل‌های کامل                     */
/* ============================================ */
.cart-page .page-header {
    margin-top: 20px;
    margin-bottom: 24px;
}

.cart-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cart-item-author {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 16px;
}

.cart-item-price .old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 13px;
    margin-left: 8px;
}

.cart-item-price .new-price {
    color: var(--orange);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.remove-item-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.remove-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.remove-item-btn:hover .remove-icon {
    opacity: 1;
}

.discount-section {
    margin-bottom: 24px;
}

.discount-input-wrapper {
    display: flex;
    gap: 12px;
}

.discount-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
}

.discount-input:focus {
    outline: none;
    border-color: var(--primary);
}

.apply-discount-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.apply-discount-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
}

.cart-summary {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.summary-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-primary);
}

.summary-row.discount {
    color: var(--orange);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.checkout-action {
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 18px;
    font-family: 'Peyda Web', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
    transition: var(--transition);
}

.checkout-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

/* ============================================ */
/* سابقه خرید – استایل‌های کامل                   */
/* ============================================ */
.purchase-history-page .page-header {
    margin-top: 20px;
    margin-bottom: 24px;
}

.purchase-history-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.purchase-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.purchase-date {
    font-weight: 600;
    color: var(--text-primary);
}

.purchase-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.purchase-status.delivered {
    background: rgba(74, 124, 111, 0.1);
    color: var(--primary);
}

.purchase-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.purchase-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.purchase-item img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 600;
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.item-meta {
    font-size: 12px;
    color: var(--text-light);
}

.item-price {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.purchase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-primary);
}

.reorder-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.reorder-btn:hover {
    background: var(--primary);
    color: white;
}

.empty-history {
    text-align: center;
    padding: 60px 20px;
}

.empty-illustration {
    width: 80px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.empty-history h3 {
    font-family: 'Peyda Web', sans-serif;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-history p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.shop-now-btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.2);
}

.shop-now-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

/* ============================================ */
/* صفحه اسپلش (splash.html)                      */
/* ============================================ */

.splash-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, #4a7c6f 0%, #2c3e50 50%, #1B998B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-container {
    text-align: center;
    color: white;
}

.splash-content {
    margin-bottom: 48px;
}

/* لوگوی اسپلش */
.splash-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

/* لوگوی صفحه اسپلش (نسخه تصویری) */
.splash-logo img {
    width: 200px;
    /* عرض ثابت */
    max-width: 70vw;
    /* جلوگیری از بیرون‌زدگی در موبایل */
    height: auto;
    /* حفظ تناسب */
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.splash-title-en {
    font-family: 'Armita Black', Tahoma, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0 8px;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.splash-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
}

/* لودینگ (سه نقطه متحرک) */
.splash-loader {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.loader-dot {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.4s infinite ease-in-out;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ============================================ */
/* صفحات ورود و ثبت‌نام – استایل‌های کامل         */
/* ============================================ */

/* بک‌گراند عمومی صفحات Auth 
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: url('../img/) no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}*/

/* بک‌گراند گرادینت شیک برای صفحات Auth */
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, #4a7c6f 0%, #2c3e50 70%, #1B998B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* overlay تیره برای خوانایی بهتر متن */
.auth-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* می‌توانی میزان تیرگی را تنظیم کنی */
    z-index: 0;
}

/* کانتینر اصلی فرم‌ها */
.auth-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* لوگو وسط‌چین */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    display: inline-block;
    margin: 0 auto;
}

.auth-logo .header-logo-img {
    height: 60px;
    /* در صورت نیاز می‌توانی اندازه را تنظیم کنی */
}

/* کارت شیشه‌ای یا ساده */
.auth-card {
    background: var(--bg-card);
    border-radius: 36px;
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.auth-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
    text-align: center;
}

.auth-message {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* فرم‌ها */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-form .form-input {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

/* گزینه‌های فرم (مرا به خاطر بسپار) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* دکمه اصلی ورود/ثبت‌نام */
.auth-submit-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 16px 24px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
}

.auth-submit-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(244, 162, 97, 0.3);
}

/* فوتر فرم */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* دکمه‌های انتخاب نقش (خوش‌آمدگویی و انتخاب نقش) */
.auth-actions,
.role-selection {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.auth-btn,
.role-card {
    flex: 1;
    padding: 20px 16px;
    border-radius: 28px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--bg-secondary);
}

/* دکمه‌های خوش‌آمدگویی */
.auth-btn.primary {
    background: var(--gradient-btn);
    color: white;
    border: none;
}

.auth-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.auth-btn:hover,
.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: var(--bg-card);
}

.auth-btn.primary:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
}

.auth-btn.secondary:hover {
    background: var(--primary);
    color: white;
}

/* کارت‌های انتخاب نقش */
.role-icon {
    display: block;
    margin: 0 auto 14px auto;
    /* وسط‌چین + فاصله تا عنوان */
    width: 64px;
    /* عرض ثابت (دلخواه) */
    height: auto;
    /* حفظ تناسب */
}

.role-card .role-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.role-card .role-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* مودال فراموشی رمز عبور */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal.hidden {
    display: none !important;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: 36px;
    padding: 32px 24px 24px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    animation: modalFloat 0.3s ease;
}

.auth-modal-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
    text-align: center;
}

.auth-modal-message {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-modal-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-modal .modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-modal .modal-close:hover {
    background: var(--bg-secondary);
}

@keyframes modalFloat {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================ */
/* صفحات خطا (۴۰۴ و آفلاین) – استایل‌های کامل      */
/* ============================================ */

.error-body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-container {
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.error-content {
    animation: fadeInUp 0.6s ease;
}

/* انیمیشن شناور برای آیکون */
.error-illustration {
    text-align: center;
    margin-bottom: 24px;
    animation: floatIcon 3s ease-in-out infinite;
}

.error-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    /* این خط مهم است */
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.error-code {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 96px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.error-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.error-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.error-btn.primary {
    background: var(--gradient-btn);
    color: white;
    border: none;
    box-shadow: 0 8px 16px rgba(74, 124, 111, 0.2);
}

.error-btn.primary:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(244, 162, 97, 0.3);
}

.error-btn.secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.error-btn.secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* نتایج جستجو – استایل‌های کامل                  */
/* ============================================ */

.search-results-page .search-header,
.search-no-results-page .search-header {
    margin: 20px 0 16px;
}

.search-results-page .page-title,
.search-no-results-page .page-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
}

.result-count {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* تب‌های فیلتر */
.search-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab {
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.search-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* لیست نتایج */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.8;
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.result-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.result-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* بخش محتوای پیشنهادی */
.search-suggestions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* حالت بدون نتیجه */
.no-results-content {
    text-align: center;
    padding: 40px 20px;
}

.no-results-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: floatIcon 3s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.no-results-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-results-actions .error-btn {
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.no-results-actions .error-btn.primary {
    background: var(--gradient-btn);
    color: white;
    border: none;
}

.no-results-actions .error-btn.secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.no-results-actions .error-btn:hover {
    transform: translateY(-2px);
}

/* ============================================ */
/* تغییر رمز عبور – کارت اصلی                    */
/* ============================================ */
.password-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    margin: 0 0 20px 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.password-card .form-group {
    margin-bottom: 20px;
}

.password-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.password-card .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.password-card .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

.password-card .form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.cancel-btn {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: var(--bg-card);
}

.save-btn {
    flex: 2;
    padding: 14px;
    border-radius: 40px;
    background: var(--gradient-btn);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
    transition: var(--transition);
}

.save-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
}

/* ============================================ */
/* آزمون‌ها – استایل‌های کامل                     */
/* ============================================ */

.tests-page .page-header {
    margin: 20px 0 24px;
}

.tests-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.tests-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* کارت آزمون (مشابه مقاله) */
.test-card-full {
    background: var(--bg-card);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.test-card-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.test-card-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .test-card-img {
        height: 350px;
    }
}

.test-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.test-badge.free {
    background: var(--primary);
}

.test-badge.discount {
    background: var(--orange);
}

.test-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-card-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.test-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.test-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 16px;
}

.test-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.test-meta .meta-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}

.test-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.test-price.free {
    color: var(--primary);
}

.test-price .old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
    margin-left: 8px;
}

.test-price .new-price {
    color: var(--orange);
}

.start-test-btn {
    width: 100%;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 14px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
    margin-top: 8px;
}

.start-test-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

/* ============================================ */
/* سوالات آزمون – استایل‌های کامل                 */
/* ============================================ */
.test-questions-page .page-header {
    margin: 20px 0 24px;
}

.test-questions-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.question-card.answered {
    border-right: 4px solid var(--primary);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.question-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.question-status {
    font-size: 13px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-status.unanswered {
    color: var(--text-light);
}

.status-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.question-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.option-item:hover {
    border-color: var(--primary);
}

.option-item input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s;
}

.option-item input[type="radio"]:checked+.radio-custom {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 5px var(--bg-card);
}

.option-text {
    font-size: 15px;
    color: var(--text-primary);
    flex: 1;
}

.finish-section {
    margin: 24px 0 8px;
}

.finish-test-btn {
    width: 100%;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 18px 24px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
}

.finish-test-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

/* ============================================ */
/* صفحه یادداشت جلسه – استایل‌های کامل            */
/* ============================================ */

.session-note-page .page-header {
    margin: 20px 0 24px;
}

.session-note-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

/* کارت اطلاعات بیمار */
.patient-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.patient-info-card .patient-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.patient-info-card .patient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-details strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.patient-details span {
    font-size: 13px;
    color: var(--text-light);
}

/* ویرایشگر یادداشت */
.note-editor {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.note-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    resize: vertical;
    transition: var(--transition);
    margin-bottom: 16px;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

.note-actions {
    text-align: left;
}

.save-note-btn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
}

.save-note-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(244, 162, 97, 0.3);
}

/* تاریخچه یادداشت‌ها */
.note-history {
    margin-top: 8px;
}

.note-history .section-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.history-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.history-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.history-date {
    font-size: 13px;
    color: var(--text-light);
}

.read-more-btn-sm {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.read-more-btn-sm:hover {
    background: var(--primary);
    color: white;
}

/* ============================================ */
/* تمرین روزانه – استایل‌های کامل                 */
/* ============================================ */
.exercise-page .page-header {
    margin: 20px 0 24px;
}

.exercise-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.exercise-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.exercise-date {
    display: inline-block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    background: var(--bg-secondary);
    padding: 6px 18px;
    border-radius: 20px;
}

.exercise-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: rgba(74, 124, 111, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exercise-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.exercise-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.exercise-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* مراحل تمرین */
.exercise-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    text-align: right;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 14px 18px;
    border-radius: 20px;
    transition: var(--transition);
}

.step:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transform: translateX(-2px);
}

.step-num {
    width: 42px;
    height: 42px;
    background: var(--gradient-btn);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

/* دکمه انجام تمرین */
.complete-exercise-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(145deg, var(--orange), #F5A65B);
    color: white;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(244, 162, 97, 0.3);
    transition: var(--transition);
}

.complete-exercise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(244, 162, 97, 0.4);
}

.complete-exercise-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

/* اطلاعات پیگیری */
.streak-info {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.streak-info p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.streak-info p:last-child {
    margin-bottom: 0;
}

.streak-info strong {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================ */
/* ردیاب خلق – استایل‌های کامل                    */
/* ============================================ */
.mood-page .page-header {
    margin: 20px 0 24px;
}

.mood-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.today-mood {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.today-mood h3 {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* دکمه‌های انتخاب حالت */
.mood-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.mood-btn {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'IRANSansX', sans-serif;
}

.mood-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.mood-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 14px rgba(74, 124, 111, 0.25);
}

/* دکمه ثبت */
.save-mood-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 60px;
    background: var(--gradient-btn);
    color: white;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
    transition: var(--transition);
}

.save-mood-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(244, 162, 97, 0.3);
}

.save-mood-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

/* تاریخچه هفتگی */
.mood-history {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 28px 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.mood-history h3 {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
}

/* نمودار میله‌ای */
.mood-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
    gap: 8px;
}

.mood-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    flex: 1;
}

.mood-day .bar {
    width: 100%;
    max-width: 42px;
    background: linear-gradient(to top, #1B998B, #A89BB5, #D4A5A5);
    border-radius: 16px 16px 8px 8px;
    transition: height 0.5s ease;
    min-height: 4px;
    box-shadow: 0 0 8px rgba(27, 153, 139, 0.2);
    margin-bottom: 8px;
}

.mood-day span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Toast پیام */
.toast-message {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a7c6f;
    color: white;
    padding: 14px 24px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.toast-message.show {
    opacity: 1;
}

@media (min-width: 768px) {
    .mood-day .bar {
        max-width: 56px;
    }
}

/* ============================================ */
/* صفحه چت – استایل‌های کامل                      */
/* ============================================ */

/* هدر چت */
.chat-top-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.chat-top-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-right: auto;
}

.chat-back-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.chat-back-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.chat-back-btn:hover .chat-back-icon {
    filter: brightness(0) invert(1);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-user-detail {
    display: flex;
    flex-direction: column;
}

.chat-username {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.chat-status {
    font-size: 12px;
    color: var(--text-light);
}

.chat-status.online {
    color: var(--primary);
}

/* پیام‌ها */
.chat-messages {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    background: var(--bg-main);
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 24px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.message.sent .message-bubble {
    background: var(--gradient-btn);
    color: white;
    border-bottom-left-radius: 4px;
}

.message.received .message-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    padding: 0 6px;
}

.message.sent .message-time {
    text-align: left;
}

.message.received .message-time {
    text-align: right;
}

/* فوتر چت */
.chat-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
}

.attach-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.attach-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.attach-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.attach-btn:hover .attach-icon {
    filter: brightness(0) invert(1);
}

.message-input-wrapper {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 4px 8px;
    border: 1px solid var(--border-light);
}

.message-input {
    width: 100%;
    padding: 12px 8px;
    background: transparent;
    border: none;
    font-family: 'IRANSansX', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.send-btn {
    background: var(--gradient-btn);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(74, 124, 111, 0.2);
    flex-shrink: 0;
}

.send-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: scale(1.05);
}

.send-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.chat-top-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-user-info {
    order: 1;
    /* اطلاعات کاربر در ابتدا */
}

.chat-back-btn {
    order: 2;
    /* دکمه بازگشت به انتهای خط (سمت چپ) منتقل می‌شود */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 0;
    /* حذف margin قبلی */
}

/* ============================================ */
/* تشکیل پرونده بالینی – استایل‌های کامل          */
/* ============================================ */

.clinical-form-page .page-header {
    margin: 20px 0 16px;
}

.clinical-form-page .page-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

/* نوار پیشرفت */
.form-progress {
    margin-bottom: 28px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 124, 111, 0.3);
}

.progress-step.completed .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.progress-line {
    width: 30px;
    height: 2px;
    background: var(--border-light);
    margin-bottom: 24px;
}

/* فرم‌های چندمرحله‌ای */
.multi-step-form {
    margin-bottom: 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-content {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.step-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

textarea.form-input {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

/* اسلایدر شدت علائم */
.severity-slider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.severity-slider span {
    font-size: 13px;
    color: var(--text-light);
}

.severity-range {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
}

.severity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* دکمه‌های ناوبری */
.form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-btn {
    padding: 14px 28px;
    border-radius: 40px;
    font-family: 'IRANSansX', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn:not(:disabled):hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.submit-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 40px;
    background: var(--gradient-btn);
    color: white;
    border: none;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
    transition: var(--transition);
}

.submit-btn.hidden {
    display: none;
}

.submit-btn:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

/* ============================================ */
/* حالت خالی فید و پربازدیدترین محتوا              */
/* ============================================ */

/* کارت پست در بخش پربازدیدترین */
.most-liked-section {
    margin-top: 32px;
    margin-bottom: 24px;
}

/* بخش خالی فید */
.empty-feed {
    text-align: center;
    padding: 40px 16px;
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.empty-feed-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    /*opacity: 0.5;*/
    filter: grayscale(0.3);
}

.empty-feed-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.empty-feed-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-feed-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================ */
/* صفحه متخصصان پیشنهادی – گرید واکنش‌گرا         */
/* ============================================ */

.experts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* ۲ ستونه در موبایل */
    gap: 14px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .experts-grid {
        grid-template-columns: repeat(4, 1fr);
        /* ۴ ستونه در دسکتاپ */
    }
}

/* کمی بلندتر کردن کارت‌ها برای جای اسم‌های بلند */
.experts-grid .expert-card {
    min-height: 250px;
    padding: 20px 12px 18px;
}

/* ============================================ */
/* پروفایل کاربر عادی – استایل‌های کامل            */
/* ============================================ */

.profile-user-header {
    text-align: center;
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.profile-user-header .profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-user-header .profile-avatar.large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, var(--primary), var(--pink));
}

.profile-user-header .profile-avatar.large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
}

.edit-profile-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.edit-profile-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.edit-profile-btn:hover {
    background: var(--orange);
}

.profile-user-name {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-user-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--text-light);
}

/* دکمه متخصص‌هایی که دنبال می‌کنید */
.user-following-btn-wrapper {
    margin-bottom: 28px;
}

.user-following-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.user-following-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.badge-following-count {
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

/* کارت‌های ابزارها (استفاده از کلاس‌های feature-card موجود) */
.user-tools-section .feature-card {
    margin-bottom: 24px;
}

/* دکمه‌های مودال */
.follow-back-btn {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

/* ============================================ */
/* صفحه آخرین ری‌اکشن‌ها                          */
/* ============================================ */
.reactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reaction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 16px 18px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.reaction-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.reaction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reaction-info strong {
    font-size: 16px;
    color: var(--text-primary);
}

.reaction-info span {
    font-size: 13px;
    color: var(--text-light);
}

.reaction-text {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    margin-top: 4px;
}

.reaction-time {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

/* اصلاح قرارگیری دکمه آنفالو در مودال */
.follow-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.follow-action-btn {
    margin-right: auto;
    /* در RTL به چپ می‌چسبد */
}

/* ============================================ */
/* دکمه‌های چت و رزرو نوبت (پروفایل متخصص)      */
/* ============================================ */

.profile-actions-row {
    display: flex;
    gap: 12px;
    margin: 20px 0 16px;
    padding: 0;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #4a7c6f;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(74, 124, 111, 0.25);
    flex: 1;
    justify-content: center;
}

.profile-action-btn:hover {
    background: #3a6b5f;
    transform: translateY(-2px);
}

.profile-action-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* آیکون سفید */
}

/* ============================================ */
/* جزئیات محصول – استایل‌های کامل                 */
/* ============================================ */

.product-detail-page .content-wrapper {
    padding-top: 20px;
}

.product-hero {
    text-align: center;
    background: var(--bg-secondary);
    padding: 16px;
    display: flex;
    /* اضافه شود */
    justify-content: center;
    align-items: center;
}

.product-hero-img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: var(--shadow-md);
    display: block;
    /* اضافه شود */
    margin: 0 auto;
}

.product-summary {
    margin-bottom: 20px;
}

.product-name {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-author {
    font-size: 15px;
    color: var(--primary);
    font-weight: 500;
}

.product-rating {
    font-size: 14px;
    color: var(--orange);
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 20px;
}

.old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.new-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.discount-percent {
    background: var(--orange);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.product-attributes {
    margin: 24px 0;
}

.attr-title {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.attr-list {
    list-style: none;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 8px 0;
    border: 1px solid var(--border-light);
}

.attr-list li {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
}

.attr-list li:last-child {
    border-bottom: none;
}

.attr-label {
    width: 120px;
    color: var(--text-secondary);
}

.attr-value {
    color: var(--text-primary);
    font-weight: 500;
}

.product-description {
    margin: 24px 0;
}

.product-description h3 {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 18px;
}

.product-description p {
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.add-to-cart-section {
    margin: 24px 0;
}

.add-to-cart-btn-large {
    width: 100%;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 18px;
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(74, 124, 111, 0.25);
}

.add-to-cart-btn-large:hover {
    background: linear-gradient(145deg, #f4a261, #e07a5f);
    transform: translateY(-2px);
}

.product-reviews {
    margin: 32px 0 24px;
}

.product-reviews h3 {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.review-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-primary);
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
}

.review-rating {
    color: var(--orange);
    margin-bottom: 8px;
    font-size: 16px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* نمایش کامل متن در تاریخچه یادداشت */
.history-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* آیکون‌های تصویری در کارت‌های انتخاب نوع محتوا */
.post-type-card .type-icon-img {
    width: 80px;
    /* عرض دلخواه */
    height: 80px;
    /* ارتفاع دلخواه */
    object-fit: contain;
    margin-bottom: 8px;
}

/* حذف استایل‌های قبلی type-icon اگر ایموجی بودند */
.post-type-card .type-icon {
    display: none;
    /* یا کلاً از HTML پاک کنید */
}

/* ============================================ */
/* رفع اسکرول افقی فقط برای پروفایل متخصص         */
/* ============================================ */

.profile-page .content-wrapper,
.profile-info-section,
.profile-top,
.profile-posts-section {
    max-width: 100%;
    overflow-x: hidden;
}

/* کمک به شکستن آیتم‌های آمار در صورت کمبود جا */
.profile-stats {
    flex-wrap: wrap;
}

/* ============================================ */
/* تضمین اسکرول افقی استوری‌ها در موبایل          */
/* ============================================ */

.stories-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 16px;
    margin: 0 16px;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 68px;
    flex-shrink: 0;
}

/* دکمه لایک در فوتر */
.story-footer .like-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 35px;
    width: auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 80vw;
    margin: 0 auto;
}

.story-footer .like-btn .heart-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s;
}

.story-footer .like-btn:hover .heart-icon-img {
    transform: scale(1.15);
}

/* افکت پاشیدن قلب */
.floating-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* حالت لایک شده دکمه (اختیاری، می‌تونی رنگ دکمه رو تغییر بدی) */
.story-footer .like-btn.liked {
    /* مثلاً فقط یه glow سبک */
    box-shadow: 0 0 15px rgba(212, 165, 165, 0.6);
}

/* ============================================ */
/* صفحه چالش هفته (Story Challenge)              */
/* ============================================ */

.story-challenge-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, #4a7c6f 0%, #2c3e50 70%, #1B998B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IRANSansX', Tahoma, sans-serif;
    overflow: hidden;
}

/* محتوای چالش */
.challenge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: white;
}

.challenge-question {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.challenge-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
}

.challenge-option {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.challenge-option:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.challenge-option.active {
    background: #4a7c6f;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(74, 124, 111, 0.5);
}

.challenge-feedback {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 600;
    min-height: 28px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* تنظیمات استوری برای این صفحه */
.story-challenge-body .story-viewer-container {
    max-width: 480px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
}

.story-challenge-body .progress-container {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 20;
}

.story-challenge-body .story-header {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    color: white;
}

.story-challenge-body .story-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
}

/* ============================================ */
/* صفحه چالش هفته (Story Challenge)              */
/* ============================================ */

.story-challenge-body {
    background: #000;                     /* کل صفحه مشکی مثل استوری عادی */
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IRANSansX', Tahoma, sans-serif;
}

/* کانتینر گرادینت رنگی مانند اسپلش */
.story-challenge-body .story-viewer-container {
    max-width: 480px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(145deg, #4a7c6f 0%, #2c3e50 70%, #1B998B 100%);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.challenge-bg {
    display: none; /* فقط برای هماهنگی */
}

.challenge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: white;
}

.challenge-question {
    font-family: 'Peyda Web', Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.challenge-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
}

.challenge-option {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.challenge-option:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.challenge-option.active {
    background: #4a7c6f;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(74, 124, 111, 0.5);
}

.challenge-feedback {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 600;
    min-height: 28px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* افکت موشن قلب */
.floating-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* دکمه لایک */
.story-footer .like-btn {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 35px;
    width: auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
}
.story-footer .like-btn .heart-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* نوار پیشرفت صوتی – نسخه تضمینی 
.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #4a7c6f;
    border-radius: 3px;
    transition: width 0.1s linear;
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.12);
}*/

/* ==========================================
   PRELOADER
   ========================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 120px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-text {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    font-family: 'IRANSans', sans-serif;
}

/* تم تاریک - preloader */
[data-theme="dark"] .preloader-overlay {
    background: #1C1E23;
}

[data-theme="dark"] .preloader-text {
    color: #fff;
}

/* Spinner */
.spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-circle.inner {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #a29bfe;
    animation-direction: reverse;
    animation-duration: 0.7s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* مخفی کردن محتوا تا زمان لود */
body.loading .app-container {
    opacity: 0;
}

body.loaded .app-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.install-banner.hidden { display: none; }

.install-banner-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.install-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.install-text strong { font-size: 14px; }
.install-text span { font-size: 12px; color: #666; }

.install-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.install-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.post-media-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
}

.slider-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slider-slide img {
    width: 100%;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

.d-ltr{direction: ltr!important;}