/* ========================================
   English Learning Academy Saudi Arabia
   Premium Design System
   ======================================== */

:root {
  /* Colors */
  --navy-900: #0a1628;
  --navy-800: #0f2340;
  --navy-700: #16315a;
  --navy-600: #1e4080;
  --navy-500: #2a5298;
  --navy-400: #3a6bc0;
  --gold-500: #d4a017;
  --gold-400: #e6b338;
  --gold-300: #f0c75e;
  --gold-100: #faf0d4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --green-500: #16a34a;
  --green-400: #22c55e;
  --red-500: #dc2626;

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.35);
  --shadow-navy: 0 8px 30px rgba(15, 35, 64, 0.4);

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}

body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3, body[dir="rtl"] h4, body[dir="rtl"] h5 {
  font-family: var(--font-arabic);
  font-weight: 800;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section spacing */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all var(--t-base);
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.99);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--navy-900);
  flex-shrink: 0;
}

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

.logo-text strong {
  color: var(--white);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  color: var(--gold-400);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: var(--white);
  background: rgba(212, 160, 23, 0.15);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.5);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-600);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold-400);
  color: var(--gold-400);
}

.btn-outline:hover {
  background: var(--gold-400);
  color: var(--navy-900);
}

.btn-white {
  background: var(--white);
  color: var(--navy-800);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* WhatsApp button */
.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1eb855;
  transform: translateY(-2px);
}

/* Telegram button */
.btn-telegram {
  background: #2aabee;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-telegram:hover {
  background: #1b9ad6;
  color: #fff;
  transform: translateY(-2px);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(212,160,23,0.12);
  cursor: pointer;
  border: 1.5px solid rgba(212,160,23,0.5);
  font-size: 0.85rem;
  color: var(--gold-400);
  font-weight: 700;
  transition: all var(--t-fast);
  user-select: none;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(212,160,23,0.25);
  border-color: var(--gold-500);
  transform: scale(1.05);
}

.lang-toggle .lang-globe {
  font-size: 1rem;
  line-height: 1;
}

.lang-toggle .lang-current {
  min-width: 20px;
  text-align: center;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--t-base);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  overflow: hidden;
  padding-top: 76px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,160,23,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(42,82,152,0.3) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a017' fill-opacity='1'%3E%3Cpath d='M30 0l10 30-10 30L20 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 30px;
  color: var(--gold-300);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.8rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--gold-400);
  font-style: italic;
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  text-align: left;
}

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-400);
}

.hero-stat .label {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-card-img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-400));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-card-img::before {
  content: '\1F4DA';
  font-size: 5rem;
}

.hero-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hero-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero-card .mini-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card .mini-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.hero-card .mini-features li::before {
  content: '\2713';
  width: 22px;
  height: 22px;
  background: var(--green-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  animation: floatY 3s ease-in-out infinite;
}

.floating-badge .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.fb-1 { top: -20px; right: -10px; animation-delay: 0s; }
.fb-1 .icon { background: var(--gold-100); color: var(--gold-500); }

.fb-2 { bottom: 40px; left: -30px; animation-delay: 1.5s; }
.fb-2 .icon { background: #e0f2fe; color: #0284c7; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== COURSES GRID ========== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-slow);
  border: 1px solid var(--gray-200);
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-300);
}

.course-card-header {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.course-card-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-500);
}

.level-a1 { background: linear-gradient(135deg, #0f2340, #16315a); }
.level-a2 { background: linear-gradient(135deg, #16315a, #1e4080); }
.level-b1 { background: linear-gradient(135deg, #1e4080, #2a5298); }
.level-b2 { background: linear-gradient(135deg, #2a5298, #3a6bc0); }
.level-c1 { background: linear-gradient(135deg, #0a1628, #0f2340); }
.level-convo { background: linear-gradient(135deg, #d4a017, #e6b338); color: var(--navy-900); }
.level-convo::after { background: var(--navy-700); }
.level-business { background: linear-gradient(135deg, #0f2340, #16315a); }
.level-ielts { background: linear-gradient(135deg, #16315a, #d4a017); }
.level-employ { background: linear-gradient(135deg, #1e4080, #2a5298); }

.course-card-body {
  padding: 28px;
}

.course-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.course-level-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-100);
  color: var(--gold-500);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card-body p {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.course-meta span {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 600;
}

.course-meta .price {
  color: var(--navy-700);
  font-size: 1.05rem;
}

/* ========== FEATURES SECTION ========== */
.features-section {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card.gold .feature-icon {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(212,160,23,0.15) 0%, transparent 60%);
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.2rem;
  max-width: 600px;
}

.cta-banner p {
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  font-size: 1.05rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo { margin-bottom: 20px; }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact li .icon {
  color: var(--gold-400);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t-fast);
}

.social-links a:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
}

.footer-bottom a { color: var(--gold-400); }

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group label .req {
  color: var(--red-500);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: all var(--t-fast);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(30, 64, 128, 0.1);
}

.form-control.gold-focus:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.1);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

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

/* ========== PAGE HEADER (sub pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(212,160,23,0.1) 0%, transparent 50%);
}

.page-header-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.breadcrumb a { color: var(--gold-400); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ========== LEVEL TEST ========== */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.quiz-header {
  background: var(--navy-800);
  color: var(--white);
  padding: 32px;
  text-align: center;
}

.quiz-header h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.quiz-header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.quiz-progress {
  height: 6px;
  background: rgba(255,255,255,0.15);
  margin-top: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  width: 0%;
  transition: width var(--t-base);
}

.quiz-body {
  padding: 40px;
}

.quiz-question {
  display: none;
}

.quiz-question.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-question h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: 0.95rem;
}

.quiz-option:hover {
  border-color: var(--navy-400);
  background: var(--gray-50);
}

.quiz-option.selected {
  border-color: var(--gold-500);
  background: var(--gold-100);
  color: var(--navy-800);
  font-weight: 600;
}

.quiz-option .radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--t-fast);
}

.quiz-option.selected .radio {
  border-color: var(--gold-500);
}

.quiz-option.selected .radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 10px;
  background: var(--gold-500);
  border-radius: 50%;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.quiz-result {
  display: none;
  text-align: center;
  padding: 40px;
}

.quiz-result.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.result-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: conic-gradient(var(--gold-500) var(--deg, 0deg), var(--gray-200) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.result-circle::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  background: var(--white);
  border-radius: 50%;
}

.result-circle .level-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-800);
}

.result-level {
  font-size: 1.8rem;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.result-desc {
  color: var(--gray-500);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ========== PRICING ========== */
.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.pricing-toggle button {
  padding: 12px 32px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--gray-500);
}

.pricing-toggle button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pricing-toggle button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }

.pricing-toggle button.active {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--t-slow);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.pricing-card .featured-tag {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0 0 0 var(--radius-sm);
}

.pricing-header {
  background: var(--navy-800);
  padding: 32px;
  text-align: center;
  color: var(--white);
}

.pricing-card.featured .pricing-header {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}

.pricing-header h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pricing-header .price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-400);
}

.pricing-header .period {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.pricing-features {
  padding: 28px 32px;
}

.pricing-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

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

.pricing-features li::before {
  content: '\2713';
  width: 20px;
  height: 20px;
  background: var(--green-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-footer {
  padding: 0 32px 32px;
}

/* ========== DASHBOARD ========== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 76px);
}

.sidebar {
  background: var(--navy-900);
  padding: 30px 0;
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow-y: auto;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.sidebar-menu a.active {
  background: rgba(212,160,23,0.1);
  color: var(--gold-400);
  border-left-color: var(--gold-500);
}

.sidebar-menu a .icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.dashboard-main {
  padding: 40px;
  background: var(--gray-50);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  font-size: 1.8rem;
}

.dashboard-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-header .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-400));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.dash-card .info h4 {
  font-size: 1.6rem;
  color: var(--navy-800);
}

.dash-card .info p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.dash-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.dash-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}

/* Progress bar */
.progress-item {
  margin-bottom: 20px;
}

.progress-item:last-child { margin-bottom: 0; }

.progress-item .label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.progress-bar {
  height: 10px;
  background: var(--gray-100);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 5px;
  transition: width 1s ease;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th, .schedule-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}

.schedule-table th {
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.schedule-table .status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-upcoming { background: #dbeafe; color: #1d4ed8; }
.status-live { background: #dcfce7; color: #16a34a; }
.status-done { background: var(--gray-100); color: var(--gray-500); }

/* Announcement */
.announcement-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  margin-bottom: 12px;
}

.announcement-item .date {
  text-align: center;
  flex-shrink: 0;
  width: 50px;
}

.announcement-item .date .day {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-700);
  font-family: var(--font-heading);
}

.announcement-item .date .month {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
}

.announcement-item .content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.announcement-item .content p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gray-100);
}

.dash-tab {
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast);
}

.dash-tab.active {
  color: var(--navy-700);
  border-bottom-color: var(--gold-500);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ========== TABLES (admin) ========== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--t-fast);
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

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

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.pill-green { background: #dcfce7; color: #16a34a; }
.pill-blue { background: #dbeafe; color: #1d4ed8; }
.pill-gold { background: var(--gold-100); color: var(--gold-500); }
.pill-red { background: #fee2e2; color: #dc2626; }
.pill-gray { background: var(--gray-100); color: var(--gray-500); }

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy-800);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--t-base);
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-left: 4px solid var(--green-500); }
.toast.error { border-left: 4px solid var(--red-500); }

.toast .icon {
  font-size: 1.3rem;
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero h1 { font-size: 3rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 1.6rem; }
  .floating-badge { display: none; }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform var(--t-base);
    height: calc(100vh - 76px);
    overflow-y: auto;
    border-top: 1px solid rgba(212,160,23,0.15);
  }

  .nav.open { transform: translateX(0); }

  .nav a {
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
  }

  .nav-cta {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
  }

  .nav-cta .btn { width: 100%; }

  .menu-toggle { display: flex; }

  .nav-cta .lang-toggle { width: 100%; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .page-header h1 { font-size: 2rem; }

  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    padding: 16px 0;
  }
  .sidebar-menu { flex-direction: row; overflow-x: auto; }
  .sidebar-menu a {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }
  .sidebar-menu a.active { border-left: none; border-bottom-color: var(--gold-500); }
  .dashboard-main { padding: 20px; }
  .quiz-body { padding: 24px 20px; }
  .course-card-header { height: 100px; font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .section-title { font-size: 1.7rem; }
  .logo-text strong { font-size: 0.9rem; }
  .logo-text span { font-size: 0.65rem; }
  .logo-mark { width: 38px; height: 38px; }
}

/* ========================================
   RTL / Arabic Language Support
   ======================================== */

body[dir="rtl"] {
  font-family: var(--font-arabic);
  text-align: right;
}

body[dir="rtl"] .header-inner,
body[dir="rtl"] .nav,
body[dir="rtl"] .footer-grid,
body[dir="rtl"] .features-grid,
body[dir="rtl"] .courses-grid,
body[dir="rtl"] .pricing-grid,
body[dir="rtl"] .hero-inner,
body[dir="rtl"] .cta-banner-inner {
  direction: rtl;
}

body[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

body[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

body[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

body[dir="rtl"] .form-row {
  direction: rtl;
}

body[dir="rtl"] .breadcrumb {
  direction: rtl;
}

body[dir="rtl"] .quiz-nav {
  direction: rtl;
}

body[dir="rtl"] .course-meta {
  direction: rtl;
}

body[dir="rtl"] .hero-stats {
  direction: rtl;
}

body[dir="rtl"] .footer-bottom p {
  direction: rtl;
}

body[dir="rtl"] input,
body[dir="rtl"] textarea,
body[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}

body[dir="rtl"] .quiz-option {
  direction: rtl;
}

body[dir="rtl"] .pricing-features li {
  text-align: right;
}

body[dir="rtl"] .feature-card {
  text-align: right;
}

body[dir="rtl"] .course-card-body {
  text-align: right;
}

body[dir="rtl"] .dash-panel {
  text-align: right;
}

body[dir="rtl"] details summary {
  text-align: right;
}

body[dir="rtl"] .lang-toggle {
  direction: ltr;
}

/* RTL icon adjustments */
body[dir="rtl"] .footer-contact li,
body[dir="rtl"] .footer-links li {
  text-align: right;
}

body[dir="rtl"] .menu-toggle {
  margin-right: auto;
  margin-left: 0;
}

/* Smooth language transition */
body {
  transition: text-align 0.2s ease;
}

/* ========================================
   Language Hint Banner
   ======================================== */
.lang-hint {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--navy-700);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  font-size: 0.9rem;
  border: 1px solid rgba(212,160,23,0.4);
  animation: slideUpFade 0.4s ease;
  max-width: 320px;
}

.lang-hint .hint-icon {
  font-size: 1.4rem;
}

.lang-hint .hint-text {
  flex: 1;
  line-height: 1.4;
}

.lang-hint .hint-text strong {
  color: var(--gold-400);
}

.lang-hint .hint-btn {
  background: var(--gold-500);
  color: var(--navy-800);
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all var(--t-fast);
}

.lang-hint .hint-btn:hover {
  background: var(--gold-400);
  transform: scale(1.05);
}

.lang-hint .hint-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
}

.lang-hint .hint-close:hover {
  color: #fff;
}

body[dir="rtl"] .lang-hint {
  left: auto;
  right: 20px;
}

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

/* Arabic font for specific elements */
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
  font-family: var(--font-arabic);
}

body[dir="rtl"] .btn,
body[dir="rtl"] label,
body[dir="rtl"] .section-title,
body[dir="rtl"] .section-subtitle {
  font-family: var(--font-arabic);
}

/* Better Arabic text rendering */
body[dir="rtl"] {
  line-height: 1.9;
}

body[dir="rtl"] p {
  line-height: 1.9;
}

/* ========================================
   PREMIUM ENHANCEMENTS v2
   Payment UI, Dashboard Stats, Enhanced Cards
   ======================================== */

/* Premium stat cards */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.stat-card .stat-icon.gold { background: var(--gold-100); color: var(--gold-500); }
.stat-card .stat-icon.navy { background: rgba(30,64,128,0.1); color: var(--navy-600); }
.stat-card .stat-icon.green { background: rgba(22,163,74,0.1); color: var(--green-500); }
.stat-card .stat-icon.red { background: rgba(220,38,38,0.1); color: var(--red-500); }
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  font-family: var(--font-body);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Payment UI */
.payment-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.payment-modal.active { display: flex; }
.payment-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.payment-modal-content h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.payment-amount {
  text-align: center;
  margin: 24px 0;
}
.payment-amount .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy-900);
}
.payment-amount .currency {
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-left: 6px;
}
.payment-detail {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}
.payment-detail .label { color: var(--gray-500); }
.payment-detail .value { color: var(--navy-900); font-weight: 600; }

/* Payment badge */
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.payment-badge.pending { background: rgba(212,160,23,0.12); color: var(--gold-500); }
.payment-badge.paid { background: rgba(22,163,74,0.12); color: var(--green-500); }
.payment-badge.failed { background: rgba(220,38,38,0.12); color: var(--red-500); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: rgba(22,163,74,0.12); color: var(--green-500); }
.badge-warning { background: rgba(212,160,23,0.12); color: var(--gold-500); }
.badge-danger { background: rgba(220,38,38,0.12); color: var(--red-500); }
.badge-info { background: rgba(30,64,128,0.12); color: var(--navy-500); }

/* Premium table */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.premium-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--gray-50);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}
.premium-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.premium-table tbody tr {
  transition: background var(--t-fast);
}
.premium-table tbody tr:hover {
  background: var(--gray-50);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state .empty-text {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-bar input,
.search-bar select {
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border var(--t-fast);
}
.search-bar input:focus,
.search-bar select:focus {
  border-color: var(--navy-400);
}
.search-bar input { flex: 1; min-width: 200px; }

/* Premium course card */
.course-card-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  border: 1px solid var(--gray-100);
}
.course-card-premium:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.course-card-premium .card-banner {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.course-card-premium .card-banner .level-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-900);
}
.course-card-premium .card-body {
  padding: 24px;
}
.course-card-premium .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.course-card-premium .card-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card-premium .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.course-card-premium .card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
}
.course-card-premium .card-price .currency {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Notification item */
.notification-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
  border-bottom: 1px solid var(--gray-100);
}
.notification-item:hover { background: var(--gray-50); }
.notification-item.unread { background: rgba(212,160,23,0.04); }
.notification-item .notif-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.notification-item .notif-content { flex: 1; }
.notification-item .notif-title {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.notification-item .notif-body {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.notification-item .notif-time {
  font-size: 0.75rem;
  color: var(--gray-400);
}
.notification-item.unread .notif-title { color: var(--navy-600); }

/* Progress bar premium */
.progress-premium {
  height: 10px;
  background: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.progress-premium .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-premium .bar.complete {
  background: linear-gradient(90deg, var(--green-500), var(--green-400));
}

/* Lesson item */
.lesson-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: 12px;
  transition: all var(--t-fast);
  cursor: pointer;
}
.lesson-item:hover {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-sm);
}
.lesson-item.completed {
  background: rgba(22,163,74,0.03);
  border-color: rgba(22,163,74,0.2);
}
.lesson-item .lesson-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gray-500);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.lesson-item.completed .lesson-num {
  background: var(--green-500);
  color: var(--white);
}
.lesson-item .lesson-info { flex: 1; }
.lesson-item .lesson-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
}
.lesson-item .lesson-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Form premium */
.form-premium .form-group {
  margin-bottom: 20px;
}
.form-premium label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-premium input,
.form-premium select,
.form-premium textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--t-fast);
  background: var(--white);
}
.form-premium input:focus,
.form-premium select:focus,
.form-premium textarea:focus {
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(58,107,192,0.12);
}
.form-premium .error-msg {
  color: var(--red-500);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Tabs premium */
.tabs-premium {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs-premium .tab {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.tabs-premium .tab:hover { color: var(--navy-700); }
.tabs-premium .tab.active {
  color: var(--navy-900);
  border-bottom-color: var(--gold-500);
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .stat-card .stat-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .payment-modal-content { padding: 24px; }
  .payment-amount .amount { font-size: 2.2rem; }
  .premium-table { font-size: 0.8rem; }
  .premium-table th, .premium-table td { padding: 10px 8px; }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select { width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .tabs-premium .tab { padding: 10px 14px; font-size: 0.85rem; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(212,160,23,0.2);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy-900);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease;
  max-width: 400px;
}
.toast.success { background: var(--green-500); }
.toast.error { background: var(--red-500); }
.toast.warning { background: var(--gold-500); color: var(--navy-900); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-400));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.avatar-lg { width: 80px; height: 80px; font-size: 1.8rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; }

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-header h3 {
  font-size: 1.1rem;
  color: var(--navy-900);
}

/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 100;
  display: none;
  border: 1px solid var(--gray-100);
}
.dropdown.active .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--t-fast);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--gray-50); color: var(--navy-900); }

/* RTL for premium components */
body[dir="rtl"] .stat-card { text-align: right; }
body[dir="rtl"] .premium-table th { text-align: right; }
body[dir="rtl"] .payment-detail { direction: rtl; }
body[dir="rtl"] .notification-item { direction: rtl; }
body[dir="rtl"] .lesson-item { direction: rtl; }
body[dir="rtl"] .dropdown-menu { right: auto; left: 0; }
body[dir="rtl"] .toast { right: auto; left: 24px; }
body[dir="rtl"] .search-bar { direction: rtl; }
