/* ============================================
   🏛️ هنرستان اندیشه - Design System
   ============================================ */

:root {
  --gold: #d4af37;
  --gold-bright: #ffd700;
  --blue: #00d4ff;
  --purple: #7b2ff7;
  --dark: #05050f;
  --dark-2: #0a0a1a;
  --dark-3: #0f1730;
  --text: #e8e8f0;
  --text-dim: #a0a0b8;
  --glass: rgba(10, 10, 26, 0.6);
  --border: rgba(212, 175, 55, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  position: relative;
}

/* ===== اسکرول‌بار ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--purple));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-bright), var(--blue));
}

/* ===== کانواس ذرات ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===== نوار بالا ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.4s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.logo-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.logo-text {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

@keyframes shineText {
  to { background-position: 200% center; }
}

.nav-icons {
  display: flex;
  gap: 12px;
}

.nav-icons a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* ===== بخش Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(123, 47, 247, 0.15), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(5, 5, 15, 0.6) 0%, rgba(5, 5, 15, 0.75) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 60px 40px;
  background: rgba(10, 10, 26, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(212, 175, 55, 0.03);
  max-width: 800px;
  margin: 0 20px;
  animation: heroIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 30px;
  animation: fadeIn 1s 0.3s both;
}

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

.hero-title {
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -2px;
}

.hero-title .line {
  display: block;
  animation: titleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .line:nth-child(1) {
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  animation-delay: 0.4s;
}

.hero-title .line.gradient {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 30%, var(--blue) 70%, var(--purple) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.4));
  animation: titleIn 1.2s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both, gradientFlow 5s linear infinite;
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes gradientFlow {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-dim);
  margin-bottom: 45px;
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeIn 1s 0.9s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.4s;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  animation: fadeIn 1s 1.1s both;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.6);
}

.hero-btn .arrow {
  animation: arrowBounce 1.5s infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 1s 1.5s both;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelMove 1.8s infinite;
  box-shadow: 0 0 10px var(--gold);
}

@keyframes wheelMove {
  0% { top: 8px; opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* ===== بخش‌ها ===== */
.section {
  position: relative;
  min-height: 90vh;
  padding: 120px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
}

.section-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-number {
  display: block;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 8px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.section h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.title-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  border-radius: 3px;
}

.section-text {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 2.2;
}

/* ===== کارت‌های امکانات ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.feature-card {
  position: relative;
  padding: 40px 30px;
  background: rgba(15, 23, 48, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}

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

.feature-card:hover {
  transform: translateY(-12px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(212, 175, 55, 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
  transition: transform 0.5s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-card h3 {
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ===== دکمه‌های ورود ===== */
.login-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 45px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(123, 47, 247, 0.1));
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  transition: left 0.6s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-5px);
  box-shadow: 
    0 20px 50px rgba(212, 175, 55, 0.5),
    0 0 80px rgba(212, 175, 55, 0.3);
}

.btn-icon {
  font-size: 22px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-outline {
  padding: 12px 30px;
  background: transparent;
  color: #ff6666;
  border: 1px solid #ff6666;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #ff6666;
  color: #fff;
}

/* ===== تماس ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px;
  background: rgba(15, 23, 48, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.contact-card span {
  color: var(--text);
  font-size: 16px;
}

/* ===== فوتر ===== */
.footer {
  position: relative;
  padding: 80px 20px 50px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 15, 0.95) 30%);
  border-top: 1px solid var(--border);
  z-index: 3;
}

.footer-logo {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1px;
}

.creator {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 25px;
}

.creator span {
  color: var(--gold);
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

.collab {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.telegram-link {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--blue);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s;
}

.telegram-link:hover {
  background: var(--blue);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

/* ===== مودال ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-content {
  position: relative;
  margin: 8% auto;
  padding: 50px 40px;
  max-width: 440px;
  width: 90%;
  background: linear-gradient(135deg, rgba(20, 20, 45, 0.95), rgba(15, 23, 48, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 28px;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(212, 175, 55, 0.1);
  text-align: center;
  animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.5));
}

.modal-content h2 {
  color: var(--gold);
  margin-bottom: 25px;
  font-size: 26px;
  font-weight: 700;
}

.modal-content input {
  width: 100%;
  padding: 15px 20px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.close {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 32px;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}

.close:hover {
  color: #ff6666;
  transform: rotate(90deg);
}

.hint {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 20px;
  line-height: 1.8;
}

/* ===== داشبورد ===== */
.dashboard,
.assignments {
  position: relative;
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  z-index: 3;
}

.dashboard h2,
.assignments h2 {
  color: var(--gold);
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-row select {
  flex: 1;
  min-width: 150px;
  padding: 14px 18px;
  background: rgba(15, 23, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.form-row select:focus {
  outline: none;
  border-color: var(--gold);
}

#assignmentText {
  width: 100%;
  min-height: 140px;
  padding: 18px;
  background: rgba(15, 23, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  margin-bottom: 15px;
  transition: all 0.3s;
}

#assignmentText:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.assignment-card {
  padding: 25px;
  margin-bottom: 18px;
  background: rgba(15, 23, 48, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-right: 4px solid var(--gold);
  border-radius: 16px;
  transition: all 0.3s;
  text-align: right;
}

.assignment-card:hover {
  transform: translateX(-5px);
  border-right-color: var(--gold-bright);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.assignment-card h3 {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 19px;
}

.assignment-card .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 12px;
}

.assignment-card p {
  color: var(--text);
  line-height: 1.9;
}

/* ===== انیمیشن reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
  body { cursor: auto; }
  #particles { display: none; }

  .navbar { padding: 14px 20px; }
  .logo { font-size: 15px; }
  .logo-icon { font-size: 20px; }
  .nav-icons a { width: 36px; height: 36px; font-size: 15px; }

  .hero-bg { background-attachment: scroll; }
  .hero-content { padding: 40px 25px; border-radius: 22px; }
  .hero-badge { font-size: 11px; padding: 6px 18px; letter-spacing: 2px; }
  .hero-title { letter-spacing: -1px; }
  .hero-btn { padding: 14px 32px; font-size: 14px; }

  .section { padding: 80px 20px; min-height: 70vh; }
  .section-header { margin-bottom: 40px; }
  .section-number { letter-spacing: 5px; font-size: 12px; }

  .features-grid { grid-template-columns: 1fr; gap: 15px; }
  .feature-card { padding: 30px 20px; }
  .feature-icon { font-size: 38px; }
  .feature-card h3 { font-size: 17px; }

  .login-buttons { flex-direction: column; gap: 15px; }
  .btn-glow { width: 100%; justify-content: center; padding: 16px 30px; font-size: 15px; }

  .contact-grid { grid-template-columns: 1fr; }

  .modal-content { margin: 20% auto; padding: 35px 25px; }
  .modal-content h2 { font-size: 22px; }
  .modal-icon { font-size: 38px; }

  .dashboard, .assignments { padding: 60px 15px; }
  .dashboard h2, .assignments h2 { font-size: 24px; }
  .form-row { flex-direction: column; }
  .form-row select { min-width: auto; }

  .footer { padding: 60px 20px 40px; }
  .footer-logo { font-size: 20px; }
  .creator { font-size: 15px; }
  .telegram-link { font-size: 15px; padding: 8px 22px; }
}
/* ============================================
   📅 دکمه شیشه‌ای برنامه هفتگی
   ============================================ */

.schedule-fab {
  position: fixed;
  bottom: 30px;
  left: 30px; /* ← گوشه پایین چپ */
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #00d4ff, #0099ff, #0077ff);
  color: #fff;
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(0, 150, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  overflow: visible;
}

/* محتوای داخل دکمه */
.fab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 3;
  position: relative;
}

.fab-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.fab-text {
  font-size: 9px;
  font-weight: 700;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  white-space: nowrap;
  margin-top: 2px;
}

/* هاله‌های متحرک (Pulse) */
.halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.6);
  animation: haloPulse 3s ease-out infinite;
  pointer-events: none;
}

.halo-2 {
  border-color: rgba(0, 150, 255, 0.5);
  animation-delay: 1s;
}

.halo-3 {
  border-color: rgba(123, 47, 247, 0.4);
  animation-delay: 2s;
}

@keyframes haloPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* افکت hover فقط روی دسکتاپ (نه موبایل) */
@media (hover: hover) and (pointer: fine) {
  .schedule-fab:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 
      0 15px 40px rgba(0, 150, 255, 0.7),
      0 0 60px rgba(0, 212, 255, 0.5),
      inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

/* افکت کلیک برای لحظه‌ای */
.schedule-fab:active {
  transform: scale(0.95);
}

/* ===== مودال برنامه هفتگی ===== */
.schedule-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.schedule-modal.open {
  display: flex;
  opacity: 1;
}

.schedule-panel {
  background: linear-gradient(135deg, rgba(20, 25, 50, 0.98), rgba(10, 15, 35, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(0, 212, 255, 0.15),
    inset 0 0 60px rgba(0, 150, 255, 0.03);
  animation: scheduleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes scheduleIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.05), transparent);
}

.schedule-header h2 {
  font-size: 24px;
  color: #00d4ff;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.schedule-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.schedule-close:hover {
  background: #00d4ff;
  color: #05050f;
  transform: rotate(90deg);
}

.schedule-body {
  padding: 40px 30px;
  overflow-y: auto;
  color: #e0e0f0;
}

.schedule-placeholder {
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: #a0a0b8;
  padding: 40px 20px;
  border: 2px dashed rgba(0, 212, 255, 0.2);
  border-radius: 16px;
}

.schedule-placeholder small {
  color: #00d4ff;
  font-size: 13px;
}

/* ===== ریسپانسیو موبایل ===== */
@media (max-width: 768px) {
  .schedule-fab {
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
  }

  .fab-icon {
    font-size: 18px;
  }

  .fab-text {
    font-size: 8px;
  }

  .schedule-modal {
    padding: 0;
    align-items: flex-end;
  }

  .schedule-panel {
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    animation: scheduleInMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes scheduleInMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .schedule-header {
    padding: 20px 20px;
  }

  .schedule-header h2 {
    font-size: 20px;
  }

  .schedule-body {
    padding: 25px 20px;
  }

  .schedule-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* جلوگیری از گیر کردن روی موبایل */
@media (hover: none) {
  .schedule-fab:hover {
    transform: none;
  }
}
.schedule-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}
/* وسط‌چین کردن کارت‌های امکانات (وقتی ۲ تا هستن) */
.features-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 20px;
}
/* ============================================
   🔧 مودال کارگاه‌ها
   ============================================ */

/* هینت روی کارت */
.card-hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #d4af37;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.feature-card:hover .card-hint {
  opacity: 1;
}

.feature-card {
  cursor: pointer;
}

/* مودال کارگاه */
.workshop-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #05050f;
  z-index: 9998;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s;
}

.workshop-modal.open {
  display: block;
  opacity: 1;
}

.workshop-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* دکمه بستن */
.workshop-close {
  position: fixed;
  top: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(10px);
  color: #d4af37;
  font-size: 28px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
  font-family: Tahoma, sans-serif;
  line-height: 1;
}

.workshop-close:hover {
  background: #d4af37;
  color: #05050f;
  transform: rotate(90deg);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

/* بخش Hero کارگاه */
.workshop-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.workshop-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  transition: transform 0.3s;
}

.workshop-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 5, 15, 0.6) 0%,
    rgba(5, 5, 15, 0.9) 100%
  );
  z-index: 1;
}

.workshop-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  animation: workshopTitleIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes workshopTitleIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    filter: blur(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.workshop-hero h1 {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  background: linear-gradient(120deg, #d4af37, #ffd700, #00d4ff, #7b2ff7, #d4af37);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  animation: gradientFlow 6s linear infinite;
  filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.4));
  margin: 0;
}

@keyframes gradientFlow {
  to { background-position: 300% center; }
}

.workshop-arrow-down {
  font-size: 48px;
  color: #d4af37;
  margin-top: 50px;
  animation: bounce 2s infinite;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

/* بخش متن توضیحات */
.workshop-text-section {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(5, 5, 15, 0.95), rgba(15, 23, 48, 0.6));
  position: relative;
  z-index: 3;
}

.workshop-description {
  font-size: clamp(16px, 1.8vw, 22px);
  color: #e0e0f0;
  line-height: 2.2;
  text-align: justify;
  text-align-last: center;
}

.workshop-description::first-letter {
  font-size: 3em;
  color: #d4af37;
  float: right;
  line-height: 1;
  margin-left: 15px;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* بخش رسانه */
.workshop-media {
  padding: 80px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.workshop-media-title {
  font-size: 36px;
  color: #d4af37;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* گالری عکس */
.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.workshop-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.workshop-gallery img:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #ffd700;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.3);
}

/* ویدیو */
.workshop-video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(212, 175, 55, 0.2);
  background: #000;
}

.workshop-video-wrapper video {
  width: 100%;
  display: block;
}

/* پایان */
.workshop-end {
  padding: 60px 20px 100px;
  text-align: center;
  color: #d4af37;
}

.workshop-end p {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.workshop-end span {
  font-size: 24px;
  letter-spacing: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* اسکرول انیمیشن برای عناصر داخلی */
.workshop-fade-up {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.workshop-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* جلوگیری از اسکرول پس‌زمینه */
body.modal-open {
  overflow: hidden;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .workshop-close {
    top: 15px;
    left: 15px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .workshop-hero {
    height: 90vh;
  }

  .workshop-hero-bg {
    background-attachment: scroll;
  }

  .workshop-text-section {
    padding: 60px 20px;
  }

  .workshop-media {
    padding: 50px 15px;
  }

  .workshop-media-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .workshop-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .workshop-gallery img {
    height: 220px;
  }

  .workshop-description {
    font-size: 15px;
    line-height: 2;
    text-align: center;
    text-align-last: auto;
  }

  .workshop-description::first-letter {
    font-size: 2.2em;
    float: none;
    margin: 0;
    display: inline;
  }

  .workshop-arrow-down {
    font-size: 36px;
    margin-top: 30px;
  }
}
/* ============================================
   🎬 Preloader
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: #05050f;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* این خط: بعد از ۲.۵ ثانیه خودکار مخفی می‌شه */
  animation: hidePreloader 0.8s 2.5s forwards;
}

@keyframes hidePreloader {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

#preloader.hidden {
  display: none;
}

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

.preloader-logo {
  font-size: 80px;
  margin-bottom: 20px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.6));
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.preloader-text {
  font-size: 24px;
  color: #d4af37;
  margin-bottom: 30px;
  letter-spacing: 3px;
  animation: fadeIn 1s;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #ffd700, #00d4ff);
  border-radius: 3px;
  animation: preloaderLoad 2s ease-out forwards;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

@keyframes preloaderLoad {
  0% { width: 0%; }
  100% { width: 100%; }
}
/* ============================================
   🌙 تم روشن/تاریک
   ============================================ */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  background: #d4af37;
  transform: translateY(-3px) rotate(20deg);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* تم روشن */
body.light-mode {
  background: #f5f5f7;
  color: #1a1a2e;
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

body.light-mode .section {
  background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ee 50%, #f5f5f7 100%);
}

body.light-mode .section::before {
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.15) 1px, transparent 1px);
}

body.light-mode .section h2 {
  background: linear-gradient(135deg, #1a1a2e 30%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .section p,
body.light-mode .section-text,
body.light-mode .subtitle {
  color: #4a4a5a;
}

body.light-mode .feature-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

body.light-mode .feature-card h3 {
  color: #1a1a2e;
}

body.light-mode .feature-card p {
  color: #666;
}

body.light-mode .contact-card {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .contact-card span {
  color: #1a1a2e;
}

body.light-mode .footer {
  background: linear-gradient(180deg, transparent, rgba(240, 240, 245, 0.98) 30%);
}

body.light-mode .creator,
body.light-mode .collab {
  color: #4a4a5a;
}

body.light-mode .hero-content {
  background: rgba(255, 255, 255, 0.85);
}

body.light-mode .hero-title .line:first-child {
  color: #1a1a2e;
  text-shadow: 0 0 40px rgba(26, 26, 46, 0.2);
}

body.light-mode .modal-content,
body.light-mode .schedule-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 250, 0.98));
  color: #1a1a2e;
}

body.light-mode .modal-content h2,
body.light-mode .schedule-header h2 {
  color: #1a1a2e;
}
/* ============================================
   🔢 آمار مدرسه
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(15, 23, 48, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  transition: all 0.4s;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: #ffd700;
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.stat-number {
  font-size: 60px;
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #ffd700, #00d4ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 3s linear infinite;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.stat-label {
  font-size: 16px;
  color: #a0a0b8;
  font-weight: 500;
}

body.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .stat-label {
  color: #4a4a5a;
}
/* ============================================
   💧 Ripple Effect
   ============================================ */
.ripple {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, transparent 70%);
  transform: scale(0);
  animation: rippleAnim 0.8s ease-out;
  pointer-events: none;
  z-index: 99997;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
/* ============================================
   ✨ Split Text Animation
   ============================================ */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(-90deg);
  transform-origin: bottom;
  animation: wordIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}
/* ============================================
   🌙 Dark Mode با افکت دایره‌ای (View Transitions)
   ============================================ */

/* دکمه ماه */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: #d4af37;
  transform: translateY(-3px) rotate(20deg);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.theme-icon {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  position: relative;
}

/* افکت چرخش آیکون */
body.dark-mode-transition .theme-icon {
  transform: rotate(360deg) scale(1.3);
}

/* ===== View Transition ===== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 9999;
}

/* ===== تم تاریک (پیش‌فرض) ===== */
body.dark-theme {
  background: #05050f;
  color: #e8e8f0;
}

/* ===== تم روشن ===== */
body.light-theme {
  background: #f5f5f7;
  color: #1a1a2e;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .navbar .logo-text {
  background: linear-gradient(90deg, #b8941f, #d4af37, #b8941f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .nav-icons a {
  background: rgba(212, 175, 55, 0.1);
  color: #1a1a2e;
}

body.light-theme .nav-icons a:hover {
  background: #d4af37;
  color: #fff;
}

body.light-theme .theme-toggle {
  background: rgba(26, 26, 46, 0.08);
  color: #1a1a2e;
}

body.light-theme .theme-toggle:hover {
  background: #1a1a2e;
  color: #fff;
}

body.light-theme .section {
  background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ee 50%, #f5f5f7 100%);
}

body.light-theme .section::before {
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.15) 1px, transparent 1px);
}

body.light-theme .section h2 {
  background: linear-gradient(135deg, #1a1a2e 20%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .section p,
body.light-theme .section-text,
body.light-theme .subtitle {
  color: #4a4a5a;
}

body.light-theme .feature-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .feature-card h3 {
  color: #1a1a2e;
}

body.light-theme .feature-card p {
  color: #555;
}

body.light-theme .contact-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .contact-card span {
  color: #1a1a2e;
}

body.light-theme .footer {
  background: linear-gradient(180deg, transparent, rgba(240, 240, 245, 0.98) 30%);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

body.light-theme .creator {
  color: #4a4a5a;
}

body.light-theme .collab {
  color: #777;
}

body.light-theme .hero-content {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

body.light-theme .hero-title .line:first-child {
  color: #1a1a2e;
  text-shadow: 0 0 40px rgba(26, 26, 46, 0.15);
}

body.light-theme .hero-badge {
  background: rgba(212, 175, 55, 0.15);
  color: #b8941f;
}

body.light-theme .scroll-hint {
  color: #b8941f;
}

body.light-theme .modal-content,
body.light-theme .schedule-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 250, 0.98));
  color: #1a1a2e;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

body.light-theme .modal-content h2,
body.light-theme .schedule-header h2 {
  color: #1a1a2e;
  background: linear-gradient(90deg, #b8941f, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .modal-content input,
body.light-theme .dashboard select,
body.light-theme .dashboard textarea {
  background: rgba(245, 245, 250, 0.9);
  color: #1a1a2e;
  border-color: rgba(212, 175, 55, 0.4);
}

body.light-theme .dashboard {
  background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ee 100%);
}

body.light-theme .dashboard h2 {
  color: #1a1a2e;
}

body.light-theme .dashboard-content h2 {
  background: linear-gradient(90deg, #b8941f, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .assignments {
  background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ee 100%);
}

body.light-theme .assignment-card {
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a2e;
}

body.light-theme .assignment-card p {
  color: #333;
}

body.light-theme .hint {
  color: #777;
}

body.light-theme .section-number {
  color: #b8941f;
}
/* ============================================
   📢 سیستم اعلان‌ها
   ============================================ */

/* نوار اعلان */
.announcement-banner {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-radius: 15px;
  z-index: 999;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid;
}

@keyframes slideDown {
  from { transform: translate(-50%, -100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.announcement-banner.type-info {
  background: linear-gradient(135deg, rgba(0, 150, 255, 0.95), rgba(0, 212, 255, 0.9));
  border-color: #00d4ff;
  color: #fff;
}

.announcement-banner.type-success {
  background: linear-gradient(135deg, rgba(40, 200, 100, 0.95), rgba(80, 220, 120, 0.9));
  border-color: #50dc78;
  color: #fff;
}

.announcement-banner.type-warning {
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.95), rgba(255, 210, 50, 0.9));
  border-color: #ffd232;
  color: #1a1a2e;
}

.announcement-banner.type-danger {
  background: linear-gradient(135deg, rgba(220, 50, 50, 0.95), rgba(255, 80, 80, 0.9));
  border-color: #ff5050;
  color: #fff;
}

.announcement-banner.type-urgent {
  background: linear-gradient(135deg, rgba(180, 40, 180, 0.95), rgba(220, 80, 220, 0.9));
  border-color: #dc50dc;
  color: #fff;
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1), pulseUrgent 2s infinite;
}

@keyframes pulseUrgent {
  0%, 100% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 15px 50px rgba(220, 80, 220, 0.7); }
}

.announcement-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.announcement-content {
  flex: 1;
}

.announcement-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
  font-weight: 700;
}

.announcement-content p {
  font-size: 14px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

.announcement-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}

.announcement-close:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: rotate(90deg);
}

/* ============================================
   👔 پنل مدیر
   ============================================ */

.btn-manager {
  border-color: #7b2ff7;
  color: #7b2ff7;
  background: rgba(123, 47, 247, 0.1);
}

.btn-manager:hover {
  background: #7b2ff7;
  color: #fff;
  box-shadow: 0 10px 30px rgba(123, 47, 247, 0.5);
}

.admin-panel {
  max-width: 1100px;
  padding: 60px 30px;
}

.admin-panel h2 {
  font-size: 38px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #d4af37, #7b2ff7, #00d4ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 4s linear infinite;
}

.welcome-msg {
  text-align: center;
  color: #a0a0b8;
  font-size: 16px;
  margin-bottom: 30px;
}

.welcome-msg span {
  color: #d4af37;
  font-weight: 700;
}

/* آمار */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  background: rgba(15, 23, 48, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  transition: all 0.4s;
}

.admin-stat:hover {
  transform: translateY(-8px);
  border-color: #ffd700;
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: #a0a0b8;
  margin-top: 5px;
}

/* بخش‌های پنل */
.admin-section {
  background: rgba(15, 23, 48, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  text-align: right;
}

.admin-section h3 {
  color: #d4af37;
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.admin-section input,
.admin-section textarea,
.admin-section select {
  width: 100%;
  padding: 14px 18px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  color: #fff;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 15px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.admin-section input:focus,
.admin-section textarea:focus,
.admin-section select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

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

.admin-section .form-row {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}

.admin-section .form-row select {
  flex: 1;
  margin: 0;
}

/* لیست اعلان‌های مدیر */
.admin-announcement-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-right: 4px solid #d4af37;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.admin-announcement-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-announcement-item .ann-content {
  flex: 1;
}

.admin-announcement-item h4 {
  color: #00d4ff;
  font-size: 17px;
  margin-bottom: 5px;
}

.admin-announcement-item p {
  color: #c0c0d0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.admin-announcement-item .ann-meta {
  color: #888;
  font-size: 12px;
}

.ann-delete-btn {
  padding: 8px 14px;
  background: rgba(255, 80, 80, 0.15);
  color: #ff6666;
  border: 1px solid #ff6666;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.ann-delete-btn:hover {
  background: #ff6666;
  color: #fff;
}

/* تم روشن - اعلان‌ها */
body.light-theme .announcement-banner.type-warning {
  color: #1a1a2e;
}

body.light-theme .admin-stat,
body.light-theme .admin-section {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(212, 175, 55, 0.4);
}

body.light-theme .admin-section input,
body.light-theme .admin-section textarea,
body.light-theme .admin-section select {
  background: rgba(245, 245, 250, 0.9);
  color: #1a1a2e;
}

body.light-theme .admin-announcement-item {
  background: rgba(245, 245, 250, 0.8);
}

body.light-theme .admin-announcement-item p {
  color: #4a4a5a;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .announcement-banner {
    top: 70px;
    width: 95%;
    padding: 12px 15px;
    gap: 10px;
  }

  .announcement-icon {
    font-size: 22px;
  }

  .announcement-content strong {
    font-size: 14px;
  }

  .announcement-content p {
    font-size: 12px;
  }

  .admin-panel {
    padding: 40px 15px;
  }

  .admin-panel h2 {
    font-size: 26px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-section {
    padding: 20px 15px;
  }

  .admin-section .form-row {
    flex-direction: column;
  }

  .admin-announcement-item {
    flex-direction: column;
  }
}
/* ===== اعلان‌ها ===== */
.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.announcement-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-right: 5px solid #d4af37;
  border-radius: 16px;
  padding: 25px;
  text-align: right;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.announcement-card:hover {
  transform: translateX(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
  border-right-color: #ffd700;
}

.announcement-card h3 {
  color: #d4af37;
  font-size: 22px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement-card h3::before {
  content: '📢';
  font-size: 24px;
}

.announcement-card .meta {
  color: #888;
  font-size: 13px;
  margin-bottom: 15px;
}

.announcement-card p {
  color: #e0e0e0;
  line-height: 1.9;
  font-size: 16px;
}

.announcement-card .expiry {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 13px;
  color: #00d4ff;
}

#announcementTitle,
#announcementText,
#announcementExpiry {
  width: 100%;
  padding: 14px 18px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s;
}

#announcementTitle:focus,
#announcementText:focus,
#announcementExpiry:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

#announcementText {
  min-height: 120px;
  resize: vertical;
}
/* =========================================
   سامانه جدید تکالیف هنرستان اندیشه
   ========================================= */

.homework-fab {
  left: auto;
  right: 30px;
  background: linear-gradient(140deg, #c78bff, #7b2ff7, #4b1ca8);
  box-shadow: 0 10px 30px rgba(123,47,247,.42),
              0 0 40px rgba(123,47,247,.25);
}

.homework-fab .halo {
  border-color: rgba(199,139,255,.75);
}

.homework-fab .halo-2 {
  border-color: rgba(123,47,247,.6);
}

.homework-fab .halo-3 {
  border-color: rgba(212,175,55,.45);
}

.homework-fab.homework-has-new {
  animation: homeworkFabNudge 1.9s ease-in-out infinite;
}

@keyframes homeworkFabNudge {
  0%, 76%, 100% { transform: rotate(0) scale(1); }
  80% { transform: rotate(-7deg) scale(1.04); }
  84% { transform: rotate(7deg) scale(1.04); }
  88% { transform: rotate(-5deg) scale(1.03); }
  92% { transform: rotate(3deg) scale(1.01); }
}

.homework-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 5;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  border: 2px solid #fff;
  font: 800 11px 'Vazirmatn', Tahoma, sans-serif;
  box-shadow: 0 4px 14px rgba(255,77,109,.5);
}

.homework-count-badge[hidden],
#customSubjectWrap[hidden] {
  display: none !important;
}

/* پنجرهٔ تکالیف */
.homework-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  padding: 22px;
  align-items: center;
  justify-content: center;
  background: rgba(3,4,15,.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.homework-modal.open {
  display: flex;
}

.homework-panel {
  width: min(920px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(199,139,255,.35);
  border-radius: 26px;
  color: var(--text);
  background: linear-gradient(145deg, #121127, #080c1d);
  box-shadow: 0 40px 110px rgba(0,0,0,.65),
              0 0 65px rgba(123,47,247,.13);
  animation: homeworkPanelIn .35s ease both;
}

@keyframes homeworkPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.homework-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(199,139,255,.18);
  background: linear-gradient(110deg, rgba(123,47,247,.12), transparent);
}

.homework-modal-heading,
.homework-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.homework-modal-heading {
  min-width: 0;
}

.homework-modal-icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 15px;
  background: linear-gradient(140deg, #9b5cff, #5025b5);
}

.hw-eyebrow {
  display: block;
  color: #b99bf7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  direction: ltr;
  text-align: right;
}

.homework-modal-heading h2 {
  color: #fff;
  font-size: clamp(18px, 2.5vw, 25px);
  font-weight: 800;
}

.homework-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(199,139,255,.3);
  border-radius: 50%;
  background: rgba(123,47,247,.12);
  color: #dec6ff;
  font-size: 28px;
  cursor: pointer;
}

.homework-logout {
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,102,102,.25);
  color: #ffabab;
  background: rgba(255,102,102,.06);
  font: 600 11px 'Vazirmatn', Tahoma, sans-serif;
  cursor: pointer;
}

.homework-modal-body {
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}

.hw-loading {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  text-align: center;
}

.hw-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(199,139,255,.18);
  border-top-color: #bd91ff;
  border-radius: 50%;
  animation: hwSpin .8s linear infinite;
}

@keyframes hwSpin {
  to { transform: rotate(360deg); }
}

.hw-student-group,
.hw-setup-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
  border: 1px solid rgba(199,139,255,.2);
  border-radius: 16px;
  background: rgba(123,47,247,.07);
}

.hw-student-group > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hw-group-label,
.hw-field-help {
  color: var(--text-dim);
  font-size: 11px;
}

.hw-student-group strong {
  color: #e4d4ff;
  font-size: 13px;
}

.hw-change-class,
.hw-refresh-btn {
  padding: 9px 13px;
  border: 1px solid rgba(199,139,255,.34);
  border-radius: 11px;
  color: #dec6ff;
  background: rgba(123,47,247,.12);
  font: 600 12px 'Vazirmatn', Tahoma, sans-serif;
  cursor: pointer;
}

.hw-student-list-heading,
.hw-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 25px 0 15px;
}

.hw-student-list-heading h3,
.hw-list-heading h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #fff;
}

.hw-student-list-heading p,
.hw-list-heading p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
}

.hw-live-dot {
  color: #69e6b4;
  font-size: 11px;
  white-space: nowrap;
}

.hw-assignment-list {
  display: grid;
  gap: 14px;
}

.hw-assignment-card {
  padding: 19px;
  border: 1px solid rgba(199,139,255,.2);
  border-right: 3px solid #a46cff;
  border-radius: 17px;
  background: linear-gradient(130deg, rgba(22,23,51,.88), rgba(12,17,37,.83));
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform .2s, border-color .2s;
}

.hw-assignment-card:hover {
  transform: translateY(-2px);
  border-right-color: var(--gold);
}

.hw-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hw-subject-chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0,212,255,.09);
  border: 1px solid rgba(0,212,255,.18);
  color: #72e5ff;
  font-size: 11px;
  font-weight: 700;
}

.hw-expiry-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(105,230,180,.18);
  border-radius: 9px;
  color: #8bf0c6;
  background: rgba(105,230,180,.06);
  font-size: 10px;
  white-space: nowrap;
}

.hw-expiry-pill.is-expired {
  border-color: rgba(255,102,102,.28);
  color: #ff9999;
}

.hw-assignment-card h3 {
  color: #fff;
  margin: 0 0 11px;
  font-size: 18px;
}

.hw-assignment-meta {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 11px;
  margin-bottom: 13px;
}

.hw-assignment-description {
  color: #d4d8e8;
  font-size: 14px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.hw-empty-state,
.hw-error-card,
.hw-notice-card {
  padding: 28px 18px;
  border: 1px dashed rgba(199,139,255,.25);
  border-radius: 16px;
  text-align: center;
  color: var(--text-dim);
  background: rgba(123,47,247,.035);
}

.hw-empty-state strong {
  display: block;
  margin: 8px 0;
  color: #e8dcff;
  font-size: 16px;
}

.hw-empty-state p,
.hw-error-card p,
.hw-notice-card p {
  font-size: 12px;
  line-height: 1.9;
}

.hw-empty-icon,
.hw-notice-icon {
  display: block;
  font-size: 30px;
  margin-bottom: 10px;
}

.hw-setup-intro {
  justify-content: flex-start;
  margin-bottom: 20px;
  background: linear-gradient(120deg, rgba(123,47,247,.12), rgba(0,212,255,.035));
}

.hw-setup-icon {
  font-size: 28px;
}

.hw-setup-intro h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 5px;
}

.hw-setup-intro p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.9;
}

.hw-setup-form,
.hw-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #dfe1ef;
  font-size: 12px;
  font-weight: 600;
}

.hw-field-full {
  grid-column: 1 / -1;
}

.hw-control {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  outline: none;
  border: 1px solid rgba(199,139,255,.24);
  border-radius: 12px;
  background: rgba(6,10,27,.8);
  color: #f1edff;
  font: 500 13px 'Vazirmatn', Tahoma, sans-serif;
}

.hw-control:focus {
  border-color: #b99bf7;
  box-shadow: 0 0 0 3px rgba(123,47,247,.12);
}

.hw-control option {
  background: #11172c;
  color: #f1edff;
}

.hw-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.9;
}

.hw-status {
  min-height: 20px;
  color: #c7b0ff;
  font-size: 12px;
  line-height: 1.8;
}

.hw-setup-form .hw-status {
  grid-column: 1 / -1;
}

.hw-publish-btn {
  min-height: 48px;
  padding: 12px 24px;
}

.hw-publish-btn:disabled,
.hw-control:disabled {
  opacity: .6;
  cursor: wait;
}

.homework-dashboard {
  max-width: 1000px;
  padding: 100px 30px 40px;
  margin: 0 auto;
}

.homework-dashboard .dashboard-content {
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid rgba(199,139,255,.16);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(16,17,40,.78), rgba(6,11,27,.72));
  box-shadow: 0 22px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(16px);
}

.hw-dashboard-heading {
  text-align: center;
  margin-bottom: 28px;
}

.hw-dashboard-heading .hw-eyebrow {
  text-align: center;
  font-size: 10px;
}

.hw-dashboard-heading h2 {
  margin: 8px 0;
  color: #fff;
}

.hw-dashboard-heading p {
  color: var(--text-dim);
  font-size: 13px;
}

.hw-create-form {
  padding: clamp(17px, 3vw, 27px);
  border: 1px solid rgba(199,139,255,.2);
  border-radius: 20px;
  background: rgba(6,10,27,.5);
}

.hw-form-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.hw-form-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  font-size: 22px;
  background: rgba(123,47,247,.16);
}

.hw-form-heading h3 {
  color: #fff;
  margin: 0 0 3px;
  font-size: 17px;
}

.hw-form-heading p {
  color: var(--text-dim);
  font-size: 11px;
}

.hw-lifetime {
  margin-right: auto;
  padding: 7px 10px;
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 10px;
  color: #f0d77b;
  background: rgba(212,175,55,.06);
  font-size: 11px;
  white-space: nowrap;
}

.hw-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 17px;
}

.hw-form-footer .hw-status {
  flex: 1 1 220px;
}

.hw-teacher-list-section {
  margin-top: 30px;
}

.hw-list-heading {
  margin-top: 0;
}

.hw-dashboard-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.hw-card-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(199,139,255,.1);
}

.hw-delete-btn {
  border: 1px solid rgba(255,102,102,.32);
  color: #ff9999;
  background: rgba(255,102,102,.06);
  padding: 8px 12px;
  border-radius: 10px;
  font: 600 11px 'Vazirmatn', Tahoma, sans-serif;
  cursor: pointer;
}

body.light-theme .homework-panel {
  background: linear-gradient(145deg, #faf9ff, #eff4ff);
  color: #20233a;
}

body.light-theme .homework-modal-heading h2,
body.light-theme .hw-student-list-heading h3,
body.light-theme .hw-list-heading h3,
body.light-theme .hw-setup-intro h3,
body.light-theme .hw-notice-card h3,
body.light-theme .hw-error-card h3,
body.light-theme .hw-assignment-card h3,
body.light-theme .hw-empty-state strong {
  color: #23213b;
}

body.light-theme .hw-assignment-card {
  background: rgba(255,255,255,.88);
  border-color: rgba(123,47,247,.15);
}

body.light-theme .hw-assignment-description {
  color: #33384d;
}

body.light-theme .hw-control {
  background: rgba(255,255,255,.88);
  color: #24223a;
}

body.light-theme .hw-control option {
  background: #fff;
  color: #24223a;
}

@media (max-width: 768px) {
  .homework-fab {
    right: 20px;
    left: auto;
    bottom: 20px;
  }

  .homework-modal {
    padding: 0;
    align-items: flex-end;
  }

  .homework-panel {
    width: 100%;
    max-height: 93vh;
    border-radius: 24px 24px 0 0;
  }

  .homework-modal-header,
  .homework-modal-body {
    padding: 16px;
  }

  .homework-modal-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .hw-setup-form,
  .hw-form-grid {
    grid-template-columns: 1fr;
  }

  .hw-field-full {
    grid-column: auto;
  }

  .hw-form-footer {
    align-items: stretch;
  }

  .hw-publish-btn {
    width: 100%;
  }

  .homework-dashboard {
    padding: 70px 12px 35px;
  }

  .homework-dashboard .dashboard-content {
    padding: 14px;
    border-radius: 20px;
  }

  .hw-student-group {
    align-items: flex-start;
  }

  .hw-assignment-meta {
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homework-fab.homework-has-new,
  .homework-fab .halo,
  .hw-spinner {
    animation: none !important;
  }

  .homework-panel {
    animation: none;
  }
}
.homework-welcome-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  z-index: 10010;
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 14px 22px;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 16px;
  color: #fff4c4;
  background: linear-gradient(135deg, #17142d, #291750);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -12px);
  transition: opacity .3s, transform .3s, visibility .3s;
  pointer-events: none;
}

.homework-welcome-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .homework-welcome-toast {
    transition: none;
  }
}

/* ===== ریزتنظیمات نسخهٔ جدید سامانهٔ تکالیف ===== */
.homework-fab {
  right: auto;
  left: 112px;
}
.hw-setup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.hw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
}
.hw-field-full { grid-column: 1 / -1; }
.hw-control {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(199,139,255,.25);
  border-radius: 12px;
  color: var(--text);
  background: rgba(8,11,28,.78);
  font: 500 14px 'Vazirmatn', Tahoma, sans-serif;
}
.hw-control:focus { outline: 2px solid rgba(0,212,255,.45); outline-offset: 1px; }
.hw-textarea { min-height: 130px; resize: vertical; }
.hw-storage-note {
  margin: 14px 0;
  padding: 11px 13px;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 12px;
  color: var(--text-dim);
  background: rgba(212,175,55,.045);
  font-size: 11px;
  line-height: 1.9;
}
.hw-profile-meta { color: var(--text-dim); font-size: 11px; }
.homework-welcome-toast-inline {
  margin-bottom: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 13px;
  color: #ffe99a;
  background: rgba(212,175,55,.08);
  font-weight: 700;
  animation: hwWelcomeIn .25s ease both;
}
@keyframes hwWelcomeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .homework-fab { left: 96px; right: auto; bottom: 20px; }
  .hw-setup-form { grid-template-columns: 1fr; }
  .hw-field-full { grid-column: auto; }
}
