/* ==========================================================================
   SPIKE OS — MODERN SPORTS MANAGEMENT PLATFORM
   Public Page Experiences (Home, Booking, Pro Shop, Lookup, Auth, Profile)
   ========================================================================== */

/* 1. Shared Public Inner Page Header */
body:not(.sh-admin-body) .page-hero {
  background-color: var(--surface-secondary);
  background-image: radial-gradient(circle at 85% 20%, rgba(107, 203, 119, 0.14) 0%, transparent 48%);
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 32px 0 28px;
}

.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

body:not(.sh-admin-body) .page-hero-title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body:not(.sh-admin-body) .page-hero-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 660px;
}

body:not(.sh-admin-body) .page-hero .badge {
  background-color: var(--surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* 2. Public Sections & Headers */
.web-section {
  padding: 52px 0;
  background-color: var(--background);
}

.web-section-alt {
  background-color: var(--surface-secondary);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.925rem;
  color: var(--text-secondary);
  max-width: 68ch;
}

/* 3. Home Landing — Editorial Soft Green Hero & Quick Booking Bar */
.sn-home-hero {
  background-color: var(--background);
  background-image: radial-gradient(circle at 80% 18%, rgba(46, 139, 87, 0.10) 0%, rgba(107, 203, 119, 0.05) 36%, transparent 65%);
  border-bottom: 1px solid var(--border-default);
  padding: 40px 0 48px;
}

.sn-home-hero-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
}

.sn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-primary-border);
  background-color: var(--brand-primary-tint);
  color: var(--brand-primary-ink);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sn-hero-title {
  margin: 0 0 14px 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--text-primary);
}
.sn-hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--brand-primary);
}

.sn-hero-desc {
  margin: 0 0 22px 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}

.sn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sn-hero-visual-panel {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background-color: var(--surface);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.sn-hero-media-frame {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-default);
}
.sn-hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sn-hero-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--surface-secondary);
  border-bottom: 1px solid var(--border-default);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sn-hero-mini-grid, .hero-mini-courts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 16px;
}

.sn-mini-court-item, .hero-mini-court-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sn-quick-search-wrap {
  max-width: var(--container-max);
  margin: 28px auto 0;
  padding: 0 24px;
}

.quick-book-bar {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.qb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qb-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 960px) {
  .sn-home-hero { padding: 24px 0 32px; }
  .sn-home-hero-grid { grid-template-columns: 1fr; padding: 0 16px; gap: 22px; }
  .sn-quick-search-wrap { padding: 0 16px; margin-top: 18px; }
  .quick-book-bar { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .sn-hero-mini-grid, .hero-mini-courts { grid-template-columns: 1fr; }
}

/* 4. Court Cards Grid & Pricing Cards */
.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .match-grid { grid-template-columns: minmax(0, 1fr); }
}

.match-card {
  background-color: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-float);
}

.match-card-media {
  position: relative;
  height: 190px;
  background: url('../../assets/court-vip-arena.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #FFFFFF;
}
.match-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 20, 0.38) 0%, rgba(15, 25, 20, 0.85) 100%);
}
.match-card-media > * {
  position: relative;
  z-index: 2;
}
.match-card-media h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
}

.match-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.match-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(34, 107, 72, 0.95);
  color: #FFFFFF;
}
.match-live-badge.available {
  background: rgba(46, 139, 87, 0.95);
  color: #FFFFFF;
}
.match-live-badge.locked {
  background: rgba(74, 89, 80, 0.95);
  color: #FFFFFF;
}
.match-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
}

.match-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.match-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-default);
}

.court-status-callout {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.court-status-callout.is-free {
  background: var(--surface-secondary);
  border: 1px solid var(--border-default);
}
.court-status-callout.is-playing {
  background: var(--brand-primary-tint);
  border: 1px solid var(--brand-primary-border);
}
.court-status-callout.is-locked {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger-text);
}

/* Homepage Availability Matrix */
.matrix-wrap {
  width: 100%;
  overflow-x: auto;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: center;
}
.matrix-table th {
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 10px 8px;
  border: 1px solid var(--border-default);
}
.matrix-court-col {
  text-align: left !important;
  padding: 10px 14px !important;
  min-width: 155px;
  background: var(--surface-secondary);
  position: sticky;
  left: 0;
  border-right: 2px solid var(--border-default);
}
.matrix-cell {
  padding: 9px 6px;
  border: 1px solid var(--border-default);
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.matrix-cell.free {
  background: var(--surface);
  color: var(--brand-deep);
  cursor: pointer;
}
.matrix-cell.free:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}
.matrix-cell.occupied { background: var(--status-info-bg); color: var(--status-info-text); }
.matrix-cell.pending-cell { background: var(--status-warning-bg); color: var(--status-warning-text); }
.matrix-cell.locked-cell { background: var(--status-danger-bg); color: var(--status-danger-text); }

.matrix-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--status-success-border);
  background: var(--status-success-bg);
  color: var(--status-success-text);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.matrix-slot-btn:hover {
  background: var(--brand-deep);
  color: #FFFFFF;
  border-color: var(--brand-deep);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.pricing-card.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-float);
  background-image: linear-gradient(180deg, rgba(234, 247, 238, 0.45) 0%, transparent 90px);
}
.pricing-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary-ink);
  background-color: var(--brand-primary-tint);
  border: 1px solid var(--brand-primary-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.pricing-price span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  flex: 1;
  list-style: none;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 5. Court Booking — Matrix, Controls & Sticky Summary */
.col-main-aside,
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}
.col-aside-main {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.sticky-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
}
@media (max-width: 1100px) {
  .col-main-aside, .booking-layout, .col-aside-main { grid-template-columns: 1fr; }
  .sticky-panel { position: relative !important; top: 0 !important; }
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.date-pill {
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--surface);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.date-pill:hover {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary-tint);
}
.date-pill.active {
  background: var(--brand-cta-gradient) !important;
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-brand);
}
.date-pill.active * { color: #FFFFFF !important; }
.date-pill-day { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.date-pill-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.date-pill-month { font-size: 0.68rem; opacity: 0.85; }

@media (max-width: 768px) {
  .date-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .date-pill {
    min-width: 86px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

.court-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 768px) {
  .court-options { grid-template-columns: 1fr; }
}
.court-option, button.court-option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.court-option:hover {
  border-color: var(--brand-primary);
}
.court-option.selected, .court-option.active {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary-tint);
  box-shadow: 0 0 0 1px var(--brand-primary);
}
.court-option-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.court-option-type, .court-option-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.court-option-price {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-primary-ink);
}
.court-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}
.court-option.selected .court-option-dot,
.court-option.active .court-option-dot {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  box-shadow: inset 0 0 0 3px #FFFFFF;
}

.duration-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .duration-pills { grid-template-columns: repeat(2, 1fr); }
}
.duration-pill {
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--surface);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.duration-pill:hover {
  border-color: var(--brand-primary);
}
.duration-pill.active {
  background: var(--brand-cta-gradient) !important;
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  color: #FFFFFF !important;
}

.timeline-widget { display: flex; flex-direction: column; gap: 6px; }
.timeline-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 22px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--surface-secondary);
  border: 1px solid var(--border-default);
  overflow: hidden;
}
.timeline-seg {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--status-success-border);
  transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.timeline-seg[role="button"] { cursor: pointer; }
.timeline-seg[role="button"]:hover { filter: brightness(0.88); transform: scaleY(1.12); }
.timeline-seg.booked, .timeline-block.booked { background: var(--notion-blue); }
.timeline-seg.pending, .timeline-block.pending { background: #D97706; }
.timeline-seg.locked, .timeline-block.locked { background: #DC2626; }
.timeline-block { position: absolute; top: 0; bottom: 0; }
.timeline-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.timeline-tick { font-variant-numeric: tabular-nums; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}
.slot-btn {
  position: relative;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.slot-btn:hover:not(:disabled) {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary-tint);
}
.slot-btn.peak {
  background-color: var(--status-warning-bg);
  border-color: var(--status-warning-border);
}
.slot-btn.selected {
  background: var(--brand-cta-gradient) !important;
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-brand);
}
.slot-btn.selected span { color: #FFFFFF !important; }
.slot-btn.booked, .slot-btn.occupied, .slot-btn.locked-slot, .slot-btn:disabled {
  background-color: var(--surface-secondary);
  border-color: var(--border-default);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.72;
}
.slot-peak-tag {
  position: absolute;
  top: -7px;
  right: 6px;
  background: #D97706;
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 4px;
}
.slot-time, .slot-btn-time { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.slot-price, .slot-btn-price { font-size: 0.69rem; color: var(--text-secondary); }
.slot-btn.occupied .slot-btn-time,
.slot-btn:disabled .slot-btn-time { color: var(--text-muted); }

/* Court x Time Booking Matrix */
.sn-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
}
.sn-matrix-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background-color: var(--surface);
  font-weight: 600;
}
.sn-booking-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.sn-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.sn-matrix-table th, .sn-matrix-table td {
  border-bottom: 1px solid var(--border-default);
  border-right: 1px solid var(--border-default);
  padding: 6px;
  text-align: center;
  font-size: 0.78rem;
}
.sn-matrix-table th:last-child, .sn-matrix-table td:last-child { border-right: none; }
.sn-matrix-table tr:last-child td { border-bottom: none; }
.sn-matrix-table th {
  background-color: var(--surface-secondary);
  font-weight: 700;
  color: var(--text-primary);
  padding: 9px 10px;
}
.sn-matrix-time-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: var(--surface-secondary);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.sn-matrix-cell-btn {
  width: 100%;
  min-height: 34px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.sn-matrix-cell-btn.is-free {
  background-color: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}
.sn-matrix-cell-btn.is-free:hover {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary-tint-hover);
  color: var(--brand-primary-ink);
}
.sn-matrix-cell-btn.is-selected {
  background: var(--brand-cta-gradient) !important;
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-brand);
}
.sn-matrix-cell-btn.is-booked {
  background-color: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-text);
  cursor: not-allowed;
}
.sn-matrix-cell-btn.is-pending {
  background-color: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning-text);
  cursor: not-allowed;
}
.sn-matrix-cell-btn.is-locked {
  background-color: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
  cursor: not-allowed;
}
.sn-matrix-cell-btn.is-past {
  background-color: var(--status-neutral-bg);
  border-color: var(--status-neutral-border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.sn-summary-header {
  background-color: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-default) !important;
}

.payment-summary {
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
}
.payment-line.total {
  padding-top: 10px;
  border-top: 1px dashed var(--border-strong);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.split-bill-callout {
  background-color: var(--brand-primary-tint);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  margin-top: 4px;
  color: var(--brand-primary-ink);
  border: 1px solid var(--brand-primary-border);
}

.sn-mobile-booking-bar { display: none; }
@media (max-width: 1023px) {
  .sn-mobile-booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 880;
    background-color: var(--surface);
    border-top: 1px solid var(--border-default);
    box-shadow: var(--shadow-float);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

/* 6. Pro Shop — Product Grid, Packshot Cards & Cart Panel */
.shop-toolbar {
  background-color: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.shop-search-box {
  flex: 1 1 260px;
  max-width: 440px;
}
.shop-admin-add-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 22px;
  align-items: start;
}
.shop-main-col { min-width: 0; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1180px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-search-box { max-width: 100%; }
  .shop-admin-add-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
}

.menu-item {
  background-color: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 310px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.menu-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-float);
}
.menu-item.is-selected {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary-tint);
}
.menu-item.is-out-of-stock {
  opacity: 0.72;
  background-color: var(--surface-secondary);
}

.menu-item-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #F1F6F3 100%);
  border: 1px solid var(--border-default);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
html[data-theme="dark"] .menu-item-media {
  background: radial-gradient(circle at 50% 40%, #1A2B22 0%, #121E18 100%);
}
.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.22s var(--ease-out);
}
.menu-item:hover .menu-item-img { transform: scale(1.04); }

.menu-item-cat-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 2;
}
html[data-theme="dark"] .menu-item-cat-pill {
  background: rgba(18, 30, 24, 0.92);
  color: var(--text-primary);
}

.menu-item-stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 2;
}
.menu-item-stock-badge.is-ok {
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}
.menu-item-stock-badge.is-low {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-border);
}
.menu-item-stock-badge.is-empty {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  border: 1px solid var(--status-danger-border);
}

.menu-item-selected-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-deep);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.18s ease;
  z-index: 2;
}
.menu-item-selected-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.menu-item-body { flex: 1; display: flex; flex-direction: column; }
.menu-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.38;
  color: var(--text-primary);
}
.menu-item-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.menu-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-default);
  margin-top: auto;
}
.menu-item-price-block { display: flex; flex-direction: column; min-width: 0; }
.menu-item-price-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.menu-item-price {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}
.menu-item.is-selected .menu-item-price {
  color: var(--brand-deep);
}

.menu-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.menu-item-stepper {
  display: none;
  align-items: center;
  gap: 2px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 2px;
}
.menu-item-stepper.is-visible { display: inline-flex; }
.menu-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-stepper-btn:hover:not(:disabled) {
  background: var(--brand-primary);
  color: #FFFFFF;
}
.menu-stepper-val {
  min-width: 20px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.menu-item-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.menu-item:not(.is-out-of-stock) .menu-item-cta:hover:not(:disabled),
.menu-item-cta.is-added {
  background: var(--brand-cta-gradient) !important;
  background-color: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  color: #FFFFFF !important;
}

.menu-item-del-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-item-del-btn:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}

/* Shop Cart Panel */
.shop-cart-header {
  background-color: var(--surface-secondary);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
  padding: 14px 18px;
}
.shop-cart-body { padding: 18px; }
.shop-cart-items {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.shop-cart-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-secondary);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}
.shop-cart-empty-title { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.shop-cart-empty-sub { font-size: 0.74rem; color: var(--text-muted); }

.shop-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-default);
}
.shop-cart-row:last-child { border-bottom: none; }
.shop-cart-thumb-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-default);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shop-cart-thumb { width: 100%; height: 100%; object-fit: contain; }
.shop-cart-row-info { flex: 1; min-width: 0; }
.shop-cart-row-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-cart-row-meta { font-size: 0.74rem; color: var(--text-secondary); }
.shop-cart-row-meta strong { color: var(--brand-deep); }
.shop-cart-row-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 2px;
}
.shop-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}
.shop-qty-btn:hover { background: var(--brand-primary); color: #FFFFFF; }
.shop-qty-val { min-width: 20px; text-align: center; font-size: 0.8rem; font-weight: 700; }
.shop-checkout-form { border-top: 1px solid var(--border-default); padding-top: 14px; }

.mobile-shop-cart-bar { display: none; }
@media (max-width: 960px) {
  .mobile-shop-cart-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 880;
    background: var(--surface);
    color: var(--text-primary);
    border-top: 2px solid var(--brand-primary);
    padding: 10px 16px;
    box-shadow: var(--shadow-float);
  }
  .mobile-shop-cart-bar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-shop-cart-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
  }
  .mobile-shop-cart-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
  }
}

/* 7. Spike OS Split-Screen Authentication (/Account/Login) */
.spk-auth-page {
  background-color: var(--surface-secondary);
  min-height: calc(100vh - var(--topbar-height));
  padding: 36px 0 56px;
}

.spk-auth-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.spk-auth-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  background-color: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.spk-auth-showcase {
  background: linear-gradient(150deg, #17251D 0%, #226B48 58%, #2E8B57 100%);
  color: #FFFFFF;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.spk-auth-brand-logo {
  height: 58px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));
}

.spk-auth-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #EAF7EE;
  font-size: 0.75rem;
  font-weight: 700;
}

.spk-auth-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 14px 0 12px;
}

.spk-auth-showcase-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(234, 247, 238, 0.88);
}

.spk-auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.spk-auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
}

.spk-auth-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(107, 203, 119, 0.25);
  color: #EAF7EE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spk-auth-form-panel {
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background-color: var(--surface);
}

.spk-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  gap: 4px;
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.spk-auth-tab {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--dur-fast) var(--ease-out);
}
.spk-auth-tab.active {
  background: var(--brand-cta-gradient);
  background-color: var(--brand-deep);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.spk-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.spk-auth-input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
}
.spk-auth-input-wrap .form-input {
  padding-left: 38px;
  padding-right: 38px;
}
.spk-pass-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.spk-pass-toggle:hover { color: var(--brand-primary); }

.pass-strength-wrap { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pass-strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pass-strength-seg { height: 4px; border-radius: 99px; background: var(--border-default); transition: background-color 0.2s ease; }
.pass-strength-text { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }

.demo-accounts-box {
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-accounts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.demo-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.demo-role-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all var(--dur-fast) var(--ease-out);
}
.demo-role-card:hover, .demo-role-card.active {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary-tint);
}
.demo-role-badge { font-size: 0.75rem; font-weight: 700; color: var(--text-primary); display: inline-flex; align-items: center; gap: 4px; }
.demo-role-email { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }

.field-error-msg { display: none; font-size: 0.74rem; color: var(--status-danger-text); font-weight: 600; margin-top: 2px; }
.field-error-msg.visible { display: block; }
.has-error .form-input { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14); }

@media (max-width: 900px) {
  .spk-auth-grid { grid-template-columns: 1fr; }
  .spk-auth-showcase { padding: 28px 24px; }
  .spk-auth-form-panel { padding: 28px 20px; }
  .demo-role-cards { grid-template-columns: 1fr; }
}

/* 8. Member Profile & Athlete Passport (/Account/Profile) */
.profile-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 992px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
}

.member-passport {
  max-width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
}
@media (max-width: 992px) {
  .member-passport { position: static; top: auto; }
}
.member-passport-banner {
  height: 86px;
  background: var(--brand-gradient);
  position: relative;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.member-passport-code {
  background: rgba(23, 37, 29, 0.86);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.member-passport-tier {
  background: #FFFFFF;
  color: #17251D;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.member-passport-body {
  padding: 0 20px 22px;
  text-align: center;
}
.member-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: -48px auto 12px;
  border-radius: 50%;
  padding: 3px;
  background: var(--surface);
  border: 2.5px solid var(--brand-primary);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.member-avatar-wrap.is-updating {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.22), var(--shadow-brand);
}
.member-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--brand-primary-tint);
  display: block;
}
.spk-profile-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand-cta-gradient);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  user-select: none;
}
.spk-avatar-inline-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand-cta-gradient);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  user-select: none;
}
.member-avatar-wrap [hidden],
.spk-avatar-inline-preview [hidden] {
  display: none !important;
}
.member-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.member-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.member-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  margin-bottom: 16px;
}
.member-kpi-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-primary-ink);
  display: block;
}
.member-kpi-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}
.member-specs {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--border-default);
  font-size: 0.84rem;
}
.member-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.member-spec-row span:first-child {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.member-spec-row strong {
  color: var(--text-primary);
  text-align: right;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.profile-tab-btn {
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--dur-fast) var(--ease-out);
}
.profile-tab-btn:hover { color: var(--text-primary); }
.profile-tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}
.profile-tab-pane { display: none; }
.profile-tab-pane.active { display: block; }

/* Avatar Studio Control Panel (/Account/Profile) */
.spk-avatar-studio {
  background: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spk-avatar-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.spk-avatar-studio-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spk-avatar-studio-title .form-label {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.spk-avatar-studio-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spk-avatar-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  white-space: nowrap;
}

.spk-avatar-source-pill.is-active {
  background: var(--brand-primary-tint);
  color: var(--brand-primary-ink);
  border-color: var(--brand-primary-border);
}

.spk-avatar-upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.spk-avatar-upload-card:hover {
  border-color: var(--brand-primary);
  background: var(--surface-subtle);
}

.spk-avatar-upload-card.is-dragover {
  border-color: var(--brand-primary);
  border-style: solid;
  background: var(--brand-primary-tint);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.14);
}

.spk-avatar-upload-card.has-upload {
  border-style: solid;
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
}

.spk-avatar-upload-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.spk-avatar-inline-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background: var(--surface);
  border: 2px solid var(--brand-primary);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.spk-avatar-inline-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--brand-primary-tint);
  display: block;
}

.spk-avatar-upload-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spk-avatar-upload-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.spk-avatar-upload-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.spk-avatar-upload-card.has-upload .spk-avatar-upload-meta {
  color: var(--brand-primary-ink);
  font-weight: 600;
}

.spk-avatar-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.spk-avatar-pick-btn {
  cursor: pointer;
  margin-bottom: 0;
}

.spk-avatar-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.spk-avatar-studio [hidden] {
  display: none !important;
}

.spk-avatar-presets-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border-default);
}

.spk-avatar-presets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.spk-avatar-presets-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.spk-avatar-presets-count {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.spk-avatar-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.spk-avatar-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 7px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  background: var(--surface);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.spk-avatar-tile:hover {
  border-color: var(--brand-primary-border);
  background: var(--surface-subtle);
  transform: translateY(-2px);
}

.spk-avatar-tile:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.spk-avatar-tile.is-selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
  box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.18), var(--shadow-xs);
}

.spk-avatar-tile-thumb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--brand-primary-tint);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.spk-avatar-tile.is-selected .spk-avatar-tile-thumb {
  border-color: var(--brand-primary);
}

.spk-avatar-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spk-avatar-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.15;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spk-avatar-tile.is-selected .spk-avatar-tile-name {
  color: var(--brand-primary-ink);
  font-weight: 700;
}

.spk-avatar-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  border: 2px solid var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  pointer-events: none;
}

.spk-avatar-tile.is-selected .spk-avatar-check {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1120px) {
  .spk-avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .spk-avatar-studio {
    padding: 12px;
  }
  .spk-avatar-upload-card {
    flex-direction: column;
    align-items: stretch;
  }
  .spk-avatar-upload-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .spk-avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .spk-avatar-tile-thumb {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-avatar-wrap,
  .spk-avatar-tile,
  .spk-avatar-check {
    transition: none;
  }
  .member-avatar-wrap.is-updating,
  .spk-avatar-tile:hover {
    transform: none;
  }
}
.paddle-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.paddle-chip {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  cursor: pointer;
}
.paddle-chip:hover {
  background: var(--brand-primary-tint);
  color: var(--brand-primary-ink);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   PAYPAL SANDBOX PAYMENT UI COMPONENTS (SPIKE OS SOFT GREEN IDENTITY)
   ========================================================================== */
.spk-payment-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.spk-pay-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  text-align: left;
  width: 100%;
}
.spk-pay-option:hover:not(.is-disabled) {
  border-color: var(--brand-primary);
  background: var(--surface-secondary);
}
.spk-pay-option.is-selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
  box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.14);
}
.spk-pay-option.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.spk-pay-radio {
  margin-top: 2px;
  accent-color: var(--brand-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.spk-pay-body {
  flex: 1;
  min-width: 0;
}
.spk-pay-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.spk-pay-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spk-pay-desc {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.spk-sandbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary-tint);
  border: 1px solid rgba(46, 139, 87, 0.28);
  color: var(--brand-primary-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.spk-usd-quote-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed rgba(46, 139, 87, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.spk-pp-outcome-card {
  box-shadow: var(--shadow-md);
}
.pp-spin {
  animation: spkPpSpin 1.1s linear infinite;
}
@keyframes spkPpSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   SPIKE OS — PAYPAL PAYMENT SUCCESS & RECEIPT STAGE (.spk-receipt-*)
   Strict CSS Namespace Isolation — Zero Global Component Overrides
   ========================================================================== */
.spk-receipt-stage {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--topbar-height, 64px) - 160px);
  padding: clamp(12px, 1.6vw, 18px) 16px clamp(16px, 2vw, 24px);
  background: linear-gradient(145deg, #F8FFFB 0%, #E9FAF0 55%, #F3FFF7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spk-receipt-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.spk-receipt-court-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #16A34A;
}

.spk-receipt-court-art {
  position: absolute;
  right: clamp(8px, 3vw, 44px);
  bottom: clamp(8px, 2vw, 24px);
  width: clamp(170px, 18vw, 250px);
  height: auto;
  opacity: 0.72;
  filter: drop-shadow(0 16px 32px rgba(6, 95, 70, 0.14));
}

.spk-receipt-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.spk-receipt-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 32px;
  padding: 22px 34px 20px;
  box-shadow:
    0 24px 70px rgba(15, 70, 40, 0.08),
    0 4px 16px rgba(15, 70, 40, 0.03);
  color: #102A22;
  animation: spkReceiptCardEnter 420ms var(--ease-out) both;
}

.spk-receipt-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.spk-receipt-env-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: #F0FDF4;
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #15803D;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spk-receipt-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}
.spk-receipt-live-chip.is-warning {
  background: #FFFBEB;
  color: #92400E;
  border-color: #FDE68A;
}
.spk-receipt-live-chip.is-danger {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

.spk-receipt-hero {
  text-align: center;
  margin-bottom: 16px;
}

.spk-receipt-emblem-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 78px;
  margin: 0 auto 10px;
}

.spk-receipt-halo {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.04) 68%, transparent 100%);
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 320ms ease, transform 380ms var(--ease-out);
}

.spk-receipt-card.is-state-completed .spk-receipt-halo {
  opacity: 1;
  transform: scale(1.06);
  animation: spkReceiptHaloSoft 2.4s ease-out 1;
}

.spk-receipt-circle {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, #065F46 0%, #15803D 50%, #22C55E 100%);
  box-shadow:
    0 14px 30px -6px rgba(21, 128, 61, 0.36),
    inset 0 2px 6px rgba(255, 255, 255, 0.28);
  transition: background 240ms ease, box-shadow 240ms ease, transform 280ms var(--ease-out);
}

.spk-receipt-card.is-state-completed .spk-receipt-circle {
  animation: spkReceiptPop 420ms var(--ease-out) both;
}
.spk-receipt-card.is-state-loading .spk-receipt-circle {
  background: #EAF7EE;
  color: #15803D;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.14);
}
.spk-receipt-card.is-state-cancelled .spk-receipt-circle,
.spk-receipt-card.is-state-pending .spk-receipt-circle {
  background: #FEF3C7;
  color: #B45309;
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.16);
}
.spk-receipt-card.is-state-refunded .spk-receipt-circle,
.spk-receipt-card.is-state-failed .spk-receipt-circle {
  background: #FEE2E2;
  color: #B91C1C;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.16);
}

.spk-receipt-check-svg {
  width: 34px;
  height: 34px;
}
.spk-receipt-check-path {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: spkReceiptCheckDraw 460ms 120ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.spk-receipt-laurel,
.spk-receipt-fleck {
  opacity: 0;
  pointer-events: none;
  color: #22C55E;
  transition: opacity 280ms ease;
}

.spk-receipt-laurel {
  position: absolute;
  top: 4px;
  width: 54px;
  height: 82px;
}
.spk-receipt-laurel-left { left: 10px; }
.spk-receipt-laurel-right { right: 10px; }

.spk-receipt-fleck {
  position: absolute;
  width: 9px;
  height: 5px;
  border-radius: 9999px;
  background: #86EFAC;
}
.spk-fleck-1 { left: 2px; top: 22px; transform: rotate(-28deg); }
.spk-fleck-2 { left: 16px; top: 68px; width: 7px; height: 4px; background: #BBF7D0; transform: rotate(24deg); }
.spk-fleck-3 { right: 2px; top: 20px; transform: rotate(28deg); }
.spk-fleck-4 { right: 16px; top: 68px; width: 7px; height: 4px; background: #BBF7D0; transform: rotate(-24deg); }

.spk-receipt-card.is-state-completed .spk-receipt-laurel,
.spk-receipt-card.is-state-completed .spk-receipt-fleck {
  opacity: 1;
  animation: spkReceiptLaurelFade 500ms 120ms var(--ease-out) both;
}

.spk-receipt-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.8vw, 1.98rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.24;
  color: #102A22;
}
.spk-receipt-title-accent {
  color: #15803D;
}
.spk-receipt-subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: #64748B;
  font-size: 0.94rem;
  line-height: 1.54;
}

/* Monetary Highlight Banner */
.spk-receipt-amount-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 20px;
  margin: 0 auto 16px;
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #EAFBF0 52%, #DCFCE7 100%);
  border: 1px solid rgba(34, 197, 94, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px rgba(21, 128, 61, 0.05);
  animation: spkReceiptAmountReveal 380ms 70ms var(--ease-out) both;
}
.spk-receipt-amount-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #22C55E;
  pointer-events: none;
}
.spk-receipt-wave-bottom {
  fill: rgba(34, 197, 94, 0.11);
}
.spk-receipt-wave-top {
  fill: rgba(255, 255, 255, 0.56);
}
.spk-receipt-amount-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.spk-receipt-amount-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
}
.spk-receipt-amount-vnd {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.18rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #065F46;
  font-variant-numeric: tabular-nums;
}
.spk-receipt-amount-usd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 163, 74, 0.16);
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Transaction Details Card */
.spk-receipt-details-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #E2ECE5;
  box-shadow: 0 4px 16px rgba(15, 70, 40, 0.03);
  overflow: hidden;
  animation: spkReceiptAmountReveal 400ms 130ms var(--ease-out) both;
}

.spk-receipt-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(248, 253, 250, 0.85);
  border-bottom: 1px solid #E8F0EB;
}
.spk-receipt-details-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #102A22;
}
.spk-receipt-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #DCFCE7;
  border: 1px solid rgba(22, 163, 74, 0.24);
  color: #15803D;
}
.spk-receipt-verified-badge.is-pending {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #92400E;
}
.spk-receipt-verified-badge.is-danger {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #B91C1C;
}
.spk-receipt-verified-badge.is-neutral {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

.spk-receipt-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.spk-receipt-col {
  padding: 6px 22px;
  min-width: 0;
}
.spk-receipt-col-left {
  border-right: 1px solid #ECF3EE;
}

.spk-receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F6F3;
}
.spk-receipt-col .spk-receipt-row:last-child {
  border-bottom: none;
}

.spk-receipt-row-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #64748B;
  font-size: 0.84rem;
  font-weight: 500;
  flex-shrink: 0;
}
.spk-receipt-row-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #EDF9F1;
  color: #15803D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spk-pp-monogram {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.82rem;
  color: #065F46;
  line-height: 1;
}

.spk-receipt-row-val {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  text-align: right;
  font-weight: 700;
  font-size: 0.88rem;
  color: #102A22;
  word-break: break-word;
}
.spk-receipt-row-val.is-mono {
  font-family: var(--font-mono);
  font-size: 0.83rem;
}

.spk-receipt-copy-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #DFE8E1;
  background: #F8FFFB;
  color: #4A5950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.spk-receipt-copy-btn:hover {
  background: #DCFCE7;
  border-color: #22C55E;
  color: #065F46;
}

/* Booking QR section spacing inside Receipt Card */
.spk-receipt-ticket-section {
  max-width: 520px;
  margin: 18px auto 0;
  text-align: left;
}

/* Action Buttons Row */
.spk-receipt-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.spk-receipt-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #065F46 0%, #15803D 52%, #22C55E 100%);
  color: #FFFFFF !important;
  border: 1px solid #065F46;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -6px rgba(21, 128, 61, 0.36);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), filter 200ms ease;
}
.spk-receipt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(6, 95, 70, 0.44);
  filter: brightness(1.03);
}
.spk-receipt-btn-primary .spk-receipt-btn-arrow {
  transition: transform 200ms var(--ease-out);
}
.spk-receipt-btn-primary:hover .spk-receipt-btn-arrow {
  transform: translateX(3px);
}

.spk-receipt-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #065F46 !important;
  border: 1.5px solid #CFE3D6;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}
.spk-receipt-btn-secondary:hover {
  background: #F0FDF4;
  border-color: #15803D;
  transform: translateY(-1px);
}

.spk-receipt-print-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2px;
}
.spk-receipt-btn-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748B;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.spk-receipt-btn-print:hover {
  color: #065F46;
  background: #F0FDF4;
  border-color: #C7E6D1;
}

@keyframes spkReceiptCardEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spkReceiptPop {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spkReceiptCheckDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes spkReceiptLaurelFade {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spkReceiptAmountReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spkReceiptHaloSoft {
  0% { transform: scale(0.82); opacity: 0.4; }
  65% { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1.06); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .spk-receipt-card,
  .spk-receipt-circle,
  .spk-receipt-check-path,
  .spk-receipt-laurel,
  .spk-receipt-fleck,
  .spk-receipt-amount-box,
  .spk-receipt-details-card,
  .spk-receipt-halo {
    animation: none !important;
    transition: none !important;
  }
  .spk-receipt-check-path {
    stroke-dashoffset: 0 !important;
  }
}

/* Dark Theme Harmony for Receipt Page */
html[data-theme="dark"] .spk-receipt-stage {
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(34, 197, 94, 0.11) 0%, transparent 70%),
    #0C1410;
}
html[data-theme="dark"] .spk-receipt-court-lines {
  color: #4ADE80;
  opacity: 0.25;
}
html[data-theme="dark"] .spk-receipt-court-art {
  opacity: 0.35;
}
html[data-theme="dark"] .spk-receipt-card {
  background: rgba(18, 30, 24, 0.94);
  border-color: rgba(107, 203, 119, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52);
  color: #ECFDF3;
}
html[data-theme="dark"] .spk-receipt-env-pill {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(107, 203, 119, 0.32);
  color: #86EFAC;
}
html[data-theme="dark"] .spk-receipt-title {
  color: #ECFDF3;
}
html[data-theme="dark"] .spk-receipt-title-accent {
  color: #4ADE80;
}
html[data-theme="dark"] .spk-receipt-subtitle {
  color: #9FB5A8;
}
html[data-theme="dark"] .spk-receipt-amount-box {
  background: linear-gradient(135deg, rgba(23, 38, 31, 0.95) 0%, rgba(22, 68, 45, 0.72) 100%);
  border-color: rgba(74, 222, 128, 0.28);
  box-shadow: none;
}
html[data-theme="dark"] .spk-receipt-wave-bottom {
  fill: rgba(74, 222, 128, 0.08);
}
html[data-theme="dark"] .spk-receipt-wave-top {
  fill: rgba(110, 231, 183, 0.06);
}
html[data-theme="dark"] .spk-receipt-amount-label {
  color: #B4C6BC;
}
html[data-theme="dark"] .spk-receipt-amount-vnd {
  color: #6EE7B7;
}
html[data-theme="dark"] .spk-receipt-amount-usd-pill {
  background: rgba(12, 20, 16, 0.72);
  border-color: rgba(107, 203, 119, 0.26);
  color: #D1FAE5;
}
html[data-theme="dark"] .spk-receipt-details-card {
  background: rgba(20, 34, 27, 0.92);
  border-color: #263E32;
  box-shadow: none;
}
html[data-theme="dark"] .spk-receipt-details-head {
  background: rgba(25, 42, 33, 0.9);
  border-bottom-color: #263E32;
}
html[data-theme="dark"] .spk-receipt-details-heading {
  color: #ECFDF3;
}
html[data-theme="dark"] .spk-receipt-verified-badge {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.34);
  color: #86EFAC;
}
html[data-theme="dark"] .spk-receipt-col-left {
  border-right-color: #263E32;
}
html[data-theme="dark"] .spk-receipt-row {
  border-bottom-color: #20342A;
}
html[data-theme="dark"] .spk-receipt-row-key {
  color: #94ACA0;
}
html[data-theme="dark"] .spk-receipt-row-ico {
  background: rgba(46, 139, 87, 0.22);
  color: #6EE7B7;
}
html[data-theme="dark"] .spk-pp-monogram {
  color: #86EFAC;
}
html[data-theme="dark"] .spk-receipt-row-val {
  color: #ECFDF3;
}
html[data-theme="dark"] .spk-receipt-copy-btn {
  background: #17261F;
  border-color: #2F4B3D;
  color: #9FB5A8;
}
html[data-theme="dark"] .spk-receipt-copy-btn:hover {
  background: rgba(46, 139, 87, 0.32);
  color: #ECFDF3;
}
html[data-theme="dark"] .spk-receipt-btn-secondary {
  background: #17261F;
  border-color: #314D3F;
  color: #86EFAC !important;
}
html[data-theme="dark"] .spk-receipt-btn-secondary:hover {
  background: #1F352B;
  border-color: #6BCB77;
}
html[data-theme="dark"] .spk-receipt-btn-print {
  color: #9FB5A8;
}
html[data-theme="dark"] .spk-receipt-btn-print:hover {
  color: #86EFAC;
  background: rgba(46, 139, 87, 0.22);
}

/* Responsive Breakpoints (1024px, 768px, 320px-640px) */
@media (max-width: 1023px) {
  .spk-receipt-court-art {
    display: none;
  }
  .spk-receipt-card {
    padding: 30px 26px 28px;
  }
}

@media (max-width: 767px) {
  .spk-receipt-stage {
    padding: 20px 12px 36px;
    align-items: flex-start;
  }
  .spk-receipt-card {
    border-radius: 22px;
    padding: 24px 16px 22px;
  }
  .spk-receipt-emblem-wrap {
    width: 148px;
    height: 78px;
  }
  .spk-receipt-circle {
    width: 64px;
    height: 64px;
  }
  .spk-receipt-laurel {
    width: 44px;
    height: 70px;
  }
  .spk-receipt-amount-box {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .spk-receipt-details-head {
    padding: 13px 15px;
  }
  .spk-receipt-details-grid {
    grid-template-columns: 1fr;
  }
  .spk-receipt-col {
    padding: 4px 15px;
  }
  .spk-receipt-col-left {
    border-right: none;
    border-bottom: 1px solid #ECF3EE;
  }
  html[data-theme="dark"] .spk-receipt-col-left {
    border-bottom-color: #263E32;
  }
  .spk-receipt-row {
    padding: 11px 0;
  }
  .spk-receipt-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .spk-receipt-btn-primary,
  .spk-receipt-btn-secondary {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .spk-receipt-col {
    padding: 4px 12px;
  }
  .spk-receipt-row {
    padding: 9px 0;
    gap: 8px;
    flex-wrap: wrap;
  }
  .spk-receipt-row-ico {
    width: 24px;
    height: 24px;
  }
  .spk-receipt-row-key {
    font-size: 0.78rem;
    gap: 7px;
  }
  .spk-receipt-row-val {
    font-size: 0.82rem;
  }
  .spk-receipt-row-val.is-mono {
    font-size: 0.73rem;
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

/* Print-Friendly Receipt Layout */
@media print {
  .site-header,
  .site-footer,
  .spk-receipt-bg-decor,
  .spk-receipt-actions,
  .spk-receipt-copy-btn,
  .spk-receipt-laurel,
  .spk-receipt-fleck,
  .spk-receipt-halo,
  .toast-container {
    display: none !important;
  }
  body,
  .spk-receipt-stage {
    background: #FFFFFF !important;
    padding: 0 !important;
    min-height: 0 !important;
    display: block !important;
  }
  .spk-receipt-shell {
    max-width: 100% !important;
  }
  .spk-receipt-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 18px !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
  }
  .spk-receipt-circle {
    background: #15803D !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .spk-receipt-amount-box {
    background: #F0FDF4 !important;
    border: 1px solid #BBF7D0 !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .spk-receipt-ticket-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* ==========================================================================
   PAYPAL RETURN — SCOPED 4K WEBP BACKGROUND IMAGE ONLY
   Applies exclusively to /Payment/PayPalReturn (.spk-paypal-return-page).
   Never affects /Payment/PayPalCancel, receipt card interior, or global styles.
   ========================================================================== */
.spk-receipt-stage.spk-paypal-return-page {
  position: relative;
  isolation: isolate;
  background-color: #F0FDF4;
  background-image: url("/images/payment/paypal-receipt-background.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: none;
  opacity: 1;
}

html[data-theme="dark"] .spk-receipt-stage.spk-paypal-return-page {
  background-color: #0C1410;
  background-image:
    linear-gradient(180deg, rgba(8, 18, 13, 0.44) 0%, rgba(10, 22, 16, 0.52) 100%),
    url("/images/payment/paypal-receipt-background.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: none;
  opacity: 1;
}

@media print {
  .spk-receipt-stage.spk-paypal-return-page,
  html[data-theme="dark"] .spk-receipt-stage.spk-paypal-return-page {
    background: #FFFFFF !important;
    background-image: none !important;
  }
}

html[data-theme="dark"] .spk-pay-option.is-selected {
  background: rgba(46, 139, 87, 0.16);
  border-color: var(--brand-secondary);
}
html[data-theme="dark"] .spk-sandbox-pill {
  background: rgba(107, 203, 119, 0.16);
  border-color: rgba(107, 203, 119, 0.35);
  color: #86efac;
}
html[data-theme="dark"] .spk-usd-quote-box {
  background: rgba(15, 28, 21, 0.7);
  border-color: rgba(107, 203, 119, 0.3);
}
