/* استایل‌های کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Iranian Sans', Tahoma, sans-serif;
    background-color: #0a192f;
    color: #ccd6f6;
    line-height: 1.6;
    direction: rtl;
    padding-top: 70px; /* ✅ این مقدار باید حداقل برابر ارتفاع هدر باشد */
    overflow-y: auto; /* یا overflow: auto; */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* هدر و ناوبری */
.header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.navbar {
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.user-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-profile:hover {
    background: rgba(100, 255, 218, 0.1);
}

.user-profile i {
    color: #64ffda;
}

.username {
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
    animation: fadeIn 0.3s ease;
}


.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #ccd6f6;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: rgba(100, 255, 218, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #ccd6f6;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Iranian Sans', Tahoma, sans-serif;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
}
/* منوی کشویی خروجی تکنیکال */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu .dropdown-item {
    padding: 8px 20px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}
.dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}
/* محتوای اصلی */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.page.active {
    display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-title {
    text-align: center;
    color: #64ffda;
    margin-bottom: 30px;
    font-size: 2.5rem;
    padding-top: 20px;
}
/* اسلایدر صفحه اصلی */
.slider-section {
    height: 70vh;
    position: relative;
    overflow: hidden;
}
/* بخش معرفی (Hero) */
.hero-section {
    height: 70vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}
.slider-container {
    position: relative;
    height: 100%;
}
.slider-wrapper {
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* حذف background: linear-gradient از هر سه کلاس زیر و اضافه کردن آن به یک کلاس جدید یا استفاده از ::before/::after */
.slide:nth-child(1)::before,
.slide:nth-child(2)::before,
.slide:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1; /* لوگو پشت گرادیانت باشد */
}
.slide:nth-child(1)::before {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
}
.slide:nth-child(2)::before {
    background: linear-gradient(135deg, #112240 0%, #1e3a5f 100%);
}
.slide:nth-child(3)::before {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a7a 100%);
}
.slide.active {
    opacity: 1;
}
.slide-content {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    color: white;
    max-width: 80%;
     display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.slide-content h2 {
    font-size: 2.5rem; /* کمی کوچک‌تر */
    margin-bottom: 15px;
    color: #64ffda;
}
.slide-content p {
    font-size: 1.2rem; /* کمی کوچک‌تر */
    opacity: 0.9;
    margin-bottom: 25px;
}
/* استایل لوگو در اسلایدر */
.slider-logo {
    position: absolute;
    top: 20px; /* فاصله از بالا */
    right: 20px; /* فاصله از راست */
    width: 250px; /* اندازه لوگو - می‌توانید تغییر دهید */
    height: auto;
    z-index: 10; /* اطمینان از اینکه لوگو روی متن نمایش داده شود */
    opacity: 0.8; /* شفافیت کمی برای اینکه متن زیر آن قابل خواندن باشد */
    transition: opacity 0.3s ease;
}
/* برای اینکه لوگو در هنگام هاور شفافیتش کمتر شود */
.slide:hover .slider-logo {
    opacity: 1;
}
.cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
    margin-top: 10px;
}
.cta-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #00b894, #64ffda);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 255, 218, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    z-index: 10;
}
.slider-btn:hover {
    background: rgba(100, 255, 218, 0.4);
}
.prev-btn {
    right: 20px;
}
.next-btn {
    left: 20px;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: #64ffda;
}
/* بخش‌های جدید صفحه اصلی */
.section-title {
    text-align: center;
    color: #64ffda;
    margin-bottom: 30px;
    font-size: 2rem;
    padding-top: 20px;
}
/* بخش محصولات ویژه */
.featured-products-section {
    padding: 40px 0;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}
.product-icon {
    font-size: 3rem;
    color: #64ffda;
    margin-bottom: 20px;
}
.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ccd6f6;
}
.product-card p {
    color: #8892b0;
    margin-bottom: 20px;
}
.product-btn {
    display: inline-block;
    background: linear-gradient(135deg, #64ffda, #00b894);
    border: none;
    color: #0a192f;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
    text-decoration: none;
}
.product-btn:hover {
    transform: scale(1.05);
}
/* بخش پیشنهادات ویژه */
.special-offers-section {
    padding: 40px 0;
    background: rgba(10, 25, 47, 0.7);
}
.offers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.offer-card {
    background: rgba(17, 34, 64, 0.9);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.3s;
}
.offer-card:hover {
    transform: translateY(-3px);
}
.offer-card h3 {
    color: #64ffda;
    margin-bottom: 10px;
    font-size: 1.4rem;
}
.offer-card p {
    color: #ccd6f6;
    margin-bottom: 20px;
}
.offer-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}
.offer-btn:hover {
    transform: scale(1.05);
}
/* بخش نظرات مشتریان */
.testimonials-section {
    padding: 40px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}
.testimonial-content p {
    color: #ccd6f6;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.8;
}
.testimonial-author {
    text-align: right;
}
.author-name {
    color: #64ffda;
    font-weight: bold;
    display: block;
}
.author-role {
    color: #8892b0;
    font-size: 0.9rem;
}
/* بخش اطلاعات تماس و شبکه‌های اجتماعی */
.contact-social-section {
    padding: 40px 0;
    background: rgba(10, 25, 47, 0.95);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}
.contact-social-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}
.contact-info h3, .social-links h3 {
    color: #64ffda;
    margin-bottom: 15px;
}
.contact-info p, .social-links a {
    color: #ccd6f6;
    margin-bottom: 8px;
    text-decoration: none;
}
.social-links a:hover {
    color: #64ffda;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* سامانه تکنیکال */
.system-section {
    padding: 40px 0;
}
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.system-card {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}
.system-card i {
    font-size: 3rem;
    color: #64ffda;
    margin-bottom: 20px;
}
.system-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ccd6f6;
}
.system-card p {
    color: #8892b0;
    margin-bottom: 20px;
}
.system-btn {
    background: linear-gradient(135deg, #64ffda, #00b894);
    border: none;
    color: #0a192f;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}
.system-btn:hover {
    transform: scale(1.05);
}
/* جدول تکنیکال کلاسیک */
.technical-section {
    padding: 40px 0;
}
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 30px;
    max-height: 60vh;
    overflow-y: auto;
    position: relative;
}
.technical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: center;
}
.technical-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
}
.technical-table th {
    background: rgba(10, 25, 47, 0.95) !important;
    color: #64ffda;
    font-weight: 600;
    padding: 15px 10px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.technical-table td {
    padding: 12px 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    background: rgba(255, 255, 255, 0.03);
}
.corner-cell {
    background: rgba(10, 25, 47, 0.9) !important;
    color: #64ffda !important;
    font-weight: 600;
}
.river-table .symbol-name {
    font-weight: 600;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.05) !important;
    /* هیچ display یا flex نداشته باشد */
}
.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1) !important;
}
.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1) !important;
}
.neutral {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1) !important;
}
.legend {
    background: rgba(17, 34, 64, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}
.legend h3 {
    color: #64ffda;
    margin-bottom: 15px;
}
.legend-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}
.color-box.positive {
    background: #4ade80;
}
.color-box.negative {
    background: #f87171;
}
.color-box.neutral {
    background: #fbbf24;
}
/* استایل‌های تب‌های ریور */
.river-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.river-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}
.river-tab:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}
.river-tab.active {
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    border-color: #64ffda;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}
.river-tab i {
    font-size: 1.5rem;
}
.river-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.river-tab-content.active {
    display: block;
}
/* جدول ریور */
.river-table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 30px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}
.river-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: center;
    min-width: 1500px;
}
.river-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
}
.river-table th {
    background: rgba(10, 25, 47, 0.95) !important;
    color: #64ffda;
    font-weight: 600;
    padding: 12px 8px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.river-table td {
    padding: 10px 8px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}
.river-table .symbol-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.08) !important;
    border-right: 3px solid #64ffda !important;
}
/* استایل‌های خاص برای جدول Bisoo Index */
.bisoo-table {
    font-size: 0.85rem !important;
    min-width: 900px !important;
}
.bisoo-table th,
.bisoo-table td {
    padding: 8px 6px !important;
}
.bisoo-table .symbol-name {
    font-size: 0.8rem !important;
}
/* خطوط جداسازی ضخیم‌تر بین نمادهای مختلف */
.river-table tbody tr:nth-child(3n) {
    border-bottom: 3px solid rgba(100, 255, 218, 0.4) !important;
}
.river-table tbody tr:nth-child(3n) td {
    border-bottom: 3px solid rgba(100, 255, 218, 0.4) !important;
}
/* خطوط نازک‌تر برای جدا کردن خانه‌های داخلی هر نماد */
.river-table tr:not(:nth-child(3n)) td {
    border-bottom: 1px solid rgba(100, 255, 218, 0.15) !important;
}
/* استایل برای اولین ردیف هر نماد */
.river-table tbody tr:nth-child(3n-2) td {
    border-top: 2px solid rgba(100, 255, 218, 0.3) !important;
}
/* بهبود نمایش برای خانه‌های rowspan */
.river-table td[rowspan] {
    border-right: 2px solid rgba(100, 255, 218, 0.4) !important;
    background: rgba(100, 255, 218, 0.05) !important;
}
/* رنگ‌بندی متناوب برای گروه‌های نمادها */
.river-table tbody tr:nth-child(6n+1),
.river-table tbody tr:nth-child(6n+2),
.river-table tbody tr:nth-child(6n+3) {
    background: rgba(17, 34, 64, 0.4);
}
.river-table tbody tr:nth-child(6n+4),
.river-table tbody tr:nth-child(6n+5),
.river-table tbody tr:nth-child(6n+6) {
    background: rgba(17, 34, 64, 0.6);
}
/* هایلایت کردن ردیف‌های هر نماد موقع هاور */
.river-table tbody tr:hover {
    background: rgba(100, 255, 218, 0.08) !important;
}
.river-table tbody tr:nth-child(3n-2):hover,
.river-table tbody tr:nth-child(3n-1):hover,
.river-table tbody tr:nth-child(3n):hover {
    background: rgba(100, 255, 218, 0.12) !important;
}
/* خطوط راهنمای عمودی برای کمک به خوانایی */
.river-table th:nth-child(2),
.river-table td:nth-child(2) {
    border-left: 2px solid rgba(100, 255, 218, 0.25) !important;
}
.river-table th:nth-child(4),
.river-table td:nth-child(4) {
    border-left: 1px solid rgba(100, 255, 218, 0.15) !important;
}
/* استایل‌های خاص برای جدول Volume */
.river-table .positive {
    color: #4ade80;
    font-weight: 600;
}
.river-table .negative {
    color: #f87171;
    font-weight: 600;
}
/* استایل‌های انتخابگر تایم فریم */
.timeframe-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.timeframe-dropdown {
    position: relative;
    display: inline-block;
}
.timeframe-dropdown-btn {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #64ffda;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.timeframe-dropdown-btn:hover {
    background: rgba(100, 255, 218, 0.2);
}
.timeframe-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 6px;
    padding: 5px 0;
    min-width: 120px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.timeframe-dropdown-content.show {
    display: block;
}
.timeframe-dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: #ccd6f6;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}
.timeframe-dropdown-content a:hover {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
}
/* استایل برای سلول‌های تایم فریم */
.timeframe-cell {
    font-weight: 600;
    text-align: center;
    padding: 8px 6px;
    border-radius: 4px;
}
.timeframe-1 { 
    color: #64ffda; 
    background: rgba(100, 255, 218, 0.1) !important; 
}
.timeframe-2 { 
    color: #4ade80; 
    background: rgba(74, 222, 128, 0.1) !important; 
}
.timeframe-3 { 
    color: #fbbf24; 
    background: rgba(251, 191, 36, 0.1) !important; 
}
/* استایل‌های خاص برای مقادیر تایم فریم */
.timeframe-1-5 { 
    color: #64ffda !important; 
    background: rgba(100, 255, 218, 0.15) !important; 
}
.timeframe-d1 { 
    color: #4ade80 !important; 
    background: rgba(74, 222, 128, 0.15) !important; 
}
.timeframe-w1 { 
    color: #fbbf24 !important; 
    background: rgba(251, 191, 36, 0.15) !important; 
}
.timeframe-m1 { 
    color: #60a5fa !important; 
    background: rgba(96, 165, 250, 0.15) !important; 
}
/* بهبود استایل‌های وضعیت‌ها برای اعداد */
.status-buy, .status-sell, .status-neutral, .status-wait {
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
}
.status-buy {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1) !important;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.status-sell {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1) !important;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.status-neutral {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1) !important;
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.status-wait {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1) !important;
    border: 1px solid rgba(96, 165, 250, 0.3);
}
/* اسکرول بارهای زیبا */
.river-table-container::-webkit-scrollbar,
.table-container::-webkit-scrollbar,
.option-table-container::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.river-table-container::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track,
.option-table-container::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track {
    background: rgba(100, 255, 218, 0.1);
    border-radius: 4px;
}
.river-table-container::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb,
.option-table-container::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(100, 255, 218, 0.3);
    border-radius: 4px;
}
.river-table-container::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover,
.option-table-container::-webkit-scrollbar-thumb:hover,
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.5);
}
/* صفحات در حال توسعه */
.technical-info {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.info-card {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
    max-width: 500px;
    width: 100%;
}
.info-card h3 {
    color: #64ffda;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.info-card p {
    color: #ccd6f6;
    margin-bottom: 20px;
}
/* استایل‌های کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* محتوای اصلی — بدون اسکرول اضافی */
.main-content {
  margin-top: 0;
  height: auto;  /* ✅ اضافه کنید */
  overflow: visible; /* ✅ این خط مهم است */
}
/* استایل‌های تب‌های اختیار معامله - 10 تایی در یک ردیف */
.option-tabs {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    width: 100%;
}
.option-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 3px;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 45px;
    font-size: 0.65rem;
    word-wrap: break-word;
    overflow: hidden;
    line-height: 1.2;
    font-weight: bold;
}
.option-tab:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}
.option-tab.active {
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    border-color: #64ffda;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}
.option-tab i {
    font-size: 0.8rem;
    color: #64ffda;
}
.option-tab.active i {
    color: #0a192f;
}
.option-tab .fa-arrow-up,
.option-tab .fa-arrow-down,
.option-tab .fa-arrows-alt-h {
    font-size: 0.7rem;
    margin: 0 1px;
}
/* نوار نمادها */
.symbols-bar {
    display: none;
    margin-bottom: 10px;
    background: rgba(23, 42, 70, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 8px;
    overflow-x: auto;
}
.symbols-bar.active {
    display: block;
}
.symbols-container {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: max-content;
}
.symbol-item {
    padding: 6px 10px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 6px;
    color: #64ffda;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}
.symbol-item:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.2);
}
.symbol-item.active {
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    border-color: #64ffda;
    box-shadow: 0 2px 10px rgba(100, 255, 218, 0.4);
}
/* استایل‌های بخش زنجیره قرارداد */
.contract-chain-container {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    height: calc(100vh - 150px); /* ✅ جایگزین min-height + height */
    overflow-y: visible;
    margin-bottom: 20px;
}
.chain-layout {
    display: flex;
    gap: 8px;
    padding: 8px;
    height: 100%;
}
.main-content-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.scrollable-right-content {
  height: calc(100vh - 250px); /* این عدد را بر اساس نیاز خود تنظیم کنید */
    overflow-y: auto;
    padding: 0 0 20px 0;
    min-height: calc(100vh - 250px);
    scrollbar-width: thin;
    scrollbar-color: #64ffda rgba(100, 255, 218, 0.1);
}
/* اسکرول بار باریک‌تر و زیباتر */
.scrollable-right-content::-webkit-scrollbar {
    width: 8px;
}
.scrollable-right-content::-webkit-scrollbar-track {
    background: rgba(100, 255, 218, 0.1);
    border-radius: 4px;
}
.scrollable-right-content::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 4px;
}
.scrollable-right-content::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}
.sidebar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.expiry-selection {
    background: rgba(23, 42, 70, 0.9);
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    flex-shrink: 0;
}
.expiry-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 38px;
}
.expiry-label {
    color: #64ffda;
    font-weight: bold;
    font-size: 0.8rem;
}
.expiry-btn {
    padding: 4px 8px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 6px;
    color: #64ffda;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}
.expiry-btn:hover {
    background: rgba(100, 255, 218, 0.2);
}
.expiry-btn.active {
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    border-color: #64ffda;
}
.current-date {
    color: #ccd6f6;
    font-size: 0.75rem;
    margin-right: auto;
}
/* استایل‌های بخش اطلاعات نماد */
.symbol-info-bar {
    display: flex;
    flex-direction: column; /* ✅ */
    background: rgba(23, 42, 70, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 8px 12px; /* ✅ فاصله داخلی */
    flex-shrink: 0;
    margin: 0 2px;
    gap: 8px; /* ✅ فاصله بین بلوک‌ها */
}
.symbol-info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.symbol-section {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 20px;
}
.symbol-with-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.symbol-with-dropdown:hover {
    background: rgba(100, 255, 218, 0.1);
}
#symbolInfoLeft .symbol-name {
    color: #64ffda;
    font-size: 1rem;
    font-weight: bold;
}
.dropdown-arrow {
    color: #64ffda;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}
.symbol-with-dropdown:hover .dropdown-arrow {
    transform: translateY(-50%) translateX(2px);
}
.divider {
    width: 1px;
    height: 35px;
    background: rgba(100, 255, 218, 0.3);
}
/* بخش قیمت */
.price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 80px;
}
.price-label {
    color: #ccd6f6;
    font-size: 0.7rem;
    font-weight: 500;
}
.price-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 4px;
}
.price-value {
    font-size: 0.8rem;
    font-weight: normal;
    color: #ccd6f6;
}
.price-change {
    font-size: 0.65rem;
    font-weight: 600;
}
/* بخش حجم و ارزش */
.volume-section,
.value-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 80px;
}
.volume-label,
.value-label {
    color: #ccd6f6;
    font-size: 0.7rem;
    font-weight: 500;
}
.volume-value,
.value-value {
    font-size: 0.8rem;
    font-weight: normal;
    color: #ccd6f6;
}
/* رنگ‌های مثبت و منفی */
.positive {
    color: #4ade80;
}
.negative {
    color: #f87171;
}
/* استایل‌های منوی کشویی نماد - ارتفاع اصلاح شده */
.symbol-dropdown-menu {
    display: none;
    background: rgba(23, 42, 70, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 10px;
    padding: 10px;
    height: 320px;
    flex-shrink: 0;
    margin: 0 2px 8px 2px;
    max-height: 320px;
}
.symbol-dropdown-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* محتوای منوی کشویی */
.dropdown-content {
    display: flex;
    gap: 12px;
    height: 100%;
}
/* بخش جدول خرید و فروش */
.market-depth-section {
    flex: 2;
    background: rgba(17, 34, 64, 0.8);
    border-radius: 8px;
    padding: 6px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    flex-direction: column;
    margin: 0 1px;
    margin-top: -8px;
    height: auto;
    min-height: 180px;
}
.market-depth-container {
    height: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.market-depth-table {
    display: flex;
    gap: 2px;
    height: 100%;
    width: 100%;
}
/* خرید - سمت راست */
.buy-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* فروش - سمت چپ */
.sell-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.side-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 1px;
    border-radius: 4px;
    margin-bottom: 2px;
    font-weight: bold;
    font-size: 0.7rem;
    gap: 0;
}
.buy-header {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.sell-header {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.header-cell {
    text-align: center;
    font-weight: bold;
    font-size: 0.68rem;
    padding: 0 1px;
    white-space: nowrap;
    overflow: visible;
}
/* ستون‌ها با عرض‌های متفاوت */
.header-cell:nth-child(1),
.depth-cell:nth-child(1) {
    flex: 0.8;
    min-width: 50px;
}
.header-cell:nth-child(2),
.depth-cell:nth-child(2) {
    flex: 1.4;
    min-width: 90px;
}
.header-cell:nth-child(3),
.depth-cell:nth-child(3) {
    flex: 0.8;
    min-width: 50px;
}
.depth-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.depth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 0.68rem;
    transition: background-color 0.2s ease;
    height: 24px;
    gap: 0;
}
.depth-row:hover {
    background: rgba(255, 255, 255, 0.1);
}
.depth-cell {
    text-align: center;
    font-weight: 500;
    color: #ccd6f6;
    padding: 0 1px;
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}
.depth-count {
    color: #ccd6f6;
}
.depth-volume {
    color: #ccd6f6;
}
.depth-price {
    color: #ccd6f6;
}
/* بخش اطلاعات حقیقی/حقوقی */
.legal-real-info {
    margin-top: 2px;
    background: rgba(23, 42, 70, 0.8);
    border-radius: 6px;
    padding: 0px 6px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    height: auto;
    min-height: 60px;
    flex-shrink: 0;
}
.legal-real-tables {
    display: flex;
    flex-direction: column;
    gap: 0px;
    height: 100%;
}
.legal-real-table {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.legal-real-header {
    display: flex;
    justify-content: space-between;
    background: rgba(100, 255, 218, 0.1);
    padding: 3px 6px;
    border-radius: 3px;
    margin-bottom: 2px;
    font-size: 0.62rem;
    font-weight: bold;
    color: #64ffda;
    height: 20px;
    align-items: center;
}
.legal-real-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 6px;
    font-size: 0.6rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    min-height: 18px;
    align-items: center;
    height: 18px;
}
.legal-real-row:last-child {
    border-bottom: none;
}
.legal-real-label {
    color: #ccd6f6;
    font-weight: 500;
    flex: 1;
    text-align: right;
    font-size: 0.6rem;
}
.legal-real-values {
    display: flex;
    justify-content: space-between;
    flex: 2;
    gap: 8px;
}
.legal-real-value {
    color: #ccd6f6;
    font-weight: normal;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.6rem;
}
.legal-real-number {
    color: #ccd6f6;
    font-weight: normal;
    font-size: 0.6rem;
}
.legal-real-percent {
    color: #ccd6f6;
    font-size: 0.58rem;
    font-weight: normal;
}
/* بخش اطلاعات شرکت */
.company-info-section {
    flex: 3;
    background: rgba(17, 34, 64, 0.8);
    border-radius: 8px;
    padding: 6px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    flex-direction: column;
    margin: 0 1px;
    height: 100%;
    overflow: hidden;
}
.company-details-grid {
    display: flex;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}
.info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: space-between;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5px;    /* ✅ کاهش padding بالا و پایین */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    transition: background-color 0.2s ease;
    min-height: 22px;   /* ✅ کاهش ارتفاع حداقل */
    flex: 1;
}
.info-row:hover {
    background: rgba(255, 255, 255, 0.08);
}
.info-label {
    color: #ccd6f6;
    font-weight: normal;
    font-size: 0.68rem;
    flex: 1;
    text-align: right;
}
.info-value {
    color: #ccd6f6;
    font-weight: normal;
    font-size: 0.68rem;
    flex: 1;
    direction: ltr;
}
.company-info-section .info-label,
.company-info-section .info-value {
    font-size: 0.6rem;
}
.legal-real-table .info-label,
.legal-real-table .info-value {
    font-size: 0.6rem;
}
/* استایل‌های بخش اطلاعات موقعیت‌های باز */
.position-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(23, 42, 70, 0.9);
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 0;
    flex-wrap: nowrap;
    gap: 15px;
    height: 40px;
    flex: 1;
}
.table-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding: 0 5px;
    height: 40px;
    flex-shrink: 0;
}
.header-container {
    display: flex;
    justify-content: flex-end; /* ✅ تغییر اصلی */
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.position-info-call,
.position-info-put {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}
.position-info-call {
    justify-content: flex-start;
}
.position-info-put {
    justify-content: flex-end;
}
.position-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.position-label {
    color: #ccd6f6;
    font-size: 0.65rem;
    font-weight: normal;
}
.position-value {
    color: #64ffda;
    font-size: 0.65rem;
    font-weight: bold;
    direction: ltr;
    display: inline-block;
}
.options-chain-table-container::after {
    content: none;
}
.column-settings-btn {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 6px;
    color: #64ffda;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}
.column-settings-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-1px);
}
/* ساختار اصلی جدول - روش مطمئن */
.options-chain-table-wrapper {
    height: calc(100% - 40px);
    overflow: auto;
    border-radius: 6px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    flex-direction: column;
}
.options-chain-table {
    display: flex;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    flex: 1;
}
/* ستون‌های ثابت */
.option-column {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 90px;
}
.option-header {
    padding: 4px 3px;
    text-align: center;
    font-weight: bold;
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.call-header {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.strike-header {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.put-header {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.option-rows {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    overflow-y: hidden;
}
/* ردیف‌های ثابت */
.option-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    line-height: 28px;
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}
.option-row:hover {
    background: rgba(255, 255, 255, 0.08);
}
.call-column .option-row {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}
.strike-column .option-row {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}
.put-column .option-row {
    color: #f87171;
    background: rgba(248, 113, 113, 0.05);
}
.call-column .option-row:hover {
    background: rgba(59, 130, 246, 0.1);
}
.strike-column .option-row:hover {
    background: rgba(255, 215, 0, 0.1);
}
.put-column .option-row:hover {
    background: rgba(248, 113, 113, 0.1);
}
/* ستون‌های پویا */
.dynamic-columns {
    display: flex;
    overflow-x: auto;
    flex-shrink: 1;
    min-width: 0;
}
.dynamic-column {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 75px;
}
.dynamic-column-header {
    padding: 4px 3px;
    text-align: center;
    font-weight: bold;
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border-left: 1px solid rgba(100, 255, 218, 0.2);
    border-right: 1px solid rgba(100, 255, 218, 0.2);
}
.dynamic-rows {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    overflow-y: hidden;
}
/* ردیف‌های داینامیک */
.dynamic-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    line-height: 28px;
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}
.dynamic-row:hover {
    background: rgba(255, 255, 255, 0.08);
}
/* badge وضعیت */
.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    min-height: 20px;
    line-height: 20px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}
/* رنگ‌بندی وضعیت‌ها */
.status-badge.itm { background-color: #464741; color: #4af84a; }
.status-badge.otm { background-color: #363633; color: #f05743; }
.status-badge.atm { background-color: #152b5c; color: #898f89; }
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* اسکرول بار برای ستون‌های پویا */
.dynamic-columns::-webkit-scrollbar {
    height: 4px;
}
.dynamic-columns::-webkit-scrollbar-track {
    background: rgba(100, 255, 218, 0.05);
    border-radius: 2px;
}
.dynamic-columns::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 2px;
}
.dynamic-columns::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}
/* تضمین هم‌راستایی ردیف‌ها */
.options-chain-table {
    align-items: flex-start;
}
.option-rows,
.dynamic-rows {
    height: 100%;
}
.option-row,
.dynamic-row {
    flex-shrink: 0;
}
/* استایل‌های تب‌های محتوا */
.option-tab-content {
    display: none;
    min-height: calc(100vh - 160px);  /* ✅ حداقل ارتفاع */
    height: auto; /* ✅ ارتفاع خودکار */
    overflow: visible; /* ✅ اجازه دهد اسکرول ایجاد شود */
    padding-bottom: 50px;
}
.option-tab-content.active {
    display: block;
}
/* تب زنجیره قرارداد */
#contract-chain-tab {
   min-height: calc(100vh - 130px);
   height: auto;
}
/* سایر تب‌ها */
.option-tab-content:not(#contract-chain-tab) {
    height: auto; /* ✅ ارتفاع خودکار */
    flex-direction: column;
    min-height: 0; /* ✅ کلید اصلی برای اسکرول در flex */
    overflow: auto; /* ✅ اجازه دهد اسکرول ایجاد شود */
    padding: 10px;
}
.coming-soon {
    text-align: center;
    padding: 30px 15px;
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin: 15px 0;
    min-height: 300px;
}
.coming-soon i {
    color: #64ffda;
    margin-bottom: 10px;
    font-size: 1.8rem;
}
.coming-soon h3 {
    color: #64ffda;
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.coming-soon p {
    color: #ccd6f6;
    font-size: 0.9rem;
}
/* استایل‌های مودال تنظیمات ستون‌ها */
.column-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.column-settings-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background: rgba(17, 34, 64, 0.95);
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    background: rgba(10, 25, 47, 0.8);
}
.modal-header h3 {
    color: #64ffda;
    font-size: 1.2rem;
    font-weight: bold;
}
.close-modal {
    background: none;
    border: none;
    color: #64ffda;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}
.close-modal:hover {
    color: #f87171;
    transform: scale(1.1);
}
.modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}
.columns-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.column-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}
.column-item:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
}
.column-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.column-item label {
    color: #ccd6f6;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
}
.column-item.active {
    background: rgba(100, 255, 218, 0.15);
    border-color: #64ffda;
}
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    background: rgba(10, 25, 47, 0.8);
}
.btn-primary {
    background: #64ffda;
    color: #0a192f;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #00b894;
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}
/* استایل‌های ماشین حساب */
.calculator-section {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-top: 10px;
    min-height: 700px;
}
.calculator-title {
    color: #64ffda;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: bold;
}
.calculator-inputs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.input-group label {
    font-weight: bold;
    color: #ccd6f6;
    font-size: 1rem;
}
.input-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    width: 160px;
    background: rgba(10, 25, 47, 0.8);
    color: #ccd6f6;
}
.range-controls {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 20px;
}
.range-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.range-control label {
    font-weight: bold;
    color: #ccd6f6;
    font-size: 0.9rem;
}
.range-control input {
    width: 90px;
    padding: 8px 10px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px;
    background: rgba(10, 25, 47, 0.8);
    color: #ccd6f6;
    font-size: 0.9rem;
}
.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 15px;
    background: rgba(10, 25, 47, 0.8);
}
#optionsTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
#optionsTable th {
    background: rgba(17, 34, 64, 0.9);
    color: #64ffda;
    font-weight: 600;
    padding: 12px 8px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    font-size: 0.9rem;
}
#optionsTable td {
    padding: 10px 8px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    font-size: 0.9rem;
}
#optionsTable select, #optionsTable input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccd6f6;
    font-size: 0.9rem;
}
.add-row-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 25px;
    background: #64ffda;
    color: #0a192f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.add-row-btn:hover {
    background: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}
.calculate-button {
    display: block;
    margin: 20px auto;
    padding: 14px 35px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.calculate-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.chart-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
}
.chart-container h2 {
    color: #64ffda;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: bold;
}
.chart-wrapper {
    width: 100%;
    height: 400px;
    background: rgba(17, 34, 64, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 20px;
    position: relative;
}
.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}
.remove-row-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.remove-row-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}
#optionsTable tfoot td {
    background: rgba(10, 25, 47, 0.9);
    font-weight: bold;
    color: #64ffda;
}
#optionsTable .row-amount {
    font-weight: bold;
    color: #ccd6f6;
}
#totalAmount {
    color: #64ffda;
    font-size: 0.9rem;
}
.option-tab-content::-webkit-scrollbar {
    width: 6px;
}
.option-tab-content::-webkit-scrollbar-track {
    background: rgba(100, 255, 218, 0.1);
    border-radius: 3px;
}
.option-tab-content::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 3px;
}
.option-tab-content::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}
/* برای نمایش بهتر در صفحه‌های کوچک */
@media (max-width: 1200px) {
    .position-info-header {
        flex-direction: column;
        gap: 6px;
        height: auto;
    }
    .position-info-call,
    .position-info-put {
        justify-content: center;
        width: 100%;
    }  
    .position-item {
        justify-content: center;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .position-info-call,
    .position-info-put {
        flex-direction: column;
        gap: 4px;
    } 
    .position-item {
        justify-content: center;
        width: 100%;
    }
}
/* رسپانسیو */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        min-width: 1000px;
    }
    .option-tabs {
        grid-template-columns: repeat(8, 1fr);
    }
    .contract-chain-container {
        height: auto;
        max-height: none;
    }
    .chain-layout {
        flex-direction: column;
        height: auto;
        min-height: 800px;
    }
    .main-content-section,
    .sidebar-section {
        flex: none;
        height: 400px;
    }
    .symbol-info-container {
        gap: 12px;
    }
    .price-section,
    .volume-section,
    .value-section {
        min-width: 70px;
    }
}
@media (max-width: 992px) {
    .container {
        max-width: 900px;
        min-width: 800px;
    }
    .option-tabs {
        grid-template-columns: repeat(6, 1fr);
    }
    .symbol-info-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .divider {
        display: none;
    }
    .symbol-section,
    .price-section,
    .volume-section,
    .value-section {
        flex: 1;
    }
}
@media (max-width: 768px) {
    .container {
        max-width: 700px;
        min-width: 600px;
    }
    .option-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
    .expiry-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .current-date {
        margin-right: 0;
        text-align: center;
    }
    body {
        overflow: auto;
    }
    .main-content {
        overflow: visible;
        height: auto;
    }
    .option-tab-content {
        height: auto;
        overflow: visible;
    }
    #contract-chain-tab {
        overflow: visible;
        height: auto;
    }
    .contract-chain-container {
        height: auto;
    }
    .calculator-section {
        padding: 15px 10px;
    }
    .calculator-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .calculator-inputs {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }
    .input-group {
        justify-content: center;
    }
    .range-controls {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }
    .range-control {
        justify-content: center;
    }
    .add-row-btn,
    .calculate-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 15px auto;
    }
    .chart-wrapper {
        height: 300px;
        padding: 12px;
    }
    .chart-container h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    .symbol-info-bar {
        padding: 10px 12px;
    }
    .symbol-info-container {
        flex-direction: column;
        gap: 12px;
    }
    .symbol-section,
    .price-section,
    .volume-section,
    .value-section {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .price-label,
    .volume-label,
    .value-label {
        font-size: 0.8rem;
    }
    .price-value,
    .volume-value,
    .value-value {
        font-size: 0.9rem;
    }
}
@media (max-width: 576px) {
    .container {
        max-width: 500px;
        min-width: 400px;
    }
    .option-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .container {
        max-width: 400px;
        min-width: 350px;
    }
    .option-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .calculator-section {
        padding: 12px 8px;
    }
    .calculator-title {
        font-size: 1.1rem;
    }
    .input-group {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .input-group input[type="number"] {
        width: 100%;
        max-width: 180px;
    }
    .range-control {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .range-control input {
        width: 70px;
    }
    #optionsTable {
        font-size: 0.8rem;
    }
    #optionsTable th,
    #optionsTable td {
        padding: 6px 4px;
    }
    .chart-wrapper {
        height: 250px;
        padding: 8px;
    }
}
@media (max-width: 400px) {
    .container {
        max-width: 350px;
        min-width: 320px;
    }
    .option-tabs {
        grid-template-columns: 1fr;
    }
}
/* 🟩 استایل کلی پنل سمت چپ */
.sidebar-section {
    flex: 1; /* ✅ اینجا 1 است */
    display: flex;
    flex-direction: column;
    height: 100%; /* ✅ ارتفاع کامل */
    overflow: hidden; /* ✅ جلوگیری از اسکرول غیرمنتظره */
}
/* 🟩 پنل سمت چپ - کل ظرف */
.left-content {
    height: calc(100vh - 250px); /* این عدد را بر اساس نیاز خود تنظیم کنید */
    overflow-y: auto;
    padding: 0 0 20px 0;
    min-height: calc(100vh - 250px);
    scrollbar-width: thin;
    scrollbar-color: #64ffda rgba(100, 255, 218, 0.1);
}
/* 🔒 بخش ثابت بالا */
#symbolInfoLeft {
    flex-shrink: 0; /* ✅ جلوگیری از کوچک شدن */
    background: rgba(23, 42, 70, 0.9);
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 8px 12px;
    min-height: 60px; /* ✅ ارتفاع مناسب برای محتوای بالا */
    box-sizing: border-box;
    position: relative; /* ✅ برای موقعیت‌گذاری کادر جستجو */
}
/* 🟢 بخش قابل اسکرول */
.scrollable-details {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 10px 10px;
    min-height: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #64ffda rgba(100, 255, 218, 0.1);
}
/* استایل اسکرول در مرورگرهای WebKit (Chrome, Edge) */
.scrollable-details::-webkit-scrollbar {
    width: 8px;
}
.scrollable-details::-webkit-scrollbar-track {
    background: rgba(100, 255, 218, 0.1);
    border-radius: 4px;
}
.scrollable-details::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 4px;
}
.scrollable-details::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}
/* 🎯 استایل‌های داخلی بخش ثابت بالا */
.symbol-section-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(23, 42, 70, 0.9);
    border-radius: 8px;
    padding: 8px 12px;
    direction: rtl;
    position: relative;
}
/* 💰 قیمت */
.price-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-right: 6px;
}
/* 📈 درصد تغییر */
.price-change {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 15px;
}
.price-change.positive { color: #4ade80; }
.price-change.negative { color: #f87171; }
/* 🎫 نماد */
#selectedSymbolLeft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64ffda;
    background: rgba(10, 25, 47, 0.75);
    border: 1px solid rgba(100, 255, 218, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    min-width: 70px;
    margin-left: 70px;
}
/* 🔍 آیکون جستجو */
.search-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(100,255,218,0.3);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-left: 4px;
}
.search-btn:hover {
    background: rgba(100,255,218,0.25);
}
.search-btn i {
    color: #ffffff;
    font-size: 0.75rem;
}
/* ✅ کادر جستجو - موقعیت‌گذاری صحیح */
.symbol-search-box {
    position: absolute;
    top: 100%; /* ✅ زیر ایکون */
    right: 0; /* ✅ راست ایکون */
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: 0.2s ease;
    background: rgba(23, 42, 70, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    padding: 8px;
    z-index: 200;
    box-sizing: border-box;
    margin-top: 4px; /* فاصله کوچک از بالا */
}
.symbol-search-box.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.symbol-search-box input {
    width: 110px;
    border: 1px solid rgba(100, 255, 218, 0.4);
    border-radius: 6px;
    background: transparent;
    color: #64ffda;
    padding: 4px 8px;
    font-size: 0.9rem;
}
.symbol-search-box .search-submit {
    background: rgba(100, 255, 218, 0.25);
    border: none;
    border-radius: 6px;
    padding: 5px 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}
.symbol-search-box .search-submit:hover {
    background: rgba(100, 255, 218, 0.4);
}
/* 🎯 استایل بلوک جزئیات اختیار معامله در پنل چپ */
.option-details-box {
    background: rgba(23, 42, 70, 0.8);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 6px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    min-height: 40px; /* ✅ حداقل ارتفاع برای نمایش صحیح */
}
.full-name-value {
    color: #64ffda;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 4px;
    margin-bottom: 6px;
    direction: ltr;
}
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.price-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.price-label {
    color: #ccd6f6;
    font-size: 0.65rem;
    font-weight: 500;
}
.price-content {
    display: flex;
    align-items: center;
    gap: 3px;
}
.price-value {
    font-size: 0.75rem;
    font-weight: normal;
    color: #ccd6f6;
}
.price-change {
    font-size: 0.6rem;
    font-weight: 600;
}
/* 🎯 استایل بلوک اطلاعات حجم و ارزش */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 4px;
    gap: 6px;
}
.info-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-align: center;
    min-width: 70px;
}
.info-label {
    color: #ccd6f6;
    font-size: 0.6rem;
    font-weight: 500;
}
.info-value {
    color: #ccd6f6;
    font-size: 0.6rem;
    font-weight: 500;
}
/* 🎯 استایل بلوک تب‌ها */
.tabs-container {
    margin-top: 8px;
    background: rgba(23, 42, 70, 0.8);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}
.tab-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.tab-button {
    padding: 4px 10px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px;
    color: #64ffda;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}
.tab-button:hover {
    background: rgba(100, 255, 218, 0.2);
}
.tab-button.active {
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    border-color: #64ffda;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}
.tab-content {
    padding: 8px;
    background: rgba(10, 25, 47, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* 🎯 استایل کشویی‌ها - مستقل از هم */
.details-tab {
    position: relative;
    margin-bottom: 6px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(10, 25, 47, 0.8);
}
.details-tab + .details-tab {
    margin-top: 6px;
    border-top: 2px solid rgba(100, 255, 218, 0.1);
}
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    height: 24px;
    cursor: pointer;
    font-size: 0.65rem;
    color: #ccd6f6;
    background: rgba(100, 255, 218, 0.08);
    border-radius: 6px 6px 0 0;
    position: relative;
}
.tab-title {
    font-weight: 500;
    padding-right: 20px; /* ✅ فاصله از راست برای فلش */
}
.dropdown-arrow {
    color: #64ffda;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}
.details-tab.active .dropdown-arrow {
    transform: rotate(180deg);
}
.tab-body {
    display: none;
    padding: 6px;
}
.details-tab.active .tab-body {
    display: block;
}
/* 🎯 ردیف‌های داخل کشویی */
.accordion-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.accordion-row:last-child {
    border-bottom: none;
}
.label {
    color: #ccd6f6;
    font-size: 0.65rem;
    font-weight: 500;
}
.value {
    color: #ccd6f6;
    font-size: 0.75rem;
    font-weight: normal;
    text-align: right;
}
/* 🎯 گرید معاملات حقیقی/حقوقی */
.accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 0;
}
.grid-cell {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 6px;
    text-align: center;
}
.cell-label {
    color: #ccd6f6;
    font-size: 0.65rem;
    font-weight: 500;
    margin-bottom: 3px;
}
.cell-value {
    color: #ccd6f6;
    font-size: 0.75rem;
    font-weight: normal;
}
/* 🟦 جدول خرید و فروش در پنل چپ */
.market-depth-table-left {
    display: flex;
    gap: 2px;
    height: 100%;
    width: 100%;
}
/* خرید - سمت راست */
.buy-side-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* فروش - سمت چپ */
.sell-side-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* هدر خرید */
.buy-header {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
/* هدر فروش */
.sell-header {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
/* ستون‌های هدر */
.header-cell {
    text-align: center;
    font-weight: bold;
    font-size: 0.68rem;
    padding: 0 1px;
    white-space: nowrap;
    overflow: visible;
}
/* ردیف‌های جدول */
.depth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 0.68rem;
    transition: background-color 0.2s ease;
    height: 24px;
    gap: 0;
}
.depth-row:hover {
    background: rgba(255, 255, 255, 0.1);
}
/* سلول‌های جدول */
.depth-cell {
    text-align: center;
    font-weight: 500;
    color: #ccd6f6;
    padding: 0 1px;
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}
/* رنگ‌های خرید و فروش */
.buy-side-left .depth-cell {
    color: #3b82f6;
}
.sell-side-left .depth-cell {
    color: #f87171;
}
/*  بخش اطلاعات بازار - پنل سمت چپ*/
#market-info-tab .tab-body {
    padding: 0;
    margin: 0;
}
.info-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.info-cell-grid {
    background-color: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(74, 127, 168, 0.2);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    color: #ffffff;
}
.info-label-grid {
    font-size: 12px;
    font-weight: 600;
    color: #cfd8dc;
    margin-bottom: 4px;
    display: block;
}
.info-value-grid {
    font-size: 14px;
    /* بدون بولد */
    color: #ffffff;
    line-height: 1.4;
    font-family: 'Vazir', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
    text-align: right;
    unicode-bidi: embed;
    font-feature-settings: "lnum";
}
.info-value-grid:empty::before {
    content: '—';
    color: #9ea7b0;
}
/* ظرف اصلی جدول استراتژی‌ها */
.strategy-table-container {
  background: rgba(17, 34, 64, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  margin: 0px 0;
  min-height: calc(100vh - 130px);  /* ✅ min-height به جای height */
  height: auto;     
  display: flex;
  flex-direction: column;
  padding: 0 px; /* ✅ padding را به ظرف اصلی منتقل کنید */
}
/* فضای بالای جدول برای فیلتر آینده */
.table-header-space {
display: none; /* یا کلاً از HTML حذف شود */}
.strategy-table-scroll { /* بخش اسکرول جدول */
    flex: 1;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    background: rgba(10, 25, 47, 0.8);  
    position: relative;
    max-height: none;  /* ✅ حذف محدودیت ارتفاع */
}
/* جدول استراتژی */
.strategy-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  direction: rtl;
  min-height: 100%;
}
.strategy-data-table th,
.strategy-data-table td {
  padding: 4px 4px;
  text-align: center;
  border: 1px solid rgba(100, 255, 218, 0.2);
  color: #ccd6f6;
}
.strategy-data-table th {
  background: rgba(23, 42, 70, 0.9);
  color: #64ffda;
  font-weight: bold;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
/* افزایش عرض ستون "نام استراتژی" */
.strategy-data-table th:nth-child(3),
.strategy-data-table td:nth-child(3) {
    min-width: 150px;
    width: 150px;
    white-space: normal !important;
}
/* افزایش عرض ستون "نوع قیمت" */
.strategy-data-table th:nth-child(2),
.strategy-data-table td:nth-child(2) {
    min-width: 100px;
    width: 100px;
    white-space: nowrap;
}
.strategy-data-table tbody tr:hover {
  background: rgba(100, 255, 218, 0.08);
}
/* دکمه "اضافه به لیست" */
.add-to-list-btn {
  background: rgba(100, 255, 218, 0.2);
  color: #64ffda;
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.add-to-list-btn:hover {
  background: rgba(100, 255, 218, 0.3);
  transform: scale(1.05);
}
/* استایل برای نام استراتژی */
.strategy-name {
  display: inline-block;
  margin-right: 5px;
}
/* استایل ایکون علامت سوال */
.info-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #64ffda;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 14px;
  color: #64ffda;
  cursor: help;
  position: relative;
  transition: all 0.2s ease;
}
.info-icon:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: scale(1.1);
}
/* Tooltip برای ایکون علامت سوال - نسخه اصلاح شده */
.info-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 34, 64, 0.9);
    color: #ccd6f6;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    white-space: pre-line; /* ✅ حفظ خطوط جدید */
    word-wrap: break-word; /* ✅ شکستن کلمات طولانی */
    z-index: 1000;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    min-width: 200px; /* ✅ حداقل عرض برای جلوگیری از شکستن خطوط */
    max-width: 300px; /* ✅ حداکثر عرض برای جلوگیری از گسترش بیش از حد */
    text-align: right; /* ✅ همراه با direction: rtl */
    line-height: 1.4; /* ✅ فاصله بین خطوط */
}
/* افزایش عرض ستون "روش اجرا" در تب استراتژی‌های نزولی/رنج */
#bearish-range-strategies-tab .strategy-data-table th:nth-child(4),
#bearish-range-strategies-tab .strategy-data-table td:nth-child(4) {
    min-width: 220px;
    width: 220px;
    white-space: normal !important;
}
/* ==============================
/* اصلاح کامل CSS برای کشویی سهام پایه */
.base-symbol-dropdown {
    position: absolute;
    top: 100%; /* قرار دادن کشویی زیر آیکون */
    left: 0;
    z-index: 1000; /* افزایش z-index برای نمایش در بالای سایر المان‌ها */
    background-color: #0f172a;
    border: 1px solid #64ffda;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    padding: 1px 0; /* حذف فضای اضافی */
}
.base-symbol-dropdown .dropdown-option {
    display: flex;
    align-items: center;
    padding: 1px 2px; /* تنظیم فضای داخلی برای نمایش کامل نام سهام */
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap; /* جلوگیری از شکستن نام سهام */
}
.base-symbol-dropdown .dropdown-option:hover {
    background-color: #1e293b;
}
.base-symbol-dropdown .dropdown-option input[type="checkbox"] {
    margin-left: 1px; /* فاصله بین چک‌باکس و نام سهم */
    transform: scale(1); /* اگر می‌خواهید چک‌باکس بزرگتر باشد */
}
.base-symbol-dropdown .dropdown-option label {  /* ✅ اصلاح: نام سهم را به سمت چپ ببرید تا فضای خالی حذف شود */
    flex-grow: 1; /* این خط باعث می‌شود نام سهم تمام فضای باقی‌مانده را اشغال کند */
    direction: ltr;
    unicode-bidi: plaintext;
}
/* ✅ اصلاح: تنظیم عرض اسکرول */
.base-symbol-dropdown::-webkit-scrollbar {
    width: 1px; /* عرض اسکرول - همانند تب زنجیره قرارداد */
}
.base-symbol-dropdown::-webkit-scrollbar-thumb {
    background-color: #64ffda;
    border-radius: 1px;
}
.base-symbol-dropdown::-webkit-scrollbar-track {
    background-color: #0f172a;
    border-radius: 2px;
}
/* ✅ استایل صحیح بر اساس تب نزولی/رنج */
#bullish-strategies-tab .strategy-data-table td:nth-child(4),
#bearish-strategies-tab .strategy-data-table td:nth-child(4),
#range-strategies-tab .strategy-data-table td:nth-child(4),
#bullish-bearish-strategies-tab .strategy-data-table td:nth-child(4),
#bullish-range-strategies-tab .strategy-data-table td:nth-child(4),
#bearish-range-strategies-tab .strategy-data-table td:nth-child(4) {
    min-width: 200px;
    width: 220px;
    white-space: normal !important;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.6;
}
/* افزایش عرض ستون اول (سهام پایه) در تمام جدول‌های استراتژی */
.strategy-data-table th:nth-child(1),
.strategy-data-table td:nth-child(1) {
    min-width: 120px; /* مقدار اولیه — می‌توانید تغییر دهید */
    width: 120px;     /* عرض ثابت */
    white-space: nowrap;
    text-align: center;
}
/* ایجاد کلاس جدید */
.execution-text {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.6;
}
/* ✅ نمایش صحیح "روش اجرا" — هر دستور در یک خط */
#bullish-strategies-tab .strategy-data-table td:nth-child(4) {
    white-space: pre-line !important;
    text-align: center;
    line-height: 1.6;
    font-size: 0.75rem;
    word-wrap: break-word;
}
/* آیکون مرتب‌سازی */
.sort-arrow {
    margin-right: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}
.sortable:hover .sort-arrow,
.sorted .sort-arrow {
    opacity: 1;
}
#my-list-tab {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}
/* 🟩 اصلاح ستون "روش اجرا" در تب "لیست" */
#my-list-tab .strategy-data-table td:nth-child(4) {
    white-space: pre-line !important;
    text-align: center;
    line-height: 1.6;
    font-size: 0.75rem;
    word-wrap: break-word;
    min-width: 200px;
    width: 220px;
    padding: 5px 8px;
}
/* فوتر */
.footer {
    background: rgba(10, 25, 47, 0.95);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    margin-top: 50px;
    padding: 40px 0;
}
.about-section {
    text-align: center;
}
.about-title {
    color: #64ffda;
    margin-bottom: 20px;
    font-size: 2rem;
}
.address p {
    color: #8892b0;
    margin-bottom: 10px;
}
/* رسپانسیو */
@media (max-width: 1200px) {
    .option-tabs {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}
@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .slide-content h2 {
        font-size: 2.5rem;
    }
    .slide-content p {
        font-size: 1.2rem;
    }
    .option-tabs {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .calculator-inputs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    .user-panel {
        margin-bottom: 15px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .main-content {
        margin-top: 120px;
    }
    .slide-content h2 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .system-grid {
        grid-template-columns: 1fr;
    }
    .option-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .technical-table, .option-table, #optionsTable {
        font-size: 0.8rem;
    }
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .range-controls {
        flex-direction: column;
        gap: 15px;
    }
    .table-container,
    .river-table-container,
    .option-table-container,
    .table-wrapper {
        max-height: 50vh;
    }
    .timeframe-header {
        flex-direction: column;
        gap: 5px;
    }
    .river-table {
        font-size: 0.7rem;
    }
    .timeframe-dropdown-content {
        min-width: 100px;
    }
    .timeframe-dropdown-content a {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
}
@media (max-width: 576px) {
    .option-tabs {
        grid-template-columns: 1fr;
    }
    .option-tab {
        min-height: 80px;
        padding: 15px 10px;
    }
    .page-title {
        font-size: 2rem;
    }
    .calculator-title {
        font-size: 1.5rem;
    }
    .slide-content h2 {
        font-size: 1.5rem;
    }
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    .nav-item {
        width: 100%;
        text-align: center;
    }
    .nav-link {
        justify-content: center;
    }
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    .input-group input[type="number"] {
        width: 100%;
    }
    .table-container,
    .river-table-container,
    .option-table-container,
    .table-wrapper {
        max-height: 40vh;
    }
}
/* بخش محصولات */
.products-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}
.product-card {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    direction: rtl; /* راست چین کردن محتوا */
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(100, 255, 218, 0.2);
}
.product-header h2 {
    color: #64ffda;
    font-size: 1.5rem;
    margin: 0;
}
.product-header i {
    color: #64ffda;
    font-size: 1.5rem;
}
.product-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.product-features {
    flex: 2;
    min-width: 300px;
    text-align: right; /* راست چین کردن متن */
}
.product-features p {
    color: #ccd6f6;
    margin-bottom: 15px;
    font-weight: bold;
}
.product-features ul {
    list-style-type: none;
    padding-right: 20px; /* فاصله از راست */
    margin: 0;
}
.product-features li {
    color: #8892b0;
    margin: 5px 0;
    position: relative;
    padding-right: 20px; /* فاصله از راست برای نشانگر */
}
.product-plans {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-self: flex-start; /* قرارگیری در بالای ستون */
}
.plan-option {
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
    font-weight: bold;
}
.plan-option:hover {
    transform: scale(1.02);
}
.plan-option span {
    display: block;
    margin: 5px 0;
}
/* رسپانسیو برای محصولات */
@media (max-width: 768px) {
    .products-section {
        gap: 20px;
    }
    .product-card {
        padding: 20px;
    }
    .product-content {
        flex-direction: column;
    }
    .product-features {
        flex: 1;
    }
    .product-plans {
        flex: 1;
    }
}
/* استایل‌های سبد خرید */
.cart-section {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-top: 20px;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(10, 25, 47, 0.95);
    margin-bottom: 20px;
}
.cart-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
}
.cart-table th {
    background: rgba(10, 25, 47, 0.95) !important;
    color: #64ffda;
    font-weight: 600;
    padding: 15px 10px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.cart-table td {
    padding: 12px 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    background: rgba(255, 255, 255, 0.03);
}
.cart-summary {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.cart-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}
.cart-summary-item:last-child {
    border-bottom: none;
}
.cart-summary-item span:first-child {
    font-weight: bold;
    color: #ccd6f6;
}
.cart-summary-item span:last-child {
    color: #64ffda;
    font-weight: bold;
}
.checkout-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 15px 35px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}
.checkout-btn:hover {
    transform: translateY(-2px);
}
.remove-item-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}
.remove-item-btn:hover {
    transform: translateY(-1px);
}
/* استایل‌های بنر */
.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%; /* اطمینان از پوشش کامل عرض */

}
.banner {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    max-width: 250px;
    width: 100%;
    text-align: center;
    margin-top: 10px; /* فاصله از محتوای قبلی */
}
.banner-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}
html {
    overflow-x: hidden;
}
/* ═══════════════════════════════════════════════════════════ */
/*  استایل عنوان و توضیحات صفحات احراز هویت                    */
/*  (ورود، ثبت‌نام، بازیابی رمز)                               */
/* ═══════════════════════════════════════════════════════════ */

/* --- عنوان اصلی (خوش آمدید! / بازیابی رمز عبور) --- */
#login-page .page-title,
#signup-page .page-title,
#forgot-password-page .page-title {
    color: #64ffda;
    text-align: right;
    font-size: 2rem;
    margin-bottom: 10px;
    padding-top: 20px;
    /* هم‌تراز با فرم: عرض فرم = max-width: 400px */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* --- متن توضیحی زیر عنوان --- */
#login-page .page-subtitle,
#signup-page .page-subtitle,
#forgot-password-page .page-subtitle {
    color: #8892b0;
    text-align: right;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.8;
    /* هم‌تراز با فرم */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
#signup-page input[type="text"],
#signup-page input[type="tel"] {
    width: 100%;
    padding: 10px;
    background: rgba(10, 25, 47, 0.9);
    color: #ccd6f6;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
#signup-page input[type="text"]:focus,
#signup-page input[type="tel"]:focus {
    border-color: #64ffda;
    outline: none;
}
#signup-page input[type="checkbox"] {
    accent-color: #64ffda;
}
#signup-page button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #64ffda, #00b894);
    color: #0a192f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}
#signup-page button:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #00b894, #64ffda);
}
#signup-page button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
#signup-page a {
    color: #64ffda;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}
#signup-page a:hover {
    color: #00b894;
}
#signup-page .container {
    padding: 60px 20px;
}
/* استایل کد تایید */
#verificationCode {
    text-align: center;
    letter-spacing: 10px;
}
/* استایل برای راست چین کردن متن در فرم */
#signup-page label {
    direction: rtl;
    text-align: right;
}
#signup-page input[type="text"],
#signup-page input[type="tel"],
#signup-page input[type="text"]::placeholder,
#signup-page input[type="tel"]::placeholder {
    direction: rtl;
    text-align: right;
}
/* مودال سفارشی برای قوانین */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
}
.modal-dialog {
  max-width: 600px;
  margin: 50px auto;
}
.modal-content {
  border-radius: 12px;
  overflow: hidden;
}
.modal-header,
.modal-footer {
  padding: 15px 20px;
}
.modal-body {
  padding: 20px;
}
.btn-close {
  color: #64ffda;
  opacity: 1;
  font-size: 1.2rem;
}
.btn {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
#termsModal .btn {
  background: #64ffda;
  color: #0a192f;
}
#termsModal .btn:hover {
  background: #00b894;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#login-page input[type="text"],
#login-page input[type="tel"],
#login-page input[type="password"] {
  width: 100%;
  padding: 10px;
  background: rgba(10, 25, 47, 0.9);
  color: #ccd6f6;
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
#login-page input[type="text"]:focus,
#login-page input[type="tel"]:focus,
#login-page input[type="password"]:focus {
  border-color: #64ffda;
  outline: none;
}
#login-page input[type="checkbox"] {
  accent-color: #64ffda;
}
#login-page button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #64ffda, #00b894);
  color: #0a192f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}
#login-page button:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #00b894, #64ffda);
}
#login-page button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
#login-page a {
  color: #64ffda;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

#login-page a:hover {
  color: #00b894;
}
#login-page .container {
  padding: 60px 20px;
}
/* استایل برای راست چین کردن متن در فرم */
#login-page label {
  direction: rtl;
  text-align: right;
}
#login-page input[type="text"],
#login-page input[type="tel"],
#login-page input[type="password"],
#login-page input[type="text"]::placeholder,
#login-page input[type="tel"]::placeholder,
#login-page input[type="password"]::placeholder {
  direction: rtl;
  text-align: right;
}
/* استایل برای آیکون نمایش/مخفی کردن رمز عبور */
#togglePassword {
  cursor: pointer;
  color: #64ffda;
  font-size: 1rem;
}
#togglePassword:hover {
  color: #00b894;
}
.percent {
  margin-right: 6px;
  font-size: 0.9em;
}
.percent.positive {
  color: #2ecc71;
}
.percent.negative {
  color: #e74c3c;
}
.price-change.positive {
  color: #2ecc71;
}
.price-change.negative {
  color: #e74c3c;
}


/* ==================================================
   STEP 1 — SCROLL CONTRACT (ABSOLUTE)
   ================================================== */

/* ✅ قانون پایه: body همیشه سالم */
html, body {
  height: auto !important;
  min-height: 100%;
  overflow-y: auto !important;
  overflow-x: visible; /* ✅ اجازه بده کشویی بیرون بره */
}

/* ✅ صفحات SPA */
.page {
  height: auto !important;
  min-height: calc(100vh - 70px);
  overflow: visible !important;
}

/* ==================== Dashboard Styles ==================== */

.dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1f36 0%, #0f1419 100%);
  padding: 0;
  position: relative;
}

/* نوار بالا */
.dashboard-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-to-home-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.back-to-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.dashboard-user-info {
  color: #64ffda;
  font-size: 1rem;
  font-weight: 500;
}

/* Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.dashboard-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #a8b2d1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
}

.menu-item:hover {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
  color: #64ffda;
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.menu-icon {
  font-size: 1.3rem;
}

.menu-text {
  font-weight: 500;
}

/* Main Content */
.dashboard-main {
  padding: 2rem;
  overflow-y: auto;
}

.dashboard-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.dashboard-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  color: #64ffda;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(100, 255, 218, 0.3);
  padding-bottom: 0.5rem;
}

.subsection-title {
  color: #a8b2d1;
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}

/* User Info Card */
.user-info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #a8b2d1;
  font-size: 0.95rem;
  font-weight: 500;
}

.info-value {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}

/* Active Products Table */
.active-products-table {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.active-products-table table {
  width: 100%;
  border-collapse: collapse;
}

.active-products-table thead {
  background: rgba(100, 255, 218, 0.1);
}

.active-products-table th {
  padding: 1rem;
  text-align: right;
  color: #64ffda;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.active-products-table td {
  padding: 1rem;
  text-align: right;
  color: #a8b2d1;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.active-products-table tbody tr:hover {
  background: rgba(100, 255, 218, 0.05);
}

.renew-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.renew-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
  }
  
  .dashboard-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 1rem;
  }
  
  .menu-text {
    display: none;
  }
  
  .menu-item {
    padding: 1rem;
    min-width: 60px;
    justify-content: center;
  }
}
/* ═══════════════════════════════════════════════════════
   فراموشی رمز عبور — Forgot Password Styles
   هماهنگ با تم سبز-تیره سایت
═══════════════════════════════════════════════════════ */

/* --- Container اصلی --- */
#forgot-password-page .container {
  padding: 60px 20px;
}
/* --- کارت فرم --- */
.forgot-form-card {
  background: rgba(17, 34, 64, 0.8);
  border-radius: 15px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

/* --- لوگو wrapper --- */
.forgot-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- لیبل‌ها --- */
.forgot-label {
  display: block;
  color: #ccd6f6;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* --- ورودی‌ها --- */
.forgot-input {
  width: 100%;
  padding: 10px;
  background: rgba(10, 25, 47, 0.9);
  color: #ccd6f6;
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.forgot-input:focus {
  border-color: #64ffda;
  outline: none;
}

.forgot-input::placeholder {
  color: #556;
}

/* --- Wrapper برای input + toggle --- */
.forgot-input-wrapper {
  position: relative;
}

.forgot-input-password {
  padding-left: 40px;
}

/* --- Toggle رمز عبور --- */
.forgot-toggle-pass {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64ffda;
  font-size: 1rem;
  user-select: none;
  transition: opacity 0.2s;
}

.forgot-toggle-pass:hover {
  opacity: 0.7;
}

/* --- دکمه اصلی --- */
.forgot-btn-primary {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #64ffda, #00b894);
  color: #0a192f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.forgot-btn-primary:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #00b894, #64ffda);
}

.forgot-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- باکس خطا --- */
.forgot-error-box {
  display: none;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 10px;
  margin-top: 12px;
  color: #ff6b6b;
  font-size: 0.85rem;
  text-align: center;
}

/* --- لینک‌ها --- */
.forgot-link {
  color: #64ffda;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #00b894;
}

/* --- لینک برگشت --- */
.forgot-back-link {
  color: #64ffda;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s;
}

.forgot-back-link:hover {
  opacity: 0.8;
}

.forgot-back-badge {
  background: rgba(100, 255, 218, 0.15);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* --- برگشت غیرفعال (وقتی تایمر فعاله) --- */
.forgot-back-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.forgot-back-enabled {
  pointer-events: auto;
  opacity: 1;
}

/* --- OTP Container --- */
.forgot-otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
  direction: ltr;
}

/* --- OTP Digit Inputs --- */
.forgot-otp-digit {
  width: 44px;
  height: 48px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  background: rgba(10, 25, 47, 0.9);
  border: 2px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.forgot-otp-digit:focus {
  border-color: #64ffda;
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15);
}

/* --- تایمر OTP --- */
.forgot-timer {
  text-align: center;
  color: #8892b0;
  font-size: 0.9rem;
  margin-bottom: 15px;
  direction: ltr;
  font-weight: bold;
}

.forgot-timer.expired {
  color: #ff6b6b !important;
  font-weight: bold;
}

/* --- بررسی قدرت رمز --- */
.forgot-pass-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 15px 0;
  font-size: 0.85rem;
  color: #8892b0;
  transition: color 0.3s;
}

.forgot-pass-check.valid {
  color: #64ffda !important;
}

.forgot-pass-check.valid #forgotCheckIcon {
  color: #64ffda;
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 768px) {
  #forgot-password-page .container > div:first-child {
    flex-direction: column-reverse !important;
    gap: 20px !important;
  }

  .forgot-form-card {
    max-width: 100%;
  }

  .forgot-logo-wrapper {
    display: none;
  }

  .forgot-otp-digit {
    width: 38px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
  }
}
/* ═══════════════════════════════════════════════════════════
   مودال محدودیت دسترسی — فاز ۳
   ═══════════════════════════════════════════════════════════ */

.access-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}

.access-modal-overlay.active {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(8px);
}

.access-modal-container {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 35px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8) translateY(30px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(59, 130, 246, 0.1);
  direction: rtl;
}

.access-modal-overlay.active .access-modal-container {
  transform: scale(1) translateY(0);
}

/* دکمه بستن */
.access-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #999;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.access-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}

/* آیکون‌ها */
.access-modal-icon {
  margin: 0 auto 20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 2s ease-in-out infinite;
}

.access-modal-icon.login-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
  color: #3b82f6;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.access-modal-icon.subscription-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.15));
  color: #f59e0b;
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.access-modal-icon.error-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* عنوان */
.access-modal-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Vazirmatn', sans-serif;
}

/* پیام */
.access-modal-message {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
  font-family: 'Vazirmatn', sans-serif;
}

/* اطلاعات اضافی */
.access-modal-extra {
  color: #60a5fa;
  font-size: 13px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  margin: 12px 0;
  font-family: 'Vazirmatn', sans-serif;
}

/* دکمه‌ها */
.access-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.access-modal-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'Vazirmatn', sans-serif;
  flex: 1;
  max-width: 180px;
}

.access-modal-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.access-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.access-modal-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.access-modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ─── ریسپانسیو ─── */
@media (max-width: 480px) {
  .access-modal-container {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .access-modal-buttons {
    flex-direction: column;
  }

  .access-modal-btn {
    max-width: 100%;
  }

  .access-modal-icon {
    width: 70px;
    height: 70px;
  }

  .access-modal-icon svg {
    width: 48px;
    height: 48px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   🎫 سیستم پشتیبانی — Support System
   ═══════════════════════════════════════════════════════════════ */

/* ── تب‌های پشتیبانی ── */
.support-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #2a2a3e;
  padding-bottom: 0;
}

.support-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-tab:hover {
  color: #c9a84c;
}

.support-tab.active {
  color: #c9a84c;
  border-bottom-color: #c9a84c;
}

.support-tab-icon {
  font-size: 16px;
}

/* ── محتوای تب ── */
.support-tab-content {
  display: none;
}

.support-tab-content.active {
  display: block;
  animation: fadeInSupport 0.3s ease;
}

@keyframes fadeInSupport {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── کارت‌های آمار ── */
.support-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.support-stat-card {
  background: #1e1e2f;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #2a2a3e;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.support-stat-card:hover {
  transform: translateY(-2px);
}

.support-stat-card .stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.support-stat-card .stat-label {
  display: block;
  font-size: 12px;
  color: #888;
}

.stat-total .stat-number { color: #c9a84c; }
.stat-total { border-color: rgba(201, 168, 76, 0.3); }

.stat-waiting .stat-number { color: #f0ad4e; }
.stat-waiting { border-color: rgba(240, 173, 78, 0.3); }

.stat-answered .stat-number { color: #5cb85c; }
.stat-answered { border-color: rgba(92, 184, 92, 0.3); }

.stat-closed .stat-number { color: #999; }
.stat-closed { border-color: rgba(153, 153, 153, 0.3); }

/* ── جدول تیکت‌ها ── */
.tickets-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #2a2a3e;
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tickets-table thead {
  background: #1a1a2e;
}

.tickets-table th {
  padding: 14px 16px;
  text-align: right;
  color: #c9a84c;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid #2a2a3e;
  white-space: nowrap;
}

.tickets-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #1e1e30;
  color: #ccc;
  vertical-align: middle;
}

.tickets-table tbody tr {
  transition: background 0.2s ease;
}

.tickets-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.05);
}

.ticket-id-cell {
  font-weight: 600;
  color: #c9a84c;
  font-family: monospace;
  white-space: nowrap;
}

.ticket-subject-cell {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-date-cell {
  font-size: 12px;
  color: #888;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 40px 20px !important;
  color: #666;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-hint {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

/* ── بج وضعیت ── */
.ticket-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-waiting {
  background: rgba(240, 173, 78, 0.15);
  color: #f0ad4e;
  border: 1px solid rgba(240, 173, 78, 0.3);
}

.badge-answered {
  background: rgba(92, 184, 92, 0.15);
  color: #5cb85c;
  border: 1px solid rgba(92, 184, 92, 0.3);
}

.badge-closed {
  background: rgba(153, 153, 153, 0.15);
  color: #999;
  border: 1px solid rgba(153, 153, 153, 0.3);
}

/* ── دکمه مشاهده ── */
.view-ticket-btn {
  padding: 6px 16px;
  background: linear-gradient(135deg, #c9a84c, #b8963f);
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-ticket-btn:hover {
  background: linear-gradient(135deg, #d4b85c, #c9a84c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

/* ── فرم تیکت جدید ── */
.new-ticket-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: #1e1e2f;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #2a2a3e;
}

.form-title {
  color: #c9a84c;
  font-size: 18px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a3e;
}

.new-ticket-form .form-group {
  margin-bottom: 20px;
  position: relative;
}

.new-ticket-form label {
  display: block;
  color: #ccc;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.new-ticket-form .required {
  color: #e74c3c;
}

.new-ticket-form input[type="text"],
.new-ticket-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #161625;
  border: 1px solid #2a2a3e;
  border-radius: 10px;
  color: #eee;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.new-ticket-form input[type="text"]:focus,
.new-ticket-form textarea:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.new-ticket-form textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  display: block;
  text-align: left;
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  direction: ltr;
}

.submit-ticket-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c9a84c, #b8963f);
  color: #1a1a2e;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.submit-ticket-btn:hover {
  background: linear-gradient(135deg, #d4b85c, #c9a84c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

.submit-ticket-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── مودال جزئیات تیکت ── */
.ticket-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.ticket-modal {
  background: #1e1e2f;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2a3e;
  overflow: hidden;
}

.ticket-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #2a2a3e;
  background: #1a1a2e;
}

.ticket-modal-header h3 {
  color: #c9a84c;
  font-size: 16px;
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 0 0 0 16px;
  transition: color 0.2s;
  line-height: 1;
}

.ticket-modal-close:hover {
  color: #e74c3c;
}

.ticket-modal-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 24px;
  background: #161625;
  font-size: 12px;
  color: #888;
  flex-wrap: wrap;
}

.ticket-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ── پیام اولیه ── */
.ticket-original-message {
  background: #161625;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border-right: 4px solid #c9a84c;
}

.message-label {
  font-size: 12px;
  color: #c9a84c;
  font-weight: 600;
  margin-bottom: 8px;
}

.message-content {
  color: #ddd;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── پاسخ‌ها ── */
.ticket-replies-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-reply {
  border-radius: 12px;
  padding: 14px 16px;
}

.reply-user {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-right: 4px solid #c9a84c;
}

.reply-admin {
  background: rgba(92, 184, 92, 0.08);
  border: 1px solid rgba(92, 184, 92, 0.2);
  border-right: 4px solid #5cb85c;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.reply-sender {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
}

.reply-date {
  font-size: 11px;
  color: #666;
  direction: ltr;
}

.reply-body {
  font-size: 14px;
  color: #ddd;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.no-replies {
  text-align: center;
  color: #555;
  padding: 20px;
  font-size: 13px;
}

/* ── بخش ارسال پاسخ ── */
.ticket-reply-section {
  padding: 20px 24px;
  border-top: 1px solid #2a2a3e;
  background: #1a1a2e;
}

.ticket-reply-section h4 {
  color: #c9a84c;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.ticket-reply-section textarea {
  width: 100%;
  padding: 12px 16px;
  background: #161625;
  border: 1px solid #2a2a3e;
  border-radius: 10px;
  color: #eee;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.ticket-reply-section textarea:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.send-reply-btn {
  margin-top: 12px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #c9a84c, #b8963f);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.send-reply-btn:hover {
  background: linear-gradient(135deg, #d4b85c, #c9a84c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.send-reply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── ریسپانسیو ── */
@media (max-width: 768px) {
  .support-tabs {
    flex-wrap: wrap;
  }

  .support-tab {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }

  .support-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .support-stat-card {
    padding: 14px 10px;
  }

  .support-stat-card .stat-number {
    font-size: 22px;
  }

  .tickets-table th,
  .tickets-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .new-ticket-form-wrapper {
    padding: 20px 16px;
  }

  .ticket-modal {
    max-height: 90vh;
    border-radius: 12px;
  }

  .ticket-modal-header {
    padding: 16px;
  }

  .ticket-modal-body {
    padding: 16px;
  }

  .ticket-modal-meta {
    padding: 10px 16px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .support-stats {
    grid-template-columns: 1fr 1fr;
  }

  .ticket-subject-cell {
    max-width: 120px;
  }
  
  .tickets-table th:nth-child(4),
  .tickets-table td:nth-child(4) {
    display: none;
  }
}
/* ═══════════════════════════════════════════
   💳 جدول تراکنش‌ها — Dashboard Transactions
   ═══════════════════════════════════════════ */

.transactions-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  margin-top: 15px;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(17, 34, 64, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.transactions-table thead tr {
  background: rgba(100, 255, 218, 0.08);
}

.transactions-table th {
  padding: 14px 16px;
  text-align: right;
  color: #64ffda;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(100, 255, 218, 0.15);
  white-space: nowrap;
}

.transactions-table td {
  padding: 12px 16px;
  text-align: right;
  color: #ccd6f6;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(100, 255, 218, 0.05);
  white-space: nowrap;
}

.transactions-table tbody tr {
  transition: background 0.2s ease;
}

.transactions-table tbody tr:hover {
  background: rgba(100, 255, 218, 0.04);
}

/* بج‌های وضعیت تراکنش */
.tx-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tx-status-success {
  background: rgba(100, 255, 218, 0.12);
  color: #64ffda;
  border: 1px solid rgba(100, 255, 218, 0.25);
}

.tx-status-pending {
  background: rgba(255, 217, 61, 0.12);
  color: #ffd93d;
  border: 1px solid rgba(255, 217, 61, 0.25);
}

.tx-status-failed {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.25);
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .transactions-table th,
  .transactions-table td {
    padding: 10px 10px;
    font-size: 0.8rem;
  }
}
.discount-section {
  margin: 15px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.discount-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#discount-code-input {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-apply-discount {
  padding: 10px 20px;
  background: #4ecdc4;
  color: #0a0e1a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.discount-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(78, 205, 196, 0.1);
  border-radius: 6px;
}

.btn-remove-discount {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.contact-item i {
    width: 18px;
    text-align: center;
    color: #64ffda;
}
.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    color: #64ffda;
    text-decoration: none;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-address {
    flex: 1;
    min-width: 300px;
}

.footer-address p {
    white-space: normal;
    line-height: 1.9;
}
