  :root {
            --bg: #05060a;
            --panel: #081022;
            --muted: #9fb8d6;
            --gold-1: #ffd86b;
            --gold-2: #ffb84d;
            --neon: #6ff0ff;
            --success: #4dff91;
            --danger: #ff4d6d;
            --glass: rgba(255,255,255,0.03);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: arad;
        }
/* نمونه‌ای از قرارگیری فونت متغیر در وب سایت*/

@font-face {
	font-family: AradVF;
	font-style: normal;
	font-weight: normal;
	src: url('woff2/AradVF.woff2') format('woff2');	
    font-display: fallback; 
}

/* نمونه‌ای از قرارگیری فونت استاتیک در وب سایت*/
@font-face {
	font-family: Arad;
	font-style: normal;
	font-weight: normal;
	src: url('woff2/Arad-Regular.woff2') format('woff2');	
    font-display: fallback; 
}

@font-face {
	font-family: Arad;
	font-style: normal;
	font-weight: 500;
	src: url('woff2/Arad-Medium.woff2') format('woff2');	
    font-display: fallback; 
}

@font-face {
	font-family: Arad;
	font-style: normal;
	font-weight: Bold;
	src: url('woff2/Arad-Bold.woff2') format('woff2');	
    font-display: fallback; 
}



/* فعال کردن ویژگی های مختلف استایلتیک ست ها*/

.Digit_Substitution_Arabic_and_English_to_Persian {
font-feature-settings: "ss01";
}

.Swash_Kaf_and_Gaf {
font-feature-settings: "ss02";
}

.Reversed_Yeh {
font-feature-settings: "ss03";
}

.Rial_Toman_and_Derham_symbols {
font-feature-settings: "ss04";
}

.UI_Numbers_and_Symbols {
font-feature-settings: "ss05";
}

/* ویژگی Swash*/
.sample_tabular_numbers {
font-feature-settings: "swsh";
}

/* ویژگی اعداد Tabular*/
.sample_tabular_numbers {
font-feature-settings: "tnum";
}
        body {
            background: linear-gradient(180deg, var(--bg) 0%, #02040a 100%);
            font-family: 'Arad','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #d7e9ff;
            min-height: 100vh;
            overflow-x: hidden;
        }

        .hidden {
            display: none !important;
        }

        

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
        }

        .modal {
            background: linear-gradient(135deg, var(--panel), #0a142f);
            border-radius: 20px;
            padding: 40px;
            width: 90%;
            max-width: 450px;
            border: 1px solid rgba(255,200,120,0.1);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
            position: relative;
        }

        .modal-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .modal-title {
            font-size: 1.8rem;
            color: var(--gold-1);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .modal-subtitle {
            color: var(--muted);
            font-size: 0.9rem;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: var(--muted);
            font-weight: 500;
            font-size: 0.9rem;
        }

        .form-input {
            width: 100%;
            padding: 15px 20px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            color: #fff;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--gold-1);
            box-shadow: 0 0 0 3px rgba(255, 216, 107, 0.1);
        }

        .form-actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .form-actions .btn {
            flex: 1;
        }

        .step-indicator {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 30px;
        }

        .step {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            transition: all 0.3s ease;
        }

        .step.active {
            background: var(--gold-1);
            box-shadow: 0 0 10px var(--gold-1);
        }

        .close-modal {
            position: absolute;
            top: 20px;
            left: 20px;
            background: none;
            border: none;
            color: var(--muted);
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
            padding: 5px;
            border-radius: 4px;
        }

        .close-modal:hover {
            color: var(--gold-1);
            background: rgba(255,255,255,0.1);
        }

        /* Dashboard Styles */
        .dashboard {
            min-height: 100vh;
            /*! padding: 20px; */
        }

        .app{
            display:grid;
            grid-template-columns: 420px 1fr;
            gap:28px;
            padding:28px;
            align-items:start;
            height:100vh;
            box-sizing:border-box
        }
        
        .side{
            background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
            border-radius:14px;padding:20px;backdrop-filter: blur(6px);box-shadow: 0 8px 30px rgba(0,0,0,0.6);
            border:1px solid rgba(110,170,255,0.04);
            height:calc(100vh);
            display:flex;
            flex-direction:column;
            gap:18px;
            overflow:hidden;
            position: relative;
        }
        
        .side-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 18px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 8px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 216, 107, 0.3) transparent;
        }
        
        .side-content::-webkit-scrollbar {
            width: 6px;
        }
        
        .side-content::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 3px;
        }
        
        .side-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            border-radius: 3px;
            opacity: 0.3;
            transition: opacity 0.3s ease;
        }
        
        .side-content::-webkit-scrollbar-thumb:hover {
            opacity: 0.6;
        }
        
        .side-footer {
            margin-top: auto;
            padding-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
        }
        
        .brand{display:flex;align-items:center;gap:12px; position: relative; cursor: pointer;}
        .logo{
            width:64px;height:64px;border-radius:12px;/*! background:black; */
            box-shadow:0 2px 1px rgba(255,184,77,0.14), inset 0 -9px 12px rgba(0,0,0,0.25);
            display:flex;align-items:center;justify-content:center;font-weight:700;/*! color:#081021; */font-size:20px;
        }
        .brand h1{margin:0;font-size:18px;letter-spacing:0.4px}
        .brand p{margin:0;font-size:12px;color:var(--muted)}
        
          
        .language-flag {
            width: 24px;
            height: 16px;
            border-radius: 2px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .language-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--panel);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 8px;
            margin-top: 5px;
            min-width: 120px;
            display: none;
            z-index: 1000;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .language-dropdown.show {
            display: block;
        }

        .language-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--muted);
        }

        .language-option:hover {
            background: rgba(255,255,255,0.1);
            color: var(--gold-1);
        }

        .language-option.active {
            background: rgba(255,216,107,0.1);
            color: var(--gold-1);
        }
        
        .trading-mode-selector {
            background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
            border-radius: 12px;
            padding: 16px;
            border: 1px solid rgba(255,200,120,0.06);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .mode-selector-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mode-label {
            font-size: 14px;
            color: var(--muted);
            font-weight: 600;
        }
        
        .mode-status {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 6px;
            background: rgba(255, 0, 0, 0.1);
            color: #ff6b6b;
            border: 1px solid rgba(255, 107, 107, 0.3);
        }
        
        .mode-status.active {
            background: rgba(76, 175, 80, 0.1);
            color: #4dff91;
            border: 1px solid rgba(77, 255, 145, 0.3);
        }
        
        .mode-selector-buttons {
            display: flex;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 4px;
            border: 1px solid rgba(255,255,255,0.05);
            position: relative;
        }
        
        .mode-button {
            flex: 1;
            text-align: center;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 13px;
            font-weight: 600;
            z-index: 1;
            color: var(--muted);
        }
        
        .mode-button.active {
            color: var(--bg);
        }
        
        .mode-slider {
            position: absolute;
            top: 4px;
            bottom: 4px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(255, 184, 77, 0.3);
        }
        
        .mode-slider.real { left: 4px; width: calc(33.333% - 8px); }
        .mode-slider.demo { left: calc(33.333% + 4px); width: calc(33.333% - 8px); }
        .mode-slider.offline { left: calc(66.666% + 4px); width: calc(33.333% - 8px); }
        
        .statusCard{background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));border-radius:10px;padding:12px;border:1px solid rgba(110,170,255,0.04);display:flex;align-items:center;justify-content:space-between}
        .statusLeft{display:flex;gap:12px;align-items:center}
        .led{
            width:14px;height:14px;border-radius:50%;box-shadow:0 0 10px rgba(110,240,255,0.14), inset 0 -2px 4px rgba(0,0,0,0.3);
            background:linear-gradient(180deg,var(--neon) 0%, #1bdcff 60%);
            border:1px solid rgba(110,240,255,0.25);
        }
        .statusRight{font-weight:700;color:var(--gold-1)}
        
        .profit{
            background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
            border-radius:12px;padding:18px;border:1px solid rgba(255,200,120,0.06);
            display:flex;flex-direction:column;gap:10px;align-items:flex-start;
        }
        .profit .label{font-size:13px;color:var(--muted)}
        .profit .value{font-size:38px;font-weight:800;color:var(--gold-1);text-shadow:0 6px 24px rgba(255,184,77,0.12)}
        .profit .hint{font-size:12px;color:rgba(223,240,255,0.7)}
        
        .row{display:flex;gap:12px}
        .card{flex:1;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));border-radius:10px;padding:10px;border:1px solid rgba(110,170,255,0.03)}
        .card .num{font-size:20px;font-weight:700;color:var(--gold-2)}
        .muted{font-size:12px;color:var(--muted)}
        
        .main{height:calc(100vh - 56px);display:flex;flex-direction:column;gap:18px}
        .panel{
            background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
            border-radius:14px;padding:18px;border:1px solid rgba(110,170,255,0.03);box-shadow:0 10px 40px rgba(6,10,20,0.6);
            min-width: 0; /* اضافه شده برای جلوگیری از کشیدن صفحه */
        }
        .chartHeader{display:flex;justify-content:space-between;align-items:center;gap:12px}
        .chartTitle{font-weight:700;font-size:16px}
        .goldPrice{display:flex;flex-direction:column;align-items:flex-end}
        .goldPrice .p1{font-weight:800;font-size:22px;color:var(--gold-1)}
        .goldPrice .p2{font-size:12px;color:var(--muted)}
        
        .chartBox{height:420px;margin-top:12px;position:relative;display:flex;align-items:center;justify-content:center}
        canvas{max-height:100%}
        
        .neonLines{position:absolute;right:10px;top:10px;opacity:0.14;pointer-events:none}
        
        .market-snapshot-container {
            display: flex;
            gap: 18px;
            align-items: center;
            width: 100%;
        }
        
        .market-snapshot-main {
            flex: 1;
            min-width: 0; /* اضافه شده برای جلوگیری از کشیدن صفحه */
        }
        
        .market-snapshot-cards {
            display: flex;
            gap: 12px;
            flex-wrap: wrap; /* اضافه شده برای موبایل */
        }
        
        .market-snapshot-side {
            width: 240px;
            text-align: right;
            flex-shrink: 0; /* اضافه شده برای جلوگیری از تغییر سایز */
        }

        /* Menu Styles */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            display: none;
        }

        .menu-container {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--panel), #0a142f);
            width: 100%;
            border-right: 1px solid rgba(255,200,120,0.1);
            box-shadow: 5px 0 30px rgba(0,0,0,0.4);
            z-index: 2001;
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            direction: ltr;
            text-align: left;
        }

        .menu-container.open {
            transform: translateX(0);
        }

        .menu-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .menu-logo {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--bg);
            font-size: 16px;
        }

        .menu-user {
            flex: 1;
        }

        .menu-user-name {
            font-weight: 600;
            color: var(--gold-1);
            font-size: 14px;
        }

        .menu-user-email {
            font-size: 12px;
            color: var(--muted);
        }

        .menu-content {
            flex: 1;
            overflow-y: auto;
            padding: 10px 0;
            /*! direction: ltr; */
            /*! text-align: right; */
        }

        .menu-section {
            margin-bottom: 15px;
        }

        .menu-section-title {
            padding: 10px 20px;
            color: var(--gold-1);
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .menu-item {
            padding: 12px 20px;
            color: var(--muted);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            border: none;
            background: none;
            width: 100%;
            text-align: right;
            font-size: 14px;
            font-family: inherit;
            cursor: pointer;
        }

        .menu-item:hover {
            background: rgba(255, 216, 107, 0.1);
            color: var(--gold-1);
        }

        .menu-item.danger {
            color: var(--danger);
        }

        .menu-item.danger:hover {
            background: rgba(255, 77, 109, 0.1);
        }

        .menu-item-icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .menu-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: var(--muted);
            font-size: 20px;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            z-index: 2002;
        }

        .menu-close:hover {
            color: var(--gold-1);
            background: rgba(255,255,255,0.1);
        }

        /* Profile Modal Styles */
        .profile-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            display: none;
            backdrop-filter: blur(10px);
        }

        .profile-modal.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .profile-modal-content {
            background: linear-gradient(135deg, var(--panel), #0a142f);
            border-radius: 20px;
            width: 95%;
            max-width: 1000px;
            height: 90vh;
            max-height: 800px;
            border: 1px solid rgba(255,200,120,0.1);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .profile-modal-header {
            padding: 30px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .profile-modal-title {
            font-size: 2rem;
            color: var(--gold-1);
            font-weight: 700;
        }

        .profile-modal-close {
            background: none;
            border: none;
            color: var(--muted);
            font-size: 2rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .profile-modal-close:hover {
            color: var(--gold-1);
            background: rgba(255,255,255,0.1);
        }

        .profile-modal-body {
            flex: 1;
            display: flex;
            overflow: hidden;
        }

        .profile-tabs {
            width: 250px;
            background: rgba(0, 0, 0, 0.2);
            border-right: 1px solid rgba(255,255,255,0.1);
            padding: 20px 0;
        }

        .profile-tab {
            padding: 15px 25px;
            color: var(--muted);
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            background: none;
            width: 100%;
            text-align: right;
            font-size: 14px;
            font-family: inherit;
        }

        .profile-tab.active {
            background: rgba(255, 216, 107, 0.1);
            color: var(--gold-1);
            border-right: 3px solid var(--gold-1);
        }

        .profile-tab:hover:not(.active) {
            background: rgba(255,255,255,0.05);
            color: var(--gold-1);
        }

        .profile-content {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
        }

        .profile-tab-content {
            display: none;
        }

        .profile-tab-content.active {
            display: block;
        }

        .avatar-section {
            text-align: center;
            margin-bottom: 30px;
        }

        .avatar-preview {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--bg);
            cursor: pointer;
            border: 3px solid rgba(255,255,255,0.1);
            transition: all 0.3s ease;
        }

        .avatar-preview:hover {
            transform: scale(1.05);
            border-color: var(--gold-1);
        }

        .avatar-upload {
            display: none;
        }

        .avatar-upload-label {
            display: inline-block;
            padding: 8px 16px;
            background: rgba(255, 216, 107, 0.1);
            color: var(--gold-1);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .avatar-upload-label:hover {
            background: rgba(255, 216, 107, 0.2);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-full-width {
            grid-column: 1 / -1;
        }

        .verification-section {
            background: rgba(255, 77, 109, 0.1);
            border: 1px solid rgba(255, 77, 109, 0.3);
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }

        .verification-title {
            color: var(--danger);
            font-weight: 600;
            margin-bottom: 10px;
        }

        .verification-desc {
            color: var(--muted);
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

        .file-upload {
            border: 2px dashed rgba(255,255,255,0.2);
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .file-upload:hover {
            border-color: var(--gold-1);
            background: rgba(255, 216, 107, 0.05);
        }

        .file-upload-icon {
            font-size: 3rem;
            color: var(--muted);
            margin-bottom: 10px;
        }

        .file-upload-text {
            color: var(--muted);
        }

        .file-input {
            display: none;
        }

        .account-type-selector {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .account-type {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .account-type:hover {
            border-color: var(--gold-1);
            background: rgba(255, 216, 107, 0.05);
        }

        .account-type.active {
            border-color: var(--gold-1);
            background: rgba(255, 216, 107, 0.1);
        }

        .account-type-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .account-type-name {
            font-weight: 600;
            color: var(--gold-1);
            margin-bottom: 5px;
        }

        .account-type-desc {
            color: var(--muted);
            font-size: 0.8rem;
        }

        .save-button {
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            color: var(--bg);
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .save-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 184, 77, 0.3);
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            .landing-title {
                font-size: 2.5rem;
            }
            
            .landing-features {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .auth-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .btn {
                width: 100%;
                max-width: 300px;
            }
            
            .app {
                grid-template-columns: 1fr;
                grid-template-rows: auto 1fr;
                height: auto;
                min-height: 100vh;
                padding: 16px;
                gap: 16px;
            }
            
            .side {
                height: auto;
                /*! max-height: 500px; */
            }
            
            .main {
                height: auto;
                gap: 12px;
            }
            
            .chartBox {
                height: 300px;
            }
            
            .market-snapshot-container {
                flex-direction: column;
                gap: 16px;
            }
            
            .market-snapshot-side {
                width: 100%;
                text-align: center;
            }

            .menu-container {
                width: 100%;
                /*! max-width: 300px; */
            }

            .panel {
                padding: 14px;
                margin: 0;
                width: 100%;
                box-sizing: border-box;
            }

            .market-snapshot-cards {
                justify-content: space-between;
            }

            .market-snapshot-cards .card {
                flex: 0 0 calc(33.333% - 8px);
                min-width: 80px;
            }

            .brand {
                position: relative;
                /*! padding-right: 40px; */
            }

            .language-selector {
                position: absolute;
                right: 0;
                left: auto;
                top: 50%;
                transform: translateY(-50%);
            }

            .profile-modal-content {
                width: 98%;
                height: 95vh;
            }

            .profile-modal-body {
                flex-direction: column;
            }

            .profile-tabs {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid rgba(255,255,255,0.1);
                display: flex;
                overflow-x: auto;
            }

            .profile-tab {
                white-space: nowrap;
                border-right: none;
                border-bottom: 3px solid transparent;
            }

            .profile-tab.active {
                border-right: none;
                border-bottom: 3px solid var(--gold-1);
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .account-type-selector {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .menu-container {
                width: 100%;
            }
            
            .brand h1 {
                font-size: 16px;
            }
            
            .brand p {
                font-size: 10px;
            }
            
            .logo {
                width: 50px;
                height: 50px;
                font-size: 16px;
            }

            .market-snapshot-cards .card {
                flex: 0 0 calc(50% - 6px);
            }

            .profit .value {
                font-size: 28px;
            }

            .chartBox {
                height: 250px;
            }

            .profile-modal-header {
                padding: 20px;
            }

            .profile-modal-title {
                font-size: 1.5rem;
            }

            .profile-content {
                padding: 20px;
            }
        }

        @media (max-width: 360px) {
            .market-snapshot-cards {
                flex-direction: column;
            }

            .market-snapshot-cards .card {
                flex: 1;
            }
        }
		 .account-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            display: none;
            backdrop-filter: blur(10px);
        }

        .account-modal.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .account-modal-content {
            background: linear-gradient(135deg, var(--panel), #0a142f);
            border-radius: 20px;
            width: 95%;
            max-width: 800px;
            height: 80vh;
            max-height: 700px;
            border: 1px solid rgba(255,200,120,0.1);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .account-modal-header {
            padding: 30px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .account-modal-title {
            font-size: 2rem;
            color: var(--gold-1);
            font-weight: 700;
        }

        .account-modal-close {
            background: none;
            border: none;
            color: var(--muted);
            font-size: 2rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .account-modal-close:hover {
            color: var(--gold-1);
            background: rgba(255,255,255,0.1);
        }

        .account-modal-body {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
        }

        .account-status {
            background: rgba(255, 77, 109, 0.1);
            border: 1px solid rgba(255, 77, 109, 0.3);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 30px;
        }

        .account-status.connected {
            background: rgba(77, 255, 145, 0.1);
            border: 1px solid rgba(77, 255, 145, 0.3);
        }

        .account-status-title {
            color: var(--danger);
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .account-status.connected .account-status-title {
            color: var(--success);
        }

        .account-status-desc {
            color: var(--muted);
            font-size: 0.9rem;
        }

        .connection-test {
            display: flex;
            gap: 15px;
            margin: 20px 0;
            align-items: center;
        }

        .test-button {
            background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
            color: var(--bg);
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .test-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 184, 77, 0.3);
        }

        .test-result {
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .test-result.success {
            background: rgba(77, 255, 145, 0.1);
            color: var(--success);
            border: 1px solid rgba(77, 255, 145, 0.3);
        }

        .test-result.error {
            background: rgba(255, 77, 109, 0.1);
            color: var(--danger);
            border: 1px solid rgba(255, 77, 109, 0.3);
        }

        .account-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        @media (max-width: 768px) {
            .account-modal-content {
                width: 98%;
                height: 90vh;
            }

            .account-modal-body {
                padding: 20px;
            }

            .account-info-grid {
                grid-template-columns: 1fr;
            }

            .connection-test {
                flex-direction: column;
                align-items: stretch;
            }
        }
/* Subscription Bar Styles */
/* Subscription Bar Styles */
.subscription-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,216,107,0.1), rgba(255,184,77,0.05));
    border: 1px solid rgba(255,200,120,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.subscription-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
}

.progress-used {
    color: var(--gold-1);
}

.progress-remaining {
    color: var(--success);
}

.subscription-renew {
    display: flex;
    justify-content: center;
}

.renew-btn {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--bg);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.renew-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 77, 0.3);
}

.auto-renew-text {
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(77, 255, 145, 0.1);
    border: 1px solid rgba(77, 255, 145, 0.3);
    border-radius: 8px;
    text-align: center;
}

/* Renew Modal Styles */
.renew-modal-content .modal {
    max-width: 500px;
}

.subscription-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.plan-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-card:hover {
    border-color: var(--gold-1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.plan-card.popular {
    border-color: var(--gold-1);
    background: linear-gradient(135deg, rgba(255,216,107,0.05), rgba(255,184,77,0.02));
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
}

.plan-name {
    color: var(--gold-1);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-1);
}

.price-period {
    color: var(--muted);
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.feature-item {
    color: var(--muted);
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative;
    padding-right: 20px;
    text-align: center;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success);
    font-weight: bold;
}

.select-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-1);
}

.current-plan-info {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.info-title {
    color: var(--gold-1);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

.info-details {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.info-details span {
    flex: 1;
    text-align: center;
    min-width: 100px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .subscription-bar {
        padding: 12px;
        gap: 10px;
    }
    
    .info-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-details span {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .subscription-bar {
        padding: 10px;
    }
    
    .renew-btn {
        min-width: 100px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
} 
/* Terms Section Styles */
.terms-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 216, 107, 0.05);
    border: 1px solid rgba(255, 216, 107, 0.1);
    border-radius: 12px;
}

.terms-checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-1);
    cursor: pointer;
}

.terms-label {
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.4;
}

.terms-link {
    color: var(--gold-1);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.terms-link:hover {
    color: var(--gold-2);
}

/* Terms Modal Styles - FULLSCREEN */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: none;
    backdrop-filter: blur(15px);
}

.terms-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.terms-modal {
    background: linear-gradient(135deg, var(--panel), #0a142f);
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.terms-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.terms-modal-title {
    font-size: 1.3rem;
    color: var(--gold-1);
    font-weight: 700;
    text-align: center;
    flex: 1;
    margin: 0;
}

.terms-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.terms-modal-close:hover {
    color: var(--gold-1);
    background: rgba(255, 255, 255, 0.2);
}

.terms-modal-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-text {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    line-height: 1.7;
    background: rgba(0, 0, 0, 0.2);
}

.terms-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.terms-content h3 {
    color: var(--gold-1);
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(255,216,107,0.3);
    padding-bottom: 15px;
    line-height: 1.4;
}

.terms-content h4 {
    color: var(--gold-2);
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terms-content p {
    color: #e0e0e0;
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
}

.terms-content ul {
    color: #e0e0e0;
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.terms-content strong {
    color: var(--gold-1);
    font-weight: 600;
}

.terms-notice {
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.terms-notice strong {
    color: #ff4d6d;
    font-size: 1.1rem;
}

.terms-actions {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.terms-reject,
.terms-accept {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 160px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.terms-reject:hover,
.terms-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Scrollbar Styles for Terms */
.terms-text::-webkit-scrollbar {
    width: 8px;
}

.terms-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.terms-text::-webkit-scrollbar-thumb {
    background: var(--gold-1);
    border-radius: 4px;
}

.terms-text::-webkit-scrollbar-thumb:hover {
    background: var(--gold-2);
}

/* Responsive Styles for Fullscreen Terms Modal */
@media (max-width: 768px) {
    .terms-modal-header {
        padding: 15px 20px;
    }
    
    .terms-modal-title {
        font-size: 1.2rem;
    }
    
    .terms-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .terms-text {
        padding: 20px;
    }
    
    .terms-content h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .terms-content h4 {
        font-size: 1.1rem;
        margin: 20px 0 12px 0;
    }
    
    .terms-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .terms-actions {
        padding: 15px 20px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .terms-reject,
    .terms-accept {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 140px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .terms-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .terms-label {
        font-size: 0.85rem;
    }
    
    .terms-modal-header {
        padding: 12px 15px;
    }
    
    .terms-modal-title {
        font-size: 1.1rem;
    }
    
    .terms-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .terms-text {
        padding: 15px;
    }
    
    .terms-content h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .terms-content h4 {
        font-size: 1rem;
        margin: 18px 0 10px 0;
    }
    
    .terms-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: right;
    }
    
    .terms-actions {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .terms-reject,
    .terms-accept {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-width: 120px;
    }
    
    .terms-notice {
        padding: 15px;
        font-size: 1rem;
    }
}

/* برای حالت افقی در موبایل */
@media (max-height: 600px) and (orientation: landscape) {
    .terms-modal-header {
        padding: 10px 15px;
    }
    
    .terms-text {
        padding: 15px;
    }
    
    .terms-content h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .terms-actions {
        padding: 10px 15px;
    }
}

.market-snapshot-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.market-snapshot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    text-align: center;
}

.market-snapshot-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 18px;
    margin-bottom: 5px;
}

.btn-text {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    font-family: arad;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .market-snapshot-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    
    .market-snapshot-btn {
        padding: 12px 5px;
        min-height: 60px;
    }
    
    .btn-icon {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .btn-text {
        font-size: 10px;
    }
}

/* برای صفحات خیلی کوچک */
@media (max-width: 480px) {
    .market-snapshot-buttons {
        gap: 6px;
        padding: 8px;
    }
    
    .market-snapshot-btn {
        padding: 10px 4px;
        min-height: 55px;
    }
    
    .btn-text {
        font-size: 9px;
    }
}
/* Language Intro Modal Styles */
.language-intro-modal .modal {
    max-width: 500px;
    text-align: center;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.intro-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

.intro-option:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--gold-1);
    transform: translateY(-2px);
}

.language-name {
    color: var(--muted);
    font-weight: 600;
    flex: 1;
}

/* RTL/LTR Text Direction Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* Persian (RTL) specific styles */
[lang="fa"] .hero-title,
[lang="fa"] .hero-subtitle,
[lang="fa"] .section-title,
[lang="fa"] .section-desc,
[lang="fa"] .hero-feature,
[lang="fa"] .feature-card-title,
[lang="fa"] .feature-card-desc,
[lang="fa"] .step-title,
[lang="fa"] .step-desc,
[lang="fa"] .stat-label,
[lang="fa"] .cta-title,
[lang="fa"] .cta-desc {
    direction: rtl;
    text-align: right;
}

/* English (LTR) specific styles */
[lang="en"] .hero-title,
[lang="en"] .hero-subtitle,
[lang="en"] .section-title,
[lang="en"] .section-desc,
[lang="en"] .hero-feature,
[lang="en"] .feature-card-title,
[lang="en"] .feature-card-desc,
[lang="en"] .step-title,
[lang="en"] .step-desc,
[lang="en"] .stat-label,
[lang="en"] .cta-title,
[lang="en"] .cta-desc {
    direction: ltr;
    text-align: left;
}

/* Turkish (LTR) specific styles */
[lang="tr"] .hero-title,
[lang="tr"] .hero-subtitle,
[lang="tr"] .section-title,
[lang="tr"] .section-desc,
[lang="tr"] .hero-feature,
[lang="tr"] .feature-card-title,
[lang="tr"] .feature-card-desc,
[lang="tr"] .step-title,
[lang="tr"] .step-desc,
[lang="tr"] .stat-label,
[lang="tr"] .cta-title,
[lang="tr"] .cta-desc {
    direction: ltr;
    text-align: left;
}

/* Arabic (RTL) specific styles */
[lang="ar"] .hero-title,
[lang="ar"] .hero-subtitle,
[lang="ar"] .section-title,
[lang="ar"] .section-desc,
[lang="ar"] .hero-feature,
[lang="ar"] .feature-card-title,
[lang="ar"] .feature-card-desc,
[lang="ar"] .step-title,
[lang="ar"] .step-desc,
[lang="ar"] .stat-label,
[lang="ar"] .cta-title,
[lang="ar"] .cta-desc {
    direction: rtl;
    text-align: right;
}
/* Language Intro Modal Styles */
.language-intro-modal .modal {
    max-width: 500px;
    text-align: center;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.intro-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

.intro-option:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--gold-1);
    transform: translateY(-2px);
}

.language-name {
    color: var(--muted);
    font-weight: 600;
    flex: 1;
}
/* Force LTR for specific elements - ALWAYS LTR */
.ltr-direction {
    direction: ltr !important;
    text-align: left !important;
}

/* Mode Selector - ALWAYS LTR */
.mode-selector-buttons {
    direction: ltr !important;
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.mode-button {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
    color: var(--muted);
    direction: ltr !important;
}

.mode-button.active {
    color: var(--bg);
}

.mode-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 184, 77, 0.3);
}

.mode-slider.real { left: 4px; width: calc(33.333% - 8px); }
.mode-slider.demo { left: calc(33.333% + 4px); width: calc(33.333% - 8px); }
.mode-slider.offline { left: calc(66.666% + 4px); width: calc(33.333% - 8px); }

/* Brand Section - ALWAYS LTR */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
    direction: ltr !important;
      justify-content: space-between; 
    text-align: left !important;
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.4px;
    direction: ltr !important;
    text-align: left !important;
}

.brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    direction: ltr !important;
    text-align: left !important;
}
 
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px;
    margin-top: 5px;
    min-width: 120px;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    direction: ltr !important;
    text-align: left !important;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted);
    direction: ltr !important;
    text-align: left !important;
}

/* Trading related elements - ALWAYS LTR */
.trading-mode-selector,
.statusCard,
.profit,
.card,
.chartHeader,
.goldPrice,
.market-snapshot-container {
    direction: ltr !important;
    text-align: left !important;
}

/* Numbers and prices - ALWAYS LTR */
.profit .value,
.goldPrice .p1,
.card .num,
.statusRight {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Courier New', monospace;
}

/* Specific text elements that should remain LTR */
.mode-label,
.auto-trader-status,
.profit .label,
.card .muted,
.chartTitle {
    direction: ltr !important;
    text-align: left !important;
}
/* Header Elements - ALWAYS LTR */
.landing-header {
    direction: ltr !important;
    text-align: left !important;
}

.header-auth-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    direction: ltr !important;
}

.header-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 70px;
    white-space: nowrap;
    direction: ltr !important;
    text-align: center !important;
}

.header-btn.btn-primary {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--bg);
    border: none;
    direction: ltr !important;
}

.header-btn.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-1);
    color: var(--gold-1);
    direction: ltr !important;
}

/* Header Language Section - ALWAYS LTR */
.header-language {
    display: flex;
    justify-content: flex-start;
    direction: ltr !important;
}

/* Ensure all header content stays LTR */
.landing-header * {
    direction: ltr !important;
    text-align: left !important;
}
.rules-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.rules-content {
    padding: 20px 0;
}

.rule-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rule-item h3 {
    color: #9199a1;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.rule-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.rule-item ul {
    color: #7f8c8d;
    padding-left: 20px;
    margin: 8px 0 0 0;
}

.rule-item li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.accept-rules-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}
.timer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}

.timer-text {
    color: #6c757d;
}

.countdown-timer {
    color: #dc3545;
    font-weight: bold;
}

.resend-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
}

.resend-button:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.resend-button:not(:disabled):hover {
    text-decoration: underline;
}
/* Message Modal Styles */
.message-modal-content {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.message-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.message-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #fff;
}

.confirm-message-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* Confirm Modal Styles */
.confirm-modal-content {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: white;
}

.confirm-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 80px;
}

.confirm-btn {
    background: #e74c3c;
    color: white;
}

.confirm-btn:hover {
    background: #c0392b;
}

.cancel-btn {
    background: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background: #7f8c8d;
}
/* Profile Modal Styles - Fixed Scroll */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    backdrop-filter: blur(10px);
}

.profile-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-modal-content {
    background: linear-gradient(135deg, var(--panel), #0a142f);
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    max-height: 90vh; /* تغییر از 800px به 90vh */
    border: 1px solid rgba(255,200,120,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-modal-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* جلوگیری از فشرده شدن هدر */
}

.profile-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden; /* مخفی کردن overflow کلی */
}

.profile-tabs {
    width: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    flex-shrink: 0; /* جلوگیری از فشرده شدن تب‌ها */
    overflow-y: auto; /* اسکرول داخلی اگر لازم شد */
}

.profile-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto; /* فعال کردن اسکرول عمودی */
    overflow-x: hidden;
}

/* اسکرول بار سفارشی برای تم تاریک */
.profile-content::-webkit-scrollbar {
    width: 6px;
}

.profile-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.profile-content::-webkit-scrollbar-thumb {
    background: var(--gold-1);
    border-radius: 3px;
}

.profile-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold-2);
}

.profile-tab-content {
    display: none;
    height: 100%;
}

.profile-tab-content.active {
    display: block;
}

/* بقیه استایل‌ها بدون تغییر */
.avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--bg);
    cursor: pointer;
    border: 3px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
    border-color: var(--gold-1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* استایل برای محتوای طولانی */
.verification-section,
.upload-section {
    margin-bottom: 20px;
}

.docs-list {
    margin: 15px 0;
    padding-right: 20px;
}

.doc-item {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* فرم‌ها در حالت موبایل */
@media (max-width: 768px) {
    .profile-modal-content {
        height: 95vh;
        max-height: 95vh;
        width: 98%;
    }
    
    .profile-modal-body {
        flex-direction: column;
    }
    
    .profile-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
    }
    
    .profile-tab {
        display: inline-block;
        width: auto;
        padding: 10px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/* استایل برای دکمه ارسال مدارک */
.submit-button {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* استایل برای دکمه بازگشت */
.back-button {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #6c757d;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.back-button:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}
/* برای زبان فارسی */
[dir="rtl"] .submit-button,
[dir="rtl"] .back-button {
    font-family: 'Arad', 'Segoe UI', Tahoma, sans-serif;
}
 /* استایل‌های پایه برای RTL/LTR */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* استایل‌های خاص برای RTL */
.rtl .brand,
.rtl .side-content,
.rtl .menu-container,
.rtl .modal,
.rtl .profile-modal-content,
.rtl .form-group,
.rtl .profile-tabs {
    text-align: right;
}

.rtl .menu-item {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl .menu-item-icon {
    margin-left: 10px;
    margin-right: 0;
}

.rtl .progress-labels {
    flex-direction: row-reverse;
}

.rtl .confirm-buttons,
.rtl .market-snapshot-buttons,
.rtl .language-selector {
    flex-direction: row-reverse;
}

.rtl .btn-icon {
    margin-left: 8px;
    margin-right: 0;
}

/* استایل‌های خاص برای LTR */
.ltr .brand,
.ltr .side-content,
.ltr .menu-container,
.ltr .modal,
.ltr .profile-modal-content,
.ltr .form-group,
.ltr .profile-tabs {
    text-align: left;
}

.ltr .menu-item-icon {
    margin-right: 10px;
    margin-left: 0;
}

.ltr .btn-icon {
    margin-right: 8px;
    margin-left: 0;
}
/* استایل‌های جدید برای انتخابگر زبان */
.lang-selector-container {
    position: relative;
    display: block;
    margin-top: 10px;
}

/* دکمه اصلی */
.lang-main-button {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;        /* مهم */
    flex-direction: row-reverse;  /* آیکون سمت چپ، متن سمت راست */
}

.lang-main-button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* منوی dropdown */
.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;               /* همیشه از راست */
    left: auto !important;   /* سمت چپ حذف */
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 0;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.lang-dropdown-menu.lang-menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* آیتم‌های منو */
.lang-menu-item {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;       /* همیشه راست */
    flex-direction: row-reverse; /* آیکون چپ / متن راست */
}

.lang-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* 🔥 حذف کامل رفتار متفاوت RTL و LTR */
[dir="rtl"] .lang-main-button,
[dir="ltr"] .lang-main-button {
    text-align: right !important;
}

[dir="rtl"] .lang-dropdown-menu,
[dir="ltr"] .lang-dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

[dir="rtl"] .lang-menu-item,
[dir="ltr"] .lang-menu-item {
    text-align: right !important;
    flex-direction: row-reverse !important;
}
/* استایل برای آواتار در منو */
.menu-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.menu-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.menu-user-email {
    font-size: 14px;
    color: var(--muted);
}
/* Alert Modal Styles */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-modal-overlay.show {
    opacity: 1;
}

.alert-modal {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.alert-modal-overlay.show .alert-modal {
    transform: translateY(0);
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.alert-message {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}
/* استایل‌های مودال پرداخت‌ها با تم رنگی جدید */
.payments-modal-content {
    background: var(--panel, #081022);
    border: 1px solid rgba(255, 184, 77, 0.2);
    border-radius: 12px;
    color: var(--gold-1, #ffd86b);
}

.payments-search-section {
    margin: 20px 0;
}

.payments-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 8px;
    background: var(--bg, #05060a);
    color: var(--gold-1, #ffd86b);
    font-size: 14px;
}

.payments-search-input::placeholder {
    color: var(--muted, #9fb8d6);
}

.payments-search-input:focus {
    outline: none;
    border-color: var(--gold-2, #ffb84d);
    box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.1);
}

.payments-stats {
    background: rgba(255, 184, 77, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid rgba(255, 184, 77, 0.3);
}

.total-payments {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-2, #ffb84d);
}

.payments-table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    border: 1px solid rgba(255, 184, 77, 0.2);
    border-radius: 8px;
    background: var(--bg, #05060a);
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
}

.payments-table th {
    background: rgba(255, 184, 77, 0.1);
    padding: 12px 16px;
    text-align: right;
    font-weight: 600;
    color: var(--gold-2, #ffb84d);
    border-bottom: 2px solid rgba(255, 184, 77, 0.3);
}

.payments-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 184, 77, 0.1);
    text-align: right;
    color: var(--gold-1, #ffd86b);
}

.payments-table tr:last-child td {
    border-bottom: none;
}

.payments-table tr:hover {
    background: rgba(255, 184, 77, 0.05);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.status-badge.confirmed {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.empty-payments {
    text-align: center !important;
    color: var(--muted, #9fb8d6);
    padding: 40px !important;
    font-style: italic;
}

/* استایل‌های مودال پشتیبانی با تم رنگی جدید */
.support-modal-content {
    background: var(--panel, #081022);
    border: 1px solid rgba(255, 184, 77, 0.2);
    border-radius: 12px;
    color: var(--gold-1, #ffd86b);
}

.support-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.support-card {
    background: var(--bg, #05060a);
    border: 1px solid rgba(255, 184, 77, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: var(--gold-2, #ffb84d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.1);
}

.support-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
}

.support-card-title {
    color: var(--gold-2, #ffb84d);
    margin: 0 0 8px 0;
    font-size: 18px;
    text-align: center;
}

.support-card-desc {
    color: var(--muted, #9fb8d6);
    margin: 0 0 16px 0;
    font-size: 14px;
    text-align: center;
}

.support-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.support-action-btn {
    background: rgba(255, 184, 77, 0.1);
    border: 1px solid rgba(255, 184, 77, 0.3);
    color: var(--gold-2, #ffb84d);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-action-btn:hover {
    background: rgba(255, 184, 77, 0.2);
    border-color: var(--gold-2, #ffb84d);
    transform: translateY(-1px);
}
/* =============================== */
/* PAYMENTS MODAL STYLES */
/* =============================== */

.payments-modal-content {
    background: #0f172a;
    border-radius: 12px;
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.payments-search-section {
    margin: 20px 0;
}

.payments-search-input {
    width: 100%;
    padding: 12px 16px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.payments-search-input:focus {
    outline: none;
    border-color: #ffb84d;
    box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.2);
}

.payments-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #334155;
}

.total-payments {
    color: #ffb84d;
    font-weight: 600;
    font-size: 14px;
}

.refresh-payments-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.refresh-payments-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* =============================== */
/* PAGINATION STYLES - مهم */
/* =============================== */

.pagination-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 25px !important;
    padding: 15px 0 !important;
    border-top: 2px solid #334155 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pagination-info {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.pagination-controls {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.pagination-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    min-width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4) !important;
}

.pagination-btn:disabled {
    background: #475569 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.prev-btn {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
}

.next-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.page-number {
    color: #ffb84d !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    min-width: 30px !important;
    text-align: center !important;
    padding: 5px 10px !important;
    background: rgba(255, 184, 77, 0.1) !important;
    border-radius: 6px !important;
}

/* =============================== */
/* TABLE STYLES */
/* =============================== */

.payments-table-container {
    margin-top: 20px;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.payments-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.payments-table th {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffb84d;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #334155;
}

.payments-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #334155;
    text-align: right;
    font-size: 14px;
    color: #e2e8f0;
}

.payments-table tr:hover {
    background: rgba(255, 184, 77, 0.08) !important;
}

.payments-table tr:last-child td {
    border-bottom: none;
}

/* =============================== */
/* STATUS ICON STYLES */
/* =============================== */

.payment-status {
    text-align: center !important;
}

.status-icon {
    font-size: 22px !important;
    display: inline-block !important;
    cursor: help !important;
    transition: transform 0.3s ease !important;
}

.status-icon:hover {
    transform: scale(1.2) !important;
}

.status-icon.confirmed {
    color: #10b981 !important;
    animation: pulse 1.5s infinite !important;
}

.status-icon.pending {
    color: #fbbf24 !important;
    animation: spin 2s linear infinite !important;
}

.status-icon.rejected {
    color: #ef4444 !important;
}

/* =============================== */
/* ANIMATIONS */
/* =============================== */

@keyframes pulse {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */

@media (max-width: 768px) {
    .payments-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
    
    .payments-table {
        min-width: 600px;
    }
}
/* =============================== */
/* SUPPORT MODAL RESPONSIVE STYLES */
/* =============================== */

.support-modal-content {
    background: #0f172a;
    border-radius: 12px;
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .support-modal-content {
        width: 95%;
        padding: 15px;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        text-align: center;
    }
    
    .modal-title {
        font-size: 1.5rem !important;
    }
    
    .modal-subtitle {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .support-modal-content {
        padding: 10px;
        border-radius: 8px;
    }
    
    .modal-title {
        font-size: 1.3rem !important;
    }
}

/* Support Cards Grid */
.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .support-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.support-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: #ffb84d;
    box-shadow: 0 10px 20px rgba(255, 184, 77, 0.1);
}

@media (max-width: 768px) {
    .support-card {
        padding: 20px;
        min-height: 220px;
    }
}

/* Form Styles */
.support-section {
    animation: fadeIn 0.3s ease;
}

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

.section-title {
    color: #ffb84d;
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1 !important;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea,
.form-file {
    width: 100%;
    padding: 12px 15px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ffb84d;
    box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.2);
}

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

.form-file {
    padding: 10px;
}

@media (max-width: 768px) {
    .form-input,
    .form-select,
    .form-textarea,
    .form-file {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Tickets Table */
.tickets-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.tickets-table th {
    background: #1e293b;
    color: #ffb84d;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid #334155;
}

.tickets-table td {
    padding: 12px;
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
    font-size: 14px;
}

.tickets-table tr:hover {
    background: rgba(255, 184, 77, 0.05);
}

@media (max-width: 768px) {
    .tickets-table th,
    .tickets-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* Status & Priority Badges */
.status-badge,
.priority-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.open {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.closed {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.priority-badge.low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Chat Styles */
.chat-window {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 80%;
    position: relative;
}

.chat-message.support {
    background: #334155;
    margin-right: auto;
    border-top-right-radius: 0;
}

.chat-message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-left: auto;
    border-top-left-radius: 0;
}

.message-sender {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 12px;
    color: #ffb84d;
}

.message-text {
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    color: #94a3b8;
    text-align: left;
    margin-top: 5px;
}

.message-input-container {
    display: flex;
    gap: 10px;
}

.message-input {
    flex: 1;
    padding: 12px 15px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
}

.send-message-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .chat-window {
        height: 350px;
        padding: 15px;
    }
    
    .chat-message {
        max-width: 90%;
        padding: 10px 12px;
    }
    
    .message-input-container {
        gap: 8px;
    }
    
    .message-input {
        padding: 10px 12px;
    }
    
    .send-message-btn {
        padding: 10px 15px;
    }
}

/* FAQ Styles */
.faq-search-container {
    margin-bottom: 20px;
}

.faq-search-input {
    width: 100%;
    padding: 12px 15px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    color: white;
}

.faq-categories {
    margin-bottom: 25px;
}

.categories-title {
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 1rem;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-category-btn {
    padding: 8px 15px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 20px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.faq-category-btn:hover {
    border-color: #ffb84d;
    color: #ffb84d;
}

.faq-category-btn.active {
    background: #ffb84d;
    border-color: #ffb84d;
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .categories-list {
        justify-content: center;
    }
    
    .faq-category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-content {
    flex: 1;
}

@media (max-width: 768px) {
    .contact-info-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-icon {
        margin-left: 0 !important;
    }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-small {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 3px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Back Button */
.back-to-support-btn {
    background: #475569;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-to-support-btn:hover {
    background: #64748b;
}

/* Utility Classes */
.hidden {
    display: none !important;
}
.ticket-message .message-content {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}