/* ==========================================================================
   SKATINGHOUR COACH ACADEMY - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Ice Royal Navy, Crisp Frosted Cyan, Canadian Crimson, Glassmorphism
   ========================================================================== */

:root {
  --bg-deep: #040814;
  --bg-surface: rgba(10, 20, 44, 0.75);
  --bg-card: rgba(13, 25, 54, 0.72);
  --bg-card-hover: rgba(18, 35, 78, 0.85);
  --bg-input: rgba(6, 13, 30, 0.85);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-specular: rgba(255, 255, 255, 0.28);
  --border-focus: #38bdf8;

  /* Radiant Color Accents */
  --ice-blue: #38bdf8;
  --ice-blue-glow: rgba(56, 189, 248, 0.45);
  --ice-cyan: #00f0ff;
  --ice-cyan-glow: rgba(0, 240, 255, 0.45);
  --maple-red: #ff385c;
  --maple-red-glow: rgba(255, 56, 92, 0.45);
  --canadian-gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.45);
  --emerald-success: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.45);
  --aurora-indigo: #818cf8;

  /* High-Contrast Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #030712;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.25);
  --shadow-cyan-glow: 0 0 35px rgba(0, 240, 255, 0.25);
  --shadow-red-glow: 0 0 30px rgba(255, 56, 92, 0.35);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #040814;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0284c7 0%, #06b6d4 100%);
  border-radius: 6px;
  border: 2px solid #040814;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #00f0ff 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(56, 189, 248, 0.2) 0%, transparent 70%),
    radial-gradient(circle at 10% 25%, rgba(0, 240, 255, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 90% 75%, rgba(255, 56, 92, 0.11) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #040814 0%, #081229 45%, #050a17 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle High-Tech Grid Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphic Panel Utility (Specular Glassmorphism 2.0) */
.glass-panel {
  background: linear-gradient(135deg, rgba(16, 29, 62, 0.75) 0%, rgba(9, 18, 42, 0.85) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-top: 1px solid var(--border-specular);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header Navigation
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 8, 20, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.85rem 2.25rem;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.brand-group:hover {
  transform: translateY(-1px);
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.6));
  transition: filter 0.3s ease;
}

.brand-group:hover .brand-logo {
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.85));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 0%, #cbeaff 45%, var(--ice-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3));
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 30px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.18);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.6);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 8px #10b981; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 16px #10b981, 0 0 24px rgba(16, 185, 129, 0.8); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 8px #10b981; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-btn-admin {
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.12) 0%, rgba(225, 29, 72, 0.18) 100%);
  border: 1px solid rgba(255, 56, 92, 0.4);
  color: #fda4af;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 15px rgba(255, 56, 92, 0.15);
}

.nav-btn-admin:hover {
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.24) 0%, rgba(225, 29, 72, 0.32) 100%);
  color: #ffffff;
  border-color: var(--maple-red);
  box-shadow: 0 0 25px rgba(255, 56, 92, 0.35);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Main Content Layout & View Switching
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.25rem;
  min-height: calc(100vh - 80px);
  position: relative;
  z-index: 1;
}

.app-view {
  display: none;
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-view.active {
  display: block;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Buttons & Form Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.55rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Liquid Neon Button with Animated Light Sweep */
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #06b6d4 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 4px 20px rgba(2, 132, 199, 0.45),
    0 0 25px rgba(6, 182, 212, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 45%, #00f0ff 100%);
  box-shadow: 
    0 8px 30px rgba(56, 189, 248, 0.6),
    0 0 40px rgba(0, 240, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-large {
  padding: 1.05rem 2.25rem;
  font-size: 1.08rem;
  border-radius: var(--radius-md);
}

/* Shimmer Light Sweep Effect */
.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: rotate(25deg);
  animation: btnSweep 3.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes btnSweep {
  0%, 35% { left: -120%; }
  65%, 100% { left: 200%; }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  border-radius: 6px;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--ice-blue);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.btn-link:hover {
  color: #7dd3fc;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

/* Form Styles */
.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.form-group .required {
  color: var(--maple-red);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ice-cyan);
  background: rgba(8, 18, 42, 0.95);
  box-shadow: 
    0 0 0 3px rgba(0, 240, 255, 0.25),
    0 0 22px rgba(0, 240, 255, 0.25),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

/* --------------------------------------------------------------------------
   VIEW 1: Portal Hero & Login Screen
   -------------------------------------------------------------------------- */
.portal-hero {
  margin-bottom: 2.25rem;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 75vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(0, 240, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle at center, #0f2347 0%, #040814 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: contrast(1.08) brightness(1.03);
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrap:hover .hero-banner-img {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.1) 0%, transparent 40%, rgba(4, 8, 20, 0.9) 100%);
}

.hero-badge {
  position: absolute;
  bottom: 1.6rem;
  left: 2rem;
  background: rgba(10, 20, 44, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  padding: 0.55rem 1.35rem;
  border-radius: 30px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.25);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #e0f2fe;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice-cyan);
  box-shadow: 0 0 10px var(--ice-cyan);
}

/* Accreditation Feature Pills */
.portal-feature-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-top: 1.6rem;
}

.feature-pill {
  background: linear-gradient(135deg, rgba(14, 26, 56, 0.75) 0%, rgba(8, 16, 38, 0.85) 100%);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.2);
}

.feature-pill-icon {
  font-size: 1.45rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.feature-pill-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.feature-pill-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

.view-grid-login {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
}

.login-card {
  padding: 2.75rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #fda4af;
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.15) 0%, rgba(225, 29, 72, 0.1) 100%);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 56, 92, 0.35);
  box-shadow: 0 0 15px rgba(255, 56, 92, 0.15);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 60%, var(--ice-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-desc {
  color: #94a3b8;
  font-size: 0.98rem;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.coach-form button[type="submit"] {
  width: 100%;
  margin-top: 1.25rem;
}

.requirements-sidebar {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.85rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.req-item {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.req-item:hover {
  transform: translateX(3px);
}

.req-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.req-item:hover .req-icon {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transform: scale(1.05);
}

.req-content strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.req-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.quick-admin-link {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   VIEW 2: Video Training Room
   -------------------------------------------------------------------------- */
.training-header {
  padding: 1.35rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  border-color: rgba(56, 189, 248, 0.25);
}

.training-coach-meta {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.coach-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-cyan) 0%, #0284c7 60%, #1e3a8a 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.coach-welcome {
  font-size: 0.98rem;
  color: #f8fafc;
}

.coach-welcome strong {
  color: #ffffff;
  font-weight: 700;
}

.coach-club-meta {
  font-size: 0.84rem;
  color: #94a3b8;
}

.training-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.stat-pill {
  background: rgba(5, 12, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.5rem 1.15rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.stat-pill-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stat-pill-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}

.stat-percent {
  color: var(--ice-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.training-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.75rem;
}

.video-container-card {
  padding: 1.65rem;
  border-color: rgba(56, 189, 248, 0.25);
}

.module-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.35rem;
  gap: 1rem;
}

.pill-badge {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.pill-red {
  background: rgba(255, 56, 92, 0.15);
  color: #fda4af;
  border: 1px solid rgba(255, 56, 92, 0.4);
  box-shadow: 0 0 12px rgba(255, 56, 92, 0.2);
}

.module-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 0.4rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.guard-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  white-space: nowrap;
}

/* Quick Video Switcher Bar (Cyber Console) */
.video-select-bar {
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(8, 16, 36, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.video-select-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
}

.video-quick-select {
  padding: 0.45rem 0.95rem !important;
  font-size: 0.84rem !important;
  border-radius: 8px !important;
  background: rgba(5, 10, 24, 0.9) !important;
}

.video-select-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice-cyan);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* --------------------------------------------------------------------------
   Custom Video Player & Anti-Skip Cyber Console
   -------------------------------------------------------------------------- */
.video-player-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--video-aspect, 480 / 592);
  max-height: min(78vh, 680px);
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(0, 240, 255, 0.2),
    inset 0 0 0 1px rgba(0, 240, 255, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important; /* CRITICAL: Never crop from top or bottom, preserve 100% native aspect ratio */
  display: block;
  margin: auto;
  background: #000000;
}

/* ==========================================================================
   FULLSCREEN MODES (Separate rules to prevent vendor drop in Chrome/Safari/Firefox)
   ========================================================================== */

/* 1. W3C Standard Fullscreen */
.video-player-wrapper:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000000 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.video-player-wrapper:fullscreen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important; /* Full video visible from up to down */
  margin: auto !important;
  display: block !important;
  background: #000000 !important;
}

.video-player-wrapper:fullscreen .custom-video-controls {
  padding: 1.5rem 3rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.96) 100%);
}

/* 2. WebKit / Blink (Chrome, Edge, Safari, Opera) */
.video-player-wrapper:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000000 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.video-player-wrapper:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important; /* Full video visible from up to down */
  margin: auto !important;
  display: block !important;
  background: #000000 !important;
}

.video-player-wrapper:-webkit-full-screen .custom-video-controls {
  padding: 1.5rem 3rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.96) 100%);
}

/* 3. Mozilla Firefox */
.video-player-wrapper:-moz-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000000 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.video-player-wrapper:-moz-full-screen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  margin: auto !important;
  display: block !important;
  background: #000000 !important;
}

.video-player-wrapper:-moz-full-screen .custom-video-controls {
  padding: 1.5rem 3rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.96) 100%);
}

/* 4. Active JS Class Fallback */
.video-player-wrapper.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000000 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 999999 !important;
  overflow: hidden !important;
}

.video-player-wrapper.is-fullscreen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  margin: auto !important;
  display: block !important;
  background: #000000 !important;
}

.video-player-wrapper.is-fullscreen .custom-video-controls {
  padding: 1.5rem 3rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.96) 100%);
}

/* 5. Direct Video Element Fullscreen */
video:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  background: #000000 !important;
}

video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  background: #000000 !important;
}

/* Controls Auto-Hide Behavior: Leaves 100% of the screen unobstructed from top to bottom */
.video-player-wrapper.controls-hidden {
  cursor: none !important;
}

.video-player-wrapper.controls-hidden .custom-video-controls {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(18px);
}

.video-player-wrapper.controls-hidden .video-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.player-is-fullscreen {
  overflow: hidden !important;
}

/* Big Play Overlay */
.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(4, 8, 20, 0.4) 0%, rgba(4, 8, 20, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.btn-big-play {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 60%, #0369a1 100%);
  border: 3px solid #ffffff;
  color: #040814;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  box-shadow: 
    0 0 45px rgba(0, 240, 255, 0.7),
    0 0 0 10px rgba(0, 240, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.btn-big-play:hover {
  transform: scale(1.14);
  background: #ffffff;
  color: #0284c7;
  box-shadow: 
    0 0 60px rgba(0, 240, 255, 0.9),
    0 0 0 14px rgba(0, 240, 255, 0.4);
}

.play-triangle {
  margin-left: 6px;
}

/* Inactive Tab & Window Switch Pause Modal */
.tab-inactive-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}

.inactive-modal {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(255, 56, 92, 0.55);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(255, 56, 92, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(20, 10, 25, 0.96) 0%, rgba(10, 15, 35, 0.98) 100%);
  position: relative;
}

.inactive-badge {
  display: inline-block;
  background: rgba(255, 56, 92, 0.2);
  border: 1px solid rgba(255, 56, 92, 0.55);
  color: #fda4af;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1.15rem;
  border-radius: 9999px;
  margin-bottom: 0.95rem;
  box-shadow: 0 0 15px rgba(255, 56, 92, 0.25);
}

.inactive-icon {
  font-size: 3.2rem;
  margin-bottom: 0.85rem;
  animation: pulseIcon 1.8s infinite ease-in-out;
  filter: drop-shadow(0 0 15px rgba(255, 56, 92, 0.6));
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.inactive-modal h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.inactive-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.inactive-desc strong {
  color: var(--ice-cyan);
  font-family: monospace;
  font-size: 1.1rem;
  padding: 0.2rem 0.55rem;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.inactive-compliance-alert {
  background: rgba(255, 56, 92, 0.12);
  border-left: 3px solid var(--maple-red);
  padding: 0.75rem 0.95rem;
  font-size: 0.82rem;
  color: #fda4af;
  text-align: left;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

/* Skip Blocked Toast */
.skip-warning-toast {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.96) 0%, rgba(190, 18, 60, 0.96) 100%);
  color: #ffffff;
  padding: 0.85rem 1.65rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 56, 92, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
}

.skip-warning-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Custom Video Controls Bar */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 20, 0.85) 40%, rgba(4, 8, 20, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem 1.4rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scrubber Container & Anti-Skip Dual Track */
.scrubber-container {
  position: relative;
  width: 100%;
  height: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.scrubber-track {
  position: relative;
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Highest Point Watched (Unlocked) */
.scrubber-unlocked {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(0, 240, 255, 0.3);
  transition: width 0.3s ease;
}

/* Current Play Position */
.scrubber-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, var(--ice-cyan) 100%);
  box-shadow: 0 0 12px var(--ice-cyan);
}

/* Locked Portion */
.scrubber-locked {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 56, 92, 0.18),
    rgba(255, 56, 92, 0.18) 7px,
    rgba(0, 0, 0, 0.35) 7px,
    rgba(0, 0, 0, 0.35) 14px
  );
  border-left: 2px solid var(--maple-red);
}

.scrubber-handle {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #ffffff;
  border: 2px solid var(--ice-cyan);
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease;
}

.scrubber-container:hover .scrubber-handle {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 18px rgba(0, 240, 255, 1);
}

/* Control Buttons Row */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.18rem;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ice-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
  transform: scale(1.08);
}

.icon-rewind {
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.time-stamp {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.03em;
}

.time-divider {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  width: 75px;
  accent-color: var(--ice-cyan);
  cursor: pointer;
}

.speed-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Player Footer Info */
.player-footer-info {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.progress-details {
  flex-grow: 1;
}

.progress-bar-container {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.55rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, var(--ice-cyan) 60%, #10b981 100%);
  border-radius: 12px;
  transition: width 0.4s ease;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
}

/* Training Sidebar: Syllabus & Notes */
.training-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.syllabus-card, .notes-card {
  padding: 1.6rem;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.65rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chapter-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-item.current {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(2, 132, 199, 0.15) 100%);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.chapter-item.completed {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.3);
  cursor: pointer;
}

.chapter-item.completed:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateX(3px);
}

.chapter-item.locked {
  opacity: 0.5;
}

.chapter-status-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.chapter-time {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

.chapter-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coach-notes-textarea {
  width: 100%;
  height: 140px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.85rem;
  resize: vertical;
  line-height: 1.5;
}

.coach-notes-textarea:focus {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* --------------------------------------------------------------------------
   Playlist Sidebar Enhancements
   -------------------------------------------------------------------------- */
.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.playlist-progress-badge,
.playlist-progress-pill {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ice-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.playlist-desc,
.playlist-subtext {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.chapter-item.clickable {
  cursor: pointer;
}

.chapter-item.clickable:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.chapter-item.locked {
  cursor: not-allowed;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   VIEW 3: SkatingHour Certificate & Completion Screen
   -------------------------------------------------------------------------- */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.thankyou-view-container {
  max-width: 1060px;
  margin: 1.5rem auto 4rem;
  padding: 0 1rem;
}

.thankyou-hero-panel {
  margin-bottom: 2.25rem;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(56, 189, 248, 0.18);
  position: relative;
  overflow: hidden;
}

.thankyou-hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, var(--ice-cyan) 50%, #f59e0b 100%);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.thankyou-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.15rem;
}

.thankyou-trophy {
  font-size: 4.2rem;
  margin-bottom: 0.85rem;
  display: inline-block;
  animation: thankyouFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(245, 158, 11, 0.55));
}

@keyframes thankyouFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.celebration-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.18) 100%);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.55);
  padding: 0.5rem 1.65rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.thankyou-title {
  font-family: var(--font-heading);
  font-size: 2.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.thankyou-title span {
  color: var(--ice-cyan);
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 30%, var(--ice-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 240, 255, 0.4));
}

.thankyou-subtitle {
  color: #cbd5e1;
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* Certificate Action Toolbar */
.cert-action-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
}

.cert-print-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.cert-print-hint strong {
  color: var(--ice-cyan);
}

/* --------------------------------------------------------------------------
   THE OFFICIAL SKATINGHOUR CERTIFICATE (DIPLOMA CARD WITH HOLOGRAPHIC FOIL)
   -------------------------------------------------------------------------- */
.cert-display-card-wrapper {
  margin: 1.75rem auto;
}

.skatinghour-certificate {
  position: relative;
  background: linear-gradient(145deg, #fffefc 0%, #fdfbf7 35%, #f4f8fe 100%);
  color: #0b213f;
  padding: 2.75rem 3.25rem;
  border-radius: 14px;
  border: 3px double #d4af37;
  outline: 10px solid #08152c;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(212, 175, 55, 0.28),
    0 0 0 2px rgba(212, 175, 55, 0.6);
  text-align: center;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}

/* Holographic Foil Sheen Sweep across the Diploma */
.skatinghour-certificate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.45) 48%,
    rgba(255, 215, 0, 0.35) 50%,
    rgba(0, 240, 255, 0.25) 52%,
    transparent 58%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
  background-size: 250% 250%;
  animation: certHoloSheen 7s infinite ease-in-out;
  mix-blend-mode: overlay;
}

@keyframes certHoloSheen {
  0%, 25% { background-position: 200% 0%; }
  55%, 100% { background-position: -100% 100%; }
}

/* Watermark Background */
.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(100%);
}

.cert-watermark img {
  width: 100%;
  height: auto;
}

/* Corner Filigree SVG */
.cert-corner {
  position: absolute;
  width: 58px;
  height: 58px;
  color: #c59b27;
  z-index: 3;
}

.cert-corner-tl { top: 14px; left: 14px; }
.cert-corner-tr { top: 14px; right: 14px; }
.cert-corner-bl { bottom: 14px; left: 14px; }
.cert-corner-br { bottom: 14px; right: 14px; }

.corner-svg {
  width: 100%;
  height: 100%;
}

/* Inner Frame */
.cert-inner-frame {
  position: relative;
  z-index: 2;
  border: 2px solid #dfba4b;
  outline: 1px dashed rgba(197, 155, 39, 0.5);
  outline-offset: 6px;
  border-radius: 8px;
  padding: 2.25rem 2.5rem 1.85rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 35px rgba(212, 175, 55, 0.08);
}

/* Certificate Header */
.cert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 0.65rem;
}

.cert-logo-img,
.cert-brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.cert-header-crest {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(8, 28, 54, 0.2));
  transition: transform 0.3s ease;
}

.cert-header-crest:hover {
  transform: scale(1.05);
}

.cert-brand-text {
  text-align: left;
}

.cert-org-main {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #081c36;
  line-height: 1.2;
}

.cert-org-sub {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8c6007;
  font-weight: 800;
  margin-top: 4px;
}

/* Accreditation Ribbon Tag */
.cert-ribbon-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.16) 0%, rgba(217, 119, 6, 0.1) 100%);
  border: 1px solid rgba(197, 155, 39, 0.55);
  color: #784e03;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 1.4rem;
  border-radius: 9999px;
  margin: 0.45rem auto 0.85rem;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.15);
}

/* Certificate Main Title Block */
.cert-title-section {
  margin-bottom: 0.6rem;
}

.cert-diploma-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #071930;
  margin: 0.25rem 0 0.3rem;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.cert-award-to-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.96rem;
  color: #64748b;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

/* Recipient Coach Name */
.cert-recipient-section {
  margin: 0.45rem 0 0.95rem;
}

.cert-coach-name {
  font-family: 'Playfair Display', 'Cinzel', Georgia, serif;
  font-size: 2.85rem;
  font-weight: 800;
  color: #071930;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cert-name-underline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.underline-line {
  display: inline-block;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(197, 155, 39, 0) 0%, #c59b27 50%, rgba(197, 155, 39, 0) 100%);
}

.underline-diamond {
  color: #c59b27;
  font-size: 13px;
}

/* Curriculum Statement Section */
.cert-statement-section {
  margin-bottom: 0.75rem;
}

.cert-statement-body {
  font-size: 0.92rem;
  color: #334155;
  max-width: 680px;
  margin: 0 auto 0.55rem;
  line-height: 1.55;
}

.cert-course-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.08) 0%, rgba(11, 37, 69, 0.04) 100%);
  border: 1px solid rgba(11, 37, 69, 0.22);
  border-radius: 8px;
  padding: 0.45rem 1.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cert-course-title {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  color: #081d3a;
  letter-spacing: 0.04em;
}

/* 4-Module Verified Chips */
.cert-modules-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.6rem auto 1.35rem;
  max-width: 820px;
}

.cert-mod-chip {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.cert-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.cert-meta-strip.cert-meta-strip-3col {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  align-items: center;
}

.cert-chip-red {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #991b1b !important;
}

.cert-chip-yellow {
  background: rgba(234, 179, 8, 0.15) !important;
  border: 1px solid rgba(234, 179, 8, 0.5) !important;
  color: #854d0e !important;
}

.cert-chip-green {
  background: rgba(34, 197, 94, 0.14) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  color: #166534 !important;
}

.cert-chip-blue {
  background: rgba(59, 130, 246, 0.14) !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  color: #1e40af !important;
}

.cert-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cert-meta-lbl {
  font-size: 0.66rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.cert-meta-data {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.cert-meta-data.cert-highlight {
  color: #0369a1;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Signatures & Embossed Official Seal Row */
.cert-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  gap: 1.25rem;
}

.cert-footer-row.cert-no-sign {
  justify-content: center;
  margin: 0.85rem auto 1.25rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.75) 100%);
  border: 1.5px solid rgba(203, 213, 225, 0.75);
  border-radius: 12px;
  max-width: 660px;
  box-shadow: 0 4px 14px rgba(8, 28, 54, 0.05);
}

.cert-official-seal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.85rem;
}

.cert-footer-emblem {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(8, 28, 54, 0.25));
  transition: transform 0.35s ease;
}

.cert-footer-emblem:hover {
  transform: scale(1.08) rotate(3deg);
}

.cert-official-badge {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cert-footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.cert-verified-stamp {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #081d3a;
  letter-spacing: 0.12em;
}

.cert-verified-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cert-sign-col {
  flex: 1;
  max-width: 260px;
  text-align: center;
}

.cert-sign-script {
  font-family: 'Alex Brush', cursive;
  font-size: 2.5rem;
  color: #081d3a;
  line-height: 1;
  transform: rotate(-3deg);
  margin-bottom: 3px;
}

.cert-sign-line {
  width: 100%;
  height: 1.5px;
  background: #94a3b8;
  margin: 0.3rem auto 0.4rem;
}

.cert-signer-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.cert-signer-role {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
  font-weight: 500;
}

/* Center Embossed Gold Seal */
.cert-seal-col {
  width: 140px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.cert-embossed-seal {
  width: 124px;
  height: 124px;
  filter: drop-shadow(0 6px 16px rgba(111, 78, 4, 0.4));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.cert-embossed-seal:hover {
  transform: scale(1.08) rotate(4deg);
  filter: drop-shadow(0 8px 24px rgba(111, 78, 4, 0.6));
}

.seal-svg {
  width: 100%;
  height: 100%;
}

/* Bottom Security Bar */
.cert-security-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
  font-size: 0.72rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-security-check {
  color: #059669;
  font-weight: 700;
}

/* Summary Box in Completion Screen */
.thankyou-summary-box {
  background: rgba(10, 20, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: left;
  margin-bottom: 1.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.thankyou-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.35rem;
  margin-bottom: 2.25rem;
  background: rgba(5, 10, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.65rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  font-weight: 800;
}

.meta-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.meta-val.verified-text {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.completed-modules-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.completed-module-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.95rem 1.35rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.completed-module-item:hover {
  transform: translateX(4px);
  background: rgba(16, 185, 129, 0.12);
}

.chk-icon {
  font-size: 1.45rem;
  flex-shrink: 0;
}

.mod-info {
  display: flex;
  flex-direction: column;
}

.mod-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.mod-info span {
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 600;
}

.compliance-confirmation-bar {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid var(--ice-cyan);
  padding: 0.95rem 1.35rem;
  font-size: 0.88rem;
  color: #e0f2fe;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.55;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.thankyou-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   VIEW 4: Program Director & Admin Compliance Dashboard
   -------------------------------------------------------------------------- */
.admin-topbar {
  padding: 1.85rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
  border-color: rgba(56, 189, 248, 0.25);
}

.admin-title-badge {
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--ice-cyan);
  margin-bottom: 0.35rem;
  display: inline-block;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.admin-heading {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.admin-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
}

.admin-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* KPI Summary Grid with Specular Neon Glows */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.35rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  padding: 1.65rem;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(56, 189, 248, 0.5);
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}

.kpi-icon {
  font-size: 2.35rem;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.kpi-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.25rem;
}

.kpi-success::before { background: #10b981; }
.kpi-success .kpi-number { 
  color: #34d399; 
  text-shadow: 0 0 15px rgba(52, 211, 153, 0.4); 
}
.kpi-success .kpi-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.kpi-warning::before { background: #f59e0b; }
.kpi-warning .kpi-number { 
  color: #fbbf24; 
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4); 
}
.kpi-warning .kpi-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.kpi-neutral::before { background: #94a3b8; }
.kpi-neutral .kpi-number { color: #cbd5e1; }

.kpi-accent::before { background: var(--ice-cyan); }
.kpi-accent .kpi-number { 
  color: var(--ice-cyan); 
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4); 
}
.kpi-accent .kpi-icon {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
}

/* Table Toolbar */
.admin-table-card {
  padding: 1.85rem;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
  margin-bottom: 1.65rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 0.72rem 1.1rem 0.72rem 2.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
}

.search-box input:focus {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 20px rgba(0, 240, 255, 0.2);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

.admin-select {
  padding: 0.7rem 1.15rem;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.admin-select:focus {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.table-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Roster Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.roster-table th {
  padding: 1rem 1.15rem;
  background: rgba(3, 7, 18, 0.85);
  color: #94a3b8;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.roster-table td {
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.roster-table tbody tr {
  transition: background 0.2s ease;
}

.roster-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

/* Table Badges & Cells */
.table-coach-name {
  font-weight: 700;
  color: #ffffff;
}

.table-coach-id {
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: monospace;
}

.table-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 130px;
}

.table-progress-bar {
  flex-grow: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.table-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, var(--ice-cyan));
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.table-progress-fill.complete {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.table-progress-text {
  font-size: 0.82rem;
  font-weight: 800;
  min-width: 40px;
  color: #ffffff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-completed {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.status-progress {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.status-notstarted {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.table-footer {
  margin-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Modals & Toasts
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.modal-box {
  width: 100%;
  max-width: 490px;
  padding: 2.35rem;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.2);
}

.modal-wide {
  max-width: 640px;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.5));
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.modal-header p {
  font-size: 0.9rem;
  color: #94a3b8;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.import-format-guide {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 1.15rem;
  border-left: 3px solid var(--ice-cyan);
}

.import-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: monospace;
  font-size: 0.88rem;
  padding: 0.85rem;
  line-height: 1.5;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #cbd5e1;
}

.checkbox-label input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--ice-cyan);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(8, 16, 36, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.95rem 1.55rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left: 4px solid var(--emerald-success);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.25);
}

.toast-error {
  border-left: 4px solid var(--maple-red);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 56, 92, 0.25);
}

.toast-info {
  border-left: 4px solid var(--ice-cyan);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.25);
}

@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Comprehensive Responsive System (Mobile, iPhone, Android, iPad, Tablet, Laptop, Mac, Windows)
   -------------------------------------------------------------------------- */

/* Safe area insets & Global mobile optimizations */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ==========================================================================
   LAPTOPS & IPAD PRO LANDSCAPE (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .main-content {
    padding: 1.75rem 1.25rem;
  }

  .training-layout {
    grid-template-columns: 1fr 310px;
    gap: 1.35rem;
  }
}

/* ==========================================================================
   IPAD & TABLETS (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .view-grid-login {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .training-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-hero {
    margin-bottom: 1.75rem;
  }

  .hero-image-wrap {
    height: 380px;
  }

  .portal-feature-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .video-player-wrapper {
    max-height: 65vh;
  }
}

/* ==========================================================================
   IPAD PORTRAIT & MEDIUM PHONES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent iOS Safari unwanted auto-zoom on form inputs */
  input, select, textarea,
  .form-group input, .form-group select, .form-group textarea,
  .admin-select {
    font-size: 16px !important;
  }

  /* Tap targets for touch devices */
  .btn, .nav-link, .ctrl-btn, .chapter-item {
    min-height: 44px;
  }

  .app-header {
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .brand-group {
    justify-content: flex-start;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-subtitle {
    display: none;
  }

  .header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .sync-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .nav-links {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0.4rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .main-content {
    padding: 1rem 0.85rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  /* View 1: Hero & Form */
  .hero-image-wrap {
    height: 240px;
    border-radius: var(--radius-lg);
  }

  .hero-badge {
    bottom: 0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }

  .portal-feature-pills {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.25rem;
  }

  .login-card {
    padding: 1.75rem 1.25rem;
  }

  .card-title {
    font-size: 1.55rem;
  }

  .requirements-sidebar {
    padding: 1.75rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* View 2: Training Room */
  .training-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
  }

  .training-stats-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .stat-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }

  .video-container-card {
    padding: 1rem 0.85rem;
  }

  .module-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .module-title {
    font-size: 1.2rem;
  }

  .guard-pill {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
  }

  .video-select-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
  }

  .video-select-bar-left {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .video-quick-select {
    width: 100% !important;
  }

  .video-select-badge {
    font-size: 0.74rem;
  }

  .video-player-wrapper {
    max-height: 55vh;
  }

  .scrubber-container {
    height: 28px; /* Touch-friendly scrubber */
  }

  .custom-video-controls {
    padding: 1rem 0.85rem 0.75rem;
    gap: 0.65rem;
  }

  .controls-row {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .controls-left, .controls-right {
    gap: 0.65rem;
  }

  /* View 3: Certificate & Completion */
  .thankyou-hero-panel {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .thankyou-title {
    font-size: 1.65rem;
  }

  .thankyou-subtitle {
    font-size: 0.92rem;
  }

  .cert-action-toolbar {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .cert-action-toolbar .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .cert-display-card-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    width: 100%;
  }

  .skatinghour-certificate {
    padding: 1.35rem 0.95rem;
    outline-width: 6px;
    min-width: 100%;
  }

  .cert-inner-frame {
    padding: 1.25rem 0.75rem;
  }

  .cert-header {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .cert-brand-logo {
    width: 160px;
    max-width: 70%;
  }

  .cert-brand-text {
    text-align: center;
  }

  .cert-org-main {
    font-size: 1.15rem;
  }

  .cert-diploma-title {
    font-size: 1.45rem;
  }

  .cert-coach-name {
    font-size: 1.75rem;
    padding: 0.4rem 0.5rem 0.6rem;
  }

  .cert-meta-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .cert-footer-row {
    flex-direction: column;
    gap: 1.15rem;
  }

  .cert-official-seal-wrap {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  .cert-security-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    font-size: 0.74rem;
  }

  /* View 4: Admin Dashboard */
  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .admin-header-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-header-buttons .btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .table-toolbar .search-box {
    width: 100%;
  }

  .table-toolbar .filter-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .table-toolbar .admin-select {
    width: 100%;
  }

  .table-toolbar-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .table-toolbar-actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .modal-box {
    padding: 1.65rem 1.25rem;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-certificate-box {
    padding: 1.25rem 0.85rem;
    width: 98vw;
    max-height: 95vh;
  }
}

/* ==========================================================================
   IPHONE & COMPACT MOBILE (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-image-wrap {
    height: 190px;
  }

  .card-title {
    font-size: 1.35rem;
  }

  .volume-group .volume-slider {
    display: none; /* Physical volume rocker controls sound on mobile */
  }

  .speed-badge {
    display: none; /* Conserve horizontal room for controls on tiny screens */
  }

  .time-stamp {
    font-size: 0.76rem;
  }

  .cert-org-main {
    font-size: 1.05rem;
  }

  .cert-diploma-title {
    font-size: 1.3rem;
  }

  .cert-coach-name {
    font-size: 1.55rem;
  }

  .cert-course-title {
    font-size: 0.95rem;
  }

  .cert-modules-completed {
    gap: 0.35rem;
  }

  .cert-mod-chip {
    font-size: 0.68rem;
    padding: 0.25rem 0.55rem;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-header-buttons .btn {
    flex: 1 1 100%;
  }

  .table-toolbar-actions .btn {
    flex: 1 1 100%;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .toast {
    font-size: 0.82rem;
    padding: 0.75rem 1.15rem;
  }
}

/* --------------------------------------------------------------------------
   Admin Dashboard Certificate Button & Certificate Viewer Modal
   -------------------------------------------------------------------------- */
.btn-view-cert {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4), 0 0 15px rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.95rem;
}

.btn-view-cert:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55), 0 0 25px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.modal-certificate-box {
  max-width: 1060px;
  width: 95vw;
  max-height: 94vh;
  overflow-y: auto;
  padding: 1.75rem 2.25rem 2.75rem;
}

.modal-cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.65rem;
  flex-wrap: wrap;
}

.modal-cert-title-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.modal-cert-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Print Stylesheet (@media print) — Clean Landscape Diploma Printing
   -------------------------------------------------------------------------- */
@media print {
  @page {
    size: landscape;
    margin: 0.6cm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide navigation, background chrome, interactive UI, and unnecessary cards */
  .app-header,
  .toast-container,
  .confetti-canvas,
  .thankyou-hero-panel,
  .cert-action-toolbar,
  .cert-print-hint,
  .thankyou-card:not(.cert-display-card-wrapper),
  .portal-hero,
  .admin-topbar,
  .admin-kpi-grid,
  .admin-table-card,
  .training-header,
  .video-container-card,
  .training-sidebar,
  .modal-cert-header,
  .modal-backdrop:not(#modal-certificate-viewer) {
    display: none !important;
  }

  .main-content,
  .thankyou-view-container,
  .cert-display-card-wrapper,
  .modal-certificate-box,
  .modal-cert-body {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  #modal-certificate-viewer {
    position: static !important;
    background: none !important;
    display: block !important;
    padding: 0 !important;
  }

  .skatinghour-certificate {
    box-shadow: none !important;
    outline: 8px solid #0a1b33 !important;
    border: 3px double #c59b27 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .cert-watermark {
    opacity: 0.05 !important;
  }
}
