@font-face {
  font-family: "Vazirmatn";
  src: url("../public/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../public/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../public/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Inter";
  src: url("../public/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("../public/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Inter";
  src: url("../public/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
}


body {
  margin: 0;
  font-family: "Vazirmatn", "Inter", Tahoma, Arial, sans-serif;
  direction: rtl;
  background: #f4f6fb;
  color: #1f2937;
}

  
  .page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
  }
  
  button {
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    background: #2563eb;
    color: white;
  }
  
  button:hover {
    background: #1d4ed8;
  }
  
  .course-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: 0.2s;
  }
  
  .course-card:hover {
    transform: translateY(-3px);
  }
  
  .payment-card {
    background: white;
    margin-top: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
  }
  
  
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  
  .modal-box {
    background: white;
    width: 360px;
    max-width: 90%;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  }
  
  .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }
  
  .btn-secondary {
    background: #64748b;
  }
  
  .btn-secondary:hover {
    background: #475569;
  }

  .form-label{
    display:block;
    margin-bottom:10px;
    font-weight:700;
    color:#1e293b;
    font-size:15px;
}

.course-card input,
.course-card select,
.course-card textarea{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid #dbeafe;
    background:#f8fbff;
    font-size:15px;
    box-sizing:border-box;
}

.course-card textarea{
    resize:vertical;
}

.notification-delete-btn {
  opacity: 0;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.notification-item:hover .notification-delete-btn {
  opacity: 1;
}

.notification-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.notification-panel {
  animation: notificationPanelOpen 0.22s ease-out;
  transform-origin: top left;
}

@keyframes notificationPanelOpen {
  from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
  }

  to {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

.login-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  font-family: "Vazirmatn", "Inter", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,0.22), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(124,58,237,0.16), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(14,165,233,0.16), transparent 32%),
    linear-gradient(135deg,#eef6ff 0%,#f8fbff 50%,#eef2ff 100%);
}

input,
button,
select,
textarea {
  font-family: inherit;
}

.username,
.email,
.ltr,
code,
pre {
  font-family: "Inter", "Vazirmatn", Arial, sans-serif;
}

.emoji-icon {
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    "Segoe UI Symbol",
    sans-serif !important;
}

.communication-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.communication-tab-btn {
  position: relative;
  min-width: 160px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.22s ease;
}

.communication-tab-btn:hover {
  transform: translateY(-3px);
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16);
}

.communication-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.28);
}

.communication-tab-icon {
  margin-left: 7px;
  font-size: 18px;
}

.chat-message-enter {
  animation: chatMessageEnter 0.22s ease-out;
}

@keyframes chatMessageEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chat-composer-icon-btn,
.chat-composer-send {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.chat-composer-icon-btn {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  font-size: 22px;
}

.chat-composer-input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  padding: 14px 18px;
  font-size: 14px;
  outline: none;
}

.chat-composer-send {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  border: none;
  font-size: 24px;
}

@media (max-width: 768px) {
  .chat-composer {
    gap: 7px;
    padding: 10px 8px;
  }

  .chat-composer-icon-btn,
  .chat-composer-send {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 19px;
  }

  .chat-composer-input {
    padding: 11px 13px;
    font-size: 13px;
  }
}
@media (max-width: 900px) {
  .chat-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 12px !important;
    border-radius: 24px !important;
    min-height: auto !important;
  }

  .chat-layout > div:nth-child(1),
  .chat-layout > div:nth-child(3) {
    max-height: 260px;
  }

  .chat-layout > div:nth-child(2) {
    min-height: 620px;
  }

  .chat-layout [style*="height: 480px"] {
    height: 420px !important;
    max-height: 420px !important;
    padding: 16px !important;
  }
}

@media (max-width: 520px) {
  .chat-layout {
    padding: 8px !important;
    border-radius: 20px !important;
  }

  .chat-layout > div:nth-child(1),
  .chat-layout > div:nth-child(3) {
    max-height: 220px;
  }

  .chat-layout > div:nth-child(2) {
    min-height: 580px;
  }

  .chat-layout [style*="height: 480px"] {
    height: 390px !important;
    max-height: 390px !important;
    padding: 12px !important;
  }
}
.mobile-chat-close-btn {
  display: none;
}

.chat-layout.mobile-chat-panel-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: 8px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* حالت لیست گفتگوها */
.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(1) {
  display: block !important;
  width: 100% !important;
  height: calc(100dvh - 16px) !important;
  max-height: calc(100dvh - 16px) !important;
  border-radius: 24px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(2),
.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(3) {
  display: none !important;
}

/* حالت داخل چت */
.chat-layout.mobile-chat-panel-open.mobile-chat-chat > div:nth-child(1),
.chat-layout.mobile-chat-panel-open.mobile-chat-chat > div:nth-child(3) {
  display: none !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat > div:nth-child(2) {
  display: flex !important;
  width: 100% !important;
  height: calc(100dvh - 16px) !important;
  max-height: calc(100dvh - 16px) !important;
  border-radius: 24px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-close-btn {
  display: flex !important;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat > div:nth-child(2) > div[style*="height: 480px"] {
  height: auto !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.chat-layout.mobile-chat-panel-open .chat-composer-input {
  font-size: 16px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer {
  width: fit-content !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 auto 10px auto !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.94) !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer-icon-btn,
.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer-send {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  font-size: 30px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer-input {
  flex: 0 1 360px !important;
  width: 360px !important;
  max-width: 60vw !important;
  height: 58px !important;
  font-size: 18px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
}

@media (max-width:768px){

  .chat-layout.mobile-chat-panel-open.mobile-chat-chat{
    font-size: 120% !important;
  }

}
.chat-layout.mobile-chat-panel-open.mobile-chat-chat h2 {
  font-size: 34px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat h2 img {
  width: 64px !important;
  height: 64px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-message-enter > div > div {
  max-width: 82% !important;
  padding: 22px 24px !important;
  border-radius: 30px !important;
}


.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer {
  padding: 18px 24px !important;
  gap: 18px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer-icon-btn,
.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer-send {
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  font-size: 40px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .chat-composer-input {
  width: 560px !important;
  max-width: 65vw !important;
  height: 82px !important;
  font-size: 30px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat input[placeholder="جستجو در پیام‌ها..."] {
  height: 72px !important;
  font-size: 24px !important;
  padding-right: 60px !important;
  padding-left: 20px !important;
  border-radius: 999px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat span[style*="translateY(-50%)"] {
  font-size: 26px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat h2 img {
  width: 64px !important;
  height: 64px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat h2 > div {
  width: 64px !important;
  height: 64px !important;
}

.mobile-members-btn{
  display:none;
}

@media (max-width:768px){

  .mobile-members-btn{
    display:flex;
    align-items:center;
    justify-content:center;

    width:44px;
    height:44px;

    border-radius:50%;
    font-size:22px;
  }

}

.mobile-members-btn {
  display: none;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-members-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;
  min-width: 60px;

  border-radius: 18px;

  background: linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );

  color: #ffffff;

  font-size: 30px;
  font-weight: 900;

  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    0 12px 30px rgba(37,99,235,.28),
    0 0 0 1px rgba(255,255,255,.06) inset;

  transition: all .2s ease;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-members-btn:active {
  transform: scale(.95);
}

.mobile-chat-back-btn {
  display: none !important;
}


.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-back-btn {

  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 56px;
  padding: 0 22px;

  border-radius: 999px;

  background: linear-gradient(
  135deg,
  #7c3aed,
  #9333ea
);

border: 1px solid rgba(255,255,255,.18);


  color: #ffffff;

  font-size: 17px;
  font-weight: 900;

  white-space: nowrap;

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
  0 12px 30px rgba(124,58,237,.35),
  inset 0 1px 0 rgba(255,255,255,.12);
  transition: all .2s ease;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-back-btn:hover {
  transform: translateY(-2px);
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-back-btn:active {
  transform: scale(.96);
}




.mobile-members-panel {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background:
    radial-gradient(circle at 85% 10%, rgba(124,58,237,.35), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(14,165,233,.25), transparent 30%),
    linear-gradient(180deg, #020617, #07111f 55%, #020617);
  color: #fff;
  padding: 22px 18px;
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-members-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -22px -18px 22px;
  padding: 22px 18px;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148,163,184,.16);
}

.mobile-members-header button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239,68,68,.16);
  color: #fecaca;
  font-size: 28px;
  font-weight: 900;
}

.mobile-members-header h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.mobile-member-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(30,41,59,.62));
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.mobile-member-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  overflow: visible;
  background: linear-gradient(135deg,#2563eb,#06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 28px;
  box-shadow: 0 12px 28px rgba(37,99,235,.32);
}

.mobile-member-avatar img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.mobile-member-status {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 3px solid #020617;
  background: #94a3b8;
}

.mobile-member-status.online {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34,197,94,.8);
}

.mobile-member-item strong {
  font-size: 25px;
  font-weight: 900;
}

.mobile-member-item p {
  margin: 7px 0 0;
  color: #94a3b8;
  font-size: 19px;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-header {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-header > div:first-child {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-header > div:nth-child(2) {
  text-align: center !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-chat .mobile-chat-header h2 {
  justify-content: center !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(1) {
  background:
  radial-gradient(circle at 85% 10%, rgba(168,85,247,.35), transparent 30%),
  radial-gradient(circle at 15% 20%, rgba(59,130,246,.30), transparent 32%),
  linear-gradient(
    135deg,
    #312e81 0%,
    #4c1d95 35%,
    #1e3a8a 70%,
    #0f172a 100%
  ) !important;

  color: #fff !important;
  padding: 22px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.30) !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(1) h3 {
  color: #fff !important;
  font-size: 34px !important;
  margin-bottom: 18px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms input[placeholder="جستجو در گفتگوها..."] {
  height: 72px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(96,165,250,.55) !important;
  background: rgba(15,23,42,.55) !important;
  color: #fff !important;
  font-size: 24px !important;
  padding: 0 24px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms input[placeholder="جستجو در گفتگوها..."]::placeholder {
  color: rgba(226,232,240,.75) !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(1) > div {
  width: calc(100% - 96px) !important;
  margin: 0 auto 16px auto !important;
  padding: 18px 22px !important;
  border-radius: 28px !important;
  background: linear-gradient(
135deg,
rgba(219,234,254,.82),
rgba(191,219,254,.72)
) !important;

border: 1px solid rgba(255,255,255,.45) !important;

backdrop-filter: blur(20px) !important;
-webkit-backdrop-filter: blur(20px) !important;
color: #ffffff !important;
opacity: 1 !important;

border: 1px solid rgba(96,165,250,.28) !important;

box-shadow:
  0 18px 40px rgba(0,0,0,.30),
  0 0 0 1px rgba(255,255,255,.04) inset !important;
  box-sizing: border-box !important;
}


.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(1) > div strong {
  font-size: 23px !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms > div:nth-child(1) > div img {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms .mobile-room-search-wrapper {
  position: relative;
  width: calc(100% - 56px);
  margin: 0 auto 18px auto;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms .mobile-room-search-wrapper::before {
  content: "🔍";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  z-index: 2;
  pointer-events: none;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms .mobile-room-search-wrapper input {
  height: 76px !important;
  border-radius: 26px !important;
  border: 2px solid rgba(96,165,250,.55) !important;
  background: rgba(15,23,42,.62) !important;
  color: #fff !important;
  font-size: 24px !important;
  padding: 0 68px 0 24px !important;
  box-shadow:
    0 14px 34px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms .mobile-room-search-wrapper input::placeholder {
  color: rgba(226,232,240,.78) !important;
}

.mobile-rooms-close-btn {
  display: none;
}

.chat-layout.mobile-chat-panel-open.mobile-chat-rooms .mobile-rooms-close-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(239,68,68,.16);
  color: #fecaca;
  font-size: 28px;
  font-weight: 900;
}

@media (max-width: 768px) {
  .announcement-mobile-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
  }

  .announcement-unread-badge {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: fit-content !important;
    max-width: 100% !important;

    margin-top: 10px !important;
    margin-right: auto !important;
    margin-left: 0 !important;

    font-size: 12px !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;

    transform: none !important;
    left: auto !important;
    right: auto !important;
  }
}
.header-logo {
  height: 72px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

/* =========================
   TEAM PANEL ORIGINAL FIX
========================= */

.team-panel-original,
.team-panel-original * {
    -webkit-text-fill-color: initial !important;
}

.team-panel-original h1,
.team-panel-original h2,
.team-panel-original h3,
.team-panel-original h4 {
    color: #1e3a8a !important;
}

.team-panel-original p,
.team-panel-original span,
.team-panel-original label,
.team-panel-original strong {
    color: #475569 !important;
}

.team-panel-original .btn,
.team-panel-original button {
    background: #2563eb !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.team-panel-original .course-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 26px rgba(15,23,42,0.07) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.team-panel-original .course-card h3 {
    color: #0f172a !important;
}

.team-panel-original .course-card p {
    color: #64748b !important;
}

.team-panel-original .header-logo {
  filter: brightness(0) !important;
  -webkit-filter: brightness(0) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* =========================
   TEAM PANEL ORIGINAL FULL FIX
========================= */

.team-panel-original {
    background: #ffffff !important;
    color: #1f2937 !important;
}

.team-panel-original,
.team-panel-original * {
    -webkit-text-fill-color: initial !important;
}

.team-panel-original h1,
.team-panel-original h2,
.team-panel-original h3,
.team-panel-original h4 {
    color: #1e3a8a !important;
}

.team-panel-original p,
.team-panel-original span,
.team-panel-original label,
.team-panel-original strong {
    color: #475569 !important;
}

.team-panel-original .header-logo {
    filter: brightness(0) !important;
    -webkit-filter: brightness(0) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

.team-panel-original .btn,
.team-panel-original button {
    background: #2563eb !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 18px rgba(37,99,235,0.18) !important;
}

.team-panel-original .course-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 26px rgba(15,23,42,0.07) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.team-panel-original .course-card h3 {
    color: #1e3a8a !important;
}

.team-panel-original .course-card p {
    color: #64748b !important;
}

/* =========================
   TEAM FEATURE PAGES ORIGINAL FIX
========================= */

.team-feature-original .header-logo {
  filter: brightness(0) !important;
  -webkit-filter: brightness(0) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.team-feature-original .btn,
.team-feature-original button {
  background: #2563eb !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 8px 18px rgba(37,99,235,0.18) !important;
}

.planet-visual-enter {
  animation: planetVisualPop 0.9s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes planetVisualPop {
  0% {
    opacity: 0;
    transform: scale(0.55) rotate(-8deg);
    filter: blur(10px);
  }

  55% {
    opacity: 1;
    transform: scale(1.08) rotate(3deg);
    filter: blur(0);
  }

  75% {
    transform: scale(0.96) rotate(-2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}
html,
body,
#root,
.planet-system,
canvas,
div,
button {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    outline: none !important;
}

canvas {
    touch-action: manipulation;
}
.nil-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  direction: rtl;
  background:
      radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.22), transparent 34%),
      radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.18), transparent 32%),
      rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: nilWelcomeFadeIn .45s ease forwards;
}

.nil-welcome-overlay.closing {
  animation: nilWelcomeFadeOut .45s ease forwards;
}

.nil-welcome-card {
  position: relative;
  width: min(760px, 94vw);
  padding: 42px 38px 32px;
  border-radius: 38px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
      radial-gradient(circle at 50% 34%, rgba(37, 99, 235, .25), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055)),
      rgba(2, 6, 23, .88);
  border: 1px solid rgba(191, 219, 254, .32);
  box-shadow:
      0 34px 95px rgba(0, 0, 0, .58),
      0 0 55px rgba(59, 130, 246, .26),
      inset 0 1px 0 rgba(255, 255, 255, .24);
  animation: nilWelcomeCardIn .55s cubic-bezier(.2, .9, .2, 1) forwards;
}

.nil-welcome-stars {
  position: absolute;
  inset: 0;
  background-image:
      radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.4px),
      radial-gradient(circle, rgba(147,197,253,.6) 0 1px, transparent 1.5px);
  background-size: 76px 76px, 128px 128px;
  background-position: 0 0, 32px 42px;
  opacity: .16;
  pointer-events: none;
}

.nil-welcome-logo-wrap {
  position: relative;
  z-index: 2;
  width: 230px;
  height: 155px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nil-welcome-logo {
  position: relative;
  z-index: 5;
  width: 96px;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(147,197,253,.5));
}

.nil-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(147, 197, 253, .18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.nil-orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(147,197,253,.95);
}

.nil-orbit-1 {
  width: 210px;
  height: 82px;
}

.nil-orbit-1 span {
  animation: nilOrbitMove1 5.5s linear infinite;
}

.nil-orbit-2 {
  width: 185px;
  height: 112px;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.nil-orbit-2 span {
  background: #c084fc;
  box-shadow: 0 0 18px rgba(192,132,252,.95);
  animation: nilOrbitMove2 7s linear infinite;
}

.nil-orbit-3 {
  width: 225px;
  height: 135px;
  transform: translate(-50%, -50%) rotate(18deg);
}

.nil-orbit-3 span {
  background: #93c5fd;
  box-shadow: 0 0 18px rgba(147,197,253,.95);
  animation: nilOrbitMove3 8.5s linear infinite;
}

.nil-welcome-card h1,
.nil-welcome-card p,
.nil-welcome-btn,
.nil-welcome-checkbox {
  position: relative;
  z-index: 2;
}

.nil-welcome-card h1 {
  margin: 0 0 22px;
  font-size: 36px;
  font-weight: 950;
}

.nil-welcome-card p {
  max-width: 590px;
  margin: 0 auto;
  color: rgba(226, 232, 240, .9);
  font-size: 16px;
  line-height: 2.18;
  font-weight: 650;
}

.nil-welcome-btn {
  margin: 30px auto 0;
  min-width: 330px;
  height: 58px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 950;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow:
      0 18px 42px rgba(37,99,235,.36),
      0 0 30px rgba(124,58,237,.32),
      inset 0 1px 0 rgba(255,255,255,.22);
}

.nil-welcome-checkbox {
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: rgba(226,232,240,.78);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.nil-welcome-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #7c3aed;
}

@keyframes nilWelcomeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nilWelcomeFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes nilWelcomeCardIn {
  from {
      opacity: 0;
      transform: translateY(20px) scale(.96);
  }
  to {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

@keyframes nilOrbitMove1 {
  0% { transform: translate(-105px, -4px); }
  25% { transform: translate(0px, -45px); }
  50% { transform: translate(105px, -4px); }
  75% { transform: translate(0px, 36px); }
  100% { transform: translate(-105px, -4px); }
}

@keyframes nilOrbitMove2 {
  0% { transform: translate(-92px, -4px); }
  25% { transform: translate(0px, -58px); }
  50% { transform: translate(92px, -4px); }
  75% { transform: translate(0px, 50px); }
  100% { transform: translate(-92px, -4px); }
}

@keyframes nilOrbitMove3 {
  0% { transform: translate(-112px, -4px); }
  25% { transform: translate(0px, -70px); }
  50% { transform: translate(112px, -4px); }
  75% { transform: translate(0px, 62px); }
  100% { transform: translate(-112px, -4px); }
}

@media (max-width: 768px) {
  .nil-welcome-card {
      padding: 30px 20px 26px;
      border-radius: 28px;
  }

  .nil-welcome-logo-wrap {
      width: 205px;
      height: 138px;
  }

  .nil-welcome-logo {
      width: 78px;
  }

  .nil-welcome-card h1 {
      font-size: 24px;
  }

  .nil-welcome-card p {
      font-size: 13.5px;
      line-height: 2.05;
  }

  .nil-welcome-btn {
      min-width: 0;
      width: 100%;
      height: 54px;
      font-size: 15px;
  }
}

