/* =========================================
   1. تنظیمات پایه و ریست
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    overflow-x: hidden;
    background-color: #fff;
}

/* =========================================
   2. استایل‌های هدر (بدون تغییر)
   ========================================= */
.header-wrapper { position: relative; width: 100%; height: 650px; overflow: hidden; }
.background-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
@keyframes curtain-reveal { 0% { width: 0; } 100% { width: 50%; } }
.bg-right { position: absolute; top: 0; right: 0; height: 100%; background-color: #C8B69E; width: 50%; animation: curtain-reveal 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; box-shadow: -5px 0 20px rgba(0,0,0,0.1); z-index: 2; }
.bg-left { position: absolute; top: 0; left: 0; width: 50%; height: 100%; background-color: #ffffff; overflow: hidden; padding: 30px; z-index: 1; }
.big-typography { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding-top: 110px; direction: ltr; text-align: left; }
@keyframes typing-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.big-typography span { font-size: 130px; font-weight: 900; font-family: sans-serif; color: #e6e6e6; -webkit-text-stroke: 0; text-transform: uppercase; line-height: 1.1; padding: 5px 0; letter-spacing: 2px; white-space: nowrap; margin-left: -5px; clip-path: inset(0 100% 0 0); animation-name: typing-reveal; animation-timing-function: steps(25, end); animation-fill-mode: forwards; }
.big-typography span:nth-child(1) { animation-duration: 1.5s; animation-delay: 0.5s; }
.big-typography span:nth-child(2) { margin-top: 20px; animation-duration: 1s; animation-delay: 2s; }
.big-typography span:nth-child(3) { margin-top: 20px; animation-duration: 1s; animation-delay: 3s; }
.content-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; display: flex; justify-content: space-between; padding-top: 50px; pointer-events: none; }
@keyframes nav-enter { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } }
.nav-container { padding-right: 50px; pointer-events: auto; flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; animation: nav-enter 1s ease-out 1.5s forwards; }
.main-menu ul { list-style: none; display: flex; gap: 30px; flex-wrap: nowrap; }
.main-menu a { text-decoration: none; color: #5e5446; font-size: 14px; font-weight: bold; transition: 0.3s; white-space: nowrap; }
.main-menu a:hover, .main-menu a.active { color: #000; }
@keyframes flicker-reveal { 0% { opacity: 0; } 10% { opacity: 1; } 20% { opacity: 0; } 30% { opacity: 1; } 40% { opacity: 0; } 50% { opacity: 1; } 60% { opacity: 0; } 70% { opacity: 1; } 80% { opacity: 0; } 100% { opacity: 1; } }
.gold-price-table { position: absolute; top: 46%; transform: translateY(-50%); right: 50px; height: 260px; width: 480px; border: 2px solid #C89F5D; border-radius: 0; background: rgba(255, 255, 255, 0.1); overflow: hidden; direction: rtl; display: flex; flex-direction: column; opacity: 0; animation: flicker-reveal 0.8s linear 2.5s forwards; }
.table-row { flex: 1; display: flex; width: 100%; border-bottom: 1px solid #C89F5D; align-items: center; }
.table-row:last-child { border-bottom: none; }
.col-label { flex: 1.2; padding: 0 20px; text-align: right; font-weight: 800; color: #4E1A1A; font-size: 18px; }
.col-price { flex: 1; padding: 0 20px; text-align: center; font-weight: 800; color: #4E1A1A; font-size: 20px; border-left: 1px solid #C89F5D; height: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.en-font { font-family: sans-serif; letter-spacing: 1px; font-weight: 900; }
.trend-down { color: #D32F2F; font-size: 14px; }
.trend-up { color: #2E7D32; font-size: 14px; }
@keyframes slide-up-fade { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); } }
.table-info-bar { position: absolute; top: calc(46% + 130px + 15px); right: 50px; width: 480px; height: auto; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); border: 1px solid rgba(200, 159, 93, 0.3); padding: 12px 20px; opacity: 0; animation: slide-up-fade 0.8s ease-out 3.3s forwards; }
.info-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #4E1A1A; font-weight: bold; width: 100%; }
.info-row i { color: #C89F5D; font-size: 14px; margin-left: 5px; }
.row-divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, rgba(200, 159, 93, 0.4), transparent); }
.separator { margin: 0 5px; color: #C89F5D; }
.time-display { font-weight: 900; font-size: 14px; letter-spacing: 0; color: #000; font-family: 'Vazirmatn', Tahoma, sans-serif; font-variant-numeric: tabular-nums; }

.gold-price-table .col-price .price-value {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-variant-numeric: tabular-nums;
}
.live-indicator { display: flex; align-items: center; justify-content: center; width: 10px; height: 10px; margin-right: 8px; }
.blink-dot { width: 8px; height: 8px; background-color: #4CAF50; border-radius: 50%; animation: pulse-green 2s infinite; }
.tools-container { padding-left: 50px; pointer-events: auto; display: flex; align-items: flex-start; gap: 15px; }
.account-btn { background-color: #F2EBDD; color: #333; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-size: 13px; font-weight: bold; white-space: nowrap; height: 40px; display: flex; align-items: center; }
.mobile-nav-bar { display: none; }
.mobile-menu-btn { display: none; }
.search-box { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 25px; background: #fff; padding: 3px; width: 280px; height: 40px; }
.search-box input { border: none; outline: none; padding: 0 15px; flex-grow: 1; font-family: inherit; font-size: 12px; height: 100%; background: transparent; }
.category-btn { background-color: #4E1A1A; color: #fff; border: none; border-radius: 22px; padding: 0 15px; height: 32px; font-family: inherit; font-size: 12px; cursor: pointer; margin-left: 3px; display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; }
.arrow { font-style: normal; font-size: 10px; margin-top: 2px; }
.center-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 280px; height: 280px; z-index: 100; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
@keyframes coin-flip { 0% { transform: rotateY(0deg) scale(0.5); opacity: 0; } 100% { transform: rotateY(1440deg) scale(1); opacity: 1; } }
@keyframes spin-text { from { transform: translateZ(1px) rotate(0deg); } to { transform: translateZ(1px) rotate(360deg); } }
.coin-wrapper { position: relative; width: 100%; height: 100%; border-radius: 50%; background-color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.15); animation: coin-flip 2.5s cubic-bezier(0.1, 0.7, 0.1, 1) forwards; transform-style: preserve-3d; }
.text-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; z-index: 10; animation: spin-text 12s linear infinite 2.5s; transform: translateZ(1px); }
.text-ring svg { width: 100%; height: 100%; display: block; }
.inner-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateZ(2px); width: 55%; height: 55%; display: flex; justify-content: center; align-items: center; z-index: 5; }
.inner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* =========================================
   9. سکشن G (با SVG دقیق و انیمیشن)
   ========================================= */
.section-g-wrapper {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-color: #BCA992;
    overflow: hidden;
    direction: rtl;
}

.g-bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 18%;
    height: 100%;
    background-color: #C8B69E;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    z-index: 1;
}

.giant-g-container {
    position: absolute;
    top: 50%;
    left: 18%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 2;
    pointer-events: none;
    direction: ltr;
}

/* انیمیشن‌های حرف G */
@keyframes slide-in-left-half {
    0%   { transform: translateX(-150px); opacity: 0; }
    25%  { transform: translateX(-15px); opacity: 1; }
    75%  { transform: translateX(-15px); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right-half {
    0%   { transform: translateX(150px); opacity: 0; }
    25%  { transform: translateX(15px); opacity: 1; }
    75%  { transform: translateX(15px); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

.g-half-left {
    opacity: 0;
    animation: slide-in-left-half 4.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.g-half-right {
    opacity: 0;
    animation: slide-in-right-half 4.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

/* =========================================
   10. چیدمان عکس و متن (و انیمیشن‌های تایپ)
   ========================================= */
.g-foreground-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    min-height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* عکس سمت راست */
.g-illustration-right {
    width: 30%;
    margin-right: 1%;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.g-illustration-right img {
    max-width: 100%;
    height: auto;
    opacity: 0;
    animation: artistic-sketch 3.5s cubic-bezier(0.4, 0, 0.2, 1) 2.5s forwards;
    transform-origin: center center;
}

@keyframes artistic-sketch {
    0% {
        opacity: 0;
        filter: grayscale(100%) blur(10px) contrast(300%) brightness(1.5);
        transform: scale(0.9);
    }
    30% {
        opacity: 0.5;
        filter: grayscale(100%) blur(2px) contrast(150%) brightness(1.2);
        transform: scale(0.95);
    }
    60% {
        opacity: 0.8;
        filter: grayscale(40%) blur(0.5px) contrast(120%) brightness(1.1);
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        filter: grayscale(0%) blur(0) contrast(100%) brightness(1);
        transform: scale(1);
    }
}

/* --- انیمیشن تایپ سریع (اختصاصی راست‌چین) --- */
@keyframes fast-typing-rtl {
    0% {
        clip-path: inset(0 0 0 100%); /* برش کامل از سمت چپ (پنهان) */
        opacity: 0;
    }
    1% {
        opacity: 1; /* روشن شدن سریع */
    }
    100% {
        clip-path: inset(0 0 0 0); /* نمایان شدن کامل */
        opacity: 1;
    }
}

/* محتوای متنی */
.g-text-content {
    width: 35%;
    margin-right: -1%;
    margin-top: 230px;
    padding: 0 20px;
    text-align: right;
}

.g-title {
    color: #4A4036;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 25px;
    padding-right: 15px;
    position: relative;

    /* اعمال انیمیشن ماشین‌تحریر (پله‌ای) برای تیتر */
    opacity: 0;
    animation: fast-typing-rtl 0.6s steps(30, end) 2.6s forwards;
}

.g-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #6a5d4e;
}

.g-text-content p {
    color: #5C5247;
    font-size: 15px;
    line-height: 2.1;
    text-align: justify;
    margin-bottom: 20px;
    font-weight: 500;
}

/* پاراگراف اول: ظاهر شدن سریع و خطی */
.g-text-content p:nth-of-type(1) {
    opacity: 0;
    animation: fast-typing-rtl 0.8s ease-out 3s forwards;
}

/* پاراگراف دوم: به دنبال پاراگراف اول می‌آید */
.g-text-content p:nth-of-type(2) {
    opacity: 0;
    animation: fast-typing-rtl 1s ease-out 3.5s forwards;
}

/* دکمه */
.g-btn-wrapper {
    margin-top: 25px;
    text-align: right;

    /* دکمه در آخر به آرامی از پایین ظاهر می‌شود */
    opacity: 0;
    animation: slide-up-fade 0.5s ease-out 4.2s forwards;
}

.g-read-more {
    padding: 10px 35px;
    border: 2px solid #8B7E6C;
    color: #4A4036;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.g-read-more:hover {
    background-color: #8B7E6C;
    color: #fff;
}

/* =========================================
   12. سکشن Z (مثل G با جایگاه سمت راست)
   ========================================= */
.section-z-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 700px;
    background-color: #BCA992;
    overflow: clip;
    direction: rtl;
}

.z-bg-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 18%;
    height: 100%;
    background-color: #C8B69E;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1;
}

.giant-z-container {
    position: absolute;
    top: 50%;
    right: 18%;
    transform: translate(50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 2;
    pointer-events: none;
    direction: ltr;
}

/* =========================================
   12. ماشین حساب سمت چپ Z
   ========================================= */
.z-calculator-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 55%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 70px 50px;
    pointer-events: auto;
}

.z-calculator-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(200, 159, 93, 0.38);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.z-calculator-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 20% 0%, rgba(200, 159, 93, 0.35), transparent 55%);
    pointer-events: none;
}

.z-calculator-form,
.z-price-hero {
    position: relative;
    z-index: 1;
}

.z-calculator-form {
    transition: opacity 420ms ease, transform 520ms ease, filter 520ms ease;
}

.z-price-hero {
    margin-top: 22px;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    filter: blur(6px);
    transition: opacity 420ms ease, transform 520ms ease, filter 520ms ease;
}

.z-anim .z-calculator-form {
    opacity: 0.16;
    transform: translateY(12px);
    filter: blur(7px);
}

.z-anim .z-price-hero {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.z-calculator-title {
    font-size: 20px;
    font-weight: 900;
    color: #3d2f25;
    margin-bottom: 18px;
}

.z-grams-label {
    font-size: 14px;
    font-weight: 800;
    color: #4E1A1A;
    margin-bottom: 10px;
}

.z-grams-input-row input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(139, 126, 108, 0.55);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    padding: 0 14px;
    font-size: 16px;
    font-family: inherit;
    color: #2f241d;
    direction: rtl;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.z-grams-input-row input:focus {
    border-color: rgba(200, 159, 93, 0.9);
    box-shadow: 0 0 0 4px rgba(200, 159, 93, 0.18);
}

.z-karat-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.z-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.z-calc-btn,
.z-reset-btn {
    height: 42px;
    border-radius: 999px;
    padding: 0 20px;
    border: 1px solid rgba(139, 126, 108, 0.55);
    cursor: pointer;
    font-weight: 1000;
    transition: transform 160ms ease, background 240ms ease, border-color 240ms ease, color 240ms ease;
    font-family: inherit;
}

.z-calc-btn {
    background: #C8B69E;
    border-color: rgba(200, 182, 158, 0.9);
    color: #2b1b12;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
}

.z-calc-btn:hover {
    transform: translateY(-1px);
}

.z-reset-btn {
    background: rgba(255, 255, 255, 0.10);
    color: #4A4036;
}

.z-reset-btn {
    display: none;
}

.z-calculator-card.z-has-result .z-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.z-reset-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

.z-karat-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(139, 126, 108, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #4A4036;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, background 240ms ease, border-color 240ms ease;
}

.z-karat-btn:hover {
    transform: translateY(-1px);
}

.z-karat-btn.is-active {
    background: #4E1A1A;
    border-color: rgba(78, 26, 26, 0.6);
    color: #fff;
}

.z-note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(78, 26, 26, 0.75);
    line-height: 1.7;
    font-weight: 700;
}

.z-price-sub {
    color: #4E1A1A;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 8px;
}

.z-price-total {
    font-variant-numeric: tabular-nums;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 1000;
    color: #1f150f;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.10);
    letter-spacing: 0.2px;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
}

.z-price-total-number {
    display: inline-block;
}

.z-price-currency {
    font-size: 16px;
    font-weight: 900;
    color: rgba(31, 21, 15, 0.7);
    text-shadow: none;
}

.z-price-per-gram {
    margin-top: 10px;
    font-weight: 900;
    font-size: 13px;
    color: rgba(31, 21, 15, 0.75);
}

.z-reset-under-total {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
}

/* انیمیشن‌های حرف Z (همان افکت‌های G) */
.z-half-left {
    opacity: 0;
    animation: slide-in-left-half 4.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.z-half-right {
    opacity: 0;
    animation: slide-in-right-half 4.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

/* چیدمان عکس و متن */
.z-foreground-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    min-height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    direction: rtl;
}

.z-illustration-left {
    width: 45%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.z-illustration-left img {
    max-width: 100%;
    height: auto;
    opacity: 0;
    animation: artistic-sketch 3.5s cubic-bezier(0.4, 0, 0.2, 1) 2.5s forwards;
    transform-origin: center center;
}

/* محتوای متنی */
.z-text-content {
    width: 25%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 230px;
    padding: 0 20px;
    text-align: right;
    direction: rtl;
}

.z-title {
    color: #4A4036;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 25px;
    padding-right: 15px;
    position: relative;
    opacity: 0;
    animation: fast-typing-rtl 0.6s steps(30, end) 2.6s forwards;
}

.z-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #6a5d4e;
}

.z-text-content p {
    color: #5C5247;
    font-size: 15px;
    line-height: 2.1;
    text-align: justify;
    direction: rtl;
    margin-bottom: 20px;
    font-weight: 500;
}

/* پاراگراف اول: ظاهر شدن سریع و خطی */
.z-text-content p:nth-of-type(1) {
    opacity: 0;
    animation: fast-typing-rtl 0.8s ease-out 3s forwards;
}

/* پاراگراف دوم: به دنبال پاراگراف اول می‌آید */
.z-text-content p:nth-of-type(2) {
    opacity: 0;
    animation: fast-typing-rtl 1s ease-out 3.5s forwards;
}

.z-btn-wrapper {
    margin-top: 25px;
    text-align: right;
    opacity: 0;
    animation: slide-up-fade 0.5s ease-out 4.2s forwards;
}

.z-read-more {
    padding: 10px 35px;
    border: 2px solid #8B7E6C;
    color: #4A4036;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.z-read-more:hover {
    background-color: #8B7E6C;
    color: #fff;
}

/* =========================================
   11. واکنش‌گرا (Mobile)
   ========================================= */
@media (max-width: 1024px) {
    .header-wrapper { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; background-color: #ffffff; }
    .background-layer { display: none; }
    .nav-container { animation: none; opacity: 1; align-items: stretch; padding-bottom: 12px; padding-right: 0; margin-bottom: 6px; width: 100%; }
    .mobile-nav-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        width: calc(100% - 32px);
        max-width: 520px;
        margin: 0 auto 10px;
        padding: 4px 0;
    }
    .mobile-nav-title {
        flex: 1;
        text-align: center;
        font-weight: 900;
        font-size: 14px;
        color: #4A4036;
    }
    .mobile-nav-bar::after {
        content: '';
        width: 44px;
        flex-shrink: 0;
    }
    .mobile-menu-btn {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 1px solid #e5d9c8;
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        padding: 10px;
        flex-shrink: 0;
    }
    .mobile-menu-btn span {
        display: block;
        height: 2px;
        width: 100%;
        background: #4A4036;
        border-radius: 2px;
        transition: transform 220ms ease, opacity 220ms ease;
    }
    .mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .main-menu {
        width: calc(100% - 32px);
        max-width: 520px;
        margin: 0 auto;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 280ms ease, opacity 220ms ease, margin 220ms ease;
    }
    .main-menu.is-open {
        max-height: 380px;
        opacity: 1;
        margin-bottom: 12px;
    }
    .main-menu ul {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        width: 100%;
        border: 1px solid #efe7da;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }
    .main-menu li { border-bottom: 1px solid #f0e8dc; }
    .main-menu li:last-child { border-bottom: none; }
    .main-menu a {
        display: block;
        padding: 14px 16px;
        font-size: 14px;
        white-space: normal;
    }
    .gold-price-table { position: relative; top: auto; right: auto; transform: none; animation: none; opacity: 1; margin: 4px auto 20px; width: 90%; height: auto; border-radius: 0; }
    .table-info-bar { position: relative; top: auto; right: auto; width: 90%; margin: 0 auto 30px; opacity: 1; animation: none; }
    .table-row { padding: 15px 0; }
    .content-layer { position: relative; top: auto; left: auto; height: auto; order: 2; flex-direction: column; align-items: center; padding-top: 0; pointer-events: auto; }
    .tools-container { padding-left: 0; flex-direction: column; align-items: center; padding-bottom: 18px; }
    .tools-container .account-btn { margin-bottom: 6px; }
    .center-logo { position: relative; order: 1; left: auto; top: auto; transform: none; margin: 30px auto 10px; width: 200px; height: 200px; }

    .section-g-wrapper { height: auto; min-height: 0; padding-bottom: 28px; }
    .g-bg-left { display: none; }
    .giant-g-container { display: none; }

    .g-foreground-content {
        min-height: auto;
        padding-top: 24px;
        flex-direction: column;
        align-items: center;
    }
    .g-illustration-right {
        width: 80%;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 30px;
    }
    .g-text-content {
        width: 100%;
        margin-right: 0;
        margin-top: 0;
        padding: 0 20px;
    }

    .section-z-wrapper {
        height: auto;
        min-height: 0;
        padding-bottom: 24px;
    }

    .z-bg-right { display: none; }
    .giant-z-container { display: none; }

    .z-calculator-wrap {
        position: relative;
        width: 100%;
        padding: 28px 20px 20px;
        left: auto;
        top: auto;
        bottom: auto;
        right: auto;
        height: auto;
        align-items: flex-start;
    }

    .z-calculator-card {
        padding: 26px 18px;
    }

    .z-price-total {
        font-size: 34px;
    }

    .z-foreground-content {
        min-height: auto;
        padding-top: 300px;
        flex-direction: column;
        align-items: center;
        direction: rtl;
    }

    .z-illustration-left {
        width: 80%;
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .z-text-content {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        padding: 0 20px;
    }
}

/* =========================================
   13. سکشن S + گاو صندوق تعاملی
   ========================================= */
.section-s-wrapper {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-color: #ffffff;
    overflow: hidden;
    direction: rtl;
}

.s-bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 18%;
    height: 100%;
    background-color: #C8B69E;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
    z-index: 1;
}

.giant-s-container {
    position: absolute;
    top: 50%;
    left: 18%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 2;
    pointer-events: none;
    direction: ltr;
}

.s-half-left {
    opacity: 0;
    animation: slide-in-left-half 4.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.s-half-right {
    opacity: 0;
    animation: slide-in-right-half 4.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.s-foreground-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    min-height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    direction: rtl;
}

.s-vault-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 56%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 40px;
}

/* --- گاو صندوق --- */
.s-vault-card {
    position: relative;
    width: 100%;
    max-width: 660px;
    height: 490px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    border: none;
    box-shadow: none;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 260ms ease;
    outline: none;
}

.s-vault-card:hover {
    transform: translateY(-3px);
}

.s-vault-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.02);
    filter: contrast(1.05) saturate(0.96);
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms ease;
}

.s-vault-open {
    opacity: 0;
}

.s-vault-link {
    display: none;
}

.s-vault-card:hover .s-vault-closed,
.s-vault-card:focus-within .s-vault-closed {
    opacity: 0;
    transform: scale(1.04);
}

.s-vault-card:hover .s-vault-open,
.s-vault-card:focus-within .s-vault-open {
    opacity: 1;
    transform: scale(1.04);
}

.s-vault-card:hover .s-vault-link,
.s-vault-card:focus-within .s-vault-link {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(14px);
}

/* --- واکنش‌گرا --- */
@media (max-width: 1024px) {
    .section-s-wrapper {
        height: auto;
        min-height: 0;
        padding-bottom: 24px;
    }

    .s-bg-left {
        display: none;
    }

    .giant-s-container {
        display: none;
    }

    .s-foreground-content {
        min-height: auto;
        padding-top: 24px;
        flex-direction: column;
        align-items: center;
    }

    .s-vault-container {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        bottom: auto;
        padding-right: 0;
        align-items: flex-start;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .s-vault-card {
        max-width: 420px;
        width: 100%;
        height: 360px;
    }
}

/* =========================================
   14. سکشن مقالات
   ========================================= */
.articles-section {
    width: 100%;
    background-color: #fff;
    padding: 80px 50px;
    direction: rtl;
}

.articles-head {
    max-width: 1300px;
    margin: 0 auto 45px;
    text-align: center;
}

.articles-eyebrow {
    display: inline-block;
    color: #C89F5D;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.articles-title {
    color: #4A4036;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
}

.articles-subtitle {
    color: #7d7264;
    font-size: 15px;
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto;
}

.articles-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border: 1px solid #efe7da;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 280ms ease, box-shadow 280ms ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10);
}

.article-thumb {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.07);
}

.article-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #4E1A1A;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
}

.article-body {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #9b8f7e;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.article-meta i {
    color: #C89F5D;
    margin-left: 4px;
}

.article-card-title {
    color: #3d2f25;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-excerpt {
    color: #6c6356;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 18px;
    flex-grow: 1;
}

.article-link {
    align-self: flex-start;
    text-decoration: none;
    color: #4E1A1A;
    font-weight: 900;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 240ms ease, color 240ms ease;
}

.article-link i {
    transition: transform 240ms ease;
}

.article-link:hover {
    color: #C89F5D;
}

.article-link:hover i {
    transform: translateX(-5px);
}

.articles-cta {
    text-align: center;
    margin-top: 50px;
}

.articles-all-btn {
    display: inline-block;
    text-decoration: none;
    padding: 13px 42px;
    border-radius: 50px;
    border: 2px solid #C89F5D;
    color: #4A4036;
    font-weight: 900;
    font-size: 15px;
    transition: background-color 260ms ease, color 260ms ease;
}

.articles-all-btn:hover {
    background-color: #C89F5D;
    color: #fff;
}

/* =========================================
   15. فوتر
   ========================================= */
.site-footer {
    background-color: #2b211a;
    color: #d8cdbd;
    direction: rtl;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 50px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 19px;
    font-weight: 900;
    color: #fff;
}

.footer-desc {
    font-size: 14px;
    line-height: 2.1;
    color: #b6a994;
    margin-bottom: 22px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #d8cdbd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 240ms ease, color 240ms ease, transform 240ms ease;
}

.footer-socials a:hover {
    background-color: #C89F5D;
    color: #2b211a;
    transform: translateY(-3px);
}

.footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background-color: #C89F5D;
}

.footer-links,
.footer-contact-list {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #b6a994;
    font-size: 14px;
    transition: color 220ms ease, padding-right 220ms ease;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 6px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.9;
    color: #b6a994;
}

.footer-contact-list i {
    color: #C89F5D;
    margin-top: 4px;
}

.footer-newsletter {
    display: flex;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.footer-newsletter input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    padding: 0 14px;
    height: 46px;
    font-family: inherit;
    font-size: 13px;
}

.footer-newsletter input::placeholder {
    color: #9b8f7e;
}

.footer-newsletter button {
    border: none;
    cursor: pointer;
    background-color: #C89F5D;
    color: #2b211a;
    width: 52px;
    font-size: 16px;
    transition: background-color 240ms ease;
}

.footer-newsletter button:hover {
    background-color: #d9b676;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 50px;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #9b8f7e;
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
}

.footer-bottom-links a {
    text-decoration: none;
    color: #9b8f7e;
    transition: color 220ms ease;
}

.footer-bottom-links a:hover {
    color: #C89F5D;
}

/* =========================================
   16. واکنش‌گرا: مقالات و فوتر + موبایل
   ========================================= */
/* تبلت */
@media (max-width: 1024px) {
    .articles-section { padding: 64px 30px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; padding: 50px 30px 36px; }
    .footer-bottom { padding: 18px 30px; }
}

/* موبایل */
@media (max-width: 768px) {
    .articles-section { padding: 50px 18px; }
    .articles-eyebrow { font-size: 12px; }
    .articles-title { font-size: 23px; }
    .articles-subtitle { font-size: 14px; }
    .articles-grid { grid-template-columns: 1fr; gap: 22px; }
    .article-thumb { height: 190px; }
    .articles-cta { margin-top: 34px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 45px 22px 30px;
    }
    .footer-socials { justify-content: flex-start; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 18px 22px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .big-typography span { font-size: 46px; letter-spacing: 1px; }
    .center-logo { width: 180px; height: 180px; }
    .main-menu a { font-size: 13px; }
    .col-label { font-size: 15px; }
    .col-price { font-size: 16px; }
    .info-row { font-size: 11.5px; }

    .z-calculator-title { font-size: 18px; }
    .z-price-total { font-size: 30px; }

    .articles-title { font-size: 21px; }
    .article-card-title { font-size: 16.5px; }
    .articles-all-btn { padding: 12px 32px; font-size: 14px; }

    .footer-brand-name { font-size: 17px; }
}