@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B Titr";
  src: url("/fonts/BTitrBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B Nazanin";
  src: url("/fonts/BNazanin.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07080d;
  --bg-glow: rgba(245, 158, 11, 0.12);
  --surface: #11131c;
  --surface-2: #171a26;
  --surface-soft: #1d2130;
  --border: rgba(245, 158, 11, 0.18);
  --border-strong: rgba(251, 191, 36, 0.45);
  --text: #f8fafc;
  --muted: #9ca3af;
  --gold: #fbbf24;
  --orange: #f97316;
  --primary: #f59e0b;
  --primary-hover: #ea580c;
  --primary-soft: rgba(245, 158, 11, 0.14);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --warning: #fb923c;
  --warning-soft: rgba(249, 115, 22, 0.16);
  --danger: #f87171;
  --danger-soft: rgba(239, 68, 68, 0.15);
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 80% -10%, rgba(245, 158, 11, 0.16), transparent 42%),
    radial-gradient(circle at 12% 15%, rgba(234, 88, 12, 0.11), transparent 36%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.font-titr {
  font-family: "B Titr", "Vazirmatn", sans-serif;
  letter-spacing: 0;
}

.font-nazanin {
  font-family: "B Nazanin", "Vazirmatn", serif;
}

button,
input,
textarea,
select {
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 36px;
  flex: 1 0 auto;
}

.topbar {
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "B Titr", "Vazirmatn", sans-serif;
  font-size: 1.18rem;
  color: var(--gold);
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #161822 0%, #1d1812 55%, #2a180a 100%);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 24px;
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(251, 191, 36, 0.18);
}

.hero-card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card p {
  margin: 0;
  color: #d1d5db;
  font-family: "B Nazanin", "Vazirmatn", serif;
  font-size: 1.15rem;
}

.class-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.class-pill {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 15px 18px;
  text-align: right;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.class-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.class-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(234, 88, 12, 0.15));
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.2);
}

.class-pill-title {
  font-family: "B Titr", "Vazirmatn", sans-serif;
  font-size: 1.25rem;
  color: var(--gold);
}

.class-pill-sub {
  font-size: 0.84rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  color: #09090b;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #041d15;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  filter: brightness(1.06);
}

.btn-outline {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.35);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.24);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.95rem;
  background: #0b0d14;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.student-card {
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: right;
  color: var(--text);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  width: 100%;
}

.student-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #1c2030;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.14);
}

.student-card.is-submitted {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.student-card.is-entered {
  background: rgba(249, 115, 22, 0.07);
  border-color: rgba(249, 115, 22, 0.35);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(234, 88, 12, 0.22));
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.student-card.is-submitted .avatar {
  background: var(--success-soft);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.student-card.is-entered .avatar {
  background: var(--warning-soft);
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--warning);
}

.student-meta {
  min-width: 0;
  flex: 1;
}

.student-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.badge-success {
  background: var(--success-soft);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: var(--warning-soft);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.32);
}

.badge-danger {
  background: var(--danger-soft);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.progress-wrap {
  background: #0b0d14;
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  width: 0%;
  transition: width 0.25s ease;
}

.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.question-prompt {
  font-family: "B Nazanin", "Vazirmatn", serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #fffbeb;
  margin: 0 0 16px;
  line-height: 1.85;
}

.mcq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.mcq-option {
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "B Nazanin", "Vazirmatn", serif;
  font-size: 1.15rem;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.mcq-option input[type="radio"] {
  accent-color: var(--gold);
  width: 17px;
  height: 17px;
}

.mcq-option:hover {
  border-color: rgba(251, 191, 36, 0.55);
  background: var(--surface-soft);
}

.mcq-option.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.16));
  color: #fef3c7;
  font-weight: 700;
}

.upload-zone {
  border: 2px dashed rgba(251, 191, 36, 0.35);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  background: rgba(245, 158, 11, 0.04);
}

.upload-preview {
  margin-top: 12px;
  max-width: 100%;
  max-height: 280px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.correct-answer-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #a7f3d0;
  font-family: "B Nazanin", "Vazirmatn", serif;
  font-size: 1.1rem;
  line-height: 1.8;
}

.correct-answer-text {
  white-space: pre-wrap;
}

.correct-answer-title {
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 4px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  max-width: 470px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card.modal-lg {
  max-width: 820px;
}

.hidden {
  display: none !important;
}

.alert {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.alert-danger {
  background: var(--danger-soft);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.alert-success {
  background: var(--success-soft);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px 18px;
}

.stat-value {
  font-family: "B Titr", "Vazirmatn", sans-serif;
  font-size: 1.7rem;
  color: var(--gold);
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.14s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab-btn.active {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #09090b;
  border-color: transparent;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
  vertical-align: middle;
}

th {
  color: var(--gold);
  font-weight: 700;
  background: rgba(245, 158, 11, 0.06);
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .students-grid {
    grid-template-columns: 1fr;
  }
  .mcq-list {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 17, 0.94);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-brand strong {
  color: var(--gold);
  font-family: "B Titr", "Vazirmatn", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  display: inline-block;
  flex-shrink: 0;
}

.footer-sep {
  color: rgba(251, 191, 36, 0.45);
}

.footer-sub {
  color: var(--muted);
}

.footer-credit {
  color: #d1d5db;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
}

.footer-credit strong {
  color: var(--gold);
}

/* Pure-Code Lightweight Intro Overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 50% 38%, rgba(245, 158, 11, 0.22), transparent 52%),
    radial-gradient(circle at 20% 80%, rgba(234, 88, 12, 0.14), transparent 45%),
    #06070b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  pointer-events: none;
}

.intro-card {
  position: relative;
  max-width: 580px;
  width: 100%;
  text-align: center;
  padding: 36px 26px;
  border-radius: 28px;
  background: rgba(17, 19, 28, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72), 0 0 60px rgba(245, 158, 11, 0.12);
  animation: introPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-emblem {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
  animation: emblemPulse 2s ease-in-out infinite;
}

.intro-title {
  font-family: "B Titr", "Vazirmatn", sans-serif;
  font-size: 2rem;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #fef08a, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-subtitle {
  font-family: "B Nazanin", "Vazirmatn", serif;
  font-size: 1.32rem;
  color: #e5e7eb;
  margin: 0 0 14px;
}

.intro-credit {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: var(--gold);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.intro-loader-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.intro-status-text {
  font-size: 0.84rem;
  color: var(--muted);
}

.intro-loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  animation: introProgress 2.4s linear forwards;
}

@keyframes introPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes emblemPulse {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
  }
  50% {
    box-shadow: 0 14px 44px rgba(249, 115, 22, 0.55);
  }
}

@keyframes introProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Role Selection Cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.role-card {
  position: relative;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: right;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: var(--shadow);
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.18);
}

.role-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(234, 88, 12, 0.22));
  border: 1px solid var(--border-strong);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-card-teacher .role-icon {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #09090b;
  border-color: transparent;
}

.role-title {
  font-family: "B Titr", "Vazirmatn", sans-serif;
  font-size: 1.45rem;
  color: var(--gold);
  margin: 0 0 6px;
}

.role-desc {
  font-family: "B Nazanin", "Vazirmatn", serif;
  font-size: 1.15rem;
  color: #d1d5db;
  margin: 0;
}

.avatar svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Dedicated Descriptive Questions & Paper Upload Box */
.descriptive-box {
  background: linear-gradient(155deg, rgba(24, 21, 16, 0.96) 0%, rgba(17, 19, 28, 0.98) 100%);
  border: 2px solid rgba(251, 191, 36, 0.55);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52), 0 0 32px rgba(245, 158, 11, 0.12);
}

.descriptive-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.descriptive-box-title {
  font-family: "B Titr", "Vazirmatn", sans-serif;
  font-size: 1.32rem;
  color: var(--gold);
  margin: 0;
}

.handwriting-notice {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.14));
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: #fef3c7;
  font-size: 1rem;
  line-height: 1.9;
}

.handwriting-notice strong,
.handwriting-notice u {
  color: #fde047;
  font-weight: 800;
}

.handwriting-notice u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: #fbbf24;
}

.descriptive-questions-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.descriptive-q-item {
  background: rgba(11, 13, 20, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 15px;
  padding: 15px 16px;
}

.descriptive-q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.descriptive-q-text {
  font-family: "B Nazanin", "Vazirmatn", serif;
  font-size: 1.24rem;
  font-weight: 700;
  color: #fffbeb;
  margin: 0;
  line-height: 1.9;
}

.descriptive-upload-section {
  border-top: 1px dashed rgba(251, 191, 36, 0.35);
  padding-top: 16px;
}

.uploaded-sheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
  text-align: right;
}

.uploaded-sheet-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uploaded-sheet-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #07080d;
}

.teacher-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.teacher-sheet-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teacher-sheet-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #07080d;
}

.zoom-stage {
  background: #05060a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  max-height: 76vh;
  overflow: auto;
}

.zoom-stage img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 8px;
}
