@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --ocean-deep: #021526;
  --ocean-mid: #03396c;
  --ocean-bright: #005b96;
  --cyan: #00c9ff;
  --cyan-light: #92effd;
  --gold: #fbbf24;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(0, 201, 255, 0.2);
  --font: 'Cairo', sans-serif;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.academy-body {
  font-family: var(--font);
  background: var(--ocean-deep);
  color: var(--text);
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Animated background blobs ── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite;
}

.bg-blob--1 { width: 500px; height: 500px; background: var(--ocean-bright); top: -10%; right: -10%; }
.bg-blob--2 { width: 400px; height: 400px; background: var(--cyan); bottom: 10%; left: -5%; animation-delay: -7s; }
.bg-blob--3 { width: 300px; height: 300px; background: #6366f1; top: 40%; left: 30%; animation-delay: -14s; opacity: 0.2; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.page-wrap { position: relative; z-index: 1; }

/* ── Navbar ── */
.academy-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: var(--transition);
}

.academy-nav.scrolled {
  background: rgba(2, 21, 38, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.academy-nav__inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.academy-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.academy-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 201, 255, 0.4);
}

.academy-brand__text {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.2;
}

.academy-brand__text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.5px;
}

.academy-nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin-right: auto;
}

.academy-nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.academy-nav__links a:hover,
.academy-nav__links a.active {
  color: var(--white);
  background: var(--surface);
}

.academy-nav__links a.active {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 201, 255, 0.3);
}

.academy-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.academy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.35rem;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.academy-btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--ocean-bright));
  color: var(--ocean-deep);
  box-shadow: 0 4px 20px rgba(0, 201, 255, 0.4);
}

.academy-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 201, 255, 0.5);
}

.academy-btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--glass-border);
}

.academy-btn--outline:hover {
  background: var(--surface);
  border-color: var(--cyan);
}

.academy-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.academy-btn--ghost:hover { background: var(--surface-hover); }

.academy-btn--danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.academy-btn--sm { padding: 0.35rem 0.85rem; font-size: 0.78rem; }

.academy-nav__toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--white);
  margin-right: auto;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-light);
}

.user-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* ── Hero (Homepage) ── */
.academy-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.academy-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.academy-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 201, 255, 0.12);
  border: 1px solid rgba(0, 201, 255, 0.3);
  color: var(--cyan);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease both;
}

.academy-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.academy-hero__title .highlight {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.academy-hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 520px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.academy-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.academy-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 201, 255, 0.2);
  animation: ringPulse 4s ease-in-out infinite;
}

.hero-ring--1 { width: 420px; height: 420px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-ring--2 { width: 480px; height: 480px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -2s; opacity: 0.5; }

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; }
}

.academy-hero__image {
  width: min(360px, 85vw);
  height: min(360px, 85vw);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(0, 201, 255, 0.5);
  box-shadow: var(--shadow-glow), var(--shadow);
  position: relative;
  z-index: 2;
}

.hero-float-card {
  position: absolute;
  background: rgba(2, 21, 38, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow);
  z-index: 3;
  animation: floatCard 3s ease-in-out infinite;
}

.hero-float-card--1 { bottom: 10%; right: -5%; animation-delay: 0s; }
.hero-float-card--2 { top: 15%; left: -8%; animation-delay: -1.5s; }

.hero-float-card i {
  font-size: 1.4rem;
  color: var(--cyan);
}

.hero-float-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
}

.hero-float-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Wave divider ── */
.wave-divider {
  width: 100%;
  line-height: 0;
  margin-top: -2px;
}

.wave-divider svg { display: block; width: 100%; }

/* ── Stats ── */
.academy-stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  transform: translateY(-3rem);
  position: relative;
  z-index: 5;
}

.academy-stat {
  background: rgba(3, 57, 108, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.academy-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 201, 255, 0.4);
  box-shadow: var(--shadow-glow);
}

.academy-stat__icon {
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.academy-stat__num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.academy-stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ── Sections ── */
.academy-section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.academy-section--alt {
  background: rgba(3, 57, 108, 0.25);
  max-width: 100%;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.academy-section--alt .academy-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.academy-section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.academy-section__subtitle {
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.academy-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.academy-section__header .academy-section__subtitle {
  margin: 0 auto;
}

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 201, 255, 0.35);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 201, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Schedule cards ── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.schedule-card {
  background: linear-gradient(145deg, rgba(0, 91, 150, 0.4), rgba(2, 21, 38, 0.8));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.schedule-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.schedule-card__days {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.schedule-card__time {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Team ── */
.academy-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.academy-team-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.academy-team-card.featured {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.08), var(--glass));
}

.academy-team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.team-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.team-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cyan);
}

.academy-team-card.featured .team-avatar-wrap img {
  border-color: var(--gold);
}

.team-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ocean-deep);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
}

.academy-team-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.academy-team-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.academy-team-card .crown { color: var(--gold); margin-left: 0.25rem; }

/* ── CTA Banner ── */
.cta-banner {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.cta-banner__inner {
  background: linear-gradient(135deg, var(--ocean-bright), var(--cyan));
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--ocean-deep);
  position: relative;
}

.cta-banner p {
  color: rgba(2, 21, 38, 0.75);
  margin-top: 0.35rem;
  position: relative;
}

.cta-banner .academy-btn {
  background: var(--ocean-deep);
  color: var(--white);
  position: relative;
  flex-shrink: 0;
}

.cta-banner .academy-btn:hover {
  background: var(--white);
  color: var(--ocean-deep);
}

/* ── Social strip ── */
.academy-social {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.academy-social h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.academy-social h2 i { color: #1877f2; font-size: 1.6rem; }

.academy-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1877f2;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.academy-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}

/* ── Inner page hero ── */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.page-hero__icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 201, 255, 0.12);
  border: 1px solid rgba(0, 201, 255, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--cyan);
  margin: 0 auto 1.25rem;
}

/* ── Page content ── */
.academy-page {
  padding: 0 1.5rem 4rem;
  min-height: 60vh;
}

.academy-card {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(3, 57, 108, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.academy-card--wide { max-width: 1200px; }

.academy-card__header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.academy-card__header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.academy-card__header i { color: var(--cyan); font-size: 1.3rem; }

.academy-card__body { padding: 2rem; }

.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.academy-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.academy-field input,
.academy-field select,
.academy-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--white);
  background: rgba(2, 21, 38, 0.5);
  transition: var(--transition);
}

.academy-field input::placeholder,
.academy-field textarea::placeholder { color: var(--text-muted); }

.academy-field input:focus,
.academy-field select:focus,
.academy-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.15);
}

.academy-field input[readonly] {
  background: rgba(2, 21, 38, 0.3);
  cursor: default;
  color: var(--text-muted);
}

.academy-field select option { background: var(--ocean-deep); color: var(--white); }

.academy-field textarea { min-height: 140px; resize: vertical; }

/* ── Profile ── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--ocean-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--ocean-deep);
  font-weight: 900;
  border: 3px solid rgba(0, 201, 255, 0.5);
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
}

.profile-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.academy-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.academy-profile-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 201, 255, 0.08);
  border: 1px solid rgba(0, 201, 255, 0.2);
  transition: var(--transition);
}

.academy-profile-stat:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.academy-profile-stat .val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}

.academy-profile-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* ── Status pages ── */
.status-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
}

.status-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: rgba(3, 57, 108, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
}

.status-card__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.status-card__icon--success { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.status-card__icon--warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.status-card__icon--info { background: rgba(0, 201, 255, 0.15); color: var(--cyan); }

.status-card h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.status-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.status-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Tables ── */
.academy-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.academy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.academy-table th {
  background: rgba(2, 21, 38, 0.6);
  padding: 1rem;
  text-align: right;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.academy-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.academy-table tr:last-child td { border-bottom: none; }
.academy-table tr:hover td { background: rgba(0, 201, 255, 0.04); }

.academy-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.academy-badge--success { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.academy-badge--warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.academy-badge--danger { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

/* ── Admin mobile layout ── */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.admin-search i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.admin-search input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1.5px solid var(--glass-border);
  border-radius: 50px;
  background: rgba(2, 21, 38, 0.5);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--cyan);
}

.admin-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.admin-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-user-card {
  background: rgba(2, 21, 38, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: var(--transition);
}

.admin-user-card.hidden { display: none; }

.admin-user-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-user-card__name {
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  text-align: right;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1.4;
}

.admin-user-card__email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  word-break: break-all;
}

.admin-user-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.admin-user-card__stat {
  text-align: center;
  padding: 0.55rem 0.25rem;
  background: rgba(0, 201, 255, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(0, 201, 255, 0.12);
}

.admin-user-card__stat .n {
  display: block;
  font-weight: 800;
  color: var(--cyan);
  font-size: 1.1rem;
  line-height: 1;
}

.admin-user-card__stat .l {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.admin-user-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.admin-user-card__actions {
  display: flex;
  gap: 0.5rem;
}

.admin-user-card__actions .academy-btn { flex: 1; justify-content: center; }

.admin-desktop-table { display: block; }

/* Role badges */
.role-badge--admin { background: rgba(99, 102, 241, 0.25); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4); }
.role-badge--coach { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.role-badge--staff { background: rgba(251, 191, 36, 0.2); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }
.role-badge--trainee { background: rgba(0, 201, 255, 0.15); color: var(--cyan-light); border: 1px solid rgba(0, 201, 255, 0.3); }

.cell-wrap {
  word-break: break-word;
  max-width: 220px;
}

/* User edit form */
.user-edit-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.user-delete-form {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.academy-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.academy-alert--success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

/* Attendance mobile */
.attendance-card__status {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.attendance-card__status label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.attendance-select {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}

.attendance-expired {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.attendance-submit {
  margin-top: 2rem;
  text-align: center;
}

.attendance-cards { display: none; }

/* Pending verification mobile */
.pending-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.pending-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.pending-card__row .l { color: var(--text-muted); }
.pending-card__row .v { text-align: left; word-break: break-word; }

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pending-cards { display: none; }

/* NFC */
.nfc-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 201, 255, 0.1);
  border: 1px solid rgba(0, 201, 255, 0.25);
  color: var(--cyan-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.nfc-notice--warn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.nfc-scanner-box {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: rgba(2, 21, 38, 0.5);
  border: 1px dashed var(--glass-border);
}

.nfc-scanner-box__ring {
  position: absolute;
  inset: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  pointer-events: none;
  transition: var(--transition);
}

.nfc-scanner-box__ring.active {
  border-color: rgba(0, 201, 255, 0.4);
  box-shadow: inset 0 0 30px rgba(0, 201, 255, 0.08);
}

.nfc-scanner-box__ring.pulse {
  animation: nfcPulse 0.6s ease;
}

@keyframes nfcPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  100% { box-shadow: 0 0 0 20px rgba(52, 211, 153, 0); }
}

.nfc-scanner-box__icon {
  font-size: 3rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.nfc-scanner-box__status {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.nfc-scanner-box__count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nfc-scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.nfc-scan-actions .academy-btn { flex: 1; min-width: 120px; justify-content: center; }

.nfc-scanned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  min-height: 2rem;
}

.nfc-scanned-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 0.82rem;
}

.nfc-attendee--scanned {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.nfc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.nfc-status-badge--ok { color: #6ee7b7; }

.attendance-nfc-cards { display: flex; margin-bottom: 1.5rem; }

.attendance-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 0.85rem;
}

.attendance-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.attendance-tab.active {
  background: rgba(0, 201, 255, 0.15);
  border-color: rgba(0, 201, 255, 0.4);
  color: var(--cyan-light);
}

.hidden { display: none !important; }

.academy-btn--lg { padding: 1rem 1.5rem; font-size: 1rem; width: 100%; justify-content: center; }

.nfc-write-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.nfc-write-status.ok { color: #6ee7b7; }
.nfc-write-status.err { color: var(--danger); }

.nfc-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.nfc-card-info { margin-bottom: 0.5rem; }

/* Parent portal */
.parent-intro { text-align: center; padding: 1rem 0; }
.parent-intro__icon { font-size: 2.5rem; color: var(--cyan); margin-bottom: 1rem; }
.parent-intro h2 { margin-bottom: 1rem; }
.parent-steps {
  text-align: right;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding-right: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.parent-phone-form { max-width: 100%; }
.parent-meta { margin: 1rem 0; }
.parent-subtitle { font-size: 1rem; margin: 1.25rem 0 0.75rem; color: var(--text-muted); }
.parent-att-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem !important;
}

.academy-alert--danger {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* Notifications */
.notif-list { display: flex; flex-direction: column; gap: 0.65rem; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
}
.notif-item small { color: var(--text-muted); margin-right: auto; white-space: nowrap; }
.notif-item--warn { border-color: rgba(251, 191, 36, 0.35); }
.notif-item--danger { border-color: rgba(248, 113, 113, 0.35); }
.notif-item--new { background: rgba(0, 201, 255, 0.08); }

/* Report */
.report-filter { margin-bottom: 1.5rem; }
.report-totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Prevent horizontal scroll globally */
img, video, iframe, svg { max-width: 100%; height: auto; }
.academy-field input, .academy-field select, .academy-field textarea { max-width: 100%; }
.academy-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.academy-page, .academy-card, .academy-card__body { max-width: 100%; overflow-x: hidden; }

.admin-table-row.hidden { display: none; }

.admin-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  display: none;
}

.admin-empty.visible { display: block; }

/* ── Admin Dashboard ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.dash-stat {
  background: rgba(3, 57, 108, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.dash-stat:hover {
  border-color: rgba(0, 201, 255, 0.35);
  transform: translateY(-2px);
}

.dash-stat > i {
  font-size: 1.3rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.dash-stat--warn > i { color: var(--warning); }
.dash-stat--ok > i { color: var(--success); }
.dash-stat--danger > i { color: var(--danger); }

.dash-stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.dash-stat__lbl {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

.dash-section {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.dash-section__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-section__title i { color: var(--cyan); }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.dash-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.dash-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(3, 57, 108, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan);
  opacity: 0;
  transition: var(--transition);
}

.dash-card:hover {
  border-color: rgba(0, 201, 255, 0.4);
  transform: translateX(-4px);
  box-shadow: var(--shadow-glow);
}

.dash-card:hover::before { opacity: 1; }

.dash-card--primary { border-color: rgba(0, 201, 255, 0.25); }
.dash-card--warn { border-color: rgba(251, 191, 36, 0.25); }

.dash-card--compact {
  padding: 1rem 1.15rem;
}

.dash-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(0, 201, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--cyan);
}

.dash-card--warn .dash-card__icon {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

.dash-card__icon--sm {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.dash-card__body { flex: 1; min-width: 0; }

.dash-card__body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.dash-card__body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.dash-card--compact .dash-card__body h3 { font-size: 0.92rem; margin: 0; }

.dash-card__arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.dash-card:hover .dash-card__arrow {
  color: var(--cyan);
  transform: translateX(-4px);
}

.admin-back-bar {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 0.5rem;
}

.admin-back-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-back-bar a:hover { opacity: 0.85; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 21, 38, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: rgba(3, 57, 108, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: fadeUp 0.3s ease;
}

.modal-box__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-box__header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.modal-close {
  background: var(--surface);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover { color: var(--white); background: var(--surface-hover); }

.modal-box__body { padding: 1.5rem; }

/* ── Footer ── */
.academy-footer {
  background: rgba(2, 21, 38, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 1.5rem 2rem;
  margin-top: 2rem;
}

.academy-footer__top {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}

.academy-footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 280px;
}

.academy-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.academy-footer ul { list-style: none; }

.academy-footer ul li { margin-bottom: 0.65rem; }

.academy-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.academy-footer a:hover { color: var(--cyan); }

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--cyan);
  color: var(--ocean-deep);
  border-color: var(--cyan);
}

.academy-footer__copy {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.academy-footer__copy a { color: var(--cyan); text-decoration: none; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .academy-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .academy-nav__toggle { display: flex; align-items: center; justify-content: center; }

  .academy-nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    background: rgba(2, 21, 38, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin: 0;
    z-index: 999;
  }

  .academy-nav__links.open { display: flex; }
  .academy-nav__links a { width: 100%; text-align: center; padding: 0.85rem; }

  .academy-nav__actions .academy-btn--ghost { display: none; }
  .user-chip { display: none; }

  .academy-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .academy-hero__desc { margin-inline: auto; }
  .academy-hero__actions { justify-content: center; }
  .academy-hero__visual { order: -1; }
  .hero-float-card { display: none; }

  .academy-stats { grid-template-columns: repeat(2, 1fr); transform: none; margin-top: 2rem; }
  .academy-profile-stats { grid-template-columns: 1fr; }
  .academy-footer__top { grid-template-columns: 1fr; }
  .cta-banner__inner { text-align: center; justify-content: center; }

  .page-hero { padding: calc(var(--nav-h) + 1.5rem) 1rem 1.5rem; }
  .page-hero__icon { width: 56px; height: 56px; font-size: 1.5rem; margin-bottom: 0.85rem; }
  .page-hero__title { font-size: 1.5rem; }
  .page-hero__desc { font-size: 0.9rem; }

  .academy-page { padding: 0 0.85rem 2.5rem; }
  .academy-card__body { padding: 1.25rem; }
  .academy-card__header { padding: 1rem 1.25rem; }

  .admin-desktop-table { display: none; }
  .admin-mobile-cards { display: flex; }
  .attendance-cards { display: flex; }
  .pending-cards { display: flex; }
  .attendance-nfc-cards { display: flex; }

  .nfc-scan-actions .academy-btn { width: 100%; }
  .attendance-tabs { padding: 0; }

  .dash-grid--sm { grid-template-columns: 1fr; }
  .user-edit-form__actions .academy-btn { width: 100%; justify-content: center; }

  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid--sm { grid-template-columns: repeat(2, 1fr); }

  .modal-box { max-height: 85vh; border-radius: var(--radius-sm); }
  .modal-box__body .academy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .academy-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .academy-stat { padding: 1rem 0.5rem; }
  .academy-stat__num { font-size: 1.6rem; }
}
