/* ── Hero ── */
  .students-hero {
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220,38,38,0.14) 0%, transparent 70%),
      linear-gradient(180deg, #0d1117 0%, #0B0F17 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .students-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.3);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* ── Stats bar ── */
  .students-stat-bar {
    background: rgba(17,24,39,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1rem;
  }

  /* ── Student Cards ── */
  .student-card {
    position: relative;
    background: linear-gradient(145deg, #111827 0%, #0f1623 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 1.5rem;
    cursor: default;
  }
  .student-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(220,38,38,0.07), rgba(245,158,11,0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .student-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220,38,38,0.45);
    box-shadow:
      0 0 0 1px rgba(220,38,38,0.2),
      0 20px 60px -12px rgba(220,38,38,0.25),
      0 8px 30px -8px rgba(0,0,0,0.6);
  }
  .student-card:hover::before { opacity: 1; }

  /* ── Photo frame ── */
  .student-photo-frame {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 1.1rem;
  }
  .student-photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
      #DC2626 0%,
      #F59E0B 35%,
      #DC2626 70%,
      #F59E0B 100%
    );
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.6s ease;
  }
  .student-card:hover .student-photo-frame::before {
    opacity: 1;
    transform: rotate(90deg);
  }
  .student-photo-frame::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
      #DC2626 0%,
      #F59E0B 35%,
      #DC2626 70%,
      #F59E0B 100%
    );
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  .student-card:hover .student-photo-frame::after { opacity: 0.5; }

  .student-photo-inner {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    overflow: hidden;
    background: #0B0F17;
    z-index: 1;
  }
  .student-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
  }
  .student-card:hover .student-photo-inner img { transform: scale(1.08); }

  /* Fallback initials avatar */
  .student-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7f1d1d, #1e1b4b);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    border-radius: 50%;
  }

  /* ── Student name ── */
  .student-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
  }
  .student-card:hover .student-name { color: #fbbf24; }

  /* ── WTI Level badge ── */
  .wti-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid;
    margin-bottom: 0.9rem;
    transition: transform 0.2s;
  }
  .student-card:hover .wti-badge { transform: scale(1.05); }

  /* Level category colours */
  .wti-badge--student   { background: rgba(220,38,38,0.15); color: #f87171; border-color: rgba(220,38,38,0.35); }
  .wti-badge--technician{ background: rgba(245,158,11,0.15); color: #fbbf24; border-color: rgba(245,158,11,0.35); }
  .wti-badge--master    { background: rgba(139,92,246,0.15); color: #a78bfa; border-color: rgba(139,92,246,0.35); }
  .wti-badge--grandmaster{ background: linear-gradient(135deg,rgba(234,179,8,0.2),rgba(168,85,247,0.2)); color: #e9d5ff; border-color: rgba(234,179,8,0.4); }
  .wti-badge--none      { background: rgba(100,116,139,0.15); color: #94a3b8; border-color: rgba(100,116,139,0.25); }

  /* ── Joined date strip ── */
  .student-joined {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    justify-content: center;
  }

  /* WTI ID chip */
  .wti-id-chip {
    font-size: 0.65rem;
    font-family: monospace;
    color: #f59e0b;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 0.4rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.3rem;
    display: inline-block;
  }

  /* ── Pagination ── */
  .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.825rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    background: rgba(17,24,39,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .pagination-btn:hover:not(.pagination-btn--active):not(.pagination-btn--disabled) {
    border-color: rgba(220,38,38,0.5);
    color: #f87171;
    background: rgba(220,38,38,0.1);
  }
  .pagination-btn--active {
    background: linear-gradient(135deg, #DC2626, #d97706);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(220,38,38,0.35);
    cursor: default;
  }
  .pagination-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
  }

  /* ── Entrance animation ── */
  .student-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .student-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Hover still overrides transform — re-declare for specificity */
  .student-card.is-visible:hover { transform: translateY(-6px); }

  /* ── Section divider line ── */
  .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220,38,38,0.4), rgba(245,158,11,0.4), transparent);
  }