   /* =========================================
           1. متغیرها و تنظیمات تم (رویال سیلور
)
           ========================================= */
        @import url('css/fontiran.css');

       

        * { box-sizing: border-box; margin: 0; padding: 0; outline: none; text-decoration: none !important; }

        body {
            background-color: var(--bg-main);
            background-image: radial-gradient(circle at 20% 80%, rgba(30, 41, 59, 0.4) 0%, transparent 40%),
                              radial-gradient(circle at 80% 20%, rgba(44, 30, 62, 0.4) 0%, transparent 40%);
            color: var(--text-light);
            font-family: 'IRANSansX', 'Vazirmatn', sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* =========================================
           2. هدر و منو
           ========================================= */
        header {
            background: linear-gradient(135deg, var(--bg-header-start), var(--bg-header-end));
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 0.8rem 0;
        }
        .navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0.5rem 3rem; }
        .logo { display: flex; align-items: center; gap: 15px; font-size: 1.9rem; font-weight: 900; background: linear-gradient(to right, #ffffff, var(--accent-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); white-space: nowrap; }
        .logo-img { max-height: 50px; width: auto; }
        .nav-links { list-style: none; display: flex; gap: 30px; margin: 0; }
        .nav-links li a { color: var(--text-light); font-size: 1.1rem; font-weight: 500; position: relative; padding: 5px 0; transition: 0.3s; }
        .nav-links li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 50%; transform: translateX(-50%); background: linear-gradient(to right, transparent, var(--accent-gold), transparent); transition: 0.4s; box-shadow: 0 0 8px var(--accent-gold); }
        .nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }
        .nav-links li a:hover, .nav-links li a.active { color: var(--accent-gold); text-shadow: 0 0 8px var(--glow-shadow); }
        .hamburger { display: none; font-size: 2rem; cursor: pointer; color: var(--text-light); transition: 0.3s; }
        .hamburger.rotate { transform: rotate(90deg); color: var(--accent-gold); }

        /* =========================================
           3. چیدمان دو ستونه (Split Layout)
           ========================================= */
        .split-container {
            display: flex;
            flex-direction: row;
            width: 100%;
            min-height: 85vh;
            position: relative;
        }

        /* ستون سمت راست: شعار */
        .side-text {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            z-index: 5;
            text-align: center;
        }

        .slogan-box h1 {
            font-size: 4.5rem;
            line-height: 1.4;
            color: var(--accent-gold);
            text-shadow: 0 0 20px var(--glow-shadow);
            font-style: italic;
            font-family: 'IranNastaliq', 'IRANSansX', serif;
            margin-bottom: 20px;
            transform: rotate(-2deg);
        }
        
        .slogan-box h1 span {
            color: #fff;
            font-size: 2.5rem;
            display: block;
            margin-top: 10px;
            font-family: 'IRANSansX', sans-serif;
            font-weight: 300;
            font-style: normal;
            letter-spacing: 2px;
            transform: rotate(2deg);
        }

        .slogan-desc {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 400px;
            line-height: 1.8;
            margin-top: 20px;
        }

        /* ستون سمت چپ: ماشین حساب */
        .side-calc {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .background-circles {
            position: absolute;
            width: 100%; height: 100%;
            top: 0; left: 0;
            pointer-events: none;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .bg-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.1); }
        .c1 { width: 600px; height: 600px; border-color: rgba(212, 175, 55, 0.15); }
        .c2 { width: 800px; height: 800px; border-style: dashed; animation: spin 80s linear infinite; }
        .c3 { width: 450px; height: 450px; border-color: rgba(212, 175, 55, 0.05); }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        /* =========================================
           4. استایل ماشین حساب
           ========================================= */
        .calculator-card {
            background: rgba(21, 28, 47, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid var(--accent-gold);
            border-radius: 50%;
            width: 600px;
            height: 600px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            z-index: 10;
            box-shadow: 0 0 50px var(--glow-shadow);
            padding: 20px;
            transition: all 0.4s ease;
        }

        .live-price-badge {
            position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
            background: var(--accent-gold); color: #000; padding: 10px 25px;
            border-radius: 18px; box-shadow: 0 5px 20px rgba(0,0,0,0.4); z-index: 20;
            text-align: center; width: max-content; max-width: 80%;
        }
        .live-price-badge .price { font-size: 1.6rem; font-weight: 900; display: block; letter-spacing: 1px; }
        .live-price-badge .label { font-size: 0.8rem; font-weight: bold; opacity: 0.9; }

        .tabs { display: flex; gap: 30px; position: relative; z-index: 2; margin-top: 130px; margin-bottom: 20px; }
        .tab-btn { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; font-family: inherit; cursor: pointer; padding-bottom: 8px; font-weight: bold; }
        .tab-btn.active { color: var(--accent-gold); border-bottom: 3px solid var(--accent-gold); text-shadow: 0 0 10px var(--glow-shadow); }
        .tab-btn.sell-mode.active { color: var(--sell-color); border-color: var(--sell-color); text-shadow: 0 0 10px var(--sell-glow); }

        .input-wrapper { margin-bottom: 15px; text-align: center; width: 100%; max-width: 260px; position: relative; z-index: 5; }
        .input-label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }
        .custom-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 10px; color: var(--text-light); font-size: 1.3rem; text-align: center; font-family: inherit; font-weight: bold; }
        .custom-input:focus { border-color: var(--accent-gold); box-shadow: 0 0 15px var(--glow-shadow); }

        .note { font-size: 0.8rem; color: #ddd; margin-bottom: 15px; background: rgba(255, 255, 255, 0.05); padding: 5px 15px; border-radius: 25px; max-width: 90%; text-align: center; }

        .action-btn { background: transparent; border: 2px solid var(--accent-gold); color: var(--accent-gold); padding: 10px 40px; font-size: 1.1rem; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: bold; transition: 0.3s; margin-top: 5px; margin-bottom: 20px; z-index: 5; }
        .action-btn:hover { background: var(--accent-gold); color: #000; box-shadow: 0 0 25px var(--glow-shadow); }

        /* اصلاح فاصله دکمه تا وضعیت لایو */
        .live-status { 
            position: absolute; 
            bottom: 30px; /* قبلا 40 بود */
            font-size: 0.8rem; 
            color: var(--text-muted); 
            display: flex; 
            align-items: center; 
            gap: 8px; 
            background: rgba(0,0,0,0.3); 
            padding: 8px 20px; /* افزایش پدینگ */
            border-radius: 20px; 
            border: 1px solid rgba(255,255,255,0.05); 
            margin-top: 35px; /* فاصله اضافه شده از بالا */
        }
        .status-dot { width: 8px; height: 8px; background-color: var(--success); border-radius: 50%; box-shadow: 0 0 5px var(--success); animation: blink 1.5s infinite; }
        @keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
        
        .coin-deco { position: absolute; width: 60px; height: 60px; background: url('https://cdn-icons-png.flaticon.com/512/217/217853.png') no-repeat center/cover; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)) sepia(100%) hue-rotate(5deg) saturate(150%); opacity: 0.8; pointer-events: none; }
        .coin1 { bottom: 80px; right: 60px; transform: rotate(20deg); }
        .coin2 { bottom: 120px; left: 60px; transform: rotate(-30deg) scale(0.8); }

        /* =========================================
           5. فوتر
           ========================================= */
        footer { background: linear-gradient(135deg, var(--bg-header-start), var(--bg-header-end)); border-top: 1px solid var(--accent-gold); padding: 4rem 1rem 1rem 1rem; margin-top: 0; }
        .footer-container { max-width: 90%; display: grid; margin: auto; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
        .footer-col h4, .footer-col .footer-logo-title { color: var(--accent-gold); font-size: 1.2rem; font-weight: bold; margin-bottom: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--accent-gold); display: inline-block; }
        .footer-links { list-style: none; padding: 0; text-align: center; }
        .footer-links li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; justify-content:center; }
        .contact-icon-box { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; }
        .contact-icon-box svg { width: 100%; height: 100%; fill: var(--accent-gold); }
        .footer-links a, .footer-links span { color: var(--text-muted); font-size: 0.95rem; transition: all 0.3s; text-decoration: none; }
        .footer-links a:hover { color: var(--text-light); padding-right: 8px; text-shadow: 0 0 5px var(--glow-shadow); }
        .license-box { display: flex; gap: 10px; justify-content: center; }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 3rem; padding-top: 2rem; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; gap: 15px; }

        /* =========================================
           6. ریسپانسیو
           ========================================= */
        @media (max-width: 1024px) {
            .split-container {
                flex-direction: column-reverse;
                min-height: auto;
                padding-bottom: 50px;
            }
            .side-text, .side-calc { flex: none; width: 100%; }
            .side-calc { padding: 40px 0; min-height: auto; }
            .calculator-card {
                width: 90%; max-width: 450px; height: auto; min-height: auto;
                aspect-ratio: unset; border-radius: 30px;
                padding: 30px 20px;
                padding-bottom: 60px; /* فضای بیشتر برای موبایل */
            }
            .background-circles { display: none; }
            .coin-deco { display: none; }
            .tabs { margin-top: 0; width: 100%; justify-content: center; }
            .live-price-badge { position: relative; top: unset; left: unset; transform: unset; margin-bottom: 20px; width: 100%; }
            .live-status { position: relative; bottom: unset; margin-top: 25px; }
            .slogan-box h1 { font-size: 3rem; transform: none; }
            .slogan-box h1 span { font-size: 1.8rem; transform: none; }
            .footer-container { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .navbar { padding: 0.8rem 1rem; }
            .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; right: 0; background: linear-gradient(var(--bg-header-start), var(--bg-header-end)); text-align: center; gap: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-bottom: 1px solid var(--accent-gold); z-index: 999; }
            .nav-links.active { display: flex; }
            .nav-links li { width: 100%; border-top: 1px solid rgba(255,255,255,0.05); }
            .nav-links li a { display: block; padding: 1.2rem; }
            .hamburger { display: block; }
            .footer-container { grid-template-columns: 1fr; }
            .footer-bottom { justify-content: center; text-align: center; }
        }