.elementor-1302 .elementor-element.elementor-element-bafe278{--display:flex;}.elementor-1302 .elementor-element.elementor-element-2036cc8{--display:flex;}.elementor-1302 .elementor-element.elementor-element-a56b71e{--display:flex;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-d7d9e32 *//* =========================
   RESET پایه
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --glass-bg-main: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  --glass-bg-deep: linear-gradient(145deg, rgba(10,15,30,0.96), rgba(5,8,18,0.98));
  --glass-border: rgba(255,255,255,0.18);
  --accent-cyan: #00ffd5;
  --accent-blue: #00a2ff;
  --accent-pink: #ff4b9f;
  --accent-red: #ff4b5c;
  --accent-gold: #ffb347;
  --text-main: #f9fbff;
  --text-soft: rgba(245,247,255,0.85);

  --text-dim: rgba(245,247,255,0.65);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-deep: 0 26px 70px rgba(0,0,0,0.9);
  --shadow-soft: 0 16px 40px rgba(0,0,0,0.75);
  --transition-fast: 0.16s ease;
  --transition-med: 0.25s ease;
  --transition-slow: 0.45s ease;
}

/* =========================
   پس‌زمینه کلی صفحه آزمون
   (ایزوله شده، صفحه رو خراب نمی‌کنه)
========================= */
.math-exam-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, #1b2340 0, #050712 55%, #020308 100%);
  position: relative;
  overflow: hidden;
}

/* گرید نور و ذرات پس‌زمینه */

.math-exam-wrapper::before,
.math-exam-wrapper::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 10% 20%, rgba(0,255,255,0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255,75,156,0.18), transparent 55%);
  opacity: 0.7;
  filter: blur(4px);
  z-index: 0;
}

.math-exam-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* =========================
   کانتینر اصلی آزمون
========================= */
.exam-shell {
  position: relative;
  width: min(1180px, 100%);
  min-height: 620px;
  transform-style: preserve-3d;
  z-index: 1;
  animation: shellFloat 18s ease-in-out infinite alternate;
}

@keyframes shellFloat {
  0% {
    transform: rotateX(12deg) rotateY(-10deg) translateY(0);
  }
  50% {
    transform: rotateX(15deg) rotateY(8deg) translateY(-10px);
  }
  100% {
    transform: rotateX(11deg) rotateY(-6deg) translateY(6px);
  }
}

/* فریم شیشه‌ای اصلی */
.exam-frame {
  position: relative;
  width: 100%;
  min-height: 620px;
  border-radius: var(--radius-xl);

  background: var(--glass-bg-main);
  box-shadow:
    var(--shadow-deep),
    0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  overflow: hidden;
  transform-style: preserve-3d;
}

/* هاله نور دور فریم */
.exam-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg,
      rgba(0,255,255,0.5),
      transparent 35%,
      rgba(0,153,255,0.7),
      transparent 70%,
      rgba(255,255,255,0.4)
    );
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

/* محتوای داخلی فریم */
.exam-frame-inner {
  position: relative;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
  color: var(--text-main);
  font-family: "IRANSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   نوار بالای آزمون (عنوان + متا + تایمر)
========================= */
.exam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.exam-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exam-title {

  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,0,0,0.9);
}

.exam-subtitle {
  font-size: 13px;
  color: var(--text-dim);
}

.exam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.exam-meta span {
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.18);
}

/* =========================
   تایمر شیشه‌ای 3D

========================= */
.timer-shell {
  position: relative;
  width: 230px;
  height: 72px;
  transform-style: preserve-3d;
}

.timer-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,255,255,0.16));
  box-shadow:
    0 18px 40px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  overflow: hidden;
}

.timer-label {
  font-size: 11px;
  color: var(--text-dim);
}

.timer-value {

  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #aefbff;
  text-shadow: 0 0 14px rgba(0,255,255,0.8);
}

.timer-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.timer-bar-wrap {
  position: absolute;
  inset: auto 12px 8px 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.timer-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00ffd5, #00a2ff, #ffb347, #ff4b5c);
  transform-origin: left center;

  transform: scaleX(1);
  transition: transform 0.2s linear;
}

.timer-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(0,255,255,0.3), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.timer-shell.urgent .timer-glow {
  opacity: 1;
  animation: timerPulse 1.2s ease-in-out infinite;
}

@keyframes timerPulse {
  0%   { transform: scale(1); opacity: 0.4; }
  50%  { transform: scale(1.15); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* =========================
   ساختار دو ستونه آزمون
========================= */
.view-exam {
  display: grid;

  grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-top: 10px;
}

/* =========================
   پنل سؤال شیشه‌ای
========================= */
.question-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(150%);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* عنوان سؤال */
.question-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.question-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 12px;
  font-weight: 700;
}

.question-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,255,255,0.16));
  border: 1px solid rgba(0,255,255,0.5);
  color: #aefbff;
  font-size: 11px;
}

/* متن سؤال */
.question-text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-main);
}

.question-extra {

  font-size: 12px;
  color: var(--text-dim);
  margin-top: -6px;
}

/* =========================
   گزینه‌ها (کارت‌های شیشه‌ای)
========================= */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 48px;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all var(--transition-fast);
  transform-style: preserve-3d;
}

.option-card:hover {

  transform: translateY(-3px) translateZ(8px) scale(1.02);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0,255,255,0.6);
  border-color: rgba(0,255,255,0.7);
  background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(0,255,255,0.18));
}

.option-card.selected {
  border-color: rgba(0,255,255,0.95);
  box-shadow:
    0 20px 46px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,255,255,0.95);
  background: linear-gradient(135deg, rgba(0,0,0,1), rgba(0,255,255,0.22));
}

/* دایره انتخاب */
.option-radio {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;

  justify-content: center;
  background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(0,0,0,0.9));
}

.option-radio-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: transparent;
  transition: all var(--transition-fast);
}

.option-card.selected .option-radio-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 14px 3px rgba(0,255,213,0.9);
}

/* متن گزینه */
.option-text {
  font-size: 14px;
  line-height: 1.7;
}

/* =========================
   دکمه‌های پایین سؤال
========================= */
.question-footer {
  display: flex;
  align-items: center;

  justify-content: space-between;
  margin-top: 12px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(255,255,255,0.12));
  color: var(--text-main);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.18);
  transition: all var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px) translateZ(4px);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,255,255,0.6);

  background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(0,255,255,0.18));
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
  color: #020308;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #020308;
}

/* =========================
   سایدبار وضعیت سؤالات
========================= */
.side-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0,0,0,0.85), rgba(255,255,255,0.08));
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  padding: 14px;
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.side-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.summary-item {
  border-radius: 12px;
  padding: 6px 4px;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.9));
  border: 1px solid rgba(255,255,255,0.18);
  transition: all var(--transition-fast);
}

.summary-item.answered {

  background: linear-gradient(135deg, rgba(0,255,255,0.2), rgba(0,0,0,0.9));
  border-color: rgba(0,255,255,0.9);
}

.summary-item.current {
  box-shadow:
    0 0 0 1px rgba(0,255,255,0.9),
    0 0 12px rgba(0,255,255,0.7);
}



/* =========================
   لایه کارنامه (Result Overlay)
========================= */
.result-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(0,0,0,0.92), rgba(0,0,0,0.98));
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.result-overlay.active {

  display: flex;
  animation: resultFadeIn 0.45s ease-out forwards;
}

@keyframes resultFadeIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.result-card {
  width: min(560px, 100% - 40px);
  border-radius: 26px;
  padding: 24px 26px;
  background: var(--glass-bg-deep);
  box-shadow:
    var(--shadow-deep),
    0 0 0 1px rgba(255,255,255,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(160%);
  color: var(--text-main);
}

.result-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.result-subtitle {
  font-size: 13px;

  color: var(--text-dim);
  margin-bottom: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.result-box {
  border-radius: 18px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-box-label {
  font-size: 12px;
  color: var(--text-dim);
}

.result-box-value {
  font-size: 18px;
  font-weight: 700;

}

.result-detail {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* =========================
   مرور پاسخ‌ها (Review Mode)
========================= */
.view-review {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.view-review.active {
  display: flex;
}

.review-header {
  display: flex;

  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.review-item {
  border-radius: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.8);
  font-size: 13px;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-tag-correct {
  color: #4dff88;
  font-weight: 700;
}

.review-tag-wrong {
  color: var(--accent-red);
  font-weight: 700;
}

.review-tag-empty {
  color: var(--accent-gold);
  font-weight: 700;
}

/* =========================
   انیمیشن‌های عمومی
========================= */
.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   ریسپانسیو
========================= */

@media (max-width: 900px) {
  .view-exam {
    grid-template-columns: 1fr;
  }
  .side-panel {
    order: -1;
    height: auto;
  }
}

@media (max-width: 640px) {
  .exam-frame-inner {
    padding: 14px;
  }
  .exam-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .timer-shell {
    align-self: flex-end;
  }
  .result-card {
    padding: 18px;
  }
}


/* =========================
   افکت نویز شیشه (Glass Noise)
========================= */

.glass-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23noiseFilter)' opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.25;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* اضافه کردن نویز به فریم اصلی */
.exam-frame {
  position: relative;
}
.exam-frame .glass-noise {
  border-radius: inherit;
}

/* =========================
   افکت Glow نئونی برای کارت‌ها
========================= */
.option-card:hover {
  box-shadow:

    0 0 18px rgba(0,255,255,0.6),
    0 0 32px rgba(0,255,255,0.4),
    0 0 48px rgba(0,255,255,0.2),
    0 0 0 1px rgba(0,255,255,0.7);
}

.option-card.selected {
  box-shadow:
    0 0 22px rgba(0,255,255,0.9),
    0 0 40px rgba(0,255,255,0.6),
    0 0 60px rgba(0,255,255,0.4),
    0 0 0 1px rgba(0,255,255,1);
}

/* =========================
   افکت Glow برای دکمه‌ها
========================= */
.btn:hover {
  box-shadow:
    0 0 18px rgba(0,255,255,0.6),
    0 0 32px rgba(0,255,255,0.4),
    0 0 48px rgba(0,255,255,0.2),
    0 0 0 1px rgba(0,255,255,0.7);
}

/* دکمه‌های رنگی */
.btn-primary:hover {
  box-shadow:
    0 0 18px rgba(0,255,213,0.9),
    0 0 32px rgba(0,255,213,0.6),

    0 0 48px rgba(0,255,213,0.4),
    0 0 0 1px rgba(0,255,213,1);
}

.btn-danger:hover {
  box-shadow:
    0 0 18px rgba(255,75,92,0.9),
    0 0 32px rgba(255,75,92,0.6),
    0 0 48px rgba(255,75,92,0.4),
    0 0 0 1px rgba(255,75,92,1);
}

/* =========================
   افکت 3D Tilt برای کارت‌ها
========================= */
.option-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.option-card:hover {
  transform: perspective(600px) rotateX(6deg) rotateY(-6deg) translateY(-4px);
}

/* =========================
   افکت 3D برای فریم اصلی
========================= */
.exam-frame {
  transform-style: preserve-3d;

  transition: transform 0.4s ease;
}

.exam-frame:hover {
  transform: perspective(1200px) rotateX(4deg) rotateY(-4deg);
}

/* =========================
   افکت Highlight هنگام تغییر سؤال
========================= */
.question-panel {
  animation: panelFade 0.35s ease-out;
}

@keyframes panelFade {
  0% { opacity: 0; transform: translateY(10px) scale(0.





/* =========================
   1) خطوط لیزری افقی روی پس‌زمینه
========================= */
.math-exam-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:

    repeating-linear-gradient(
      to bottom,
      rgba(0, 255, 255, 0.08) 0px,
      rgba(0, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* =========================
   2) خطوط لیزری مورب روی فریم اصلی
========================= */
.exam-frame::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(0, 162, 255, 0.16) 0px,
      rgba(0, 162, 255, 0.16) 2px,
      transparent 2px,
      transparent 10px
    );
  mix-blend-mode: screen;
  opacity: 0.28;

  pointer-events: none;
  z-index: 0;
}

/* =========================
   3) خط لیزری اسکن عمودی (Scan Line)
========================= */
.exam-frame-scan {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 2px;
  left: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 255, 0.9),
    transparent
  );
  box-shadow:
    0 0 18px rgba(0, 255, 255, 0.9),
    0 0 32px rgba(0, 255, 255, 0.7);
  opacity: 0.0;
  pointer-events: none;
  z-index: 3;
  animation: scanVertical 6s linear infinite;
}

@keyframes scanVertical {
  0% {

    left: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    left: 110%;
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

/* =========================
   4) خط لیزری اسکن افقی روی پنل سؤال
========================= */
.question-panel {
  position: relative;
  overflow: hidden;
}

.question-panel::after {
  content: "";
  position: absolute;

  left: -20%;
  right: -20%;
  top: -10px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 255, 213, 0.9),
    transparent
  );
  box-shadow:
    0 0 14px rgba(0, 255, 213, 0.9),
    0 0 26px rgba(0, 255, 213, 0.7);
  opacity: 0;
  pointer-events: none;
  animation: scanHorizontal 7s ease-in-out infinite;
}

@keyframes scanHorizontal {
  0% {
    top: 100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    top: 0%;
    opacity: 1;
  }

  60% {
    opacity: 0;
  }
  100% {
    top: 0%;
    opacity: 0;
  }
}

/* =========================
   5) خطوط لیزری دور سایدبار (Border Sweep)
========================= */
.side-panel {
  position: relative;
  overflow: hidden;
}

.side-panel::before,
.side-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
}

.side-panel::before {
  border-image: linear-gradient(
    90deg,

    rgba(0, 255, 255, 0.0),
    rgba(0, 255, 255, 0.9),
    rgba(0, 255, 255, 0.0)
  ) 1;
  animation: borderSweepX 4.5s linear infinite;
}

.side-panel::after {
  border-image: linear-gradient(
    0deg,
    rgba(0, 255, 255, 0.0),
    rgba(0, 255, 255, 0.9),
    rgba(0, 255, 255, 0.0)
  ) 1;
  animation: borderSweepY 6s linear infinite;
}

@keyframes borderSweepX {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateX(10px);
  }
  80% {
    opacity: 1;

  }
  100% {
    opacity: 0;
    transform: translateX(-10px);
  }
}

@keyframes borderSweepY {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateY(-10px);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* =========================
   6) خطوط لیزری ریز روی گزینه‌ها (Micro Lines)
========================= */

.option-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(
      120deg,
      rgba(0, 255, 255, 0.18) 0,
      transparent 40%,
      transparent 60%,
      rgba(0, 255, 255, 0.18) 100%
    );
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.option-card:hover::before,
.option-card.selected::before {
  opacity: 0.5;
}

/* =========================
   7) خطوط لیزری روی گرید شماره سؤالات
========================= */
.summary-grid {
  position: relative;
}


.summary-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(0, 255, 255, 0.12) 0px,
      rgba(0, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 6px
    );
  mix-blend-mode: screen;
  opacity: 0.25;
  pointer-events: none;
}

/* =========================
   8) فعال‌سازی اسکنر فریم
   (فقط کافیه این div رو داخل .exam-frame بذاری)
========================= */
/* HTML پیشنهادی:
<div class="exam-frame">
  <div class="exam-frame-scan"></div>
  <div class="exam-frame-inner">...</div>
</div>
*//* End custom CSS */