/* ============================================================
   ۱. RESET & BASE
   ============================================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fbfbff;
    color: #171827;
    font-family: Vazirmatn, Arial, sans-serif;
}


/* ============================================================
   ۲. TOPBAR (هدر بالایی)
   ============================================================ */
.topbar {
    height: 82px;
    background: #fff;
    border-bottom: 1px solid #eeeef5;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-size: 27px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.brand-icon {
    color: #7050e8;
    font-size: 34px;
}

.top-actions {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border: 0;
    background: #faf9ff;
    border-radius: 50%;
    font-size: 20px;
    position: relative;
    cursor: pointer;
}

.badge i {
    position: absolute;
    top: -3px;
    right: -1px;
    background: #7050e8;
    color: #fff;
    font: 600 10px Vazirmatn;
    border-radius: 10px;
    padding: 2px 5px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.profile small,
.profile strong {
    display: block;
}

.profile small {
    color: #7562cf;
}

/* ===== جستجو ===== */
.search {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid #e4e1ee;
    border-radius: 26px;
    padding: 0 17px;
    max-width: 420px;
    flex: 1;
    background: #fff;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #171827;
    padding: 0;
}

.search-input::placeholder {
    color: #9695a3;
}

.search-btn {
    border: none;
    background: transparent;
    color: #9695a3;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: #7050e8;
}


/* ============================================================
   ۳. AVATARS
   ============================================================ */
.avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #eef0ff;
    display: grid;
    place-items: center;
    font-weight: 700;
    border: 2px solid #fff;
}

.me {
    background: #222b3c;
    color: #fff;
}

.pink {
    background: #ffe5ef;
}
.blue {
    background: #e4efff;
}
.orange {
    background: #fff0db;
}
.purple {
    background: #eee6ff;
}


/* ============================================================
   ۴. APP SHELL (قالب اصلی)
   ============================================================ */
.app-shell {
    display: grid;
    grid-template-columns: 205px minmax(480px, 1fr) 265px;
    gap: 22px;
    max-width: 1440px;
    margin: auto;
    padding: 28px;
}


/* ============================================================
   ۵. SIDEBAR (نوار کناری چپ)
   ============================================================ */
.sidebar nav a {
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    margin-bottom: 5px;
    font-size: 17px;
    color: #666779;
    cursor: pointer;
    text-decoration: none;
}

.sidebar nav a.active {
    background: #f0ebff;
    color: #6d4be3;
    font-weight: 700;
}

.post-btn {
    width: 100%;
    border: 0;
    border-radius: 13px;
    background: #7650e8;
    color: #fff;
    padding: 14px;
    font: 600 15px Vazirmatn;
    margin-top: 18px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.hint {
    display: block;
    text-align: center;
    color: #aaa;
    margin: 8px;
}

.room-card {
    margin-top: 25px;
}

.room-card b {
    display: block;
    margin-bottom: 12px;
}

.room-card div {
    padding: 11px;
    border-radius: 12px;
    margin: 6px 0;
    background: #fff;
    border: 1px solid #f0eff5;
}


/* ============================================================
   ۶. CONTENT (محتوای اصلی)
   ============================================================ */
.content {
    min-width: 0;
}


/* ============================================================
   ۷. ROOM HEAD (هدر اتاق)
   ============================================================ */
.room-head {
    min-height: 178px;
    background: linear-gradient(110deg, #fff, #f3edff);
    border: 1px solid #e7e1fa;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.planet {
    font-size: 75px;
    flex: 0 0 120px;
    text-align: center;
}

.room-info {
    flex: 1;
}

.room-info h1 {
    margin: 2px 0 7px;
    font-size: 25px;
}

.eyebrow {
    color: #6245d1;
    font-weight: 700;
}

.room-info p {
    margin: 0;
    color: #777;
}

.online {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39bb6a;
}

.faces {
    display: flex;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 4px;
}

.faces span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eee8ff;
    border: 2px solid #fff;
    margin-left: -6px;
    font-size: 12px;
}

.room-compare {
    background: #fff;
    border: 1px solid #ebe7f3;
    border-radius: 16px;
    padding: 16px;
    min-width: 215px;
}

.room-compare small {
    color: #777;
}

.room-compare strong {
    font-size: 26px;
    display: block;
    margin: 4px 0;
}

.room-compare em {
    font-style: normal;
    font-size: 13px;
    color: #777;
}

.compare {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.compare b {
    font-size: 13px;
}

.meter {
    height: 9px;
    background: #eee;
    border-radius: 8px;
    flex: 1;
    overflow: hidden;
}

.meter i {
    display: block;
    height: 100%;
    width: 66%;
    background: linear-gradient(90deg, #7650e8, #b17cff);
    border-radius: 8px;
}

.negative {
    color: #e9505e;
    text-align: center;
}


/* ============================================================
   ۸. QUICK ACTIONS (دکمه‌های سریع)
   ============================================================ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 17px 0;
}

.quick-actions button,
.quick-actions a {
    background: #fff;
    border: 1px solid #eeeaf5;
    border-radius: 14px;
    padding: 13px;
    font: 500 14px Vazirmatn;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


/* ============================================================
   ۹. FEED TITLE (عنوان خوراک)
   ============================================================ */
.feed-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 2px 10px;
}

.feed-title h2 {
    font-size: 18px;
    margin: 0;
}

.feed-title span {
    font-size: 12px;
    color: #8a8897;
}


/* ============================================================
   ۱۰. POSTS (کارت‌های پیام)
   ============================================================ */
.post {
    background: #fff;
    border: 1px solid #ecebf2;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 3px 12px #4b3b7908;
}

.post-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.post-top p {
    margin: 6px 0 0;
    font-size: 15px;
}

.post-top time {
    margin-right: auto;
    color: #999;
    font-size: 11px;
}

.tag {
    font-size: 10px;
    border-radius: 10px;
    padding: 3px 8px;
    margin-right: 8px;
}

.green {
    background: #e6f8ed;
    color: #2b9b58;
}
.orange {
    background: #fff0df;
    color: #e7841b;
}
.blue {
    background: #e8f1ff;
    color: #477fe8;
}

.post-image {
    width: 78%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin: 14px 0 3px 49px;
}

.post-bottom {
    display: flex;
    gap: 25px;
    color: #858492;
    font-size: 12px;
    align-items: center;
    margin-top: 8px;
}

.reward {
    color: #22a857;
    margin-right: auto;
    font-weight: 700;
}


/* ============================================================
   ۱۱. AUDIO PLAYER (پلیر صوتی سفارشی)
   ============================================================ */
.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f1ff;
    border-radius: 14px;
    padding: 8px 14px 8px 10px;
    margin-top: 8px;
    width: 100%;
    max-width: 400px;
    transition: background 0.2s ease;
}

.audio-player:hover {
    background: #ede6ff;
}

.play-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #7050e8;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    background: #5c3fd4;
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(0.92);
}

.progress-container {
    flex: 1;
    height: 4px;
    background: #d5cbfa;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s ease;
    min-width: 60px;
}

.progress-container:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #7050e8;
    border-radius: 4px;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #7050e8;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 6px rgba(112, 80, 232, 0.4);
}

.progress-container:hover .progress-fill::after {
    opacity: 1;
}

.time-display {
    font-size: 11px;
    color: #666;
    font-variant-numeric: tabular-nums;
    min-width: 70px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.audio-player.playing .play-btn {
    background: #e9505e;
}

.audio-player.playing .play-btn:hover {
    background: #d43d4a;
}


/* ============================================================
   ۱۲. ROOM SCROLL (اتاق‌های افقی)
   ============================================================ */
.rooms-scroll-wrapper {
    margin: 20px 0 25px;
    background: #fff;
    border-radius: 18px;
    padding: 15px 20px;
    border: 1px solid #ecebf2;
    box-shadow: 0 3px 12px #4b3b7908;
}

.rooms-scroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.rooms-scroll-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.rooms-scroll-header a {
    color: #7050e8;
    font-size: 13px;
    text-decoration: none;
}

.rooms-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.rooms-scroll::-webkit-scrollbar {
    height: 4px;
}

.rooms-scroll::-webkit-scrollbar-track {
    background: #f0eff5;
    border-radius: 10px;
}

.rooms-scroll::-webkit-scrollbar-thumb {
    background: #c5bce8;
    border-radius: 10px;
}

.room-card-horizontal {
    flex: 0 0 180px;
    min-width: 160px;
    background: #fafaff;
    border: 1px solid #eeeaf5;
    border-radius: 16px;
    padding: 14px 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.room-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px #4b3b7920;
    border-color: #d5cbfa;
}

.room-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.room-info-horizontal h4 {
    margin: 4px 0 2px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.room-info-horizontal small {
    font-size: 10px;
    color: #8a8897;
    display: block;
}

.room-meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: #777;
    margin-top: 6px;
}

.room-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ============================================================
   ۱۳. CHAT BOX (باکس گفتگو)
   ============================================================ */
#chat-box {
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

#loading-indicator span {
    color: #7050e8;
    font-size: 14px;
}

#end-indicator span {
    color: #888;
    font-size: 14px;
}


/* ============================================================
   ۱۴. RIGHTBAR (نوار کناری راست)
   ============================================================ */
.rightbar section {
    background: #fff;
    border: 1px solid #ebeaf2;
    border-radius: 18px;
    padding: 17px;
    margin-bottom: 15px;
}

.card-title {
    font-weight: 800;
    margin-bottom: 13px;
    display: flex;
    justify-content: space-between;
}

.card-title small {
    font-size: 10px;
    color: #7050e8;
}

.rank {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
}

.rank>strong {
    margin-right: auto;
    font-size: 12px;
}

.rank>b {
    width: 18px;
    text-align: center;
    color: #777;
}

.my-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #f0c96d;
    background: #fffaf0;
    border-radius: 12px;
    padding: 9px;
    margin-top: 8px;
}

.my-rank strong {
    margin-right: auto;
    color: #eaa221;
    font-size: 12px;
}

.challenge {
    background: linear-gradient(160deg, #f5f0ff, #fff) !important;
}

.challenge p {
    font-size: 13px;
    line-height: 2;
}

.formula {
    background: #f7f5fb;
    border-radius: 13px;
    text-align: center;
    padding: 13px;
    font: 20px Georgia;
    margin: 10px 0;
}

.formula small {
    font-size: 16px;
}

.challenge button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #7650e8;
    color: #fff;
    padding: 11px;
    font: 600 13px Vazirmatn;
    margin-top: 12px;
    cursor: pointer;
}

.topics p {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0eff4;
    padding-bottom: 9px;
    font-size: 12px;
}

.topics p b {
    color: #7050e8;
}


/* ============================================================
   ۱۵. MOBILE NAV (نوار ناوبری پایین)
   ============================================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #ffffff;
    border-top: 1px solid #e8e7ef;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(4px);
}

.mobile-nav a,
.mobile-nav button {
    border: none;
    background: transparent;
    color: #88859e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 12px;
    min-width: 56px;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    font-family: inherit;
}

.mobile-nav a small,
.mobile-nav button small {
    font-size: 10px;
    font-family: inherit;
    font-weight: 500;
    color: inherit;
    line-height: 1.2;
}

.mobile-nav .active {
    color: #7050e8;
}

.mobile-nav .active small {
    color: #7050e8;
}

.mobile-nav a:not(.plus):hover,
.mobile-nav button:not(.plus):hover {
    color: #7050e8;
}

.mobile-nav .plus {
    background: #7050e8;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(112, 80, 232, 0.35);
    transition: all 0.2s ease;
    margin-top: -12px;
    padding: 0;
}

.mobile-nav .plus:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(112, 80, 232, 0.45);
}

.mobile-nav .plus:active {
    transform: scale(0.92);
}

.mobile-nav .plus small {
    display: none;
}

/* ===== آواتارها با تصویر و حالت پیش‌فرض ===== */
.avatar,
.avatar img,
.avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.avatar {
    position: relative;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #222b3c; /* ← پس‌زمینه سیاه برای حالت بدون تصویر */
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    border: 2px solid #fff;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* اندازه‌های مختلف */
.avatar-lg {
    width: 112px;
    height: 112px;
    font-size: 38px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

/* برای فیس‌ها (حالت خاص) */
.faces span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #222b3c;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.faces span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== حل مشکل background و حالت بدون تصویر ===== */
.avatar .avatar-text,
.avatar .avatar-initials,
.faces span .avatar-text,
.faces span .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #222b3c;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: inherit;
    text-transform: uppercase;
}
/* ============================================================
   ۱۶. MEDIA QUERIES (واکنش‌گرایی)
   ============================================================ */

/* تبلت و صفحه‌های متوسط */
@media (max-width: 1050px) {
    .app-shell {
        grid-template-columns: 180px minmax(0, 1fr);
    }
    .rightbar {
        display: none;
    }
    .topbar {
        padding: 0 18px;
    }
    .brand {
        min-width: auto;
    }
    .search {
        max-width: none;
    }
}

/* موبایل (عرض کمتر از 700px) */
@media (max-width: 700px) {
    /* ===== جلوگیری از اسکرول افقی (اصلاح‌شده) ===== */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        margin: 0;
        padding: 0;
    }
    /* ===== مخفی کردن سایدبار ===== */
    .sidebar {
        display: none !important;
    }

    /* در صورت وجود المان‌های داخلی که ممکن است تداخل کنند */
    .sidebar * {
        display: none !important;
    }

    /* بقیه قوانین ... */
    .app-shell {
        display: block;
        padding: 12px 12px 0 !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .content {
        width: 100%;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
        padding: 0 !important;
    }

    /* ===== نوار پایین (mobile-nav) ===== */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 1000;
        box-sizing: border-box;
        height: 68px;
        padding: 0 6px;
        gap: 4px;
        justify-content: space-evenly;
        transform: none;
    }

    /* ===== بخش اتاق‌های افقی ===== */
    .rooms-scroll-wrapper {
        padding: 10px 12px;
        margin: 12px 0 16px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .rooms-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 8px;
        max-width: 100%;
        box-sizing: border-box;
        overscroll-behavior-x: contain;
    }

    .room-card-horizontal {
        flex: 0 0 130px;
        min-width: 110px;
        max-width: 130px;
        padding: 10px 8px;
        box-sizing: border-box;
    }

    /* ===== Room Head ===== */
    .room-head {
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
        min-height: unset;
    }

    .planet {
        font-size: 40px;
        text-align: center;
        flex: unset;
    }

    .room-info h1 {
        font-size: 20px;
        margin: 6px 0 4px;
    }

    .room-info p {
        font-size: 11px;
    }

    .faces span {
        width: 26px;
        height: 26px;
        font-size: 10px;
        margin-left: -4px;
    }

    .room-compare {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 15px;
        min-width: unset;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .room-compare strong {
        font-size: 20px;
        margin: 0;
    }

    .room-compare small {
        font-size: 10px;
    }

    .compare {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        gap: 4px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 10px;
    }

    .compare b {
        font-size: 12px;
    }

    .meter {
        flex: 1 1 auto;
        min-width: 0;
        height: 6px;
        max-width: 100%;
        box-sizing: border-box;
        flex-shrink: 1;
    }

    .negative {
        font-size: 9px;
        white-space: nowrap;
    }

    /* ===== Quick Actions ===== */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin: 10px 0;
    }

    .quick-actions button,
    .quick-actions a {
        padding: 10px 6px;
        font-size: 11px;
        border-radius: 12px;
    }

    /* ===== Posts ===== */
    .post {
        padding: 14px;
        border-radius: 15px;
        margin-bottom: 8px;
    }

    .post-image {
        margin-right: 0;
        width: 100%;
        height: 145px;
    }

    .post-top p {
        font-size: 13px;
    }

    .post-bottom {
        gap: 12px;
        font-size: 11px;
        flex-wrap: wrap;
    }

    /* ===== Feed Title ===== */
    .feed-title {
        margin-top: 18px;
        margin-bottom: 8px;
    }

    .feed-title h2 {
        font-size: 16px;
    }

    .feed-title span {
        font-size: 10px;
    }

    /* ===== Topbar ===== */
    .topbar {
        height: 68px;
        padding: 0 14px;
        gap: 10px;
    }

    .brand {
        font-size: 22px;
        min-width: auto;
    }

    .brand-icon {
        font-size: 27px;
    }

    .search {
        display: none;
    }

    .top-actions .icon-btn:first-child {
        display: none;
    }

    .top-actions {
        gap: 3px;
    }

    .profile > div:not(.avatar) {
        display: none;
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* ===== Rightbar ===== */
    .rightbar {
        display: none;
    }

    /* ===== Audio Player ===== */
    .audio-player {
        padding: 6px 10px 6px 8px;
        max-width: 100%;
    }

    .play-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .time-display {
        font-size: 10px;
        min-width: 60px;
    }

    /* ===== Room Scroll ===== */
    .room-info-horizontal h4 {
        font-size: 12px;
    }

    .room-info-horizontal small {
        font-size: 9px;
    }

    .room-meta {
        font-size: 9px;
        gap: 6px;
    }

    .room-icon {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .rooms-scroll-header h3 {
        font-size: 14px;
    }

    .rooms-scroll-header a {
        font-size: 11px;
    }

    /* ===== Message Composer (صفحه اتاق) ===== */
    .message-composer {
        padding: 8px 10px !important;
        border-radius: 16px !important;
        margin-top: 2px !important;
    }

    .composer-main {
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    .composer-top-row {
        padding: 0 !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    .composer-top-row .topic-select {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-height: 32px !important;
        font-size: 12px !important;
        padding: 4px 28px 4px 12px !important;
    }

    .composer-top-row .type-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .composer-actions {
        gap: 2px !important;
    }

    .composer-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .composer-input {
        min-height: 36px !important;
        font-size: 13px !important;
        padding: 6px 12px !important;
        flex: 1 !important;
    }

    .composer-send {
        width: 36px !important;
        height: 36px !important;
    }
}

/* نمایش نوار پایین فقط در موبایل */
@media (min-width: 701px) {
    .mobile-nav {
        display: none;
    }
}