/* ---------------------------------
   NextGen Traders (NGT) Global CSS
   Version: 2.0
   Design: Premium, Dark, Gold Accent, 3D Effects
   Font: Yekan Bakh Fanum (Local)
--------------------------------- */

/* ===== LOCAL FONT: Yekan Bakh Fanum (optimized: 3 weights) ===== */
@font-face {
  font-family: 'YekanBakhFanum';
  src: url('fonts/Yekan_Bakh_Fanum_Regular.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakhFanum';
  src: url('fonts/Yekan_Bakh_Fanum_Semi_Bold.TTF') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YekanBakhFanum';
  src: url('fonts/Yekan_Bakh_Fanum_Bold.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* English font from Google */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #0a0a0a;
  --bg-color-light: #151515;
  --bg-color-lighter: #1e1e1e;
  
  --accent-gold: #C9A84C;
  --accent-gold-hover: #DFBC5B;
  --accent-gold-glow: rgba(201, 168, 76, 0.2);
  
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  
  --border-color: #2a2a2a;
  
  --font-heading: 'YekanBakhFanum', sans-serif;
  --font-body: 'YekanBakhFanum', sans-serif;
}

/* ===== DYNAMIC TIER THEMES (Task 7.2) ===== */
body.tier-silver {
  --accent-gold: #bdc3c7;
  --accent-gold-hover: #ecf0f1;
  --accent-gold-glow: rgba(189, 195, 199, 0.25);
  --bg-color-light: #14171d;
  --bg-color-lighter: #1c212b;
  --border-color: #2c3e50;
}
body.tier-silver .text-gold {
  color: #bdc3c7 !important;
}
body.tier-silver .btn-primary {
  background: linear-gradient(135deg, #bdc3c7 0%, #7f8c8d 100%) !important;
  color: #0a0a0a !important;
  box-shadow: 0 4px 15px rgba(189, 195, 199, 0.3) !important;
}

body.tier-gold {
  --accent-gold: #C9A84C;
  --accent-gold-hover: #DFBC5B;
  --accent-gold-glow: rgba(201, 168, 76, 0.25);
  --bg-color-light: #18150e;
  --bg-color-lighter: #241f12;
  --border-color: #3d3215;
}

body.tier-platinum {
  --accent-gold: #a29bfe;
  --accent-gold-hover: #fd79a8;
  --accent-gold-glow: rgba(162, 155, 254, 0.35);
  --bg-color: #0c0816;
  --bg-color-light: #160d26;
  --bg-color-lighter: #221438;
  --border-color: #3d1f5e;
}
body.tier-platinum .text-gold {
  color: #b084cc !important;
}
body.tier-platinum .btn-primary {
  background: linear-gradient(135deg, #8e44ad 0%, #6c5ce7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(142, 68, 173, 0.5) !important;
}
  --font-en: 'Outfit', sans-serif;
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

.en-text {
  font-family: var(--font-en);
  direction: ltr;
  display: inline-block;
}

/* Force English/Latin numerals everywhere */
input[type="number"],
input[type="text"].en-text,
input.en-text,
select.en-text,
textarea.en-text,
.en-text {
  font-feature-settings: "lnum" 1;
  -webkit-locale: "en";
}

input[type="number"] {
  direction: ltr !important;
  text-align: left;
}

/* Hide body until i18n is ready to prevent language flash */
body:not(.i18n-ready) {
  opacity: 0;
}
body.i18n-ready {
  opacity: 1;
  transition: opacity 0.15s ease;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------
   Utilities
--------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-gold {
  color: var(--accent-gold);
}

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

.section-padding {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8943f 100%);
  color: #000;
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid rgba(201, 168, 76, 0.5);
}

.btn-outline:hover {
  background-color: rgba(201, 168, 76, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

/* ---------------------------------
   Header & Navigation
--------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

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

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.3));
}

/* Sidebar logo (image-only, no text) */
.sidebar-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(201, 168, 76, 0.6));
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

nav {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}

nav a:hover {
  color: var(--accent-gold);
}

nav a.active {
  color: var(--accent-gold) !important;
  font-weight: 600;
}

/* nav a.active::after handled by effects.css */

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ---------------------------------
   Hero Section
--------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at center, var(--bg-color-lighter) 0%, var(--bg-color) 70%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, rgba(10,10,10,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-top: 80px;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}

.hero p.subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}



/* ---------------------------------
   Cards & Sections
--------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: linear-gradient(145deg, var(--bg-color-light) 0%, rgba(21,21,21,0.8) 100%);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.05);
}

.card-icon {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Service Card Aliases (maps to .card system) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: linear-gradient(160deg, rgba(21,21,21,1) 0%, rgba(15,15,15,0.95) 100%);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(201, 168, 76, 0.1);
}

.service-card::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(201, 168, 76, 0) 40%, 
    rgba(201, 168, 76, 0.3) 50%, 
    rgba(201, 168, 76, 0) 60%, 
    transparent 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-size: 200% 200%;
  animation: shimmer-move 3s linear infinite;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.15));
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--accent-gold);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Plan Cards */
.plan-card {
  background: var(--bg-color-light);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Section Title */
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  width: 100%;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.section {
  padding: 80px 0;
}

/* CRM Transparency Box */
.crm-box {
  background: linear-gradient(145deg, rgba(21,21,21,0.95) 0%, rgba(15,15,15,0.9) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 35px;
  position: relative;
  overflow: hidden;
}
.crm-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.crm-box h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--accent-gold);
}
.crm-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}
.crm-stat:last-child {
  border-bottom: none;
}
.crm-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

/* ---------------------------------
   Data/CRM Section
--------------------------------- */
.data-panel {
  background: var(--bg-color-light);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.data-item h4 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
  font-family: var(--font-en);
}

.data-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------------------------------
   Premium Comparison Table (Elite Club)
--------------------------------- */
.compare-section {
  background: linear-gradient(145deg, rgba(21,21,21,0.95) 0%, rgba(15,15,15,0.9) 100%);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 16px;
  padding: 45px;
  position: relative;
  overflow: hidden;
}
.compare-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.ngt-compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0 4px;
  table-layout: fixed;
}

.ngt-compare-table .feature-col {
  width: 40%;
  text-align: right;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  vertical-align: middle;
}

.ngt-compare-table .tier-col {
  width: 20%;
  text-align: center;
  padding: 16px 12px;
  font-size: 0.95rem;
  vertical-align: middle;
}

/* Tier header styling */
.tier-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Gold column highlight */
.ngt-compare-table .gold-col {
  background: rgba(201,168,76,0.06);
  position: relative;
}
.ngt-compare-table thead .gold-col {
  background: rgba(201,168,76,0.1);
  border-radius: 12px 12px 0 0;
}
.ngt-compare-table tbody tr:last-child .gold-col,
.ngt-compare-table .highlight-row .gold-col {
  border-radius: 0 0 12px 12px;
}

/* Row styling */
.ngt-compare-table thead th {
  padding: 20px 12px;
  font-weight: 600;
}
.ngt-compare-table tbody tr {
  transition: all 0.3s ease;
  border-radius: 8px;
}
.ngt-compare-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.015);
}
.ngt-compare-table tbody tr:hover {
  background: rgba(201,168,76,0.04);
}
.ngt-compare-table tbody tr:hover .feature-col {
  color: #fff;
}

/* Highlight last row */
.ngt-compare-table .highlight-row {
  border-top: 1px solid rgba(201,168,76,0.2);
}
.ngt-compare-table .highlight-row .feature-col {
  color: var(--accent-gold);
}

/* Check/Cross icons */
.check-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(85, 255, 85, 0.12);
  color: #55ff55;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(85, 255, 85, 0.25);
  box-shadow: 0 0 8px rgba(85, 255, 85, 0.1);
}

.check-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 85, 85, 0.08);
  color: rgba(255, 85, 85, 0.5);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 85, 85, 0.15);
}

/* Divider lines between rows */
.ngt-compare-table tbody tr + tr {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ---------------------------------
   Footer
--------------------------------- */
footer {
  background: var(--bg-color-light);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.trust-badge {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ---------------------------------
   Forms
--------------------------------- */
.form-group {
  margin-bottom: 20px;
  text-align: right;
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1), 0 0 15px rgba(201, 168, 76, 0.05);
  background: rgba(10, 10, 10, 1);
}

.form-control::placeholder {
  color: #555;
  font-size: 0.9rem;
}

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

/* ---------------------------------
   Dashboard Layouts
--------------------------------- */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg-color);
}

.sidebar {
  width: 280px;
  background: var(--bg-color-light);
  border-left: 1px solid var(--border-color); /* RTL */
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  text-align: center;
  margin-bottom: 15px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  border-right: 3px solid var(--accent-gold);
}

.main-panel {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.badge-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-en);
}
.badge-gold { background: rgba(201,168,76,0.1); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.badge-silver { background: rgba(192,192,192,0.1); color: #c0c0c0; border: 1px solid #c0c0c0; }
.badge-platinum { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid #fff; }

.stat-card {
  background: linear-gradient(145deg, var(--bg-color-light) 0%, rgba(21,21,21,0.6) 100%);
  border: 1px solid var(--border-color);
  padding: 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: rgba(201,168,76,0.2); }
.stat-card h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.stat-card .value { font-size: 1.8rem; font-family: var(--font-en); color: #fff; font-weight: 600; }


/* ---------------------------------
   Universal Data Table Fix
   All financial/data tables in user panel
   Must use dir="ltr" to fix RTL column order
--------------------------------- */
.ngt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ngt-table {
  width: 100%;
  border-collapse: collapse;
  direction: ltr !important;   /* Fix RTL column reversal */
  text-align: center;
  font-size: 0.88rem;
}

.ngt-table thead tr {
  border-bottom: 2px solid var(--border-color);
}

.ngt-table thead th {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.ngt-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.ngt-table tbody tr:last-child {
  border-bottom: none;
}

.ngt-table tbody tr:hover {
  background: rgba(201,168,76,0.04);
}

.ngt-table td {
  padding: 12px 14px;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
}

.ngt-table td.col-center,
.ngt-table th.col-center {
  text-align: center;
}

.ngt-table td.col-right,
.ngt-table th.col-right {
  text-align: right;
}

/* ---------------------------------
   AI Chatbot

--------------------------------- */
.ai-bot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #000;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(201,168,76,0.3);
  z-index: 9999;
  transition: var(--transition);
}
.ai-bot-toggle:hover { transform: scale(1.1); }

.ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: var(--bg-color-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
}

.ai-chat-header {
  background: rgba(10,10,10,0.9);
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-msg { max-width: 80%; padding: 10px 15px; border-radius: 8px; font-size: 0.9rem; }
.ai-msg.bot { background: rgba(201,168,76,0.1); border: 1px solid var(--accent-gold); align-self: flex-start; }
.ai-msg.user { background: #222; align-self: flex-end; }

.ai-chat-input {
  display: flex;
  border-top: 1px solid var(--border-color);
}
.ai-chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  color: #fff;
  direction: rtl;
}
.ai-chat-input input:focus { outline: none; }
.ai-chat-input button {
  background: var(--accent-gold);
  color: #000;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: bold;
}

/* ---------------------------------
   Responsive & Mobile Optimization
   Full Coverage: 320px → 2560px+
--------------------------------- */

/* ===== ULTRA-WIDE DESKTOP (1600px+) ===== */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
  .hero h1 { font-size: 4.5rem; }
  .hero p { font-size: 1.3rem; }
  .section-title { font-size: 2.8rem; }
  .cards-grid, .services-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== LARGE DESKTOP (1400px) ===== */
@media (max-width: 1400px) {
  nav ul { gap: 14px; }
  nav a { font-size: 0.85rem; }
}

/* ===== DASHBOARD RESPONSIVE (1200px) ===== */
@media (max-width: 1200px) {
  .dashboard-wrapper { flex-direction: column; height: auto; }
  .sidebar {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 15px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(10px);
  }
  .sidebar .logo { margin-bottom: 0; display: flex; align-items: center; gap: 10px; }
  .sidebar .logo-tagline { display: none; }
  .nav-links {
    flex-direction: row;
    overflow-x: auto;
    flex: 1;
    margin-right: 20px;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    white-space: nowrap;
    padding: 8px 12px;
    margin-left: 5px;
    border-right: none;
    border-bottom: 2px solid transparent;
  }
  .nav-links a.active, .nav-links a:hover {
    border-right: none;
    border-bottom: 2px solid var(--accent-gold);
    background: rgba(201,168,76,0.05);
  }
  .nav-links a[style*="margin-top"] { margin-top: 0 !important; margin-right: auto; }
  .main-panel { padding: 20px; }

  /* Header nav compression */
  nav ul { gap: 10px; }
  nav a { font-size: 0.82rem; }
}

/* ===== TABLET LANDSCAPE (992px) ===== */
@media (max-width: 1100px) {
  .hero h1 { font-size: 3rem; }
  .hero-content { padding-top: 100px; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
  .cards-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.9rem; }
  .section { padding: 60px 0; }

  /* Header: hide nav, show toggle */
  .header-container {
    flex-wrap: wrap;
    gap: 10px;
  }
  nav ul {
    position: fixed;
    top: 75px;
    right: -100%;
    left: auto;
    width: 100%;
    height: calc(100vh - 75px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
  }
  nav ul li { width: 100%; text-align: center; }
  nav ul li a {
    display: block;
    padding: 18px 20px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  nav ul.active { right: 0; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.3rem;
  }

  /* CRM box */
  .crm-box { padding: 25px; }
}

/* ===== TABLET PORTRAIT (768px) ===== */
@media (max-width: 768px) {
  /* Header reorganize */
  header { padding: 12px 0; }
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 10px;
  }
  .logo-container { grid-column: 1; grid-row: 1; }
  .logo { font-size: 1.2rem; }
  .logo-tagline { font-size: 0.65rem; }
  .header-container > .btn { 
    grid-column: 2;
    grid-row: 1;
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .menu-toggle { grid-column: 3; grid-row: 1; }

  /* Hero adjustments */
  .hero { min-height: 85vh; }
  .hero h1 { font-size: 2.2rem; line-height: 1.35; }
  .hero p { font-size: 1rem; }
  .hero-content { padding: 100px 10px 40px; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
  .hero-buttons .btn { width: 100%; text-align: center; padding: 14px; }
  .hero-glow { width: 350px; height: 350px; }

  /* Grid stacking */
  .data-grid { grid-template-columns: 1fr; }
  .cards-grid, .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; text-align: center; }

  /* Sections */
  .section { padding: 50px 0; }
  .section-title { font-size: 1.7rem; }
  .section-title::after { width: 40px; margin: 10px auto 0; }

  /* Feature list */
  .feature-list li { font-size: 0.9rem; padding: 12px 0; }

  /* CRM */
  .crm-box { padding: 20px; }
  .crm-stat { font-size: 0.88rem; padding: 12px 0; }
  .crm-value { font-size: 1.1rem; }

  /* Cards */
  .card { padding: 30px 20px; }
  .card h3 { font-size: 1.15rem; }
  .service-card { padding: 30px 20px; }
  .service-icon { font-size: 2.2rem; }

  /* AI Chat */
  .ai-chat-window { bottom: 80px; width: calc(100% - 30px); right: 15px; height: 60vh; }
  .ai-bot-toggle { bottom: 20px; right: 15px; width: 50px; height: 50px; font-size: 1.5rem; }

  /* Dashboard */
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar > div:last-child { align-self: flex-end; }

  /* Tables */
  div[style*="overflow: hidden;"] { overflow-x: auto !important; }
  table { min-width: 550px; }

  /* Footer */
  footer { padding: 40px 0 15px; }
  .footer-grid { margin-bottom: 25px; }

  /* Comparison / Flex layouts */
  div[style*="display: flex"][style*="flex-wrap: wrap"] { gap: 15px !important; }

  /* Plan cards in Elite Club */
  .plan-card { padding: 30px 20px; }
}

/* ===== MOBILE LARGE (576px) ===== */
@media (max-width: 576px) {
  .container { width: 94%; padding: 0 10px; }
  
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.92rem; margin-bottom: 25px; }
  .hero-content { padding: 90px 5px 30px; }
  
  .section-title { font-size: 1.5rem; }
  .section { padding: 40px 0; }
  
  /* Header */
  header { padding: 10px 0; }
  .logo { font-size: 1.1rem; letter-spacing: 0.5px; }
  .logo-tagline { font-size: 0.6rem; }
  .header-container > .btn {
    padding: 6px 10px;
    font-size: 0.72rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Stats */
  .stat-card { padding: 20px 15px; }
  .stat-card h4 { font-size: 0.82rem; }
  .stat-card .value { font-size: 1.6rem; }
  
  /* Forms */
  .form-control { padding: 12px 14px; font-size: 0.9rem; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  
  /* Dashboard main panel */
  .main-panel { padding: 15px; }
  .main-panel h2 { font-size: 1.25rem; }
  
  /* Topbar badge */
  .badge-status { font-size: 0.72rem; padding: 4px 10px; }

  /* Card icon */
  .card-icon { font-size: 1.8rem; }
}

/* ===== MOBILE (480px) ===== */
@media (max-width: 480px) {
  .container { width: 95%; padding: 0 8px; }
  
  .hero h1 { font-size: 1.7rem; letter-spacing: -0.3px; }
  .hero p { font-size: 0.88rem; }
  .hero-buttons .btn { padding: 13px; font-size: 0.9rem; }
  
  .section-title { font-size: 1.35rem; }
  
  /* Cards */
  .card, .stat-card, .plan-card { padding: 20px 15px; border-radius: 10px; }
  .card h3 { font-size: 1.1rem; }
  .service-card h3 { font-size: 1.1rem; }
  .service-icon { font-size: 2rem; margin-bottom: 12px; }
  
  /* CRM */
  .crm-box { padding: 18px; border-radius: 10px; }
  .crm-box h3 { font-size: 1.05rem; }
  .crm-stat { font-size: 0.82rem; }
  .crm-value { font-size: 1rem; }
  
  /* Footer */
  footer { padding: 30px 0 12px; }
  .footer-grid h4 { font-size: 1rem; }
  
  /* Login / Register pages */
  body > .container { padding: 0 12px; }
  
  /* AI Chat */
  .ai-chat-window { width: calc(100% - 20px); right: 10px; bottom: 75px; height: 55vh; }
  .ai-bot-toggle { bottom: 15px; right: 12px; width: 46px; height: 46px; font-size: 1.3rem; }
  .ai-msg { font-size: 0.82rem; max-width: 85%; }

  /* Nav menu items */
  nav ul li a { padding: 15px 20px; font-size: 1rem; }

  /* Dashboard sidebar on mobile */
  .sidebar { padding: 10px 12px; }
  .nav-links a { padding: 6px 10px; font-size: 0.8rem; }
}

/* ===== ULTRA-SMALL MOBILE (360px) ===== */
@media (max-width: 360px) {
  .container { width: 96%; padding: 0 5px; }
  
  .hero h1 { font-size: 1.5rem; line-height: 1.4; }
  .hero p { font-size: 0.82rem; }
  .hero-content { padding: 85px 5px 25px; max-width: 100%; }
  .hero-buttons .btn { padding: 12px; font-size: 0.85rem; }
  
  /* Header */
  header { padding: 8px 0; }
  .logo { font-size: 1rem; }
  .logo-tagline { display: none; }
  .header-container > .btn { padding: 5px 8px; font-size: 0.7rem; }
  .menu-toggle { width: 38px; height: 38px; font-size: 1.1rem; }
  
  .section-title { font-size: 1.25rem; }
  .section { padding: 35px 0; }
  
  /* Cards extreme compress */
  .card, .stat-card { padding: 16px 12px; }
  .card h3, .service-card h3 { font-size: 1rem; }
  .card p, .service-card p { font-size: 0.85rem; }
  .stat-card .value { font-size: 1.3rem; }
  .stat-card h4 { font-size: 0.78rem; }
  
  /* Buttons */
  .btn { padding: 10px 16px; font-size: 0.85rem; }
  
  /* Footer */
  footer { padding: 25px 0 10px; }

  /* Forms */
  .form-control { padding: 10px 12px; font-size: 0.85rem; }
  .form-group label { font-size: 0.85rem; }
}

/* ===== MINIMUM WIDTH (320px) ===== */
@media (max-width: 320px) {
  .hero h1 { font-size: 1.3rem; }
  .hero p { font-size: 0.78rem; }
  .logo { font-size: 0.9rem; }
  .section-title { font-size: 1.15rem; }
  .card, .stat-card { padding: 14px 10px; }
  .btn { padding: 9px 14px; font-size: 0.8rem; }
  .service-icon { font-size: 1.8rem; }
  nav ul li a { padding: 12px 15px; font-size: 0.95rem; }
}

/* ===== LANDSCAPE PHONE FIX ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-content { padding-top: 70px; }
  nav ul { top: 60px; height: calc(100vh - 60px); padding-top: 20px; }
  nav ul li a { padding: 10px 20px; }
}

/* ===== PRINT STYLES ===== */
@media print {
  header, footer, .ai-bot-toggle, .ai-chat-window, .menu-toggle, .scroll-top-btn, .lang-switcher { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 30px 0; }
  .card, .stat-card { border: 1px solid #ccc; box-shadow: none; }
}

