

.category-selection {
    width: 100%;
    max-width: 850px;
    margin: 35px auto;
    text-align: center;
}

.category-selection h2 {
    color: #70D9FF;
    font-size: 25px;
    margin-bottom: 12px;
}

.category-selection p {
    color: #aaa;
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    background: #0b1930;
    border: 1px solid #204264;
    border-radius: 16px;
    padding: 25px 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-card span {
    font-size: 14px;
}

.category-card:hover {
    border-color: #70D9FF;
    background: #142b45;
    transform: translateY(-4px);
}

#backToCategories {
    background: transparent;
    color: #70D9FF;
    border: 1px solid #204264;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'tahoma',sans-serif;
}
body{
    background-color: #f8f9fa;
    color: #333;
}
/*هدر سایت*/
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.logo h2{
    color: #e63946;
    font-size: 28px;
}






/*چیدمان اصلی*/
.container{
    display: flex;
   flex-direction: row-reverse;
   gap: 30px;
   padding: 30px 20px;
   width: 100%;
  box-sizing: border-box;
   
}
.sidebar{
    width: 250px;
    background-color: #0b0b0f;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15),
    0 0 50px rgba(236, 72, 153, 0.1),
    inset 0 0 15px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}
.sidebar h3{
    font-size: 16px;
    color: #f8fafc;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: right;
    letter-spacing: 0.5px;
}
.sidebar ul{
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.sidebar ul li{
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    text-align: right;
    transition: all 0.25s ease;

}
.sidebar ul li:last-child{
    border-bottom: none;
}
.sidebar ul li:hover{
    color: #3b82f6;
    padding-right: 6px;
}
.content{
    flex: 1;
}
.ads-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
    margin-top: 20px;
}
.ad-card{
    background: white;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
.ad-image{
    height: 160px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;

}
.ad-details{
    padding: 12px;
}
.ad-price{
    color: #e63946;
    font-weight: bold;
    margin: 8px 0;
}
.ad-location{
    font-size: 12px;
    color: #777;
}

.search-container input::placeholder{
color: #94a3b8;
}


.logo{
    display: flex;
    align-items: center;
}
.logo img{
    height: 80px;
    width: auto;
    object-fit: contain;
}
.globe-hero-section{
    position: relative;
    width: 100%;
    height: 450;
    background-color: #07090f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    object-fit: cover;
    padding: 0 0;
}
.globe-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    image-rendering: -webkit-optimize-contrast;
}

/* چیدمان کره زمین و دسته بندی ها */
.hero-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    padding: 20px 24px;
    direction: rtl;
    box-sizing: border-box;
}

/* کره زمین در سمت چپ */
.globe-hero-section {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 420px;
    background: #07090f;
    overflow: hidden;
    border-radius: 14px;
    padding: 0;
}

.globe-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.globe-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.globe-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* دسته بندی ها در سمت راست */
.sidebar {
    flex: 0 0 265px;
    width: 265px;
    align-self: stretch;
    background: #0b0b0f;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.sidebar h3 {
    color: #f8fafc;
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 14px 4px;
    color: #94a3b8;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li:hover {
    color: #3b82f6;
}

/* آگهی ها زیر کره زمین */
.container {
    display: block;
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
}

.content {
    width: 100%;
    min-width: 0;
}

/* نمایش موبایل */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        padding: 12px;
    }

    .globe-hero-section {
        flex: none;
        width: 100%;
        height: 280px;
    }

    .sidebar {
        flex: none;
        width: 100%;
    }

    .container {
        padding: 12px;
    }
}


/* صفحه اصلی */
html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* هدر روی کره زمین */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;

    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ویدیو تمام صفحه */
.globe-hero-section {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #05070d;
    margin: 0;
    padding: 0;
}

/* خود ویدیوی کره زمین */
.globe-container {
    width: 100%;
    height: 100%;
}

.globe-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* محتوای سایت روی پس زمینه */
.hero-layout,
.container {
    position: relative;
    z-index: 1;
}

/* انتقال دسته‌بندی‌ها به سمت راست صفحه */
.hero-layout {
    direction: rtl;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 100px 24px 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* تنظیم جایگاه و اندازه لیست دسته‌بندی‌ها */
.hero-layout .sidebar {
    position: relative;
    flex: 0 0 265px;
    width: 265px;
    min-width: 265px;
    margin-right: auto;
    margin-left: 0;
    box-sizing: border-box;
    align-self: flex-start;
}

/* ویدئوی تمام‌صفحه در پس‌زمینه باقی بماند */
.globe-hero-section {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* نمایش صحیح در موبایل */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        padding: 100px 12px 20px;
    }

    .hero-layout .sidebar {
        flex: none;
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}/* قرارگیری دسته‌بندی‌ها در سمت راست صفحه */
.hero-layout {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    direction: rtl;
    width: 100%;
    padding: 110px 25px 20px;
    z-index: 5;
}

/* جایگاه لیست دسته‌بندی‌ها */
.hero-layout > .sidebar {
    position: relative;
    order: 1;
    flex: 0 0 265px;
    width: 265px;
    min-width: 265px;
    margin: 0;
    right: auto;
    left: auto;
    height: auto;
    align-self: flex-start;
}

/* ویدئو تمام صفحه باقی بماند */
.globe-hero-section {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* موبایل */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        padding: 100px 12px 20px;
    }

    .hero-layout > .sidebar {
        width: 100%;
        min-width: 0;
        flex: none;
    }
}
/* فاصله دسته‌بندی‌ها از هدر */
.hero-layout > .sidebar {
    margin-top: 30px;
}


/* کادر تایپ */
.glow-search-container input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px 4px;

    border: none;
    outline: none;
    background: transparent;

    color: #F8FAFC;
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    direction: rtl;
}

.glow-search-container input::placeholder {
    color: #8D9AB2;
    transition: color 0.3s ease;
}

.glow-search-container input:focus::placeholder {
    color: #B8C9E5;
}

/* دکمه فیلتر */
.glow-search-container .filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #172B49,
        #111827
    );

    color: #93C5FD;
    cursor: pointer;

    transition: all 0.25s ease;
}

.glow-search-container .filter-btn:hover {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #60A5FA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

.glow-search-container .filter-btn:active {
    transform: scale(0.96);
}

/* نمایش بهتر در موبایل */
@media (max-width: 768px) {
    .glow-search-container {
        max-width: none;
        border-radius: 14px;
        gap: 8px;
    }

    .glow-search-container input {
        font-size: 12px;
    }

    .glow-search-container .filter-btn {
        width: 38px;
        height: 38px;
    }
}

/* دکمه انتخاب شهر جار */
.city-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex-shrink: 0;
    padding: 12px 18px;

    background: rgba(10, 15, 29, 0.94);
    color: #F8FAFC;

    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* افکت نور آبی */
.city-select-btn:hover {
    background: rgba(17, 27, 47, 0.98);
    border-color: rgba(96, 165, 250, 0.8);

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 8px 30px rgba(37, 99, 235, 0.18);

    transform: translateY(-2px);
}

/* حالت فشردن دکمه */
.city-select-btn:active {
    transform: scale(0.97);
}

/* تمرکز با کیبورد */
.city-select-btn:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 3px;
}

/* اندازه مناسب موبایل */
@media (max-width: 768px) {
    .city-select-btn {
        padding: 10px 12px;
        gap: 6px;
        font-size: 12px;
        border-radius: 14px;
    }
}

/* دکمه ورود و ثبت نام جار */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    padding: 12px 20px;

    background: rgba(10, 15, 29, 0.94);
    color: #F8FAFC;

    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition: all 0.3s ease;
}

/* افکت نور آبی */
.btn-login:hover {
    background: rgba(17, 27, 47, 0.98);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.8);

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 8px 30px rgba(37, 99, 235, 0.18);

    transform: translateY(-2px);
}

/* هنگام کلیک */
.btn-login:active {
    transform: scale(0.97);
}

/* تمرکز با کیبورد */
.btn-login:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 3px;
}

/* نمایش موبایل */
@media (max-width: 768px) {
    .btn-login {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 14px;
    }
}

.globe-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* دسته‌بندی‌های سایت جار؛ هماهنگ با ویدئوی کره زمین */

.sidebar {
    background: rgba(5, 12, 28, 0.88);
    border: 1px solid rgba(65, 190, 255, 0.28);
    border-radius: 20px;
    padding: 22px 16px;
    color: #EAF7FF;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 22px rgba(0, 153, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sidebar h3 {
    color: #70D9FF;
    font-size: 17px;
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(65, 190, 255, 0.25);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    color: #D8E9F8;
    background: rgba(32, 66, 100, 0.25);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 13px 14px;
    margin-bottom: 9px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar li:hover {
    color: #FFFFFF;
    background: linear-gradient(
        110deg,
        rgba(0, 153, 255, 0.28),
        rgba(0, 220, 210, 0.14)
    );
    border-color: rgba(80, 210, 255, 0.5);
    box-shadow: 0 0 16px rgba(0, 170, 255, 0.14);
    transform: translateX(-3px);
}

/* ===== Jar Search Box - Space Theme ===== */

.glow-search-container {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 580px;
    min-width: 0;
    padding: 9px 12px;

    background: #050C1C;
    border: 1px solid rgba(112, 217, 255, 0.35);
    border-radius: 16px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(0, 220, 210, 0.06);

    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* هنگام کلیک روی سرچ باکس */
.glow-search-container:focus-within {
    border-color: #70D9FF;

    box-shadow:
        0 0 0 3px rgba(112, 217, 255, 0.10),
        0 0 22px rgba(0, 220, 210, 0.16);
}

/* آیکون جستجو */
.glow-search-container .search-icon {
    flex-shrink: 0;
    color: #70D9FF;
    margin-right: 4px;
    transition: color 0.3s ease;
}

.glow-search-container:focus-within .search-icon {
    color: #00DCD2;
}

/* کادر نوشتن متن */
.glow-search-container input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 4px;

    background: transparent;
    border: none;
    outline: none;

    color: #EAF7FF;
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    direction: rtl;
}

.glow-search-container input::placeholder {
    color: #70D9FF;
    opacity: 0.75;
}

/* دکمه فیلتر */
.glow-search-container .filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background: #204264;
    color: #70D9FF;

    border: 1px solid rgba(112, 217, 255, 0.25);
    border-radius: 11px;
    cursor: pointer;

    transition: all 0.25s ease;
}

.glow-search-container .filter-btn:hover {
    background: #00DCD2;
    color: #050C1C;
    border-color: #00DCD2;
    box-shadow: 0 0 14px rgba(0, 220, 210, 0.25);
}

.glow-search-container .filter-btn:active {
    transform: scale(0.96);
}

/* نمایش در موبایل */
@media (max-width: 768px) {
    .glow-search-container {
        max-width: none;
        gap: 8px;
        padding: 7px 9px;
        border-radius: 14px;
    }

    .glow-search-container input {
        font-size: 12px;
    }

    .glow-search-container .filter-btn {
        width: 38px;
        height: 38px;
    }
}


.glow-search-container .search-icon {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    color: #70D9FF;
    filter: drop-shadow(0 0 4px rgba(112, 217, 255, 0.25));
    transition: color 0.3s ease, filter 0.3s ease;
}

.glow-search-container:focus-within .search-icon {
    color: #00DCD2;
    filter: drop-shadow(0 0 7px rgba(0, 220, 210, 0.45));
}

/* ظرف دکمه و منوی شهرها */
.city-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 1000;
}

/* منوی کشویی شهرها */
.city-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;

    background: #050C1C;
    border: 1px solid rgba(112, 217, 255, 0.35);
    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 220, 210, 0.08);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* مخفی ماندن منو تا زمان باز شدن */
.city-list[hidden] {
    display: none;
}

.city-list-title {
    padding: 10px 12px;
    margin-bottom: 6px;
    color: #70D9FF;
    font-size: 12px;
    border-bottom: 1px solid #204264;
}

/* هر شهر */
.city-option {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: right;

    background: transparent;
    color: #EAF7FF;
    border: 1px solid transparent;
    border-radius: 10px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.city-option:hover {
    background: #204264;
    color: #70D9FF;
    border-color: rgba(112, 217, 255, 0.3);
}

.city-option.selected {
    background: rgba(0, 220, 210, 0.12);
    color: #00DCD2;
}

/* چرخش فلش */
.city-arrow {
    transition: transform 0.25s ease;
}

.city-dropdown.open .city-arrow {
    transform: rotate(180deg);
}

/* اسکرول منوی شهرها */
.city-list::-webkit-scrollbar {
    width: 5px;
}

.city-list::-webkit-scrollbar-thumb {
    background: #204264;
    border-radius: 10px;
}

/* دکمه شناور پشتیبانی جار */
.support-floating-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 20px;
    direction: rtl;

    color: #70D9FF;
    background: linear-gradient(135deg, #204264, #050C1C);
    border: 1px solid rgba(112, 217, 255, 0.55);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(0, 220, 210, 0.08);

    transition: all 0.3s ease;
}

.support-floating-btn:hover {
    color: #050C1C;
    background: linear-gradient(135deg, #00DCD2, #70D9FF);
    border-color: #00DCD2;
    box-shadow: 0 0 25px rgba(0, 220, 210, 0.3);
    transform: translateY(-4px);
}

.support-floating-btn svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .support-floating-btn {
        right: 14px;
        bottom: 14px;
        padding: 12px 15px;
        font-size: 12px;
        border-radius: 14px;
    }
}

/* دکمه حساب من جار */
.my-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex-shrink: 0;
    padding: 12px 18px;

    background: rgba(10, 15, 29, 0.94);
    color: #F8FAFC;

    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* حالت رفتن ماوس روی دکمه */
.my-account-btn:hover {
    background: rgba(17, 27, 47, 0.98);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.8);

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 8px 30px rgba(37, 99, 235, 0.18);

    transform: translateY(-2px);
}

/* آیکون حساب من */
.my-account-btn svg {
    flex-shrink: 0;
    color: #F8FAFC;
    transition: color 0.3s ease;
}

.my-account-btn:hover svg {
    color: #93C5FD;
}

.my-account-btn:active {
    transform: scale(0.97);
}


/* دکمه ثبت آگهی جار */
.btn-add-ad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex-shrink: 0;
    padding: 12px 18px;

    background: rgba(10, 15, 29, 0.94);
    color: #F8FAFC;

    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* افکت هاور؛ بدون رنگ فیروزه‌ای */
.btn-add-ad:hover {
    background: rgba(17, 27, 47, 0.98);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.8);

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 8px 30px rgba(37, 99, 235, 0.18);

    transform: translateY(-2px);
}

/* افکت کلیک */
.btn-add-ad:active {
    transform: scale(0.97);
}

.btn-add-ad:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .btn-add-ad {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 16px;
    }
}

/* پنل دسته‌بندی‌های جار */
.sidebar {
    background: rgba(5, 12, 28, 0.92);
    border: 1px solid rgba(112, 217, 255, 0.22);
    border-radius: 20px;
    padding: 22px 16px;
    color: #F8FAFC;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sidebar h3 {
    color: #70D9FF;
    font-size: 17px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(112, 217, 255, 0.18);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    overflow: hidden;
    border: 1px solid rgba(112, 217, 255, 0.12);
    border-radius: 13px;
    background: rgba(32, 66, 100, 0.22);
    transition: border-color 0.3s, background 0.3s;
}

.category-item[open] {
    background: rgba(32, 66, 100, 0.35);
    border-color: rgba(112, 217, 255, 0.38);
}

.category-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 14px 13px;
    padding-left: 36px;
    color: #EAF7FF;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s, background 0.25s;
}

.category-item summary::-webkit-details-marker {
    display: none;
}

.category-item summary::after {
    content: "+";
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #70D9FF;
    font-size: 20px;
    font-weight: 400;
}

.category-item[open] summary::after {
    content: "−";
}

.category-item summary:hover {
    color: #70D9FF;
    background: rgba(32, 66, 100, 0.35);
}

.subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px 12px;
    animation: categoryOpen 0.25s ease;
}

.subcategory-list a {
    display: block;
    padding: 10px 13px;
    border-radius: 9px;
    color: #AFC7DC;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.subcategory-list a:hover {
    color: #70D9FF;
    background: rgba(5, 12, 28, 0.65);
    padding-right: 19px;
}

@keyframes categoryOpen {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== هدر شیشه‌ای جار ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
    padding: 15px 4%;

    direction: rtl;
    background: rgba(5, 12, 28, 0.88);
    border-bottom: 1px solid rgba(112, 217, 255, 0.18);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* لوگو */
.navbar .logo {
    flex-shrink: 0;
}

.navbar .logo a {
    display: flex;
    align-items: center;
}


.navbar .logo img {
    display: block;
    width: 110px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}


/* محدوده جستجو */
.navbar .glow-search-container {
    flex: 1 1 350px;
    width: auto;
    max-width: 580px;
    min-width: 150px;
}

/* دکمه‌های سمت راست هدر */
.navbar .nav-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* رنگ یکدست دکمه‌ها */
.navbar .city-select-btn,
.navbar .my-account-btn,
.navbar .btn-add-ad {
    min-height: 46px;
    background: rgba(10, 15, 29, 0.94);
    color: #F8FAFC;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* هاور آبی؛ بدون فیروزه‌ای شدن */
.navbar .city-select-btn:hover,
.navbar .my-account-btn:hover,
.navbar .btn-add-ad:hover {
    background: rgba(17, 27, 47, 0.98);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.8);

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 8px 30px rgba(37, 99, 235, 0.18);

    transform: translateY(-2px);
}

/* آیکون‌های دکمه‌ها */
.navbar .city-select-btn svg,
.navbar .my-account-btn svg,
.navbar .btn-add-ad svg {
    flex-shrink: 0;
    color: inherit;
}

/* جستجو */
.navbar .glow-search-container {
    background: rgba(5, 12, 28, 0.94);
    border-color: rgba(112, 217, 255, 0.25);
}

.navbar .glow-search-container:focus-within {
    border-color: #70D9FF;
    box-shadow: 0 0 0 3px rgba(112, 217, 255, 0.08);
}

/* نمایشگرهای متوسط */
@media (max-width: 1050px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .navbar .logo {
        order: 1;
    }

    .navbar .nav-action {
        order: 2;
        margin-right: auto;
    }

    .navbar .city-dropdown {
        order: 3;
    }

    .navbar .glow-search-container {
        order: 4;
        flex-basis: 100%;
        max-width: none;
    }
}

/* موبایل */
@media (max-width: 600px) {
    .navbar {
        padding: 12px 4%;
        gap: 10px;
    }

    .navbar .logo img {
        width: 48px;
        max-height: 45px;
    }

    .navbar .nav-action {
        gap: 7px;
    }

    .navbar .city-select-btn,
    .navbar .my-account-btn,
    .navbar .btn-add-ad {
        min-height: 40px;
        padding: 9px 11px;
        border-radius: 12px;
        font-size: 11px;
        gap: 6px;
    }

    .navbar .city-select-btn svg,
    .navbar .my-account-btn svg,
    .navbar .btn-add-ad svg {
        width: 17px;
        height: 17px;
    }
}

/* جستجوی شهر در فهرست کشویی جار */
.city-search-input {
    display: block;
    width: calc(100% - 20px);
    margin: 10px;
    padding: 12px;
    background: #0B1628;
    color: #F8FAFC;
    border: 1px solid rgba(112, 217, 255, 0.3);
    border-radius: 10px;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    outline: none;
    direction: rtl;
}

.city-search-input:focus {
    border-color: #70D9FF;
    box-shadow: 0 0 0 3px rgba(112, 217, 255, 0.08);
}

.city-options {
    max-height: 260px;
    overflow-y: auto;
    padding: 0 10px 10px;
}

.city-options .city-option {
    display: block;
    width: 100%;
    text-align: right;
    padding: 10px 12px;
    background: transparent;
    color: #F8FAFC;
    border: none;
    border-radius: 8px;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.city-options .city-option:hover {
    background: rgba(112, 217, 255, 0.1);
    color: #93C5FD;
}

.city-no-results {
    padding: 8px 14px;
    color: #A8B8CA;
    font-size: 12px;
    text-align: center;
}

.city-list[hidden] {
    display: none !important;
}

/* اصلاح چیدمان هدر جار */
.navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 4%;
    direction: rtl;
    box-sizing: border-box;
}

/* لوگو در سمت راست */
.navbar .logo {
    order: 1;
    flex: 0 0 auto;
}

/* انتخاب شهر */
.navbar .city-dropdown {
    order: 2;
    flex: 0 0 auto;
    position: relative;
}

/* جستجو در وسط هدر */
.navbar .glow-search-container {
    order: 3;
    flex: 1 1 auto;
    width: auto;
    min-width: 120px;
    max-width: 580px;
}

/* حساب کاربری و ثبت آگهی */
.navbar .nav-action {
    order: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin: 0;
}

/* جلوگیری از رفتن عناصر به ردیف بعد */
.navbar .city-select-btn,
.navbar .my-account-btn,
.navbar .btn-add-ad {
    white-space: nowrap;
}

/* نمایش مرتب در صفحه‌های کوچک */
@media (max-width: 1000px) {
    .navbar {
        flex-wrap: wrap;
    }

    .navbar .logo {
        order: 1;
    }

    .navbar .city-dropdown {
        order: 2;
    }

    .navbar .nav-action {
        order: 3;
        margin-right: auto;
    }

    .navbar .glow-search-container {
        order: 4;
        flex: 1 1 100%;
        max-width: none;
    }
}


/* پنل فیلترهای جار */
.filter-overlay[hidden] {
    display: none !important;
}

.filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: rgba(1, 6, 17, 0.78);
    backdrop-filter: blur(8px);
}

.filter-panel {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    direction: rtl;
    color: #F8FAFC;
    background: linear-gradient(145deg, #0C1930, #07101F);
    border: 1px solid rgba(112, 217, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    font-family: Tahoma, sans-serif;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.filter-header h2 {
    margin: 0;
    font-size: 20px;
    color: #70D9FF;
}

.filter-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(112, 217, 255, 0.2);
    border-radius: 10px;
    background: #101E34;
    color: white;
    font-size: 27px;
    cursor: pointer;
}

.filter-panel form > label {
    display: block;
    margin: 16px 0 8px;
    font-size: 13px;
    color: #D8E8F8;
}

.filter-panel input,
.filter-panel select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px;
    color: #F8FAFC;
    background: #081426;
    border: 1px solid rgba(112, 217, 255, 0.2);
    border-radius: 10px;
    outline: none;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #70D9FF;
    box-shadow: 0 0 0 3px rgba(112, 217, 255, 0.08);
}

.filter-panel select option {
    color: white;
    background: #081426;
}

.filter-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.filter-actions button {
    flex: 1;
    min-height: 44px;
    padding: 10px;
    border-radius: 11px;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-reset {
    color: #D8E8F8;
    background: transparent;
    border: 1px solid rgba(112, 217, 255, 0.3);
}

.filter-apply {
    color: #06101F;
    background: #70D9FF;
    border: 1px solid #70D9FF;
}

.filter-reset:hover {
    border-color: #70D9FF;
}

.filter-apply:hover {
    background: #A5E8FF;
}

.filter-message {
    margin-bottom: 0;
    color: #70D9FF;
    font-size: 12px;
    line-height: 1.8;
}

@media (max-width: 480px) {
    .filter-panel {
        padding: 18px;
    }
}
/* دکمه علاقه‌مندی‌های جار */
.favorites-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex-shrink: 0;
    padding: 12px 18px;

    background: rgba(10, 15, 29, 0.94);
    color: #F8FAFC;

    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* افکت هاور */
.favorites-nav-btn:hover {
    background: rgba(17, 27, 47, 0.98);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.8);

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 8px 30px rgba(37, 99, 235, 0.18);

    transform: translateY(-2px);
}

/* آیکون قلب */
.favorites-nav-btn span:first-child {
    flex-shrink: 0;
    color: #F8FAFC;
    font-size: 18px;
    transition: color 0.3s ease;
}

.favorites-nav-btn:hover span:first-child {
    color: #93C5FD;
}

.favorites-nav-btn:active {
    transform: scale(0.97);
}

/* منوی دسته‌بندی‌های جار */
.categories-menu {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.categories-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    min-height: 46px;

    background: rgba(10, 15, 29, 0.94);
    color: #F8FAFC;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;

    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition: 0.3s ease;
}

.categories-btn:hover,
.categories-menu:focus-within .categories-btn {
    background: rgba(17, 27, 47, 0.98);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.8);
    transform: translateY(-2px);
}

.categories-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    padding: 10px;

    background: #0b1629;
    border: 1px solid rgba(112, 217, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    z-index: 2000;
}

.categories-menu:hover .categories-dropdown,
.categories-menu:focus-within .categories-dropdown {
    display: block;
}

.categories-dropdown a {
    display: block;
    padding: 12px 14px;
    color: #F8FAFC;
    text-decoration: none;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.categories-dropdown a:hover {
    background: rgba(112, 217, 255, 0.1);
    color: #70D9FF;
}

/* زیرلیست زیر همان دسته‌بندی باز شود */
.subcategory-menu {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 5px 12px 8px;

    background: rgba(112, 217, 255, 0.04);
    border: none;
    border-radius: 10px;
    box-shadow: none;
}

/* نمایش زیرلیست هنگام رفتن موس روی دسته */
.category-item:hover > .subcategory-menu,
.category-item:focus-within > .subcategory-menu {
    display: block;
}

/* نمایش گزینه‌های زیرلیست */
.subcategory-menu a {
    display: block;
    padding: 10px 12px;
    color: #F8FAFC;
    text-decoration: none;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    white-space: normal;
}

.subcategory-menu a:hover {
    color: #70D9FF;
    background: rgba(112, 217, 255, 0.1);
}

/* اصلاح اندازه و جایگاه آگهی‌ها */
.latest-ads {
    flex: 0 0 380px !important;
    width: 380px !important;
    max-width: 38% !important;
    max-height: 520px !important;
    overflow-y: auto !important;
    padding: 12px !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

/* حذف پس‌زمینه‌های سفید و خاکستری */
#adsList,
#adsList.ads-grid,
#adsList .ad-card,
#adsList .ad-card * {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* هر آگهی به شکل یک ردیف کوچک */
#adsList.ads-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
}

#adsList .ad-card {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) !important;
    grid-template-rows: repeat(5, auto) !important;
    align-items: center !important;
    gap: 3px 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    direction: ltr !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 0 !important;
}

/* تصویر کوچک در سمت چپ */
#adsList .ad-card img {
    grid-column: 1 !important;
    grid-row: 1 / span 5 !important;
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* اطلاعات در سمت راست تصویر */
#adsList .ad-card h3,
#adsList .ad-card p {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    writing-mode: horizontal-tb !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.8 !important;
    color: #fff !important;
    font-size: 12px !important;
}

#adsList .ad-card h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
}

#adsList .ad-card .ad-price {
    color: #63e6be !important;
    font-weight: bold !important;
}

/* جلوگیری از ایجاد کادر روی ویدئو */
.globe-hero-section,
.globe-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.globe-video {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* نمایش مناسب در موبایل */
@media (max-width: 750px) {
    .hero-layout {
        flex-direction: column !important;
    }

    .latest-ads {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* انتقال آگهی‌ها به سمت چپ کره زمین */
.hero-layout {
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.latest-ads {
    order: -1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: right !important;
}

.globe-hero-section {
    order: 2 !important;
}

/* عنوان آخرین آگهی‌های جار */
.latest-ads h2 {
    color: #ffffff !important;
    font-family: "Vazirmatn", "Tahoma", sans-serif !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    text-align: right !important;
    line-height: 1.8;
    letter-spacing: -0.5px;
    margin-bottom: 24px !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* نمایش فیلتر محدوده قیمت */
.filter-price-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 8px 0 16px !important;
}

.filter-price-row input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

#adFilterForm label[for="minPrice"],
#adFilterForm label[for="maxPrice"] {
    display: block !important;
}

/* منوی کشویی حساب کاربری جار */
.account-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    background: #0a0f1d;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.account-dropdown[hidden] {
    display: none;
}

.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #f8fafc;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}
#adForm {
    display: none;
}

#adForm.is-visible {
    display: block;
}
.category-selection {
    text-align: center;
    margin: 40px auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.category-card {
    background: #0b1930;
    border: 1px solid #204264;
    color: white;
    border-radius: 15px;
    padding: 25px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.category-card:hover {
    border-color: #70D9FF;
    background: #142b45;
    transform: translateY(-4px);
}

@media(max-width:600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* دکمه علاقه‌مندی آگهی */
.favorite-btn {
    background: transparent;
    border: none;
    color: #70D9FF;
    font-size: 25px;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s ease;
    line-height: 1;
}

.favorite-btn:hover {
    color: #00DCD2;
    transform: scale(1.15);
}

.favorite-btn:focus-visible {
    outline: 2px solid #70D9FF;
    border-radius: 6px;
}

/* =====================================
   JAR PREMIUM AD DETAILS MODAL
===================================== */

.ad-details-modal[hidden] {
    display: none !important;
}

.ad-details-modal:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-details-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 25px;
    direction: rtl;
    animation: jarModalFade 0.3s ease;
}

.ad-details-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 20, 0.88);
    backdrop-filter: blur(12px);
}

.ad-details-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px;
    border: 1px solid rgba(112, 217, 255, 0.22);
    border-radius: 25px;
    background:
        radial-gradient(circle at top left,
        rgba(32, 66, 100, 0.32), transparent 40%),
        linear-gradient(145deg, #0c1930, #050C1C 75%);
    color: #fff;
    box-shadow:
        0 25px 90px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(0, 220, 210, 0.06);
    animation: jarModalSlide 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: #204264 #050C1C;
}

/* دکمه بستن */

.close-ad-details {
    position: sticky;
    top: 0;
    float: left;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(112, 217, 255, 0.25);
    border-radius: 13px;
    background: rgba(32, 66, 100, 0.35);
    color: #70D9FF;
    font-size: 28px;
    cursor: pointer;
    transition: 0.25s ease;
}

.close-ad-details:hover {
    background: #00DCD2;
    color: #050C1C;
    transform: rotate(90deg);
}

/* تصویر اصلی آگهی */

#adDetailsBody > img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: linear-gradient(135deg, #10213a, #071020);
    border: 1px solid rgba(112, 217, 255, 0.15);
    border-radius: 20px;
    margin: 10px 0 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* عنوان آگهی */

#adDetailsBody > h2 {
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.8;
    margin: 15px 0 22px;
}

/* بخش مشخصات */

.ad-detail-section {
    margin-top: 24px;
    padding: 23px;
    border: 1px solid rgba(112, 217, 255, 0.13);
    border-radius: 18px;
    background: rgba(18, 38, 64, 0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

.ad-detail-section h3 {
    color: #70D9FF;
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(112, 217, 255, 0.14);
}

.ad-detail-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ad-detail-info-list p {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(112, 217, 255, 0.09);
    border-radius: 12px;
    background: rgba(5, 12, 28, 0.55);
    color: #dce8f5;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ad-detail-info-list strong {
    color: #70D9FF;
}

.ad-detail-section > p {
    color: #dce8f5;
    font-size: 15px;
    line-height: 2.3;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* دکمه چت */

.chat-seller-btn {
    position: sticky;
    bottom: 0;
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 17px;
    border: 1px solid rgba(112, 217, 255, 0.3);
    border-radius: 15px;
    background: linear-gradient(120deg, #204264, #00DCD2);
    color: #050C1C;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 220, 210, 0.15);
    transition: 0.25s ease;
}

.chat-seller-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 220, 210, 0.25);
}

/* انیمیشن‌ها */

@keyframes jarModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jarModalSlide {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* نمایش موبایل */

@media (max-width: 650px) {
    .ad-details-modal {
        padding: 8px;
    }

    .ad-details-content {
        max-height: 96vh;
        padding: 17px;
        border-radius: 18px;
    }

    #adDetailsBody > img {
        height: 260px;
        border-radius: 14px;
    }

    #adDetailsBody > h2 {
        font-size: 21px;
    }

    .ad-detail-section {
        padding: 16px;
    }

    .ad-detail-info-list {
        grid-template-columns: 1fr;
    }
}

/* ===== JAR FAVORITE BOOKMARK ICON ===== */

.favorite-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(112, 217, 255, 0.3);
    border-radius: 12px;
    background: rgba(5, 12, 28, 0.85);
    color: #DCEBFA;
    cursor: pointer;
    transition: all 0.22s ease;
}

.favorite-btn svg {
    width: 21px;
    height: 21px;
    display: block;
}

.favorite-btn svg path {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.22s ease;
}

/* حالت ذخیره شده */
.favorite-btn.is-saved {
    color: #00DCD2;
    border-color: rgba(0, 220, 210, 0.6);
    background: rgba(0, 220, 210, 0.1);
    box-shadow: 0 0 14px rgba(0, 220, 210, 0.14);
    animation: bookmark-pop 0.28s ease;
}

.favorite-btn.is-saved svg path {
    fill: rgba(0, 220, 210, 0.25);
    stroke: #00DCD2;
}

/* افکت حرکت موس */
.favorite-btn:hover {
    transform: translateY(-2px);
    border-color: #70D9FF;
    box-shadow: 0 0 12px rgba(112, 217, 255, 0.15);
}

/* افکت کلیک */
.favorite-btn:active {
    transform: scale(0.91);
}

/* انیمیشن نشانک */
@keyframes bookmark-pop {
    0% {
        transform: scale(0.88);
    }
    65% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.favorite-btn:focus-visible {
    outline: 2px solid #70D9FF;
    outline-offset: 3px;
}

/* Premium Edit Ad Button */

.edit-ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 12px 18px;
    border: 1px solid rgba(112, 217, 255, 0.45);
    border-radius: 14px;
    background: linear-gradient(135deg, #10243b, #204264);
    color: #70D9FF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 12, 28, 0.18);
    transition: all 0.25s ease;
}


.edit-ad-btn:hover {
    background: linear-gradient(135deg, #204264, #087f91);
    color: #ffffff;
    border-color: #70D9FF;
    box-shadow: 0 6px 18px rgba(0, 220, 210, 0.2);
    transform: translateY(-2px);
}

.edit-ad-btn:active {
    transform: scale(0.97);
}


/* ==============================
   JAR SOCIAL MEDIA FOOTER
================================ */

.jar-social-footer {
    width: 100%;
    box-sizing: border-box;
    margin-top: 55px;
    padding: 40px 20px 25px;
    text-align: center;
    background: linear-gradient(135deg, #050C1C, #10243b);
    border-top: 1px solid rgba(112, 217, 255, 0.25);
    color: #ffffff;
}

.jar-social-footer h3 {
    font-size: 21px;
    margin-bottom: 10px;
    color: #70D9FF;
}

.jar-social-footer p {
    font-size: 14px;
    color: #b8cbd9;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
}

.social-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(112, 217, 255, 0.35);
    border-radius: 16px;
    background: rgba(32, 66, 100, 0.35);
    color: #70D9FF;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-7px) scale(1.08);
    background: #204264;
    color: #ffffff;
    border-color: #70D9FF;
    box-shadow: 0 8px 25px rgba(0, 220, 210, 0.25);
}

.social-icon.telegram:hover {
    color: #70D9FF;
}

.social-icon.whatsapp:hover {
    color: #25D366;
}

.social-icon.instagram:hover {
    color: #E879C7;
}

.social-footer-line {
    width: 70%;
    max-width: 450px;
    height: 1px;
    margin: 30px auto 18px;
    background: rgba(112, 217, 255, 0.2);
}

.jar-social-footer > span {
    color: #8299aa;
    font-size: 12px;
}

@media (max-width: 600px) {
    .jar-social-footer {
        padding: 30px 15px 20px;
    }

    .jar-social-footer h3 {
        font-size: 18px;
    }

    .social-links {
        gap: 16px;
    }

    .social-icon {
        width: 49px;
        height: 49px;
    }
}
/* شبکه‌های اجتماعی زیر لوگوی جار */
.navbar .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar .logo .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.navbar .logo .social-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.navbar .logo .social-icon svg {
    width: 16px;
    height: 16px;
}

/* اندازه مناسب موبایل */
@media (max-width: 600px) {
    .navbar .logo .social-links {
        gap: 5px;
        margin-top: 5px;
    }

    .navbar .logo .social-icon {
        width: 23px;
        height: 23px;
        border-radius: 7px;
    }

    .navbar .logo .social-icon svg {
        width: 13px;
        height: 13px;
    }
}

/* دکمه تماس با فروشنده */

.call-seller-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 15px;
    box-sizing: border-box;

    border: 1px solid rgba(112, 217, 255, 0.3);
    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #204264,
        #00bdb8
    );

    color: #050C1C;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;

    transition: 0.25s ease;
    cursor: pointer;
}

.call-seller-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 220, 210, 0.25);
}

.call-seller-btn[hidden] {
    display: none !important;
}

/* =================================
   اصلاح چیدمان هدر جار در موبایل
================================= */

@media (max-width: 600px) {

    /* چیدمان دکمه‌های هدر */
    .navbar .nav-action {
        display: flex;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin: 0;
        box-sizing: border-box;
    }

    /* هر دکمه نصف عرض ردیف */
    .navbar .nav-action > .categories-menu,
    .navbar .nav-action > .my-account-btn,
    .navbar .nav-action > .favorites-nav-btn,
    .navbar .nav-action > .btn-add-ad {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* دکمه دسته‌بندی */
    .navbar .categories-menu {
        width: 100%;
    }

    .navbar .categories-btn {
        width: 100%;
        min-height: 42px;
        padding: 9px 8px;
        font-size: 11px;
        box-sizing: border-box;
    }

    /* حساب کاربری */
    .navbar .my-account-btn {
        min-width: 0;
        min-height: 42px;
        padding: 8px;
        justify-content: center;
        gap: 5px;
        font-size: 10px;
    }

    .navbar .my-account-btn #accountName {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* علاقه‌مندی‌ها */
    .navbar .favorites-nav-btn {
        min-height: 42px;
        padding: 8px;
        gap: 5px;
        font-size: 11px;
        justify-content: center;
    }

    /* ثبت آگهی */
    .navbar .btn-add-ad {
        min-height: 42px;
        padding: 8px;
        justify-content: center;
        font-size: 11px;
    }

    /* جلوگیری از بیرون‌زدگی هدر */
    .navbar {
        overflow: visible;
        box-sizing: border-box;
    }
}








/* =========================================
   JAR FINAL HERO LAYOUT - RESPONSIVE FIX
   ========================================= */

.hero-layout {
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 110px 24px 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.latest-ads {
    position: relative !important;
    order: 1 !important;
    flex: 0 0 380px !important;
    width: 380px !important;
    max-width: 38% !important;
    min-width: 0 !important;
    max-height: 520px !important;
    overflow-y: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.globe-hero-section {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 420px !important;
    min-height: 0 !important;
    max-height: 420px !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.globe-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.globe-video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 750px) {
    .hero-layout {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
        padding: 100px 12px 20px !important;
        overflow: visible !important;
    }

    .latest-ads {
        order: 1 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 520px !important;
    }

    .globe-hero-section {
        order: 2 !important;
        flex: none !important;
        width: 100% !important;
        height: 280px !important;
        max-height: 280px !important;
    }
}

@media (max-width: 380px) {
    .hero-layout {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .latest-ads h2 {
        font-size: 20px !important;
    }
}


/* =========================================
   JAR HEADER RESPONSIVE FINAL OVERRIDES
   ========================================= */

.navbar,
.navbar * {
    box-sizing: border-box;
}

.navbar {
    min-width: 0;
}

.navbar .logo,
.navbar .city-dropdown,
.navbar .glow-search-container,
.navbar .nav-action {
    min-width: 0;
}

.navbar .nav-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.navbar .account-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
}

.navbar .categories-menu,
.navbar .my-account-btn,
.navbar .favorites-nav-btn,
.navbar .btn-add-ad {
    min-width: 0;
}

.navbar .account-dropdown {
    right: 0;
    left: auto;
    max-width: calc(100vw - 24px);
}

.navbar .categories-dropdown {
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    overflow-y: auto;
}

/* تبلت */
@media (min-width: 601px) and (max-width: 1050px) {
    .navbar {
        flex-wrap: wrap;
    }

    .navbar .logo {
        order: 1;
    }

    .navbar .city-dropdown {
        order: 2;
    }

    .navbar .nav-action {
        order: 3;
        margin-right: auto;
        flex-wrap: wrap;
    }

    .navbar .glow-search-container {
        order: 4;
        flex: 1 1 100%;
        max-width: none;
    }
}

/* موبایل */
@media (max-width: 600px) {
    .navbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 12px 4%;
        overflow: visible;
    }

    .navbar .logo {
        order: 1;
        flex: 0 0 auto;
        max-width: 75px;
    }

    .navbar .logo img {
        width: 48px;
        max-width: 100%;
        max-height: 45px;
    }

    .navbar .city-dropdown {
        order: 2;
        flex: 0 0 auto;
        max-width: calc(100% - 90px);
    }

    .navbar .nav-action {
        order: 3;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        flex: 1 1 100%;
        gap: 8px;
        margin: 0;
    }

    .navbar .nav-action > .categories-menu,
    .navbar .nav-action > .account-menu-wrap,
    .navbar .nav-action > .favorites-nav-btn,
    .navbar .nav-action > .btn-add-ad {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 42px;
        flex: none;
    }

    .navbar .categories-btn,
    .navbar .my-account-btn,
    .navbar .favorites-nav-btn,
    .navbar .btn-add-ad {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 8px;
        gap: 5px;
        border-radius: 12px;
        font-size: 11px;
        white-space: nowrap;
    }

    .navbar .my-account-btn #accountName {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar .categories-btn svg,
    .navbar .my-account-btn svg,
    .navbar .btn-add-ad svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

    .navbar .glow-search-container {
        order: 4;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .navbar .categories-dropdown {
        right: 0;
        left: auto;
        width: min(280px, calc(100vw - 24px));
        min-width: 0;
    }

    .navbar .account-dropdown {
        right: 0;
        left: auto;
        min-width: 170px;
    }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 380px) {
    .navbar {
        padding-right: 8px;
        padding-left: 8px;
    }

    .navbar .nav-action {
        gap: 6px;
    }

    .navbar .categories-btn,
    .navbar .my-account-btn,
    .navbar .favorites-nav-btn,
    .navbar .btn-add-ad {
        padding: 7px 5px;
        font-size: 10px;
    }
}


/* ===== JAR FULLSCREEN GLOBE BACKGROUND FINAL FIX ===== */

html,
body {
    min-height: 100%;
    background: #05070d !important;
}

.globe-hero-section {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    min-height: 100vh !important;
    z-index: 0 !important;
    order: initial !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #05070d !important;
}

.globe-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.globe-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.hero-layout,
.container {
    position: relative;
    z-index: 1;
}

.navbar {
    position: relative;
    z-index: 20;
}

/* موبایل */
@media (max-width: 750px) {
    .globe-hero-section {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
    }
}

/* ===== END FULLSCREEN GLOBE FIX ===== */


/* ===== JAR MOBILE ADS LAYER FIX ===== */
@media (max-width: 750px) {

    .hero-layout {
        position: relative !important;
        z-index: 1 !important;
    }

    .latest-ads {
        position: relative !important;
        z-index: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #adsList,
    #adsList.ads-grid {
        position: relative !important;
        z-index: 5 !important;
    }

    #adsList .ad-card {
        position: relative !important;
        z-index: 5 !important;
    }

    .globe-hero-section {
        z-index: 0 !important;
    }
}
/* ===== END MOBILE ADS LAYER FIX ===== */


/* حذف زیرخط نوشته دکمه ثبت آگهی */
.navbar a.btn-add-ad,
.navbar a.btn-add-ad:hover,
.navbar a.btn-add-ad:focus {
    text-decoration: none !important;
}


/* ===== JAR FIXED STICKY HEADER ===== */

.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100%;
}

/* ===== END JAR STICKY HEADER ===== */



/* ===== JAR AD IMAGE RIGHT - TEXT LEFT ===== */

#adsList .ad-card {
    grid-template-columns: minmax(0, 1fr) 90px !important;
    direction: ltr !important;
}

#adsList .ad-card img {
    grid-column: 2 !important;
    grid-row: 1 / span 5 !important;
}

#adsList .ad-card h3,
#adsList .ad-card p {
    grid-column: 1 !important;
    direction: rtl !important;
    text-align: right !important;
}

/* ===== END JAR AD LAYOUT ===== */



/* ===== JAR SMALL LEFT EDIT BUTTON ===== */

#adsList .ad-card .edit-ad-btn {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
    align-self: center !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 100px !important;
    height: 28px !important;

    padding: 4px 9px !important;
    margin: 5px 0 0 auto !important;

    font-size: 10px !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
    gap: 3px !important;
}

/* ===== END EDIT BUTTON FIX ===== */



/* ===== JAR FINAL AD CARD ALIGNMENT ===== */

/* دکمه ویرایش در پایین سمت چپ */
#adsList .ad-card .edit-ad-btn {
    grid-column: 1 !important;
    justify-self: start !important;
    align-self: end !important;

    margin: 5px 0 0 0 !important;

    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    height: 28px !important;

    padding: 3px 5px !important;
    font-size: 10px !important;
}

/* کمی پایین‌تر آوردن عکس آگهی */
#adsList .ad-card img {
    transform: translateY(35px) !important;
}

/* ===== END FINAL AD CARD ALIGNMENT ===== */



/* ===== Jar Family Counter ===== */
.jar-family-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 6px 13px;
    border: 1px solid rgba(112, 217, 255, 0.25);
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        rgba(32, 66, 100, 0.42),
        rgba(5, 12, 28, 0.72)
    );
    color: #70D9FF;
    box-shadow: 0 0 15px rgba(0, 220, 210, 0.07);
    white-space: nowrap;
    direction: rtl;
    flex: 0 0 auto;
}

.jar-family-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00DCD2;
}

.jar-family-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.35;
}

.jar-family-title {
    color: #EAF8FF;
    font-size: 12px;
    font-weight: 700;
}

.jar-family-subtitle {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #A9C9D9;
    font-size: 11px;
}

.jar-family-subtitle strong {
    color: #00DCD2;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .navbar .nav-action > .jar-family-counter {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 39px;
        box-sizing: border-box;
        justify-content: center;
    }

    .jar-family-info {
        align-items: center;
    }
}

/* ===== JAR AD IMAGE GALLERY ===== */
.jar-ad-gallery {
    width: 100%;
    margin: 10px 0 28px;
    text-align: center;
}

.jar-ad-gallery-main {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: linear-gradient(135deg, #10213a, #071020);
    border: 1px solid rgba(112, 217, 255, 0.2);
    border-radius: 20px;
    cursor: zoom-in;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.jar-ad-gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 12px;
    color: #70D9FF;
}

.jar-ad-gallery-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(112, 217, 255, 0.3);
    border-radius: 12px;
    background: rgba(32, 66, 100, 0.4);
    color: #70D9FF;
    font-size: 20px;
    cursor: pointer;
}

.jar-ad-gallery-count {
    color: #dcecff;
    font-size: 14px;
}

.jar-image-viewer[hidden] {
    display: none !important;
}

.jar-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 75px;
    background: rgba(1, 5, 15, 0.97);
    direction: ltr;
}

.jar-viewer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.jar-viewer-image {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 45px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
}

.jar-viewer-counter {
    margin-top: 15px;
    color: #70D9FF;
    font-size: 15px;
    direction: rtl;
}

.jar-viewer-close,
.jar-viewer-arrow {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(112, 217, 255, 0.35);
    background: rgba(15, 35, 60, 0.85);
    color: #70D9FF;
    cursor: pointer;
}

.jar-viewer-close {
    top: 20px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 30px;
}

.jar-viewer-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 58px;
    border-radius: 14px;
    font-size: 35px;
}

.jar-viewer-prev {
    left: 18px;
}

.jar-viewer-next {
    right: 18px;
}

.jar-viewer-close:hover,
.jar-viewer-arrow:hover {
    background: #00DCD2;
    color: #050C1C;
}

@media (max-width: 650px) {
    .jar-ad-gallery-main {
        height: 260px;
        border-radius: 14px;
    }

    .jar-image-viewer {
        padding: 65px 12px;
    }

    .jar-viewer-arrow {
        width: 36px;
        height: 46px;
        font-size: 27px;
    }

    .jar-viewer-prev {
        left: 5px;
    }

    .jar-viewer-next {
        right: 5px;
    }

    .jar-viewer-image {
        max-width: 100%;
        max-height: calc(100% - 45px);
    }
}
