/* =====================================================
   طلا.آی‌آر — Datalife Engine Template
   Primary Stylesheet
   Palette: Deep Black + Royal Gold (#D4AF37)
   Direction: RTL (Persian / Farsi)
   ===================================================== */

/* ===== 1. Design Tokens ===== */
:root {
    /* Backgrounds */
    --bg-primary:     #0a0a0a;
    --bg-secondary:   #121212;
    --bg-card:        rgba(22,22,22,0.88);
    --bg-card-hover:  rgba(30,30,30,0.94);
    --bg-elevated:    rgba(28,28,28,0.55);
    --bg-input:       rgba(28,28,28,0.80);

    /* Text */
    --text-primary:   #FFFFFF;
    --text-secondary: #C8C8C8;
    --text-muted:     #8A8A8A;
    --text-gold:      #D4AF37;

    /* Borders */
    --border-color:   rgba(255,255,255,0.05);
    --border-gold:    rgba(212,175,55,0.18);

    /* Accents */
    --gold:           #D4AF37;
    --gold-light:     #F5D061;
    --gold-dark:      #B8860B;
    --green:          #4CAF50;
    --red:            #EF4444;

    /* Gradients */
    --gradient-gold:  linear-gradient(135deg, #F5D061 0%, #D4AF37 40%, #B8860B 80%, #8A6510 100%);
    --gradient-gold-text: linear-gradient(135deg, #F5D061 0%, #D4AF37 50%, #B8860B 100%);

    /* Background ambient */
    --bg-image:
        radial-gradient(ellipse 80% 50% at 15% 0%,  rgba(212,175,55,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 100%, rgba(212,175,55,0.025) 0%, transparent 60%);

    /* Shadow */
    --shadow-card:    0 12px 40px rgba(0,0,0,0.55), 0 0 60px rgba(212,175,55,0.03);
    --shadow-gold:    0 2px 20px rgba(212,175,55,0.15);

    /* Layout */
    --container-max:  1280px;
    --header-height:  78px;
}

/* ===== 2. Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-primary);
    background-image: var(--bg-image);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Vazirmatn', 'FarhangFaNum', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--bg-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gradient-gold); border-radius: 20px; }

/* ===== 3. Utilities ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .container { padding: 0 24px; }
}
@media (min-width: 1024px) {
    .container { padding: 0 32px; }
}

.text-gold { color: var(--gold) !important;
  font-size:1.0rem;
  line-height:1.75rem
    
}
.text-gold-gradient {
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glass card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

/* ===== 4. Buttons ===== */
.btn-premium {
    background: var(--gradient-gold);
    color: #0a0a0a !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.2px;
    transition: transform .2s ease, box-shadow .25s ease, opacity .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-premium:hover {
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 28px rgba(212,175,55,0.30);
}
.btn-premium:active { transform: translateY(0); }

.btn-outline-gold {
    background: rgba(212,175,55,0.04);
    color: var(--text-primary);
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border-gold);
    letter-spacing: 0.2px;
    transition: background .25s ease, border-color .25s ease;
}
.btn-outline-gold:hover {
    color: var(--gold);
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.35);
}
.btn-outline-gold i { color: var(--gold); }

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    backdrop-filter: blur(10px);
    transition: background .25s ease, color .25s ease;
}
.icon-btn:hover { background: rgba(212,175,55,0.08); color: var(--gold); }

/* ===== 5. Status indicators ===== */
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.dot.green { background: var(--green); }
.dot.gold  { background: var(--gold); }
.pulse-green { animation: pulse-dot 2s ease-in-out infinite; }
.pulse-gold  { animation: pulse-dot 2s ease-in-out infinite; background: var(--gold) !important; }
@keyframes pulse-dot {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(76,175,80,0.10);
    color: var(--green);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(76,175,80,0.20);
}

/* ===== 6. Preloader ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== لوگوی Preloader ===== */
.preloader-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: rgba(212, 175, 55, 0.06);
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
    animation: preloader-pulse 1.6s ease-in-out infinite;
    padding: 12px;
    overflow: hidden;
}

.preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* حذف آیکون قبلی */
.preloader-logo i {
    display: none;
}

/* ===== انیمیشن پالس ===== */
@keyframes preloader-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.12); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 80px rgba(212, 175, 55, 0.25); 
    }
}

/* ===== عنوان Preloader ===== */
.preloader-title {
    margin-top: 24px;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.3;
}

.preloader-title .text-gold {
    color: var(--gold);
    font-size: 2.2rem;
}

/* ===== زیرنویس Preloader ===== */
.preloader-subtitle {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 300;
}

/* ===== نوار بارگذاری ===== */
.preloader-loader {
    margin-top: 28px;
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.preloader-loader span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    animation: loading-bar 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes loading-bar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =====================================================
   RESPONSIVE — Preloader ریسپانسیو
   ===================================================== */

/* ===== تبلت ===== */
@media (max-width: 768px) {
    .preloader-logo {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        padding: 10px;
    }

    .preloader-title {
        font-size: 1.8rem;
    }

    .preloader-title .text-gold {
        font-size: 1.8rem;
    }

    .preloader-subtitle {
        font-size: 0.75rem;
    }

    .preloader-loader {
        width: 180px;
        height: 2.5px;
    }
}

/* ===== موبایل ===== */
@media (max-width: 576px) {
    .preloader-logo {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        padding: 8px;
    }

    .preloader-title {
        font-size: 1.4rem;
        margin-top: 18px;
    }

    .preloader-title .text-gold {
        font-size: 1.4rem;
    }

    .preloader-subtitle {
        font-size: 0.65rem;
        margin-top: 4px;
        letter-spacing: 1.5px;
    }

    .preloader-loader {
        width: 150px;
        height: 2px;
        margin-top: 20px;
    }
}

/* ===== موبایل بسیار کوچک ===== */
@media (max-width: 400px) {
    .preloader-logo {
        width: 70px;
        height: 70px;
        border-radius: 14px;
        padding: 6px;
    }

    .preloader-title {
        font-size: 1.2rem;
        margin-top: 14px;
    }

    .preloader-title .text-gold {
        font-size: 1.2rem;
    }

    .preloader-subtitle {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .preloader-loader {
        width: 120px;
        height: 1.8px;
        margin-top: 16px;
    }
}

/* =====================================================
   گزینه‌های اضافی برای لوگوی Preloader
   ===================================================== */

/* لوگو با پس‌زمینه سفید (اگر لوگو تیره است) */
.preloader-logo.white-bg {
    background: #ffffff;
    border-color: var(--gold);
}

.preloader-logo.white-bg img {
    padding: 4px;
}

/* لوگو بدون حاشیه */
.preloader-logo.no-border {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* لوگو با سایه بیشتر */
.preloader-logo.strong-shadow {
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.25);
}

.preloader-logo.strong-shadow:hover {
    box-shadow: 0 0 100px rgba(212, 175, 55, 0.35);
}

/* لوگو با انیمیشن چرخش */
@keyframes preloader-rotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1); }
}

.preloader-logo.rotate {
    animation: preloader-rotate 3s linear infinite;
}

/* لوگو با افکت شیشه‌ای */
.preloader-logo.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================
   حالت پرینت
   ===================================================== */
@media print {
    #preloader {
        display: none !important;
    }
}

/* ===== 7. Top Bar (price ticker) ===== */
.topbar {
    background: rgba(8,8,8,0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.topbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 7px 16px;
}
.topbar-ticker {
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}
.topbar-ticker-text {
    display: flex;
    gap: 28px;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}
.ticker-item b {
    color: var(--text-primary);
    margin: 0 4px;
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    font-weight: 600;
}
.ticker-item .up   { color: var(--green); }
.ticker-item .down { color: var(--red); }

@media (max-width: 768px) {
    .topbar-ticker-text { font-size: 11px; gap: 18px; }
    .ticker-item b { font-size: 11px; }
}



/* =====================================================
   8. HEADER — اصلاحیه با لوگوی تصویری بزرگتر
   ===================================================== */

/* ===== تنظیم متغیر ارتفاع هدر ===== */
:root {
    /* ... سایر متغیرها ... */
    --header-height: 95px; /* افزایش ارتفاع هدر برای نمایش بهتر لوگو */
}

/* ===== هدر اصلی ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    animation: headerSlideDown 0.5s ease forwards;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--header-height);
    padding: 0 16px;
}

/* ===== دکمه همبرگر ===== */
.hamburger-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.hamburger-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    transform: scale(1.05);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

/* ===== لوگوی تصویری - بزرگ ===== */
.logo-image {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 6px 0;
}

.logo-image img {
    height: 80px; /* افزایش قابل توجه ارتفاع لوگو */
    width: auto;
    max-width: 280px; /* افزایش حداکثر عرض */
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-image:hover img {
    opacity: 0.92;
    transform: scale(1.02);
}

/* ===== ناوبری اصلی ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav .nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 4px 0;
    transition: color 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2.5px;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--gold);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

/* ===== بخش اقدامات هدر ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ===== دکمه آیکون ===== */
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.icon-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    border-color: var(--border-gold);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0) scale(0.95);
}

/* ===== دکمه پریمیوم ===== */
.btn-premium {
    background: var(--gradient-gold);
    color: #0a0a0a !important;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.btn-premium:hover {
    color: #0a0a0a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 28px rgba(212, 175, 55, 0.35);
}

.btn-premium:active {
    transform: translateY(0);
}

/* ===== سرچ باکس کشویی ===== */
.header-search {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.header-search.open {
    max-height: 130px;
    padding: 16px 0;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px 8px 8px 18px;
    transition: border-color 0.25s ease;
}

.header-search .search-form:focus-within {
    border-color: var(--border-gold);
}

.header-search .search-form i {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.header-search .search-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 0;
    min-width: 0;
}

.header-search .search-form input::placeholder {
    color: var(--text-muted);
}

.header-search .search-form button {
    background: var(--gradient-gold);
    color: #0a0a0a;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.header-search .search-form button:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 16px rgba(212, 175, 55, 0.25);
}

.header-search .search-form button:active {
    transform: scale(0.97);
}

/* =====================================================
   RESPONSIVE — هدر ریسپانسیو با لوگوی بزرگ
   ===================================================== */

/* ===== تبلت ===== */
@media (max-width: 1023px) {
    .main-nav {
        display: none;
    }
}

/* ===== تبلت عمودی و موبایل بزرگ ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .header-inner {
        gap: 12px;
        padding: 0 12px;
    }

    .logo-image img {
        height: 60px;
        max-width: 200px;
    }

    .hamburger-btn {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 10px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        border-radius: 10px;
    }

    .btn-premium {
        padding: 8px 18px;
        font-size: 12px;
        border-radius: 10px;
        gap: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-search.open {
        max-height: 110px;
        padding: 12px 0;
    }

    .header-search .search-form {
        padding: 6px 6px 6px 14px;
        border-radius: 12px;
        gap: 10px;
    }

    .header-search .search-form input {
        font-size: 13px;
        padding: 8px 0;
    }

    .header-search .search-form button {
        padding: 8px 18px;
        font-size: 13px;
        border-radius: 8px;
    }

    .header-search .search-form i {
        font-size: 14px;
    }
}

/* ===== موبایل متوسط ===== */
@media (max-width: 576px) {
    :root {
        --header-height: 72px;
    }

    .header-inner {
        gap: 8px;
        padding: 0 10px;
    }

    .logo-image img {
        height: 50px;
        max-width: 160px;
    }

    .hamburger-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
        border-radius: 8px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 8px;
    }

    .btn-premium {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 8px;
        gap: 6px;
    }

    .btn-premium i {
        font-size: 12px;
    }

    .btn-premium .btn-text {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .header-search.open {
        max-height: 100px;
        padding: 10px 0;
    }

    .header-search .search-form {
        padding: 5px 5px 5px 12px;
        border-radius: 10px;
        gap: 8px;
    }

    .header-search .search-form input {
        font-size: 12px;
        padding: 6px 0;
    }

    .header-search .search-form button {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 6px;
    }

    .header-search .search-form i {
        font-size: 13px;
    }
}

/* ===== موبایل بسیار کوچک ===== */
@media (max-width: 400px) {
    :root {
        --header-height: 66px;
    }

    .header-inner {
        gap: 5px;
        padding: 0 8px;
    }

    .logo-image img {
        height: 42px;
        max-width: 130px;
    }

    .hamburger-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 6px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
        border-radius: 6px;
    }

    .btn-premium {
        padding: 4px 10px;
        font-size: 10px;
        border-radius: 6px;
        gap: 4px;
    }

    .btn-premium i {
        font-size: 10px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-search.open {
        max-height: 90px;
        padding: 8px 0;
    }

    .header-search .search-form {
        padding: 4px 4px 4px 10px;
        border-radius: 8px;
        gap: 6px;
    }

    .header-search .search-form input {
        font-size: 11px;
        padding: 5px 0;
    }

    .header-search .search-form button {
        padding: 5px 12px;
        font-size: 11px;
        border-radius: 5px;
    }

    .header-search .search-form i {
        font-size: 11px;
    }
}

/* =====================================================
   انیمیشن ورود هدر
   ===================================================== */
@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   گزینه فوق‌العاده بزرگ برای لوگو (اختیاری)
   ===================================================== */
.logo-image.ultra-large img {
    height: 100px;
    max-width: 350px;
}

@media (max-width: 992px) {
    .logo-image.ultra-large img {
        height: 85px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .logo-image.ultra-large img {
        height: 70px;
        max-width: 220px;
    }
}

@media (max-width: 576px) {
    .logo-image.ultra-large img {
        height: 55px;
        max-width: 180px;
    }
}

@media (max-width: 400px) {
    .logo-image.ultra-large img {
        height: 45px;
        max-width: 150px;
    }
}

/* =====================================================
   بهبود خوانایی لوگو
   ===================================================== */

/* سایه برای خوانایی بیشتر لوگو */
.logo-image img {
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}

/* اگر لوگو در پس‌زمینه تیره دیده نمی‌شود */
.logo-image.dark-bg img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* پس‌زمینه سفید برای لوگو */
.logo-image.with-bg img {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   حالت پرینت
   ===================================================== */
@media print {
    .site-header {
        position: relative;
        background: #fff !important;
        border-bottom: 2px solid #ddd !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        animation: none !important;
    }

    .logo-image img {
        height: 60px !important;
        max-width: 200px !important;
        filter: grayscale(1) !important;
    }

    .main-nav .nav-link {
        color: #333 !important;
    }

    .main-nav .nav-link::after {
        display: none !important;
    }

    .hamburger-btn,
    .header-actions .icon-btn,
    .header-actions .btn-premium {
        display: none !important;
    }

    .header-search {
        display: none !important;
    }
}

/* =====================================================
   حالت دارک/لایت (اختیاری)
   ===================================================== */
@media (prefers-color-scheme: light) {
    .site-header {
        background: rgba(255, 255, 255, 0.95);
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .hamburger-btn {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(212, 175, 55, 0.3);
    }

    .icon-btn {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(0, 0, 0, 0.08);
        color: #1a1a1a;
    }

    .icon-btn:hover {
        background: rgba(212, 175, 55, 0.08);
        color: var(--gold);
    }

    .main-nav .nav-link {
        color: #4a4a4a;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--gold);
    }

    .header-search {
        background: rgba(255, 255, 255, 0.97);
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    .header-search .search-form {
        background: rgba(245, 245, 245, 0.9);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .header-search .search-form input {
        color: #1a1a1a;
    }

    .header-search .search-form input::placeholder {
        color: #999;
    }
}
/* ===== 9. Mobile Menu ===== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-gold);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
    padding: 24px;
    overflow: hidden;
}
.mobile-menu-panel.active { transform: translateX(0); }
.mobile-menu-panel .menu-scroll {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}
.mobile-menu-panel .menu-scroll::-webkit-scrollbar { display: none; }
.mobile-menu-panel .close-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212,175,55,0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 3px 0;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all .25s ease;
}
.menu-item i {
    width: 18px;
    text-align: center;
    color: var(--gold);
    font-size: 14px;
}
.menu-item:hover, .menu-item.active {
    color: var(--gold);
    background: rgba(212,175,55,0.06);
    border-color: var(--border-gold);
}
.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

/* =====================================================
   10. Hero Section — کامل با دکمه‌های جدید
   ===================================================== */

.hero {
    position: relative;
    padding: 40px 0 56px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

/* ===== Hero Content (ستون چپ) ===== */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===== Headline row: title + "تازه" badge ===== */
.hero-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    margin: 0;
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.0rem;
    }
}

.hero-fresh-badge {
    background: linear-gradient(135deg, #8a6510, #5c4205);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.30);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.20);
}

/* ===== Main price line ===== */
.hero-priceline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-price-main {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (min-width: 768px) {
    .hero-price-main {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-price-main {
        font-size: 3.3rem;
    }
}

.hero-price-unit {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Previous-day + change line ===== */
.hero-prev-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.hero-prev-label {
    color: var(--text-muted);
}

.hero-prev-value {
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
}

.hero-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.80rem;
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    margin-right: auto;
}

.hero-change.up {
    color: var(--green);
    background: rgba(76, 175, 80, 0.10);
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.hero-change.down {
    color: var(--red);
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.hero-change i {
    font-size: 10px;
}

/* ===== 3 Karat stat cards ===== */
.hero-karats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .hero-karats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.karat-card {
    background: rgba(28, 28, 28, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.karat-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.karat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.karat-value {
    font-size: 1.20rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.karat-value.up {
    color: var(--green);
}

.karat-value.down {
    color: var(--red);
}

.karat-unit {
    font-size: 10px;
    color: var(--text-muted);
}

.karat-card-change {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(28, 28, 28, 0.65));
    border-color: rgba(76, 175, 80, 0.20);
}

/* ===== 4 Feature circles ===== */
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
}

@media (min-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 8px;
    background: rgba(28, 28, 28, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.hero-feature:hover {
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.04);
    transform: translateY(-2px);
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.20), rgba(212, 175, 55, 0.04));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 20px;
}

.hero-feature-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-feature-text strong {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.hero-feature-text span {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* =====================================================
   Hero Visual (ستون راست - با دکمه‌های جدید)
   ===================================================== */

.hero-visual {
    position: relative;
    min-height: 360px;
}

.hero-visual-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
    width: 100%;
    height: 100%;
    max-height: 520px;
}

@media (min-width: 1024px) {
    .hero-visual-card {
        aspect-ratio: 5 / 6;
    }
}

.hero-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.25) 45%,
        rgba(10, 10, 10, 0.10) 100%);
}

/* ===== دکمه‌های Hero Visual ===== */
.hero-visual-buttons {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

@media (min-width: 576px) {
    .hero-visual-buttons {
        flex-direction: row;
        bottom: 45px;
        left: 44px;
        right: 44px;
    }
}

@media (min-width: 768px) {
    .hero-visual-buttons {
        bottom: 40px;
        left: 48px;
        right: 48px;
        gap: 12px;
    }
}

/* ===== دکمه ورود به سامانه معاملاتی (طلایی) ===== */
.btn-trading {
    background: var(--gradient-gold);
    color: #0a0a0a !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.30);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-trading:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(212, 175, 55, 0.45);
    color: #0a0a0a !important;
}

.btn-trading:active {
    transform: translateY(0);
}

.btn-trading i {
    font-size: 16px;
}

/* ===== دکمه دانلود نرم‌افزار (سبز) ===== */
.btn-download-hero {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.30);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-download-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(76, 175, 80, 0.45);
    color: #ffffff !important;
}

.btn-download-hero:active {
    transform: translateY(0);
}

.btn-download-hero i {
    font-size: 16px;
}

/* ===== افکت ریپل برای دکمه‌ها ===== */
.btn-trading::after,
.btn-download-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-trading:hover::after,
.btn-download-hero:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== انیمیشن ورود دکمه‌ها ===== */
.hero-visual-buttons .btn-trading,
.hero-visual-buttons .btn-download-hero {
    opacity: 0;
    animation: buttonFadeIn 0.6s ease forwards;
}

.hero-visual-buttons .btn-trading {
    animation-delay: 0.3s;
}

.hero-visual-buttons .btn-download-hero {
    animation-delay: 0.5s;
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== متا اطلاعات Hero Visual ===== */
.hero-visual-meta {
    position: absolute;
    bottom: 22px;
    right: 20px;
    left: 20px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-visual-meta {
        bottom: 26px;
        right: 24px;
        left: 24px;
        padding: 14px 18px;
    }
}

/* ===== تگ بالای تصویر ===== */
.hero-visual-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.hero-visual-tag i {
    color: var(--gold);
    font-size: 20px;
}

.hero-visual-tag .title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-visual-tag .sub {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =====================================================
   RESPONSIVE — Hero Section
   ===================================================== */

/* ===== تبلت ===== */
@media (max-width: 1023px) {
    .hero {
        padding: 30px 0 40px;
    }

    .hero-visual-card {
        max-height: 400px;
        aspect-ratio: 16 / 10;
    }
}

/* ===== موبایل بزرگ ===== */
@media (max-width: 768px) {
    .hero {
        padding: 24px 0 32px;
    }

    .hero-inner {
        gap: 20px;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-visual-card {
        max-height: 350px;
        border-radius: 1.25rem;
    }

    .hero-visual-buttons {
        bottom: 5px;
        left: 96px;
        right: 96px;
        gap: 8px;
    }

    .btn-trading,
    .btn-download-hero {
        padding: 10px 18px;
        font-size: 12px;
        border-radius: 10px;
        gap: 8px;
    }

    .btn-trading i,
    .btn-download-hero i {
        font-size: 14px;
    }

    .hero-visual-meta {
        bottom: 18px;
        right: 14px;
        left: 14px;
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 10px;
    }

    .hero-visual-tag {
        top: 14px;
        right: 14px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .hero-visual-tag i {
        font-size: 16px;
    }

    .hero-visual-tag .title {
        font-size: 10px;
    }

    .hero-visual-tag .sub {
        font-size: 9px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-price-main {
        font-size: 2rem;
    }

    .hero-features {
        gap: 8px;
    }

    .hero-feature {
        padding: 10px 6px;
        gap: 6px;
    }

    .hero-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-feature-text strong {
        font-size: 10px;
    }

    .hero-feature-text span {
        font-size: 9px;
    }

    .hero-prev-line {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .hero-karats {
        gap: 8px;
    }

    .karat-card {
        padding: 10px 10px;
    }

    .karat-value {
        font-size: 1rem;
    }

    .karat-label {
        font-size: 10px;
    }
}

/* ===== موبایل متوسط ===== */
@media (max-width: 576px) {
    .hero {
        padding: 20px 0 28px;
    }

    .hero-inner {
        gap: 16px;
    }

    .hero-visual {
        min-height: 240px;
    }

    .hero-visual-card {
        max-height: 300px;
        border-radius: 1rem;
    }

    .hero-visual-buttons {
        flex-direction: column;
        bottom: 5px;
        left: 46px;
        right: 46px;
        gap: 6px;
    }

    .btn-trading,
    .btn-download-hero {
        padding: 8px 14px;
        font-size: 11px;
        border-radius: 8px;
        gap: 6px;
    }

    .btn-trading i,
    .btn-download-hero i {
        font-size: 12px;
    }

    .hero-visual-meta {
        bottom: 14px;
        right: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 10px;
        border-radius: 8px;
        gap: 6px;
    }

    .hero-visual-meta .dot {
        width: 5px;
        height: 5px;
    }

    .hero-visual-tag {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        border-radius: 8px;
        gap: 6px;
    }

    .hero-visual-tag i {
        font-size: 14px;
    }

    .hero-visual-tag .title {
        font-size: 9px;
    }

    .hero-visual-tag .sub {
        font-size: 8px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-fresh-badge {
        font-size: 8px;
        padding: 3px 10px;
    }

    .hero-price-main {
        font-size: 1.7rem;
    }

    .hero-price-unit {
        font-size: 0.85rem;
    }

    .hero-prev-line {
        padding: 6px 10px;
        font-size: 0.65rem;
        gap: 6px;
        border-radius: 8px;
    }

    .hero-change {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .hero-karats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .karat-card {
        padding: 8px 8px;
        border-radius: 10px;
    }

    .karat-value {
        font-size: 0.9rem;
    }

    .karat-label {
        font-size: 9px;
    }

    .karat-unit {
        font-size: 8px;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .hero-feature {
        padding: 8px 4px;
        border-radius: 10px;
        gap: 4px;
    }

    .hero-feature-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .hero-feature-text strong {
        font-size: 9px;
    }

    .hero-feature-text span {
        font-size: 8px;
    }
}

/* ===== موبایل بسیار کوچک ===== */
@media (max-width: 400px) {
    .hero {
        padding: 16px 0 24px;
    }

    .hero-inner {
        gap: 12px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-visual-card {
        max-height: 230px;
        border-radius: 0.85rem;
    }

    .hero-visual-buttons {
        bottom: 6px;
        left: 68px;
        right: 68px;
        gap: 4px;
    }

    .btn-trading,
    .btn-download-hero {
        padding: 6px 10px;
        font-size: 9px;
        border-radius: 6px;
        gap: 4px;
    }

    .btn-trading i,
    .btn-download-hero i {
        font-size: 10px;
    }

    .hero-visual-meta {
        bottom: 10px;
        right: 8px;
        left: 8px;
        padding: 6px 10px;
        font-size: 8px;
        border-radius: 6px;
        gap: 4px;
    }

    .hero-visual-meta .dot {
        width: 4px;
        height: 4px;
    }

    .hero-visual-tag {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        border-radius: 6px;
        gap: 4px;
    }

    .hero-visual-tag i {
        font-size: 12px;
    }

    .hero-visual-tag .title {
        font-size: 8px;
    }

    .hero-visual-tag .sub {
        font-size: 7px;
    }

    .hero-title {
        font-size: 1rem;
    }

    .hero-fresh-badge {
        font-size: 7px;
        padding: 2px 8px;
        border-radius: 10px;
    }

    .hero-price-main {
        font-size: 1.4rem;
    }

    .hero-price-unit {
        font-size: 0.75rem;
    }

    .hero-prev-line {
        padding: 4px 8px;
        font-size: 0.55rem;
        gap: 4px;
        border-radius: 6px;
    }

    .hero-change {
        font-size: 0.55rem;
        padding: 1px 6px;
        border-radius: 4px;
    }

    .hero-karats {
        gap: 4px;
    }

    .karat-card {
        padding: 6px 6px;
        border-radius: 8px;
    }

    .karat-value {
        font-size: 0.75rem;
    }

    .karat-label {
        font-size: 8px;
    }

    .karat-unit {
        font-size: 7px;
    }

    .hero-features {
        gap: 4px;
    }

    .hero-feature {
        padding: 6px 4px;
        border-radius: 8px;
        gap: 3px;
    }

    .hero-feature-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .hero-feature-text strong {
        font-size: 8px;
    }

    .hero-feature-text span {
        font-size: 7px;
    }
}

/* =====================================================
   حالت پرینت
   ===================================================== */
@media print {
    .hero {
        padding: 20px 0;
    }

    .hero-bg-glow {
        display: none;
    }

    .hero-visual-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .hero-visual-overlay {
        display: none;
    }

    .hero-visual-buttons {
        display: none !important;
    }

    .hero-visual-meta {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid #ddd;
        color: #333;
    }

    .hero-visual-tag {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #ddd;
    }

    .hero-visual-tag .title {
        color: #333;
    }

    .hero-visual-tag .sub {
        color: #666;
    }

    .hero-title {
        color: #000;
    }

    .hero-price-main {
        color: #000;
        -webkit-text-fill-color: #000;
    }

    .hero-prev-line {
        background: #f5f5f5;
        border: 1px solid #ddd;
        color: #333;
    }

    .karat-card {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }

    .karat-value {
        color: #000;
    }

    .karat-label {
        color: #666;
    }

    .hero-feature {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }

    .hero-feature-text strong {
        color: #000;
    }

    .hero-feature-text span {
        color: #666;
    }

    .hero-feature-icon {
        background: #eee;
        border: 1px solid #ddd;
        color: #333;
    }

    .btn-trading,
    .btn-download-hero {
        display: none !important;
    }
}

/* ===== 11. Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 36px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-size: 1.10rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--gold);
    font-size: 1rem;
}
.section-more {
    font-size: 12px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .25s ease;
}
.section-more:hover { color: var(--gold); }

/* ===== 12. Market Grid (4 cards) ===== */
.market-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px)  { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .market-grid { grid-template-columns: repeat(4, 1fr); } }

.market-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 18px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.market-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.market-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-gold);
    box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 70px rgba(212,175,55,0.06);
}

.market-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.market-card-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-gold);
    background: var(--bg-primary);
}
.market-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.market-card-info { flex: 1; min-width: 0; }
.market-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.market-card-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.market-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}
.market-card-price .value {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    line-height: 1;
    letter-spacing: -0.5px;
}
.market-card-price .unit {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.market-card-change {
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.market-card-change.up   { color: var(--green); }
.market-card-change.down { color: var(--red); }
.market-card-chart {
    width: 100% !important;
    margin-bottom: 6px;
}
.market-card-foot {
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
}
.market-card-foot b { color: var(--text-secondary); }

/* ===== 13. Services Grid (5 cards) ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(5, 1fr); } }

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1.10rem;
    padding: 22px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: -30px; left: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.20), rgba(212,175,55,0.04));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 22px;
}
.service-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.service-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}
.service-more {
    font-size: 11px;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: gap .25s ease;
}
.service-card:hover .service-more { gap: 10px; }

/* ===== 14. News List (used in shortstory.tpl) ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .25s ease;
}
.news-item:hover {
    background: rgba(212,175,55,0.04);
    border-color: rgba(212,175,55,0.30);
    transform: translateX(-3px);
}
.news-item .news-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-primary);
}
.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-item .news-content { flex: 1; min-width: 0; text-align: right; }
.news-item .news-content .title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.news-item .news-content .title a { color: inherit; }
.news-item .news-content .title a:hover { color: var(--gold); }
.news-item .news-content .meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    color: var(--text-muted);
}
.news-item .news-content .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== 14b. News Card Grid (richer shortstory.tpl) ===== */
.news-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px)  { .news-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-list-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 60px rgba(212,175,55,0.05);
}

.news-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-primary);
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(10px);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.news-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.news-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--gold); }

.news-card-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}
.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.news-card-meta i { color: var(--gold); font-size: 10px; }
.news-card-readmore {
    margin-right: auto;
    color: var(--gold);
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s ease;
}
.news-card-readmore:hover { gap: 8px; color: var(--gold); }

/* ===== 14c. Full Story (richer fullstory.tpl) ===== */
.article-card {
    padding: 24px;
    margin-bottom: 24px;
}
@media (min-width: 768px) { .article-card { padding: 36px; } }

.article-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,175,55,0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 14px;
}
.article-cat-badge i { font-size: 10px; }

.article-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 18px;
}
@media (min-width: 768px) { .article-title { font-size: 2rem; } }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    margin-bottom: 22px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
}
.article-meta-item:hover { color: var(--gold); }
.article-meta-item i {
    color: var(--gold);
    font-size: 14px;
}
.article-meta-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.article-meta-item small {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 1px;
}
.article-meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-gold);
}
.article-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }

.article-cover {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
}
.article-cover img { width: 100%; height: auto; display: block; }

.article-body {
    font-size: 14px;
    line-height: 2;
    color: var(--text-secondary);
}
.article-body p { margin-bottom: 16px; }
.article-body h2, .article-body h3 {
    color: var(--text-primary);
    font-weight: 800;
    margin: 22px 0 12px;
}
.article-body img { border-radius: 12px; margin: 14px 0; }
.article-body ul, .article-body ol { padding-right: 22px; margin-bottom: 14px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
    border-right: 3px solid var(--gold);
    padding: 12px 18px;
    background: var(--bg-elevated);
    border-radius: 8px;
    margin: 14px 0;
    color: var(--text-secondary);
    font-style: italic;
}
.article-body a { color: var(--gold); text-decoration: underline; }

.article-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}
.article-tags-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.article-tags-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.article-tags-label i { color: var(--gold); }
.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-share-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all .25s ease;
}
.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: transparent;
}
.share-telegram:hover  { background: #29a9eb; }
.share-whatsapp:hover  { background: #25d366; }
.share-twitter:hover   { background: #1da1f3; }
.share-facebook:hover  { background: #1877f2; }
.share-print:hover     { background: var(--gold); color: #0a0a0a; }
.share-fav:hover       { background: #ef4444; }

.article-edit-info {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(212,175,55,0.04);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.article-edit-info i { color: var(--gold); margin-left: 4px; }
.article-edit-info strong { color: var(--text-primary); }
.article-edit-reason { color: var(--text-muted); font-style: italic; }

.article-author-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-top: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.article-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-gold);
    flex-shrink: 0;
}
.article-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-author-info {
    flex: 1;
    min-width: 200px;
}
.article-author-info small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.article-author-info strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 6px;
}
.article-author-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}
.article-author-link {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s ease;
}
.article-author-link:hover { gap: 9px; color: var(--gold); }

/* Related news */
.related-news {
    padding: 22px 24px;
    margin-bottom: 24px;
}
.related-news-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-news-title i { color: var(--gold); }
.related-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) { .related-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .related-news-grid { grid-template-columns: repeat(3, 1fr); } }

.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all .25s ease;
}
.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-gold);
}
.related-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-primary);
}
.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.related-card:hover .related-card-image img { transform: scale(1.05); }
.related-card-body { padding: 10px 12px 12px; }
.related-card-body h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-meta {
    display: flex;
    gap: 10px;
    font-size: 10px;
    color: var(--text-muted);
}
.related-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.related-card-meta i { color: var(--gold); }

/* Comments section */
.comments-section {
    padding: 22px 24px;
    margin-bottom: 24px;
}
.comments-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comments-section-title i { color: var(--gold); }
.comments-count {
    background: var(--gradient-gold);
    color: #0a0a0a;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    font-family: 'FarhangFaNum', monospace;
}
.comments-list { display: flex; flex-direction: column; gap: 10px; }

/* ===== 15. App Download Section ===== */
.app-download {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: 1.5rem;
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 36px;
}
@media (min-width: 1024px) {
    .app-download { grid-template-columns: 1.4fr 1fr; padding: 40px; gap: 32px; }
}
.app-download::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.app-download-content { position: relative; z-index: 1; }
.app-download-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,175,55,0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 14px;
}
.app-download h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}
@media (min-width: 768px) { .app-download h2 { font-size: 2rem; } }
.app-download p {
    font-size: 0.90rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 20px;
    max-width: 540px;
}
.app-download-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.store-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    transition: background .25s ease, border-color .25s ease;
}
.store-btn:hover {
    background: rgba(212,175,55,0.06);
    border-color: var(--border-gold);
    color: var(--text-primary);
}
.store-btn i { font-size: 22px; color: var(--text-primary); }
.store-btn span { font-size: 9px; color: var(--text-muted); display: block; }
.store-btn strong { font-size: 12px; color: var(--text-primary); display: block; }

.app-download-image {
    position: relative;
    text-align: center;
}
.app-download-image img {
    max-height: 280px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(212,175,55,0.15));
}

/* ===== 16. Trust Section ===== */
.trust-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 36px 0;
}
@media (min-width: 640px)  { .trust-section { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-section { grid-template-columns: repeat(4, 1fr); } }

.trust-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color .25s ease;
}
.trust-item:hover { border-color: var(--border-gold); }
.trust-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 20px;
    flex-shrink: 0;
}
.trust-icon.support-24 {
    background: var(--green);
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 900;
}
.trust-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
}
.trust-text span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== 17. Footer ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding-top: 48px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
}
@media (min-width: 768px)  { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.footer-brand .logo { margin-bottom: 14px; }
.footer-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 16px;
}
.footer-social {
    display: flex;
    gap: 8px;
}
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .25s ease;
}
.footer-social a:hover {
    color: var(--gold);
    border-color: var(--border-gold);
    background: rgba(212,175,55,0.06);
}

.footer-col h4 {
    font-size: 0.90rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.footer-col ul li {
    margin-bottom: 9px;
    font-size: 0.82rem;
}
.footer-col ul li a {
    color: var(--text-muted);
    transition: color .25s ease;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col ul li i { color: var(--gold); margin-left: 6px; }
.footer-hours li { display: flex; justify-content: space-between; }
.footer-hours li b { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
}
.trust-badge i { color: var(--gold); }
.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 18. Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-gold);
    color: #0a0a0a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-gold);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== 19. Login Panel (login.tpl) ===== */
.login-panel { position: relative; }

.login-trigger {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 4px 12px 4px 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: border-color .25s ease, background .25s ease;
}
.login-trigger:hover {
    border-color: rgba(212,175,55,0.40);
    background: rgba(212,175,55,0.05);
}
.login-trigger-avatar {
     background-image: url("{foto}") !important;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-gold);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-trigger-avatar img { width: 100%; height: 100%; object-fit: cover; }
.login-trigger-name { color: var(--text-primary); font-weight: 600; }
.login-trigger-arrow { font-size: 10px; color: var(--text-muted); }

.login-auth-btn {
    padding: 10px 18px;
}

.login-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    z-index: 200;
}
.login-panel:hover .login-dropdown,
.login-panel.open .login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.login-dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-gold);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.login-dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.login-dropdown-avatar-placeholder i { color: var(--text-muted); font-size: 16px; }
.login-dropdown-head strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}
.login-dropdown-head span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.login-dropdown-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.login-dropdown-body a,
.login-dropdown-guest > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
    text-decoration: none;
}
.login-dropdown-body a:hover,
.login-dropdown-guest > a:hover {
    background: rgba(212,175,55,0.06);
    color: var(--gold);
}
.login-dropdown-body a i,
.login-dropdown-guest > a i {
    color: var(--gold);
    width: 16px;
    text-align: center;
    font-size: 12px;
}
.login-link-arrow {
    margin-right: auto;
    color: var(--text-muted);
    font-size: 10px;
}
.login-link-arrow i { color: var(--text-muted) !important; }
.login-link-badge {
    margin-right: auto;
    background: rgba(212,175,55,0.12);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}
.login-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}
.login-logout {
    color: var(--red) !important;
}
.login-logout i { color: var(--red) !important; }
.login-logout:hover {
    background: rgba(239,68,68,0.08) !important;
    color: var(--red) !important;
}

/* Guest form */
.login-dropdown-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 6px 8px;
}
.login-dropdown-form input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease;
}
.login-dropdown-form input:focus { border-color: var(--border-gold); }
.login-dropdown-form input::placeholder { color: var(--text-muted); }
.login-dropdown-form button[type="submit"] {
    background: var(--gradient-gold);
    color: #0a0a0a;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .2s ease;
}
.login-dropdown-form button[type="submit"]:hover { transform: translateY(-1px); }
.login-dropdown-register {
    background: rgba(212,175,55,0.06);
    border: 1px solid var(--border-gold);
    color: var(--gold) !important;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    margin-top: 4px;
}
.login-dropdown-register:hover {
    background: rgba(212,175,55,0.12);
    color: var(--gold) !important;
}
.login-dropdown-register i { color: var(--gold) !important; }
.login-dropdown-forgot {
    color: var(--text-muted) !important;
    font-size: 11px;
    text-align: center;
    justify-content: center;
    padding: 6px;
}
.login-dropdown-forgot:hover { color: var(--gold) !important; }
.login-dropdown-forgot i { color: var(--text-muted) !important; font-size: 10px !important; }

/* ===== 20. Article / Full Story ===== */
.prose-invert {
    color: var(--text-secondary);
    line-height: 1.95;
}
.prose-invert p { margin-bottom: 14px; font-size: 14px; }
.prose-invert h2, .prose-invert h3 {
    color: var(--text-primary);
    font-weight: 800;
    margin: 20px 0 10px;
}
.prose-invert a { color: var(--gold); }
.prose-invert img { border-radius: 12px; margin: 14px 0; }
.prose-invert ul, .prose-invert ol { padding-right: 20px; margin-bottom: 14px; }
.prose-invert blockquote {
    border-right: 3px solid var(--gold);
    padding: 10px 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    margin: 14px 0;
    color: var(--text-secondary);
}

/* ===== 21. Comments ===== */
.comment-item {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.comment-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-gold);
    background: var(--bg-primary);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.comment-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}
.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}
.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.85;
}
.comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 14px;
}
.comment-actions a {
    font-size: 11px;
    color: var(--text-muted);
    transition: color .2s ease;
}
.comment-actions a:hover { color: var(--gold); }

/* ===== 22. Forms ===== */
.info-box {
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-gold);
    color: var(--text-primary);
    margin-bottom: 16px;
}
.info-box b { color: var(--gold); }

#dle-comments-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#dle-comments-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    min-height: 120px;
    resize: vertical;
    outline: none;
    transition: border-color .2s ease;
}
#dle-comments-form textarea:focus { border-color: var(--border-gold); }

/* ===== 23. Pagination ===== */
.navigation {
    margin: 28px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pages span, .pages a {
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-width: 38px;
    min-height: 38px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    transition: all .2s ease;
}
.pages span {
    background: var(--gradient-gold);
    color: #0a0a0a;
    border-color: transparent;
}
.pages a:hover {
    background: rgba(212,175,55,0.08);
    border-color: var(--border-gold);
    color: var(--gold);
}

/* ===== 24. Utilities for DLE inner pages ===== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.tag-list a {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--text-muted);
    transition: all .2s ease;
}
.tag-list a:hover {
    color: var(--gold);
    border-color: var(--border-gold);
    background: rgba(212,175,55,0.06);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--gold); }

/* Article meta row */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.article-meta span i { color: var(--gold); }

/* Article header */
.article-header {
    margin-bottom: 18px;
}
.article-header h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    .article-header h1 { font-size: 1.85rem; }
}

/* Article footer (tags, share) */
.article-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ===== 25. Print ===== */
@media print {
    .site-header, .site-footer, .topbar, .back-to-top,
    #preloader, .mobile-menu-panel, .mobile-menu-overlay,
    .app-download, .trust-section { display: none !important; }
    body { background: #fff; color: #000; }
}
/* =====================================================
   Hero Price Display — نمایش قیمت‌ها (ریسپانسیو اصلاح شده)
   ===================================================== */

.hero-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون در همه حالت‌ها */
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    direction: rtl;
}

/* ===== تنظیم برای نمایش بهتر در موبایل ===== */
@media (max-width: 576px) {
    .hero-price-grid {
        grid-template-columns: 1fr 1fr; /* دو ستون در موبایل */
        gap: 6px;
        padding: 0 4px;
    }
}

@media (max-width: 400px) {
    .hero-price-grid {
        grid-template-columns: 1fr 1fr; /* دو ستون در موبایل کوچک */
        gap: 4px;
        padding: 0 2px;
    }
}

/* ===== آیتم قیمت ===== */
.price-item {
    background: rgba(28, 28, 28, 0.55);
    border: 1px solid var(--border-color, rgba(255,255,255,0.05));
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 0; /* جلوگیری از سرریز */
    width: 100%;
    box-sizing: border-box;
}

.price-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.price-item:hover {
    border-color: var(--border-gold, rgba(212,175,55,0.18));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(28, 28, 28, 0.75);
}

/* ===== نام محصول ===== */
.price-item-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary, #FFFFFF);
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.05));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-item-name i {
    color: var(--gold, #D4AF37);
    font-size: 10px;
    flex-shrink: 0;
}

/* ===== ردیف قیمت‌ها ===== */
.price-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
}

.price-item-label {
    font-size: 8px;
    color: var(--text-muted, #8A8A8A);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.price-item-value {
    font-size: 12px;
    font-weight: 800;
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    color: var(--text-primary, #FFFFFF);
    direction: ltr;
    letter-spacing: -0.2px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-item-value.sell {
    color: var(--gold, #D4AF37);
}

.price-item-value.buy {
    color: var(--green, #4CAF50);
}

.price-item-value.zero {
    color: var(--text-muted, #8A8A8A);
    opacity: 0.5;
}

/* ===== آیتم ویژه ===== */
.price-item.featured {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(28, 28, 28, 0.65));
    border-color: var(--border-gold, rgba(212,175,55,0.18));
}

.price-item.featured .price-item-value.sell {
    color: var(--gold-light, #F5D061);
}

/* ===== برچسب زنده ===== */
.price-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--green, #4CAF50);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 7px;
    font-weight: 700;
    border: 1px solid rgba(76, 175, 80, 0.15);
    margin-top: 2px;
    align-self: flex-start;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* =====================================================
   ریسپانسیو کامل برای موبایل
   ===================================================== */

/* ===== موبایل متوسط ===== */
@media (max-width: 576px) {
    .price-item {
        padding: 8px 8px;
        border-radius: 8px;
        gap: 3px;
    }

    .price-item-name {
        font-size: 9px;
        gap: 4px;
        padding-bottom: 2px;
    }

    .price-item-name i {
        font-size: 8px;
    }

    .price-item-value {
        font-size: 10px;
    }

    .price-item-label {
        font-size: 7px;
        letter-spacing: 0.2px;
    }

    .price-item-row {
        gap: 3px;
    }

    .price-live-badge {
        font-size: 6px;
        padding: 1px 4px;
        border-radius: 6px;
    }
}

/* ===== موبایل بسیار کوچک ===== */
@media (max-width: 400px) {
    .hero-price-grid {
        gap: 4px;
        padding: 0 2px;
    }

    .price-item {
        padding: 6px 6px;
        border-radius: 6px;
        gap: 2px;
    }

    .price-item-name {
        font-size: 7px;
        gap: 3px;
        padding-bottom: 2px;
    }

    .price-item-name i {
        font-size: 7px;
    }

    .price-item-value {
        font-size: 8px;
        letter-spacing: 0;
    }

    .price-item-label {
        font-size: 6px;
        letter-spacing: 0;
    }

    .price-item-row {
        gap: 2px;
    }

    .price-live-badge {
        font-size: 5px;
        padding: 1px 3px;
        border-radius: 4px;
    }
}

/* ===== تبلت ===== */
@media (min-width: 577px) and (max-width: 1024px) {
    .hero-price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .price-item {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .price-item-name {
        font-size: 10px;
    }

    .price-item-value {
        font-size: 12px;
    }

    .price-item-label {
        font-size: 8px;
    }
}

/* ===== دسکتاپ ===== */
@media (min-width: 1025px) {
    .hero-price-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .price-item {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .price-item-name {
        font-size: 12px;
    }

    .price-item-value {
        font-size: 14px;
    }

    .price-item-label {
        font-size: 9px;
    }
}

/* =====================================================
   اصلاح هدر قیمت‌ها (hero-prev-line)
   ===================================================== */

.hero-prev-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted, #8A8A8A);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color, rgba(255,255,255,0.05));
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.hero-prev-label {
    color: var(--text-secondary, #C8C8C8);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.hero-prev-label i {
    color: var(--gold, #D4AF37);
    font-size: 10px;
}

.hero-prev-value {
    color: var(--text-secondary, #C8C8C8);
    font-weight: 600;
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    direction: ltr;
    font-size: 0.7rem;
    white-space: nowrap;
}

.hero-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.65rem;
    font-family: 'FarhangFaNum', 'Vazirmatn', monospace;
    margin-right: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.hero-change.up {
    color: var(--green, #4CAF50);
    background: rgba(76, 175, 80, 0.10);
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.hero-change.down {
    color: var(--red, #EF4444);
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.hero-change i {
    font-size: 8px;
}

/* ===== ریسپانسیو hero-prev-line ===== */
@media (max-width: 576px) {
    .hero-prev-line {
        padding: 6px 10px;
        gap: 4px;
        border-radius: 8px;
        font-size: 0.65rem;
    }

    .hero-prev-label {
        font-size: 0.6rem;
        gap: 3px;
    }

    .hero-prev-label i {
        font-size: 8px;
    }

    .hero-prev-value {
        font-size: 0.55rem;
    }

    .hero-change {
        font-size: 0.5rem;
        padding: 1px 5px;
        border-radius: 4px;
        gap: 2px;
    }

    .hero-change i {
        font-size: 6px;
    }
}

@media (max-width: 400px) {
    .hero-prev-line {
        padding: 4px 8px;
        gap: 3px;
        border-radius: 6px;
        font-size: 0.55rem;
    }

    .hero-prev-label {
        font-size: 0.5rem;
    }

    .hero-prev-label i {
        font-size: 6px;
    }

    .hero-prev-value {
        font-size: 0.45rem;
    }

    .hero-change {
        font-size: 0.4rem;
        padding: 1px 4px;
        border-radius: 3px;
    }

    .hero-change i {
        font-size: 5px;
    }
}