/* ============================================================
   POWER OF APPRECIATION — Spectacular Tech Theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:            #020b18;
  --surface:       rgba(255,255,255,0.035);
  --surface-b:     rgba(255,255,255,0.07);
  --blue:          #3b82f6;
  --blue-dim:      rgba(59,130,246,0.25);
  --cyan:          #06b6d4;
  --cyan-dim:      rgba(6,182,212,0.25);
  --green:         #10b981;
  --green-dim:     rgba(16,185,129,0.25);
  --amber:         #f59e0b;
  --amber-dim:     rgba(245,158,11,0.25);
  --purple:        #8b5cf6;
  --text:          #e2e8f0;
  --muted:         #64748b;
  --header-h:      96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Animated background ─────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.055) 1px, transparent 1px);
  background-size: 52px 52px;
}

.bg-orb {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(90px); opacity: 0.16;
}
.orb1 {
  width: 680px; height: 680px; top: -220px; left: -180px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.orb2 {
  width: 520px; height: 520px; top: 28%; right: -160px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  animation: orbFloat2 17s ease-in-out infinite;
}
.orb3 {
  width: 440px; height: 440px; bottom: -80px; left: 32%;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)}  50%{transform:translate(55px,38px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)}  50%{transform:translate(-48px,55px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)}  50%{transform:translate(38px,-48px)} }

/* ─── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(2,11,24,0.88);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(59,130,246,0.16);
  box-shadow: 0 4px 32px rgba(0,0,0,0.55);
}
.header-inner {
  max-width: 1260px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 20px; padding: 0 28px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.logo-icon-wrap {
  position: relative; flex-shrink: 0;
  width: 80px; height: 80px;
}
.logo-icon-wrap svg  { width: 80px; height: 80px; filter: drop-shadow(0 0 16px rgba(59,130,246,0.7)); }
.logo-img {
  width: 80px; height: 80px;
  object-fit: contain; border-radius: 16px;
  filter: drop-shadow(0 0 16px rgba(59,130,246,0.65));
}
.logo-pulse {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(59,130,246,0.45);
  animation: logoPulse 2.2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform:scale(1);   opacity:0.7; }
  50%      { transform:scale(1.2); opacity:0;   }
}

.logo-text-wrap { min-width: 0; }
.logo-name {
  display: block; font-size: 13px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(120deg, #60a5fa 0%, #06b6d4 60%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-tagline {
  display: block; font-size: 10px; color: var(--muted);
  letter-spacing: 0.4px; margin-top: 1px;
}

/* Live clock */
.header-clock {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  padding: 7px 16px; border-radius: 10px;
  background: rgba(6,182,212,0.09);
  border: 1px solid rgba(6,182,212,0.22);
  white-space: nowrap;
}

/* Live badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: #34d399; padding: 6px 14px; border-radius: 999px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.28);
  white-space: nowrap;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; animation: liveBlink 1.3s ease-in-out infinite;
}
@keyframes liveBlink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* Assign button */
.btn-assign-hero {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border: 0; border-radius: 14px;
  cursor: pointer; font-weight: 800; font-size: 14px; font-family: inherit;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 0 22px rgba(59,130,246,0.5), 0 4px 16px rgba(0,0,0,0.35);
  transition: all 0.22s ease;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-assign-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.btn-assign-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(59,130,246,0.75), 0 8px 28px rgba(0,0,0,0.45);
}
.btn-assign-hero:active  { transform: scale(0.98); }
.btn-assign-hero:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── Main wrapper ────────────────────────────────────── */
.main-wrap {
  position: relative; z-index: 1;
  max-width: 1260px; margin: 0 auto;
  padding: 44px 28px 72px;
}

/* ─── Page hero ───────────────────────────────────────── */
.page-hero { text-align: center; margin-bottom: 52px; padding: 28px 16px 0; }

.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(6,182,212,0.09); border: 1px solid rgba(6,182,212,0.28);
  padding: 7px 18px; border-radius: 999px; margin-bottom: 22px;
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(6,182,212,0.35); }
  50%      { box-shadow: 0 0 0 9px rgba(6,182,212,0); }
}

.page-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900; letter-spacing: -0.5px;
  color: #f0f6ff; line-height: 1.14; margin-bottom: 18px;
}
.gradient-text {
  background: linear-gradient(120deg, #60a5fa 0%, #06b6d4 50%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero-sub {
  font-size: 16px; color: #94a3b8;
  max-width: 620px; margin: 0 auto; line-height: 1.75;
}

/* ─── Metrics grid ────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 26px;
}
@media (max-width: 960px)  { .metrics-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .metrics-grid { grid-template-columns: 1fr; } }

.metric-card {
  position: relative; overflow: hidden;
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--surface-b);
  backdrop-filter: blur(12px);
  display: flex; gap: 18px; align-items: flex-start;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  cursor: default;
}
.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59,130,246,0.32);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.metric-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.icon-blue   { background: rgba(59,130,246,0.16); color: #60a5fa; }
.icon-cyan   { background: rgba(6,182,212,0.16);  color: #22d3ee; }
.icon-green  { background: rgba(16,185,129,0.16); color: #34d399; }
.icon-amber  { background: rgba(245,158,11,0.16); color: #fbbf24; }

.metric-info { flex: 1; min-width: 0; }
.metric-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px;
}
.metric-value {
  font-size: 36px; font-weight: 900; color: #f1f5f9;
  line-height: 1; letter-spacing: -0.5px;
}
.metric-sub  { font-size: 12px; color: var(--muted); margin-top: 7px; }

/* corner glow */
.metric-glow {
  position: absolute; bottom: -35px; right: -35px;
  width: 130px; height: 130px; border-radius: 50%;
  filter: blur(44px); opacity: 0.22; pointer-events: none;
}
.glow-blue   { background: var(--blue); }
.glow-cyan   { background: var(--cyan); }
.glow-green  { background: var(--green); }
.glow-amber  { background: var(--amber); }

/* ─── Assignment status card ──────────────────────────── */
.assignment-status-card {
  position: relative; overflow: hidden;
  padding: 30px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg,
    rgba(37,99,235,0.1)  0%,
    rgba(6,182,212,0.05) 100%);
  border: 1px solid rgba(59,130,246,0.28);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: all 0.26s ease;
  backdrop-filter: blur(12px);
}
.assignment-status-card:hover {
  border-color: rgba(59,130,246,0.65);
  box-shadow: 0 0 36px rgba(59,130,246,0.22), 0 10px 40px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}
.assignment-status-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 55%, rgba(6,182,212,0.06));
}

/* scan line sweep */
.assignment-status-card::after {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.07), transparent);
  pointer-events: none;
  animation: scanSweep 4s ease-in-out infinite;
}
@keyframes scanSweep { 0%{left:-60%} 100%{left:160%} }

.asc-left { display: flex; align-items: center; gap: 22px; }
.asc-icon {
  width: 62px; height: 62px; border-radius: 18px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 0 24px rgba(59,130,246,0.45);
}
.asc-title { font-size: 20px; font-weight: 800; color: #f0f6ff; margin-bottom: 5px; }
.asc-sub   { font-size: 13px; color: #94a3b8; line-height: 1.5; }
.asc-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.badge-glow {
  padding: 7px 20px; border-radius: 999px; font-size: 12px;
  font-weight: 800; letter-spacing: 1.2px; color: #93c5fd;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.4);
  animation: glowPulse 2.4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50%      { box-shadow: 0 0 0 7px rgba(59,130,246,0); }
}
.asc-arrow { color: #60a5fa; font-size: 22px; transition: transform 0.2s; }
.assignment-status-card:hover .asc-arrow { transform: translateX(5px); }

/* ─── Common buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 20px;
  cursor: pointer; font-weight: 700; font-size: 14px; font-family: inherit;
  transition: all 0.2s ease;
}
.btn:active  { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn.secondary {
  background: rgba(100,116,139,0.18); color: #94a3b8;
  border: 1px solid rgba(100,116,139,0.28);
}
.btn.secondary:hover { background: rgba(100,116,139,0.32); }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

.btn-send {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 0 18px rgba(59,130,246,0.38);
}
.btn-send:hover {
  box-shadow: 0 0 30px rgba(59,130,246,0.65);
  transform: translateY(-2px);
}

/* ─── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 5px 14px;
  border-radius: 999px; font-weight: 700; font-size: 12px;
}
.badge.yellow { background: rgba(245,158,11,0.14); color: #fbbf24; border: 1px solid rgba(245,158,11,0.28); }
.badge.green  { background: rgba(16,185,129,0.14); color: #34d399; border: 1px solid rgba(16,185,129,0.28); }
.badge.gray   { background: rgba(100,116,139,0.14);color: #94a3b8; border: 1px solid rgba(100,116,139,0.28); }
.badge.blue   { background: rgba(59,130,246,0.14);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.28); }

.sub { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ─── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(1,7,18,0.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}

.modal {
  position: relative; width: 100%; max-width: 700px;
  background: #07111f;
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 26px;
  box-shadow: 0 0 70px rgba(59,130,246,0.14), 0 32px 90px rgba(0,0,0,0.7);
  overflow: hidden;
}
/* top accent bar */
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6);
}

.modal-header { padding: 32px 32px 0; text-align: center; }
.modal-header-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  box-shadow: 0 0 30px rgba(59,130,246,0.45);
}
.modal-title    { font-size: 22px; font-weight: 900; color: #f0f6ff; margin-bottom: 6px; }
.modal-subtitle { font-size: 13px; color: var(--muted); }

.modal-body { padding: 22px 32px 32px; }

.modal-grid { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 22px; }
.mini {
  flex: 1 1 160px; min-width: 160px; padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.mini .k {
  font-size: 11px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  display: flex; align-items: center; gap: 6px;
}
.mini .v { font-size: 30px; font-weight: 900; color: #f0f6ff; margin-top: 10px; }

.fadeScaleIn { animation: fadeScaleIn 290ms ease both; }
@keyframes fadeScaleIn {
  from { opacity:0; transform: scale(0.95) translateY(14px); }
  to   { opacity:1; transform: scale(1)    translateY(0);    }
}

.spinner {
  width: 16px; height: 16px; border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.22);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 16px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.28);
}
.check {
  width: 38px; height: 38px; border-radius: 999px;
  background: #10b981;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px; flex-shrink: 0;
}

.link-row { margin-top: 14px; color: var(--muted); font-size: 13px; }
.link-row a { color: #60a5fa; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

/* ─── WOW full-page overlay ───────────────────────────── */
.wow-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.wow-overlay:not(.hidden) { display: flex; }

/* full-screen card */
.wow-card {
  position: relative; width: 100%; height: 100%;
  text-align: center; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #04142b 0%, #010810 100%);
}

/* tech grid over the WOW card */
.wow-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.065) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* horizontal scan line */
.wow-scan {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent 5%, rgba(6,182,212,0.7) 50%, transparent 95%);
  box-shadow: 0 0 18px rgba(6,182,212,0.9);
  animation: scanDown 2.2s linear infinite;
}
@keyframes scanDown { from{top:0} to{top:100%} }

/* Logo inside WOW overlay */
.wow-logo-wrap {
  position: relative; z-index: 4;
  margin-bottom: 18px;
}
.wow-logo-img {
  width: 110px; height: 110px;
  object-fit: contain; border-radius: 22px;
  filter:
    drop-shadow(0 0 22px rgba(6,182,212,0.9))
    drop-shadow(0 0 50px rgba(59,130,246,0.6));
  animation: wowLogoPulse 1.6s ease-in-out infinite alternate;
}
@keyframes wowLogoPulse {
  from { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(6,182,212,0.8))  drop-shadow(0 0 40px rgba(59,130,246,0.5)); }
  to   { transform: scale(1.07); filter: drop-shadow(0 0 36px rgba(6,182,212,1))    drop-shadow(0 0 70px rgba(59,130,246,0.8)); }
}

.wow-title {
  position: relative; z-index: 4;
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(120deg, #60a5fa 0%, #06b6d4 45%, #34d399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: titlePulse 1.3s ease-in-out infinite alternate;
  padding: 0 20px;
}
@keyframes titlePulse {
  from { filter: drop-shadow(0 0 18px rgba(96,165,250,0.55)); }
  to   { filter: drop-shadow(0 0 55px rgba(6,182,212,0.85)); }
}

.wow-loader-spinner {
  position: relative; z-index: 4;
  width: 72px; height: 72px; margin: 24px auto 0;
  border-radius: 50%;
  border: 7px solid rgba(59,130,246,0.14);
  border-top-color:  #3b82f6;
  border-right-color: #06b6d4;
  animation: wowSpin 0.85s linear infinite;
}
@keyframes wowSpin { to { transform: rotate(360deg); } }

.wow-sub {
  position: relative; z-index: 4;
  margin-top: 22px; font-size: 17px; font-weight: 600;
  color: #94a3b8; letter-spacing: 0.5px;
  padding: 0 24px;
}

/* orb rings for WOW state */
.wow-ring {
  position: absolute; z-index: 1; pointer-events: none;
  border-radius: 50%; border: 1px solid rgba(59,130,246,0.18);
  animation: ringExpand 2s ease-out infinite;
}
.wow-ring:nth-child(1) { width:180px; height:180px; top:calc(50% - 90px); left:calc(50% - 90px); animation-delay:0s; }
.wow-ring:nth-child(2) { width:360px; height:360px; top:calc(50% - 180px); left:calc(50% - 180px); animation-delay:0.5s; }
.wow-ring:nth-child(3) { width:560px; height:560px; top:calc(50% - 280px); left:calc(50% - 280px); animation-delay:1s; }
@keyframes ringExpand {
  0%   { transform:scale(0.6); opacity:0.7; }
  100% { transform:scale(1.4); opacity:0; }
}

/* countdown */
.wow-countdown {
  position: relative; z-index: 3;
  margin: 10px auto 6px;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
}
/* outer track */
.wow-countdown::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid rgba(6,182,212,0.12);
  pointer-events: none;
}
/* spinning arc */
.wow-countdown::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: #06b6d4;
  border-right-color: rgba(6,182,212,0.4);
  animation: countdownRing 1s linear infinite;
  pointer-events: none;
}
@keyframes countdownRing { to { transform: rotate(360deg); } }

#wow_countdown_num {
  position: relative; z-index: 1;
  font-size: 52px;
  font-weight: 900;
  color: #06b6d4;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(6,182,212,0.9), 0 0 10px rgba(6,182,212,0.5);
  line-height: 1;
  animation: countdownPop 1s ease-in-out infinite;
  min-width: 60px; text-align: center;
}
#wow_countdown_num.urgent {
  color: #f59e0b;
  text-shadow: 0 0 28px rgba(245,158,11,0.9), 0 0 10px rgba(245,158,11,0.6);
  animation: countdownPulse 0.5s ease-in-out infinite;
}
@keyframes countdownPop {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.15); }
  35%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
@keyframes countdownPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.2); }
}

/* confetti */
.wow-confetti { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 6px; border-radius: 4px;
  background: var(--c, #60b8c3); opacity: 0;
  transform: translate(-50%,-50%);
  animation: confettiExplode 1100ms ease-out forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes confettiExplode {
  0%   { opacity:1; transform:translate(-50%,-50%) translate(0,0) rotate(0deg) scale(1.2); }
  100% { opacity:0; transform:translate(-50%,-50%) translate(var(--dx,0px),var(--dy,-200px)) rotate(var(--rot,200deg)) scale(0.8); }
}

/* ─── Send Results card ───────────────────────────────── */
.results-card {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(139,92,246,0.30);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 18px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(139,92,246,0.10);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.results-card:hover {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 60px rgba(139,92,246,0.20);
}
/* Decorative shimmer line */
.results-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #8b5cf6);
  background-size: 200% 100%;
  animation: resultsShimmer 2.5s linear infinite;
}
@keyframes resultsShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.results-card-left {
  display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0;
}
.results-card-icon {
  flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(6,182,212,0.15));
  border: 1px solid rgba(139,92,246,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #a78bfa;
  box-shadow: 0 0 18px rgba(139,92,246,0.25);
}
.results-card-title {
  font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 5px;
}
.results-card-sub {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.results-count-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.results-count-badge i { color: #8b5cf6; }

.results-card-right { flex-shrink: 0; }

.btn-send-results {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  color: #fff; font-weight: 700; font-size: 14px;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  letter-spacing: 0.3px;
}
.btn-send-results:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.55);
}
.btn-send-results:active  { transform: translateY(0); }
.btn-send-results:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

/* ─── Responses modal ─────────────────────────────────── */
.responses-modal { max-width: 720px; }

/* Clickable metric card */
.metric-card-clickable {
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.metric-card-clickable:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 32px rgba(16,185,129,0.35), 0 8px 32px rgba(0,0,0,0.45);
  border-color: rgba(16,185,129,0.5);
}
.metric-click-hint {
  position: absolute; top: 12px; right: 14px;
  color: rgba(16,185,129,0.7); font-size: 14px;
  transition: color 0.18s;
}
.metric-card-clickable:hover .metric-click-hint { color: #10b981; }

/* Loading state */
.responses-loading {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); padding: 28px 0; justify-content: center;
}
.resp-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(16,185,129,0.2);
  border-top-color: #10b981;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.responses-empty {
  text-align: center; padding: 40px 20px;
  color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.responses-empty i { font-size: 38px; color: rgba(16,185,129,0.35); }

/* Individual response card */
.response-card {
  background: rgba(16,185,129,0.055);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color 0.18s, background 0.18s;
}
.response-card:hover {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.09);
}
.response-card-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.response-about-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  padding: 5px 12px; border-radius: 20px; font-size: 13px;
}
.response-about-badge i { color: #10b981; }
.response-number {
  font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 3px 10px; border-radius: 20px;
}
.response-text {
  color: var(--text); font-size: 14px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border-left: 3px solid rgba(16,185,129,0.4);
  margin-bottom: 10px;
}
.response-meta {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.response-meta i { color: rgba(16,185,129,0.6); }

/* ─── Hidden helper ───────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Responsive adjustments ─────────────────────────── */
@media (max-width: 700px) {
  .header-inner   { padding: 0 16px; gap: 12px; }
  .logo-tagline   { display: none; }
  .header-clock   { display: none; }
  .live-badge     { display: none; }
  .main-wrap      { padding: 28px 16px 48px; }
  .page-hero      { margin-bottom: 32px; }
  .assignment-status-card { flex-direction: column; align-items: flex-start; }
  .asc-right      { width: 100%; justify-content: flex-end; }
  .modal-header   { padding: 22px 20px 0; }
  .modal-body     { padding: 16px 20px 24px; }
}
