/* ========== فونت Nian (Local) ========== */
@font-face {
    font-family: 'Nian';
    src: url('fonts/Nian-Semi-Bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nian';
    src: url('fonts/Nian-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nian';
    src: url('fonts/Nian-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nian';
    src: url('fonts/Nian-Black.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nian', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.hero-title {
    font-family: 'Nian', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    background: rgba(45, 27, 78, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ========== Logo (Right Side) ========== */
.logo {
    display: flex;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
}

.logo-img {
    height: 2.8rem;
    width: auto;
}

/* ========== Navigation Menu (Center) ========== */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    z-index: 1000;
}

.nav-menu li {
    list-style: none;
    flex-shrink: 0;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

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

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999; /* کمتر از nav-menu */
    display: none;
    backdrop-filter: blur(3px); /* ایجاد افکت محو در پس‌زمینه */
}

.nav-overlay.active {
    display: block;
}

/* تنظیمات لوگو داخل منو */
.nav-menu-header {
    display: none; 
    padding: 20px; 
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* نمایش لوگو فقط وقتی منو در موبایل فعال است */
@media (max-width: 992px) {
    .nav-menu.active .nav-menu-header {
        display: block;
    }
}
/* ========== Apple Glass Buttons (Left Side) ========== */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.header-actions li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-actions li::before,
.header-actions li::marker {
    display: none;
    content: none;
}

.btn-glass {
    position: relative;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Nian', sans-serif;
    cursor: pointer;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 2px 0 4px rgba(255, 255, 255, 0.3),
        inset -2px -2px 8px rgba(0, 0, 0, 0.1);
    
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 15%;
    width: 35%;
    height: 40%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 30%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.btn-glass::after {
    display: none;
}

.btn-glass:hover {
    transform: translateY(-3px) translateZ(15px);
    
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.25) 100%
    );
    
    border-color: rgba(255, 255, 255, 0.45);
    
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(138, 43, 226, 0.3),
        0 2px 8px rgba(255, 215, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        inset 3px 0 6px rgba(255, 255, 255, 0.4),
        inset -3px -3px 10px rgba(0, 0, 0, 0.15);
}

.btn-glass:hover::before {
    opacity: 1;
    width: 40%;
    height: 45%;
    filter: blur(3px);
}

.btn-glass:hover::after {
    opacity: 0.9;
}

.btn-glass:active {
    transform: translateY(-1px) translateZ(5px);
    
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-glass:active::before {
    opacity: 0.6;
    top: 4px;
}

/* ۱. نمایش دکمه در موبایل و مخفی کردن در دسکتاپ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffd700;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu .nav-menu-header {
        display: none;
    }

    .nav-menu.active .nav-menu-header {
        display: block;
        text-align: center;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100dvh;
        background: #1a1a2e;
        flex-direction: column;
        padding-top: 50px;
        transition: transform 0.4s ease;
        transform: translateX(110%);
        overflow-x: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
    }
}

/* ========== Responsive Design ========== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .header .container {
        padding: 0 2rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .btn-glass {
        padding: 0.65rem 1.5rem;
        font-size: 0.88rem;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .header {
        padding: 0.6rem 0;
    }
    
    .header .container {
        padding: 0 1.5rem;
        gap: 1rem;
    }
    
    /* لوگو */
    .logo-img {
        height: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 20rem;
        height: 100dvh;
        background: linear-gradient(
            180deg,
            rgba(45, 27, 78, 0.98) 0%,
            rgba(30, 15, 60, 0.98) 100%
        );
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        border-left: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: -5px 0 40px rgba(0, 0, 0, 0.6);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
        transform: translateX(110%);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.2rem;
        text-align: right;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 215, 0, 0.15);
        border-color: rgba(255, 215, 0, 0.3);
        color: #ffd700;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* دکمه‌های اکشن */
    .header-actions {
        gap: 0.6rem;
    }
    
    .btn-glass {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .btn-login {
        color: #ffd700;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
    
    /* نمایش همبرگر منو */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* انیمیشن همبرگر منو */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Overlay برای بستن منو */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: -1;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .header .container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 2rem;
    }
    
    .btn-glass {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        width: 85%;
        padding: 4.5rem 1.2rem 2rem;
    }
}

/* Extra Small - 360px */
@media (max-width: 360px) {
    .logo-img {
        height: 2rem;
    }
    
    .btn-glass {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .header-actions {
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    body {
        overscroll-behavior-x: none;
    }

    .hero-section,
    .price-banner-wrapper,
    .benefits-section,
    .services-section,
    .process-section {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 4rem 0;
    padding-top: 7.5rem;
    padding-bottom: 14rem;
}

.hero-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ========== محتوای سمت راست ========== */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #9370db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.6s ease-out;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease-out;
}

/* ========== Hero Buttons (Glass Style) ========== */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.live-price-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    border-radius: 25px;
    background: transparent;
    box-shadow: none;
    font-size: 1.1rem;
    color: #ffffff;
    font-family: 'Nian', sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
}

.live-price-hero-badge .price-label {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 4px;
}

.live-price-hero-badge .price-value {
    color: #ffd700;
    margin: 0 4px;
}

.hero-buttons .price-item {
    flex: none;
    width: auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-right: 15px;
    padding: 0.1rem 1.4rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 200, 0, 0.25));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 16px;
}

.hero-buttons .price-item .price-text {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.hero-buttons .price-item .price-label {
    font-size: 0.95rem;
}

.hero-buttons .price-item .price-value {
    font-size: 1rem;
}

.hero-buttons .price-item .price-icon {
    width: 2rem;
    height: 2rem;
}

.btn-hero-glass {
    position: relative;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Nian', sans-serif;
    cursor: pointer;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 2px 0 4px rgba(255, 255, 255, 0.3),
        inset -2px -2px 8px rgba(0, 0, 0, 0.1);
    
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.btn-hero-glass::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 15%;
    width: 35%;
    height: 40%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 30%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.btn-hero-glass:hover {
    transform: translateY(-3px) translateZ(15px);
    
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.25) 100%
    );
    
    border-color: rgba(255, 255, 255, 0.45);
    
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(138, 43, 226, 0.3),
        0 2px 8px rgba(255, 215, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        inset 3px 0 6px rgba(255, 255, 255, 0.4),
        inset -3px -3px 10px rgba(0, 0, 0, 0.15);
}

.btn-hero-glass:hover::before {
    opacity: 1;
    width: 40%;
    height: 45%;
    filter: blur(3px);
}

.btn-hero-glass:active {
    transform: translateY(-1px) translateZ(5px);
    
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-hero-glass:active::before {
    opacity: 0.6;
    top: 4px;
}

/* ========== Golden Button (ورود | ثبت‌نام) ========== */
.btn-hero-gold {
    background: linear-gradient(
        145deg,
        rgba(255, 215, 0, 0.4) 0%,
        rgba(255, 215, 0, 0.15) 50%,
        rgba(255, 215, 0, 0.3) 100%
    );
    
    border: 1.5px solid rgba(255, 215, 0, 0.6);
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    
    box-shadow: 
        0 8px 32px rgba(255, 215, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 2px 0 4px rgba(255, 215, 0, 0.4),
        inset -2px -2px 8px rgba(0, 0, 0, 0.1);
}

.btn-hero-gold::before {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 215, 0, 0.8) 30%,
        transparent 70%
    );
}

.btn-hero-gold:hover {
    background: linear-gradient(
        145deg,
        rgba(255, 215, 0, 0.5) 0%,
        rgba(255, 215, 0, 0.2) 50%,
        rgba(255, 215, 0, 0.4) 100%
    );
    
    border-color: rgba(255, 215, 0, 0.8);
    
    box-shadow: 
        0 16px 48px rgba(255, 215, 0, 0.4),
        0 4px 16px rgba(255, 215, 0, 0.5),
        0 2px 8px rgba(138, 43, 226, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        inset 3px 0 6px rgba(255, 215, 0, 0.5),
        inset -3px -3px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .price-item,
    .hero-buttons .live-price-hero-badge {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }
    
    .btn-hero-glass {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ========== ماشین حساب سمت چپ ========== */
.hero-calculator {
    animation: slideInLeft 1.2s ease-out;
}

.calculator-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.calculator-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.calculator-glass:hover::before {
    opacity: 1;
}

.calculator-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-align: center;
        font-family: 'Nian', sans-serif;
}

/* تب خرید/فروش */
.calculator-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Nian', sans-serif;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.tab-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

/* فیلدهای ورودی */
.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Nian', sans-serif;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Nian', sans-serif;
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

/* دکمه محاسبه */
.btn-calculate {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-family: 'Nian', sans-serif;
}

.btn-calculate::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
}

.btn-calculate:hover::before {
    opacity: 1;
    animation: dropletEffect 0.6s ease-out;
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

/* نمایش نتیجه */
.calculator-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    display: none;
}

.calculator-result.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.calculator-result p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    font-family: 'Nian', sans-serif;
}

.calculator-result .result-value {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    font-family: 'Nian', sans-serif;
}

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

/* ========== المان‌های تزئینی ========== */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 5s ease-in-out infinite;
}

.circle-1 {
    width: 25rem;
    height: 25rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 21.8rem;
    height: 21.8rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 18.7rem;
    height: 18.7rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dropletEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-30px) translateX(20px);
    }
    66% {
        transform: translateY(20px) translateX(-20px);
    }
}

@keyframes shineLine {
    0%, 100% {
        opacity: 0.1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(20px);
    }
}

/* ========== Responsive Hero Section ========== */
@media (max-width: 1200px) {
    .hero-container {
        gap: 2.5rem;
        padding: 0 2rem;
    }

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

    .hero-description {
        font-size: 1.15rem;
    }

    .calculator-glass {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 6.75rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    .hero-content {
        order: 1;
        text-align: center;
        max-width: 42rem;
        margin: 0 auto;
    }

    .hero-calculator {
        order: 2;
        width: 100%;
        max-width: 34rem;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.45;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.9;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.75rem 0 10rem;
        padding-top: 6rem;
    }

    .hero-container {
        gap: 2rem;
        padding: 0 1.1rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.95rem;
        line-height: 1.5;
        margin-bottom: 0.9rem;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.85;
        margin-bottom: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.85rem;
        margin-top: 1.5rem;
    }

    .btn-hero-glass {
        width: 100%;
        text-align: center;
        padding: 0.95rem 1.2rem;
        font-size: 0.98rem;
        border-radius: 18px;
    }

    .hero-calculator {
        max-width: 100%;
    }

    .calculator-glass {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .calculator-title {
        font-size: 1.35rem;
        margin-bottom: 1.1rem;
    }

    .calculator-tabs {
        gap: 0.7rem;
        margin-bottom: 1.2rem;
    }

    .tab-btn {
        padding: 0.8rem 0.6rem;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    .calculator-inputs {
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .input-group label {
        font-size: 0.88rem;
        margin-bottom: 0.45rem;
    }

    .input-group input {
        padding: 0.9rem 0.95rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .btn-calculate {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 16px;
    }

    .calculator-result {
        margin-top: 1.2rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .calculator-result p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .calculator-result .result-value {
        font-size: 1.15rem;
        line-height: 1.7;
        word-break: break-word;
    }

    .blur-circle {
        filter: blur(55px);
        opacity: 0.28;
    }

    .circle-1 {
        width: 14rem;
        height: 14rem;
        top: 5%;
        right: -5%;
    }

    .circle-2 {
        width: 10rem;
        height: 10rem;
        bottom: 8%;
        left: -3%;
    }

    .circle-3 {
        width: 8rem;
        height: 8rem;
        top: 58%;
        left: 52%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2.25rem 0 8rem;
        padding-top: 5.7rem;
    }

    .hero-container {
        padding: 0 0.9rem;
        gap: 1.75rem;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.55;
    }

    .hero-description {
        font-size: 0.92rem;
        line-height: 1.9;
        margin-bottom: 1.2rem;
    }

    .btn-hero-glass {
        padding: 0.9rem 1rem;
        font-size: 0.93rem;
        border-radius: 16px;
        white-space: nowrap;
    }

    .calculator-glass {
        padding: 1.15rem;
        border-radius: 20px;
    }

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

    .calculator-tabs {
        gap: 0.55rem;
    }

    .tab-btn {
        font-size: 0.88rem;
        padding: 0.72rem 0.5rem;
    }

    .input-group label {
        font-size: 0.82rem;
    }

    .input-group input {
        padding: 0.82rem 0.85rem;
        font-size: 0.9rem;
    }

    .btn-calculate {
        padding: 0.92rem;
        font-size: 0.96rem;
    }

    .calculator-result p {
        font-size: 0.9rem;
    }

    .calculator-result .result-value {
        font-size: 1.05rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.45rem;
    }

    .hero-description {
        font-size: 0.88rem;
    }

    .hero-container {
        padding: 0 0.75rem;
    }

    .btn-hero-glass {
        font-size: 0.88rem;
        padding: 0.85rem 0.9rem;
    }

    .calculator-glass {
        padding: 1rem;
    }

    .calculator-title {
        font-size: 1.1rem;
    }

    .tab-btn {
        font-size: 0.82rem;
        padding: 0.68rem 0.45rem;
    }

    .input-group input {
        font-size: 0.85rem;
    }

    .btn-calculate {
        font-size: 0.92rem;
    }

    .calculator-result .result-value {
        font-size: 1rem;
    }
}

.price-banner-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    z-index: 10;
}

.price-banner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 56rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 200, 0, 0.3));
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2.5rem;
}

.price-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    justify-content: center;
}

.price-banner .price-item {
    min-height: 3rem;
}

.price-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-label {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-value {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price-icon {
    width: 2.25rem;
    height: 2.25rem;
    animation: coinSpin 3s ease-in-out infinite;
}

.gold-icon {
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
}

.silver-icon {
    filter: drop-shadow(0 0 0px rgba(192, 192, 192, 0));
}

.gold-icon {
    animation: goldPulse 2s ease-in-out infinite;
}

.silver-icon {
    animation: silverPulse 2.5s ease-in-out infinite;
}

/* ========== Live Gold Chart Component — Main Page ========== */
.chart-section-wrapper {
    width: 100%;
    max-width: 75rem;
    margin-right: auto;
    margin-left: auto;
    padding-right: clamp(1.5rem, 5vw, 5rem);
    padding-left: clamp(1.5rem, 5vw, 5rem);
    box-sizing: border-box;
    background: transparent !important;
}

.home-live-gold-chart-section {
    position: relative;
    width: 100%;
    z-index: 10;
}

.home-live-gold-chart-card {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    margin-top: -12rem;
    margin-bottom: -10rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 1.8rem;
}

.home-live-gold-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.home-live-gold-chart-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-live-gold-chart-title {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

.home-live-gold-chart-subtitle {
    display: none;
}

.home-live-gold-chart-tabs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.home-live-gold-chart-tab {
    padding: 5px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.7;
}

.home-live-gold-chart-tab:hover {
    border-color: rgba(244, 196, 0, 0.3);
    color: #ffffff;
}

.home-live-gold-chart-tab.is-active {
    background: rgba(244, 196, 0, 0.14);
    border-color: #f4c400;
    color: #ffe07a;
}

.home-live-gold-chart-price-row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 6px 0 4px;
    flex-wrap: wrap;
}

.home-live-gold-chart-price-box,
.home-live-gold-chart-change-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.home-live-gold-chart-price-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: 700;
}

.home-live-gold-chart-price-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.home-live-gold-chart-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-live-gold-chart-change-text {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.home-live-gold-chart-change-text.trend-up {
    color: #39d98a;
}

.home-live-gold-chart-change-text.trend-down {
    color: #ff6b81;
}

.home-live-gold-chart-change-pct {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 700;
}

.home-live-gold-chart-canvas-wrapper {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-live-gold-chart-canvas-wrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 160px;
}

.home-live-gold-chart-extremes {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 6px;
}

.home-live-gold-chart-extreme-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-live-gold-chart-extreme-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: 700;
}

.home-live-gold-chart-extreme-value {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.home-live-gold-chart-extreme-min {
    color: #ff6b81;
}

.home-live-gold-chart-extreme-max {
    color: #39d98a;
}

/* ========== Currency unit safety (RTL + isolate prevents bidi reordering) ========== */
.price-value,
.chart-price,
.live-price-value,
.price-change,
.high-price,
.low-price,
.home-live-gold-chart-price-value,
.home-live-gold-chart-change-text,
.home-live-gold-chart-extreme-value {
    unicode-bidi: isolate;
    display: inline-block;
    white-space: nowrap;
}

.rial-value {
    unicode-bidi: isolate;
    display: inline-block;
    white-space: nowrap;
}

/* Money value: Rial unit + number in LTR flex container for correct visual order */
.money-value {
    display: inline-flex;
    flex-direction: row;
    direction: ltr;
    align-items: baseline;
    white-space: nowrap;
    unicode-bidi: isolate;
    gap: 0.15em;
}
.rial-unit {
    display: inline-block;
    white-space: nowrap;
    unicode-bidi: isolate;
    direction: rtl;
}
.rial-number {
    display: inline-block;
    white-space: nowrap;
    unicode-bidi: isolate;
}

/* Chart.js tooltip: ensure stable bidi rendering */
.chartjs-tooltip {
    unicode-bidi: isolate !important;
}
.chartjs-tooltip-body-item {
    unicode-bidi: isolate !important;
}

/* ========== Nian font for all chart elements ========== */
.home-live-gold-chart-card,
.home-live-gold-chart-card *,
.home-live-gold-chart-canvas-wrapper,
.home-live-gold-chart-canvas-wrapper *,
.home-live-gold-chart-header,
.home-live-gold-chart-extremes {
    font-family: 'Nian', Tahoma, sans-serif !important;
}

/* Responsive chart */
@media (max-width: 992px) {
    .chart-section-wrapper {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .home-live-gold-chart-card {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.2rem;
    }

    .home-live-gold-chart-canvas-wrapper {
        min-height: 125px;
    }

    .home-live-gold-chart-canvas-wrapper canvas {
        max-height: 135px;
    }

    .home-live-gold-chart-price-value {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .chart-section-wrapper {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .home-live-gold-chart-card {
        margin-top: -8rem;
        margin-bottom: -7rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .home-live-gold-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-live-gold-chart-title {
        font-size: 16px;
    }

    .home-live-gold-chart-canvas-wrapper {
        min-height: 110px;
    }

    .home-live-gold-chart-canvas-wrapper canvas {
        max-height: 120px;
    }

    .home-live-gold-chart-price-row {
        gap: 14px;
    }

    .home-live-gold-chart-price-value {
        font-size: 16px;
    }

    .home-live-gold-chart-price-label,
    .home-live-gold-chart-extreme-label {
        font-size: 14px;
    }

    .home-live-gold-chart-change-text,
    .home-live-gold-chart-extreme-value {
        font-size: 14px;
    }

    .home-live-gold-chart-extremes {
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .home-live-gold-chart-card {
        margin-top: -6rem;
        margin-bottom: -5rem;
        padding: 0.85rem;
        border-radius: 14px;
    }

    .home-live-gold-chart-canvas-wrapper {
        min-height: 95px;
    }

    .home-live-gold-chart-canvas-wrapper canvas {
        max-height: 105px;
    }

    .home-live-gold-chart-title {
        font-size: 14px;
    }

    .home-live-gold-chart-price-value {
        font-size: 14px;
    }

    .home-live-gold-chart-price-label,
    .home-live-gold-chart-extreme-label {
        font-size: 13px;
    }

    .home-live-gold-chart-change-text,
    .home-live-gold-chart-extreme-value {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .home-live-gold-chart-card {
        margin-top: -5rem;
        margin-bottom: -4rem;
        padding: 0.7rem;
    }

    .home-live-gold-chart-canvas-wrapper {
        min-height: 85px;
    }

    .home-live-gold-chart-canvas-wrapper canvas {
        max-height: 95px;
    }
}

@keyframes goldPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 3px 8px rgba(255, 215, 0, 0.6));
    }
    50% {
        transform: scale(1.15) rotate(180deg);
        filter: drop-shadow(0 5px 12px rgba(255, 215, 0, 0.9));
    }
}

@keyframes silverPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 3px 8px rgba(192, 192, 192, 0.6));
    }
    50% {
        transform: scale(1.15) rotate(-180deg);
        filter: drop-shadow(0 5px 12px rgba(192, 192, 192, 0.9));
    }
}

/* ========== Responsive Price Banner ========== */
@media (max-width: 992px) {
    .price-banner {
        width: 90%;
        max-width: 42rem;
        padding: 1rem 1.4rem;
        gap: 1.2rem;
    }

    .price-item {
        gap: 0.7rem;
    }

    .price-label {
        font-size: 0.92rem;
    }

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

    .price-icon {
        width: 1.95rem;
        height: 1.95rem;
    }
}

@media (min-width: 769px) {
    .price-text {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        gap: 0.7rem !important;
        margin-top: 1.4rem;
    }

    .hero-buttons-container {
        flex-wrap: nowrap !important;
        width: 100%;
        justify-content: center;
        padding-inline: 1rem;
        box-sizing: border-box;
    }

    .hero-buttons .btn-hero-glass {
        width: auto !important;
        flex: 1;
        min-width: 0;
        padding: 0.85rem 0.6rem !important;
        font-size: 0.88rem !important;
        line-height: 1.6;
        border-radius: 16px;
        white-space: nowrap !important;
        text-align: center;
    }

    .hero-buttons .price-item,
    .hero-buttons .live-price-hero-badge {
        flex: 2 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        margin-right: 0;
        padding: 0.55rem 0.7rem !important;
        gap: 0.4rem !important;
        border-radius: 12px;
    }

    .hero-buttons .price-item .price-text {
        width: auto !important;
    }

    .hero-buttons .price-item .price-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    .hero-buttons .price-item .price-label {
        font-size: 0.7rem !important;
    }

    .hero-buttons .price-item .price-value {
        font-size: 0.76rem !important;
    }

    .hero-buttons .live-price-hero-badge {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        min-width: 0;
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
        border-radius: 16px;
    }

    .hero-buttons .live-price-hero-badge .price-label {
        font-size: 0.82rem !important;
    }

    .hero-buttons .live-price-hero-badge .price-value {
        font-size: 0.9rem !important;
    }
}

/* برای موبایل‌های کوچک‌تر */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.55rem !important;
    }

    .hero-buttons-container {
        flex-wrap: nowrap !important;
    }

    .hero-buttons .btn-hero-glass {
        width: auto !important;
        flex: 1;
        padding: 0.78rem 0.45rem !important;
        font-size: 0.8rem !important;
        border-radius: 14px;
        white-space: nowrap !important;
    }

    .hero-buttons .price-item,
    .hero-buttons .live-price-hero-badge {
        display: inline-flex !important;
        flex-direction: row !important;
        flex: 2 !important;
        width: auto !important;
        padding: 0.48rem 0.6rem !important;
        gap: 0.35rem !important;
        border-radius: 10px;
    }

    .hero-buttons .price-item .price-text {
        width: auto !important;
    }

    .hero-buttons .price-item .price-icon {
        width: 1.3rem !important;
        height: 1.3rem !important;
    }

    .hero-buttons .price-item .price-label {
        font-size: 0.65rem !important;
    }

    .hero-buttons .price-item .price-value {
        font-size: 0.7rem !important;
    }

    .hero-buttons .live-price-hero-badge {
        font-size: 1rem !important;
        white-space: nowrap !important;
        min-width: 0;
        padding-top: 0.78rem !important;
        padding-bottom: 0.78rem !important;
        border-radius: 14px;
    }

    .hero-buttons .live-price-hero-badge .price-label {
        font-size: 0.78rem !important;
    }

    .hero-buttons .live-price-hero-badge .price-value {
        font-size: 0.85rem !important;
    }
}

/* برای گوشی‌های خیلی کوچک */
@media (max-width: 360px) {
    .hero-buttons {
        gap: 0.45rem !important;
    }

    .hero-buttons-container {
        flex-wrap: nowrap !important;
    }

    .hero-buttons .btn-hero-glass {
        padding: 0.72rem 0.35rem !important;
        font-size: 0.74rem !important;
    }

    .hero-buttons .price-item,
    .hero-buttons .live-price-hero-badge {
        display: inline-flex !important;
        flex-direction: row !important;
        padding: 0.42rem 0.45rem !important;
        gap: 0.3rem !important;
        border-radius: 8px;
    }

    .hero-buttons .price-item .price-text {
        width: auto !important;
    }

    .hero-buttons .price-item .price-icon {
        width: 1.15rem !important;
        height: 1.15rem !important;
    }

    .hero-buttons .price-item .price-label {
        font-size: 0.6rem !important;
    }

    .hero-buttons .price-item .price-value {
        font-size: 0.65rem !important;
    }

    .hero-buttons .live-price-hero-badge {
        font-size: 0.93rem !important;
        white-space: nowrap !important;
        min-width: 0;
        padding-top: 0.72rem !important;
        padding-bottom: 0.72rem !important;
        border-radius: 14px;
    }

    .hero-buttons .live-price-hero-badge .price-label {
        font-size: 0.72rem !important;
    }

    .hero-buttons .live-price-hero-badge .price-value {
        font-size: 0.8rem !important;
    }
}


/* ---------- Price Banner: دو آیتم کنار هم در موبایل ---------- */
@media (max-width: 768px) {
    .price-banner-wrapper {
        height: auto;
        margin-top: -1.25rem;
        padding: 0 1rem;
    }

    .price-banner {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 0.7rem !important;
        padding: 0.75rem;
        border-radius: 18px;
    }

    .price-item {
        width: auto !important;
        flex: 1 1 0;
        min-width: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        padding: 0.85rem 0.45rem !important;
        border-bottom: none !important;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        text-align: center;
    }

    .price-text {
        align-items: center !important;
        text-align: center;
        width: 100%;
        min-width: 0;
    }

    .price-icon {
        width: 1.65rem !important;
        height: 1.65rem !important;
        flex-shrink: 0;
    }

    .price-label {
        font-size: 0.78rem !important;
        line-height: 1.7;
        white-space: normal !important;
    }

    .price-value {
        font-size: 0.86rem !important;
        line-height: 1.7;
        white-space: normal !important;
        word-break: keep-all;
    }
}

@media (max-width: 576px) {
    .price-banner-wrapper {
        margin-top: -1rem;
        padding: 0 0.8rem;
    }

    .price-banner {
        gap: 0.55rem !important;
        padding: 0.65rem;
        border-radius: 16px;
    }

    .price-item {
        padding: 0.75rem 0.35rem !important;
        border-radius: 12px;
    }

    .price-icon {
        width: 1.45rem !important;
        height: 1.45rem !important;
    }

    .price-label {
        font-size: 0.72rem !important;
    }

    .price-value {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 400px) {
    .price-banner-wrapper {
        padding: 0 0.65rem;
    }

    .price-banner {
        gap: 0.45rem !important;
        padding: 0.55rem;
        border-radius: 14px;
    }

    .price-item {
        padding: 0.65rem 0.25rem !important;
        gap: 0.35rem !important;
    }

    .price-icon {
        width: 1.3rem !important;
        height: 1.3rem !important;
    }

    .price-label {
        font-size: 0.66rem !important;
        line-height: 1.6;
    }

    .price-value {
        font-size: 0.72rem !important;
        line-height: 1.6;
    }
}




/* ==================== Benefits Section ==================== */
.benefits-section {
    position: relative;
    min-height: auto;
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    padding-top: 12rem;
    padding-bottom: 4rem;
}

/* ========== دایره‌های تزئینی Benefits ========== */
.benefits-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.benefits-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
}

.benefits-circle-1 {
    width: 21.8rem;
    height: 21.8rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.benefits-circle-2 {
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    top: 45%;
    right: 5%;
    animation-delay: 2s;
}

.benefits-circle-3 {
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

.benefits-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.benefits-title {
    font-family: 'Nian', sans-serif !important;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #9370db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

/* ========== Benefits Container (Two Columns) ========== */
.benefits-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ستون سمت چپ - SVG */
.benefits-gif-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.benefits-gif-wrapper {
    width: 100%;
    max-width: 17.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-gif-wrapper svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ستون سمت راست - باکس‌ها */
.benefits-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* استایل آیتم‌ها */
.benefit-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.benefit-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    direction: rtl;
}

.benefit-icon {
    font-size: 1.5rem;
    color: #ffd700;
    min-width: 1.9rem;
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.benefit-icon::before {
    display: block;
    line-height: 1;
    transform: translateY(0);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.15);
    color: #ffed4e;
}

.benefit-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .benefits-title {
        font-size: 2.2rem;
    }
    
    .benefits-container {
        gap: 2.5rem;
        padding: 0 2rem;
    }
    
    .benefits-gif-wrapper {
        max-width: 16.25rem;
    }
    
    .benefits-column {
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .benefits-section {
        padding-top: 10rem;
        padding-bottom: 4rem;
    }
    
    .benefits-title {
        font-size: 2rem;
    }
    
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .benefits-gif-column {
        order: -1;
    }
    
    .benefits-gif-wrapper {
        max-width: 17.5rem;
    }
    
    .benefits-column {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding-top: 8rem;
        padding-bottom: 3.5rem;
        overflow: hidden;
    }

    .benefits-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .benefits-title {
        font-size: 1.85rem;
        line-height: 1.5;
    }

    .benefits-container {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 0;
        width: 90%;
        max-width: none;
    }

    .benefits-gif-column {
        order: -1;
        padding: 0;
    }

    .benefits-gif-wrapper {
        max-width: 13.5rem;
        margin: 0 auto;
    }

    .benefits-column {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        width: 100%;
    }

    .benefit-item {
        width: 100%;
        box-sizing: border-box;
        padding: 1rem 1.1rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.09);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }


    .benefit-item:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .benefit-content {
        gap: 0.85rem;
        align-items: center;
    }

.benefit-icon {
    font-size: 1.2rem;
    min-width: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    flex-shrink: 0;
    line-height: 0;
}

.benefit-icon::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    transform: none;
}

    .benefit-content p {
        font-size: 0.95rem;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.92);
    }

    .benefits-circle-1 {
        width: 16rem;
        height: 16rem;
        top: 4%;
        right: -10%;
        opacity: 0.28;
    }

    .benefits-circle-2 {
        width: 12rem;
        height: 12rem;
        top: 42%;
        right: -8%;
        opacity: 0.22;
    }

    .benefits-circle-3 {
        width: 13rem;
        height: 13rem;
        bottom: 10%;
        left: -8%;
        opacity: 0.2;
    }
}

@media (max-width: 576px) {
    .benefits-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .benefits-header {
        margin-bottom: 1.75rem;
    }

    .benefits-title {
        font-size: 1.55rem;
        padding: 0;
        line-height: 1.6;
    }

    .benefits-container {
        gap: 1.5rem;
        padding: 0;
        width: 90%;
        max-width: none;
    }

    .benefits-gif-wrapper {
        max-width: 11.5rem;
    }

    .benefits-column {
        gap: 0.8rem;
    }

    .benefit-item {
        padding: 0.95rem 1rem;
        border-radius: 16px;
    }

    .benefit-content {
        gap: 0.75rem;
    }

.benefit-icon {
    font-size: 1.05rem;
    min-width: 2rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    line-height: 0;
}

    .benefit-content p {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .benefits-circle-1 {
        width: 13rem;
        height: 13rem;
    }

    .benefits-circle-2 {
        width: 10rem;
        height: 10rem;
    }

    .benefits-circle-3 {
        width: 11rem;
        height: 11rem;
    }
}

@media (max-width: 400px) {
    .benefits-section {
        padding-top: 5rem;
        padding-bottom: 2.5rem;
    }

    .benefits-title {
        font-size: 1.35rem;
        line-height: 1.7;
    }

    .benefits-container {
        padding: 0;
        width: 90%;
        max-width: none;
    }

    .benefits-gif-wrapper {
        max-width: 10rem;
    }

    .benefit-item {
        padding: 0.85rem 0.9rem;
        border-radius: 14px;
    }

    .benefit-content {
        gap: 0.7rem;
    }

.benefit-icon {
    font-size: 1rem;
    min-width: 1.9rem;
    width: 1.9rem;
    height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    line-height: 0;
}

    .benefit-content p {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .benefits-circle-1 {
        width: 11rem;
        height: 11rem;
        opacity: 0.2;
    }

    .benefits-circle-2 {
        width: 8rem;
        height: 8rem;
        opacity: 0.16;
    }

    .benefits-circle-3 {
        width: 9rem;
        height: 9rem;
        opacity: 0.16;
    }
}

/* ==================== Services Section ==================== */
.services-section {
    position: relative;
    min-height: auto;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: 4rem;
}



/* ========== Services Header ========== */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.services-title {
    font-family: 'Nian', sans-serif !important;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #9370db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

/* ========== Responsive Services Title ========== */
@media (max-width: 480px) {
    .services-title {
        font-size: 1.6rem;
        padding: 0 1rem;
    }
}

/* ========== دایره‌های تزئینی Services ========== */
.services-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.services-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
}

/* دایره اول - زرد - بالا سمت چپ */
.services-circle-1 {
    width: 21.8rem;
    height: 21.8rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

/* دایره دوم - بنفش - وسط سمت راست */
.services-circle-2 {
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    top: 50%;
    right: 8%;
    animation-delay: 2s;
}

/* دایره سوم - طلایی تیره - پایین سمت چپ */
.services-circle-3 {
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

/* ========== Responsive Services Decoration ========== */
@media (max-width: 1200px) {
    .services-circle-1 {
        width: 17.5rem;
        height: 17.5rem;
    }
    
    .services-circle-2 {
        width: 15rem;
        height: 15rem;
    }
    
    .services-circle-3 {
        width: 16.5rem;
        height: 16.5rem;
    }
}

@media (max-width: 768px) {
    .services-circle-1 {
        width: 12.5rem;
        height: 12.5rem;
        left: 5%;
    }
    
    .services-circle-2 {
        width: 11.25rem;
        height: 11.25rem;
        right: 0;
    }
    
    .services-circle-3 {
        width: 11.90rem;
        height: 11.90rem;
        left: 10%;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .services-circle-1,
    .services-circle-2,
    .services-circle-3 {
        width: 9.5rem;
        height: 9.5rem;
        opacity: 0.4;
    }
}

/* ========== Services Container (Three Columns) ========== */
.services-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-item {
    background: transparent;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%),
        linear-gradient(135deg, rgba(255, 215, 0, 0.6) 0%, rgba(147, 112, 219, 0.6) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 30px;
    padding: 1.3rem;
    transition: all 0.3s ease;
    min-height: 9.35rem;
    backdrop-filter: blur(10px);
    position: relative;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
    background-image: 
        linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%),
        linear-gradient(135deg, rgba(255, 215, 0, 0.8) 0%, rgba(147, 112, 219, 0.8) 100%);
}

/* آیکون خدمات */
.service-icon {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(147, 112, 219, 0.2) 100%);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #ffd700;
}

/* عنوان خدمات */
.service-item h3 {
    font-family: 'Nian', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

/* توضیحات خدمات */
.service-item p {
    font-family: 'Nian', sans-serif !important;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* استایل گیف */
.service-gif {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 0rem;
    min-height: 9rem;
    background: transparent;
}

.service-gif img {
    width: 100%;
    height: auto;
    max-width: 5rem;
    object-fit: contain;
}

/* کارت گیف */
.service-item-gif {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
}

.service-gif-wrapper {
    width: 100%;
    max-width: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-gif-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* دکمه خدمات بیشتر */
.service-more-btn {
    position: relative;
    padding: 0.7rem 3rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Nian', sans-serif;
    cursor: pointer;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 2px 0 4px rgba(255, 255, 255, 0.3),
        inset -2px -2px 8px rgba(0, 0, 0, 0.1);
    
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.service-more-btn::before {
    content: '';
    position: absolute;
    top: 1px;
    right: 15%;
    width: 35%;
    height: 40%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 30%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.service-more-btn:hover {
    transform: translateY(-3px) translateZ(15px);
    
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.25) 100%
    );
    
    border-color: rgba(255, 255, 255, 0.45);
    
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(138, 43, 226, 0.3),
        0 2px 8px rgba(255, 215, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        inset 3px 0 6px rgba(255, 255, 255, 0.4),
        inset -3px -3px 10px rgba(0, 0, 0, 0.15);
}

.service-more-btn:hover::before {
    opacity: 1;
    width: 40%;
    height: 45%;
    filter: blur(3px);
}

.service-more-btn:active {
    transform: translateY(-1px) translateZ(5px);
    
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.service-more-btn:active::before {
    opacity: 0.6;
    top: 4px;
}

/* ========== Responsive Services Grid ========== */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .service-item {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}



/* ==================== Process Section ==================== */
.process-section {
    position: relative;
    min-height: auto;
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

/* ========== دایره‌های تزئینی Process ========== */
.process-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.process-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
}

.process-circle-1 {
    width: 21.5rem;
    height: 21.5rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.process-circle-2 {
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    top: 45%;
    right: 5%;
    animation-delay: 2s;
}

.process-circle-3 {
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

.process-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.process-title {
    font-family: 'Nian', sans-serif !important;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #9370db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .process-title {
        font-size: 2.2rem;
    }
}

.process-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    align-items: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.step-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    color: #FFD700;
}

.step-info {
    flex: 1;
}

.step-title {
    font-family: 'Nian', sans-serif !important;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 8px 0;
}

.step-desc {
    font-family: 'Nian', sans-serif !important;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.process-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25rem;
    padding: 1rem;
}

@media (max-width: 968px) {
    .process-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .process-visual {
        order: -1;
    }
}

.process-svg {
    display: block;
    width: 100%;
    max-width: 40rem;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .process-svg {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .process-section {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .process-header {
        margin-bottom: 0;
    }

    .process-content {
        gap: 0;
    }

    .process-visual {
        min-height: 0;
        height: auto;
        padding: 0;
        margin: 0;
        line-height: 0;
    }

    .process-svg {
        max-width: 62%;
        margin: 0 auto;
        display: block;
    }

}


/* ==================== Footer Section ==================== */
.footer-section {
    position: relative;
    background: linear-gradient(135deg, #1a0f2e 0%, #0d0620 100%);
    padding: 4rem 0 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========== دایره‌های تزئینی Footer ========== */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.footer-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.footer-circle-1 {
    width: 25rem;
    height: 25rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: -10%;
    right: 10%;
    animation-delay: 0s;
}

.footer-circle-2 {
    width: 21.9rem;
    height: 21.9rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.footer-circle-3 {
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

/* ========== Footer Container ========== */
.footer-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2.5vw, 2.5rem);
    position: relative;
    z-index: 2;
    margin-bottom: 2.5rem;
}

/* ========== Footer Columns ========== */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ========== ستون اول: لوگو و توضیحات ========== */
.footer-about {
    gap: 1.2rem;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    height: 3.15rem;
    width: auto;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========== شبکه‌های اجتماعی ========== */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.social-link svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

/* ========== عناوین ستون‌ها ========== */
.footer-title {
    font-family: 'Nian', sans-serif !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

/* ========== منوهای Footer ========== */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-menu li {
    list-style: none;
}

.footer-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.footer-menu a i {
    font-size: 0.7rem;
    color: #ffd700;
    transition: transform 0.3s ease;
}

.footer-menu a:hover {
    color: #ffd700;
    padding-right: 0.5rem;
}

.footer-menu a:hover i {
    transform: translateX(-3px);
}

/* ========== لیست تماس ========== */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    list-style: none;
}

.footer-contact-list i {
    font-size: 1.1rem;
    color: #ffd700;
    min-width: 1.25rem;
    margin-top: 0.2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.contact-info a,
.contact-info span {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffd700;
}

/* ========== نمادها داخل ستون اول ========== */
.footer-certificates-inline {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.footer-certificates-inline .certificate-item {
    width: 4.35rem;
    height: 4.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.7rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-certificates-inline .certificate-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.certificate-item--placeholder {
    border-style: dashed !important;
    opacity: 0.45;
}

.footer-certificates-inline .certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.footer-certificates-inline .certificate-item:hover img {
    filter: brightness(1.1);
}

/* ========== خط جداکننده ========== */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.3) 50%, transparent 100%);
    margin: 0 auto;
    width: min(90%, 75rem);
}

/* ========== Footer Bottom (کپی رایت) ========== */
.footer-bottom {
    position: relative;
    z-index: 2;
    max-width: 75rem;
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 4vw, 3rem) 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.footer-bottom .footer-copyright-wrap {
    width: 100%;
    text-align: center;
}

.footer-copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

.footer-copyright .highlight {
    color: #ffd700;
    font-weight: 700;
}

/* ==================== Footer Responsive Only ==================== */

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .footer-section {
        padding: 3.5rem 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
        padding: 0;
    }

    .footer-description {
        max-width: 34rem;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-certificates-inline {
        justify-content: center;
    }

    .footer-links,
    .footer-services,
    .footer-contact {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        border-radius: 1.1rem;
        padding: 1.4rem 1.2rem;
    }

    .footer-title {
        font-size: 1.15rem;
        margin-bottom: 0.3rem;
        padding-bottom: 0.6rem;
    }

    .footer-menu {
        gap: 0.7rem;
    }

    .footer-menu a {
        font-size: 0.92rem;
    }

    .footer-contact-list {
        gap: 1rem;
    }

    .contact-info a,
    .contact-info span {
        font-size: 0.92rem;
        line-height: 1.8;
    }

    .footer-bottom {
        padding: 1.5rem 1rem 1.8rem;
        text-align: center;
    }

    .footer-circle-1 {
        width: 18rem;
        height: 18rem;
        top: -6%;
        right: -5%;
    }

    .footer-circle-2 {
        width: 15rem;
        height: 15rem;
        left: -8%;
        bottom: 15%;
    }

    .footer-circle-3 {
        width: 12rem;
        height: 12rem;
        top: 48%;
        left: 42%;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .footer-section {
        padding: 3rem 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0 0.9rem;
        margin-bottom: 1.5rem;
    }

    .footer-column {
        gap: 0.85rem;
    }

    .footer-about,
    .footer-links,
    .footer-services,
    .footer-contact {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1.2rem;
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        padding: 1.3rem 1rem;
    }

    .footer-about {
        align-items: center;
        text-align: center;
    }

    .footer-logo-img {
        height: 2.9rem;
    }

    .footer-description {
        font-size: 0.9rem;
        line-height: 1.9;
        max-width: 100%;
        margin: 0;
    }

    .footer-social {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-link {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.05rem;
    }

    .social-link svg {
        width: 1rem;
        height: 1rem;
    }

    .footer-certificates-inline {
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0.8rem;
    }

    .footer-certificates-inline .certificate-item {
        width: 3.9rem;
        height: 3.9rem;
        padding: 0.55rem;
        border-radius: 0.9rem;
    }

    .footer-title {
        font-size: 1.05rem;
        text-align: center;
        margin-bottom: 0.2rem;
        padding-bottom: 0.7rem;
    }

    .footer-title::after {
        content: "";
        position: absolute;
        right: 50%;
        bottom: 0;
        transform: translateX(50%);
        width: 3rem;
        height: 2px;
        border-radius: 25px;
        background: linear-gradient(90deg, transparent, #ffd700, transparent);
    }

    .footer-menu {
        gap: 0.35rem;
    }

    .footer-menu a {
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.7rem 0.85rem;
        border-radius: 0.85rem;
        background: rgba(255, 255, 255, 0.03);
        font-size: 0.92rem;
        white-space: normal;
    }

    .footer-menu a:hover {
        padding-right: 0.85rem;
        background: rgba(255, 215, 0, 0.08);
    }

    .footer-menu a i {
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .footer-contact-list {
        gap: 0.8rem;
    }

    .footer-contact-list li {
        gap: 0.8rem;
        padding: 0.8rem;
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.03);
    }

    .footer-contact-list i {
        font-size: 1rem;
        margin-top: 0.15rem;
    }

    .contact-label {
        font-size: 0.8rem;
    }

    .contact-info a,
    .contact-info span {
        font-size: 0.9rem;
        line-height: 1.8;
        word-break: break-word;
    }

    .footer-divider {
        width: calc(100% - 2rem);
    }

    .footer-bottom {
        padding: 1.2rem 1rem 1.8rem;
        gap: 0.8rem;
    }

    .footer-copyright {
        font-size: 0.88rem;
        line-height: 1.9;
        text-align: center;
    }

    .footer-circle-1 {
        width: 12rem;
        height: 12rem;
        top: -3%;
        right: -18%;
        opacity: 0.22;
    }

    .footer-circle-2 {
        width: 10rem;
        height: 10rem;
        left: -16%;
        bottom: 18%;
        opacity: 0.2;
    }

    .footer-circle-3 {
        width: 8rem;
        height: 8rem;
        top: 58%;
        left: 35%;
        opacity: 0.16;
    }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {
    .footer-section {
        padding-top: 2.6rem;
    }

    .footer-container {
        padding: 0 0.85rem;
        gap: 0.9rem;
    }

    .footer-about,
    .footer-links,
    .footer-services,
    .footer-contact {
        padding: 1.1rem 0.9rem;
        border-radius: 1rem;
    }

    .footer-logo-img {
        height: 2.6rem;
    }

    .footer-description {
        font-size: 0.86rem;
    }

    .social-link {
        width: 2.45rem;
        height: 2.45rem;
        font-size: 1rem;
    }

    .social-link svg {
        width: 0.95rem;
        height: 0.95rem;
    }

    .footer-certificates-inline {
        gap: 0.6rem;
    }

    .footer-certificates-inline .certificate-item {
        width: 3.45rem;
        height: 3.45rem;
        padding: 0.45rem;
    }

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

    .footer-menu a {
        font-size: 0.88rem;
        padding: 0.7rem 0.75rem;
    }

    .contact-label {
        font-size: 0.76rem;
    }

    .contact-info a,
    .contact-info span {
        font-size: 0.86rem;
    }

    .footer-copyright {
        font-size: 0.82rem;
    }
}

/* ===== صفحات داخلی ===== */
/* ==================== Services Page ==================== */
.services-page {
    position: relative;
    min-height: calc(100vh - 80px - 60px);
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 9rem;
    padding-bottom: 4rem;
}

.services-circle-1 {
    width: 21.9rem;
    height: 21.9rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.services-circle-2 {
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    top: 50%;
    left: 5%;
    animation-delay: 2s;
}

.services-circle-3 {
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    bottom: 15%;
    right: 15%;
    animation-delay: 4s;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #9370db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

.services-content {
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 5px;
    color: #fff;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* لینک فعال در منو */
.nav-link.active {
    color: #FFD700;
    font-weight: 600;
}

/* انیمیشن float برای دایره‌ها */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ==================== Rules Page ==================== */
.rules-page {
    position: relative;
    min-height: calc(100vh - 80px - 60px);
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 9rem;
    padding-bottom: 4rem;
}

/* ========== دایره‌های تزئینی Rules ========== */
.rules-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.rules-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
}

.rules-circle-1 {
    width: 21.9rem;
    height: 21.9rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.rules-circle-2 {
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    top: 50%;
    left: 5%;
    animation-delay: 2s;
}

.rules-circle-3 {
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    bottom: 15%;
    right: 15%;
    animation-delay: 4s;
}

/* ========== هدر و عنوان Rules ========== */
.rules-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
        opacity: 0;
        animation: fadeInDown 0.8s ease-out 0.2s forwards;
}

.rules-title {
    font-family: 'Nian', sans-serif !important;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #9370db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.rules-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-align: center;
    max-width: 75rem;
    margin: 0 auto 2rem auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.2s forwards;
    text-align: justify;
}

/* ========== آکاردئون قوانین ========== */
.rules-accordion {
    max-width: 75rem;
    width: 100%;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.accordion-item {
    background: rgba(20, 12, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(30, 18, 55, 0.9);
}

.accordion-item.active {
    background: rgba(25, 15, 50, 0.95);
    border-color: rgba(255, 215, 0, 0.25);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 215, 0, 0.05);
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd700;
    margin: 0;
}

.accordion-icon {
    width: 1.9rem;
    height: 1.9rem;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
}

.accordion-toggle {
    width: 1.9rem;
    height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(15, 8, 32, 0.6);
}

.accordion-body {
    padding: 0 2rem 2rem 2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
    text-align: justify;
}

.accordion-item.active .accordion-content {
    max-height: 31.25rem;
}

/* ========== ریسپانسیو Rules ========== */
@media (max-width: 768px) {
    .rules-page {
        padding-top: 7rem;
    }
    
    .rules-header,
    .rules-accordion {
        padding: 0 1.5rem;
    }
    
    .rules-title {
        font-size: 1.8rem;
    }
    
    .rules-description {
        font-size: 0.9rem;
    }
    
    .accordion-header {
        padding: 1.2rem;
    }
    
    .accordion-title {
        font-size: 1rem;
        gap: 0.8rem;
    }
    
    .accordion-icon {
        width: 2.18rem;
        height: 2.18rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 0 1.2rem 1.2rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==================== Licenses Page ==================== */

.license-link,
.license-link:hover,
.license-link:focus,
.license-link:active,
.license-caption {
    text-decoration: none !important;
}
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 75rem;
    width: 100%;
}

.license-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.license-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.license-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.license-caption {
  margin-top: 16px;
  text-align: center;
  color: #f5c542;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .licenses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

/* ==================== contact Page ==================== */
.contact-section-wrapper {
    max-width: 75rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.contact-item {
    background: rgba(147, 112, 219, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 112, 219, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    position: relative;
}

/* افکت درخشش بنفش در hover */
.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item:hover {
    transform: translateY(-8px);
    border-color: rgba(147, 112, 219, 0.5);
    box-shadow: 0 15px 40px rgba(147, 112, 219, 0.2);
    background: rgba(147, 112, 219, 0.12);
}

/* محتوای کارت */
.contact-card-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* آیکون */
.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.2) 0%, rgba(147, 112, 219, 0.1) 100%);
    border: 2px solid rgba(147, 112, 219, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9370db;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.3) 0%, rgba(147, 112, 219, 0.15) 100%);
    box-shadow: 0 8px 20px rgba(147, 112, 219, 0.3);
}

/* عنوان کارت */
.contact-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-card-title {
    color: #b19cd9;
}

/* متن کارت */
.contact-card-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Form */
.contact-form-wrapper {
    width: 100%;
    margin-top: 4rem;
}

.contact-form {
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    color: #e5e7eb;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(229, 231, 235, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Nian', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .contact-section-wrapper {
        padding: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .contact-item {
        padding: 2rem 1.5rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .contact-card-title {
        font-size: 1.25rem;
    }

    .contact-card-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1.75rem 1.25rem;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .contact-card-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .contact-card-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-wrapper {
        margin-top: 3rem;
    }
}


/* ==================== Nooragold Magazine Page ==================== */

.mag-page {
    position: relative;
    min-height: calc(100vh - 80px - 60px);
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
    overflow: hidden;
    padding: 7rem 0 4rem;
}

/* ========== دایره‌های تزئینی Magazine ========== */
.mag-decoration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mag-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
}

.mag-circle-1 {
    top: 12%;
    right: 8%;
    width: 21.9rem;
    height: 21.9rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    animation-delay: 0s;
}

.mag-circle-2 {
    top: 42%;
    left: 4%;
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    animation-delay: 2s;
}

.mag-circle-3 {
    right: 18%;
    bottom: 12%;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    animation-delay: 4s;
}

/* ========== Layout ========== */
.mag-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.5rem;
    align-items: start;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* ========== Shared Glass Blocks ========== */
.mag-card,
.mag-widget,
.mag-state,
.mag-pagination a {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(20px);
}

/* ========== Main Posts ========== */
.mag-posts,
#mag-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mag-card {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    overflow: hidden;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.mag-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.28);
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.25);
}

.mag-card-image {
    display: block;
    min-height: 13.75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.mag-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.mag-card:hover .mag-card-image img {
    transform: scale(1.06);
}

.mag-card-content {
    padding: 1.4rem;
}

.mag-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
}

.mag-meta i {
    color: #ffd700;
    margin-left: 0.25rem;
}

.mag-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.7;
}

.mag-card h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mag-card h2 a:hover {
    color: #ffd700;
}

.mag-card p {
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.9;
    font-size: 0.95rem;
    text-align: justify;
}

.mag-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mag-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.mag-read-more:hover {
    gap: 0.75rem;
}

.mag-category {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #1a0f2e;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ========== Sidebar ========== */
.mag-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mag-widget {
    border-radius: 18px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.mag-widget:hover {
    border-color: rgba(255, 215, 0, 0.2);
}

.mag-widget-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.05rem;
}

.mag-widget-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    color: #1a0f2e;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
}

/* Search */
.mag-search {
    display: flex;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mag-search input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
}

.mag-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.mag-search button {
    width: 3rem;
    border: none;
    outline: none;
    cursor: pointer;
    color: #1a0f2e;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    transition: opacity 0.3s ease;
    font-family: 'Nian', sans-serif;
}

.mag-search button:hover {
    opacity: 0.85;
}

/* Mini Posts */
.mag-mini-posts,
.mag-popular-list {
    display: flex;
    flex-direction: column;
}

.mag-mini-posts {
    gap: 0.9rem;
}

.mag-mini-post {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
}

.mag-mini-post img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.mag-mini-post h4 {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.mag-mini-post:hover h4 {
    color: #ffd700;
}

.mag-mini-post span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

/* Popular */
.mag-popular-list {
    gap: 0.8rem;
}

.mag-popular-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
}

.mag-popular-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.18);
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-size: 0.82rem;
    font-weight: 700;
}

.mag-popular-list p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.mag-popular-list a:hover p {
    color: #ffd700;
}

/* Pagination */
.mag-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.mag-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mag-pagination a:hover,
.mag-pagination a.active {
    color: #1a0f2e;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-color: rgba(255, 215, 0, 0.35);
}

/* ========== Dynamic Magazine States ========== */
.mag-state {
    min-height: 10rem;
    padding: 1.5rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.mag-state i {
    color: #ffd700;
    font-size: 1.2rem;
}

.mag-state-error {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 80, 80, 0.25);
}

.mag-state-error i {
    color: #ff6b6b;
}

.mag-sidebar-loading {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ========== Responsive Magazine ========== */
@media (max-width: 992px) {
    .mag-layout {
        grid-template-columns: 1fr;
    }

    .mag-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mag-page {
        padding-top: 7rem;
    }

    .mag-card {
        grid-template-columns: 1fr;
    }

    .mag-card-image {
        min-height: 12rem;
    }

    .mag-sidebar {
        grid-template-columns: 1fr;
    }

    .mag-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .mag-layout {
        padding: 0 1rem;
    }

    .mag-card-content,
    .mag-widget {
        padding: 1rem;
    }

    .mag-meta {
        gap: 0.6rem;
    }

    .mag-card h2 {
        font-size: 1.05rem;
    }

    .mag-mini-post {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .mag-mini-post img {
        width: 4rem;
        height: 4rem;
    }
}


/* ==================== Article Page ==================== */

.article-page {
    position: relative;
    min-height: calc(100vh - 80px - 60px);
    padding: 8.5rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
}

/* Shared Glass Styles */
.article-box,
.article-widget,
.article-state,
.article-share-box,
.article-topbar-inner {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.article-box,
.article-state {
    border-radius: 22px;
}

.article-widget,
.article-share-box {
    border-radius: 18px;
}

.article-widget,
.article-share-box,
.article-content-wrap {
    padding: 1.25rem;
}

/* Shared Gold Icon Box */
.article-widget-title i,
.article-share-title i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #1a0f2e;
}

/* Decorations */
.article-decoration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.article-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
}

.article-circle-1 {
    top: 10%;
    right: 6%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
}

.article-circle-2 {
    top: 45%;
    left: 5%;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, #9370db 0%, transparent 70%);
    animation-delay: 2s;
}

.article-circle-3 {
    right: 20%;
    bottom: 10%;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    animation-delay: 4s;
}

/* Topbar */
.article-topbar,
.article-layout {
    position: relative;
    z-index: 2;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.article-topbar {
    margin-bottom: 1.5rem;
}

.article-topbar-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
}

.article-topbar-inner a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-topbar-inner a:hover {
    color: #ffd700;
}

.article-topbar-inner i {
    font-size: 0.75rem;
    color: #ffd700;
}

/* Layout */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.5rem;
    align-items: start;
}

/* Main */
.article-main {
    min-width: 0;
}

.article-box {
    overflow: hidden;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.2);
}

.article-hero {
    position: relative;
    width: 100%;
    min-height: 20rem;
    max-height: 31rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.article-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content-wrap {
    padding: 1.7rem;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.18);
    backdrop-filter: blur(14px);
}

.article-title {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.3rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.58);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.article-meta i {
    color: #ffd700;
}

/* Content */
.article-content {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    word-wrap: break-word;
    white-space: pre-line;
    text-align: justify;
    line-height: 2.2;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 16px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.5rem 0 0.8rem;
    line-height: 1.8;
    color: #fff;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 0 1.2rem 1rem 0;
    padding: 0;
}

.article-content li {
    margin-bottom: 0.55rem;
}

.article-content a {
    color: #ffd700;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content blockquote {
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    border-right: 3px solid #ffd700;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
}

.article-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    padding: 0.85rem;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content table th {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
}

/* Share Box */
.article-share-box {
    margin-top: 2rem;
    padding: 1.2rem;
}

.article-share-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
}

.article-share-title i {
    border-radius: 10px;
}

.article-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.article-share-btn:hover {
    transform: translateY(-2px);
}

.article-share-btn.telegram {
    background: rgba(34, 158, 217, 0.16);
    border-color: rgba(34, 158, 217, 0.35);
}

.article-share-btn.telegram:hover {
    background: rgba(34, 158, 217, 0.28);
}

.article-share-btn.whatsapp {
    background: rgba(37, 211, 102, 0.16);
    border-color: rgba(37, 211, 102, 0.35);
}

.article-share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.28);
}

.article-share-btn.native {
    background: rgba(147, 112, 219, 0.16);
    border-color: rgba(147, 112, 219, 0.35);
}

.article-share-btn.native:hover {
    background: rgba(147, 112, 219, 0.28);
}

.article-share-btn.copy {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.28);
}

.article-share-btn.copy:hover {
    background: rgba(255, 215, 0, 0.2);
}

.copy-link-message {
    display: none;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: #25d366;
}

.copy-link-message.show {
    display: block;
}

/* Bottom Bar */
.article-bottom-bar {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffd700;
    transition: gap 0.3s ease;
}

.article-back-link:hover {
    gap: 0.9rem;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-widget {
    transition: all 0.3s ease;
}

.article-widget:hover {
    border-color: rgba(255, 215, 0, 0.2);
}

.article-widget-highlight {
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(184, 134, 11, 0.06) 100%),
        rgba(255, 255, 255, 0.035);
}

.article-widget-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #ffd700;
}

.article-widget-text {
    font-size: 0.94rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.72);
}

.article-mini-posts,
.article-popular-list {
    display: flex;
    flex-direction: column;
}

.article-mini-posts {
    gap: 0.9rem;
}

.article-popular-list {
    gap: 0.8rem;
}

.article-mini-post {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.article-mini-post img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.article-mini-post h4 {
    margin-bottom: 0.3rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.3s ease;
}

.article-mini-post:hover h4 {
    color: #ffd700;
}

.article-mini-post span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.article-popular-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
}

.article-popular-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.18);
}

.article-popular-list p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.3s ease;
}

.article-popular-list a:hover p {
    color: #ffd700;
}

.article-sidebar-loading {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

/* States */
.article-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 18rem;
    padding: 1.5rem;
    text-align: center;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.article-state i {
    font-size: 1.2rem;
    color: #ffd700;
}

.article-state-error {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 80, 80, 0.25);
}

.article-state-error i {
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .article-page {
        padding-top: 7rem;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-content-wrap {
        padding: 1.2rem;
    }

    .article-hero {
        min-height: 14rem;
    }

    .article-topbar-inner {
        line-height: 1.9;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .article-layout,
    .article-topbar {
        padding: 0 1rem;
    }

    .article-title {
        font-size: 1.35rem;
    }

    .article-meta {
        gap: 0.8rem;
    }

    .article-widget,
    .article-content-wrap {
        padding: 1rem;
    }

    .article-mini-post {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .article-mini-post img {
        width: 4rem;
        height: 4rem;
    }

    .article-share-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .article-share-btn {
        width: 100%;
    }
}
/* ==================== Article Fade Animation ==================== */

@keyframes articleFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-box {
    animation: articleFadeIn 0.8s ease forwards;
}

.article-sidebar {
    animation: articleFadeIn 0.9s ease forwards;
    animation-delay: 0.15s;
    opacity: 0;
}

.article-topbar {
    animation: articleFadeIn 0.7s ease forwards;
}

/* ========== Override: تیره‌سازی کامل آکاردئون قوانین (رفع پس‌زمینه سفید) ========== */
.rules-accordion .accordion-item {
    background: #160b2e;
    border-color: rgba(255, 215, 0, 0.12);
}

.rules-accordion .accordion-item:hover {
    background: #21113d;
    border-color: rgba(255, 215, 0, 0.3);
}

.rules-accordion .accordion-item.active {
    background: #2b164d;
    border-color: rgba(255, 215, 0, 0.25);
}

.rules-accordion .accordion-header:hover {
    background: rgba(255, 215, 0, 0.06);
}

.rules-accordion .accordion-item.active .accordion-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.rules-accordion .accordion-content {
    background: #160b2e;
}

.rules-accordion .accordion-item.active .accordion-content {
    background: #1f103a;
}

.rules-accordion .accordion-body {
    color: rgba(255, 255, 255, 0.9);
}

.rules-accordion .accordion-title {
    color: #ffd700;
}

.rules-accordion .accordion-toggle {
    color: #ffd700;
}

.rules-accordion .accordion-icon {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #ffffff;
}

/* Darken only the specific FontAwesome glyphs inside rules accordion icons.
   Each class matches exactly one icon in rules.html. The toggle chevron
   (fa-chevron-down) is intentionally NOT included. */
.rules-accordion .fa-user-check,
.rules-accordion .fa-user-check::before,
.rules-accordion .fa-shield-alt,
.rules-accordion .fa-shield-alt::before,
.rules-accordion .fa-balance-scale,
.rules-accordion .fa-balance-scale::before,
.rules-accordion .fa-ban,
.rules-accordion .fa-ban::before,
.rules-accordion .fa-file-contract,
.rules-accordion .fa-file-contract::before,
.rules-accordion .fa-headset,
.rules-accordion .fa-headset::before,
.rules-accordion .fa-lock,
.rules-accordion .fa-lock::before,
.rules-accordion .fa-gavel,
.rules-accordion .fa-gavel::before,
.rules-accordion .fa-exclamation-triangle,
.rules-accordion .fa-exclamation-triangle::before {
    color: #111 !important;
}

/* SVG fallback (if FontAwesome is loaded as SVG + JS). */
.rules-accordion svg.fa-user-check,
.rules-accordion svg.fa-shield-alt,
.rules-accordion svg.fa-balance-scale,
.rules-accordion svg.fa-ban,
.rules-accordion svg.fa-file-contract,
.rules-accordion svg.fa-headset,
.rules-accordion svg.fa-lock,
.rules-accordion svg.fa-gavel,
.rules-accordion svg.fa-exclamation-triangle,
.rules-accordion svg.fa-user-check *,
.rules-accordion svg.fa-shield-alt *,
.rules-accordion svg.fa-balance-scale *,
.rules-accordion svg.fa-ban *,
.rules-accordion svg.fa-file-contract *,
.rules-accordion svg.fa-headset *,
.rules-accordion svg.fa-lock *,
.rules-accordion svg.fa-gavel *,
.rules-accordion svg.fa-exclamation-triangle * {
    color: #111 !important;
    fill: #111 !important;
    stroke: #111 !important;
}

/* ========== Force Nian on all buttons ========== */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a[class*="btn"],
a[class*="button"],
[class*="btn-"],
[class*="button-"],
[class*="submit-"] {
    font-family: 'Nian', Tahoma, Arial, sans-serif !important;
}

