/* ════════════════════════════════════════════
   GeniuxLab — Template Layouts
   Depende de: design-system.css
   ════════════════════════════════════════════ */

/* ── Reset mínimo ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Split Auth Layout ───────────────────────────────────── */
.wp-site-blocks:has(.gl-auth-split) {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.gl-auth-split {
  display: flex;
  min-height: 100vh;
}

/* Brand panel — left */
.gl-auth-brand {
  width: 420px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #312E81 0%, #4F46E5 45%, #0891B2 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
}

.gl-auth-brand-recovery {
  background: linear-gradient(145deg, #0C4A6E 0%, #0891B2 45%, #4F46E5 100%);
}

.gl-auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.gl-auth-blob-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -60px;
}

.gl-auth-blob-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  right: -40px;
}

.gl-auth-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.gl-auth-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 14px 24px;
  margin-bottom: 40px;
  text-decoration: none;
  gap: 10px;
}

.gl-auth-brand-logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 18px;
  color: white;
}

.gl-auth-brand-logo-text {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 18px;
  color: white;
  letter-spacing: var(--ls-tight);
}

.gl-auth-mascot {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.gl-auth-mascot svg {
  width: 80px;
  height: 80px;
  color: white;
  opacity: 0.9;
}

.gl-auth-brand-tagline {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 28px;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: var(--ls-tight);
}

.gl-auth-brand-tagline .gl-accent {
  color: #A5F3FC;
}

.gl-auth-brand-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  line-height: 1.6;
}

.gl-auth-brand-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
}

.gl-auth-brand-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.gl-auth-brand-dots span:first-child {
  background: white;
  width: 20px;
  border-radius: 3px;
}

/* Steps (recovery brand panel) */
.gl-auth-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-top: 32px;
}

.gl-auth-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gl-auth-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: white;
  flex-shrink: 0;
}

.gl-auth-step-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.4;
}

/* Form panel — right */
.gl-auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #F8FAFC;
}

.gl-auth-form-card {
  width: 100%;
  max-width: 420px;
}

.gl-auth-form-header {
  margin-bottom: 32px;
}

.gl-auth-greeting {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 28px;
  color: var(--color-fg);
  letter-spacing: var(--ls-tight);
  margin-bottom: 6px;
}

.gl-auth-subtext {
  font-size: 14px;
  color: var(--color-fg-secondary);
  font-weight: 500;
}

/* Back link */
.gl-auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-fg-secondary);
  text-decoration: none;
  margin-bottom: 28px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: all var(--dur-fast) var(--ease-standard);
  margin-left: -10px;
}

.gl-auth-back-link:hover {
  color: var(--color-brand);
  background: var(--color-brand-light);
  text-decoration: none;
}

/* Fields */
.gl-auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.gl-auth-label {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: #334155;
  font-family: var(--font-body);
}

.gl-auth-input-wrap {
  position: relative;
}

.gl-auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-fg-muted);
  pointer-events: none;
  display: flex;
}

.gl-auth-input-icon svg {
  width: 16px;
  height: 16px;
}

.gl-auth-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px 12px 42px;
  color: var(--color-fg);
  background: var(--color-bg);
  outline: none;
  transition: border var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}

.gl-auth-input::placeholder {
  color: var(--color-border-strong);
  font-weight: 400;
}

.gl-auth-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.gl-auth-input-pr {
  padding-right: 42px;
}

.gl-auth-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-fg-muted);
  display: flex;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-standard);
}

.gl-auth-eye-btn:hover {
  color: var(--color-brand);
}

.gl-auth-eye-btn svg {
  width: 16px;
  height: 16px;
}

/* Remember + forgot row */
.gl-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.gl-auth-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gl-auth-checkbox-wrap input[type="checkbox"] {
  display: none;
}

.gl-auth-custom-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border-strong);
  border-radius: 5px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-standard);
  flex-shrink: 0;
}

.gl-auth-checkbox-wrap input:checked~.gl-auth-custom-check {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.gl-auth-checkbox-wrap input:checked~.gl-auth-custom-check::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.gl-auth-check-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-fg-secondary);
  font-family: var(--font-body);
}

.gl-auth-forgot {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}

.gl-auth-forgot:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
}

/* Primary button */
.gl-auth-btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-standard), filter var(--dur-fast) var(--ease-standard);
  margin-bottom: 24px;
  text-decoration: none;
}

.gl-auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  filter: brightness(1.06);
  color: white;
  text-decoration: none;
}

.gl-auth-btn-primary:active {
  transform: scale(0.97);
}

.gl-auth-btn-primary svg {
  width: 18px;
  height: 18px;
}

.gl-auth-btn-recovery {
  background: linear-gradient(135deg, #0891B2 0%, #4F46E5 100%);
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

.gl-auth-btn-recovery:hover {
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.4);
}

/* Info note */
.gl-auth-info-note {
  display: flex;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 24px;
}

.gl-auth-info-note svg {
  width: 16px;
  height: 16px;
  color: #D97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.gl-auth-info-note-text {
  font-size: 13px;
  color: #92400E;
  font-weight: 500;
  line-height: 1.5;
  font-family: var(--font-body);
}

/* Form icon header */
.gl-auth-form-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #C7D2FE;
}

.gl-auth-form-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-brand);
}

/* Error message */
.gl-auth-error {
  background: var(--color-error-light);
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-error);
  font-family: var(--font-body);
  font-weight: 500;
}

/* Success state */
.gl-auth-state {
  display: none;
}

.gl-auth-state.is-active {
  display: block;
}

.gl-auth-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 2px solid #6EE7B7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: gl-pop-in 0.5s var(--ease-spring) forwards;
}

@keyframes gl-pop-in {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gl-auth-success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-success);
}

.gl-auth-success-title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 24px;
  color: var(--color-fg);
  letter-spacing: var(--ls-tight);
  text-align: center;
  margin-bottom: 10px;
}

.gl-auth-success-body {
  font-size: 14px;
  color: var(--color-fg-secondary);
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 8px;
}

.gl-auth-success-email {
  font-weight: var(--fw-bold);
  color: var(--color-fg);
}

.gl-auth-success-note {
  font-size: 12px;
  color: var(--color-fg-muted);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

.gl-auth-btn-outline {
  width: 100%;
  padding: 13px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: white;
  color: #334155;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--dur-fast) var(--ease-standard);
  margin-bottom: 12px;
  text-decoration: none;
}

.gl-auth-btn-outline:hover {
  background: #F8FAFC;
  border-color: var(--color-border-strong);
  text-decoration: none;
}

.gl-auth-btn-outline svg {
  width: 16px;
  height: 16px;
}

.gl-auth-btn-link {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-brand);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--dur-fast) var(--ease-standard);
  text-decoration: none;
}

.gl-auth-btn-link:hover {
  background: var(--color-brand-light);
  text-decoration: none;
}

.gl-auth-btn-link svg {
  width: 16px;
  height: 16px;
}

.gl-auth-resend-row {
  text-align: center;
  margin-top: 8px;
}

.gl-auth-resend-btn {
  font-size: 13px;
  color: var(--color-brand);
  font-weight: var(--fw-semibold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}

.gl-auth-resend-btn:disabled {
  color: var(--color-fg-muted);
  cursor: default;
}

.gl-auth-resend-timer {
  font-size: 13px;
  color: var(--color-fg-muted);
  font-family: var(--font-body);
}

.gl-auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--color-fg-muted);
  margin-top: 4px;
}

.gl-auth-footer a {
  color: var(--color-brand);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.gl-auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .gl-auth-brand {
    display: none;
  }

  .gl-auth-form-panel {
    padding: 32px 24px;
  }
}

/* ── Passwordless Login (plugin form overrides) ──────────── */
.gl-wpa-wrap {
  margin-bottom: 24px;
}

.gl-wpa-wrap .wpaloginform {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gl-wpa-wrap .wpa-login-label {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: #334155;
  font-family: var(--font-body);
  margin-bottom: 5px;
  display: block;
}

.gl-wpa-wrap .wpa-user-email-username {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  color: var(--color-fg);
  background: var(--color-bg);
  outline: none;
  transition: border var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
  margin-bottom: 16px;
  box-sizing: border-box;
}

.gl-wpa-wrap .wpa-user-email-username::placeholder {
  color: var(--color-border-strong);
  font-weight: 400;
}

.gl-wpa-wrap .wpa-user-email-username:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.gl-wpa-wrap .wpa-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-standard), filter var(--dur-fast) var(--ease-standard);
  box-sizing: border-box;
  text-transform: none;
}

.gl-wpa-wrap .wpa-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  filter: brightness(1.06);
}

.gl-wpa-wrap .wpa-submit:active {
  transform: scale(0.97);
}

/* Success state */
.gl-wpa-wrap .wpa-box.wpa-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: #065F46;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
}

/* Error state */
.gl-wpa-wrap .wpa-box.wpa-error {
  background: var(--color-error-light);
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-error);
  font-family: var(--font-body);
  font-weight: 500;
}

/* ── Form Primitives ─────────────────────────────────────── */
.gl-form-group {
  margin-bottom: var(--space-4);
}

.gl-form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-fg);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
}

.gl-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-fg);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}

.gl-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}

.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard);
}

.gl-btn-primary {
  background: var(--color-brand);
  color: var(--color-fg-inverted);
  box-shadow: var(--shadow-brand);
}

.gl-btn-primary:hover {
  background: var(--color-brand-dark);
  color: var(--color-fg-inverted);
}

/* ── LearnDash Login Form Overrides ──────────────────────── */
#learndash-login-form,
.learndash-wrapper .ld-login-modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

#learndash-login-form input[type="text"],
#learndash-login-form input[type="email"],
#learndash-login-form input[type="password"],
.learndash-wrapper input[type="text"],
.learndash-wrapper input[type="email"],
.learndash-wrapper input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-fg);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}

#learndash-login-form input[type="text"]:focus,
#learndash-login-form input[type="email"]:focus,
#learndash-login-form input[type="password"]:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}

#learndash-login-form input[type="submit"],
#learndash-login-form button[type="submit"],
.learndash-wrapper .ld-login-modal-form input[type="submit"] {
  width: 100%;
  padding: 11px;
  background: var(--color-brand);
  color: var(--color-fg-inverted);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background var(--dur-fast) var(--ease-standard);
}

#learndash-login-form input[type="submit"]:hover,
#learndash-login-form button[type="submit"]:hover {
  background: var(--color-brand-dark);
}

#learndash-login-form label,
.learndash-wrapper label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-fg);
  display: block;
  margin-bottom: var(--space-1);
}

.learndash-login-error,
#learndash-login-form .learndash-login-form-error {
  background: #FEF2F2;
  color: var(--color-error);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

/* ── Sidebar Layout (Profesor Dashboard) ─────────────────── */
.gl-layout-sidebar {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.gl-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.gl-sidebar-header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gl-sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-fg-inverted);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 17px;
  flex-shrink: 0;
  text-decoration: none;
}

.gl-sidebar-brand-name {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--text-sm);
  color: var(--color-fg);
  line-height: 1;
}

.gl-sidebar-brand-label {
  font-size: 10px;
  color: var(--color-fg-muted);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-top: 2px;
}

.gl-sidebar-nav {
  padding: 12px 10px;
  flex: 1;
  list-style: none;
  margin: 0;
}

.gl-sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 2px;
  border-left: 3px solid transparent;
  color: var(--color-fg-secondary);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-standard);
}

.gl-sidebar-nav-item.is-active,
.gl-sidebar-nav-item:is([aria-current="page"]) {
  background: var(--color-brand-light);
  border-left-color: var(--color-brand);
  color: var(--color-brand);
  font-weight: var(--fw-semibold);
}

.gl-sidebar-nav-item:hover:not(.is-active) {
  background: var(--color-bg-subtle);
}

.gl-sidebar-grades {
  padding: 12px 14px;
  border-top: 1px solid var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
}

.gl-sidebar-grades-label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  color: var(--color-fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.gl-sidebar-grade-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 0;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-fg-secondary);
}

.gl-sidebar-grade-badge {
  margin-left: auto;
  border-radius: var(--radius-full);
  padding: 1px 6px;
  font-size: 11px;
  font-weight: var(--fw-bold);
}

.gl-sidebar-profile {
  border-top: 1px solid var(--color-border);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gl-sidebar-profile-info {
  flex: 1;
  min-width: 0;
}

.gl-sidebar-profile-name {
  font-weight: var(--fw-semibold);
  font-size: 13px;
  color: var(--color-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gl-sidebar-profile-role {
  font-size: 11px;
  color: var(--color-fg-muted);
}

.gl-sidebar-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gl-topbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.gl-topbar-greeting {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--text-xl);
  color: var(--color-fg);
  line-height: 1;
}

.gl-topbar-sub {
  font-size: 13px;
  color: var(--color-fg-secondary);
  margin-top: 3px;
}

.gl-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gl-dashboard-body {
  flex: 1;
  background: var(--color-bg-subtle);
  overflow: auto;
  padding: 1em;
}

/* ── Avatar ──────────────────────────────────────────────── */
.gl-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  color: var(--color-fg-inverted);
  flex-shrink: 0;
  font-size: 13px;
}

/* ── Top Nav Layout (Estudiante Dashboard) ───────────────── */
.gl-layout-topnav {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.gl-topnav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: var(--space-2);
  box-shadow: var(--shadow-1);
  flex-shrink: 0;
  z-index: var(--z-sticky);
}

.gl-topnav-logo {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 19px;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-right: var(--space-4);
  text-decoration: none;
}

.gl-topnav-logo-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gl-topnav-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
}

.gl-topnav-tab {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-fg-secondary);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-standard);
}

.gl-topnav-tab.is-active,
.gl-topnav-tab:is([aria-current="page"]) {
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-weight: var(--fw-semibold);
}

.gl-topnav-tab:hover:not(.is-active) {
  background: var(--color-bg-subtle);
}

.gl-topnav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.gl-badge-xp {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-reward-light);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: #D97706;
}

.gl-badge-grade {
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: var(--fw-bold);
}

/* ── Canvas (Frontpage Elementor) ────────────────────────── */
.entry-content.gl-layout-canvas,
.wp-site-blocks:has(.gl-layout-canvas) {
  padding: 0 !important;
  max-width: none !important;
}

.gl-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.12), transparent 50%), radial-gradient(circle at 10% 80%, rgba(236, 72, 153, 0.10), transparent 45%), linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  padding: 80px 0 96px;
}

.gl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(assets/circuit-pattern.svg);
  background-size: 320px;
  opacity: 0.5;
  pointer-events: none;
}

.gl-h1-accent-underline {
  position: relative;
  white-space: nowrap;
}

.gl-h1-accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 12px;
  background: var(--color-amber-300);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-8deg);
}

/* ── Instructor Guide Block ───────────────────────────────── */
.gl-instructor-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
}

/* Banners (objetivo / resultado) */
.gl-ig-objetivo,
.gl-ig-resultado {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 20px 24px;
}

.gl-ig-objetive-icon,
.gl-ig-result-icon {
  width: 48px;
  height: 48px;
  background-color: #C7D2FE;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  flex-shrink: 0;
}

.gl-ig-objetivo {
  background: linear-gradient(135deg, #EEF2FF, #ECFEFF);
  border: 1px solid #C7D2FE;
}

.gl-ig-objetivo .gl-ig-banner-label {
  color: #6366F1;
}

.gl-ig-objetivo .gl-ig-banner-content {
  color: #1E1B4B;
}

.gl-ig-resultado {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #6EE7B7;
}

.gl-ig-resultado .gl-ig-banner-label {
  color: #059669;
}

.gl-ig-resultado .gl-ig-banner-content {
  color: #064E3B;
}

.gl-ig-banner-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.gl-ig-banner-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gl-ig-banner-content {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.gl-ig-banner-content p {
  margin: 0;
}

/* Timeline */
.gl-ig-timeline-wrap {
  background: var(--color-surface);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gl-ig-timeline {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  height: 26px;
}

.gl-ig-timeline-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-fg-inverted);
  min-width: 24px;
}

.gl-ig-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gl-ig-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--color-fg-secondary);
}

.gl-ig-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Title */
.gl-ig-title-icon svg {
    stroke: rgb(16, 185, 129);
    width: 16px;
    height: 16px;
}

.gl-ig-title {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.gl-ig-title-time {
  font-size: 12px;
  color: rgb(148, 163, 184);
  font-weight: 500;
}

.gl-ig-title-label {
  font-size: 17px;
  color: rgb(15, 23, 42);
}

/* Phase cards */
.gl-ig-phases {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gl-ig-phase {
  background: var(--color-surface);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: start;
  gap: 16px;
}

.gl-ig-phase-inner {
  flex: 1;
}

.gl-ig-phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 48px;
}

.gl-ig-phase-num {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  flex-shrink: 0;
}

.gl-ig-phase-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-fg);
  flex: 1;
}

.gl-ig-phase-badge {
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.gl-ig-phase-content {
  font-size: 14px;
  color: var(--color-fg-secondary);
  line-height: 1.7;
}

.gl-ig-phase-content p {
  margin: 0 0 8px;
}

.gl-ig-phase-content p:last-child {
  margin-bottom: 0;
}

/* Editor canvas styles (wp-admin only) */
/* Phase heading (front-end) */
.gl-ig-phase-heading {
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0 6px;
  line-height: 1.4;
}

/* Front-end: estilos para bloques hijos dentro de cada fase */
.gl-ig-phase-content>h1,
.gl-ig-phase-content>h2,
.gl-ig-phase-content>h3,
.gl-ig-phase-content>h4,
.gl-ig-phase-content>h5,
.gl-ig-phase-content>h6 {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 4px;
  line-height: 1.4;
}

.gl-ig-phase-content>p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 8px;
}

.gl-ig-phase-content>p:last-child {
  margin-bottom: 0;
}

.gl-ig-phase-content ul,
.gl-ig-phase-content ol {
  font-size: 14px;
  line-height: 1.7;
  padding-left: 20px;
  margin: 0 0 8px;
}

.gl-ig-phase-content li {
  margin-bottom: 3px;
}

/* ── Instructor Grades Block — Tabs + Hero ───────────── */

.gl-ig-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tabs */
.gl-ig-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gl-ig-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: #F8FAFC;
  color: #475569 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: all 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gl-ig-tab.gl-ig-tab--active {
  color: #FFFFFF !important;
}

.gl-ig-tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.gl-ig-tab-letter {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}

.gl-ig-tab-pill {
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  line-height: 18px;
}

/* Hero */
.gl-ig-hero {
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.gl-ig-hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
}

.gl-ig-hero-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gl-ig-hero-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.gl-ig-hero-icon-letter {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: white;
}

.gl-ig-hero-info {
  flex: 1;
  position: relative;
}

.gl-ig-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gl-ig-hero-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: white;
  line-height: 1.1;
  margin-bottom: 4px;
}

.gl-ig-hero-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.gl-ig-hero-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

.gl-ig-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 72px;
}

.gl-ig-stat-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: white;
  line-height: 1;
}

.gl-ig-stat-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  font-weight: 500;
}

/* Empty state */
.gl-ig-empty {
  text-align: center;
  padding: 32px;
  color: #94A3B8;
  font-size: 14px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1.5px dashed #E2E8F0;
}

/* ── Instructor Grades — Course Cards ─────────────────── */

.gl-ig-courses-outer {
  display: block;
}

.gl-ig-courses-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: #94A3B8;
}

.gl-ig-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #E2E8F0;
  border-top-color: #4F46E5;
  border-radius: 50%;
  animation: gl-ig-spin 0.7s linear infinite;
}

@keyframes gl-ig-spin {
  to {
    transform: rotate(360deg);
  }
}

.gl-ig-courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gl-ig-courses-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #0F172A;
}

.gl-ig-courses-meta {
  font-size: 12px;
  color: #94A3B8;
}

.gl-ig-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.gl-ig-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  color: inherit;
}

.gl-ig-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.gl-ig-card-header {
  position: relative;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}

.gl-ig-card-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gl-ig-card-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.44));
}

.gl-ig-card-header-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gl-ig-card-header-color {
  height: 80px;
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gl-ig-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.gl-ig-card-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.gl-ig-card-icon--over {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gl-ig-card-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  line-height: 1.4;
}

.gl-ig-card-tag--over {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.gl-ig-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gl-ig-card-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #0F172A;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gl-ig-card-desc {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gl-ig-card-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
}

.gl-ig-card-stat-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.gl-ig-card-stat-row b {
  color: #0F172A;
}

.gl-ig-card-dates {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #94A3B8;
  flex-wrap: wrap;
}

.gl-ig-card-no-dates {
  font-size: 10px;
  color: #CBD5E1;
  font-style: italic;
}

.gl-ig-courses-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  color: #94A3B8;
  font-size: 14px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1.5px dashed #E2E8F0;
}

.gl-ig-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.gl-ig-page-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: #F8FAFC;
  color: #64748B;
  transition: all 150ms;
}

.gl-ig-page-btn:hover:not(:disabled):not(.active) {
  background: #E2E8F0;
}

.gl-ig-page-btn.active {
  background: var(--active-color, #4F46E5);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gl-ig-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.gl-ig-page-btn.gl-ig-page-arrow {
  background: white;
  border: 1.5px solid #E2E8F0;
  color: #94A3B8;
}

.gl-ig-page-dots {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #CBD5E1;
}

.gl-ig-page-info {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
}

/* ── Instructor Students Block ───────────────────────────── */

.gl-is-wrap {
  --is-color: #4F46E5;
}

.gl-is-course-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}

.gl-is-course-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-600);
  white-space: nowrap;
}

.gl-is-select-wrap {
  flex: 1;
  max-width: 400px;
  min-width: 200px;
}

.gl-is-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--is-color);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-700);
  background: white;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s;
}

.gl-is-select:focus {
  outline: none;
  border-color: var(--is-color);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.gl-is-table-area {
  margin-top: 8px;
}

.gl-is-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--color-slate-200);
}

.gl-is-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.gl-is-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-slate-500);
  background: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
  white-space: nowrap;
}

.gl-is-table thead th:first-child {
  width: 52px;
  padding-right: 0;
}

.gl-is-table tbody tr {
  border-bottom: 1px solid var(--color-slate-100);
  transition: background 0.12s;
}

.gl-is-table tbody tr:last-child {
  border-bottom: none;
}

.gl-is-table tbody tr:hover {
  background: var(--color-slate-50);
}

.gl-is-table td {
  padding: 12px 16px;
  color: var(--color-slate-700);
  vertical-align: middle;
}

.gl-is-table td:first-child {
  width: 52px;
  padding-right: 0;
}

.gl-is-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.gl-is-name {
  font-weight: 600;
  color: var(--color-slate-800);
}

.gl-is-email {
  color: var(--color-slate-500);
  font-size: 13px;
}

.gl-is-progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.gl-is-progress-track {
  flex: 1;
  height: 6px;
  background: var(--color-slate-200);
  border-radius: 99px;
  overflow: hidden;
}

.gl-is-progress-bar {
  height: 100%;
  background: var(--is-color);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.gl-is-progress-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-600);
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}

.gl-is-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gl-is-badge--active {
  background: var(--color-emerald-100);
  color: var(--color-emerald-700);
}

.gl-is-badge--inactive {
  background: var(--color-slate-100);
  color: var(--color-slate-500);
}

.gl-is-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-slate-400);
  font-size: 14px;
  font-weight: 500;
}

.gl-is-select-empty {
  font-size: 13px;
  color: var(--color-slate-400);
  padding: 8px 0;
}

/* ── Passwordless Login (plugin form overrides) ──────────── */

.gl-auth-form-panel .wpaloginform .wpa-submit{
  width: 100%!important;
  padding: 11px;
  background: var(--color-brand);
  color: var(--color-fg-inverted);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background var(--dur-fast) var(--ease-standard);
}