/* اتصال مجدد — overlay تمام‌صفحه */
.cro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.cro-overlay.open {
  display: flex;
  opacity: 1;
}
.cro-overlay.success .cro-card {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 24px 80px rgba(34, 197, 94, 0.15);
}
.cro-card {
  width: min(400px, 100%);
  text-align: center;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.cro-theme-student .cro-accent { --cro-a: #1E7C50; --cro-b: #6FD4A0; --cro-glow: rgba(30, 124, 80, 0.35); }
.cro-theme-teacher .cro-accent { --cro-a: #2563eb; --cro-b: #38bdf8; --cro-glow: rgba(37, 99, 235, 0.35); }
.cro-theme-manager .cro-accent { --cro-a: #7c3aed; --cro-b: #a78bfa; --cro-glow: rgba(124, 58, 237, 0.35); }

.cro-svg-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  position: relative;
}
.cro-svg-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cro-pulse-ring {
  fill: none;
  stroke: var(--cro-a, #2563eb);
  stroke-width: 1.5;
  opacity: 0.35;
  transform-origin: 60px 60px;
  animation: croRing 2.4s ease-out infinite;
}
.cro-pulse-ring.r2 { animation-delay: 0.8s; }
.cro-pulse-ring.r3 { animation-delay: 1.6s; }
@keyframes croRing {
  0% { r: 18; opacity: 0.55; }
  100% { r: 52; opacity: 0; }
}
.cro-hub {
  fill: url(#croHubGrad);
  filter: drop-shadow(0 4px 12px var(--cro-glow, rgba(37, 99, 235, 0.4)));
  animation: croHubPulse 2s ease-in-out infinite;
}
@keyframes croHubPulse {
  0%, 100% { transform: scale(1); transform-origin: 60px 60px; }
  50% { transform: scale(1.06); transform-origin: 60px 60px; }
}
.cro-node {
  fill: #fff;
  stroke: var(--cro-b, #38bdf8);
  stroke-width: 2.5;
  animation: croNode 1.8s ease-in-out infinite;
}
.cro-node.n1 { animation-delay: 0s; }
.cro-node.n2 { animation-delay: 0.35s; }
.cro-node.n3 { animation-delay: 0.7s; }
@keyframes croNode {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
.cro-link {
  fill: none;
  stroke: var(--cro-a, #2563eb);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: croDash 1.2s linear infinite;
}
.cro-link.l2 { animation-delay: 0.2s; }
.cro-link.l3 { animation-delay: 0.4s; }
@keyframes croDash {
  to { stroke-dashoffset: -28; }
}
.cro-check {
  opacity: 0;
  transform: scale(0.5);
  transform-origin: 60px 60px;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cro-overlay.success .cro-network { opacity: 0; transform: scale(0.85); transition: 0.35s ease; }
.cro-overlay.success .cro-check {
  opacity: 1;
  transform: scale(1);
}
.cro-network { transition: opacity 0.35s ease, transform 0.35s ease; }

.cro-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.cro-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 18px;
  min-height: 2.6em;
}
.cro-bar {
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 4px;
}
.cro-bar > i {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cro-a, #2563eb), var(--cro-b, #38bdf8));
  animation: croBar 1.4s ease-in-out infinite;
}
@keyframes croBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.cro-overlay.success .cro-bar { display: none; }
