/* TNT portal SPA — customer + owner studio (Abi design 2026-07-22) */

body.portal-spa {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: #3d3a52;
  background: #fffaf0;
  -webkit-font-smoothing: antialiased;
}

body.portal-spa h1,
body.portal-spa h2,
body.portal-spa h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin: 0;
  color: #33304a;
}

.portal-preview-banner {
  background: #847ab3;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
}

.portal-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.portal-shell--staff {
  grid-template-columns: 250px 1fr;
}

.portal-aside {
  background: #fff;
  border-right: 1.5px solid #efe9df;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.portal-aside--staff {
  background: #33304a;
  border-right: none;
  padding: 24px 16px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 8px;
  text-decoration: none;
  color: inherit;
}

.portal-brand-mark {
  background: #847ab3;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  padding: 6px 11px;
  border-radius: 10px;
}

.portal-brand-sub {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a95a8;
}

.portal-aside--staff .portal-brand-sub {
  color: #9c97b8;
}

.portal-aside--staff .portal-brand:hover .portal-brand-mark {
  filter: brightness(1.08);
}

.portal-staff-website-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: #c6c2d4;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.portal-staff-website-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
}

.portal-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14.5px;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #6e6a80;
}

.portal-nav-btn[aria-current='page'] {
  background: #f0edf7;
  color: #33304a;
}

.portal-nav-btn--staff {
  font-size: 14px;
  gap: 11px;
  border-radius: 11px;
  color: #b7b2c9;
}

.portal-nav-btn--staff[aria-current='page'] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.portal-nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.portal-nav-badge {
  margin-left: auto;
  background: #847ab3;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.portal-user-card {
  margin-top: auto;
  background: #fbf9f4;
  border: 1.5px solid #efe9df;
  border-radius: 16px;
  padding: 14px;
}

.portal-user-card--staff {
  background: rgba(255, 255, 255, 0.06);
  border: none;
}

.portal-user-card .portal-user-name {
  font-weight: 800;
  font-size: 14px;
}

.portal-user-card .portal-user-sub {
  font-size: 12px;
  color: #8e8aa0;
}

.portal-aside--staff .portal-user-name {
  color: #fff;
}

.portal-aside--staff .portal-user-sub {
  color: #9c97b8;
}

.portal-main {
  padding: 34px 44px 80px;
  max-width: 1160px;
}

.portal-main--staff {
  padding: 32px 40px 80px;
  max-width: 1200px;
}

.portal-muted {
  color: #8e8aa0;
}

.portal-card {
  background: #fff;
  border: 1.5px solid #efe9df;
  border-radius: 16px;
  padding: 18px 20px;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.portal-grid-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.portal-btn-primary {
  background: #847ab3;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(132, 122, 179, 0.28);
}

.portal-btn-primary:hover {
  background: #6b61a0;
}

.portal-btn-dark {
  background: #33304a;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
}

.portal-btn-ghost {
  background: #fff;
  border: 1.5px solid #efe9df;
  color: #8e8aa0;
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
}

.portal-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #33304a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 70;
}

.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(51, 48, 74, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}

.portal-modal {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.portal-field input,
.portal-field select,
.portal-field textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 13px 15px;
  border: 1.5px solid #e7e1d6;
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
  color-scheme: light;
  -webkit-appearance: none;
  appearance: none;
}

.portal-field input[type='date'] {
  padding-right: 2.5rem;
  min-width: 0;
}

.portal-field input[type='date']::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}

.portal-field select {
  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 fill='%2333304a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 2.25rem;
}

.portal-field label {
  font-weight: 700;
  font-size: 14px;
  display: block;
}

/* Login split hero (Abi design 2026-07-22) */
.portal-login-page {
  background: #fffaf0;
}

.portal-login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.portal-login-hero {
  background: linear-gradient(155deg, #8b80b8 0%, #6f6598 52%, #5c5388 100%);
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.portal-login-hero::before,
.portal-login-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.portal-login-hero::before {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -100px;
  background: rgba(255, 255, 255, 0.09);
}

.portal-login-hero::after {
  width: 320px;
  height: 320px;
  bottom: 48px;
  left: -90px;
  background: rgba(38, 34, 58, 0.14);
}

.portal-login-hero--staff {
  background: linear-gradient(155deg, #33304a 0%, #4a4568 100%);
}

.portal-login-hero--staff::before {
  background: rgba(255, 255, 255, 0.06);
}

.portal-login-hero-brand,
.portal-login-hero-body,
.portal-login-hero-foot {
  position: relative;
  z-index: 1;
}

.portal-login-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-login-logo-mark {
  background: #fff;
  color: #847ab3;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 12px;
}

.portal-login-logo-kicker {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.95;
}

.portal-login-hero-body {
  max-width: 470px;
  margin: auto 0;
  padding: 48px 0;
}

body.portal-spa .portal-login-hero h1,
body.portal-spa .portal-login-hero #hero-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -1px;
}

.portal-login-hero-copy {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  margin: 22px 0 0;
}

.portal-login-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.portal-login-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
}

.portal-login-hero-foot {
  font-size: 14px;
  opacity: 0.85;
}

.portal-login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #fffaf0;
}

.portal-login-form {
  width: 100%;
  max-width: 400px;
}

.portal-login-title {
  font-size: 34px;
  letter-spacing: -0.5px;
  margin: 0;
}

.portal-login-sub {
  font-size: 15px;
  margin: 10px 0 26px;
  color: #8e8aa0;
}

.portal-login-lane {
  display: flex;
  gap: 6px;
  background: #ebe7f4;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 28px;
}

.portal-login-lane-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  background: transparent;
  color: #6e6a80;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.portal-login-lane-btn[aria-selected='true'] {
  background: #fff;
  color: #33304a;
  box-shadow: 0 4px 14px rgba(51, 48, 74, 0.08);
}

.portal-login-fields .portal-login-field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid #efe9df;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: #33304a;
}

.portal-login-fields .portal-login-field input::placeholder {
  color: #b8b3c8;
}

.portal-login-fields .portal-login-field input:-webkit-autofill,
.portal-login-fields .portal-login-field input:-webkit-autofill:hover,
.portal-login-fields .portal-login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #33304a;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out 0s;
}

.portal-login-submit {
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 14px;
}

.portal-login-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
}

.portal-login-text-btn {
  border: none;
  background: none;
  padding: 0;
  margin-left: 4px;
  font: inherit;
  font-weight: 800;
  color: #847ab3;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-login-forgot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
}

.portal-login-forgot a {
  color: #8e8aa0;
  text-decoration: none;
}

.portal-login-forgot a:hover {
  color: #847ab3;
  text-decoration: underline;
}

.portal-login-staff-note {
  margin: 0 0 18px;
  font-size: 14px;
  color: #8e8aa0;
  line-height: 1.5;
}

.portal-login-back {
  text-align: center;
  margin-top: 22px;
}

.portal-login-back a {
  font-size: 13px;
  color: #8e8aa0;
  text-decoration: none;
}

.portal-login-back a:hover {
  color: #847ab3;
}

/* Family detail */
.portal-family-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.portal-family-list {
  padding: 10px;
}

.portal-family-list-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: transparent;
  text-align: left;
  font-family: inherit;
}

.portal-family-list-btn.is-active {
  background: #f0edf7;
}

.portal-family-list-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  flex-shrink: 0;
}

.portal-family-list-name {
  font-weight: 800;
  font-size: 15px;
}

.portal-family-list-sub {
  font-size: 12px;
}

.portal-family-add {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  font-weight: 800;
  font-size: 14px;
  color: #6b61a0;
  border: 1.5px dashed #cfc7e4;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.portal-family-detail {
  padding: 26px;
}

.portal-family-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-family-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  flex-shrink: 0;
}

.portal-family-detail-title {
  flex: 1;
  min-width: 160px;
}

.portal-family-detail-title h2 {
  font-size: 26px;
}

.portal-family-detail-role {
  font-size: 14px;
  font-weight: 600;
}

.portal-btn-outline {
  font-weight: 700;
  font-size: 13px;
  color: #6b61a0;
  border: 1.5px solid #cfc7e4;
  padding: 9px 14px;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.portal-btn-outline:hover {
  background: #f0edf7;
}

.portal-btn-sm {
  font-size: 12px;
  padding: 8px 13px;
}

.portal-info-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.portal-info-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.portal-info-tile {
  background: #fbf9f4;
  border-radius: 12px;
  padding: 13px 15px;
}

.portal-info-tile--green {
  background: #edf3de;
}

.portal-info-tile--purple {
  background: #f0edf7;
}

.portal-info-label {
  font-size: 12px;
  color: #8e8aa0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portal-info-value {
  font-weight: 700;
  font-size: 16px;
  margin-top: 4px;
}

.portal-info-sub {
  font-size: 12px;
  margin-top: 4px;
}

.portal-detail-section {
  margin-top: 26px;
}

.portal-detail-heading {
  font-size: 18px;
}

.portal-health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.portal-health-box {
  border: 1.5px solid #efe9df;
  border-radius: 12px;
  padding: 14px 16px;
}

.portal-health-box--alert {
  border-color: #e6dff3;
  background: #f5f2fb;
}

.portal-health-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b61a0;
}

.portal-health-value {
  font-weight: 600;
  font-size: 15px;
  margin-top: 5px;
}

.portal-chip-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.portal-chip {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
}

.portal-chip--ok {
  background: #edf3de;
  color: #6e9433;
}

.portal-chip--warn {
  background: #f0edf7;
  color: #6b61a0;
}

.portal-chip--muted {
  background: #fbf9f4;
  color: #8e8aa0;
}

.portal-consent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.portal-consent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #efe9df;
  border-radius: 12px;
  padding: 12px 15px;
}

.portal-consent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.portal-consent-name {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
}

.portal-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.portal-collector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.portal-collector-card {
  border: 1.5px solid #efe9df;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.portal-collector-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0edf7;
  color: #6b61a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin: 0 auto;
}

.portal-collector-name {
  font-weight: 800;
  font-size: 14px;
  margin-top: 10px;
}

.portal-collector-tag {
  font-size: 12px;
}

.portal-collector-add {
  border: 1.5px dashed #cfc7e4;
  border-radius: 14px;
  padding: 16px;
  color: #6b61a0;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.35;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  min-height: 120px;
}

.portal-collector-add-icon {
  font-size: 22px;
}

/* Classes */
.portal-section-title {
  font-size: 22px;
  margin-top: 26px;
}

.portal-section-title--spaced {
  margin-top: 48px;
}

.portal-class-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.portal-class-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
}

.portal-class-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e2f4f9;
  color: #2e90ab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.portal-class-body {
  flex: 1;
  min-width: 180px;
}

.portal-class-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-class-title-row h3 {
  font-size: 18px;
}

.portal-class-price {
  background: #e2f4f9;
  color: #2e90ab;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

.portal-class-meta {
  font-size: 14px;
  font-weight: 600;
  margin-top: 3px;
}

.portal-class-capacity {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 160px;
}

.portal-class-bar {
  flex: 1;
  height: 7px;
  background: #f0eae0;
  border-radius: 9px;
  overflow: hidden;
}

.portal-class-bar-fill {
  height: 100%;
  background: #5ec2d9;
  border-radius: 9px;
}

.portal-class-spots {
  font-size: 12px;
  color: #8e8aa0;
  font-weight: 700;
  white-space: nowrap;
}

.portal-class-book {
  white-space: nowrap;
}

.portal-modal--class-book {
  max-width: 440px;
  padding: 28px 30px 26px;
}

.portal-class-book-sub {
  margin-top: 6px;
  font-size: 14px;
}

.portal-class-book-heading {
  font-weight: 800;
  font-size: 14px;
  margin-top: 20px;
}

.portal-class-attendee-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.portal-class-attendee-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e7e1d6;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.portal-class-attendee-row:hover {
  border-color: #d4cde8;
}

.portal-class-attendee-row.is-selected {
  border-color: #847ab3;
  background: #f8f6fc;
}

.portal-class-attendee-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.portal-class-attendee-text {
  flex: 1;
  min-width: 0;
}

.portal-class-attendee-name {
  font-weight: 700;
  font-size: 15px;
}

.portal-class-attendee-sub {
  font-size: 12px;
  margin-top: 2px;
}

.portal-class-attendee-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d4cde8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
}

.portal-class-attendee-row.is-selected .portal-class-attendee-check {
  border-color: #847ab3;
  background: #847ab3;
  color: #fff;
}

.portal-class-book-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px solid #efe9df;
}

.portal-class-book-count {
  font-weight: 700;
  color: #8e8aa0;
  font-size: 14px;
}

.portal-class-book-total {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
}

.portal-class-book-cta {
  width: 100%;
  margin-top: 16px;
}

.portal-class-book-cta.portal-btn-primary--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Party booking modal */
.portal-modal--party-book {
  max-width: 520px;
  padding: 28px 30px 26px;
  max-height: 90vh;
  overflow: auto;
}

.portal-party-book-kicker {
  font-size: 12px;
  color: #8e8aa0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 20px;
}

.portal-party-book-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.portal-party-book-chip {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1.5px solid #e7e1d6;
  background: #fff;
  color: #6e6a80;
  cursor: pointer;
  font-family: inherit;
}

.portal-party-book-chip.is-on {
  background: #847ab3;
  color: #fff;
  border-color: #847ab3;
}

.portal-party-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.portal-party-book-field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.portal-party-book-field input,
.portal-party-book-field select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1.5px solid #e7e1d6;
  border-radius: 11px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}

.portal-party-book-other {
  margin-top: 12px;
}

.portal-party-package-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.portal-party-package-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1.5px solid #efe9df;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.portal-party-package-btn.is-selected {
  border: 2px solid #847ab3;
  background: #f5f2fb;
}

.portal-party-package-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.portal-party-package-desc {
  font-size: 13px;
  color: #8e8aa0;
  font-weight: 600;
  margin-top: 2px;
}

.portal-party-package-price {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.portal-party-deposit-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbf9f4;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 18px;
  gap: 12px;
}

.portal-party-deposit-label {
  font-weight: 800;
  color: #8e8aa0;
  font-size: 13px;
}

.portal-party-deposit-note {
  font-size: 12px;
  color: #b5b0c2;
  font-weight: 600;
  margin-top: 2px;
}

.portal-party-deposit-value {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
}

.portal-party-book-cta {
  width: 100%;
  margin-top: 20px;
}

.portal-party-book-cta.portal-btn-primary--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.portal-party-section-label {
  font-size: 12px;
  color: #8e8aa0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 18px;
}

.portal-party-pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.portal-party-pay-option {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1.5px solid #efe9df;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.portal-party-pay-option.is-selected {
  border: 2px solid #847ab3;
  background: #f5f2fb;
}

.portal-party-pay-option-title {
  display: block;
  font-weight: 800;
  font-size: 14px;
}

.portal-party-pay-option-sub {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.portal-party-deposit-kicker {
  font-weight: 800;
  color: #8e8aa0;
  font-size: 13px;
}

.portal-party-deposit-amount {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
}

/* Complete payment modal (Abi mock 2026-07-22) */
.portal-modal--payment {
  max-width: 420px;
  padding: 30px;
}

.portal-payment-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0edf7;
  color: #6b61a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.portal-payment-title {
  font-size: 24px;
  margin-top: 14px;
}

.portal-payment-sub {
  font-size: 14px;
  margin-top: 6px;
}

.portal-payment-amount-box {
  background: #fbf9f4;
  border-radius: 14px;
  padding: 18px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.portal-payment-amount-label {
  font-weight: 700;
  color: #8e8aa0;
}

.portal-payment-amount-value {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 30px;
}

.portal-payment-card-row {
  margin-top: 16px;
  border: 1.5px solid #e7e1d6;
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  color: #8e8aa0;
  font-weight: 600;
  font-size: 14px;
  gap: 12px;
}

.portal-payment-confirm {
  width: 100%;
  margin-top: 18px;
}

.portal-payment-cancel {
  width: 100%;
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #8e8aa0;
  padding: 10px;
}

.portal-class-book-empty {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #fbf9f4;
  font-size: 14px;
}

.portal-coaching-hero {
  background: #33304a;
  color: #fff;
  border-radius: 18px;
  padding: 24px 26px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-coaching-copy {
  max-width: 520px;
}

.portal-coaching-copy h3 {
  font-size: 22px;
  color: #fff;
}

.portal-coaching-copy p {
  color: #c6c2d4;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

.portal-coaching-action {
  text-align: right;
}

.portal-coaching-price {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 34px;
}

.portal-coaching-price span {
  font-size: 16px;
  color: #c6c2d4;
  font-weight: 500;
}

.portal-btn-coaching {
  margin-top: 10px;
  background: #a1c565;
  color: #33304a;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
}

.portal-btn-coaching:hover {
  background: #8fb84f;
}

/* Holiday clubs */
.portal-holiday-kids {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-holiday-kids-label {
  font-weight: 800;
  font-size: 14px;
  color: #8e8aa0;
}

.portal-holiday-kids-hint {
  font-size: 13px;
  color: #b5b0c2;
  font-weight: 600;
}

.portal-holiday-chip {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1.5px solid #e7e1d6;
  background: #fff;
  color: #6e6a80;
  cursor: pointer;
  font-family: inherit;
}

.portal-holiday-chip.is-on {
  background: #847ab3;
  color: #fff;
  border-color: #847ab3;
}

.portal-holiday-child-grid {
  padding: 8px;
  margin-top: 16px;
  overflow: hidden;
}

.portal-holiday-child-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 4px;
}

.portal-holiday-child-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}

.portal-holiday-child-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.portal-holiday-child-count {
  font-size: 13px;
  font-weight: 700;
}

.portal-holiday-grid-head,
.portal-holiday-grid-row {
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.portal-holiday-grid-head {
  font-weight: 800;
  font-size: 13px;
  color: #8e8aa0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portal-holiday-slot-sub {
  display: block;
  font-weight: 600;
  text-transform: none;
  color: #b5b0c2;
  font-size: 12px;
  margin-top: 2px;
}

.portal-holiday-grid-row {
  border-top: 1.5px solid #f4eee4;
}

.portal-holiday-day strong {
  display: block;
  font-size: 15px;
}

.portal-holiday-day span {
  font-size: 12px;
  color: #b5b0c2;
  font-weight: 600;
}

.portal-holiday-slot {
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  border: 1.5px solid #e7e1d6;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: #6b61a0;
}

.portal-holiday-slot.is-selected {
  border-color: #a1c565;
  background: #f6faee;
  color: #6e9433;
}

.portal-holiday-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edf3de;
  border: 1.5px solid #d7e6bd;
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  bottom: 14px;
}

.portal-holiday-footer-total {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.portal-holiday-footer-note {
  font-size: 13px;
  color: #6e8443;
  font-weight: 600;
}

.portal-holiday-sample {
  margin-top: 24px;
  font-size: 14px;
}

.portal-btn-primary--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Parties */
.portal-parties-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-parties-sub {
  font-size: 16px;
  margin-top: 8px;
  max-width: 640px;
}

.portal-parties-new {
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.portal-party-card {
  background: #fff;
  border: 1.5px solid #efe9df;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 22px;
}

.portal-party-hero {
  background: linear-gradient(120deg, #847ab3, #6b61a0);
  color: #fff;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-party-kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.portal-party-hero h2 {
  font-size: 26px;
  color: #fff;
  margin-top: 4px;
}

.portal-party-when {
  font-weight: 600;
  opacity: 0.95;
  margin-top: 4px;
}

.portal-party-balance-grid {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portal-party-balance-value {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-top: 3px;
}

.portal-party-balance-value--green {
  color: #6e9433;
}

.portal-party-balance-value--purple {
  color: #6b61a0;
}

.portal-party-due-note {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.portal-party-pay-row {
  padding: 0 26px 22px;
}

.portal-party-empty {
  margin-top: 24px;
  text-align: center;
  padding: 28px;
}

.portal-party-cta {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
}

.portal-parties-extras-note {
  font-size: 14px;
  margin-top: 4px;
}

.portal-addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.portal-addon-card {
  background: #fff;
  border: 1.5px solid #efe9df;
  border-radius: 16px;
  padding: 18px;
}

.portal-addon-card.is-selected {
  border-color: #847ab3;
  box-shadow: 0 0 0 1px #847ab3;
}

.portal-addon-ph {
  height: 96px;
  background: repeating-linear-gradient(135deg, #f0edf7, #f0edf7 12px, #f6f4fb 12px, #f6f4fb 24px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a8fc0;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.portal-addon-card h3 {
  font-size: 18px;
  margin-top: 14px;
}

.portal-addon-desc {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.portal-addon-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 10px;
}

.portal-addon-price {
  font-weight: 800;
  font-size: 14px;
}

/* Edit modal */
.portal-modal--edit {
  max-width: 520px;
}

.portal-modal-sub {
  font-size: 14px;
  margin-top: 6px;
}

.portal-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 16px;
  margin-top: 20px;
}

.portal-edit-grid .portal-field {
  min-width: 0;
}

.portal-edit-below {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.portal-edit-consent-label {
  font-size: 12px;
  color: #8e8aa0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.portal-edit-consent-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.portal-chip-toggle {
  font-weight: 700;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid #e7e1d6;
  background: #fbf9f4;
  color: #8e8aa0;
  cursor: pointer;
  font-family: inherit;
}

.portal-chip-toggle.is-on {
  background: #edf3de;
  color: #6e9433;
  border-color: #d7e6bd;
}

.portal-modal-save {
  width: 100%;
  margin-top: 22px;
}

.portal-modal-cancel {
  margin-top: 10px;
}

.portal-btn-remove {
  width: 100%;
  margin-top: 18px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #b42318;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-btn-remove:hover {
  color: #912018;
}

.portal-modal--confirm {
  max-width: 420px;
}

.portal-modal-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.portal-modal-confirm-actions .portal-btn-ghost,
.portal-modal-confirm-actions .portal-btn-danger {
  flex: 1;
  margin-top: 0;
}

.portal-btn-danger {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #b42318;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.portal-btn-danger:hover {
  background: #912018;
}

@media (max-width: 900px) {
  .portal-shell,
  .portal-shell--staff {
    grid-template-columns: 1fr;
  }

  .portal-aside {
    position: relative;
    height: auto;
  }

  .portal-stat-grid,
  .portal-grid-2,
  .portal-family-layout,
  .portal-info-grid--3,
  .portal-health-grid,
  .portal-party-balance-grid,
  .portal-addon-grid,
  .portal-holiday-grid-head,
  .portal-holiday-grid-row {
    grid-template-columns: 1fr;
  }

  .portal-holiday-grid-head {
    display: none;
  }

  .portal-holiday-grid-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .portal-class-capacity {
    width: 100%;
  }

  .portal-edit-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .portal-login-split {
    grid-template-columns: 1fr;
  }

  .portal-login-hero {
    padding: 40px 28px;
    min-height: 40vh;
  }

  .portal-main {
    padding: 24px 20px 60px;
  }
}
