body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 1rem; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--blue); font-size: 1.05rem; letter-spacing: .02em; }
.brand b { color: var(--green-text); font-weight: 900; }
.top-user { font-size: .85rem; text-decoration: none; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 560px; margin: 0 auto; padding: 1rem; outline: none; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .55rem; font-size: .74rem;
  color: var(--muted); text-decoration: none; font-weight: 600; min-height: 56px; }
.tabs a span { font-size: 1.25rem; line-height: 1; }
.tabs a[aria-current=page] { color: var(--blue); }
.tabs a[aria-current=page]::after { content: ''; width: 24px; height: 3px; border-radius: 2px; background: var(--green); margin-top: 2px; }

.hero { background: var(--blue); color: #fff; border-radius: 18px; padding: 1.2rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(156,203,59,.25); }
.hero h1 { color: #fff; font-size: 1.45rem; }
.hero p { color: #d8e5f2; }
.hero .btn { background: var(--green); border-color: var(--green); color: #14202b; position: relative; z-index: 1; }
.hero .btn:hover { background: #b2db5a; }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.hours div { background: var(--blue-soft); border-radius: 12px; padding: .7rem; }
.hours b { display: block; } .hours .price { color: var(--blue); font-weight: 800; }

.dates { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; }
.dates .chip { flex: 0 0 auto; text-align: center; min-width: 64px; scroll-snap-align: start; }
.durs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.band-title { margin: 1rem 0 .4rem; display: flex; justify-content: space-between; align-items: baseline; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .55rem .3rem; cursor: pointer; text-align: center; min-height: 58px; }
.slot b { display: block; font-size: 1.02rem; }
.slot span { font-size: .72rem; color: var(--muted); }
.slot[aria-pressed=true] { border-color: var(--blue); background: var(--blue-soft); }
.courts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: .6rem; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.pay-opt { display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem; margin-top: .5rem; cursor: pointer; font-weight: 400; }
.pay-opt input { margin-top: .25rem; width: 20px; height: 20px; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.35rem; letter-spacing: .06em; font-weight: 800; color: var(--blue); }
.bk { display: block; text-decoration: none; color: inherit; }
.bk .when { font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #e7ecf1; border-radius: 12px; padding: 3px; margin-bottom: .8rem; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: .55rem; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 42px; }
.seg button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.auth-logo { display: block; width: 190px; margin: .5rem auto 1rem; }
.check-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #14202b; display: grid; place-items: center; font-size: 2rem; font-weight: 900; margin: 0 auto .6rem; }
