/* ───────────────────────────────────────────────────────────────
   ÖDP Gen-Z 2026 — accent layer
   Vibrant gradients, neon glows, soft-brutalist buttons,
   typography boost, spring micro-motion.

   Loaded as last stylesheet so it cleanly overrides base CSS.
─────────────────────────────────────────────────────────────── */

:root {
  --gz-violet:   #8b5cf6;
  --gz-cyan:     #06b6d4;
  --gz-pink:     #ec4899;
  --gz-orange:   #f97316;
  --gz-lime:     #84cc16;
  --gz-yellow:   #facc15;
  --gz-mint:     #2dd4bf;

  --gz-grad-1: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);  /* violet → cyan */
  --gz-grad-2: linear-gradient(135deg, #ec4899 0%, #f97316 100%);  /* pink → orange */
  --gz-grad-3: linear-gradient(135deg, #06b6d4 0%, #84cc16 100%);  /* cyan → lime */
  --gz-grad-4: linear-gradient(135deg, #facc15 0%, #ec4899 100%);  /* sun → pink */

  --gz-spring:    cubic-bezier(.34, 1.56, .55, 1);
  --gz-ease-soft: cubic-bezier(.32, .94, .42, 1.04);

  --gz-shadow-violet: 0 18px 40px rgba(139, 92, 246, .28);
  --gz-shadow-pink:   0 18px 40px rgba(236, 72, 153, .28);
  --gz-shadow-cyan:   0 18px 40px rgba(6, 182, 212, .28);
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes gz-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gz-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@keyframes gz-pop {
  0%   { transform: scale(.94); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes gz-glow {
  0%, 100% { box-shadow: var(--gz-shadow-violet); }
  50%      { box-shadow: 0 22px 52px rgba(139, 92, 246, .42); }
}

/* ── Page hero accents ─────────────────────────────────────── */
.page-hero::before {
  width: 7px !important;
  background: var(--gz-grad-1) !important;
  opacity: 1 !important;
  box-shadow: 0 0 18px rgba(139, 92, 246, .55) !important;
}

.page-hero::after {
  background: radial-gradient(circle, rgba(236, 72, 153, .18), transparent 64%) !important;
  filter: blur(40px);
}

body[data-portal-mode="institution"] .page-hero::before { background: var(--gz-grad-1) !important; }
body[data-portal-mode="teacher"]     .page-hero::before { background: var(--gz-grad-3) !important; box-shadow: 0 0 18px rgba(45, 212, 191, .55) !important; }

.page-hero h2 {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -.06em;
}

/* Hero quick-action chips */
.hero-action {
  border-radius: 999px !important;
  border: 1px solid rgba(139, 92, 246, .22) !important;
  background: linear-gradient(180deg, #fff, #f8f5ff) !important;
  font-weight: 700 !important;
  color: #4c1d95 !important;
  transition: transform 220ms var(--gz-spring), box-shadow 220ms ease, border-color 220ms ease !important;
}
.hero-action:hover,
.hero-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, .55) !important;
  box-shadow: 0 12px 26px rgba(139, 92, 246, .22);
}

/* ── Role-overview cards (admin teacher/institution) ───────── */
.role-overview-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8f7ff) !important;
  border: 1px solid rgba(139, 92, 246, .14) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.role-overview-card::before {
  width: 8px !important;
  height: 28px !important;
  border-radius: 4px !important;
  top: 16px !important;
  left: 16px !important;
  background: var(--gz-grad-1) !important;
  opacity: 1 !important;
  box-shadow: 0 0 14px rgba(139, 92, 246, .42);
}
.role-overview-card:nth-child(2)::before { background: var(--gz-grad-2) !important; box-shadow: 0 0 14px rgba(236, 72, 153, .42); }
.role-overview-card:nth-child(3)::before { background: var(--gz-grad-3) !important; box-shadow: 0 0 14px rgba(6, 182, 212, .42); }

.role-overview-card strong {
  background: var(--gz-grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 900;
  letter-spacing: -.04em;
}
.role-overview-card:nth-child(2) strong { background: var(--gz-grad-2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.role-overview-card:nth-child(3) strong { background: var(--gz-grad-3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.role-overview-card span {
  color: #6d28d9 !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
}
.role-overview-card:nth-child(2) span { color: #be185d !important; }
.role-overview-card:nth-child(3) span { color: #0e7490 !important; }

/* ── Class card track-color top strip ──────────────────────── */
.class-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, .12) !important;
  transition: transform 320ms var(--gz-spring), box-shadow 320ms ease !important;
}
.class-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gz-grad-1);
  z-index: 1;
  pointer-events: none;
}
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, .14), 0 0 0 1px rgba(139, 92, 246, .2) !important;
}

/* ── Buttons: soft-brutalist primary, pill secondary ───────── */
.btn-primary {
  background: var(--gz-grad-1) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.005em !important;
  padding: 10px 18px !important;
  box-shadow:
    0 6px 0 rgba(76, 29, 149, .35),
    0 18px 36px rgba(139, 92, 246, .32) !important;
  transition: transform 220ms var(--gz-spring), box-shadow 220ms ease !important;
  position: relative;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 rgba(76, 29, 149, .35),
    0 24px 44px rgba(139, 92, 246, .42) !important;
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 rgba(76, 29, 149, .35),
    0 8px 16px rgba(139, 92, 246, .25) !important;
}

.btn-secondary {
  border-radius: 14px !important;
  font-weight: 700 !important;
  background: linear-gradient(180deg, #ffffff, #f4f0ff) !important;
  border: 1px solid rgba(139, 92, 246, .26) !important;
  color: #4c1d95 !important;
  transition: transform 220ms var(--gz-spring), box-shadow 220ms ease, border-color 220ms ease !important;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, .55) !important;
  box-shadow: 0 12px 24px rgba(139, 92, 246, .22) !important;
}

/* ── Empty-state action becomes pill button ────────────────── */
.empty-state-action {
  background: var(--gz-grad-1) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 9px 18px !important;
  box-shadow: 0 10px 22px rgba(139, 92, 246, .32) !important;
}

/* ── Coach today list — hot pink action chip + violet rail ── */
.coach-today-item {
  background: linear-gradient(180deg, #ffffff, #faf6ff) !important;
  border: 1px solid rgba(139, 92, 246, .16) !important;
  position: relative;
  overflow: hidden;
}
.coach-today-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gz-grad-2);
  border-radius: 0 6px 6px 0;
}

.coach-action-chip {
  background: var(--gz-grad-2) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  font-size: 10.5px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 14px rgba(236, 72, 153, .32) !important;
}

/* ── Badges & topic chips ──────────────────────────────────── */
.badge-blue,
.badge-green {
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px !important;
}
.badge-blue {
  background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(6, 182, 212, .14)) !important;
  color: #4c1d95 !important;
  border: 1px solid rgba(139, 92, 246, .3) !important;
}
.badge-green {
  background: linear-gradient(135deg, rgba(45, 212, 191, .14), rgba(132, 204, 22, .16)) !important;
  color: #0e7490 !important;
  border: 1px solid rgba(45, 212, 191, .35) !important;
}
.topic-chip {
  border-radius: 999px !important;
  font-weight: 700 !important;
  background: rgba(139, 92, 246, .08) !important;
  color: #4c1d95 !important;
  border: 1px solid rgba(139, 92, 246, .22) !important;
}

/* ── Stat / metric big numbers ─────────────────────────────── */
.stat-value,
.metric-card strong {
  font-size: 34px !important;
  font-weight: 900 !important;
  letter-spacing: -.05em !important;
  background: var(--gz-grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}

.metric-card {
  background: linear-gradient(180deg, #fff, #faf6ff) !important;
  border: 1px solid rgba(139, 92, 246, .14) !important;
  box-shadow: 0 12px 28px rgba(139, 92, 246, .08), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

/* ── Sidebar sparkle ───────────────────────────────────────── */
.nav-item.active {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(6, 182, 212, .18)) !important;
  border-color: rgba(139, 92, 246, .45) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, .12),
    0 0 28px rgba(139, 92, 246, .35),
    inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}
.nav-item.active .dot {
  background: #06b6d4 !important;
  box-shadow: 0 0 12px #06b6d4 !important;
}
.nav-item:hover .dot {
  background: rgba(6, 182, 212, .9) !important;
}

.logo-mark {
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, .95), transparent 28px),
    var(--gz-grad-1) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  box-shadow:
    0 14px 28px rgba(139, 92, 246, .42),
    inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

/* ── Auth gate card ────────────────────────────────────────── */
.auth-gate-card {
  border: 1px solid rgba(139, 92, 246, .2) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 92, 246, .14), transparent 50%),
    radial-gradient(circle at 88% 100%, rgba(6, 182, 212, .14), transparent 50%),
    #fff !important;
  box-shadow:
    0 38px 70px rgba(15, 23, 42, .14),
    0 0 0 1px rgba(139, 92, 246, .08) !important;
}
.auth-gate-card .eyebrow,
.eyebrow {
  background: var(--gz-grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
}
.auth-gate-card h2 {
  background: linear-gradient(135deg, #0f172a 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
}

/* ── Card spring on hover (universal) ──────────────────────── */
.card,
.class-card,
.student-card,
.metric-card,
.role-overview-card,
.coach-today-item {
  transition: transform 320ms var(--gz-spring), box-shadow 320ms ease, border-color 220ms ease !important;
}
.card:hover,
.student-card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .14), 0 0 0 1px rgba(139, 92, 246, .12) !important;
}

/* ── Toast color override ──────────────────────────────────── */
.toast {
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.005em !important;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .25) !important;
}

/* ── Heat row gets neon meter ──────────────────────────────── */
.heat-row {
  background: linear-gradient(180deg, #fff, #fefaff) !important;
  border: 1px solid rgba(139, 92, 246, .14) !important;
  border-radius: 14px !important;
}
.heat-meter {
  background: rgba(139, 92, 246, .12) !important;
}
.heat-meter span {
  background: var(--gz-grad-2) !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, .55);
}

/* ── Progress bar pop ──────────────────────────────────────── */
.progress-bar {
  background: rgba(139, 92, 246, .12) !important;
  border-radius: 999px !important;
}
.progress-bar span {
  background: var(--gz-grad-1) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, .45);
}

/* ── Inputs focus glow ─────────────────────────────────────── */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(139, 92, 246, .6) !important;
  outline-offset: 2px;
  border-color: rgba(139, 92, 246, .55) !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .14) !important;
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .card,
  .class-card,
  .student-card,
  .metric-card,
  .role-overview-card,
  .coach-today-item,
  .btn-primary,
  .btn-secondary,
  .hero-action,
  .empty-state-action {
    transition-duration: .001ms !important;
  }
}

/* ───────────────────────────────────────────────────────────
   Entry portal (app.html) — Gen-Z makeover for the 3 cards
─────────────────────────────────────────────────────────── */

.entry-list {
  /* Subtle drop-shadow + cleaner border */
  box-shadow:
    0 30px 70px rgba(15, 23, 42, .12),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.entry-card .card-icon {
  border-radius: 22px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .8) !important;
  transition: transform 320ms var(--gz-spring), box-shadow 320ms ease !important;
}

.entry-card.card-student .card-icon {
  background: var(--gz-grad-1) !important;
  color: #fff !important;
}
.entry-card.card-teacher .card-icon {
  background: var(--gz-grad-3) !important;
  color: #fff !important;
}
.entry-card.card-admin .card-icon {
  background: var(--gz-grad-4) !important;
  color: #fff !important;
}

.entry-card:hover .card-icon,
.entry-card:focus-visible .card-icon {
  transform: scale(1.06) rotate(-3deg);
}

.entry-card .card-title {
  background: linear-gradient(135deg, #0f172a 0%, #4c1d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
}

.entry-card .card-arrow {
  border-radius: 999px !important;
  background: var(--gz-grad-1) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(139, 92, 246, .4) !important;
  transition: transform 280ms var(--gz-spring), box-shadow 280ms ease !important;
}
.entry-card:hover .card-arrow {
  transform: translateX(4px) scale(1.06);
  box-shadow: 0 12px 24px rgba(139, 92, 246, .55) !important;
}
.entry-card.card-teacher .card-arrow { background: var(--gz-grad-3) !important; box-shadow: 0 8px 18px rgba(6, 182, 212, .4) !important; }
.entry-card.card-admin   .card-arrow { background: var(--gz-grad-4) !important; box-shadow: 0 8px 18px rgba(250, 204, 21, .4) !important; }
.entry-card.card-teacher:hover .card-arrow { box-shadow: 0 12px 24px rgba(6, 182, 212, .55) !important; }
.entry-card.card-admin:hover   .card-arrow { box-shadow: 0 12px 24px rgba(250, 204, 21, .55) !important; }

/* Brand mark glow */
.brand-mark {
  background: var(--gz-grad-1) !important;
  color: #fff !important;
  box-shadow:
    0 18px 40px rgba(139, 92, 246, .35),
    inset 0 1px 0 rgba(255, 255, 255, .8) !important;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(139, 92, 246, .35), transparent 60%);
  filter: blur(14px);
  z-index: -1;
  opacity: .6;
}

.brand-title {
  background: linear-gradient(135deg, #0f172a 0%, #6d28d9 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  letter-spacing: -.05em !important;
}

/* Status pill on entry */
.status-pill {
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(6, 182, 212, .12)) !important;
  border: 1px solid rgba(139, 92, 246, .28) !important;
  color: #4c1d95 !important;
  font-weight: 800 !important;
}

/* ───────────────────────────────────────────────────────────
   Student modal — claim form + dashboard pages
─────────────────────────────────────────────────────────── */

.modal {
  border-radius: 28px !important;
  border: 1px solid rgba(139, 92, 246, .18) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(139, 92, 246, .12), transparent 50%),
    radial-gradient(circle at 92% 100%, rgba(6, 182, 212, .12), transparent 50%),
    #fff !important;
  box-shadow:
    0 50px 100px rgba(15, 23, 42, .25),
    0 0 0 1px rgba(139, 92, 246, .1) !important;
}

.modal-title {
  background: linear-gradient(135deg, #0f172a 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  letter-spacing: -.05em !important;
}

.modal-eyebrow {
  background: var(--gz-grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
}

.student-success-icon {
  background: var(--gz-grad-3) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(45, 212, 191, .42) !important;
  animation: gz-pop 480ms var(--gz-spring) both;
}

.student-success-head h3 {
  background: linear-gradient(135deg, #0f172a 0%, #0e7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
}

.student-next-link {
  background: var(--gz-grad-1) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.005em !important;
  box-shadow:
    0 6px 0 rgba(76, 29, 149, .35),
    0 16px 32px rgba(139, 92, 246, .32) !important;
  transition: transform 220ms var(--gz-spring), box-shadow 220ms ease !important;
}
.student-next-link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 rgba(76, 29, 149, .35),
    0 22px 38px rgba(139, 92, 246, .42) !important;
}
.student-next-link.is-preferred {
  background: var(--gz-grad-2) !important;
  box-shadow:
    0 6px 0 rgba(157, 23, 77, .35),
    0 16px 32px rgba(236, 72, 153, .32) !important;
}

.student-scope-pill {
  background: var(--gz-grad-1) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: 5px 14px !important;
  box-shadow: 0 6px 14px rgba(139, 92, 246, .35) !important;
}

/* ── Student dashboard pages (tabbar-driven) ─────────────── */
.student-dashboard-pages {
  display: grid;
  margin-top: 14px;
}
.student-dashboard-pages > .student-dashboard-card {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition:
    opacity 280ms var(--gz-ease-soft),
    transform 320ms var(--gz-spring);
}
.student-dashboard-pages > .student-dashboard-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.student-dashboard-card {
  border: 1px solid rgba(139, 92, 246, .16) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 92, 246, .08), transparent 60%),
    #ffffff !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08) !important;
  min-height: 132px !important;
}
.student-dashboard-card h3 {
  background: var(--gz-grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
}
.student-dashboard-pages > .student-dashboard-card[data-card="review"] h3  { background: var(--gz-grad-2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.student-dashboard-pages > .student-dashboard-card[data-card="exam"]   h3  { background: var(--gz-grad-3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.student-dashboard-pages > .student-dashboard-card[data-card="coach"]  h3  { background: var(--gz-grad-4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.student-dashboard-tabbar {
  margin-top: 14px;
}
.student-priority-list li::before {
  background: var(--gz-grad-1) !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .18) !important;
}
