@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #6735e8;
    --primary-dark: #5523d5;
    --primary-light: #eee9ff;
    --text: #18213d;
    --muted: #858ca1;
    --border: #e8eaf1;
    --bg: #f8faff;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    background: radial-gradient(circle at 65% 5%, rgba(105,58,235,.06), transparent 30%), var(--bg);
    color: var(--text);
}

button, input, select {
    font-family: inherit;
}
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ===== HOMEWRAPPER ===== */
.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px 40px;
}

/* ===== کادر آمار ===== */
.stats-cards {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px 0;
    justify-content: center;
    flex-wrap: wrap;
}
.stat-card {
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: .25s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(40,30,80,.08);
}
.stat-card-icon {
    font-size: 28px;
    margin-bottom: 4px;
}
.stat-card-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}
.stat-card-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.icon-subject {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== FEATURED ROOM ===== */
.featured-room {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 20px 24px;
    border-radius: 12px;
    background: radial-gradient(circle at 75% 45%, rgba(108, 91, 150, 0.17), transparent 30%),
                linear-gradient(120deg, #eeeaff, #e8e0ff);
    border: 1px solid #c5bec48a;
    margin-bottom: 24px;
    gap: 20px;
}
.featured-glow {
    position: absolute;
    opacity: 0.15;
    filter: blur(40px);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    left: -80px;
    bottom: -150px;
    background: rgba(195, 241, 80, 0.07);
}
.featured-left {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.featured-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}
.featured-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 34px;
    flex-shrink: 0;
}
.biology { background: #e2f7ef; }
.math { background: #eaf1ff; }
.chemistry { background: #fff0f4; }
.physics { background: #fff3e4; }
.literature { background: #fceafa; }

.featured-subject {
    display: inline-block;
    margin-top: 6px;
    margin-right: 5px;
    padding: 4px 12px;
    border-radius: 6px;
    background: #ffffff5f;
    color: #383333;
    font-size: 13px;
    font-weight: bold;
}
.featured-room h2 {
    margin-top: 4px;
    font-size: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.featured-room p {
    color: #737a91;
    font-size: 13px;
    margin-top: 4px;
}
.featured-stats {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.featured-stats div {
    display: flex;
    align-items: center;
    gap: 5px;
}
.featured-stats span { color: var(--primary); font-size: 14px; }
.featured-stats strong { font-size: 14px; }
.featured-stats small { color: var(--muted); font-size: 10px; }

.user-stack {
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-right: 5px;
}
.user-stack span, .user-stack b {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    background: #e7e9ef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -5px;
    font-size: 12px;
}
.user-stack b {
    width: 36px;
    background: #8054ea;
    color: white;
    font-size: 10px;
}

/* ===== بخش دکمه + امتیازات (سمت چپ) ===== */
.head-score-btn {
    display: flex;
    align-items: stretch;
    gap: 18px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* ===== دکمه بزرگ مستطیلی عمودی ===== */
.featured-join-btn {
    display: flex;
    margin-left: 5px;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-height: 160px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6732e7, #5622d2);
    color: white;
    font-size: 48px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(90, 35, 210, 0.35);
    transition: all 0.25s ease;
    flex-shrink: 0;
    padding: 0 10px;
    min-width: 60px;
    min-height: 60px;
}
.featured-join-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(90, 35, 210, 0.45);
    background: linear-gradient(135deg, #7a4af0, #5c2ad8);
}
.featured-join-btn .arrow-icon {
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s;
}
.featured-join-btn:hover .arrow-icon {
    transform: translateX(-4px);
}

/* ===== بخش امتیازات ===== */
.room-score-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    flex-shrink: 0;
}
.crown { color: #6b39dc; font-size: 22px; margin-bottom: -4px; }
.score-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--primary) 0 96%, #ddd5f9 96% 100%);
    position: relative;
}
.score-circle::before {
    content: "";
    position: absolute;
    width: 72px;
    height: 72px;
    background: #f2edff;
    border-radius: 50%;
}
.score-circle > div { position: relative; z-index: 2; text-align: center; }
.fire { display: block; font-size: 14px; }
.score-circle strong { display: block; font-size: 18px; color: var(--primary); }
.score-circle small { display: block; font-size: 8px; color: var(--muted); }

.activity-bars {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 24px;
    margin-top: 6px;
}
.activity-bars i {
    width: 4px;
    border-radius: 4px;
    background: var(--primary);
}
.activity-bars i:nth-child(1) { height: 8px; }
.activity-bars i:nth-child(2) { height: 13px; }
.activity-bars i:nth-child(3) { height: 6px; }
.activity-bars i:nth-child(4) { height: 16px; }
.activity-bars i:nth-child(5) { height: 10px; }
.activity-bars i:nth-child(6) { height: 18px; }
.activity-bars i:nth-child(7) { height: 12px; }
.activity-bars i:nth-child(8) { height: 20px; }
.activity-bars i:nth-child(9) { height: 14px; }

.score-label { color: #777e96; font-size: 8px; margin-top: 3px; }

/* ===== نوشتار بازاریابی ===== */
.topics-intro {
    margin-bottom: 20px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #f8f6ff, #f0ebff);
    border-radius: 14px;
    border-right: 5px solid var(--primary);
}
.topics-intro h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px 0;
}
.topics-intro p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.8;
}
.topics-intro strong { color: var(--primary); }

/* ===== موضوع‌ها ===== */
.topics-wrapper {
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 8px 0;
}
.topics-wrapper::-webkit-scrollbar {
    display: none;
}

.topics-scroll {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0 2px;
    min-width: max-content;
}
.topic-color-all {
    background: #7050e8;
    color: #fff;
}
.topic-color-0 { background: #e8f5e9; color: #2e7d32; }
.topic-color-1 { background: #e3f2fd; color: #0d47a1; }
.topic-color-2 { background: #fce4ec; color: #c62828; }
.topic-color-3 { background: #fff3e0; color: #e65100; }
.topic-color-4 { background: #f3e5f5; color: #6a1b9a; }
.topic-color-5 { background: #e0f7fa; color: #00695c; }
.topic-color-6 { background: #fff8e1; color: #f57f17; }
.topic-color-7 { background: #fbe9e7; color: #bf360c; }
.topic-color-8 { background: #e8eaf6; color: #283593; }
.topic-color-9 { background: #f1f8e9; color: #33691e; }

.topic-btn {
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
    white-space: nowrap;
    background: #f5f4fa;
    color: #444;
    flex-shrink: 0;
    min-height: 44px;
}
.topic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.topic-btn.active {
    box-shadow: 0 4px 14px rgba(112,80,232,.3);
    outline: 2px solid var(--primary);
}
.topic-btn span {
    font-size: 16px;
    margin-left: 6px;
}

/* ===== نوار جستجو و مرتب‌سازی ===== */
.room-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 18px;
    flex-wrap: nowrap; /* ← جلوگیری از شکستن به دو خط */
}

.search-box-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;          /* ← فضای باقی‌مانده را پر کند */
    min-width: 0;     /* ← اجازه‌ی جمع‌شدن در صورت نیاز */
}
.search-box-mini span {
    font-size: 20px;
    color: #71798e;
    flex-shrink: 0;   /* ← آیکون جمع نشود */
}
.search-box-mini input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    min-height: 36px;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;   /* ← از جمع‌شدن جلوگیری کند */
}
.sort-box span {
    color: var(--muted);
    font-size: 12px;
}
.sort-box select {
    border: none;
    outline: none;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    min-height: 32px;
    cursor: pointer;
}

/* ===== بخش اتاق‌ها با سایدبار IQ ===== */
.rooms-with-stats {
    display: flex;
    gap: 20px;
    align-items: stretch;
}
/* ============================================================
   IQ SIDEBAR - استایل جدید
   ============================================================ */

.iq-sidebar {
    flex: 0 0 90px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.iq-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.5px;
    text-align: center;
}

/* ===== نوار عمودی IQ ===== */
.iq-bar-wrapper {
    position: relative;
    width: 20px;
    height: 130px;
    background: #f0eff5;
    border-radius: 14px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    margin: 4px 0;
}

.iq-bar-fill {
    width: 100%;
    height: 0%;
    min-height: 3px;
    background: linear-gradient(180deg, #a07aff, #7745e8);
    border-radius: 14px;
    transition: height 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
}

/* ===== خط میانگین (دسکتاپ) ===== */
.avg-iq-line {
    position: absolute;
    left: -8px;
    right: -8px;
    height: 2.5px;
    background: #ff6b6b;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
    border-radius: 2px;
    transition: bottom 0.3s ease;
}

.avg-iq-line::after {
    content: 'میانگین';
    position: absolute;
    right: -44px;
    top: -8px;
    font-size: 8px;
    color: #ff6b6b;
    white-space: nowrap;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.85);
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* درصد داخل نوار */
.iq-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
    line-height: 1;
}

/* ===== اعداد ===== */
.iq-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-top: 2px;
}

.iq-sub {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    margin-top: -2px;
}

/* میانگین عددی */
.iq-avg-text {
    font-size: 11px;
    color: #888;
    background: #f5f4fa;
    padding: 2px 12px;
    border-radius: 12px;
    margin-top: -2px;
    font-weight: 500;
}

/* ===== آمار امروز ===== */
.today-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.today-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.today-item:hover {
    background: #f8f6ff;
}

.today-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.today-number {
    font-weight: 700;
    color: var(--text);
    min-width: 22px;
    text-align: center;
    font-size: 14px;
}

.today-label {
    color: var(--muted);
    font-size: 10px;
    flex: 1;
}

/* ============================================================
   ریسپانسیو: موبایل (عرض < 700px)
   ============================================================ */
@media (max-width: 700px) {
    .iq-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 10px 12px;
        gap: 6px 10px;
        width: 100%;
        border-radius: 12px;
    }

    .iq-label {
        font-size: 11px;
        order: 0;
        flex: 0 0 auto;
        min-width: 50px;
    }

    .iq-bar-wrapper {
        width: 80px;
        height: 12px;
        flex-direction: row;
        justify-content: flex-start;
        border-radius: 8px;
        order: 1;
        margin: 0;
        overflow: visible;
    }

    .iq-bar-fill {
        width: 0%;
        height: 100%;
        min-width: 2px;
        background: linear-gradient(90deg, #7745e8, #a07aff);
        border-radius: 8px;
        transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .iq-percent {
        position: static;
        transform: none;
        color: var(--primary);
        text-shadow: none;
        font-size: 12px;
        font-weight: 800;
        margin-right: 4px;
        order: 2;
        flex: 0 0 auto;
    }

    /* خط میانگین در حالت افقی */
    .avg-iq-line {
        left: 0;
        right: auto;
        height: 100%;
        width: 2px;
        background: #ff6b6b;
        box-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
        border-radius: 1px;
        top: 0;
        bottom: 0;
        position: absolute;
        transition: left 0.3s ease;
    }

    .avg-iq-line::after {
        content: 'میانگین';
        position: absolute;
        top: -16px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        font-size: 7px;
        color: #ff6b6b;
        white-space: nowrap;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.9);
        padding: 0 5px;
        border-radius: 4px;
        border: 1px solid rgba(255, 107, 107, 0.15);
    }


    .iq-value {
        font-size: 16px;
        order: 3;
        margin: 0;
        flex: 0 0 auto;
    }

    .iq-sub {
        display: none;
    }

    .iq-avg-text {
        font-size: 10px;
        padding: 1px 8px;
        order: 4;
        margin: 0;
        flex: 0 0 auto;
    }

    .today-stats {
        flex-direction: row;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        gap: 10px;
        width: auto;
        order: 5;
        flex: 0 0 auto;
    }

    .today-item {
        font-size: 10px;
        padding: 0 2px;
        gap: 4px;
    }

    .today-number {
        font-size: 12px;
        min-width: 14px;
    }

    .today-icon {
        font-size: 12px;
        width: 16px;
    }

    .today-label {
        font-size: 8px;
    }
}

/* ============================================================
   ریسپانسیو: موبایل خیلی کوچک (عرض < 420px)
   ============================================================ */
@media (max-width: 420px) {
    .iq-sidebar {
        padding: 8px 10px;
        gap: 4px 8px;
        border-radius: 10px;
    }

    .iq-label {
        font-size: 10px;
        min-width: 40px;
    }

    .iq-bar-wrapper {
        width: 60px;
        height: 10px;
        border-radius: 6px;
    }

    .iq-bar-fill {
        border-radius: 6px;
        min-width: 2px;
    }

    .iq-percent {
        font-size: 10px;
    }

    .iq-value {
        font-size: 14px;
    }

    .iq-avg-text {
        font-size: 8px;
        padding: 1px 6px;
    }

    .avg-iq-line::after {
        font-size: 6px;
        top: -14px;
        padding: 0 3px;
    }

    .today-stats {
        gap: 6px;
    }

    .today-item {
        font-size: 9px;
        gap: 2px;
    }

    .today-number {
        font-size: 10px;
        min-width: 12px;
    }

    .today-icon {
        font-size: 10px;
        width: 14px;
    }

    .today-label {
        font-size: 7px;
    }
}

/* ===== بخش اتاق‌ها (اسکرول افقی) ===== */
.rooms-grid-section {
    margin-bottom: 30px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-title > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title h2 { font-size: 18px; }
.room-count { color: var(--muted); font-size: 12px; }

.rooms-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 10px 0;
}
.rooms-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.rooms-grid {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    min-width: max-content;
}
/* ===== دکمه بیشتر (به‌صورت کارت) ===== */
.load-more-item {
    flex: 0 0 200px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0;
    order: 999;
}

.load-more-item:hover {
    border-color: var(--primary);
    background: rgba(103, 53, 232, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(103, 53, 232, 0.1);
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(103, 53, 232, 0.3);
}

.load-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(103, 53, 232, 0.45);
}

.load-more-btn:active {
    transform: scale(0.95);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .load-more-item {
        flex: 0 0 150px;
        height: 260px;
    }
    .load-more-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .load-more-item {
        flex: 0 0 120px;
        height: 220px;
    }
    .load-more-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}
/* ===== کارت‌های جدید ===== */
.room-card-link {
    display: block;
    flex: 0 0 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
}
.room-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(40, 30, 80, 0.12);
}

.room-card-new {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 12px 12px;
    height: 320px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
    width: 220px;
}
.room-card-new:hover {
    border-color: var(--primary);
}

/* هدر */
.room-card-header {
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center; 
    margin-bottom: 4px;
    padding: 0 32px;  
    min-height: 36px;
}
.room-icon {
    position: absolute;
    right: 4px;  
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.room-name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    text-align: center;
    max-width: 100%;
}

/* موضوع */
.room-topic {
    text-align: center;
    margin-bottom: 10px;
}
.room-topic-tag {
    font-size: 10px;
    padding: 2px 14px;
    border-radius: 14px;
    background: #f0eff5;
    color: #555;
    display: inline-block;
}
.biology-tag { background: #e2f7ef; color: #1f8b5c; }
.math-tag    { background: #eaf1ff; color: #2d55b0; }
.chemistry-tag { background: #ffe8ee; color: #b83a62; }
.physics-tag { background: #ffefdd; color: #b86b1f; }
.literature-tag { background: #f5e6ff; color: #7a2fa8; }

/* سه نوار عمودی */
.room-bars {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex: 1;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 0;
}
.room-stat-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.stat-bar-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.3px;
}
.stat-bar-wrapper {
    position: relative;
    width: 10px;
    height: 80px;
    background: #f0eff5;
    border-radius: 8px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.stat-bar-fill {
    width: 100%;
    height: 0%;
    border-radius: 8px;
    transition: height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    min-height: 2px;
}
.iq-fill {
    background: linear-gradient(180deg, #a07aff, #7745e8);
}
.speed-fill {
    background: linear-gradient(180deg, #4CAF50, #2E7D32);
}
.messages-fill {
    background: linear-gradient(180deg, #FF9800, #E65100);
}
.user-iq-line {
    position: absolute;
    left: -8px;
    right: -8px;
    height: 2px;
    background: #ffaa00;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255,170,0,0.5);
}
.stat-bar-number {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* آمار کاربران و پیام‌ها */
.room-stats-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}
.room-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* نشانگر تایپ */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.typing-indicator .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .dot:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
.typing-text {
    font-size: 9px;
    color: var(--muted);
    margin-right: 4px;
}

/* ===== ریسپانسیو برای موبایل ===== */
@media (max-width: 600px) {
    .room-card-link {
        flex: 0 0 180px;
    }
    .room-card-new {
        height: 280px;
        padding: 12px 10px 10px;
        width: 180px;
    }
    .room-name {
        font-size: 13px;
    }
    .room-icon {
        font-size: 18px;
    }
    .stat-bar-wrapper {
        height: 65px;
        width: 8px;
    }
    .stat-bar-label {
        font-size: 8px;
    }
    .stat-bar-number {
        font-size: 10px;
    }
    .room-stats-row {
        font-size: 11px;
        gap: 12px;
    }
    .typing-text {
        font-size: 8px;
    }
}

@media (max-width: 420px) {
    .room-card-link {
        flex: 0 0 150px;
    }
    .room-card-new {
        height: 240px;
        padding: 10px 8px 8px;
        width: 150px;
    }
    .room-name {
        font-size: 12px;
    }
    .stat-bar-wrapper {
        height: 50px;
        width: 7px;
    }
    .room-bars {
        gap: 4px;
    }
    .room-stats-row {
        font-size: 10px;
        gap: 10px;
    }
}
/* ===== پیام‌ها ===== */
.messages-section {
    margin-top: 14px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header h2 { font-size: 18px; }
.section-header a { font-size: 13px; color: var(--primary); }

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.message-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #e5e8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.message-content { flex: 1; min-width: 0; }
.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.message-header strong { font-size: 14px; }
.message-header time { color: #999; font-size: 11px; }
.message-content p {
    margin-top: 5px;
    font-size: 14px;
    color: #444;
}
.message-image {
    max-width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 8px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f1ff;
    border-radius: 14px;
    padding: 5px 12px 5px 8px;
    margin-top: 8px;
    max-width: 360px;
}
.audio-player .play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 28px;
    min-height: 28px;
}
.audio-player .progress-container {
    flex: 1;
    height: 4px;
    background: #d5cbfa;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
.audio-player .progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
}
.audio-player .time-display {
    font-size: 11px;
    color: #666;
    min-width: 70px;
    text-align: center;
}
.audio-player.playing .play-btn { background: #e9505e; }

/* ===== موبایل ===== */
.mobile-bottom-nav { display: none; }

/* ============================================================ */
/* ===== ریسپانسیو: همه چیز بزرگ و خوانا ===== */
/* ============================================================ */

@media (max-width: 820px) {
    .home-wrapper {
        padding: 12px 14px 30px;
    }
    .featured-room {
        padding: 16px 18px;
        gap: 14px;
        min-height: 160px;
        border-radius: 10px;
    }
    .featured-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
        border-radius: 14px;
    }
    .featured-room h2 {
        font-size: 18px;
    }
    .featured-subject {
        font-size: 12px;
    }
    .featured-stats strong {
        font-size: 13px;
    }
    .featured-stats small {
        font-size: 9px;
    }
    .user-stack span, .user-stack b {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .user-stack b {
        width: 32px;
        font-size: 9px;
    }

    .head-score-btn {
        gap: 14px;
    }
    .featured-join-btn {
        width: 64px;
        min-height: 130px;
        font-size: 38px;
        border-radius: 14px;
        min-width: 52px;
        min-height: 52px;
    }
    .room-score-area {
        min-width: 120px;
    }
    .score-circle {
        width: 80px;
        height: 80px;
    }
    .score-circle::before {
        width: 60px;
        height: 60px;
    }
    .score-circle strong {
        font-size: 15px;
    }
    .score-circle small {
        font-size: 7px;
    }
    .fire {
        font-size: 12px;
    }
    .crown {
        font-size: 19px;
    }
    .activity-bars {
        height: 20px;
        gap: 2.5px;
    }
    .activity-bars i {
        width: 3.5px;
    }
    .activity-bars i:nth-child(1) { height: 7px; }
    .activity-bars i:nth-child(2) { height: 11px; }
    .activity-bars i:nth-child(3) { height: 5px; }
    .activity-bars i:nth-child(4) { height: 13px; }
    .activity-bars i:nth-child(5) { height: 8px; }
    .activity-bars i:nth-child(6) { height: 15px; }
    .activity-bars i:nth-child(7) { height: 10px; }
    .activity-bars i:nth-child(8) { height: 17px; }
    .activity-bars i:nth-child(9) { height: 12px; }
    .score-label {
        font-size: 7px;
    }

    .stats-cards {
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2px 0 4px 0;
    }
    .stat-card {
        flex: 0 0 auto;
        min-width: 100px;
        max-width: 150px;
        padding: 12px 8px;
    }
    .stat-card-icon { font-size: 22px; }
    .stat-card-number { font-size: 20px; }
    .stat-card-label { font-size: 10px; }

    .topics-intro {
        padding: 14px 18px;
    }
    .topics-intro h3 {
        font-size: 18px;
    }
    .topics-intro p {
        font-size: 13px;
    }
    .topic-btn {
        padding: 7px 16px;
        font-size: 13px;
        min-height: 38px;
    }
    .topic-btn span {
        font-size: 14px;
    }
    .room-toolbar {
        padding: 6px 12px;
    }
    .search-box-mini span {
        font-size: 18px;
    }
    .search-box-mini input {
        font-size: 13px;
        min-height: 32px;
    }
    .sort-box select {
        font-size: 12px;
    }
    .sort-box span {
        font-size: 11px;
    }

    .iq-sidebar {
        flex: 0 0 72px;
        padding: 12px 8px;
    }
    .iq-bar-wrapper {
        width: 16px;
        height: 100px;
    }
    .iq-value {
        font-size: 19px;
    }
    .iq-sub {
        font-size: 8px;
    }

    .room-card-link {
        flex: 0 0 200px;
    }
    .room-card-new {
        height: 260px;
        padding: 14px 10px 12px;
        border-radius: 16px;
    }
    .room-icon {
        font-size: 24px;
    }
    .room-name {
        font-size: 14px;
    }
    .stat-bar-wrapper {
        height: 75px;
        width: 10px;
    }
    .room-stat-bar {
        flex: 0 0 36px;
    }
    .stat-bar-number {
        font-size: 12px;
    }
    .stat-bar-label {
        font-size: 9px;
    }
    .room-stats-row {
        font-size: 13px;
        gap: 14px;
    }
    .room-topic-tag {
        font-size: 9px;
        padding: 2px 10px;
    }

    .message-card {
        padding: 12px 14px;
    }
    .message-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }
    .message-header strong {
        font-size: 13px;
    }
    .message-header time {
        font-size: 10px;
    }
    .message-content p {
        font-size: 13px;
    }
    .audio-player {
        max-width: 300px;
    }
    .audio-player .play-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
        min-width: 24px;
        min-height: 24px;
    }
    .audio-player .time-display {
        font-size: 10px;
        min-width: 60px;
    }
}

/* موبایل بزرگ و متوسط */
@media (max-width: 600px) {
    .home-wrapper {
        padding: 10px 10px 30px;
    }
    .featured-room {
        padding: 14px 16px;
        gap: 12px;
        min-height: 140px;
        border-radius: 8px;
    }
    .featured-icon {
        width: 44px;
        height: 44px;
        font-size: 24px;
        border-radius: 12px;
    }
    .featured-room h2 {
        font-size: 16px;
    }
    .featured-subject {
        font-size: 11px;
        padding: 3px 10px;
    }
    .featured-stats {
        margin-top: 10px;
        gap: 8px;
    }
    .featured-stats strong {
        font-size: 12px;
    }
    .featured-stats small {
        font-size: 8px;
    }
    .user-stack span, .user-stack b {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    .user-stack b {
        width: 30px;
        font-size: 8px;
    }

    .head-score-btn {
        gap: 12px;
    }
    .featured-join-btn {
        width: 56px;
        min-height: 110px;
        font-size: 34px;
        border-radius: 12px;
        min-width: 44px;
        min-height: 44px;
    }
    .room-score-area {
        min-width: 100px;
    }
    .score-circle {
        width: 70px;
        height: 70px;
    }
    .score-circle::before {
        width: 52px;
        height: 52px;
    }
    .score-circle strong {
        font-size: 13px;
    }
    .score-circle small {
        font-size: 6px;
    }
    .fire {
        font-size: 10px;
    }
    .crown {
        font-size: 17px;
    }
    .activity-bars {
        height: 18px;
        gap: 2px;
    }
    .activity-bars i {
        width: 3px;
    }
    .activity-bars i:nth-child(1) { height: 6px; }
    .activity-bars i:nth-child(2) { height: 9px; }
    .activity-bars i:nth-child(3) { height: 4px; }
    .activity-bars i:nth-child(4) { height: 11px; }
    .activity-bars i:nth-child(5) { height: 7px; }
    .activity-bars i:nth-child(6) { height: 13px; }
    .activity-bars i:nth-child(7) { height: 9px; }
    .activity-bars i:nth-child(8) { height: 15px; }
    .activity-bars i:nth-child(9) { height: 10px; }
    .score-label {
        font-size: 6px;
    }

    .stats-cards {
        gap: 8px;
    }
    .stat-card {
        min-width: 85px;
        max-width: 130px;
        padding: 10px 6px;
        border-radius: 10px;
    }
    .stat-card-icon {
        font-size: 20px;
    }
    .stat-card-number {
        font-size: 18px;
    }
    .stat-card-label {
        font-size: 9px;
    }

    .topics-intro {
        padding: 12px 16px;
        border-right-width: 4px;
    }
    .topics-intro h3 {
        font-size: 16px;
    }
    .topics-intro p {
        font-size: 12px;
    }
    .topic-btn {
        padding: 6px 14px;
        font-size: 12px;
        min-height: 36px;
    }
    .topic-btn span {
        font-size: 13px;
    }
    .room-toolbar {
        padding: 6px 10px;
        flex-wrap: wrap;
        gap: 6px;
        border-radius: 12px;
    }
    .search-box-mini {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .search-box-mini input {
        font-size: 12px;
        min-height: 30px;
    }
    .search-box-mini span {
        font-size: 16px;
    }
    .sort-box {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
    .sort-box span {
        font-size: 10px;
    }
    .sort-box select {
        font-size: 11px;
        min-height: 28px;
    }

    .rooms-with-stats {
        flex-direction: column;
        gap: 12px;
    }
    .iq-sidebar {
        flex: 0 0 auto;
        flex-direction: row;
        padding: 10px 14px;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        border-radius: 12px;
    }
    .iq-bar-wrapper {
        width: 80px;
        height: 12px;
        flex-direction: row;
        justify-content: flex-start;
    }
    .iq-bar-fill {
        height: 100%;
        width: 0%;
        min-width: 3px;
        background: linear-gradient(90deg, #7745e8, #a07aff);
        border-radius: 12px;
    }
    .iq-percent {
        position: static;
        transform: none;
        color: var(--primary);
        text-shadow: none;
        font-size: 12px;
        margin-right: 6px;
    }
    .iq-value, .iq-sub {
        display: none;
    }
    .today-stats {
        flex-direction: row;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        gap: 12px;
        width: auto;
    }
    .today-item {
        font-size: 11px;
    }
    .today-number {
        min-width: 16px;
        font-size: 12px;
    }
    .today-icon {
        font-size: 14px;
    }
    .iq-label {
        font-size: 11px;
    }

    .room-card-link {
        flex: 0 0 170px;
    }
    .room-card-new {
        height: 230px;
        padding: 12px 8px 10px;
        border-radius: 14px;
    }
    .room-icon {
        font-size: 20px;
    }
    .room-name {
        font-size: 13px;
    }
    .stat-bar-wrapper {
        height: 60px;
        width: 8px;
    }
    .room-stat-bar {
        flex: 0 0 30px;
        gap: 4px;
    }
    .stat-bar-number {
        font-size: 11px;
    }
    .stat-bar-label {
        font-size: 8px;
    }
    .room-stats-row {
        font-size: 12px;
        gap: 12px;
    }
    .room-topic-tag {
        font-size: 8px;
        padding: 2px 8px;
    }
    .typing-text {
        font-size: 9px;
    }
    .typing-indicator .dot {
        width: 6px;
        height: 6px;
    }
    .section-title h2 {
        font-size: 16px;
    }
    .room-count {
        font-size: 11px;
    }

    .message-card {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 12px;
    }
    .message-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 13px;
    }
    .message-header strong {
        font-size: 12px;
    }
    .message-header time {
        font-size: 9px;
    }
    .message-content p {
        font-size: 12px;
    }
    .message-image {
        max-height: 100px;
    }
    .audio-player {
        max-width: 260px;
        padding: 4px 10px 4px 6px;
    }
    .audio-player .play-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        min-width: 22px;
        min-height: 22px;
    }
    .audio-player .time-display {
        font-size: 9px;
        min-width: 55px;
    }
    .audio-player .progress-container {
        height: 3px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        z-index: 1000;
        right: 0;
        left: 0;
        bottom: 0;
        height: 60px;
        background: rgba(255,255,255,.97);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -5px 20px rgba(30,25,70,.08);
    }
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: #858ca0;
        font-size: 8px;
    }
    .mobile-bottom-nav a span {
        font-size: 18px;
    }
    .mobile-bottom-nav a.active {
        color: var(--primary);
    }
    .mobile-add {
        width: 44px;
        height: 44px;
        margin-top: -22px;
        border-radius: 50%;
        background: linear-gradient(135deg, #7538ee, #5821d4);
        color: white;
        font-size: 24px;
        box-shadow: 0 8px 20px rgba(90,35,210,.3);
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 420px) {
    .home-wrapper {
        padding: 8px 8px 20px;
    }
    .featured-room {
        padding: 12px 14px;
        gap: 10px;
        min-height: 120px;
        border-radius: 6px;
    }
    .featured-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
        border-radius: 10px;
    }
    .featured-room h2 {
        font-size: 14px;
    }
    .featured-subject {
        font-size: 10px;
        padding: 2px 8px;
    }
    .featured-stats {
        margin-top: 8px;
        gap: 6px;
    }
    .featured-stats strong {
        font-size: 11px;
    }
    .featured-stats small {
        font-size: 7px;
    }
    .user-stack span, .user-stack b {
        width: 22px;
        height: 22px;
        font-size: 9px;
        border-width: 1.5px;
    }
    .user-stack b {
        width: 26px;
        font-size: 7px;
    }

    .head-score-btn {
        gap: 10px;
    }
    .featured-join-btn {
        width: 48px;
        min-height: 90px;
        font-size: 28px;
        border-radius: 10px;
        min-width: 40px;
        min-height: 40px;
    }
    .room-score-area {
        min-width: 85px;
    }
    .score-circle {
        width: 60px;
        height: 60px;
    }
    .score-circle::before {
        width: 44px;
        height: 44px;
    }
    .score-circle strong {
        font-size: 11px;
    }
    .score-circle small {
        font-size: 5px;
    }
    .fire {
        font-size: 8px;
    }
    .crown {
        font-size: 14px;
        margin-bottom: -2px;
    }
    .activity-bars {
        height: 15px;
        gap: 1.5px;
        margin-top: 4px;
    }
    .activity-bars i {
        width: 2.5px;
    }
    .activity-bars i:nth-child(1) { height: 5px; }
    .activity-bars i:nth-child(2) { height: 8px; }
    .activity-bars i:nth-child(3) { height: 3px; }
    .activity-bars i:nth-child(4) { height: 9px; }
    .activity-bars i:nth-child(5) { height: 6px; }
    .activity-bars i:nth-child(6) { height: 11px; }
    .activity-bars i:nth-child(7) { height: 8px; }
    .activity-bars i:nth-child(8) { height: 13px; }
    .activity-bars i:nth-child(9) { height: 9px; }
    .score-label {
        font-size: 5px;
    }

    .stats-cards {
        gap: 6px;
        margin: 10px 0 14px 0;
    }
    .stat-card {
        min-width: 75px;
        max-width: 110px;
        padding: 8px 4px;
        border-radius: 8px;
        border-width: 1.5px;
    }
    .stat-card-icon {
        font-size: 18px;
        margin-bottom: 2px;
    }
    .stat-card-number {
        font-size: 16px;
    }
    .stat-card-label {
        font-size: 8px;
    }

    .topics-intro {
        padding: 10px 14px;
        border-right-width: 4px;
        margin-bottom: 14px;
    }
    .topics-intro h3 {
        font-size: 14px;
        margin: 0 0 4px 0;
    }
    .topics-intro p {
        font-size: 11px;
        line-height: 1.6;
    }
    .topic-btn {
        padding: 5px 12px;
        font-size: 11px;
        min-height: 32px;
        border-radius: 8px;
    }
    .topic-btn span {
        font-size: 12px;
    }
    .room-toolbar {
        padding: 5px 8px;
        border-radius: 10px;
        gap: 4px;
        margin-bottom: 14px;
    }
    .search-box-mini {
        gap: 5px;
    }
    .search-box-mini span {
        font-size: 14px;
    }
    .search-box-mini input {
        font-size: 11px;
        min-height: 28px;
    }
    .sort-box select {
        font-size: 10px;
        min-height: 24px;
    }
    .sort-box span {
        font-size: 9px;
    }

    .iq-sidebar {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 10px;
    }
    .iq-bar-wrapper {
        width: 60px;
        height: 10px;
    }
    .iq-percent {
        font-size: 10px;
        margin-right: 4px;
    }
    .today-item {
        font-size: 10px;
        gap: 3px;
    }
    .today-number {
        font-size: 11px;
        min-width: 14px;
    }
    .today-icon {
        font-size: 12px;
    }
    .iq-label {
        font-size: 10px;
    }

    .room-card-link {
        flex: 0 0 145px;
    }
    .room-card-new {
        height: 200px;
        padding: 10px 6px 8px;
        border-radius: 12px;
    }
    .room-icon {
        font-size: 18px;
    }
    .room-name {
        font-size: 12px;
    }
    .stat-bar-wrapper {
        height: 50px;
        width: 7px;
    }
    .room-stat-bar {
        flex: 0 0 26px;
        gap: 3px;
    }
    .stat-bar-number {
        font-size: 10px;
    }
    .stat-bar-label {
        font-size: 7px;
    }
    .room-stats-row {
        font-size: 11px;
        gap: 10px;
    }
    .room-topic-tag {
        font-size: 7px;
        padding: 1px 8px;
    }
    .typing-text {
        font-size: 8px;
    }
    .typing-indicator .dot {
        width: 5px;
        height: 5px;
    }
    .section-title h2 {
        font-size: 14px;
    }
    .room-count {
        font-size: 10px;
    }

    .message-card {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 10px;
    }
    .message-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 12px;
    }
    .message-header strong {
        font-size: 11px;
    }
    .message-header time {
        font-size: 8px;
    }
    .message-content p {
        font-size: 11px;
    }
    .message-image {
        max-height: 80px;
    }
    .audio-player {
        max-width: 220px;
        padding: 3px 8px 3px 5px;
        border-radius: 10px;
    }
    .audio-player .play-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
        min-width: 20px;
        min-height: 20px;
    }
    .audio-player .time-display {
        font-size: 8px;
        min-width: 50px;
    }
    .audio-player .progress-container {
        height: 3px;
    }

    .mobile-bottom-nav {
        height: 54px;
    }
    .mobile-bottom-nav a span {
        font-size: 16px;
    }
    .mobile-add {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: 22px;
    }
}
/* ===== درباره ما ===== */
.about-section {
    margin-top: 40px;
    padding: 40px 20px;
    background: #faf9fe;
    border-radius: 24px;
    border: 1px solid #edebf4;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}
.about-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #171827;
}
.about-header .highlight {
    color: var(--primary);
}
.about-header p {
    font-size: 16px;
    color: #77758a;
    margin-top: 8px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}
.about-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #f0eff5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(40,30,80,0.08);
    border-color: var(--primary);
}
.about-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.about-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #171827;
}
.about-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid #edebf4;
    border-bottom: 1px solid #edebf4;
    margin-bottom: 40px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    font-size: 14px;
    color: #77758a;
    margin-top: 4px;
}

.about-cta {
    text-align: center;
    background: linear-gradient(135deg, #f0ebff, #fff);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid #e5def5;
}
.about-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: #171827;
}
.about-cta p {
    font-size: 16px;
    color: #555;
    margin: 10px 0 20px;
}
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7050e8, #8568ed);
    color: #fff;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(112,80,232,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}
.cta-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(112,80,232,0.4);
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 700px) {
    .about-header h2 {
        font-size: 26px;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .about-card {
        padding: 20px 16px;
    }
    .about-stats {
        gap: 12px;
    }
    .stat-number {
        font-size: 28px;
    }
    .about-cta h3 {
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ===== ارتباط با ما - مینیمال ===== */
.contact-mini {
    background: #f9f8fe;
    border-radius: 16px;
    padding: 18px 24px;
    border: 1px solid #edebf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 24px;
}

.contact-mini-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-mini-header span {
    font-size: 18px;
}
.contact-mini-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #171827;
    margin: 0;
}

.contact-mini-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-mini-item {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #e8e6ef;
}
.contact-mini-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.contact-mini-item .mini-icon {
    font-size: 14px;
}

.mini-divider {
    color: #ccc;
    font-size: 12px;
}

.contact-mini-note {
    font-size: 11px;
    color: #9996a7;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 700px) {
    .contact-mini {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px 18px;
        gap: 8px;
    }
    .contact-mini-header {
        justify-content: center;
    }
    .contact-mini-links {
        justify-content: center;
    }
    .contact-mini-note {
        justify-content: center;
        font-size: 10px;
    }
}