/* Trampoline park look ("Bounce"). Only applies when the venue profile is a trampoline park. */
[data-profile="trampoline"],
[data-profile="trampoline"][data-theme="light"] {
  --bg-primary: #edf6ff; --bg-secondary: #ffffff; --bg-card: #ffffff; --bg-input: #f1f5fb; --bg-raised: #f7faff;
  --accent: #ff4d6d; --accent-2: #3a86ff; --accent-hover: #e63e5c; --on-accent: #ffffff;
  --text-primary: #1d2340; --text-secondary: #5b6488; --text-muted: #9098b5;
  --border: #dfe7f4; --border-strong: #c3cfe4;
  --success: #10b981; --danger: #ef4444; --warning: #f59e0b;
  --press: #c92d4b;
  --shadow: 0 2px 0 rgba(29, 35, 64, 0.06), 0 10px 24px rgba(58, 134, 255, 0.08);
  --shadow-hover: 0 2px 0 rgba(29, 35, 64, 0.08), 0 16px 32px rgba(58, 134, 255, 0.14);
  --grad: linear-gradient(135deg, #ff4d6d 0%, #ff8e3c 100%);
  --glow: radial-gradient(circle at 1px 1px, rgba(58, 134, 255, 0.13) 1.5px, transparent 0) 0 0 / 22px 22px;
  --tile-1: #ff4d6d; --tile-2: #10b981; --tile-3: #3a86ff; --tile-4: #f59e0b; --tile-5: #a855f7; --tile-6: #06b6d4;
  --bands: linear-gradient(90deg, #ef4444 0 16.6%, #f97316 0 33.3%, #eab308 0 50%, #22c55e 0 66.6%, #3b82f6 0 83.3%, #a855f7 0);
  color-scheme: light;
}
[data-profile="trampoline"][data-theme="dark"] {
  --bg-primary: #150f2a; --bg-secondary: #1d163a; --bg-card: #221a42; --bg-input: #2c2352; --bg-raised: #2a214c;
  --accent: #ff5c8a; --accent-2: #4cc9f0; --accent-hover: #ff86a8; --on-accent: #ffffff;
  --text-primary: #f6f3ff; --text-secondary: #b6acd9; --text-muted: #7f75a6;
  --border: rgba(182, 172, 217, 0.16); --border-strong: rgba(182, 172, 217, 0.30);
  --press: #b8325b;
  --shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 10px 24px rgba(0, 0, 0, 0.25);
  --grad: linear-gradient(135deg, #ff5c8a 0%, #ff9f43 100%);
  --glow: radial-gradient(circle at 1px 1px, rgba(76, 201, 240, 0.12) 1.5px, transparent 0) 0 0 / 22px 22px;
  color-scheme: dark;
}

[data-profile="trampoline"] body { font-family: 'Nunito', 'Inter', system-ui, sans-serif; background-attachment: fixed; }
[data-profile="trampoline"] h1, [data-profile="trampoline"] h2, [data-profile="trampoline"] h3,
[data-profile="trampoline"] .minutes, [data-profile="trampoline"] .k-value, [data-profile="trampoline"] .jp-ring-num b,
[data-profile="trampoline"] .jp-time span, [data-profile="trampoline"] .total-amount, [data-profile="trampoline"] #totalAmount {
  font-family: 'Baloo 2', 'Nunito', sans-serif; letter-spacing: 0;
}
[dir="rtl"][data-profile="trampoline"] body { font-family: 'IBM Plex Sans Arabic', 'Nunito', sans-serif; }

/* Header: white bar with a wristband-colour stripe */
[data-profile="trampoline"] .header { background: var(--bg-secondary); border-bottom: 0; box-shadow: 0 6px 20px rgba(29, 35, 64, 0.06); }
[data-profile="trampoline"] .header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--bands); }
[data-profile="trampoline"] .logo-icon { border-radius: 50%; box-shadow: 0 4px 0 var(--press); }
[data-profile="trampoline"] .logo-text h1 { font-size: 21px; letter-spacing: 0.5px; }
[data-profile="trampoline"] .logo-text p { color: var(--accent); font-weight: 800; }

/* Chunky, pressable buttons and soft round cards */
[data-profile="trampoline"] .btn { border-radius: 999px; font-weight: 800; }
[data-profile="trampoline"] .btn-primary { background: var(--grad); box-shadow: 0 4px 0 var(--press); }
[data-profile="trampoline"] .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--press); }
[data-profile="trampoline"] .btn-secondary { box-shadow: 0 3px 0 var(--border-strong); }
[data-profile="trampoline"] .shift-info, [data-profile="trampoline"] .player-card, [data-profile="trampoline"] .payment-summary,
[data-profile="trampoline"] .kpi, [data-profile="trampoline"] .action-card-small, [data-profile="trampoline"] .time-option { border-radius: 22px; }
[data-profile="trampoline"] .pin-key { border-radius: 50%; aspect-ratio: 1; min-height: 0; box-shadow: 0 4px 0 var(--border-strong); }
[data-profile="trampoline"] .pin-key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border-strong); }
[data-profile="trampoline"] .pin-screen .logo-icon { border-radius: 50%; width: 84px; height: 84px; font-size: 40px; }
[data-profile="trampoline"] .pin-screen .logo-text h1 { font-size: 34px; }

/* Home screen: side rail plus a board-first layout */
[data-profile="trampoline"] #dashboard .dashboard {
  max-width: 1280px; display: grid; gap: 18px; align-items: start;
  grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "rail shift shift" "rail kpi kpi" "rail cap sell" "rail strip strip" "rail floor floor";
}
[data-profile="trampoline"] #dashboard .shift-info { grid-area: shift; margin: 0; }
[data-profile="trampoline"] #dashboard .kpi-strip { grid-area: kpi; margin: 0; }
[data-profile="trampoline"] #dashboard .jp-cap { grid-area: cap; }
[data-profile="trampoline"] #dashboard .jp-sell { grid-area: sell; }
[data-profile="trampoline"] #dashboard .jp-strip { grid-area: strip; }
[data-profile="trampoline"] #dashboard .jp-floor { grid-area: floor; margin: 0; }
[data-profile="trampoline"] #dashboard .jp-rail {
  grid-area: rail; position: sticky; top: 96px; margin: 0; display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 12px; box-shadow: var(--shadow);
}
[data-profile="trampoline"] .jp-rail .action-card-small {
  border: 0; box-shadow: none; background: transparent; padding: 10px 12px; border-radius: 16px; gap: 12px; min-height: 0;
}
[data-profile="trampoline"] .jp-rail .action-card-small:hover { background: var(--bg-raised); transform: none; }
[data-profile="trampoline"] .jp-rail .action-card-small .icon { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; flex-shrink: 0; }
[data-profile="trampoline"] .jp-rail .action-card-small h3 { font-size: 15px !important; }
[data-profile="trampoline"] .jp-rail .action-card-small p { display: none; }

[data-profile="trampoline"] .jp-sell {
  margin: 0; min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  background: var(--grad); color: #fff; border: 0; border-radius: 28px; padding: 28px; box-shadow: 0 6px 0 var(--press);
  position: relative; overflow: hidden;
}
[data-profile="trampoline"] .jp-sell::before {
  content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); box-shadow: -60px 120px 0 -30px rgba(255, 255, 255, 0.10);
}
[data-profile="trampoline"] .jp-sell:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--press); }
[data-profile="trampoline"] .jp-sell > * { align-self: flex-start; position: relative; z-index: 1; }
[data-profile="trampoline"] .jp-sell h3 { font-size: 30px; color: #fff; }
[data-profile="trampoline"] .jp-sell p { color: rgba(255, 255, 255, 0.9); font-weight: 700; }
[data-profile="trampoline"] .jp-sell .action-card-icon { background: rgba(255, 255, 255, 0.22); color: #fff; border-radius: 50%; box-shadow: none; }

/* Capacity ring */
.jp-cap { display: flex; align-items: center; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 28px; padding: 20px 24px; box-shadow: var(--shadow); --level: var(--success); }
.jp-cap.busy { --level: var(--warning); }
.jp-cap.full { --level: var(--danger); }
.jp-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.jp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jp-ring circle { fill: none; stroke-width: 12; }
.jp-ring .track { stroke: var(--bg-input); }
.jp-ring .fill { stroke: var(--level); stroke-linecap: round; transition: stroke-dashoffset 0.8s ease, stroke 0.4s; }
.jp-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.jp-ring-num b { font-size: 40px; font-weight: 800; }
.jp-ring-num span { font-size: 13px; color: var(--text-secondary); font-weight: 700; }
.jp-cap-txt small { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 800; color: var(--text-secondary); }
.jp-cap-txt h3 { font-size: 24px; margin: 2px 0 6px; }
.jp-cap-txt p { display: inline-block; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px;
  color: var(--level); background: color-mix(in srgb, var(--level) 14%, transparent); }

/* Today's slots strip */
.jp-strip, .jp-floor { background: var(--bg-card); border: 1px solid var(--border); border-radius: 28px; padding: 18px 20px; box-shadow: var(--shadow); }
.jp-strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.jp-strip-slot { border: 1px solid var(--border); border-radius: 18px; padding: 12px; background: var(--bg-raised); border-top: 5px solid var(--band); }
.jp-strip-slot .t { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 18px; }
.jp-strip-slot .b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.jp-strip-slot .b i, .jp-slot-band i, .jp-pay-band i { width: 10px; height: 10px; border-radius: 50%; background: var(--band); display: inline-block; }
.jp-strip-slot .bar { height: 6px; border-radius: 3px; background: var(--bg-input); margin: 8px 0 6px; overflow: hidden; }
.jp-strip-slot .bar i { display: block; height: 100%; background: var(--band); border-radius: 3px; }
.jp-strip-slot .l { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.jp-strip-slot.full { opacity: 0.6; }

/* Floor board grouped by wristband */
.jp-floor-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.jp-floor-head h3 { font-size: 19px; font-weight: 800; }
.jp-floor-head span { font-size: 12px; color: var(--text-secondary); font-weight: 700; }
.jp-empty { color: var(--text-muted); font-size: 14px; padding: 8px 0 4px; }
.jp-group { border: 1px solid var(--border); border-inline-start: 6px solid var(--band); border-radius: 18px; padding: 4px 14px; margin-top: 10px; }
.jp-group-head { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; }
.jp-group-head b { font-size: 15px; }
.jp-group-head span { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.jp-next { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--border); }
.jp-session { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 0; }
.jp-group-head + .jp-session, .jp-group > .jp-session:first-child { border-top: 0; }
.jp-session + .jp-session { border-top: 1px solid var(--border); }
.jp-who b { display: block; font-size: 15px; }
.jp-who small, .jp-time small { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.jp-time { text-align: end; }
.jp-time span { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--success); line-height: 1.1; }
.jp-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bg-input); overflow: hidden; }
.jp-bar i { display: block; height: 100%; background: var(--band, var(--success)); border-radius: 4px; transition: width 1s linear; }
.jp-session.wait .jp-time span { color: var(--accent-2); }
.jp-session.soon .jp-time span { color: var(--warning); }
.jp-session.up .jp-time span { color: var(--danger); animation: jpBlink 1s steps(2) infinite; }
.jp-session.up .jp-bar i { background: var(--danger); }
@keyframes jpBlink { 50% { opacity: 0.35; } }
.jp-band { display: block; flex-shrink: 0; }
.jp-floor em, .jp-strip em, .jp-slot em { font-style: normal; }

/* Booking: session lengths, add-ons, waivers, start slots */
.jp-times { grid-template-columns: repeat(4, 1fr); }
.jp-times .time-option { position: relative; padding: 24px 12px; }
.jp-times .time-option .minutes { font-size: 48px; }
.jp-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: var(--on-accent);
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
[data-profile="trampoline"] .time-option.selected { box-shadow: 0 4px 0 var(--press); border-color: var(--accent); }
.jp-extras { display: grid; gap: 8px; margin-top: 14px; }
.jp-check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--bg-raised); position: relative; }
.jp-check input { position: absolute; opacity: 0; pointer-events: none; }
.jp-box { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.jp-check input:checked + .jp-box { background: var(--grad); border-color: transparent; }
.jp-check input:checked + .jp-box::after { content: '\2713'; color: var(--on-accent); font-weight: 900; font-size: 14px; }
.jp-txt { display: flex; flex-direction: column; font-weight: 800; font-size: 14px; }
.jp-txt small { font-weight: 600; font-size: 12px; color: var(--text-secondary); }
.jp-check b { margin-inline-start: auto; color: var(--accent); font-size: 14px; }
.jp-waiver { border-color: color-mix(in srgb, var(--warning) 50%, transparent); }
.jp-waiver.ok { border-color: color-mix(in srgb, var(--success) 50%, transparent); }
.player-card label.jp-check { display: flex; color: var(--text-primary); font-size: 14px; letter-spacing: 0; text-transform: none; margin: 0; font-weight: 600; }
.player-card label.jp-check .jp-txt { letter-spacing: 0; }

.jp-slot-box { margin-top: 22px; }
.jp-slot-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.jp-slot-head h3 { font-size: 18px; }
.jp-slot-head span { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.jp-slot-head em { font-style: normal; }
.jp-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.jp-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 18px; cursor: pointer;
  background: var(--bg-card); color: var(--text-primary); border: 2px solid var(--border); border-top: 6px solid var(--band); font: inherit; text-align: start; }
.jp-slot:hover:not(:disabled) { border-color: var(--band); }
.jp-slot.selected { border-color: var(--band); background: color-mix(in srgb, var(--band) 12%, var(--bg-card)); box-shadow: 0 4px 0 color-mix(in srgb, var(--band) 70%, #000); }
.jp-slot:disabled { opacity: 0.45; cursor: not-allowed; }
.jp-slot-time { font-family: 'Baloo 2', sans-serif; font-size: 19px; font-weight: 800; line-height: 1.1; }
.jp-slot-band, .jp-pay-band { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.jp-pay-band { color: var(--text-primary); font-size: inherit; }
.jp-slot-left { font-size: 12px; font-weight: 700; color: var(--text-secondary); }

/* Wristband hand-out after payment */
.jp-band-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 18, 40, 0.55); backdrop-filter: blur(6px); }
.jp-band-modal.hidden { display: none; }
.jp-band-card { background: var(--bg-card); color: var(--text-primary); border-radius: 32px; padding: 32px 28px; width: 100%; max-width: 420px;
  text-align: center; border-top: 10px solid var(--band); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); animation: jpPop 0.35s cubic-bezier(.3, 1.6, .5, 1); }
.jp-band-big { display: flex; justify-content: center; margin: 4px 0 14px; animation: jpBounce 1.4s ease-in-out infinite; }
.jp-band-card h2 { font-size: 26px; margin: 0; }
.jp-band-count { font-family: 'Baloo 2', sans-serif; font-size: 30px; font-weight: 800; color: var(--band); margin: 4px 0; }
.jp-band-count b { font-size: 44px; }
.jp-band-card p { color: var(--text-secondary); font-weight: 700; margin: 0 0 20px; }
.jp-band-card .btn { width: 100%; min-height: 54px; font-size: 17px; }
@keyframes jpPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes jpBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .jp-band-big, .jp-band-card { animation: none; } }

@media (max-width: 1000px) {
  [data-profile="trampoline"] #dashboard .dashboard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "shift shift" "kpi kpi" "cap sell" "strip strip" "floor floor" "rail rail"; }
  [data-profile="trampoline"] #dashboard .jp-rail { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 640px) {
  [data-profile="trampoline"] #dashboard .dashboard { grid-template-columns: minmax(0, 1fr); grid-template-areas: "shift" "kpi" "sell" "cap" "strip" "floor" "rail"; }
  .jp-times { grid-template-columns: 1fr 1fr; }
  .jp-ring { width: 104px; height: 104px; }
  .jp-ring-num b { font-size: 32px; }
}
