:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #d6a000;
    --accent-2: #0f766e;
    --accent-contrast: #000000;
    --shadow: 0 6px 18px rgba(18, 23, 38, 0.06);
    --radius: 10px;
    --font: 'Vazirmatn', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset صحیح */
* {
    box-sizing: border-box;
    text-decoration: none;
    color: #000000;
    margin-top: 0px;
}

a {
    text-decoration: none;
    color: inherit;
}

html,body{
    -webkit-box-shadow: 0px 0px;
    box-shadow: 0px 0px;
}

body{
    margin: 0;
    font-family: var(--font);
    color: #111827;
    -moz-osx-font-smoothing: grayscale;
    background-size: cover;
    /* background-attachment: fixed; این خط را حذف کنید */
    background-repeat: no-repeat;
    background-position: center center;
	
}


/* Skip link برای دسترسی‌پذیری */
.skip-link {
    position: absolute;
    left: 8px;
    background: var(--accent);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.3s ease;
    top: -10px;
}

.skip-link:focus {
  top: 8px;
}


/* Header */
.site-header{
    background: linear-gradient(90deg,#fff 0%, #ffffffcc 100%);
    border-bottom: 1px solid #e6e9ee;
    top: 0;
    z-index: 60;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* اصلاح شده: حذف border-radius برای تمام صفحه */
.header-inner{
	width: 100%;
	margin: 0 auto;
	padding: 14px 16px;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background-image: url(../images/5.jpg);
	background-size: cover; /* اضافه کنید */
	background-repeat: no-repeat; /* اضافه کنید */
	background-position: center center; /* اضافه کنید */
    position: relative; /* مهم: برای موقعیت‌دهی منوی مطلق */
}

/* برند مرکزی */
.brand-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.logo-placeholder{
  width:72px;
  height:52px;
  background:linear-gradient(135deg,var(--accent),#ffd46b);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-weight:700;
  font-size:18px;
}
.site-title {
    font-weight: 800;
    font-size: 25px;
    color: var(--accent);
    text-align: center;
    flex: 1;
    text-shadow: 0px 0px 0px;
}

/* کادر کنترل (ساعت، جستجو، منو) */
.controls-box{
    width: 100%;
    border-radius: 25px;
    padding-top: 10px;
    padding-right: 12px;
    padding-left: 12px;
    padding-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    border: 2px solid #eef2f7;
	position: relative;
    z-index: 1;
}

/* بخش‌های داخل کنترل */
.controls-left,
.controls-center,
.controls-right{
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Input */
.search input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    min-width: 150px;
    width: 350px;
    height: 32px;
    outline: none;
    font-family: var(--font);
    transition: box-shadow 0.2s ease;
}

.search input:focus {
    box-shadow: 0 0 0 3px rgba(214, 160, 0, 0.12);
    text-align: right;
}


/* top ticker */
.top-ticker{
    margin: 14px auto;
    padding: 8px 12px;
    border-radius: 25px;
    background: linear-gradient(90deg, rgba(212,175,55,0.1), transparent);
    border: 2px solid rgba(212,175,55,0.12);
    box-shadow: inset 0 8px 20px;
    overflow: hidden;
    -webkit-box-shadow: inset 0 8px 20px;
}
.top-ticker-inner{display:flex;align-items:center;gap:12px}
.ticker-icon{flex:0 0 auto;opacity:0.95}
.ticker-viewport{overflow:hidden;flex:1}
.ticker-track{
    display: inline-block;
    white-space: nowrap;
    animation: ticker-move 45s linear infinite;
    font-weight: 600;
    color: var(--accent-contrast);
    animation-delay: -10s;
}
.ticker-item{display:inline-block;padding:0 20px}
.ticker-sep{display:inline-block;padding:0 12px;color:rgba(0,0,0,0.08)}
.top-ticker:hover .ticker-track{animation-play-state:paused}
@keyframes ticker-move{100%{transform:translateX(100%)}0%{transform:translateX(-100%)}}


/* منو (ناوبری داخل کادر) */
.controls-right.top-nav a{
  margin-left:8px;
  color:#374151;
  text-decoration:none;
  font-weight:500;
  padding:6px 8px;
  border-radius:8px;
}
.controls-right.top-nav a:hover {
  background: #d4af37;
  color: #fff !important;
}

.data2 {
    border-radius: 25px !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}


/* Responsive: وقتی کوچک شد، عناصر ستون می‌شوند */
@media (max-width:900px){
  .controls-box{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .controls-right.top-nav{justify-content:flex-end;flex-wrap:wrap}
  .search input{
	width: 100px;
	min-width: 0
}
  .controls-left{justify-content:flex-end}



}


/* Hero */
.container,
.container-calculator {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: 0 16px;
	background: linear-gradient(125deg, #f2efe9 0%, #F9EF9A 100%);
	margin-top: -15px;
	min-height: 1300px;
	position: relative;
	z-index: 0;  /* اضافه شد */
}

.container::before,
.container-calculator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        35deg,
        rgba(184, 134, 11, 0.01) 7px,  /* پررنگ‌تر برای تست */
        rgba(184, 134, 11, 0.05) 10px,
        transparent 20px,
        transparent 25px
    );
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container::after,
.container-calculator::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 95% 15%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
                      radial-gradient(circle at 5% 85%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container > *,
.container-calculator > *{
    position: relative;
    z-index: 2;  /* تغییر کرد تا بالای همه باشد */
}

.hero-desc1 {
    width: auto;
    padding: 0 16px;
    text-align: center;
    align-items: center;
}
@media (max-width:900px) {
  .hero-left h1 {
    margin: 0 auto;         /* وسط‌چین افقی */
    width: auto;            /* عرض متناسب با صفحه */
    text-align: center;     /* متن وسط */
    font-size: 18px;        /* فونت متناسب موبایل */
    padding: 0 10px;        /* کمی فاصله از لبه‌ها */
  }
  .hero-desc1 {
    width: auto;
    padding: 0 16px;
    text-align: center;
    align-items: center;
  }
	.hero{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}
}
.live-summary{display:flex;gap:10px}
.summary-item{background:var(--card);padding:10px;border-radius:10px;box-shadow:var(--shadow);min-width:110px;text-align:center}
.summary-item .label{color:var(--muted);font-size:12px}
.summary-item .value{font-weight:700;font-size:16px}

/* Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
    text-align: center;
}
.rates {
	background: transparent;
	display: grid;
	height: auto;      /* ⭐ اصلاح: ارتفاع پویا با محتوا */
	min-height: 580px;
}
.rates-header{
	align-items: center;
	justify-content: space-between;
	color: #000000;
}
.filters .filter{
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    border-radius: 8px;
    margin-left: 8px;
    cursor: pointer;
    color: #000000;
}
.filters .filter.active{background:var(--accent);color:#fff;border-color:transparent}

/* Rates grid */
.rates-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:12px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  transition:transform .12s ease;
}
.card .left{display:flex;align-items:center;gap:12px}
.card .icon{
  width:48px;height:48px;border-radius:8px;background:#fff;border:1px solid #f1f5f9;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--accent-2)
}
.card .meta .name{font-weight:600}
.card .meta .sub{color:var(--muted);font-size:12px}
.card .price{text-align:left}
.card .price .value{font-weight:700;font-size:16px}
.card .price .change{font-size:12px;color:var(--muted)}
.card:hover{transform:translateY(-4px)}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget {
    background: var(--card);
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-height: none;
    margin-top: 10px;
}

.widget h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    min-height: 0px;
    max-height: none;
}

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

.news li {
    padding: 8px 6px;
    border-bottom: 1px dashed #eef2f7;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

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

.news li a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news li a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.empty-widget {
    background: var(--card);
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.usage-widget {
	background: var(--card);
	padding: 12px;
	border-radius: 12px;
	box-shadow: var(--shadow);
	margin-top: 10px;
	max-height: 400px;
	height: 100%;
}

.usage-body {
    display: grid;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    margin-right: 50px;
}

.usage-hint {
    color: var(--muted);
    font-size: 11px;
    margin-top: 8px;
}
/* Explainer Section */
.explainer-section {
    padding: 20px 0;
    margin-top: 50px;
}

.section-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.explainer-content .exp1 {
    font-size: 0.95em;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}



/* small note */

/* Footer */
.site-footer{
    margin-top: 0px;
    padding: 18px 0;
    background-color: transparent;
    display: inherit;
}
.footer-inner{
    width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    color: var(--muted);
    text-align: center;
}
.footer-links a{margin-left:12px;color:var(--muted);text-decoration:none}


@media (max-width:900px){
  .layout-grid {
    display: flex;              /* ⭐ تغییر از گرید به فلکس برای چینش عمودی */
    flex-direction: column;
    gap: 20px;
  }
  .rates;
	.empty-widget {
    order: 1;
    height: auto;
  }
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 12px;

}
    .rates-grid{grid-template-columns:repeat(1,minmax(0,1fr));}
  .header-inner{
	gap: 10px;
}
  .top-ads-grid{
    flex-direction: column;
}
  .top-ad-slot{
    width: 100%;
    height: 120px;
    max-height: 120px;
}
}
@media (max-width:480px){
  .ads-grid{grid-template-columns:repeat(1,1fr)}
  .ads-section{padding-bottom:10px}
  .hero-desc {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.exp1 {
	width: auto;
	text-align: center;



}
.P1 {
    font-size: 20px;
    color: #F09602;
    font-weight: bold;
    text-align: center;
    height: auto;
    margin-top: 20px;
}
.p2 {
    color: #F09602;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.logo1 {
    background-image: url(../images/logo.jpeg);
    background-size: cover;
    background-position: center;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    margin-right: 25px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}
/* کادر سمت چپ هم‌اندازه لوگو */
.logo-placeholder-left {
	width: 90px;
	height: 90px;
	border-radius: 10px;
	box-shadow: 0 0 0;
	background-image: url(../images/logoleft.jpeg);
	-webkit-box-shadow: 0 0 0;
	margin-left: 25px;
	margin-top: -15px;
}

/* برای انیمیشن چشمک زدن کارت قیمت در زمان آپدیت */
@keyframes price-flash {
    0% { background-color: rgba(255, 255, 0, 0.3); }
    100% { background-color: var(--card); }
}

.card.price-update {
    animation: price-flash 1s ease-out;
}



/* برای صفحاتی که باید تمام صفحه باشند */
body.full-width-page .container,
body.full-width-page .site-header,
body.full-width-page .header-inner,
body.full-width-page .site-footer,
body.full-width-page .footer-inner {
	max-width: 100%;
	width: 100%;
	border-radius: 0;
	padding-top: 15px;
	margin-top: -15px;
}

body.full-width-page .container {
    margin-top: 0;
    padding: 0 16px;
    height: 1600px;
}

body.full-width-page .header-inner {
	border-radius: 0;
	margin-top: -20px;
}



.side-sectionleft {
    width: 100%;
    border-right: 2px solid #000000;
}
.side-sectionright {
    width: 300px;
    text-align: right;
    border-left: 2px solid #000000;
}

.footeramar {
    background-image: url(../images/5.jpg);
    border-top: 2px solid #FFD600;
    margin-top: -15px;
}

.empty-widget {
    margin-top: 10px;
    height: auto;
	
}
.link-headerleft {
    text-align: right;
    padding-right: 30px;
    width: 300px;
    height: 40px;
}


 
.sidebar-calculator {
    order: 2;
    width: 100%;
    height: auto;
    padding-left: 20px;
}
.container-gold {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: 0 16px;
	background: linear-gradient(125deg, #f2efe9 0%, #F9EF9A 100%);
	margin-top: -15px;
	position: relative;
	z-index: 0;  /* اضافه شد */
}

.container-gold::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        35deg,
        rgba(184, 134, 11, 0.01) 7px,  /* پررنگ‌تر برای تست */
        rgba(184, 134, 11, 0.05) 10px,
        transparent 20px,
        transparent 25px
    );
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container-gold::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 95% 15%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
                      radial-gradient(circle at 5% 85%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container-gold > * {
    position: relative;
    z-index: 2;  /* تغییر کرد تا بالای همه باشد */
}
.title-2 {
    margin-top: -20px;
    font-family: Times New Roman;
    color: #FFCC38;
}
.title-1 {
    font-family: titr;
    color: #FFCC38;

}

  /* ضمن موبایل، محدود کردن سایز جستجو و ترازها */
  .search input {
    width: 100%;
    max-width: 100%;
  }

  .controls-box {
    padding: 10px;
  }

  /* قرارگیری لوگو و عنوان با فضا مناسب */
  .header-top {
    align-items: center;
    gap: 8px;
  }

  .logo1 {
    width: 70px;
    height: 70px;
    margin-right: 12px;
  }

  .site-title {
    font-size: 18px;
  }

  .title-2 {
    font-size: 14px;
    margin-top: 5px;
  }

.container-about {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: 0 16px;
	background: linear-gradient(125deg, #f2efe9 0%, #F9EF9A 100%);
	margin-top: -15px;
	position: relative;
	z-index: 0;  /* اضافه شد */
}

.container-about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        35deg,
        rgba(184, 134, 11, 0.01) 7px,  /* پررنگ‌تر برای تست */
        rgba(184, 134, 11, 0.05) 10px,
        transparent 20px,
        transparent 25px
    );
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container-about::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 95% 15%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
                      radial-gradient(circle at 5% 85%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container-about > * {
    position: relative;
    z-index: 2;  /* تغییر کرد تا بالای همه باشد */
}
.container-contact {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: 0 16px;
	background: linear-gradient(125deg, #f2efe9 0%, #F9EF9A 100%);
	margin-top: -15px;
	position: relative;
	z-index: 0;  /* اضافه شد */
}

.container-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        35deg,
        rgba(184, 134, 11, 0.01) 7px,  /* پررنگ‌تر برای تست */
        rgba(184, 134, 11, 0.05) 10px,
        transparent 20px,
        transparent 25px
    );
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container-contact::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 95% 15%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
                      radial-gradient(circle at 5% 85%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: 1;  /* تغییر کرد */
    opacity: 1;  /* اضافه شد */
}

.container-contact > * {
    position: relative;
    z-index: 2;  /* تغییر کرد تا بالای همه باشد */
}

/* بقیهٔ استایل‌های طولانی حفظ شدند — (نخوردم جز موارد منو) */
/* ... (بماند همان‌طور که شما فرستادی) ... */

/* ====================== */
/*  منوی همبرگری موبایل  */
/* ====================== */
/* قوانین خاص برای جلوگیری از تداخل با قواعد سراسری button { ... } */
.menu-toggle {
    display: none; /* پیش‌فرض دسکتاپ */
    position: absolute;            /* مطلق نسبت به .header-inner (که position:relative دارد) */
    top: 20px;
    right: 4px;                   /* با dir=rtl این سمت درست است */
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;       /* ایزوله از paddingهای عمومی */
    background: transparent !important;
    border: none !important;
    webkit-appearance: none;
    appearance: none;
    cursor: pointer !important;
    z-index: 99999 !important;     /* بالاتر از تمام المان‌ها */
    box-sizing: content-box !important;
}

/* خطوط همبرگری (مستقل از هر rule دیگر) */
.menu-toggle span {
    display: block;
    width: 22px !important;
    height: 3px !important;
    margin: 4px auto !important;
    background: #d6a000 !important; /* طلایی */
    border-radius: 3px !important;
    transition: transform 0.25s ease, opacity 0.2s ease !important;
    box-shadow: none !important;
}

/* حالت باز */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px) !important;
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0 !important;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px) !important;
}

/* موبایل: نمایش دکمه و تنظیمات منو */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* منو روی موبایل — از absolute استفاده می‌کنیم تا تداخل position حل شود */
    .controls-right.top-nav {
        display: none; /* مخفی پیش‌فرض */
        position: absolute !important;
        top: calc(100% + 6px) !important;   /* دقیقاً زیر header-inner */
        right: 12px !important;              /* فاصله از لبه برای RTL */
        left: 12px !important;               /* اختلاف سمت چپ/راست را کنترل کن */
        width: auto !important;
        background: linear-gradient(135deg,#d4af37,#f5d76e) !important;
        color: #111 !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.25) !important;
        border-radius: 12px !important;
        padding: 8px !important;
        z-index: 99990 !important;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
        isolation: isolate;
    }

    /* وقتی active شد، نمایش بده */
    .controls-right.top-nav.active {
        display: flex !important;
        animation: menuFadeIn 200ms ease both;
    }

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

    /* لینک‌ها قابل دید و بزرگ‌تر */
    .controls-right.top-nav a {
        padding: 12px 14px !important;
        font-size: 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.12) !important;
        color: #111 !important;
        background: transparent !important;
        text-align: center !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
    }

    .controls-right.top-nav a:last-child {
        border-bottom: none !important;
    }

    .controls-right.top-nav a:hover {
        background: rgba(255,255,255,0.12) !important;
        color: #000 !important;
    }
}

/* small defensive helpers: اگر فایل calculator.css قواعد دکمه را تغییر داد، این‌ها اولویت دارند */
.menu-toggle,
.menu-toggle * {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    touch-action: manipulation;
    pointer-events: auto !important;
}

/* اگر باز هم فایل‌های دیگر padding روی دکمه اعمال کردند: override */
button.menu-toggle {
    padding: 6px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
}

/* آخر: اگر منو به خاطر overflow:hidden پنهان میشه، اینو مطمئن کن */
.header-inner, .controls-box {
    overflow: visible !important;
}

/* پایان بخش منوی موبایل */
/* ... بقیهٔ CSS اصلی سایت بدون تغییر ادامه پیدا می‌کند ... */

/* استایل‌های لیست عمودی اخبار جدید */
.vertical-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.vertical-news-item {
	background: var(--card);
	border-radius: 8px;
	padding: 12px 15px;
	border: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	height: 30px;
	margin-top: -10px;
}

.vertical-news-title {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.vertical-news-title a {
  color: inherit;
  text-decoration: none;
}

.vertical-news-title a:hover {
	color: var(--accent);
	margin: -30;
	text-decoration: underline;
}

.vertical-news-info {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.8rem;
	margin-top: -10px;
}

.news-category {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-date {
	color: #666;
	font-size: 0.75rem;
	white-space: nowrap;
	flex-shrink: 0;
	margin-right: 5px;
}

.news-excerpt {
	color: #444;
	font-size: 0.85rem;
	line-height: 1.3;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	text-align: right;
	margin-right: 15px;
}

.empty-message {
  text-align: center;
  padding: 30px 20px;
  color: #666;
  font-style: italic;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .vertical-news-item {
    padding: 10px 12px;
  }
  
  .vertical-news-info {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .news-excerpt {
    white-space: normal;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    order: 3;
    width: 100%;
  }
}
.section-title-new {
	font-size: 1rem;
	margin-bottom: 1.2rem;
	padding-bottom: 0.7rem;
	border-bottom: 2px solid rgba(255, 215, 0, 0.5);
	align-items: center;
	gap: 0.7rem;
	color: #FFB600;
	text-align: center;
}

.rss-section {
    background: #fff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px #0001;
    direction: rtl;        /* راست‌چین کامل */
    text-align: right;
}

.rss-title {
    font-size: 18px;       /* کوچیک‌تر */
    margin-bottom: 10px;
    text-align: center;
    color: #FFB600;
}

.rss-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.rss-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;        /* کمی کوچیک‌تر */
    text-align: right;
}

.rss-item:last-child {
    border-bottom: none;
}

.rss-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;   /* متن سمت راست، تاریخ سمت چپ */
}

.rss-item-date {
    font-size: 12px;       /* کوچیک‌تر */
    color: #777;
    min-width: 60px;
    text-align: right;
}

.rss-item-text {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;       /* کمی کوچیک‌تر */
    text-align: right;
}

@media (max-wight: 900px) {
	.container;
	.container-gold;
	.container-calculator {
		min-height: auto !important;
		height:  auto !important;
	}

	.ads-section {
		margin-top: 0 !important;
	}
	.empty-widget {
		min-height: auto !important;
	 height: auto !important;
}
}

      .stats-box {
	background: white;
	border-radius: 15px;
	padding: 30px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	height: 100%;
	max-height: 400px;
        }
        .stat {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .stat:last-child {
            border-bottom: none;
        }

        .stats-title {
	text-align: center;
	color: #333;
	font-size: 22px;
	position: relative;
	padding-bottom: 10px;
	margin-top: -10px;
        }
        .stats-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 3px;
            background: linear-gradient(to right, #667eea, #764ba2);
            border-radius: 2px;
        }
        .stat-value {
    color: #2c3e50;
    font-weight: bold;
    font-size: 18px;
    font-family: var(--font);
    direction: ltr;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
        }

        /* استایل اصلی دکمه */
        .gold-calc-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    min-height: 56px;
    min-width: 56px;
    border-radius: 50px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 25%, #FDB931 50%, #FFD700 75%, #D4AF37 100%);
    color: #2C2416;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3), 
                        0 2px 8px rgba(0, 0, 0, 0.15),
                        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    animation: subtle-pulse 8s infinite;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
        }
        
        /* آیکون - سایز اصلی برای دسکتاپ */
        .gold-calc-btn__icon {
	width: 80px;  /* تغییر این عدد برای دسکتاپ */
	height: 80px;
	object-fit: contain;
	transition: transform 0.3s ease;
	margin-top: -50px;
	margin-bottom: -50px;
        }
        
        /* متن */
        .gold-calc-btn__text {
	display: inline-block;
	text-align: center;
	font-weight: bold;
	font-family: var(--font);		
        }
        
        /* هاور */
        .gold-calc-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4), 
                        0 4px 12px rgba(0, 0, 0, 0.2),
                        inset 0 1px 0 rgba(255, 255, 255, 0.5);
            filter: brightness(1.1);
        }
        
        .gold-calc-btn:hover .gold-calc-btn__icon {
            transform: scale(1.1);
        }
        
        /* فعال */
        .gold-calc-btn:active {
            transform: translateY(1px) scale(0.98);
        }
        
        /* انیمیشن پالس */
        @keyframes subtle-pulse {
            0%, 90%, 100% {
                box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3), 
                            0 2px 8px rgba(0, 0, 0, 0.15),
                            inset 0 1px 0 rgba(255, 255, 255, 0.4);
            }
            93% {
                box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4), 
                            0 3px 12px rgba(0, 0, 0, 0.2),
                            inset 0 1px 0 rgba(255, 255, 255, 0.5);
            }
            96% {
                box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3), 
                            0 2px 8px rgba(0, 0, 0, 0.15),
                            inset 0 1px 0 rgba(255, 255, 255, 0.4);
            }
        }
        
        /* ========== تنظیمات ریسپانسیو ========== */
        
        /* تبلت (768px به پایین) */
        @media (max-width: 768px) {
            .gold-calc-btn {
                bottom: 20px;
                right: 20px;
                padding: 14px 20px;
                font-size: 15px;
            }
            
            .gold-calc-btn__icon {
	width: 60px;  /* تغییر این عدد برای تبلت */
	height: 60px; /* تغییر این عدد برای تبلت */
	margin-right: 8px;
            }
        }
        
        /* موبایل (480px به پایین) */
        @media (max-width: 480px) {
            .gold-calc-btn {
                bottom: 16px;
                right: 16px;
                padding: 16px;
                border-radius: 50%;
                width: 60px;
                height: 60px;
            }
            
            .gold-calc-btn__text {
                display: none;
            }
            
            .gold-calc-btn__icon {

	width: 60px;  /* تغییر این عدد برای موبایل */
	height: 60px; /* تغییر این عدد برای موبایل */
	margin-right: 0;
            }
        }
        
        /* RTL */
        [dir="rtl"] .gold-calc-btn {
            right: auto;
            left: 24px;
        }
        
        [dir="rtl"] .gold-calc-btn__icon {
            margin-right: 0;
            margin-left: 10px;
        }
        
        @media (max-width: 768px) {
            [dir="rtl"] .gold-calc-btn {
                left: 20px;
            }
            
            [dir="rtl"] .gold-calc-btn__icon {
                margin-left: 8px;
            }
        }
        
        @media (max-width: 480px) {
            [dir="rtl"] .gold-calc-btn {
                left: 16px;
            }
            
            [dir="rtl"] .gold-calc-btn__icon {
                margin-left: 0;
            }
        }

.wrapper {
  display: inline-flex;
  list-style: none;
  padding: 0;
}

.wrapper .icon {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  padding: 15px;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #a0a0a0;
}

.wrapper .icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 13px;
  font-weight: 500;
  background: rgba(30, 30, 45, 0.95);
  color: #e8e8e8;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  white-space: nowrap;
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  bottom: -3px;
  right: 50%;
  transform: translate(50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -48px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* تلگرام */
.wrapper .telegram:hover,
.wrapper .telegram:hover .tooltip,
.wrapper .telegram:hover .tooltip::before {
  background: #0088cc;
  color: #ffffff;
  border-color: transparent;
}

/* واتس‌اپ */
.wrapper .whatsapp:hover,
.wrapper .whatsapp:hover .tooltip,
.wrapper .whatsapp:hover .tooltip::before {
  background: #25d366;
  color: #ffffff;
  border-color: transparent;
}

/* اینستاگرام */
.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
}

/* لینکدین */
.wrapper .linkedin:hover,
.wrapper .linkedin:hover .tooltip,
.wrapper .linkedin:hover .tooltip::before {
  background: #0a66c2;
  color: #ffffff;
  border-color: transparent;
}

/* یوتیوب */
.wrapper .youtube:hover,
.wrapper .youtube:hover .tooltip,
.wrapper .youtube:hover .tooltip::before {
  background: #ff0000;
  color: #ffffff;
  border-color: transparent;
}
