/*=============================================
=            JEOPARCISE                       =
=            White & Jeopardy Blue Theme      =
==============================================*/

:root {
  --jp-bg: #f4f6fb;
  --jp-bg-card: #ffffff;
  --jp-bg-elevated: #f0f3fa;
  --jp-border: #d8dee9;
  --jp-blue: #060ce9;
  --jp-blue-light: #3d6bff;
  --jp-blue-dark: #0408b0;
  --jp-blue-mid: #1a2fd4;
  --jp-blue-glow: rgba(6, 12, 233, 0.18);
  --jp-text: #1a1f36;
  --jp-text-muted: #5a6478;
  --jp-text-dim: #8a93a8;
  --jp-success: #2e7d32;
  --jp-danger: #d32f2f;
  --jp-gradient: linear-gradient(135deg, #0408b0 0%, #060ce9 45%, #3d6bff 100%);
  --jp-header-gradient: linear-gradient(135deg, #03068a 0%, #060ce9 35%, #1a2fd4 65%, #3d6bff 100%);
  --jp-header-gradient-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 50%);
  --jp-shadow: 0 4px 24px rgba(6, 12, 233, 0.08);
  --jp-radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
}

body.jp-site {
  background: var(--jp-bg);
  color: var(--jp-text);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER & NAV ===== */

.jp-header {
  background: #fff;
  border-bottom: 2px solid var(--jp-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(6, 12, 233, 0.08);
  overflow: visible;
}

.jp-header .navbar {
  padding: 0.75rem 0 0.5rem;
  overflow: visible;
  align-items: center;
}

.jp-logo {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  margin-right: 15px;
  margin-bottom: -1.5rem;
  line-height: 0;
  position: relative;
  z-index: 1001;
}

.jp-logo img {
  height: 88px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(6, 12, 233, 0.2));
}

.jp-nav-link {
  color: var(--jp-text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jp-nav-link:hover,
.jp-nav-link.active {
  color: var(--jp-blue) !important;
  background: rgba(6, 12, 233, 0.08);
}

.jp-nav-link.active {
  font-weight: 600;
}

.jp-account-btn {
  color: var(--jp-text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
}

.jp-account-btn:hover {
  color: var(--jp-blue) !important;
  background: rgba(6, 12, 233, 0.08);
}

.jp-btn-start {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: var(--jp-gradient);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 10px var(--jp-blue-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.jp-btn-start:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 12, 233, 0.35);
}

.jp-btn-start i {
  font-size: 1.1rem;
}

.jp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.jp-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eef1ff;
  border: 1px solid #d5dbff;
  color: var(--jp-blue);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.jp-time-chip i {
  font-size: 0.95rem;
}

.jp-time-chip-label {
  color: var(--jp-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.jp-time-chip-value {
  min-width: 2.5rem;
  text-align: right;
}

.jp-time-chip.is-ticking {
  background: #fff8e1;
  border-color: #ffe082;
  color: #8a6d00;
}

.jp-time-chip.is-frozen {
  background: #f0f3fa;
  border-color: #d8dee9;
  color: #5a6478;
}

.jp-time-chip.is-exhausted {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #c62828;
}

.jp-time-chip-add {
  margin-left: 0.15rem;
  padding-left: 0.45rem;
  border-left: 1px solid rgba(198, 40, 40, 0.35);
  color: #c62828;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.jp-time-chip-add:hover {
  color: #8e1b1b;
  text-decoration: underline;
}

.jp-time-chip-add[hidden] {
  display: none !important;
}

.jp-dropdown-menu {
  background: var(--jp-bg-card);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  box-shadow: var(--jp-shadow);
  padding: 0.5rem;
}

.jp-dropdown-menu .dropdown-item {
  color: var(--jp-text);
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.jp-dropdown-menu .dropdown-item:hover {
  background: rgba(6, 12, 233, 0.08);
  color: var(--jp-blue);
}

.jp-dropdown-menu .dropdown-item.text-danger:hover {
  background: rgba(211, 47, 47, 0.1);
  color: var(--jp-danger);
}

.jp-dropdown-menu .dropdown-divider {
  border-color: var(--jp-border);
}

.navbar-toggler {
  color: var(--jp-blue);
}

/* ===== MAIN LAYOUT ===== */

.jp-main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.jp-page-header {
  background: linear-gradient(180deg, #e8edff 0%, var(--jp-bg) 100%);
  border-bottom: 1px solid var(--jp-border);
  padding: 2rem 0;
  margin-bottom: 1.5rem;
}

.jp-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jp-text);
  margin: 0;
}

.jp-page-title span {
  color: var(--jp-blue);
}

.jp-page-subtitle {
  color: var(--jp-text-muted);
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

/* ===== CARDS ===== */

.jp-card {
  background: var(--jp-bg-card);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--jp-shadow);
}

.jp-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--jp-header-gradient);
  border-bottom: none;
  box-shadow: 0 3px 12px rgba(6, 12, 233, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.jp-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--jp-header-gradient-shine);
  pointer-events: none;
}

.jp-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.jp-card-header > * {
  position: relative;
  z-index: 1;
}

.jp-card-header i {
  color: #fff;
  font-size: 1.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.jp-card-header h2,
.jp-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.jp-card-body {
  padding: 1.25rem;
}

/* ===== DASHBOARD ===== */

.jp-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.jp-stat-grid-perf {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .jp-stat-grid-perf {
    grid-template-columns: repeat(2, 1fr);
  }
}

.jp-stat-card {
  background: var(--jp-bg-elevated);
  border: 1px solid var(--jp-border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.jp-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--jp-blue);
  line-height: 1.1;
  margin: 0;
}

.jp-stat-label {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--jp-text-muted);
  font-weight: 500;
}

.jp-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 12, 233, 0.1);
  color: var(--jp-blue);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.jp-chart-placeholder {
  height: 220px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(6, 12, 233, 0.06) 0%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(6, 12, 233, 0.06) 39px,
      rgba(6, 12, 233, 0.06) 40px
    );
  border: 1px dashed var(--jp-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem 1rem 1rem;
  position: relative;
  overflow: hidden;
}

.jp-card-header-with-actions {
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .jp-card-header-with-actions {
    flex-wrap: wrap;
  }

  .jp-chart-range-toggle {
    width: 100%;
    justify-content: flex-start;
  }
}

.jp-card-header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.jp-chart-range-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.jp-chart-range-toggle button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.jp-chart-range-toggle button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

.jp-chart-range-toggle button.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.jp-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 520px;
  height: 140px;
  margin-bottom: 0.35rem;
}

.jp-chart-bar-wrap {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.jp-chart-bar-wrap .jp-chart-bar {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.jp-chart-bar-label {
  font-size: 0.65rem;
  line-height: 1;
  color: var(--jp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.jp-chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--jp-gradient);
  opacity: 0.85;
  min-width: 28px;
  animation: jp-bar-rise 0.8s ease-out both;
}

.jp-chart-bar:nth-child(1) { height: 45%; animation-delay: 0.05s; }
.jp-chart-bar:nth-child(2) { height: 68%; animation-delay: 0.1s; }
.jp-chart-bar:nth-child(3) { height: 52%; animation-delay: 0.15s; }
.jp-chart-bar:nth-child(4) { height: 80%; animation-delay: 0.2s; }
.jp-chart-bar:nth-child(5) { height: 62%; animation-delay: 0.25s; }
.jp-chart-bar:nth-child(6) { height: 90%; animation-delay: 0.3s; }
.jp-chart-bar:nth-child(7) { height: 72%; animation-delay: 0.35s; }

@keyframes jp-bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.jp-chart-apex-wrap {
  min-height: 280px;
  position: relative;
}

.jp-chart-apex-wrap .jp-chart-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  z-index: 2;
}

.jp-chart-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--jp-text-dim);
  text-align: center;
}

.jp-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.jp-welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  min-width: min(100%, 260px);
}

.jp-welcome-actions .jp-btn {
  justify-content: center;
  white-space: nowrap;
}

.jp-category-picker {
  min-width: 260px;
  max-width: 320px;
  cursor: pointer;
}

.jp-category-picker-locked {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 260px;
  max-width: 320px;
}

.jp-category-picker-locked .jp-category-picker {
  min-width: 0;
  max-width: none;
  width: 100%;
  cursor: not-allowed;
  opacity: 0.85;
}

.jp-category-picker-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--jp-blue);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.jp-category-picker-upgrade:hover {
  text-decoration: underline;
}

.jp-category-suggest-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  background: #fff;
}

.jp-category-suggest-list[hidden] {
  display: none !important;
}

.jp-category-suggest-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--jp-border);
  background: transparent;
  color: var(--jp-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.jp-category-suggest-list li:last-child .jp-category-suggest-item {
  border-bottom: 0;
}

.jp-category-suggest-item:hover,
.jp-category-suggest-item.is-active {
  background: rgba(6, 12, 233, 0.08);
  color: var(--jp-blue);
}

.jp-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid var(--jp-border);
  padding: 0.85rem 1.25rem 1.15rem;
}

.jp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  background: #fff;
  color: var(--jp-text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.jp-btn-outline:hover {
  border-color: var(--jp-blue-light);
  color: var(--jp-blue);
}

.jp-welcome-text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jp-text);
}

.jp-welcome-text p {
  margin: 0;
  color: var(--jp-text-muted);
  font-size: 0.95rem;
}

.jp-welcome-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.jp-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(6, 12, 233, 0.1);
  color: var(--jp-blue);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  transition: background 0.15s ease, color 0.15s ease;
}

.jp-plan-badge i {
  font-size: 0.95rem;
  line-height: 1;
}

a.jp-plan-badge:hover {
  background: rgba(6, 12, 233, 0.18);
  color: var(--jp-blue);
  text-decoration: none;
}

/* ===== FORMS ===== */

.jp-form-group {
  margin-bottom: 1rem;
}

.jp-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jp-text-muted);
  margin-bottom: 0.35rem;
}

.jp-form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  color: var(--jp-text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.jp-form-control:focus {
  outline: none;
  border-color: var(--jp-blue);
  box-shadow: 0 0 0 3px var(--jp-blue-glow);
}

.jp-form-control::placeholder {
  color: var(--jp-text-dim);
}

textarea.jp-form-control {
  resize: vertical;
  min-height: 80px;
}

.jp-form-hint {
  font-size: 0.8rem;
  color: var(--jp-text-dim);
  margin: 0.35rem 0 0;
}

.jp-form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--jp-blue);
}

.jp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.jp-btn-primary {
  background: var(--jp-gradient);
  color: #fff;
}

.jp-btn-primary:hover {
  background: var(--jp-blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--jp-blue-glow);
}

.jp-btn-outline {
  background: transparent;
  border: 1px solid var(--jp-border);
  color: var(--jp-text);
}

.jp-btn-outline:hover {
  border-color: var(--jp-blue);
  color: var(--jp-blue);
}

.jp-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* ===== ACCOUNT / EDIT ===== */

.jp-edit-card {
  background: var(--jp-bg-card);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--jp-shadow);
}

.jp-edit-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--jp-header-gradient);
  position: relative;
  overflow: hidden;
}

.jp-edit-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--jp-header-gradient-shine);
  pointer-events: none;
}

.jp-edit-card-header > * {
  position: relative;
  z-index: 1;
}

.jp-edit-card-header i {
  color: #fff;
  font-size: 1.25rem;
}

.jp-edit-card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.jp-edit-card-body {
  padding: 1.25rem;
}

.jp-notify-settings {
  padding-top: 0.5rem !important;
}

.jp-notify-header,
.jp-notify-row {
  display: grid;
  grid-template-columns: 1fr 56px 56px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--jp-border);
}

.jp-notify-header {
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.jp-notify-header-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jp-text-dim);
}

.jp-notify-header-channel {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jp-text-dim);
}

.jp-notify-info {
  min-width: 0;
}

.jp-notify-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--jp-text);
}

.jp-notify-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--jp-text-dim);
  margin-top: 0.15rem;
}

.jp-notify-channel {
  display: flex;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.jp-notify-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--jp-text-dim);
}

.jp-notify-hint i {
  color: var(--jp-blue);
}

/* ===== FAQ ===== */

.jp-faq .accordion-item {
  background: var(--jp-bg-card);
  border: 1px solid var(--jp-border) !important;
  border-radius: 10px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.jp-faq .accordion-button {
  background: var(--jp-bg-card);
  color: var(--jp-text);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: none !important;
  padding: 1rem 1.25rem;
}

.jp-faq .accordion-button:not(.collapsed) {
  background: rgba(6, 12, 233, 0.06);
  color: var(--jp-blue);
}

.jp-faq .accordion-button::after {
  filter: none;
}

.jp-faq .accordion-body {
  color: var(--jp-text-muted);
  line-height: 1.6;
  font-size: 0.925rem;
  padding: 0 1.25rem 1.15rem;
}

.jp-faq .accordion-body a {
  color: var(--jp-blue);
  font-weight: 600;
  text-decoration: none;
}

.jp-faq .accordion-body a:hover {
  text-decoration: underline;
}

.jp-intro-text {
  color: var(--jp-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.jp-intro-text a {
  color: var(--jp-blue);
  font-weight: 600;
  text-decoration: none;
}

.jp-intro-text a:hover {
  text-decoration: underline;
}

/* ===== CONTACT ===== */

.jp-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--jp-text-muted);
}

.jp-contact-item:last-child {
  margin-bottom: 0;
}

.jp-contact-item i {
  color: var(--jp-blue);
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.jp-contact-item a {
  color: var(--jp-blue);
  text-decoration: none;
  font-weight: 500;
}

.jp-contact-item a:hover {
  text-decoration: underline;
}

/* ===== MEMBERSHIP ===== */

.jp-membership-plans {
  margin-bottom: 2rem;
}

.jp-membership-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--jp-bg-card);
  border: 1px solid var(--jp-blue);
  border-radius: var(--jp-radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(6, 12, 233, 0.2), 0 8px 32px rgba(6, 12, 233, 0.12);
}

.jp-membership-card-double {
  background: linear-gradient(180deg, #eef4ff 0%, #f5f8ff 45%, #e8f0ff 100%);
  border-color: #6b8cff;
  box-shadow: 0 0 0 1px rgba(61, 107, 255, 0.18), 0 8px 32px rgba(61, 107, 255, 0.12);
}

.jp-membership-card-featured {
  background: linear-gradient(180deg, #fff8e8 0%, #fffaf0 45%, #fff3d6 100%);
  border-color: #d4a017;
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2), 0 8px 32px rgba(212, 160, 23, 0.14);
}

.jp-membership-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #c9920a 0%, #e0b33a 50%, #f0c95a 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  z-index: 1;
}

.jp-membership-card-header {
  padding: 2rem 1.5rem 1.25rem;
  text-align: center;
  background: transparent;
  border-bottom: 1px solid var(--jp-border);
}

.jp-membership-card-double .jp-membership-card-header {
  border-bottom-color: rgba(61, 107, 255, 0.18);
}

.jp-membership-card-featured .jp-membership-card-header {
  background: transparent;
  border-bottom-color: rgba(212, 160, 23, 0.22);
}

.jp-membership-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  background: rgba(6, 12, 233, 0.1);
  color: var(--jp-blue);
  border: 2px solid rgba(6, 12, 233, 0.25);
}

.jp-membership-card-double .jp-membership-icon {
  background: rgba(61, 107, 255, 0.14);
  color: #1a4de0;
  border-color: rgba(61, 107, 255, 0.3);
}

.jp-membership-icon-champion {
  background: linear-gradient(135deg, #c9920a 0%, #e0b33a 50%, #f0c95a 100%);
  color: #fff;
  border-color: #d4a017;
}

.jp-membership-name {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jp-text);
}

.jp-membership-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.jp-membership-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--jp-blue);
}

.jp-membership-card-featured .jp-membership-currency {
  color: #b8860b;
}

.jp-membership-amount {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--jp-text);
}

.jp-membership-period {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--jp-text-muted);
}

.jp-membership-body {
  flex: 1;
  padding: 1.5rem 1.5rem;
}

.jp-membership-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jp-membership-features li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--jp-border);
}

.jp-membership-card-double .jp-membership-features li {
  border-bottom-color: rgba(61, 107, 255, 0.14);
}

.jp-membership-card-featured .jp-membership-features li {
  border-bottom-color: rgba(212, 160, 23, 0.18);
}

.jp-membership-features li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.jp-membership-features li > i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--jp-blue);
  font-size: 1.1rem;
}

.jp-membership-card-featured .jp-membership-features li > i {
  color: #c9920a;
}

.jp-membership-features li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--jp-text);
  margin-bottom: 0.2rem;
}

.jp-membership-features li span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--jp-text-muted);
}

.jp-membership-footer {
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid var(--jp-border);
  background: rgba(255, 255, 255, 0.45);
}

.jp-membership-card-double .jp-membership-footer {
  border-top-color: rgba(61, 107, 255, 0.18);
  background: rgba(255, 255, 255, 0.4);
}

.jp-membership-card-featured .jp-membership-footer {
  border-top-color: rgba(212, 160, 23, 0.22);
  background: rgba(255, 255, 255, 0.4);
}

.jp-membership-billing-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--jp-text-dim);
  text-align: center;
}

.jp-membership-change-note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--jp-text-dim);
  text-align: center;
}

.jp-membership-change-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.jp-subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--jp-gradient);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px var(--jp-blue-glow);
}

.jp-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 12, 233, 0.35);
  color: #fff;
}

.jp-subscribe-btn-outline {
  background: #fff;
  color: var(--jp-blue);
  border: 2px solid var(--jp-blue);
  box-shadow: none;
}

.jp-subscribe-btn-outline:hover {
  background: rgba(6, 12, 233, 0.06);
  color: var(--jp-blue);
  box-shadow: none;
}

.jp-membership-card-free {
  background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 55%, #f3f5fb 100%);
}

.jp-membership-card-free-compact {
  height: auto;
}

.jp-membership-card-free-compact .jp-membership-card-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.jp-membership-card-free-compact .jp-membership-name {
  margin: 0;
  font-size: 1.15rem;
}

.jp-membership-card-free-compact .jp-membership-body {
  padding: 0.75rem 1.25rem 1.25rem;
}

.jp-membership-card-free-compact .jp-membership-features li {
  padding: 0;
  border-bottom: none;
}

.jp-membership-card-free-compact .jp-membership-footer {
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid var(--jp-border);
  background: transparent;
}

.jp-membership-icon-free {
  background: rgba(90, 100, 120, 0.1);
  color: var(--jp-text-muted);
  border-color: rgba(90, 100, 120, 0.25);
}

.jp-membership-card-current {
  box-shadow: 0 0 0 3px var(--jp-blue), 0 10px 36px rgba(6, 12, 233, 0.18);
}

.jp-membership-card-double.jp-membership-card-current {
  box-shadow: 0 0 0 3px var(--jp-blue), 0 10px 36px rgba(61, 107, 255, 0.2);
}

.jp-membership-card-featured.jp-membership-card-current {
  box-shadow: 0 0 0 3px var(--jp-blue), 0 10px 36px rgba(212, 160, 23, 0.2);
}

.jp-membership-plans-free {
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.jp-membership-bottom {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.jp-membership-notes-card {
  display: flex;
  align-items: center;
}

.jp-membership-notes {
  max-width: 800px;
  margin: 0 auto;
}

.jp-membership-trust-icon {
  font-size: 3rem;
  color: var(--jp-blue);
}

.jp-membership-notes-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--jp-text);
}

.jp-membership-notes-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--jp-text-muted);
}

/* ===== LEGAL ===== */

.jp-legal-content {
  color: var(--jp-text-muted);
  line-height: 1.65;
  font-size: 0.925rem;
}

.jp-legal-content h2 {
  color: var(--jp-text);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.jp-legal-content h2:first-child {
  margin-top: 0;
}

.jp-legal-content h3 {
  color: var(--jp-text);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.jp-legal-content p {
  margin: 0 0 1rem;
}

.jp-legal-content ul,
.jp-legal-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.jp-legal-content li {
  margin-bottom: 0.5rem;
}

.jp-legal-content a {
  color: var(--jp-blue);
  text-decoration: none;
}

.jp-legal-content a:hover {
  text-decoration: underline;
}

.jp-legal-effective {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--jp-border);
  font-size: 0.85rem;
  color: var(--jp-text-dim);
}

/* ===== FOOTER ===== */

.jp-footer {
  background: #060ce9;
  border-top: none;
  padding: 1.5rem 0;
  margin-top: auto;
}

.jp-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.jp-footer-links a {
  color: #c5d0ff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.jp-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.jp-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

/* ===== TRAINING WINDOW ===== */

.jp-training-body {
  background: var(--jp-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2rem;
}

.jp-training-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--jp-shadow);
}

.jp-training-card img {
  height: 72px;
  width: auto;
  margin-bottom: 1.5rem;
}

.jp-training-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jp-text);
  margin: 0 0 0.75rem;
}

.jp-training-card p {
  color: var(--jp-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {
  .jp-logo {
    margin-bottom: 0;
  }

  .jp-logo img {
    height: 64px;
  }

  .jp-header .navbar {
    padding: 0.5rem 0;
  }
}

@media (max-width: 991.98px) {
  .jp-nav-actions {
    width: 100%;
    margin-top: 0.75rem;
    justify-content: space-between;
  }

  .jp-time-chip {
    flex: 1 1 auto;
  }
}

@media (max-width: 768px) {
  .jp-stat-grid {
    grid-template-columns: 1fr;
  }

  .jp-notify-header,
  .jp-notify-row {
    grid-template-columns: 1fr 48px 48px;
  }

  .jp-membership-card-header {
    padding: 1.5rem 1.25rem 1rem;
  }

  .jp-page-title {
    font-size: 1.45rem;
  }

  .jp-training-header {
    flex-direction: column;
    align-items: stretch;
  }

  .jp-training-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== UTILITIES ===== */

.hidden,
[hidden] {
  display: none !important;
}

.jp-text-muted {
  color: var(--jp-text-muted) !important;
}

.jp-table {
  color: var(--jp-text);
}

.jp-table thead tr {
  color: var(--jp-text-muted);
  font-size: 0.85rem;
}

.jp-table tbody {
  font-size: 0.925rem;
}

.jp-table-accent {
  color: var(--jp-blue);
  font-weight: 600;
}

.jp-sortable-table th {
  vertical-align: middle;
  white-space: nowrap;
}

.jp-sortable-table th:first-child,
.jp-sortable-table td:first-child {
  width: 30%;
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.jp-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.jp-sort-btn i {
  font-size: 0.95rem;
  opacity: 0.55;
}

.jp-sort-btn:hover,
.jp-sort-btn.is-active {
  color: var(--jp-blue);
}

.jp-sort-btn.is-active i {
  opacity: 1;
}

.jp-table-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.jp-table-pager-label {
  min-width: 6.5rem;
  text-align: center;
  color: var(--jp-text-muted);
  font-size: 0.875rem;
}

.jp-table-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  background: var(--jp-bg-elevated);
  color: var(--jp-text);
  cursor: pointer;
}

.jp-table-pager-btn:hover:not(:disabled) {
  border-color: var(--jp-blue-light);
  color: var(--jp-blue);
}

.jp-table-pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 767.98px) {
  .jp-perf-col-detail {
    display: none;
  }
}

/* ===== ADVANCED REPORTING ===== */

.jp-reporting-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}

.jp-reporting-filter label,
.jp-reporting-filter-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--jp-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.jp-reporting-filter-wide {
  grid-column: 1 / -1;
}

.jp-reporting-filters .jp-chart-range-toggle {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.35rem;
}

.jp-reporting-filters .jp-chart-range-toggle button {
  border: 1px solid var(--jp-border);
  background: #fff;
  color: var(--jp-text-muted);
}

.jp-reporting-filters .jp-chart-range-toggle button:hover {
  border-color: var(--jp-blue-light);
  background: rgba(6, 12, 233, 0.06);
  color: var(--jp-blue);
}

.jp-reporting-filters .jp-chart-range-toggle button.is-active {
  border-color: var(--jp-blue);
  background: rgba(6, 12, 233, 0.1);
  color: var(--jp-blue);
}

.jp-reporting-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--jp-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.jp-reporting-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.jp-reporting-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
}

.jp-reporting-swatch.is-bars {
  background: #060ce9;
}

.jp-reporting-swatch.is-line {
  background: #f4c430;
  border-radius: 999px;
}

.jp-reporting-chart-wrap {
  min-height: 420px;
}

.jp-reporting-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jp-reporting-cat-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--jp-border);
}

.jp-reporting-cat-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.jp-reporting-cat-name {
  font-weight: 600;
  color: var(--jp-text);
}

.jp-reporting-cat-meta {
  flex-shrink: 0;
  color: var(--jp-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.jp-reporting-locked {
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.jp-reporting-locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(6, 12, 233, 0.08);
  color: var(--jp-blue);
  font-size: 1.5rem;
}

.jp-reporting-locked h2 {
  margin-bottom: 0.6rem;
}

.jp-reporting-locked p {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  color: var(--jp-text-muted);
}

.jp-apex-tooltip {
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  box-shadow: var(--jp-shadow);
  color: var(--jp-text);
  font-size: 0.85rem;
}

.jp-apex-tooltip-title {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

body.jp-reporting-loading [data-report-chart] {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .jp-reporting-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jp-reporting-filter-wide {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .jp-reporting-chart-wrap {
    min-height: 320px;
  }
}

.jp-feature-icon {
  font-size: 2rem;
  color: var(--jp-blue);
  margin-bottom: 0.75rem;
}

.jp-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.jp-feature-text {
  color: var(--jp-text-muted);
  font-size: 0.9rem;
}

.jp-contact-heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.jp-contact-intro,
.jp-contact-list {
  color: var(--jp-text-muted);
  line-height: 1.6;
}

.jp-welcome-guest .jp-welcome-text {
  flex: 1;
}

/* ===== AUTH MODALS ===== */

.jp-auth-intro {
  color: var(--jp-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.jp-auth-error,
.jp-auth-success {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.jp-auth-error {
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.25);
  color: var(--jp-danger);
}

.jp-auth-error[hidden] {
  display: none !important;
}

.jp-auth-error.is-visible,
.jp-auth-success.is-visible {
  display: block !important;
}

.jp-auth-success {
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.25);
  color: var(--jp-success);
}

.jp-auth-switch-prompt {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--jp-text-muted);
  font-size: 0.9rem;
}

.jp-login-link {
  color: var(--jp-blue);
  text-decoration: none;
  font-weight: 600;
}

.jp-login-link:hover {
  text-decoration: underline;
}

.jp-auth-lost-password.hidden,
.jp-auth-success.hidden {
  display: none !important;
}

.jp-profile-error {
  margin-bottom: 1rem;
}

.jp-modal .modal-content {
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  box-shadow: var(--jp-shadow);
}

.jp-modal .modal-header {
  background: var(--jp-header-gradient);
  color: #fff;
  border-bottom: none;
}

.jp-modal .modal-header .modal-title,
.jp-modal .modal-header .modal-title .ti,
.jp-modal .modal-header .ti {
  color: #fff;
}

.jp-modal .modal-header .btn-close {
  --bs-btn-close-color: #fff;
  --bs-btn-close-opacity: 0.85;
  filter: invert(1) grayscale(100%) brightness(200%);
}

.jp-modal .modal-title {
  font-weight: 700;
  color: #fff;
}

.jp-modal .modal-body {
  background: #fff;
}

.jp-legal-uppercase {
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== MEMBERSHIP STATUS ===== */

.jp-membership-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(6, 12, 233, 0.08);
  border: 1px solid rgba(6, 12, 233, 0.2);
  border-radius: var(--jp-radius);
}

.jp-membership-status-banner i {
  color: var(--jp-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.jp-membership-status-banner--cancelled i {
  color: var(--jp-text-muted);
}

.jp-membership-cancelled-message {
  color: var(--jp-text-muted);
  line-height: 1.55;
}

.jp-membership-status-note {
  color: var(--jp-text-muted);
  font-weight: 400;
}

.jp-membership-cancel-wrap {
  margin-top: 0.75rem;
}

.jp-membership-cancel-btn {
  border: none;
  background: none;
  color: var(--jp-danger);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

.jp-membership-cancel-btn:hover {
  color: #b71c1c;
}

.jp-membership-current-label {
  margin: 0;
  font-weight: 600;
  color: var(--jp-blue);
}

.jp-membership-current-label.jp-text-muted {
  font-weight: 500;
  text-align: center;
}

.jp-membership-subscribed-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  background: var(--jp-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(6, 12, 233, 0.22);
}

.jp-membership-subscribed-badge i {
  font-size: 1.25rem;
  line-height: 1;
}

.jp-membership-card-double .jp-membership-subscribed-badge {
  background: linear-gradient(135deg, #2f5bff 0%, #3d6bff 100%);
  box-shadow: 0 2px 10px rgba(61, 107, 255, 0.28);
}

.jp-membership-card-featured .jp-membership-subscribed-badge {
  background: linear-gradient(135deg, #c9920a 0%, #d4a017 55%, #e0b33a 100%);
  box-shadow: 0 2px 10px rgba(212, 160, 23, 0.28);
}

.jp-membership-card-free .jp-membership-subscribed-badge {
  background: #4a5568;
  box-shadow: 0 2px 8px rgba(74, 85, 104, 0.2);
}

.jp-membership-processing {
  text-align: center;
  padding: 2rem 1rem;
}

.jp-purchase-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(6, 12, 233, 0.15);
  border-top-color: var(--jp-blue);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: jp-spin 0.8s linear infinite;
}

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

.jp-purchase-processing-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.jp-purchase-processing-text {
  color: var(--jp-text-muted);
  margin: 0;
}

.jp-purchase-paypal-shell {
  min-height: 44px;
  border: 1px solid var(--jp-border);
  border-radius: 6px;
  padding: 2px;
  background: #fff;
}

.jp-purchase-paypal {
  line-height: 0;
}

/* ===== TRAINING UI ===== */

.jp-training-body {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.jp-training-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.jp-training-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-bottom: 2px solid var(--jp-blue);
  box-shadow: 0 2px 12px rgba(6, 12, 233, 0.08);
}

.jp-training-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--jp-text);
}

.jp-training-brand img {
  height: 42px;
  width: auto;
}

.jp-training-timer {
  color: var(--jp-text-muted);
  font-size: 0.925rem;
  font-weight: 500;
}

.jp-training-timer i {
  color: var(--jp-blue);
}

.jp-training-actions {
  display: flex;
  gap: 0.5rem;
}

.jp-training-alert {
  margin: 1rem 1.25rem 0;
}

.jp-training-board-wrap,
.jp-training-clue-wrap,
.jp-training-result-wrap {
  flex: 1;
  padding: 1.25rem;
}

.jp-training-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.jp-training-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jp-training-category {
  background: var(--jp-blue);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jp-training-cell {
  background: var(--jp-blue-dark);
  color: #ffd54f;
  border: none;
  border-radius: 6px;
  min-height: 56px;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.jp-training-cell:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--jp-blue);
}

.jp-training-cell.is-answered,
.jp-training-cell.is-disabled {
  background: #1a1f36;
  color: rgba(255, 255, 255, 0.35);
  cursor: default;
}

.jp-training-cell.is-correct {
  box-shadow: inset 0 0 0 2px var(--jp-success);
}

.jp-training-cell.is-incorrect {
  box-shadow: inset 0 0 0 2px var(--jp-danger);
}

.jp-training-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--jp-text-muted);
  padding: 2rem 1rem;
}

.jp-training-clue-card,
.jp-training-result-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  box-shadow: var(--jp-shadow);
  padding: 1.5rem;
}

.jp-training-clue-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--jp-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.jp-training-clue-text {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--jp-text);
  margin: 0 0 1.5rem;
}

.jp-training-result-card {
  text-align: center;
}

.jp-training-result-card.is-correct .jp-training-result-icon {
  color: var(--jp-success);
}

.jp-training-result-card.is-incorrect .jp-training-result-icon {
  color: var(--jp-danger);
}

.jp-training-result-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.jp-training-result-card h2 {
  margin: 0 0 0.5rem;
}

.jp-training-result-card p {
  color: var(--jp-text-muted);
}

.jp-training-correct-answer {
  font-weight: 600;
  color: var(--jp-text);
}


/* ===== MIGRATED FROM NORCAL (admin / confirm / coming soon) ===== */
.jp-confirm-banners {
  width: 100%;
  flex-shrink: 0;
}

.jp-confirm-banner {
  background: #f5c518;
  color: #1a1200;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.jp-confirm-banner + .jp-confirm-banner {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.jp-confirm-banner .container {
  max-width: 100%;
}

.jp-confirm-banner p {
  margin: 0;
  padding: 0.85rem 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

.jp-confirm-check-link,
.jp-confirm-resend-link {
  color: #1a1200;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.jp-confirm-check-link:hover,
.jp-confirm-check-link:focus,
.jp-confirm-resend-link:hover,
.jp-confirm-resend-link:focus {
  color: #000;
}

.jp-confirm-resend-link.is-sent {
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .jp-confirm-banner p {
    font-size: 0.875rem;
    padding: 0.75rem 0;
  }
}

/* ===== REPLY BUTTON & COMPOSER ===== */

.jp-btn-reply {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--jp-blue);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}

.jp-btn-reply i {
  font-size: 0.7rem;
}

.jp-btn-reply:hover,
.jp-btn-reply.active {
  color: var(--jp-blue-light);
  background: none;
}

.jp-btn-super {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--jp-success);
  background: none;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}

.jp-btn-super i {
  font-size: 0.7rem;
}

.jp-btn-super:hover {
  color: var(--jp-success);
  background: none;
}

/* ===== PURCHASE PAGE ===== */

.jp-purchase-card .jp-edit-card-header i {
  color: var(--jp-success);
}

/* ===== FORMS ===== */

.jp-form-group {
  margin-bottom: 1rem;
}

.jp-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jp-text-muted);
  margin-bottom: 0.35rem;
}

.jp-form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--jp-bg-elevated);
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  color: var(--jp-text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.jp-form-control:focus {
  outline: none;
  border-color: var(--jp-blue);
  box-shadow: 0 0 0 3px rgba(6, 12, 233, 0.2);
}

.jp-form-control::placeholder {
  color: var(--jp-text-dim);
}

textarea.jp-form-control {
  resize: vertical;
  min-height: 80px;
}

.jp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.jp-btn-primary {
  background: var(--jp-gradient);
  color: #fff;
}

.jp-btn-primary:hover {
  background: var(--jp-blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 12, 233, 0.2);
}

.jp-btn-success {
  background: #198754;
  color: #fff;
}

.jp-btn-outline {
  background: transparent;
  border: 1px solid var(--jp-border);
  color: var(--jp-text);
}

.jp-btn-outline:hover {
  border-color: var(--jp-blue);
  color: var(--jp-blue);
}

.jp-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* ===== PROFILE EDIT ===== */

.jp-edit-card {
  background: var(--jp-bg-card);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.jp-edit-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--jp-header-gradient);
  border-bottom: none;
  box-shadow: 0 3px 12px rgba(242, 101, 34, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.jp-edit-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}

.jp-edit-card-header > * {
  position: relative;
  z-index: 1;
}

.jp-edit-card-header i {
  color: #fff;
  font-size: 1.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.jp-edit-card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.jp-edit-card-body {
  padding: 1.25rem;
}

.jp-form-hint {
  font-size: 0.8rem;
  color: var(--jp-text-dim);
  margin: 0.35rem 0 0;
}

.jp-form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--jp-border);
}

.jp-form-check:last-child {
  border-bottom: none;
}

.jp-login-stay {
  padding: 0.15rem 0 0.85rem;
  border-bottom: none;
}

.jp-form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--jp-blue);
}

.jp-form-check-label {
  flex: 1;
  color: var(--jp-text);
  font-size: 0.9rem;
}

.jp-form-check-desc {
  font-size: 0.8rem;
  color: var(--jp-text-dim);
  display: block;
}

/* ===== ADMIN ===== */

.jp-admin-site .jp-logo img {
  height: 72px;
  margin-bottom: 0;
}

.jp-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: 1px solid var(--jp-border);
}

.jp-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--jp-text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.jp-admin-tab:hover {
  color: var(--jp-text);
  background: rgba(242, 101, 34, 0.06);
}

.jp-admin-tab.active {
  color: var(--jp-blue);
  border-bottom-color: var(--jp-blue);
  background: rgba(242, 101, 34, 0.1);
}

.jp-admin-tab i {
  font-size: 1.1rem;
}

.jp-admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.15rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--jp-bg);
}

.jp-admin-tab.active .jp-admin-tab-badge {
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.1);
}

.jp-admin-panel {
  display: none;
}

.jp-admin-panel.active {
  display: block;
}

.jp-admin-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--jp-text-muted);
}

.jp-admin-window-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(242, 101, 34, 0.08);
  border: 1px solid rgba(242, 101, 34, 0.25);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--jp-text-muted);
}

.jp-admin-table-wrap {
  overflow-x: auto;
}

.jp-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.jp-admin-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--jp-bg-elevated);
  color: var(--jp-text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--jp-border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.jp-admin-table thead th.jp-admin-th-photo,
.jp-admin-table thead th:not([data-sort]) {
  cursor: default;
}

.jp-admin-table thead th[data-sort]:hover {
  color: var(--jp-blue);
}

.jp-admin-table thead th.sorted-asc::after,
.jp-admin-table thead th.sorted-desc::after {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  color: var(--jp-blue);
}

.jp-admin-table thead th.sorted-asc::after {
  content: "▲";
}

.jp-admin-table thead th.sorted-desc::after {
  content: "▼";
}

.jp-admin-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--jp-border);
  color: var(--jp-text);
  vertical-align: middle;
}

.jp-admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.jp-admin-blur {
  filter: blur(5px);
  cursor: pointer;
  user-select: none;
  transition: filter 0.15s ease;
}

.jp-admin-blur:focus-visible {
  outline: 2px solid var(--jp-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.jp-admin-blur.revealed {
  filter: none;
  user-select: text;
}

.jp-admin-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
}

.jp-admin-table tbody td[data-label="Mobile"] {
  white-space: nowrap;
}

.jp-admin-login-as {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  color: var(--jp-muted, #6c757d);
  text-decoration: none;
  vertical-align: middle;
  line-height: 1;
}

.jp-admin-login-as:hover,
.jp-admin-login-as:focus-visible {
  color: var(--jp-primary, #0d6efd);
}

.jp-admin-login-as i {
  font-size: 1.05rem;
}

.jp-admin-confirmed {
  color: #1f9d55;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.jp-admin-avatar-cell {
  width: 52px;
}

.jp-admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jp-border);
}

.jp-admin-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.jp-admin-status-active,
.jp-admin-status-admin {
  background: rgba(76, 175, 80, 0.15);
  color: #6dd68a;
}

.jp-admin-status-inactive,
.jp-admin-status-disabled,
.jp-admin-status-paused,
.jp-admin-status-delete {
  background: rgba(154, 154, 154, 0.15);
  color: var(--jp-text-muted);
}

.jp-admin-status-pending,
.jp-admin-status-new {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
}

.jp-admin-status-fraud,
.jp-admin-status-suspended {
  background: rgba(239, 83, 80, 0.15);
  color: #ef9a9a;
}

.jp-admin-membership-free {
  background: rgba(154, 154, 154, 0.15);
  color: var(--jp-text-muted);
}

.jp-admin-membership-bleachers,
.jp-admin-membership-standard {
  background: rgba(100, 149, 237, 0.15);
  color: #7eb6ff;
}

.jp-admin-membership-dugout {
  background: rgba(242, 101, 34, 0.15);
  color: var(--jp-blue-light);
}

.jp-admin-membership-clubhouse,
.jp-admin-membership-premium {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd54f;
}

.jp-admin-comment-cell {
  max-width: 320px;
  line-height: 1.45;
  color: var(--jp-text-muted);
}

.jp-admin-type {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: capitalize;
}

.jp-admin-type-message {
  background: rgba(100, 149, 237, 0.15);
  color: #90caf9;
}

.jp-admin-type-voice {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
}

.jp-admin-type-text {
  background: rgba(242, 101, 34, 0.15);
  color: var(--jp-blue);
}

.jp-admin-super-chat {
  color: #ffd54f;
  font-size: 1.1rem;
}

.jp-admin-super-chat--empty,
.jp-admin-muted {
  color: var(--jp-text-dim);
}

.jp-admin-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  word-break: break-all;
}

.jp-admin-tx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.jp-admin-tx-filter label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--jp-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.jp-admin-tx-filter .jp-form-control {
  min-width: 10.5rem;
}

.jp-admin-tx-filter-actions {
  padding-bottom: 0.1rem;
}

.jp-admin-tx-approved {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

.jp-admin-tx-pending {
  background: rgba(255, 193, 7, 0.18);
  color: #b28704;
}

.jp-admin-tx-declined,
.jp-admin-tx-error,
.jp-admin-tx-refunded,
.jp-admin-tx-partially_refunded {
  background: rgba(239, 83, 80, 0.12);
  color: #c62828;
}

.jp-admin-play-btn.playing {
  border-color: var(--jp-blue);
  color: var(--jp-blue);
}

.jp-admin-deny-btn:hover {
  border-color: #ef5350;
  color: #ef9a9a;
}

.jp-admin-empty {
  padding: 2rem;
  text-align: center;
  color: var(--jp-text-dim);
}

.jp-admin-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.jp-admin-photo-card {
  background: var(--jp-bg-elevated);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  overflow: hidden;
}

.jp-admin-photo-thumb-wrap {
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}

.jp-admin-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jp-admin-photo-meta {
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.jp-admin-photo-meta strong {
  font-size: 0.95rem;
  color: var(--jp-text);
}

.jp-admin-photo-meta span {
  font-size: 0.8rem;
  color: var(--jp-text-dim);
}

.jp-admin-photo-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.jp-admin-photo-actions .jp-btn {
  flex: 1;
  justify-content: center;
}

.jp-admin-template-editor {
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  min-height: 420px;
  resize: vertical;
}

.jp-admin-template-status {
  font-size: 0.85rem;
  color: var(--jp-text-muted);
}

.jp-admin-template-status.success {
  color: #6dd68a;
}

.jp-admin-template-preview-wrap {
  margin-top: 0.5rem;
}

.jp-admin-template-preview-wrap.hidden {
  display: none;
}

.jp-admin-template-preview {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 768px) {
  .jp-admin-tabs {
    gap: 0.25rem;
  }

  .jp-admin-tab {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }

  .jp-admin-table thead {
    display: none;
  }

  .jp-admin-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--jp-bg-elevated);
    border: 1px solid var(--jp-border);
    border-radius: 8px;
  }

  .jp-admin-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border: none;
  }

  .jp-admin-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--jp-text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    flex-shrink: 0;
  }

  .jp-admin-avatar-cell {
    justify-content: center;
  }

  .jp-admin-avatar-cell::before {
    display: none;
  }

  .jp-admin-comment-cell {
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .jp-logo {
    margin-bottom: -1.75rem;
  }

  .jp-logo img {
    height: 90px;
  }

  .jp-page-title {
    font-size: 1.4rem;
  }

  .jp-reply.jp-nested {
    margin-left: 1rem;
  }
}

/* ===== COMING SOON ===== */










.jp-coming-soon-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jp-bg);
  color: var(--jp-text);
  font-family: 'Outfit', sans-serif;
}
.jp-coming-soon {
  text-align: center;
  padding: 2rem;
}
.jp-coming-soon-logo {
  max-width: 320px;
  width: 80%;
  height: auto;
  margin-bottom: 1.5rem;
}
.jp-coming-soon-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--jp-blue);
  margin: 0;
}
.jp-has-confirm-banner .jp-header {
  top: auto;
}

/* ===== JEOPARDRILL DRILL TRAINING ===== */

@font-face {
  font-family: 'Korinna-Regular';
  src: url('/fonts/Korinna-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.jp-drill-body {
  font-family: 'Korinna-Regular', serif;
  color: #fff;
  text-shadow: 0.35vw 0.35vw #000;
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: uppercase;
  text-align: center;
  background-color: #03118e;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.jp-drill-body *:not(.ti) {
  font-family: inherit;
}

.jp-drill-body .jp-auth-modals,
.jp-drill-body .jp-auth-modals *:not(.ti),
.jp-drill-body .modal,
.jp-drill-body .modal *:not(.ti) {
  font-family: 'Outfit', sans-serif !important;
  text-transform: none;
  text-shadow: none;
  letter-spacing: normal;
  text-align: left;
}

.jp-drill-body .jp-auth-modals .ti,
.jp-drill-body .modal .ti {
  font-family: tabler-icons !important;
  text-transform: none;
  text-shadow: none;
  letter-spacing: normal;
}

.jp-drill-body .jp-auth-modals .modal-title,
.jp-drill-body .modal .modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.jp-drill-body .jp-auth-modals .jp-form-label,
.jp-drill-body .modal .jp-form-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.jp-drill-body .jp-auth-modals .jp-form-control,
.jp-drill-body .modal .jp-form-control,
.jp-drill-body .jp-auth-modals .jp-btn,
.jp-drill-body .modal .jp-btn,
.jp-drill-body .jp-auth-modals .jp-auth-intro,
.jp-drill-body .modal .jp-auth-intro,
.jp-drill-body .jp-auth-modals .jp-auth-switch-prompt,
.jp-drill-body .modal .jp-auth-switch-prompt {
  font-size: 1rem;
}

.jp-drill-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  z-index: 20;
  font-size: 0.95rem;
  text-transform: none;
  text-shadow: none;
  color: rgba(255, 255, 255, 0.9);
}

.jp-drill-top-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.jp-drill-home {
  color: #fff;
  font-size: 1.35rem;
  text-decoration: none;
  line-height: 1;
}

.jp-drill-home:hover {
  color: var(--jp-blue-light);
}

.jp-drill-mode-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.jp-drill-modes {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.jp-drill-voice-guest-tip {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  z-index: 30;
  width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 213, 74, 0.75);
  color: #1a237e;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.jp-drill-voice-guest-tip::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  bottom: 100%;
  border: 7px solid transparent;
  border-bottom-color: rgba(255, 213, 74, 0.75);
}

.jp-drill-voice-guest-tip.hidden {
  display: none;
}

.jp-drill-voice-guest-tip-link {
  color: #060ce9;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 700;
}

.jp-drill-voice-guest-tip-link:hover {
  color: #0408b0;
}

.jp-drill-modes:hover,
.jp-drill-modes:focus-within {
  opacity: 0.85;
}

.jp-drill-mode-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  text-shadow: none;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  line-height: 1;
}

.jp-drill-mode-btn .ti {
  font-size: 0.95rem;
}

.jp-drill-mode-btn:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.jp-drill-mode-btn.is-active {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
}

.jp-drill-mode-btn:disabled,
.jp-drill-mode-btn.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.4);
}

.jp-drill-mode-label {
  font-size: 0.72rem;
}

@media (max-width: 560px) {
  .jp-drill-mode-label {
    display: none;
  }
}

.jp-drill-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.jp-drill-timer.is-exhausted {
  background: rgba(198, 40, 40, 0.45);
}

.jp-drill-timer-suffix {
  opacity: 0.85;
  font-weight: 500;
}

.jp-drill-section {
  width: min(1100px, 92vw);
  margin: 4rem auto 2rem;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.jp-drill-section.is-stage-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .jp-drill-section {
    transition: none;
  }
}

.jp-drill-category,
.jp-drill-clue {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.jp-drill-spacer {
  height: 4rem;
}

.jp-drill-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.jp-drill-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1;
  padding: 0.85em 1.1em;
  position: relative;
  transition: filter 0.2s ease;
}

.jp-drill-btn:hover {
  filter: brightness(1.1);
}

.jp-drill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.jp-drill-btn > span {
  display: block;
  position: relative;
  z-index: 1;
}

.jp-drill-btn > svg {
  fill: #0ca4de;
  position: absolute;
  top: -3%;
  left: -2%;
  width: 104%;
  height: 106%;
}

.jp-drill-alert {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: rgba(211, 47, 47, 0.95);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-transform: none;
  text-shadow: none;
  z-index: 30;
}

.jp-drill-limit-stack {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(42rem, 94vw);
  max-width: 94vw;
}

.jp-drill-limit-stack.hidden {
  display: none;
}

.jp-drill-limit-panel {
  background: rgba(6, 12, 233, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
  text-shadow: none;
}

.jp-drill-limit-panel.hidden {
  display: none;
}

.jp-drill-limit-panel #jpDrillLimitText {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.jp-drill-limit-link {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: underline;
  text-transform: none;
}

.jp-drill-limit-link:hover {
  color: #dce4ff;
}

.jp-drill-body.is-limit-reached .jp-drill-answer-panel,
.jp-drill-body.is-limit-reached .jp-drill-buttons,
.jp-drill-body.is-limit-reached .jp-drill-category,
.jp-drill-body.is-limit-reached .jp-drill-clue,
.jp-drill-body.is-limit-reached .jp-drill-spacer {
  display: none !important;
}

.jp-drill-body.is-limit-reached.is-guest-limit .jp-drill-section {
  display: none !important;
}

.jp-drill-answer-panel {
  margin-top: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-transform: none;
  text-shadow: none;
  letter-spacing: 0;
}

.jp-drill-listen-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  letter-spacing: 0.04em;
}

.jp-drill-listen-status.is-active::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff5252;
  box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
  animation: jp-drill-pulse 1.2s ease-out infinite;
}

.jp-drill-listen-status.is-practice {
  color: #ffe082;
}

@keyframes jp-drill-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.jp-drill-typed-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
  font-family: 'Outfit', sans-serif;
  text-transform: none;
  text-shadow: none;
  font-size: 1rem;
}

.jp-drill-typed-label {
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.95;
  text-align: center;
}

.jp-drill-typed-input {
  flex: 1 1 160px;
  min-width: 0;
  width: 100%;
  max-width: 220px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #03118e;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  text-transform: none;
  text-shadow: none;
  padding: 0.65rem 0.85rem;
}

.jp-drill-typed-submit {
  appearance: none;
  border: 2px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}

.jp-drill-typed-submit:hover {
  background: rgba(255, 255, 255, 0.12);
}

.jp-drill-grade-result {
  margin-top: 1rem;
  line-height: 1.45;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: none;
  text-shadow: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.95);
}

.jp-drill-grade-said,
.jp-drill-grade-correct {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.jp-drill-grade-said strong,
.jp-drill-grade-correct strong {
  font-weight: 800;
  color: #fff;
}

.jp-drill-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
}

.jp-drill-result-badge.is-correct {
  background: rgba(46, 125, 50, 0.95);
  color: #e8f5e9;
  box-shadow: 0 0 0 1px rgba(165, 214, 167, 0.45);
}

.jp-drill-result-badge.is-incorrect {
  background: rgba(198, 40, 40, 0.95);
  color: #ffebee;
  box-shadow: 0 0 0 1px rgba(239, 154, 154, 0.45);
}

.jp-drill-clue.is-revealed {
  text-shadow: none;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.jp-drill-clue-answer-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd54a;
}

.jp-drill-clue-answer-text {
  display: block;
  font-weight: 800;
}

.jp-drill-audio-player {
  display: none;
}

.jp-drill-correction-btn {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 213, 74, 0.4);
  border-radius: 999px;
  background: rgba(8, 18, 78, 0.72);
  color: #ffd54a;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0.55;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.2s ease, transform 0.15s ease;
}

.jp-drill-correction-btn.hidden {
  display: none;
}

.jp-drill-correction-btn .ti {
  font-size: 1.15rem;
  line-height: 1;
}

.jp-drill-correction-btn .jp-drill-correction-label.hidden {
  display: none;
}

.jp-drill-correction-btn:hover:not(:disabled) {
  background: rgba(20, 36, 110, 0.88);
  color: #ffe082;
  opacity: 0.85;
  transform: translateY(-1px);
}

.jp-drill-correction-btn:disabled,
.jp-drill-correction-btn.is-saving {
  opacity: 0.45;
  cursor: wait;
}

.jp-drill-correction-btn.is-done {
  border-color: rgba(165, 214, 167, 0.75);
  color: #c8e6c9;
  background: rgba(27, 68, 42, 0.88);
  opacity: 0.9;
  gap: 0;
  padding: 0.65rem 0.75rem;
}

@media (max-width: 600px) {
  .jp-drill-body {
    font-size: 5vw;
  }

  .jp-drill-spacer {
    height: 2.5rem;
  }

  .jp-drill-correction-btn {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
  }

  .jp-drill-correction-btn.is-done {
    padding: 0.55rem 0.65rem;
  }
}

/* ===== LANDING PAGE ===== */

.jp-landing {
  background: #060a3a;
}

.jp-landing .jp-header-landing {
  background: rgba(3, 6, 80, 0.72);
  border-bottom: 1px solid rgba(197, 208, 255, 0.25);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.jp-landing .jp-logo {
  margin-bottom: 0;
}

.jp-landing .jp-logo img {
  height: 64px;
}

.jp-nav-link-light {
  color: rgba(255, 255, 255, 0.88) !important;
}

.jp-nav-link-light:hover,
.jp-nav-link-light.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.jp-btn-start-light {
  background: #fff;
  color: #060ce9 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.jp-btn-start-light:hover {
  color: #0408b0 !important;
  background: #f0f3ff;
}

.jp-landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Hero stage ---- */

.jp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background: #060a3a;
}

.jp-hero-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 45%, rgba(61, 107, 255, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 15% 70%, rgba(6, 12, 233, 0.55) 0%, transparent 55%),
    linear-gradient(165deg, #02045a 0%, #060ce9 48%, #0a1470 100%);
  z-index: 0;
}

.jp-hero-stage-glow {
  position: absolute;
  inset: 10% 5% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(255, 213, 74, 0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: jp-glow-pulse 5s ease-in-out infinite;
}

.jp-hero-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.jp-hero-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 0;
  pointer-events: none;
}

.jp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}

.jp-hero-copy {
  position: relative;
  z-index: 2;
}

.jp-hero-brand {
  display: block;
  height: 88px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.jp-landing .jp-hero .jp-hero-title,
.jp-landing .jp-hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  opacity: 1 !important;
}

.jp-landing .jp-hero .jp-hero-lede,
.jp-landing .jp-hero p.jp-hero-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: #dce4ff !important;
  max-width: 34rem;
  margin: 0 0 1.75rem;
  opacity: 1 !important;
}

.jp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.jp-btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.jp-landing .jp-hero .jp-btn-primary,
.jp-landing .jp-btn-on-blue {
  background: linear-gradient(180deg, #ffe27a 0%, #ffd54a 45%, #e6b800 100%) !important;
  color: #1a1400 !important;
  border: none !important;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.jp-landing .jp-hero .jp-btn-primary:hover,
.jp-landing .jp-btn-on-blue:hover {
  filter: brightness(1.05);
  color: #1a1400 !important;
}

.jp-landing .jp-btn-outline-light {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  color: #ffffff !important;
}

.jp-landing .jp-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.jp-btn-teal,
.jp-landing .jp-btn-teal {
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 45%, #0d9488 100%) !important;
  border: none !important;
  color: #042f2e !important;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.jp-btn-teal:hover,
.jp-landing .jp-btn-teal:hover {
  filter: brightness(1.06);
  color: #042f2e !important;
}

.jp-landing .jp-hero-board {
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.jp-hero-board::before {
  content: '';
  position: absolute;
  inset: 8% -6% -10%;
  background: radial-gradient(ellipse at center, rgba(255, 213, 74, 0.22) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.jp-board {
  background: linear-gradient(165deg, #02045a 0%, #060ce9 50%, #1428d4 100%);
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow:
    0 0 0 1px rgba(255, 213, 74, 0.25),
    0 28px 60px rgba(0, 0, 0, 0.45);
  transform: perspective(1000px) rotateY(-7deg) rotateX(4deg);
  transform-origin: center;
}

.jp-board-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.jp-board-cats span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.3rem 0.15rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
}

.jp-board-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}

.jp-board-grid button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffd54a;
  font-family: inherit;
  font-size: clamp(0.65rem, 1.2vw, 0.9rem);
  font-weight: 800;
  min-height: 42px;
  cursor: default;
  transition: background 0.25s ease, transform 0.25s ease;
}

.jp-board-grid button.jp-cell-lit {
  background: rgba(255, 213, 74, 0.22);
  border-color: rgba(255, 213, 74, 0.55);
  box-shadow: inset 0 0 12px rgba(255, 213, 74, 0.25);
  animation: jp-cell-pulse 2.8s ease-in-out infinite;
}

@keyframes jp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes jp-cell-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes jp-cell-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

@keyframes jp-glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ---- Shared section bits ---- */

.jp-landing-section {
  position: relative;
  padding: 3.5rem 0;
}

.jp-landing-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.jp-landing-split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.jp-landing-split-reverse .jp-landing-copy { order: 2; }
.jp-landing-split-reverse .jp-session-mock { order: 1; }

.jp-section-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jp-blue);
}

.jp-section-eyebrow-light { color: #ffd54a; }

.jp-section-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--jp-text);
}

.jp-section-title-light { color: #fff; }

.jp-section-text {
  margin: 0 0 1.35rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--jp-text-muted);
}

.jp-section-text-narrow {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.jp-section-text-light { color: rgba(220, 228, 255, 0.88); }

.jp-landing-center {
  text-align: center;
  margin-bottom: 2rem;
}

/* ---- Train / clue screen ---- */

.jp-section-train {
  background:
    radial-gradient(ellipse 70% 80% at 100% 30%, rgba(6, 12, 233, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #e8ecff 0%, #f7f8ff 45%, #ffffff 100%);
}

.jp-section-train .jp-landing-split {
  gap: 2rem;
}

.jp-train-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.jp-train-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border: 1px solid #c9d2f0;
  border-radius: 8px;
  color: #060ce9;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(6, 12, 233, 0.08);
}

.jp-train-pills i {
  font-size: 1.05rem;
}

.jp-clue-screen {
  background: linear-gradient(160deg, #03068a 0%, #060ce9 60%, #1a2fd4 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 1.35rem 1.5rem 1.5rem;
  color: #fff;
  box-shadow: 0 20px 44px rgba(6, 12, 233, 0.28);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.jp-clue-screen-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd54a;
}

.jp-clue-screen-text {
  flex: 1;
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jp-clue-screen-answer {
  margin-top: 1.25rem;
  text-align: center;
}

.jp-clue-screen-answer span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 213, 74, 0.18);
  border: 1px solid rgba(255, 213, 74, 0.45);
  border-radius: 8px;
  color: #ffd54a;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---- Categories board ---- */

.jp-section-cats {
  background: linear-gradient(165deg, #02045a 0%, #060ce9 55%, #0c1a9a 100%);
  overflow: hidden;
}

.jp-cats-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
  pointer-events: none;
}

.jp-cat-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.jp-cat-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 148px;
  padding: 1.2rem 1.15rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.22) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.jp-cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 74, 0.55);
}

.jp-cat-tile-hot {
  background: linear-gradient(160deg, rgba(255, 213, 74, 0.22) 0%, rgba(6, 12, 233, 0.35) 100%);
  border-color: rgba(255, 213, 74, 0.45);
}

.jp-cat-tile-label {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.jp-cat-tile-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffd54a;
}

/* ---- Knowledge / session mock ---- */

.jp-section-knowledge {
  background:
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(6, 12, 233, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef1ff 100%);
}

.jp-session-mock {
  background: #fff;
  border: 1px solid #c9d2f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(6, 12, 233, 0.14);
}

.jp-session-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: var(--jp-header-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.jp-session-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 213, 74, 0.2);
  color: #ffd54a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jp-session-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd54a;
  box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.6);
  animation: jp-live-dot 1.6s ease-out infinite;
}

@keyframes jp-live-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 213, 74, 0); }
}

.jp-session-mock-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.25rem;
}

.jp-knowledge-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#060ce9 0 82%, #dbe1f5 82% 100%);
  animation: jp-ring-in 1s ease-out both;
}

.jp-knowledge-ring span {
  font-size: 1.75rem;
  font-weight: 800;
  color: #060ce9;
  line-height: 1;
}

.jp-knowledge-ring small {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes jp-ring-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.jp-session-bars {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.jp-session-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.jp-session-bar i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #0408b0, #3d6bff);
}

.jp-session-bar:nth-child(1) i { width: 88%; }
.jp-session-bar:nth-child(2) i { width: 72%; }
.jp-session-bar:nth-child(3) i { width: 64%; }
.jp-session-bar:nth-child(4) i { width: 91%; }

.jp-session-bar span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jp-text-muted);
  min-width: 3.5rem;
}

.jp-knowledge-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #e2e7f5;
  text-align: center;
  background: #f7f8ff;
}

.jp-knowledge-stats strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #12172b;
}

.jp-knowledge-stats span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--jp-text-muted);
}

/* ---- Path ---- */

.jp-path {
  padding: 3.25rem 0;
  background: #12172b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jp-path-heading {
  color: #fff;
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.jp-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.jp-path-step {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, rgba(6, 12, 233, 0.35) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(197, 208, 255, 0.22);
  border-radius: 12px;
  color: #fff;
}

.jp-path-num {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffd54a;
}

.jp-path-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.jp-path-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(220, 228, 255, 0.8);
}

/* ---- Final CTA ---- */

.jp-landing-cta {
  position: relative;
  padding: 4.5rem 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #060ce9;
}

.jp-landing-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(255, 213, 74, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 45% 70% at 85% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    var(--jp-header-gradient);
  pointer-events: none;
}

.jp-landing-cta .container {
  position: relative;
  z-index: 1;
}

.jp-landing-cta-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.jp-landing-cta-text {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

.jp-landing-cta .jp-hero-cta {
  justify-content: center;
}

.jp-landing .jp-footer {
  background: #02045a;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {
  .jp-logo {
    margin-bottom: 0;
  }

  .jp-logo img {
    height: 64px;
  }

  .jp-header .navbar {
    padding: 0.5rem 0;
  }

  .jp-landing .jp-header-landing .navbar-collapse {
    background: rgba(3, 6, 80, 0.96);
    border-radius: 12px;
    padding: 0.75rem 1rem 1rem;
    margin-top: 0.5rem;
  }

  .jp-hero {
    min-height: auto;
    padding: 2.25rem 0 3rem;
  }

  .jp-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .jp-hero-brand {
    height: 76px;
  }

  .jp-board {
    transform: none;
    max-width: 560px;
    margin: 0 auto;
  }

  .jp-landing-split,
  .jp-landing-split-reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .jp-landing-split-reverse .jp-landing-copy,
  .jp-landing-split-reverse .jp-session-mock {
    order: initial;
  }

  .jp-landing-nav-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .jp-cat-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .jp-path-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .jp-stat-grid {
    grid-template-columns: 1fr;
  }

  .jp-notify-header,
  .jp-notify-row {
    grid-template-columns: 1fr 48px 48px;
  }

  .jp-membership-card-header {
    padding: 1.5rem 1.25rem 1rem;
  }

  .jp-page-title {
    font-size: 1.45rem;
  }

  .jp-landing-section {
    padding: 3.25rem 0;
  }

  .jp-board-cats span {
    font-size: 0.5rem;
    min-height: 32px;
  }

  .jp-board-grid button {
    min-height: 36px;
    font-size: 0.65rem;
  }

  .jp-session-mock-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .jp-knowledge-stats {
    grid-template-columns: 1fr;
  }

  .jp-hero-cta {
    flex-direction: column;
  }

  .jp-hero-cta .jp-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .jp-hero-brand {
    height: 64px;
  }

  .jp-board {
    padding: 0.5rem;
  }

  .jp-board-cats,
  .jp-board-grid {
    gap: 0.25rem;
  }

  .jp-cat-board {
    grid-template-columns: 1fr;
  }
}


/* Friend invitations (training limit panel) */
.jp-drill-limit-invite {
  text-align: left;
}

.jp-invite-lead {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-align: center;
}

.jp-invite-hint {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.jp-invite-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
}

.jp-invite-field {
  min-width: 0;
}

.jp-invite-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.jp-invite-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a1f36;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}

.jp-drill-limit-panel .jp-invite-btn,
#jpInviteBtn {
  white-space: nowrap;
  min-height: 2.55rem;
  background: linear-gradient(180deg, #ffe27a 0%, #ffd54a 45%, #e6b800 100%) !important;
  color: #1a1400 !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.jp-drill-limit-panel .jp-invite-btn:hover,
.jp-drill-limit-panel .jp-invite-btn:focus-visible,
#jpInviteBtn:hover,
#jpInviteBtn:focus-visible {
  background: linear-gradient(180deg, #ffeb99 0%, #ffe066 45%, #f0c800 100%) !important;
  color: #1a1400 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.jp-invite-error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffe08a;
  text-align: center;
}

.jp-invite-advisor-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

#jpInviteAdvisorModal .jp-invite-advisor-dialog {
  max-width: min(42rem, 94vw);
  width: calc(100% - 1.5rem);
  margin: 0 auto;
}

#jpInviteAdvisorModal .modal-content {
  width: 100%;
}

#jpInviteAdvisorModal .modal-body {
  color: #1a1f36;
  background: #fff;
  padding: 1.35rem 1.5rem;
}

#jpInviteAdvisorModal .jp-invite-advisor-text {
  color: #1a1f36;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

#jpInviteAdvisorModal .modal-footer.jp-invite-advisor-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: #f7f8fc;
  border-top: 1px solid #d8dee9;
  padding: 1rem 1.25rem 1.15rem;
}

#jpInviteAdvisorModal .jp-invite-advisor-actions .jp-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  padding: 0.7rem 0.85rem;
}

#jpInviteConfirmInterested.jp-invite-confirm-btn,
#jpInviteSendBtn.jp-invite-send-btn {
  background: linear-gradient(180deg, #ffe27a 0%, #ffd54a 45%, #e6b800 100%) !important;
  color: #1a1400 !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  gap: 0.35rem;
}

#jpInviteConfirmInterested.jp-invite-confirm-btn {
  gap: 0;
}

#jpInviteConfirmInterested.jp-invite-confirm-btn:hover,
#jpInviteConfirmInterested.jp-invite-confirm-btn:focus-visible,
#jpInviteSendBtn.jp-invite-send-btn:hover,
#jpInviteSendBtn.jp-invite-send-btn:focus-visible {
  background: linear-gradient(180deg, #ffeb99 0%, #ffe066 45%, #f0c800 100%) !important;
  color: #1a1400 !important;
}

#jpInviteTrySomeoneElse.jp-invite-cancel-btn {
  background: #fff;
  color: #1a1f36;
  border: 1px solid #c5cedb;
}

#jpInviteTrySomeoneElse.jp-invite-cancel-btn:hover,
#jpInviteTrySomeoneElse.jp-invite-cancel-btn:focus-visible {
  background: #eef1f8;
  color: #1a1f36;
  border-color: #aeb9cb;
}

.jp-invite-advisor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.jp-invite-preview-subject {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--jp-border, #d8dee9);
  font-size: 0.95rem;
}

.jp-invite-preview-letter {
  background: #f7f8fc;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  color: #1a1f36;
  font-size: 1rem;
  line-height: 1.55;
}

.jp-invite-preview-letter p {
  margin: 0 0 0.75rem;
}

.jp-invite-preview-cta {
  margin: 1rem 0 1.15rem;
}

@media (max-width: 760px) {
  .jp-invite-form {
    grid-template-columns: 1fr;
  }

  .jp-invite-btn {
    width: 100%;
  }

  #jpInviteAdvisorModal .modal-footer.jp-invite-advisor-actions {
    flex-direction: column;
  }

  #jpInviteAdvisorModal .jp-invite-advisor-actions .jp-btn {
    width: 100%;
  }
}
