/* ═══════════════════════════════════════════════════════════════
   components.css — بطاقات، فلاتر، جداول، شارات، أشرطة تقدم
   ═══════════════════════════════════════════════════════════════ */

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 48px;
}

.page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  font-weight: 800;
}

.page-subtitle {
  opacity: 0.7;
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 1.02rem;
}

/* ─── Glass Card (Neon) ─── */
.neon-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-normal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  perspective: 800px;
  overflow: hidden;
}

.neon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

[data-theme="light"] .neon-card {
  background: var(--glass-light);
  border: 1px solid var(--glass-border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.neon-card:hover {
  transform: translateY(-6px) rotateX(1.5deg) rotateY(-1.5deg);
  box-shadow: var(--shadow-neon), var(--shadow-card);
  border-color: rgba(0, 245, 255, 0.3);
}

.neon-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .neon-card:hover {
  box-shadow: var(--shadow-purple), 0 8px 40px rgba(0,0,0,0.08);
  border-color: rgba(157, 0, 255, 0.25);
}

/* ─── Card Internal ─── */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title {
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.card-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 500;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.85;
  margin: 10px 0 12px;
  font-size: 0.9rem;
}

.card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.15), transparent);
  margin: 14px 0;
}

[data-theme="light"] .card-divider {
  background: linear-gradient(90deg, transparent, rgba(157,0,255,0.12), transparent);
}

/* ─── VRAM/RAM Gauge ─── */
.gauge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 0.85rem;
}

.gauge-label {
  min-width: 52px;
  font-weight: 600;
  font-size: 0.78rem;
  opacity: 0.8;
}

.gauge-bar {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .gauge-bar {
  background: rgba(0, 0, 0, 0.06);
}

.gauge-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-neon);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.gauge-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: gaugeShimmer 2s infinite;
}

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

.gauge-value {
  min-width: 55px;
  text-align: end;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--neon);
}

[data-theme="light"] .gauge-value {
  color: var(--purple);
}

/* ─── Tier Indicator ─── */
.tier-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tier-small {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.tier-medium {
  background: rgba(255, 136, 0, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 136, 0, 0.2);
}

.tier-large {
  background: rgba(255, 51, 102, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.tier-cloud {
  background: rgba(0, 245, 255, 0.1);
  color: var(--neon);
  border: 1px solid rgba(0, 245, 255, 0.2);
}

/* ─── Badges ─── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--neon);
  background: rgba(0, 245, 255, 0.06);
  transition: all var(--transition-fast);
  letter-spacing: 0.3px;
}

.badge:hover {
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.1);
}

[data-theme="light"] .badge {
  border: 1px solid rgba(157, 0, 255, 0.15);
  color: rgba(100, 0, 160, 0.9);
  background: rgba(157, 0, 255, 0.04);
}

.badge--open {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.25);
  color: var(--accent-green);
}

.badge--closed {
  background: rgba(255, 51, 102, 0.08);
  border-color: rgba(255, 51, 102, 0.25);
  color: var(--accent-red);
}

.badge--moe {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.25);
  color: var(--accent-gold);
}

/* ─── Grid ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

/* ─── Toolbar / Filters ─── */
.toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0 18px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input, .select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.15);
  background: var(--glass-dark);
  color: inherit;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(8px);
}

.input:focus, .select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.08);
}

[data-theme="light"] .input,
[data-theme="light"] .select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(157, 0, 255, 0.12);
}

[data-theme="light"] .input:focus,
[data-theme="light"] .select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(157, 0, 255, 0.06);
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Buttons ─── */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.06);
  color: var(--neon);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn:hover {
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.12);
  transform: translateY(-1px);
}

[data-theme="light"] .btn {
  border-color: rgba(157, 0, 255, 0.2);
  background: rgba(157, 0, 255, 0.04);
  color: var(--purple);
}

.btn--primary {
  background: var(--gradient-neon);
  color: #fff;
  border: none;
}

.btn--primary:hover {
  box-shadow: 0 4px 24px rgba(0, 245, 255, 0.3);
}

/* ─── Muted & HR ─── */
.muted { opacity: 0.75; }

.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
  margin: 22px 0;
}

[data-theme="light"] .hr {
  background: linear-gradient(90deg, transparent, rgba(157, 0, 255, 0.08), transparent);
}

/* ─── Table ─── */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.12);
}

.table th, .table td {
  padding: 14px 16px;
  text-align: start;
  border-bottom: 1px solid rgba(0, 245, 255, 0.06);
  font-size: 0.9rem;
}

.table th {
  color: var(--neon);
  background: rgba(0, 245, 255, 0.04);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.table tr:hover td {
  background: rgba(0, 245, 255, 0.03);
}

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

[data-theme="light"] .table {
  border-color: rgba(157, 0, 255, 0.1);
}

[data-theme="light"] .table th {
  color: var(--purple);
  background: rgba(157, 0, 255, 0.04);
}

[data-theme="light"] .table th,
[data-theme="light"] .table td {
  border-bottom-color: rgba(157, 0, 255, 0.05);
}

/* ─── Accordion ─── */
.accordion-head {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-head::after {
  content: '▸';
  transition: transform var(--transition-normal);
  opacity: 0.5;
  font-size: 0.85rem;
}

.accordion-item.open .accordion-head::after {
  transform: rotate(90deg);
}

.accordion-item .accordion-body {
  display: none;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* ─── Card Details Button ─── */
.card-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.04);
  color: var(--neon);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.card-details-btn:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.12);
  transform: translateY(-1px);
}

[data-theme="light"] .card-details-btn {
  border-color: rgba(157, 0, 255, 0.2);
  color: var(--purple);
  background: rgba(157, 0, 255, 0.04);
}

.card-details-btn::after {
  content: '→';
  transition: transform var(--transition-fast);
}

[dir="rtl"] .card-details-btn::after {
  content: '←';
}

.card-details-btn:hover::after {
  transform: translateX(3px);
}

[dir="rtl"] .card-details-btn:hover::after {
  transform: translateX(-3px);
}

/* ─── Comparison Visual Bars ─── */
.compare-bar-wrapper {
  margin: 12px 0;
}

.compare-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.compare-bar {
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.compare-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-bar-fill--a {
  background: linear-gradient(90deg, var(--neon), rgba(0, 245, 255, 0.6));
}

.compare-bar-fill--b {
  background: linear-gradient(90deg, var(--purple), rgba(157, 0, 255, 0.6));
}

/* ─── Info/Spec List ─── */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 245, 255, 0.05);
  font-size: 0.9rem;
}

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

.spec-key {
  opacity: 0.7;
  font-weight: 500;
}

.spec-val {
  font-weight: 700;
  color: var(--neon);
}

[data-theme="light"] .spec-val {
  color: var(--purple);
}

/* ─── Empty / Loading States ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.6;
}

.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Pagination — ترقيم الصفحات ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 0;
}

.pagination .btn {
  min-width: 90px;
  text-align: center;
}

.pagination .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Favorites Button — زر المفضلة ─── */
.fav-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: color var(--transition-normal), transform var(--transition-fast);
  padding: 4px;
  line-height: 1;
}

[dir="rtl"] .fav-btn {
  left: auto;
  right: 12px;
}

.fav-btn:hover {
  color: var(--accent-gold);
  transform: scale(1.2);
}

.fav-btn.fav-active {
  color: var(--accent-gold);
}

[data-theme="light"] .fav-btn {
  color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .fav-btn:hover,
[data-theme="light"] .fav-btn.fav-active {
  color: var(--accent-orange);
}

/* ─── Breadcrumb — مسار التنقل ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  opacity: 0.7;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--neon);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

[data-theme="light"] .breadcrumb a {
  color: var(--purple);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  opacity: 1;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   Auth — نظام تسجيل الدخول
   ═══════════════════════════════════════════════════════════════ */

/* ─── Auth Area in Navbar ─── */
#authArea {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0, 245, 255, 0.3);
  object-fit: cover;
}

[data-theme="light"] .auth-avatar {
  border-color: rgba(157, 0, 255, 0.3);
}

.auth-name {
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-badge-premium {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--gradient-gold);
  color: #1a1a2e;
  letter-spacing: 0.5px;
}

.auth-login-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 245, 255, 0.25);
  background: rgba(0, 245, 255, 0.06);
  color: var(--neon);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.auth-login-btn:hover {
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.15);
}

[data-theme="light"] .auth-login-btn {
  border-color: rgba(157, 0, 255, 0.2);
  color: var(--purple);
  background: rgba(157, 0, 255, 0.04);
}

.auth-logout-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 51, 102, 0.2);
  background: rgba(255, 51, 102, 0.06);
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.auth-logout-btn:hover {
  background: rgba(255, 51, 102, 0.12);
}

/* ─── Auth Modal ─── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.auth-modal {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  animation: slideUp 0.3s ease;
}

[data-theme="light"] .auth-modal {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.auth-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

.auth-close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  color: inherit;
}

[dir="rtl"] .auth-close-btn {
  left: auto;
  right: 12px;
}

.auth-close-btn:hover {
  opacity: 1;
}

.auth-google-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.06);
  color: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-google-btn:hover {
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  opacity: 0.4;
  font-size: 0.85rem;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.15);
  background: var(--glass-dark);
  color: inherit;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: border-color var(--transition-normal);
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--neon);
}

[data-theme="light"] .auth-input {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(157, 0, 255, 0.12);
}

[data-theme="light"] .auth-input:focus {
  border-color: var(--purple);
}

.auth-email-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gradient-neon);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
  margin-top: 6px;
}

.auth-email-btn:hover {
  box-shadow: 0 4px 24px rgba(0, 245, 255, 0.3);
}

.auth-error {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.2);
  color: var(--accent-red);
  font-size: 0.85rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   Paywall — حاجز الاشتراك
   ═══════════════════════════════════════════════════════════════ */

.paywall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 40px 20px;
}

.paywall-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.paywall-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.paywall-desc {
  opacity: 0.7;
  margin-bottom: 24px;
  max-width: 400px;
  line-height: 1.7;
}

.paywall-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.06);
  color: var(--neon);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
  margin: 4px;
}

.paywall-btn:hover {
  background: rgba(0, 245, 255, 0.12);
}

.paywall-btn-primary {
  background: var(--gradient-neon);
  color: #fff;
  border: none;
}

.paywall-btn-primary:hover {
  box-shadow: 0 4px 24px rgba(0, 245, 255, 0.3);
}

.paywall-price {
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   Learn Page — صفحة التعلّم
   ═══════════════════════════════════════════════════════════════ */

.course-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-normal);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="light"] .course-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon), var(--shadow-card);
  border-color: rgba(0, 245, 255, 0.3);
}

[data-theme="light"] .course-card:hover {
  box-shadow: var(--shadow-purple), 0 8px 40px rgba(0,0,0,0.08);
  border-color: rgba(157, 0, 255, 0.25);
}

.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-level,
.badge-category,
.badge-free {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-free {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--accent-green);
}

.badge-beginner {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: var(--neon);
}

[data-theme="light"] .badge-beginner {
  color: #0088aa;
}

.badge-intermediate {
  background: rgba(255, 136, 0, 0.1);
  border: 1px solid rgba(255, 136, 0, 0.25);
  color: var(--accent-orange);
}

.badge-advanced {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.25);
  color: var(--accent-red);
}

.badge-category {
  background: rgba(157, 0, 255, 0.08);
  border: 1px solid rgba(157, 0, 255, 0.2);
  color: var(--purple);
}

[data-theme="light"] .badge-category {
  color: #7700cc;
}

.course-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.course-provider {
  font-size: 0.85rem;
  opacity: 0.65;
  font-weight: 500;
}

.course-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
  flex: 1;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  opacity: 0.6;
  margin-top: auto;
}

.course-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--gradient-neon);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-normal);
  border: none;
  margin-top: 6px;
}

.course-link-btn:hover {
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   Forum — المنتدى
   ═══════════════════════════════════════════════════════════════ */

.forum-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.forum-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forum-post-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .forum-post-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

.forum-post-card:hover {
  border-color: rgba(0, 245, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.08);
  transform: translateY(-2px);
}

[data-theme="light"] .forum-post-card:hover {
  border-color: rgba(157, 0, 255, 0.2);
  box-shadow: 0 4px 20px rgba(157, 0, 255, 0.06);
}

.forum-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.forum-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(0, 245, 255, 0.2);
}

.forum-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.forum-author-info {
  flex: 1;
  min-width: 0;
}

.forum-author-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.forum-post-date {
  font-size: 0.78rem;
  opacity: 0.5;
}

.forum-category-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--neon);
}

[data-theme="light"] .forum-category-badge {
  background: rgba(157, 0, 255, 0.06);
  border-color: rgba(157, 0, 255, 0.15);
  color: var(--purple);
}

.forum-post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.forum-post-body {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.75;
  margin-bottom: 12px;
}

.forum-post-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.forum-action-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: all var(--transition-fast);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.forum-action-btn:hover {
  opacity: 1;
  color: var(--neon);
}

[data-theme="light"] .forum-action-btn:hover {
  color: var(--purple);
}

.forum-action-btn.liked {
  color: var(--accent-red);
  opacity: 1;
}

.forum-delete-btn {
  color: #ff4757;
  opacity: 0.6;
  margin-inline-start: auto;
}

.forum-delete-btn:hover {
  opacity: 1;
  color: #ff2233;
}

/* ─── Forum New Post Modal ─── */
.forum-new-post-modal {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-new-post-modal h2 {
  margin-bottom: 12px;
  font-weight: 800;
  text-align: center;
}

.forum-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.15);
  background: var(--glass-dark);
  color: inherit;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color var(--transition-normal);
  box-sizing: border-box;
}

.forum-textarea:focus {
  border-color: var(--neon);
}

[data-theme="light"] .forum-textarea {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(157, 0, 255, 0.12);
}

[data-theme="light"] .forum-textarea:focus {
  border-color: var(--purple);
}

.forum-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ─── Forum Detail Modal ─── */
.forum-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.forum-detail-content {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  animation: slideUp 0.3s ease;
}

[data-theme="light"] .forum-detail-content {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

.forum-detail-body {
  line-height: 1.8;
  margin: 16px 0;
  white-space: pre-wrap;
}

.forum-replies {
  margin-top: 24px;
  border-top: 1px solid rgba(0, 245, 255, 0.1);
  padding-top: 16px;
}

.forum-replies h4 {
  margin-bottom: 14px;
  font-weight: 700;
}

.forum-reply {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.08);
  margin-bottom: 10px;
}

[data-theme="light"] .forum-reply {
  background: rgba(157, 0, 255, 0.03);
  border-color: rgba(157, 0, 255, 0.08);
}

.forum-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.forum-reply-body {
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.forum-reply-input-area {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.forum-reply-input-area .forum-textarea {
  min-height: 60px;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   Chat / Ask AI — اسأل المنصة
   ═══════════════════════════════════════════════════════════════ */

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  max-height: 700px;
  border-radius: var(--radius-xl);
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

[data-theme="light"] .chat-container {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
  font-weight: 700;
}

[data-theme="light"] .chat-header {
  border-bottom-color: rgba(157, 0, 255, 0.08);
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-box::-webkit-scrollbar {
  width: 6px;
}

.chat-box::-webkit-scrollbar-track {
  background: transparent;
}

.chat-box::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.15);
  border-radius: var(--radius-full);
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: slideUp 0.3s ease;
}

.chat-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-assistant {
  align-self: flex-start;
}

.chat-system {
  align-self: center;
  max-width: 60%;
}

.chat-error {
  align-self: center;
}

.chat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-user .chat-icon {
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.chat-assistant .chat-icon {
  background: rgba(157, 0, 255, 0.12);
  border: 1px solid rgba(157, 0, 255, 0.2);
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  line-height: 1.7;
  font-size: 0.92rem;
  position: relative;
}

.chat-user .chat-bubble {
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.15);
}

[data-theme="light"] .chat-user .chat-bubble {
  background: rgba(0, 120, 180, 0.06);
  border-color: rgba(0, 120, 180, 0.15);
}

.chat-assistant .chat-bubble {
  background: rgba(157, 0, 255, 0.06);
  border: 1px solid rgba(157, 0, 255, 0.12);
}

[data-theme="light"] .chat-assistant .chat-bubble {
  background: rgba(157, 0, 255, 0.04);
  border-color: rgba(157, 0, 255, 0.12);
}

.chat-system .chat-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

.chat-error .chat-bubble {
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
}

.chat-bubble a {
  color: var(--neon);
  text-decoration: underline;
}

[data-theme="light"] .chat-bubble a {
  color: var(--purple);
}

.chat-copy-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: inherit;
}

[dir="rtl"] .chat-copy-btn {
  left: auto;
  right: 6px;
}

.chat-bubble:hover .chat-copy-btn {
  opacity: 0.6;
}

.chat-copy-btn:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.15);
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0.4;
  animation: typingDot 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(0, 245, 255, 0.08);
  align-items: flex-end;
}

[data-theme="light"] .chat-input-area {
  border-top-color: rgba(157, 0, 255, 0.08);
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 245, 255, 0.15);
  background: rgba(0, 245, 255, 0.03);
  color: inherit;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  resize: none;
  max-height: 120px;
  transition: border-color var(--transition-normal);
}

.chat-input:focus {
  border-color: var(--neon);
}

[data-theme="light"] .chat-input {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(157, 0, 255, 0.12);
}

[data-theme="light"] .chat-input:focus {
  border-color: var(--purple);
}

.chat-send-btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gradient-neon);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
  white-space: nowrap;
}

.chat-send-btn:hover {
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   Pricing — صفحة الأسعار
   ═══════════════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

.pricing-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: blur(16px);
  transition: all var(--transition-slow);
  position: relative;
}

[data-theme="light"] .pricing-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

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

[data-theme="light"] .pricing-card:hover {
  box-shadow: var(--shadow-purple);
}

.pricing-card-featured {
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
  transform: scale(1.03);
}

[data-theme="light"] .pricing-card-featured {
  border-color: rgba(157, 0, 255, 0.3);
}

.pricing-card-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: var(--radius-full);
  background: var(--gradient-neon);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
}

[data-theme="light"] .pricing-header {
  border-bottom-color: rgba(157, 0, 255, 0.08);
}

.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-currency {
  font-size: 0.9rem;
  opacity: 0.6;
  font-weight: 600;
}

.pricing-equiv {
  font-size: 0.82rem;
  opacity: 0.5;
  margin-top: 4px;
  text-align: center;
}

.pricing-save {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.04);
}

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

.pricing-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.06);
  color: var(--neon);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
  text-align: center;
  text-decoration: none;
}

.pricing-btn:hover {
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.12);
}

[data-theme="light"] .pricing-btn {
  border-color: rgba(157, 0, 255, 0.2);
  color: var(--purple);
  background: rgba(157, 0, 255, 0.04);
}

.pricing-btn--primary {
  background: var(--gradient-neon);
  color: #fff;
  border: none;
}

.pricing-btn--primary:hover {
  box-shadow: 0 4px 24px rgba(0, 245, 255, 0.3);
}

/* ─── Pricing FAQ ─── */
.pricing-faq {
  margin-top: 48px;
  max-width: 700px;
  margin-inline: auto;
}

.pricing-faq h2 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 800;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

[data-theme="light"] .faq-item {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

.faq-item:hover {
  border-color: rgba(0, 245, 255, 0.2);
}

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '▸';
  transition: transform var(--transition-normal);
  opacity: 0.5;
}

.faq-item.open .faq-question::after {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  line-height: 1.7;
  opacity: 0.8;
  font-size: 0.92rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Animations — تحريكات مساعدة
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ═══════════════════════════════════════════════════════════════
   Guide Page — مرشد اختيار النموذج
   ═══════════════════════════════════════════════════════════════ */

.guide-hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.guide-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ─── سيناريوهات سريعة ─── */
.quick-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.scenario-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  text-align: start;
  width: 100%;
}

.scenario-card:hover {
  border-color: var(--neon);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 200, 255, 0.15);
}

.scenario-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.scenario-text {
  flex: 1;
  font-weight: 600;
}

.scenario-arrow {
  font-size: 1.2rem;
  color: var(--neon);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.scenario-card:hover .scenario-arrow {
  opacity: 1;
  transform: translateX(-4px);
}

[dir="ltr"] .scenario-card:hover .scenario-arrow {
  transform: translateX(4px);
}

/* ─── الويزارد ─── */
.wizard-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  min-height: 400px;
}

/* شريط التقدم */
.wizard-progress {
  margin-bottom: 2rem;
}

.wizard-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.wizard-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.dot-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--muted);
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
}

.wizard-step-dot.active .dot-number {
  background: var(--gradient-neon);
  color: #fff;
  border-color: var(--neon);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.4);
}

.wizard-step-dot.completed .dot-number {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

.dot-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.wizard-step-dot.active .dot-label {
  color: var(--neon);
}

/* أسئلة الويزارد */
.wizard-question {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.wizard-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* شبكة الخيارات (cards) */
.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.wizard-options-3col {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.wizard-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--glass-border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  color: var(--text);
}

.wizard-option-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 200, 255, 0.1);
}

.wizard-option-card.selected {
  border-color: var(--neon);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(139, 92, 246, 0.08));
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.wizard-option-card .option-icon {
  font-size: 2.2rem;
}

.wizard-option-card .option-label {
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

/* قائمة الخيارات (rows) */
.wizard-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wizard-option-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--glass-border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  color: var(--text);
  text-align: start;
  width: 100%;
}

.wizard-option-row:hover {
  border-color: var(--neon);
  transform: translateX(4px);
}

[dir="rtl"] .wizard-option-row:hover {
  transform: translateX(-4px);
}

.wizard-option-row.selected {
  border-color: var(--neon);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(139, 92, 246, 0.08));
}

.wizard-option-row .option-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.wizard-option-row .option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wizard-option-row .option-label {
  font-weight: 700;
  font-size: 1rem;
}

.wizard-option-row .option-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

.wizard-option-row .option-check {
  font-size: 1.2rem;
  color: var(--neon);
  font-weight: 800;
  min-width: 24px;
  text-align: center;
}

/* ─── النتائج ─── */
.wizard-results {
  padding: 1rem 0;
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.results-header p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.wizard-restart-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--neon);
  background: transparent;
  color: var(--neon);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.wizard-restart-btn:hover {
  background: var(--neon);
  color: #fff;
}

/* المنصة (Top 3) */
.results-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.result-card {
  background: var(--surface);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  position: relative;
  animation: slideUp 0.5s ease both;
  transition: all 0.3s;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 200, 255, 0.12);
  border-color: var(--neon);
}

.result-card.podium-card {
  border-color: rgba(0, 200, 255, 0.3);
  background: linear-gradient(135deg, var(--surface), rgba(0, 200, 255, 0.04));
}

.result-card[data-rank="1"] {
  border-color: #fbbf24;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.15);
}

.result-medal {
  position: absolute;
  top: -12px;
  right: -8px;
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

[dir="ltr"] .result-medal {
  right: auto;
  left: -8px;
}

/* حلقة النسبة */
.result-score-ring {
  width: 80px;
  height: 80px;
  position: relative;
}

.result-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.result-score-ring.score-high { --ring-color: #22c55e; --ring-bg: rgba(34, 197, 94, 0.15); }
.result-score-ring.score-mid  { --ring-color: #f59e0b; --ring-bg: rgba(245, 158, 11, 0.15); }
.result-score-ring.score-low  { --ring-color: #ef4444; --ring-bg: rgba(239, 68, 68, 0.15); }

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.result-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.result-provider {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.result-badges .badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-type { background: rgba(0, 200, 255, 0.12); color: var(--neon); }
.badge-open { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.badge-closed { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.badge-params { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.badge-ctx { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.result-notes {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.result-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--gradient-neon);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
}

.result-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 200, 255, 0.3);
}

.results-more-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.results-grid .result-card {
  padding: 1.25rem;
}

.results-grid .result-score-ring {
  width: 60px;
  height: 60px;
}

.results-grid .score-text {
  font-size: 0.9rem;
}

/* ملخص الاختيارات */
.results-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.results-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.summary-tag {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── نصائح ─── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tip-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.tip-card:hover {
  border-color: var(--neon);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 200, 255, 0.08);
}

.tip-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.tip-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tip-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── تحريكات ─── */
.fade-in {
  animation: fadeIn 0.4s ease;
}

.fade-in-up {
  animation: slideUp 0.5s ease both;
}

.no-results {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  padding: 2rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .wizard-container { padding: 1.25rem; }
  .wizard-question { font-size: 1.15rem; }
  .wizard-options-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .wizard-option-card { padding: 1rem 0.75rem; }
  .wizard-option-card .option-icon { font-size: 1.8rem; }
  .wizard-option-card .option-label { font-size: 0.82rem; }
  .results-podium { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .wizard-steps-indicator { gap: 0.25rem; }
  .dot-label { font-size: 0.65rem; }
  .dot-number { width: 30px; height: 30px; font-size: 0.75rem; }
  .quick-scenarios-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — إصلاحات الموبايل
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .auth-name { display: none; }
  .chat-message { max-width: 95%; }
  .chat-container { height: calc(100vh - 150px); }
  .forum-toolbar { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   Guide Result — صفحة نتائج السيناريو التفصيلية
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.gr-hero {
  text-align: center;
  padding: 3.5rem 2rem 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(var(--scenario-color-rgb, 0, 200, 255), 0.12),
    rgba(157, 0, 255, 0.08)
  );
  border: 1px solid rgba(var(--scenario-color-rgb, 0, 200, 255), 0.2);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.gr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--scenario-color-rgb, 0, 200, 255), 0.15), transparent 70%);
  pointer-events: none;
}

.gr-hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(var(--scenario-color-rgb, 0, 200, 255), 0.4));
  animation: float 3s ease-in-out infinite;
}

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

.gr-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.gr-hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.gr-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.gr-back-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ─── Sections ─── */
.gr-section {
  margin-bottom: 2.5rem;
}

.gr-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gr-section-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ─── Intro Box ─── */
.gr-intro-box {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  line-height: 1.8;
  font-size: 1.05rem;
  backdrop-filter: blur(12px);
}

[data-theme="light"] .gr-intro-box {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

/* ─── Features Grid ─── */
.gr-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.gr-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(8px);
}

.gr-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

[data-theme="light"] .gr-feature-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .gr-feature-card:hover {
  box-shadow: var(--shadow-purple);
}

.gr-feature-icon {
  font-size: 2rem;
}

.gr-feature-label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ─── Tips List ─── */
.gr-tips-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gr-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  animation: slideUp 0.4s ease both;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gr-tip-item:hover {
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.1);
}

[data-theme="light"] .gr-tip-item {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .gr-tip-item:hover {
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(157, 0, 255, 0.1);
}

.gr-tip-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.gr-tip-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.gr-tip-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Top 3 Models ─── */
.gr-top3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gr-top3-card {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.gr-top3-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s;
}

.gr-top3-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-neon);
}

.gr-top3-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .gr-top3-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .gr-top3-card:hover {
  box-shadow: var(--shadow-purple);
}

/* ─── أوّل بطاقة (المركز الأول) تأثير ذهبي ─── */
.gr-top3-card:first-child {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), var(--glass-dark));
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.08);
}

.gr-top3-card:first-child::before {
  background: var(--gradient-gold);
  opacity: 1;
}

.gr-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gr-medal {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
}

.gr-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  border: 3px solid;
}

.gr-score-badge.score-green {
  color: var(--accent-green);
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.1);
}

.gr-score-badge.score-yellow {
  color: var(--accent-gold);
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.1);
}

.gr-score-badge.score-orange {
  color: var(--accent-orange);
  border-color: rgba(255, 136, 0, 0.4);
  background: rgba(255, 136, 0, 0.1);
}

.gr-score-badge.score-red {
  color: var(--accent-red);
  border-color: rgba(255, 51, 102, 0.4);
  background: rgba(255, 51, 102, 0.1);
}

.gr-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gr-card-provider {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}

.gr-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.gr-card-badges span {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--neon);
}

[data-theme="light"] .gr-card-badges span {
  background: rgba(157, 0, 255, 0.08);
  border-color: rgba(157, 0, 255, 0.15);
  color: var(--purple);
}

.gr-card-notes {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.gr-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gr-meta-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--accent-green);
}

.gr-card-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neon);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: var(--radius-full);
  transition: background 0.2s, transform 0.2s;
}

.gr-card-link:hover {
  background: rgba(0, 245, 255, 0.1);
  transform: translateY(-2px);
}

[data-theme="light"] .gr-card-link {
  color: var(--purple);
  border-color: rgba(157, 0, 255, 0.3);
}

[data-theme="light"] .gr-card-link:hover {
  background: rgba(157, 0, 255, 0.08);
}

/* ─── Models Table ─── */
.gr-more-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--muted);
}

.gr-models-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .gr-models-table {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

.gr-models-table th {
  padding: 0.85rem 1rem;
  text-align: start;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--glass-border-dark);
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .gr-models-table th {
  border-bottom-color: var(--glass-border-light);
  background: rgba(0, 0, 0, 0.04);
}

.gr-models-table td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .gr-models-table td {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

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

.gr-models-table tr:hover td {
  background: rgba(0, 245, 255, 0.03);
}

[data-theme="light"] .gr-models-table tr:hover td {
  background: rgba(157, 0, 255, 0.03);
}

.gr-table-score {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
}

.gr-table-score.score-green {
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.12);
}

.gr-table-score.score-yellow {
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.12);
}

.gr-table-score.score-orange {
  color: var(--accent-orange);
  background: rgba(255, 136, 0, 0.12);
}

.gr-table-score.score-red {
  color: var(--accent-red);
  background: rgba(255, 51, 102, 0.12);
}

.gr-table-link {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.gr-table-link:hover {
  text-decoration: underline;
}

[data-theme="light"] .gr-table-link {
  color: var(--purple);
}

/* ─── FAQ ─── */
.gr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gr-faq-item {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

.gr-faq-item:hover {
  border-color: var(--neon);
}

[data-theme="light"] .gr-faq-item {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .gr-faq-item:hover {
  border-color: var(--purple);
}

.gr-faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.2s;
}

.gr-faq-item summary::-webkit-details-marker {
  display: none;
}

.gr-faq-item summary::after {
  content: '▼';
  font-size: 0.7rem;
  margin-inline-start: auto;
  transition: transform 0.3s;
  color: var(--muted);
}

.gr-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.gr-faq-item summary:hover {
  background: rgba(0, 245, 255, 0.04);
}

[data-theme="light"] .gr-faq-item summary:hover {
  background: rgba(157, 0, 255, 0.04);
}

.gr-faq-item p {
  padding: 0 1.25rem 1rem;
  line-height: 1.7;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ─── CTA Section ─── */
.gr-cta-section {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
}

[data-theme="light"] .gr-cta-section {
  border-color: var(--glass-border-light);
}

.gr-cta-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.gr-cta-section p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.gr-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gr-cta-buttons .cta-btn {
  font-size: 0.9rem;
}

/* ─── Not Found ─── */
.gr-not-found {
  text-align: center;
  padding: 5rem 2rem;
}

.gr-not-found h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gr-not-found p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ─── Guide Result Responsive ─── */
@media (max-width: 768px) {
  .gr-hero { padding: 2.5rem 1.25rem 2rem; }
  .gr-hero-icon { font-size: 3rem; }
  .gr-hero-title { font-size: 1.6rem; }
  .gr-hero-subtitle { font-size: 1rem; }
  .gr-features-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gr-top3-grid { grid-template-columns: 1fr; }
  .gr-tip-item { flex-direction: column; align-items: center; text-align: center; }
  .gr-models-table { font-size: 0.82rem; }
  .gr-models-table th,
  .gr-models-table td { padding: 0.6rem 0.75rem; }
  .gr-cta-buttons { flex-direction: column; align-items: center; }
}


/* ═══════════════════════════════════════════════════════════════
   Homepage Premium — الصفحة الرئيسية المطوّرة
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero Badge ─── */
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--neon);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: slideUp 0.6s ease both;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .hero-badge {
  background: rgba(157, 0, 255, 0.08);
  border-color: rgba(157, 0, 255, 0.2);
  color: var(--purple);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 0.5rem;
  line-height: 1.8;
  animation: slideUp 0.8s ease both;
  animation-delay: 0.2s;
}

/* ─── Vision Banner ─── */
.hp-vision {
  padding: 2rem 0;
}

.hp-vision-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.06), rgba(157, 0, 255, 0.06));
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .hp-vision-inner {
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.04), rgba(0, 200, 255, 0.04));
  border-color: rgba(157, 0, 255, 0.12);
}

.hp-vision-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.hp-vision-text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-vision-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ─── Why AI INFRA ─── */
.hp-why {
  padding: 3rem 0;
}

.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hp-why-card {
  padding: 2rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.hp-why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s;
}

.hp-why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-neon);
  border-color: rgba(0, 245, 255, 0.3);
}

.hp-why-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .hp-why-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .hp-why-card:hover {
  box-shadow: var(--shadow-purple);
  border-color: rgba(157, 0, 255, 0.3);
}

.hp-why-num {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hp-why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hp-why-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Platform Journey ─── */
.hp-journey {
  padding: 3rem 0;
}

.hp-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

/* خط اتصال بين الخطوات */
.hp-journey-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--purple), transparent);
  opacity: 0.2;
  z-index: 0;
}

[dir="rtl"] .hp-journey-grid::before {
  background: linear-gradient(270deg, transparent, var(--neon), var(--purple), transparent);
}

.hp-journey-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.hp-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gradient-neon);
  color: #0a0a12;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.hp-step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hp-journey-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hp-journey-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hp-step-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neon);
  text-decoration: none;
  transition: opacity 0.2s;
}

.hp-step-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

[data-theme="light"] .hp-step-link {
  color: var(--purple);
}

/* ─── Mission Section ─── */
.hp-mission {
  padding: 3rem 0;
}

.hp-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.hp-mission-card {
  padding: 2.5rem 2rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hp-mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

[data-theme="light"] .hp-mission-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .hp-mission-card:hover {
  box-shadow: var(--shadow-purple);
}

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

.hp-mission-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hp-mission-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── Homepage CTA ─── */
.hp-cta {
  padding: 3rem 0;
}

.hp-cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(157, 0, 255, 0.08));
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .hp-cta-inner {
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.05), rgba(0, 200, 255, 0.05));
  border-color: rgba(157, 0, 255, 0.12);
}

.hp-cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hp-cta-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hp-cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   About Page Premium — صفحة عن المنصة المطوّرة
   ═══════════════════════════════════════════════════════════════ */

/* ─── About Hero ─── */
.ab-hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem 4rem;
  margin-top: 60px;
  overflow: hidden;
}

.ab-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 245, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(157, 0, 255, 0.1), transparent 50%);
  pointer-events: none;
}

[data-theme="light"] .ab-hero-bg {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(157, 0, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 200, 255, 0.06), transparent 50%);
}

.ab-hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--neon);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: slideUp 0.5s ease both;
}

[data-theme="light"] .ab-hero-badge {
  background: rgba(157, 0, 255, 0.08);
  border-color: rgba(157, 0, 255, 0.2);
  color: var(--purple);
}

.ab-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 3px;
  animation: slideUp 0.6s ease both;
  animation-delay: 0.1s;
}

.ab-hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  animation: slideUp 0.7s ease both;
  animation-delay: 0.2s;
}

/* ─── About Section ─── */
.ab-section {
  padding: 3rem 0;
}

/* ─── Mission / Vision / Values ─── */
.ab-mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ab-mv-card {
  padding: 2.5rem 2rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ab-mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-neon);
}

[data-theme="light"] .ab-mv-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .ab-mv-card:hover {
  box-shadow: var(--shadow-purple);
}

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

.ab-mv-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ab-mv-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── Story Section ─── */
.ab-story {
  padding: 3rem 0;
  background: var(--gradient-card);
}

.ab-story-content {
  max-width: 800px;
  margin: 2rem auto 0;
}

.ab-story-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.ab-story-text p:first-child::first-letter {
  font-size: 2.5rem;
  font-weight: 800;
  float: right;
  margin-left: 0.5rem;
  margin-top: 0.1rem;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

[dir="ltr"] .ab-story-text p:first-child::first-letter {
  float: left;
  margin-left: 0;
  margin-right: 0.5rem;
}

/* ─── Benefits Grid ─── */
.ab-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ab-benefit-card {
  padding: 2rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ab-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
  border-color: rgba(0, 245, 255, 0.3);
}

[data-theme="light"] .ab-benefit-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .ab-benefit-card:hover {
  box-shadow: var(--shadow-purple);
  border-color: rgba(157, 0, 255, 0.3);
}

.ab-benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.ab-benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ab-benefit-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Goals Timeline ─── */
.ab-goals {
  padding: 3rem 0;
  background: var(--gradient-card);
}

.ab-goals-timeline {
  max-width: 750px;
  margin: 2.5rem auto 0;
  position: relative;
  padding-right: 3rem;
}

[dir="ltr"] .ab-goals-timeline {
  padding-right: 0;
  padding-left: 3rem;
}

/* خط زمني عمودي */
.ab-goals-timeline::before {
  content: '';
  position: absolute;
  right: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon), var(--purple), transparent);
  opacity: 0.3;
}

[dir="ltr"] .ab-goals-timeline::before {
  right: auto;
  left: 14px;
}

.ab-goal-item {
  position: relative;
  margin-bottom: 2rem;
}

.ab-goal-marker {
  position: absolute;
  right: -3rem;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 1;
}

[dir="ltr"] .ab-goal-marker {
  right: auto;
  left: -3rem;
}

.ab-goal-done {
  background: rgba(0, 255, 136, 0.2);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
}

.ab-goal-current {
  background: rgba(0, 245, 255, 0.2);
  border: 2px solid var(--neon);
  color: var(--neon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(0, 245, 255, 0); }
}

.ab-goal-future {
  background: rgba(157, 0, 255, 0.2);
  border: 2px solid var(--purple);
  color: var(--purple);
}

.ab-goal-content {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .ab-goal-content {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

.ab-goal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ab-goal-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Target Audience ─── */
.ab-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.ab-audience-card {
  padding: 1.75rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ab-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

[data-theme="light"] .ab-audience-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .ab-audience-card:hover {
  box-shadow: var(--shadow-purple);
}

.ab-audience-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.ab-audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ab-audience-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Developer Section ─── */
.ab-dev {
  padding: 3rem 0;
}

.ab-dev-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  max-width: 700px;
  margin: 0 auto;
}

[data-theme="light"] .ab-dev-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

.ab-dev-avatar {
  font-size: 3rem;
  flex-shrink: 0;
}

.ab-dev-info h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon);
  margin-bottom: 0.2rem;
}

[data-theme="light"] .ab-dev-info h2 {
  color: var(--purple);
}

.ab-dev-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ab-dev-info p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ab-dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ab-dev-link {
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--neon);
  text-decoration: none;
  transition: background 0.2s;
}

.ab-dev-link:hover {
  background: rgba(0, 245, 255, 0.1);
}

[data-theme="light"] .ab-dev-link {
  color: var(--purple);
  border-color: rgba(157, 0, 255, 0.2);
}

[data-theme="light"] .ab-dev-link:hover {
  background: rgba(157, 0, 255, 0.08);
}

/* ─── Tech Stack ─── */
.ab-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.ab-tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

.ab-tech-item:hover {
  border-color: var(--neon);
}

[data-theme="light"] .ab-tech-item {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

[data-theme="light"] .ab-tech-item:hover {
  border-color: var(--purple);
}

.ab-tech-icon {
  font-size: 1.4rem;
}

/* ─── About CTA ─── */
.ab-cta {
  padding: 3rem 0;
}

.ab-cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(157, 0, 255, 0.08));
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .ab-cta-inner {
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.05), rgba(0, 200, 255, 0.05));
  border-color: rgba(157, 0, 255, 0.12);
}

.ab-cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.ab-cta-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.ab-cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ═══ Homepage & About — Responsive ═══ */
@media (max-width: 768px) {
  .hp-vision-inner { flex-direction: column; text-align: center; padding: 1.5rem; }
  .hp-why-grid { grid-template-columns: 1fr; }
  .hp-journey-grid { grid-template-columns: 1fr 1fr; }
  .hp-journey-grid::before { display: none; }
  .hp-mission-grid { grid-template-columns: 1fr; }
  .hp-cta-btns,
  .ab-cta-btns { flex-direction: column; align-items: center; }
  .ab-hero-title { font-size: 2.5rem; }
  .ab-hero-subtitle { font-size: 1rem; }
  .ab-mv-grid { grid-template-columns: 1fr; }
  .ab-benefits-grid { grid-template-columns: 1fr; }
  .ab-audience-grid { grid-template-columns: 1fr; }
  .ab-dev-card { flex-direction: column; text-align: center; padding: 1.2rem 1.5rem; }
  .ab-dev-links { justify-content: center; }
  .ab-tech-grid { grid-template-columns: 1fr 1fr; }
  .ab-goals-timeline { padding-right: 2.5rem; }
  [dir="ltr"] .ab-goals-timeline { padding-left: 2.5rem; }
  .ab-goal-marker { right: -2.5rem; }
  [dir="ltr"] .ab-goal-marker { left: -2.5rem; }
}

@media (max-width: 480px) {
  .hp-journey-grid { grid-template-columns: 1fr; }
  .ab-hero { padding: 4rem 1rem 3rem; }
  .ab-hero-title { font-size: 2rem; }
  .ab-tech-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   صفحة تعلّم لغات البرمجة  (.pl-*)
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.pl-hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
}

.pl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-purple, #a855f7) 0%, transparent 60%);
  opacity: 0.08;
  pointer-events: none;
}

.pl-hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

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

.pl-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #00ff88, #00d4ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.pl-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.pl-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.pl-hero-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pl-hero-stat strong {
  color: var(--accent-green, #00ff88);
  font-weight: 700;
}

/* Filters */
.pl-filters {
  margin-bottom: 2rem;
}

.pl-search-box {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.pl-search {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.pl-search:focus {
  border-color: var(--accent-green, #00ff88);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

.pl-filter-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pl-filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pl-filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pl-filter-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pl-filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s;
}

.pl-filter-btn:hover {
  border-color: var(--accent-green, #00ff88);
  color: var(--accent-green, #00ff88);
}

.pl-filter-btn.active {
  background: var(--accent-green, #00ff88);
  color: #0a0a0a;
  border-color: var(--accent-green, #00ff88);
  font-weight: 600;
}

.pl-results-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Language Cards Grid */
.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pl-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.pl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-green, #00ff88), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.1);
  border-color: var(--accent-green, #00ff88);
}

.pl-card:hover::before {
  opacity: 1;
}

.pl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pl-card-icon {
  font-size: 2.8rem;
}

.pl-card-diff {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pl-card-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pl-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.pl-card-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  background: var(--bg-secondary, rgba(255,255,255,0.05));
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pl-card-btn {
  display: block;
  width: 100%;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--accent-green, #00ff88);
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green, #00ff88);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}

.pl-card-btn:hover {
  background: var(--accent-green, #00ff88);
  color: #0a0a0a;
}

.pl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════
   صفحة تفاصيل اللغة
   ═══════════════════════════════════════════════════════════ */

.pl-detail-hero {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
}

.pl-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--lang-color, #00ff88) 0%, transparent 60%);
  opacity: 0.06;
  pointer-events: none;
}

.pl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 2rem;
}

.pl-back-btn:hover {
  border-color: var(--accent-green, #00ff88);
  color: var(--accent-green, #00ff88);
}

.pl-detail-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 30px var(--lang-color, #00ff88));
}

.pl-detail-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.pl-detail-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.pl-detail-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pl-meta-item {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Detail sections */
.pl-detail-section {
  margin: 3rem 0;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.pl-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pl-section-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.pl-info-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.pl-why-box {
  border-left: 4px solid var(--accent-green, #00ff88);
}

[dir="rtl"] .pl-why-box {
  border-left: none;
  border-right: 4px solid var(--accent-green, #00ff88);
}

.pl-tip-box {
  border-left: 4px solid #ffd700;
  background: rgba(255, 215, 0, 0.04);
}

[dir="rtl"] .pl-tip-box {
  border-left: none;
  border-right: 4px solid #ffd700;
}

/* Use cases */
.pl-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pl-use-case {
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid;
  color: var(--text-primary);
}

/* Courses Grid */
.pl-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.pl-course-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.pl-course-card::after {
  content: "↗";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

[dir="rtl"] .pl-course-card::after {
  right: unset;
  left: 1rem;
}

.pl-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
  border-color: var(--accent-green, #00ff88);
}

.pl-course-card:hover::after {
  color: var(--accent-green, #00ff88);
  transform: translate(2px, -2px);
}

.pl-course-provider {
  font-size: 0.78rem;
  color: var(--accent-green, #00ff88);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pl-course-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  padding-right: 1.5rem;
}

[dir="rtl"] .pl-course-title {
  padding-right: 0;
  padding-left: 1.5rem;
}

.pl-course-badge {
  font-size: 0.73rem;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 10px;
  align-self: flex-start;
  font-weight: 600;
}

/* Detail CTA */
.pl-detail-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 3rem 0 0;
  border-top: 1px solid var(--border);
}

.pl-detail-cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.pl-detail-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.pl-cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Light theme */
[data-theme="light"] .pl-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pl-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pl-course-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pl-course-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pl-hero-stat strong,
[data-theme="light"] .pl-course-provider {
  color: var(--accent-blue, #3b82f6);
}

[data-theme="light"] .pl-card-btn {
  border-color: var(--accent-blue, #3b82f6);
  color: var(--accent-blue, #3b82f6);
  background: rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .pl-card-btn:hover {
  background: var(--accent-blue, #3b82f6);
  color: #fff;
}

[data-theme="light"] .pl-filter-btn.active {
  background: var(--accent-blue, #3b82f6);
  border-color: var(--accent-blue, #3b82f6);
  color: #fff;
}

[data-theme="light"] .pl-course-badge {
  color: var(--accent-blue, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .pl-hero { padding: 3.5rem 1rem 2rem; }
  .pl-hero-stats { gap: 0.8rem; }
  .pl-hero-stat { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .pl-filter-row { flex-direction: column; gap: 1rem; align-items: center; }
  .pl-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
  .pl-card { padding: 1.4rem; }
  .pl-detail-meta { gap: 0.8rem; }
  .pl-courses-grid { grid-template-columns: 1fr; }
  .pl-detail-section { margin: 2rem 0; }
}

@media (max-width: 480px) {
  .pl-hero-title { font-size: 1.8rem; }
  .pl-hero-subtitle { font-size: 0.95rem; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-detail-title { font-size: 2rem; }
  .pl-detail-icon { font-size: 3.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   PROMPT ENGINEERING PAGE — pe-*
   3D Glassmorphic Design with immersive interactions
   ═══════════════════════════════════════════════════════════════ */

.pe-page { padding: 0; max-width: 100%; overflow-x: hidden; }

/* ── Section Titles ── */
.pe-section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pe-title-icon { -webkit-text-fill-color: initial; }
.pe-section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Divider ── */
.pe-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}
.pe-divider::before, .pe-divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.3;
}
.pe-divider-icon {
  font-size: 1.5rem;
  margin: 0 1.2rem;
  animation: float 3s ease-in-out infinite;
}

/* ═══════════════════════ HERO ═══════════════════════ */
.pe-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  perspective: 1200px;
}

/* Floating orbs */
.pe-hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pe-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: peOrbFloat 12s ease-in-out infinite;
}
.pe-orb--1 { width: 400px; height: 400px; background: var(--neon); top: -10%; right: -5%; animation-delay: 0s; }
.pe-orb--2 { width: 350px; height: 350px; background: var(--purple); bottom: -15%; left: -8%; animation-delay: -4s; }
.pe-orb--3 { width: 250px; height: 250px; background: var(--accent-gold); top: 40%; left: 50%; animation-delay: -8s; opacity: 0.2; }

@keyframes peOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Particles */
.pe-hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pe-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0;
  animation: peParticle 6s linear infinite;
}
.pe-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.pe-particle:nth-child(2) { left: 25%; animation-delay: 0.8s; background: var(--purple); }
.pe-particle:nth-child(3) { left: 40%; animation-delay: 1.5s; }
.pe-particle:nth-child(4) { left: 55%; animation-delay: 2.2s; background: var(--accent-gold); }
.pe-particle:nth-child(5) { left: 70%; animation-delay: 3s; }
.pe-particle:nth-child(6) { left: 85%; animation-delay: 3.8s; background: var(--purple); }
.pe-particle:nth-child(7) { left: 15%; animation-delay: 4.5s; background: var(--accent-gold); }
.pe-particle:nth-child(8) { left: 60%; animation-delay: 5.2s; }

@keyframes peParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* Hero Content */
.pe-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease both;
}
.pe-hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--neon);
  margin-bottom: 1.5rem;
  animation: peBadgePulse 3s ease-in-out infinite;
}
@keyframes peBadgePulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 245, 255, 0.15); }
  50% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.3); }
}
.pe-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--neon), var(--purple), var(--accent-gold));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: peGradientShift 6s ease infinite;
}
@keyframes peGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
[data-theme="light"] .pe-hero-title {
  background: linear-gradient(135deg, var(--purple), #0066ff, var(--neon));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: peGradientShift 6s ease infinite;
}
.pe-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Hero Stats */
.pe-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pe-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pe-hero-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}
.pe-hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pe-hero-stat-label { font-size: 0.85rem; color: var(--text-secondary); }
.pe-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--neon), transparent);
  opacity: 0.3;
}

/* ═══════════════════════ WHY SECTION ═══════════════════════ */
.pe-why { padding: 3rem 1.5rem 4rem; max-width: 1100px; margin: 0 auto; }
.pe-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.pe-why-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
  perspective: 800px;
  overflow: hidden;
}
.pe-why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pe-why-card:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: var(--shadow-neon); }
.pe-why-card:hover::before { opacity: 1; }
.pe-why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pe-why-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.pe-why-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
[data-theme="light"] .pe-why-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}
[data-theme="light"] .pe-why-card:hover { box-shadow: var(--shadow-purple); }

/* ═══════════════════════ GOLDEN FORMULA ═══════════════════════ */
.pe-formula { padding: 3rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.pe-formula-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  perspective: 1000px;
}
.pe-formula-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  min-width: 90px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  transform-style: preserve-3d;
}
.pe-formula-step:hover {
  transform: translateY(-10px) rotateY(5deg) scale(1.08);
  box-shadow: var(--shadow-neon);
  border-color: var(--neon);
}
.pe-formula-step-icon { font-size: 1.8rem; }
.pe-formula-step-label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.pe-formula-step-desc { font-size: 0.7rem; color: var(--text-secondary); }
.pe-formula-connector { display: flex; align-items: center; padding: 0 0.2rem; }
.pe-formula-plus, .pe-formula-eq {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-glow);
}
.pe-formula-eq { font-size: 1.8rem; color: var(--accent-gold); text-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
.pe-formula-result-step {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 136, 0, 0.1));
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
}
.pe-formula-result-step .pe-formula-step-label {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.95rem;
}
[data-theme="light"] .pe-formula-step {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}

/* Formula Example */
.pe-formula-example {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(5, 5, 20, 0.8);
  backdrop-filter: blur(16px);
}
.pe-formula-example-head {
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.1), rgba(157, 0, 255, 0.05));
  border-bottom: 1px solid rgba(0, 245, 255, 0.15);
}
.pe-formula-code {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 2.2;
  direction: rtl;
}
.pe-code-line {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pe-code-line:last-child { border-bottom: none; }
.pe-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 0.5rem;
  font-family: inherit;
}
.pe-tag--role { background: rgba(157, 0, 255, 0.2); color: #c77dff; }
.pe-tag--context { background: rgba(0, 245, 255, 0.15); color: var(--neon); }
.pe-tag--task { background: rgba(255, 136, 0, 0.15); color: var(--accent-orange); }
.pe-tag--format { background: rgba(0, 255, 136, 0.12); color: var(--accent-green); }
.pe-tag--constraints { background: rgba(255, 51, 102, 0.15); color: var(--accent-red); }
.pe-tag--examples { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }
[data-theme="light"] .pe-formula-example {
  background: rgba(248, 249, 255, 0.95);
  border-color: rgba(157, 0, 255, 0.2);
}
[data-theme="light"] .pe-formula-code { color: #1a1a2e; }

/* ═══════════════════════ ROADMAP ═══════════════════════ */
.pe-roadmap { padding: 3rem 1.5rem; max-width: 900px; margin: 0 auto; }
.pe-roadmap-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 0;
}
.pe-roadmap-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-green), var(--neon), var(--accent-orange), var(--accent-red), var(--purple));
  border-radius: 3px;
  opacity: 0.4;
}
.pe-roadmap-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding-right: 0;
}
.pe-roadmap-dot {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pe-roadmap-dot span { position: relative; z-index: 1; }
.pe-roadmap--beginner .pe-roadmap-dot {
  background: linear-gradient(135deg, #00ff88, #00cc88);
  color: #003322;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}
.pe-roadmap--intermediate .pe-roadmap-dot {
  background: linear-gradient(135deg, var(--neon), #0099ff);
  color: #001133;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}
.pe-roadmap--advanced .pe-roadmap-dot {
  background: linear-gradient(135deg, var(--accent-red), var(--purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}
.pe-roadmap-node:hover .pe-roadmap-dot {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.5);
}
.pe-roadmap-card {
  flex: 1;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}
.pe-roadmap-card:hover {
  transform: translateX(-8px) rotateY(-2deg);
  box-shadow: var(--shadow-neon);
  border-color: rgba(0, 245, 255, 0.35);
}
.pe-roadmap-level {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon);
  margin-bottom: 0.5rem;
}
.pe-roadmap--beginner .pe-roadmap-level { color: #00ff88; }
.pe-roadmap--intermediate .pe-roadmap-level { color: var(--neon); }
.pe-roadmap--advanced .pe-roadmap-level { color: var(--accent-red); }
.pe-roadmap-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.pe-roadmap-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.pe-roadmap-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pe-roadmap-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-right: 1.2rem;
  position: relative;
}
.pe-roadmap-card li::before {
  content: '▸';
  position: absolute;
  right: 0;
  top: 0.4rem;
  color: var(--neon);
  font-size: 0.8rem;
}
[data-theme="light"] .pe-roadmap-card {
  background: var(--glass-light);
  border-color: var(--glass-border-light);
}
[data-theme="light"] .pe-roadmap-card:hover { box-shadow: var(--shadow-purple); }

/* ═══════════════════════ LIBRARY / TOOLBAR ═══════════════════════ */
.pe-library { padding: 0 1.5rem 3rem; max-width: 1200px; margin: 0 auto; }
.pe-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.pe-search-wrap {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
.pe-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}
.pe-search {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.pe-search:focus {
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}
[data-theme="light"] .pe-search {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(157, 0, 255, 0.15);
  color: var(--text-light);
}
.pe-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pe-level-tabs {
  display: flex;
  gap: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
}
.pe-level-tab {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.pe-level-tab:hover { color: var(--text); background: rgba(0, 245, 255, 0.05); }
.pe-level-tab.active {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(157, 0, 255, 0.15));
  color: var(--neon);
  font-weight: 700;
}
.pe-select {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  cursor: pointer;
  outline: none;
}
.pe-select:focus { border-color: var(--neon); }
[data-theme="light"] .pe-level-tabs, [data-theme="light"] .pe-select {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(157, 0, 255, 0.15);
}
[data-theme="light"] .pe-level-tab.active {
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.15), rgba(0, 100, 255, 0.1));
  color: var(--purple);
}
.pe-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ═══════════════════════ CARDS GRID ═══════════════════════ */
.pe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
}

/* ── Single Technique Card ── */
.pe-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.pe-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.12), 0 0 30px rgba(0, 245, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.3);
}
.pe-card:hover::before { opacity: 1; }
[data-theme="light"] .pe-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(157, 0, 255, 0.12);
}
[data-theme="light"] .pe-card:hover {
  box-shadow: 0 20px 60px rgba(157, 0, 255, 0.1), 0 0 30px rgba(157, 0, 255, 0.06);
  border-color: rgba(157, 0, 255, 0.3);
}

/* Card Header */
.pe-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.8rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.04), rgba(157, 0, 255, 0.03));
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
}
.pe-card-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
  transition: transform 0.5s ease;
}
.pe-card:hover .pe-card-icon { transform: rotateY(15deg) scale(1.1); }
.pe-card-header-text { flex: 1; min-width: 0; }
.pe-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.pe-card-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pe-badge {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pe-badge--beginner { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.pe-badge--intermediate { background: rgba(0, 245, 255, 0.15); color: var(--neon); }
.pe-badge--advanced { background: rgba(255, 51, 102, 0.15); color: var(--accent-red); }
.pe-badge--cat { background: rgba(157, 0, 255, 0.12); color: #c77dff; }
[data-theme="light"] .pe-badge--beginner { background: rgba(0, 180, 90, 0.12); color: #008844; }
[data-theme="light"] .pe-badge--intermediate { background: rgba(0, 100, 200, 0.12); color: #0066cc; }
[data-theme="light"] .pe-badge--advanced { background: rgba(200, 0, 50, 0.12); color: #cc0033; }
[data-theme="light"] .pe-badge--cat { background: rgba(120, 0, 200, 0.1); color: #7700cc; }

/* Card Body */
.pe-card-body { padding: 1.5rem 1.8rem; }
.pe-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Secret Box */
.pe-secret {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 136, 0, 0.04));
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
}
.pe-secret::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px 2px 0 0;
}
.pe-secret-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}
.pe-secret-text { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }

/* Comparison Section */
.pe-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.pe-example {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid;
}
.pe-example--bad { border-color: rgba(255, 51, 102, 0.25); }
.pe-example--good { border-color: rgba(0, 255, 136, 0.25); }
.pe-example-label {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.pe-example--bad .pe-example-label {
  background: rgba(255, 51, 102, 0.1);
  color: var(--accent-red);
}
.pe-example--good .pe-example-label {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
}
.pe-example-text {
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Courier New', monospace;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  background: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .pe-example-text { background: rgba(0, 0, 0, 0.03); }

/* Copy Button */
.pe-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 255, 0.05);
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.pe-copy-btn:hover {
  background: rgba(0, 245, 255, 0.12);
  border-color: var(--neon);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

/* Tips in Card */
.pe-card-tips {
  border-top: 1px solid rgba(0, 245, 255, 0.08);
  padding-top: 1rem;
}
.pe-card-tips-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}
.pe-card-tips-list { list-style: none; padding: 0; margin: 0; }
.pe-card-tips-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-right: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.pe-card-tips-list li::before {
  content: '💡';
  position: absolute;
  right: 0;
  top: 0.25rem;
  font-size: 0.75rem;
}

/* ═══════════════════════ PRACTICES ═══════════════════════ */
.pe-practices { padding: 0 1.5rem 3rem; max-width: 900px; margin: 0 auto; }
.pe-practices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.pe-practice-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pe-practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-neon); }
.pe-practice-header {
  padding: 1rem 1.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
}
.pe-practice--do {
  background: var(--glass-bg);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.pe-practice--do .pe-practice-header { background: rgba(0, 255, 136, 0.08); color: var(--accent-green); }
.pe-practice--dont {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 51, 102, 0.25);
}
.pe-practice--dont .pe-practice-header { background: rgba(255, 51, 102, 0.08); color: var(--accent-red); }
.pe-practice-list { list-style: none; padding: 1.2rem 1.5rem; margin: 0; }
.pe-practice-list li {
  font-size: 0.9rem;
  padding: 0.5rem 0;
  padding-right: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pe-practice-list li:last-child { border-bottom: none; }
.pe-practice--do .pe-practice-list li::before { content: '✓'; position: absolute; right: 0; color: var(--accent-green); font-weight: 700; }
.pe-practice--dont .pe-practice-list li::before { content: '✗'; position: absolute; right: 0; color: var(--accent-red); font-weight: 700; }
[data-theme="light"] .pe-practice--do { background: rgba(255, 255, 255, 0.8); }
[data-theme="light"] .pe-practice--dont { background: rgba(255, 255, 255, 0.8); }

/* ═══════════════════════ POWER PHRASES ═══════════════════════ */
.pe-phrases { padding: 0 1.5rem 3rem; max-width: 1100px; margin: 0 auto; }
.pe-phrases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.pe-phrase-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}
.pe-phrase-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.12);
  transform: translateX(-4px);
}
.pe-phrase-card:active { transform: scale(0.98); }
.pe-phrase-icon { font-size: 1.3rem; flex-shrink: 0; }
.pe-phrase-text { flex: 1; font-size: 0.9rem; line-height: 1.5; }
.pe-phrase-ar { font-weight: 600; margin-bottom: 0.2rem; }
.pe-phrase-en { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; direction: ltr; text-align: left; }
.pe-phrase-copy {
  font-size: 0.75rem;
  color: var(--neon);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.pe-phrase-card:hover .pe-phrase-copy { opacity: 1; }
[data-theme="light"] .pe-phrase-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(157, 0, 255, 0.1);
}
[data-theme="light"] .pe-phrase-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(157, 0, 255, 0.1);
}

/* ═══════════════════════ GOLDEN TIPS ═══════════════════════ */
.pe-tips { padding: 0 1.5rem 5rem; max-width: 1100px; margin: 0 auto; }
.pe-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.pe-tip-card {
  position: relative;
  padding: 1.8rem;
  padding-right: 5rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.pe-tip-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pe-tip-card:hover {
  transform: translateY(-6px) rotateX(1.5deg);
  box-shadow: var(--shadow-neon);
}
.pe-tip-card:hover::after { opacity: 1; }
.pe-tip-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
}
.pe-tip-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.pe-tip-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
[data-theme="light"] .pe-tip-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(157, 0, 255, 0.1);
}
[data-theme="light"] .pe-tip-card:hover { box-shadow: var(--shadow-purple); }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 768px) {
  .pe-hero { min-height: 400px; padding: 4rem 1rem 3rem; }
  .pe-hero-title { font-size: 2.5rem; }
  .pe-hero-subtitle { font-size: 1.05rem; }
  .pe-hero-stats { gap: 0.8rem; }
  .pe-hero-stat { padding: 0.6rem 1rem; }
  .pe-hero-stat-num { font-size: 1.5rem; }
  .pe-hero-stat-divider { height: 30px; }
  .pe-formula-visual { gap: 0.3rem; }
  .pe-formula-step { min-width: 70px; padding: 0.8rem 0.6rem; }
  .pe-formula-step-icon { font-size: 1.3rem; }
  .pe-formula-step-desc { display: none; }
  .pe-grid { grid-template-columns: 1fr; }
  .pe-comparison { grid-template-columns: 1fr; }
  .pe-practices-grid { grid-template-columns: 1fr; }
  .pe-roadmap-card ul { grid-template-columns: 1fr; }
  .pe-roadmap-line { right: 24px; }
  .pe-roadmap-dot { width: 48px; height: 48px; font-size: 1rem; }
  .pe-section-title { font-size: 1.6rem; }
  .pe-tip-card { padding-right: 4rem; }
}
@media (max-width: 480px) {
  .pe-hero-title { font-size: 2rem; }
  .pe-hero-stats { flex-direction: column; gap: 0.5rem; }
  .pe-hero-stat-divider { width: 40px; height: 1px; }
  .pe-formula-visual { flex-direction: column; align-items: stretch; }
  .pe-formula-connector { justify-content: center; padding: 0.3rem 0; }
  .pe-phrases-grid { grid-template-columns: 1fr; }
  .pe-tips-grid { grid-template-columns: 1fr; }
  .pe-card-body { padding: 1.2rem; }
  .pe-card-header { padding: 1.2rem; }
}