:root {
  --primary-color: #0056b3;
  --primary-light: #e6f0fa;
  --primary-dark: #003b7a;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --success-color: #27ae60;
  --warning-color: #e67e22;
  --error-color: #e74c3c;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --bg-light: #f8f9fa;
  --bg-dark: #242424;
  --border-color: #ddd;
  --border-radius: 8px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

body.rtl .container {
  direction: rtl;
  text-align: right;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-md) 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.logo span {
  font-weight: 400;
  opacity: 0.8;
}

nav {
  display: flex;
  align-items: center;
}

.language-switcher {
  display: flex;
  gap: var(--spacing-sm);
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

/* Hero Section */
.hero {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
}

.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Table Section */
.brokers-table {
  padding: var(--spacing-xxl) 0;
  background-color: white;
}

.brokers-table h2 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xl);
  color: var(--secondary-color);
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
}

th, td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

body.rtl th, 
body.rtl td {
  text-align: right;
}

th {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Broker Details */
.broker-details {
  padding: var(--spacing-xxl) 0;
  background-color: var(--bg-light);
}

.broker-details h2 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xl);
  color: var(--secondary-color);
}

.broker-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.broker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.broker-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.broker-card p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Conclusion */
.conclusion {
  padding: var(--spacing-xxl) 0;
  background-color: white;
}

.conclusion h2 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  color: var(--secondary-color);
}

.conclusion p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-medium);
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: var(--spacing-lg) 0;
  text-align: center;
}

footer p {
  opacity: 0.7;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .broker-card {
    padding: var(--spacing-md);
  }
  
  th, td {
    padding: var(--spacing-sm);
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.broker-card,
.conclusion p {
  animation: fadeIn 0.5s ease-out forwards;
}

.hero p {
  animation-delay: 0.2s;
}

.broker-card:nth-child(1) { animation-delay: 0.1s; }
.broker-card:nth-child(2) { animation-delay: 0.2s; }
.broker-card:nth-child(3) { animation-delay: 0.3s; }
.broker-card:nth-child(4) { animation-delay: 0.4s; }
.broker-card:nth-child(5) { animation-delay: 0.5s; }
.broker-card:nth-child(6) { animation-delay: 0.6s; }
.broker-card:nth-child(7) { animation-delay: 0.7s; }
.broker-card:nth-child(8) { animation-delay: 0.8s; }
.broker-card:nth-child(9) { animation-delay: 0.9s; }
.broker-card:nth-child(10) { animation-delay: 1s; }