/*
 * AWP Parent Portal — styles
 * Base: Inter, white cards on #f4f3f1, rust #b84b27 accent, 6px radius.
 */

/* ─── Reset / base ─────────────────────────────────────────────── */
.awp-portal *,
.awp-page-header *,
.awp-page-content *,
.awp-page-footer * { box-sizing: border-box; }

.awp-portal {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #3d2b1f;
}

/* ─── Page chrome ───────────────────────────────────────────────── */
html { background: #f4f3f1 !important; }
html.awp-portal-page-html,
body.awp-portal-page {
  margin: 0; padding: 0;
  background: #f4f3f1 !important;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.awp-page-header {
  background: #8f3820;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.awp-page-header-inner {
  max-width: 820px; margin: 0 auto;
  padding: 0 24px; height: 58px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.awp-page-header-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; flex-shrink: 0;
}
.awp-page-header-logo-wrap {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,.12);
}
.awp-page-header-logo-img {
  width: 36px !important; height: 36px !important;
  object-fit: cover; display: block !important;
}
.awp-page-header-text { display: flex; flex-direction: column; line-height: 1.25; }
.awp-page-header-name { font-size: 14px; font-weight: 700; }
.awp-page-header-sub  { font-size: 11px; opacity: .65; }
.awp-page-header-badge {
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 4px 12px;
  white-space: nowrap; flex-shrink: 0;
}
.awp-page-content {
  max-width: 820px; margin: 0 auto;
  padding: 32px 24px 64px;
}
.awp-page-footer {
  text-align: center; padding: 20px;
  font-size: 13px; color: #9a8378;
  border-top: 1px solid #e2d9d1;
  background: #fff;
}
.awp-page-footer a { color: #9a8378; }

/* ─── Notices ───────────────────────────────────────────────────── */
.awp-notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 3px solid;
}
.awp-notice-success { background: #edf7ed; border-color: #3a9c3a; color: #1e4d1e; }
.awp-notice-error   { background: #fdf0f0; border-color: #c0392b; color: #6b1616; }
.awp-notice-info    { background: #fdf3ef; border-color: #b84b27; color: #5a2510; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.awp-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  text-align: center;
  transition: background .12s, border-color .12s, color .12s;
  line-height: 1.4;
  white-space: nowrap;
}
.awp-btn:active { opacity: .88; }
.awp-btn:disabled { opacity: .45; cursor: not-allowed; }
.awp-btn-full  { display: block; width: 100%; }
.awp-btn-lg    { padding: 13px 24px; font-size: 16px; }
.awp-btn-sm    { padding: 7px 14px;  font-size: 13px; border-radius: 5px; }
.awp-btn-xs    { padding: 4px 10px;  font-size: 12px; border-radius: 4px; }

/* Primary — the one action worth doing */
.awp-btn-primary {
  background: #b84b27;
  color: #fff;
  border-color: #b84b27;
}
.awp-btn-primary:hover { background: #9a3d1f; border-color: #9a3d1f; color: #fff; }

/* Secondary — outlined, subdued */
.awp-btn-secondary {
  background: #fff;
  color: #b84b27;
  border-color: #d0bbb4;
}
.awp-btn-secondary:hover { border-color: #b84b27; background: #fdf3ef; }

/* Danger */
.awp-btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.awp-btn-danger:hover { background: #a02d21; }

/* ─── Dashboard header ──────────────────────────────────────────── */
.awp-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2d9d1;
}
.awp-header h2 { margin: 0; font-size: 20px; font-weight: 700; color: #1e1612; }
.awp-header .awp-nav a {
  margin-left: 16px; font-size: 14px;
  color: #b84b27; text-decoration: none; font-weight: 500;
}
.awp-header .awp-nav a:hover { text-decoration: underline; }

/* ─── Sections ──────────────────────────────────────────────────── */
.awp-section { margin-bottom: 36px; }
.awp-section-title {
  font-size: 13px; font-weight: 600;
  color: #8a7870;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2d9d1;
}

/* ─── Cards (generic) ───────────────────────────────────────────── */
.awp-card {
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 16px;
}
.awp-card h3 {
  margin: 0 0 16px;
  font-size: 16px; font-weight: 700; color: #1e1612;
}

/* ─── Season blocks (dashboard) ─────────────────────────────────── */
.awp-season-block {
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.awp-season-block-header { flex: 1; }
.awp-season-block-header h4 {
  margin: 0 0 4px;
  font-size: 16px; font-weight: 700; color: #1e1612;
}
.awp-season-block-header .badge {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: #8a7870;
  background: #f4f3f1;
  border: 1px solid #e2d9d1;
  border-radius: 4px;
  padding: 2px 8px;
}
.awp-season-block-body { flex-shrink: 0; }

/* ─── Athlete grid ───────────────────────────────────────────────── */
.awp-athletes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.awp-athlete-card {
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 8px;
  padding: 20px;
  display: flex; flex-direction: column;
}
.awp-athlete-card .name {
  font-size: 16px; font-weight: 700; color: #1e1612;
  margin-bottom: 10px;
}
.awp-athlete-card .meta {
  font-size: 13px; color: #8a7870;
  line-height: 1.7; margin-bottom: 16px; flex: 1;
}
.awp-athlete-card .actions { margin-top: auto; }

/* ─── Status badges ──────────────────────────────────────────────── */
.awp-status {
  display: inline-block;
  padding: 3px 9px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}
.awp-status-paid        { background: #edf7ed; color: #1e6b1e; }
.awp-status-processing  { background: #fff8e6; color: #7a5c00; }
.awp-status-installment { background: #e8f0fb; color: #1a4a8a; }
.awp-status-pending     { background: #f4f3f1; color: #8a7870; }
.awp-status-failed      { background: #fdf0f0; color: #8a1c1c; }
.awp-status-cancelled   { background: #f4f3f1; color: #9a8378; }

/* ─── Family activity table ─────────────────────────────────────── */
.awp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.awp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.awp-table th {
  text-align: left; padding: 10px 14px;
  font-size: 12px; font-weight: 600; color: #8a7870;
  border-bottom: 1px solid #e2d9d1;
}
.awp-table td { padding: 12px 14px; border-bottom: 1px solid #f0ebe6; }
.awp-table tr:last-child td { border-bottom: none; }
.awp-table tr:hover td { background: #faf8f6; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.awp-form-group { margin-bottom: 18px; }
.awp-form-group label, .awp-field-row label {
  display: block;
  font-size: 13px; font-weight: 600; color: #1e1612;
  margin-bottom: 6px;
}
.awp-form-group input[type="text"],
.awp-form-group input[type="email"],
.awp-form-group input[type="password"],
.awp-form-group input[type="tel"],
.awp-form-group input[type="number"],
.awp-form-group select,
.awp-form-group textarea,
.awp-field-row input[type="text"],
.awp-field-row select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #d0bbb4; border-radius: 6px;
  font-size: 15px; font-family: inherit; color: #1e1612;
  background: #faf9f8; box-sizing: border-box;
  transition: border-color .12s, box-shadow .12s;
  appearance: none;
}
.awp-form-group input:focus,
.awp-form-group select:focus,
.awp-form-group textarea:focus,
.awp-field-row input:focus,
.awp-field-row select:focus {
  outline: none;
  border-color: #b84b27;
  box-shadow: 0 0 0 3px rgba(184,75,39,.1);
  background: #fff;
}
.awp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.awp-field-row { margin-bottom: 16px; }
.awp-field-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.awp-field-hint { font-size: 12px; color: #8a7870; margin-top: 5px; }
.awp-form-actions { display: flex; gap: 10px; margin-top: 24px; }
.awp-required { color: #b84b27; }

/* ─── Auth card ───────────────────────────────────────────────────── */
.awp-auth-wrap {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px 60px;
}
.awp-auth-card {
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 10px;
  padding: 40px 36px;
  width: 100%; max-width: 420px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.awp-auth-card-wide { max-width: 520px; }

.awp-auth-logo { text-align: center; margin-bottom: 24px; }
.awp-auth-emblem-wrap {
  display: inline-flex; align-items: center;
  justify-content: center; margin-bottom: 12px;
}
.awp-auth-emblem { display: flex; align-items: center; justify-content: center; }
.awp-emblem-img { width: 72px; height: 72px; object-fit: contain; display: block; }
.awp-auth-club-name { display: block; font-size: 18px; font-weight: 700; color: #1e1612; }
.awp-auth-subtitle  { display: block; font-size: 13px; color: #8a7870; margin-top: 3px; }

.awp-auth-form input[type="text"],
.awp-auth-form input[type="email"],
.awp-auth-form input[type="password"],
.awp-auth-form input[type="tel"] {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid #d0bbb4; border-radius: 6px;
  font-size: 15px; font-family: inherit; color: #1e1612;
  background: #faf9f8; box-sizing: border-box;
  transition: border-color .12s, box-shadow .12s;
}
.awp-auth-form input:focus {
  outline: none;
  border-color: #b84b27;
  box-shadow: 0 0 0 3px rgba(184,75,39,.1);
  background: #fff;
}
.awp-auth-form .awp-form-group label {
  font-size: 13px; font-weight: 600; color: #1e1612;
  display: block; margin-bottom: 6px;
}
.awp-auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: #c0b5aa; font-size: 13px;
}
.awp-auth-divider::before,
.awp-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2d9d1;
}
.awp-auth-section-title {
  font-size: 12px; font-weight: 600; color: #8a7870;
  margin: 22px 0 12px; padding-top: 18px;
  border-top: 1px solid #e2d9d1;
}

/* ─── OTP input ───────────────────────────────────────────────────── */
.awp-otp-input {
  font-size: 30px !important; letter-spacing: 12px !important;
  text-align: center; font-weight: 700; color: #1e1612;
}
.awp-verify-hint {
  background: #fdf3ef; border: 1px solid #e8d0c5;
  border-radius: 6px; padding: 12px 16px;
  text-align: center; font-size: 13px; color: #5a2510;
  margin-bottom: 18px; line-height: 1.6;
}
.awp-verify-hint strong { color: #8f3820; }
.awp-auth-link-row {
  text-align: center; margin-top: 18px;
  font-size: 14px; color: #8a7870;
}
.awp-auth-link-row a { color: #b84b27; font-weight: 600; text-decoration: none; }
.awp-auth-link-row a:hover { text-decoration: underline; }

/* ─── Registration form ──────────────────────────────────────────── */
.awp-child-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2d9d1; border-radius: 6px;
  margin-bottom: 10px; background: #fff;
}
.awp-child-row:has(input:checked) { border-color: #b84b27; background: #fdf3ef; }

/* ─── Payment plan selector ─────────────────────────────────────── */
.awp-payment-plan { margin-bottom: 20px; }
.awp-payment-plan-wrap { margin-bottom: 20px; }
.awp-np, .awp-np2 {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  border: 1.5px solid #e2d9d1; border-radius: 6px;
  margin-bottom: 8px; background: #fff;
  transition: border-color .12s;
}
.awp-np:hover, .awp-np2:hover { border-color: #b84b27; }
.awp-np input[type="radio"], .awp-np2 input[type="radio"] { margin-top: 2px; accent-color: #b84b27; }

/* ─── Order summary ─────────────────────────────────────────────── */
.awp-order-summary {
  background: #f4f3f1; border: 1px solid #e2d9d1;
  border-radius: 6px; padding: 16px 20px; margin-bottom: 20px;
}
.awp-order-line {
  display: flex; justify-content: space-between;
  font-size: 14px; color: #6b5d54; padding: 4px 0;
}
.awp-order-total {
  display: flex; justify-content: space-between;
  font-size: 16px; font-weight: 700; color: #1e1612;
  padding-top: 12px; margin-top: 8px;
  border-top: 1px solid #d0bbb4;
}

/* ─── Bank account form ─────────────────────────────────────────── */
.awp-bank-form { margin-top: 12px; }
.awp-payment-section { margin-top: 20px; }
.awp-payment-error {
  color: #8a1c1c; font-size: 14px;
  margin-bottom: 12px; display: none;
}
.awp-payment-notice {
  font-size: 13px; color: #8a7870;
  margin-top: 12px; line-height: 1.5;
}

/* ─── Select ────────────────────────────────────────────────────── */
.awp-select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #d0bbb4; border-radius: 6px;
  font-size: 15px; font-family: inherit; color: #1e1612;
  background: #faf9f8; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b84b27' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.awp-select:focus {
  outline: none; border-color: #b84b27;
  box-shadow: 0 0 0 3px rgba(184,75,39,.1);
}

/* ─── Misc helpers ───────────────────────────────────────────────── */
.awp-muted { color: #8a7870; font-size: 14px; }
.awp-sibling-note { font-size: 13px; color: #8a7870; margin-top: 8px; }
.awp-usawp { font-size: 13px; color: #8a7870; }
.awp-empty { text-align: center; padding: 40px 20px; color: #8a7870; }
.awp-empty-icon { font-size: 40px; margin-bottom: 12px; }
.awp-child-info {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: #8f3820; background: #fdf0eb;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 4px;
}
.awp-group-select-wrap { margin-top: 10px; }
.awp-remember-label { font-size: 14px; color: #6b5d54; cursor: pointer; }
.awp-resend-email { font-size: 13px; margin-top: 12px; text-align: center; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .awp-page-header-inner { padding: 0 16px; height: 52px; }
  .awp-page-header-badge { display: none; }
  .awp-page-content { padding: 20px 16px 48px; }
  .awp-auth-wrap { padding: 16px 12px 40px; align-items: flex-start; min-height: auto; }
  .awp-auth-card { padding: 28px 20px; }
  .awp-form-row, .awp-field-row-2col { grid-template-columns: 1fr; }
  .awp-athletes-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .awp-season-block { flex-direction: column; align-items: flex-start; }
  .awp-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .awp-table th, .awp-table td { padding: 10px; }
  .awp-otp-input { font-size: 26px !important; letter-spacing: 8px !important; }
}
@media (max-width: 400px) {
  .awp-athletes-grid { grid-template-columns: 1fr; }
}

/* ─── Payment type toggle ──────────────────────────────────── */
.awp-pay-type-options {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.awp-pay-type-option {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 180px; cursor: pointer;
  padding: 14px 16px;
  border: 1.5px solid #e2d9d1; border-radius: 8px;
  background: #fff; transition: border-color .12s;
}
.awp-pay-type-option:hover    { border-color: #b84b27; }
.awp-pay-type-selected        { border-color: #b84b27; background: #fdf3ef; }
.awp-pay-type-option input    { accent-color: #b84b27; flex-shrink: 0; }
.awp-pay-type-label           { display: flex; flex-direction: column; gap: 2px; }
.awp-pay-type-label strong    { font-size: 14px; font-weight: 600; color: #1e1612; }
.awp-pay-type-label .awp-muted { font-size: 12px; }

/* ─── Saved bank accounts ──────────────────────────────────── */
.awp-saved-pms { }
.awp-saved-pms-label {
  font-size: 12px; font-weight: 600; color: #8a7870;
  margin-bottom: 8px;
}
.awp-saved-pm-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  border: 1.5px solid #e2d9d1; border-radius: 8px;
  background: #fff; margin-bottom: 8px;
  transition: border-color .12s;
}
.awp-saved-pm-option:hover { border-color: #b84b27; }
.awp-saved-pm-option input { accent-color: #b84b27; }
.awp-saved-pm-info { font-size: 14px; color: #1e1612; }

/* ─── Stripe card element ──────────────────────────────────── */
.awp-stripe-card-element {
  padding: 11px 13px;
  border: 1.5px solid #d0bbb4; border-radius: 6px;
  background: #faf9f8;
  transition: border-color .12s, box-shadow .12s;
}
.awp-stripe-card-element.StripeElement--focus {
  border-color: #b84b27;
  box-shadow: 0 0 0 3px rgba(184,75,39,.1);
  background: #fff;
}
.awp-stripe-card-element.StripeElement--invalid { border-color: #c0392b; }

/* ─── Card fee order line ──────────────────────────────────── */
.awp-order-fee-line { color: #8a7870; font-style: italic; }
.awp-order-discount { color: #2a7a2a; }

/* ─── Spinner ──────────────────────────────────────────────── */
.awp-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: awp-spin .6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes awp-spin { to { transform: rotate(360deg); } }

/* ─── Back to main site link (header) ────────────────────────── */
.awp-page-header-back {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .1px;
  margin-left: auto;
  transition: color .12s;
}
.awp-page-header-back:hover { color: #fff; }

/* ─── Footer with logo + back link ───────────────────────────── */
.awp-page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.awp-footer-site-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9a8378;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.awp-footer-site-link img {
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}
.awp-footer-site-link:hover { color: #b84b27; }
.awp-footer-sep { color: #d0c8c0; }

/* ─── Neptunes banner logo in auth card ────────────────────── */
.awp-emblem-img {
  width: 100% !important;
  max-width: 260px !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}
.awp-auth-emblem-wrap { margin-bottom: 8px; }

/* ─── Auth card feature bullets ────────────────────────────── */
.awp-auth-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid #e2d9d1;
  border-bottom: 1px solid #e2d9d1;
  padding: 14px 0;
}
.awp-auth-features li {
  font-size: 13px;
  color: #6b5d54;
  padding: 4px 0 4px 20px;
  position: relative;
}
.awp-auth-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #b84b27;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PORTAL DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

/* ── Stats row ─────────────────────────────────────────────── */
.awp-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.awp-stat-card {
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 8px;
  padding: 16px 18px;
  text-align: center;
}
.awp-stat-card-accent { border-color: #b84b27; background: #fdf3ef; }
.awp-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e1612;
  line-height: 1.1;
}
.awp-stat-card-accent .awp-stat-value { color: #7c3118; }
.awp-stat-label { font-size: 12px; color: #8a7870; margin-top: 4px; }

/* ── Section header with filter ────────────────────────────── */
.awp-admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.awp-admin-filter-form { display: flex; align-items: center; gap: 8px; }

/* ── Desktop table: visible ≥700px ─────────────────────────── */
.awp-admin-table-wrap  { display: block; }
.awp-admin-reg-cards   { display: none;  }

.awp-admin-email { font-size: 12px; color: #8a7870; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Mobile reg cards: visible <700px ─────────────────────── */
@media (max-width: 700px) {
  .awp-admin-table-wrap { display: none; }
  .awp-admin-reg-cards  { display: block; }
}
.awp-admin-reg-card {
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.awp-admin-reg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.awp-admin-reg-name { font-size: 15px; font-weight: 700; color: #1e1612; }
.awp-admin-reg-meta { font-size: 12px; color: #8a7870; margin-top: 2px; }
.awp-admin-reg-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0ebe6;
}
.awp-admin-reg-amount { font-size: 14px; font-weight: 600; color: #3d2b1f; }

/* ── Event log ─────────────────────────────────────────────── */
.awp-admin-log-list { display: flex; flex-direction: column; gap: 6px; }
.awp-admin-log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}
.awp-admin-log-badge {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.awp-admin-log-child  { font-weight: 600; color: #1e1612; flex-shrink: 0; }
.awp-admin-log-season { color: #8a7870; flex-shrink: 0; }
.awp-admin-log-amt    { color: #1e1612; font-weight: 600; margin-left: auto; white-space: nowrap; }
.awp-admin-log-note   { color: #6b5d54; font-size: 12px; flex-basis: 100%; padding-left: 2px; }
.awp-admin-log-date   { color: #9a8378; font-size: 11px; white-space: nowrap; }

@media (max-width: 500px) {
  .awp-admin-log-amt  { margin-left: 0; }
  .awp-admin-log-date { flex-basis: 100%; padding-left: 2px; }
  .awp-admin-stats    { grid-template-columns: 1fr 1fr; }
  .awp-stat-value     { font-size: 22px; }
}

/* ─── Tournaments nested under their season ─────────────────────── */
.awp-season-group { margin-bottom: 10px; }
.awp-season-group > .awp-season-block { margin-bottom: 0; }
.awp-tourn-list { margin: 2px 0 0 28px; padding-left: 14px; border-left: 3px solid #003087; }
.awp-tourn-list-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #003087; margin: 2px 0 4px;
}
.awp-tourn-block {
  background: #f3f6fc; border: 1px solid #d5dff0; border-radius: 8px;
  padding: 6px 12px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.awp-tourn-block-header { flex: 1; }
.awp-tourn-block-header h5 { margin: 0; font-size: 13px; font-weight: 700; color: #0b2350; }
.awp-tourn-block-header .badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: #3a5a8c;
  background: #fff; border: 1px solid #d5dff0; border-radius: 4px; padding: 2px 8px;
}
.awp-tourn-fee { font-size: 12px; color: #3a5a8c; margin-top: 2px; }
.awp-tourn-block .awp-btn-primary { background: #003087; border-color: #003087; }
.awp-tourn-block .awp-btn-primary:hover { background: #00246a; border-color: #00246a; }
.awp-tourn-locked { font-size: 12px; color: #5b6b82; font-style: italic; }

/* ─── Tournament sub-rows in Family Activity table ─────────────── */
.awp-tourn-subrow td { background: #f5f8ff; padding-top: 7px; padding-bottom: 7px; }
.awp-tourn-subrow:last-child td { border-bottom: none; }

/* ─── Compact athlete cards ─────────────────────────────────────── */
.awp-athletes-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 180px)); gap: 10px; }
.awp-athlete-card { padding: 10px 12px; }
.awp-athlete-card .name { font-size: 14px; margin-bottom: 4px; }
.awp-athlete-card .meta { font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
.awp-athlete-card .actions .awp-btn { padding: 3px 10px; font-size: 12px; }

/* ─── Save payment method ───────────────────────────────────────── */
.awp-save-pm { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1e1612; margin: 0 0 16px; cursor: pointer; }
.awp-save-pm input { accent-color: #b84b27; }
#awp-payment-error { margin-top: 12px; }

@media (max-width: 600px) {
  .awp-tourn-list { margin-left: 10px; padding-left: 10px; }
  .awp-tourn-block { flex-direction: column; align-items: flex-start; }
  .awp-athletes-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* ─── Staff area ────────────────────────────────────────────────── */
.awp-role-badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #3a5a8c; background: #eef3fb; border: 1px solid #d5dff0; border-radius: 4px; padding: 2px 8px; }
.awp-role-badge.is-admin { color: #8a3a1f; background: #fdf3ef; border-color: #f0cfc2; }
.awp-staff-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #e2d9d1; margin: 0 0 20px; }
.awp-staff-tabs a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: #8a7870; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.awp-staff-tabs a:hover { color: #1e1612; }
.awp-staff-tabs a.active { color: #b84b27; border-bottom-color: #b84b27; }
.awp-staff-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.awp-staff-filter input[type=search], .awp-staff-filter select { padding: 7px 10px; border: 1.5px solid #d0bbb4; border-radius: 6px; font-size: 14px; background: #fff; min-width: 180px; }
.awp-staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.awp-staff-grid-4 { grid-template-columns: repeat(4, 1fr); }
.awp-staff-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #5a4a42; }
.awp-staff-grid .span2 { grid-column: span 2; }
.awp-staff-grid input, .awp-staff-grid select, .awp-staff-grid textarea { padding: 8px 10px; border: 1.5px solid #d0bbb4; border-radius: 6px; font-size: 14px; font-weight: 400; background: #faf9f8; font-family: inherit; }
.awp-staff-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #8a7870; margin: 20px 0 8px; }
.awp-staff-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.awp-staff-checks input, .awp-staff-toggle input { accent-color: #b84b27; }
.awp-staff-toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 16px; }
.awp-staff-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.awp-staff-actions .awp-muted { margin-right: auto; font-size: 13px; }
.awp-staff-child { padding: 14px 16px; margin-bottom: 10px; }
.awp-staff-child .awp-staff-grid { grid-template-columns: repeat(4, 1fr); }
.awp-staff-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; font-size: 14px; }
.awp-staff-kv span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #8a7870; }
.awp-inline-form { display: inline; margin: 0; }
.awp-row-actions { white-space: nowrap; }
.awp-btn-link { background: none; border: 0; padding: 4px 6px; font-size: 13px; cursor: pointer; text-decoration: underline; color: #5a4a42; }
.awp-danger { color: #a4262c; }
.awp-notice { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.awp-notice-success { background: #eef7ee; border: 1px solid #c7e3c7; color: #1e4620; }
.awp-notice-error { background: #fcf0f1; border: 1px solid #f0c4c6; color: #8a2424; }
.awp-staff .awp-table td code { font-size: 11px; }
/* embedded reports */
.awp-staff .awp-reports h1, .awp-staff .awp-reports .wp-header-end { display: none; }
.awp-staff .awp-reports .page-title-action { display: inline-block; margin-bottom: 8px; font-size: 13px; }
.awp-staff .awp-reports table.widefat { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2d9d1; border-radius: 8px; font-size: 14px; }
.awp-staff .awp-reports table.widefat th { text-align: left; font-size: 12px; font-weight: 600; color: #8a7870; padding: 10px 12px; border-bottom: 1px solid #e2d9d1; }
.awp-staff .awp-reports table.widefat td { padding: 9px 12px; border-bottom: 1px solid #f1ebe6; }
.awp-staff .awp-reports .num { text-align: right; }
.awp-staff .awp-reports select { padding: 7px 10px; border: 1.5px solid #d0bbb4; border-radius: 6px; }
@media (max-width: 700px) {
  .awp-staff-grid, .awp-staff-grid-4, .awp-staff-child .awp-staff-grid { grid-template-columns: 1fr 1fr; }
  .awp-staff-grid .span2 { grid-column: span 2; }
  .awp-staff-tabs a { padding: 8px 10px; font-size: 13px; }
}
/* ─── Signed in as a family (staff) ─────────────────────────────── */
.awp-switch-banner { position: sticky; top: 0; z-index: 50; background: #0b2350; color: #fff; font-size: 14px; padding: 10px 16px; text-align: center; }
.awp-switch-banner a { color: #fff; font-weight: 700; margin-left: 10px; text-decoration: underline; }
/* ─── Cancel + refund ───────────────────────────────────────────── */
.awp-cancel-box summary { list-style: none; cursor: pointer; display: inline-block; }
.awp-cancel-box summary::-webkit-details-marker { display: none; }
.awp-cancel-box[open] summary { margin-bottom: 6px; }
.awp-cancel-form { display: flex; flex-direction: column; gap: 6px; min-width: 210px; padding: 10px; background: #fdf7f5; border: 1px solid #f0cfc2; border-radius: 6px; }
.awp-cancel-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: #5a4a42; }
.awp-cancel-form input { padding: 6px 8px; border: 1.5px solid #d0bbb4; border-radius: 5px; font-size: 13px; }
.awp-cancel-form .awp-btn-link { align-self: flex-start; padding: 0; font-size: 12px; }
.awp-cancel-form .awp-muted { margin: 0; font-size: 12px; }
.awp-refunded { color: #8a3a1f; font-weight: 600; }
/* ─── Closed badge ─── */
.awp-closed-badge { display: inline-block; font-size: 13px; font-weight: 700; color: #8a3a1f; background: #fdf3ef; border: 1px solid #f0cfc2; border-radius: 999px; padding: 6px 14px; }

/* ─── Responsive fixes (Sep 30 2026) ────────────────────────────── */
/* Enfold's merged styles set html { min-width: 910px } — undo it on portal pages */
html, body.awp-portal-page { min-width: 0 !important; max-width: 100% !important; }
body.awp-portal-page { overflow-x: clip; }
.awp-page-content { width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; }
.awp-portal img, .awp-portal svg { max-width: 100%; height: auto; }
.awp-portal input, .awp-portal select, .awp-portal textarea, .awp-portal button { max-width: 100%; font-size: 16px; } /* 16px stops iOS zoom on focus */
.awp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.awp-staff .awp-reports .widefat { display: block; overflow-x: auto; }

@media (max-width: 600px) {
  .awp-page-header-inner { padding: 0 12px; gap: 8px; }
  .awp-page-header-back { font-size: 12px; white-space: nowrap; }
  .awp-page-header-name { font-size: 13px; }
  .awp-page-content { padding: 16px 12px 40px; }
  .awp-auth-wrap { padding: 16px 0 32px; min-height: auto; }
  .awp-auth-card { padding: 24px 18px; border-radius: 8px; }
  .awp-header h2 { font-size: 20px; }
  .awp-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .awp-nav .awp-btn { margin-left: 0 !important; }
  .awp-section { margin-bottom: 20px; }
  .awp-season-block, .awp-tourn-block { padding: 14px; }
  .awp-season-block-body .awp-btn, .awp-tourn-block-body .awp-btn { width: 100%; text-align: center; }
  .awp-form-actions { flex-direction: column-reverse; }
  .awp-form-actions .awp-btn { width: 100%; text-align: center; }
  .awp-pay-type-option { min-width: 0; flex-basis: 100%; }
  .awp-table { font-size: 13px; }
  .awp-table th, .awp-table td { padding: 8px; white-space: nowrap; }
  .awp-staff-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .awp-staff-tabs a { white-space: nowrap; }
  .awp-staff-filter input[type=search], .awp-staff-filter select { min-width: 0; flex: 1 1 140px; }
  .awp-staff-grid, .awp-staff-grid-4, .awp-staff-child .awp-staff-grid { grid-template-columns: 1fr; }
  .awp-staff-grid .span2 { grid-column: auto; }
  .awp-staff-actions { flex-wrap: wrap; }
  .awp-cancel-form { min-width: 0; width: 100%; }
  .awp-rep-tiles { grid-template-columns: 1fr 1fr !important; }
  .awp-rep-grid { grid-template-columns: 1fr !important; }
  .awp-switch-banner { font-size: 13px; }
  .awp-page-footer { flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px; padding: 16px 12px; }
}
@media (max-width: 380px) {
  .awp-page-header-back { display: none; }
  .awp-athletes-grid { grid-template-columns: 1fr 1fr; }
}
.awp-rep-grid > *, .awp-rep-panel, .awp-rep-tiles > * { min-width: 0; }
.awp-staff .awp-reports .widefat { max-width: 100%; }

/* ── Dashboard: Payment Methods section ─────────────────────────── */
.awp-saved-pms-list { display: flex; flex-direction: column; gap: 10px; }
.awp-saved-pm { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #f8faff; border: 1px solid #d0daea; border-radius: 8px; flex-wrap: wrap; }
.awp-pm-icon { font-size: 22px; line-height: 1; }
.awp-pm-label { flex: 1; font-size: 14px; color: #1e1612; }
.awp-pm-del-status { margin-left: auto; }

/* ─── Mobile: Activity table → card stack (≤ 640 px) ────────────── */
@media (max-width: 640px) {
  /* Allow natural height — no horizontal scroll needed */
  .awp-activity-wrap { overflow-x: visible; }

  /* Hide column headers */
  table.awp-activity-table thead { display: none; }

  /* Kill hover highlight in card mode */
  table.awp-activity-table tr:hover td { background: transparent !important; }

  /* Each row becomes a 2-col card */
  table.awp-activity-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 3px 10px;
    background: #fff;
    border: 1px solid #e2d9d1;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
  }

  /* Strip all td chrome — card handles borders/bg */
  table.awp-activity-table td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    white-space: normal !important;
    font-size: 13px;
    line-height: 1.45;
  }

  /* Col 1 – Athlete name (top-left) */
  table.awp-activity-table td:nth-child(1) {
    grid-column: 1; grid-row: 1;
    font-weight: 700; font-size: 14px; color: #1e1612;
    align-self: center;
  }

  /* Col 5 – Status badge (top-right) */
  table.awp-activity-table td:nth-child(5) {
    grid-column: 2; grid-row: 1;
    align-self: start; text-align: right;
    white-space: nowrap;
  }

  /* Col 2 – Season / tournament name (full-width row 2) */
  table.awp-activity-table td:nth-child(2) {
    grid-column: 1 / -1; grid-row: 2;
    color: #5a4a42;
  }

  /* Col 3 – Date (bottom-left) */
  table.awp-activity-table td:nth-child(3) {
    grid-column: 1; grid-row: 3;
    color: #8a7870; font-size: 12px;
  }

  /* Col 4 – Amount (bottom-right) */
  table.awp-activity-table td:nth-child(4) {
    grid-column: 2; grid-row: 3;
    font-weight: 600; text-align: right; color: #1e1612;
  }

  /* Tournament sub-row — indented blue-stripe card */
  table.awp-activity-table .awp-tourn-subrow {
    background: #f5f8ff !important;
    border-color: #d5dff0 !important;
    border-left: 3px solid #003087 !important;
    border-radius: 0 0 8px 8px;
    margin-top: -6px;       /* tuck under parent card */
    margin-left: 0;
    padding: 8px 14px 10px;
  }

  /* Sub-row col 1 – "↳ Tournament" label */
  table.awp-activity-table .awp-tourn-subrow td:nth-child(1) {
    font-size: 11px; font-weight: 700; color: #003087; letter-spacing: .2px;
  }

  /* Sub-row col 2 – tournament name */
  table.awp-activity-table .awp-tourn-subrow td:nth-child(2) {
    font-size: 13px; color: #0b2350;
  }

  /* Sub-row col 3 – date (visible for tournaments) */
  table.awp-activity-table .awp-tourn-subrow td:nth-child(3) {
    color: #5b6b82;
  }
}

/* ── Help "?" button + Parent Portal Guide dialog ───────────────────────── */
.awp-auth-card { position: relative; }
.awp-help-btn {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #0062cc; background: #fff; color: #0062cc;
  font: 700 17px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
.awp-help-btn:hover, .awp-help-btn:focus-visible { background: #0062cc; color: #fff; outline: none; }
.awp-help-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: none; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); color: #2b3245;
}
.awp-help-dialog[open] { display: flex; flex-direction: column; }
.awp-help-dialog::backdrop { background: rgba(15,23,42,.55); }
.awp-help-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid #edf0f7; background: #f8faff;
}
.awp-help-head h2 { margin: 0; font-size: 19px; color: #1a2340; }
.awp-help-close {
  border: none; background: transparent; font-size: 28px; line-height: 1;
  color: #5a6480; cursor: pointer; padding: 2px 8px; border-radius: 6px;
}
.awp-help-close:hover, .awp-help-close:focus-visible { background: #e8edf7; outline: none; }
.awp-help-body { overflow-y: auto; padding: 18px 22px 24px; font-size: 15px; line-height: 1.6; text-align: left; }
.awp-help-body h3 { font-size: 16px; color: #0062cc; margin: 22px 0 6px; scroll-margin-top: 10px; }
.awp-help-body section:first-of-type h3 { margin-top: 8px; }
.awp-help-body p, .awp-help-body ul, .awp-help-body ol { margin: 0 0 10px; }
.awp-help-body ul, .awp-help-body ol { padding-left: 22px; }
.awp-help-body li { margin-bottom: 4px; }
.awp-help-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid #edf0f7; font-size: 14px; }
.awp-help-toc a { color: #0062cc; text-decoration: none; }
.awp-help-toc a:hover { text-decoration: underline; }
.awp-help-tip { background: #f3f7ff; border-left: 3px solid #0062cc; padding: 8px 12px; border-radius: 4px; font-size: 14px; }
@media (max-width: 480px) {
  .awp-help-body { padding: 14px 16px 20px; font-size: 14.5px; }
  .awp-help-btn { top: 10px; right: 10px; }
}