@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #17251f;
  --ink-soft: #34453c;
  --muted: #718078;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #e2e8e0;
  --green: #b9f36a;
  --green-dark: #244a30;
  --green-deep: #10251d;
  --red: #d55b4e;
  --amber: #e4b94e;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(21, 43, 30, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; line-height: 1.5; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3,.brand { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: .99; margin: 18px 0 22px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin-bottom: 12px; }
h3 { font-size: 1.16rem; line-height: 1.2; margin-bottom: 8px; }
p { margin-bottom: 14px; }
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: not-allowed; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--green); color: var(--green-deep); border-radius: 10px; font-weight: 700; }
.brand-light { font-weight: 400; color: var(--muted); margin-left: 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 600; }
.nav-links > a:not(.button):hover,.text-link:hover { color: var(--green-dark); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-accent { background: var(--green); color: var(--green-deep); }
.button-accent:hover:not(:disabled) { background: #a8e95a; }
.button-dark { background: var(--green-deep); color: white; }
.button-outline { background: transparent; border-color: #cbd6cc; color: var(--ink); }
.button-outline:hover:not(:disabled) { background: #edf2e9; }
.button-small { min-height: 40px; padding: 0 16px; font-size: .82rem; }
.button-wide { width: 100%; }
.text-link { color: var(--green-dark); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: #607768; }
.text-accent { color: #6c9c36; }
.muted { color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #7dbd3f; box-shadow: 0 0 0 4px rgba(125,189,63,.14); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-top: 55px; padding-bottom: 88px; }
.hero-copy > p { max-width: 490px; font-size: 1.05rem; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats strong { font-family: 'Space Grotesk'; font-size: 1.25rem; }
.hero-stats span { font-size: .78rem; color: var(--muted); }
.hero-art { min-height: 420px; position: relative; display: flex; align-items: center; justify-content: center; border-radius: 32px; overflow: hidden; background: #dfe9d7; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.7), transparent 34%), linear-gradient(135deg,#dce8d1,#b8d3a8); }
.hero-art:before,.hero-art:after { content: ''; position: absolute; border: 1px solid rgba(33,75,43,.12); border-radius: 50%; }
.hero-art:before { width: 420px; height: 420px; }
.hero-art:after { width: 540px; height: 540px; }
.court-art { position: relative; width: 68%; height: 280px; border: 2px solid rgba(27,74,42,.6); border-radius: 4px; background: rgba(109,159,81,.14); transform: rotate(-9deg); }
.court-mid { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid rgba(27,74,42,.6); }
.court-circle { position: absolute; width: 95px; height: 95px; border: 2px solid rgba(27,74,42,.6); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.court-box { position: absolute; width: 23%; height: 44%; top: 28%; border: 2px solid rgba(27,74,42,.6); }
.court-box-left { left: 0; border-left: 0; }
.court-box-right { right: 0; border-right: 0; }
.court-goal { position: absolute; top: 39%; height: 22%; width: 5%; border: 2px solid rgba(27,74,42,.6); }
.court-goal-left { left: -5%; }
.court-goal-right { right: -5%; }
.art-tag { position: absolute; z-index: 2; top: 30px; left: 30px; display: flex; align-items: center; gap: 8px; padding: 10px 13px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: #72ad38; }
.art-card { position: absolute; z-index: 2; bottom: 25px; left: 25px; right: 25px; display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 17px; background: white; box-shadow: var(--shadow); }
.art-card > div:nth-child(2) { display: flex; flex-direction: column; }
.art-card strong { font-size: .88rem; }
.art-card small { font-size: .75rem; color: var(--muted); }
.avatar-stack { display: flex; }
.avatar-stack span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf3df; border: 2px solid white; margin-right: -7px; font-size: .85rem; }
.avatar-stack span:last-child { background: var(--green); }
.art-arrow { margin-left: auto; font-size: 1.2rem; }
.section { padding-top: 38px; padding-bottom: 82px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 8px 0; }
.section-heading p { margin-bottom: 0; max-width: 640px; }
.date-control { display: flex; flex-direction: column; gap: 7px; min-width: 185px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.date-control input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.notice { padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; font-size: .9rem; }
.notice.error { color: #a63d32; background: #fff2ef; border-color: #f0c4bc; }
.court-list { display: grid; gap: 14px; margin-top: 16px; }
.court-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 5px 22px rgba(21,43,30,.025); }
.court-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.court-card-heading h3 { margin: 0 0 4px; }
.court-card-heading p { margin: 0; font-size: .83rem; color: var(--muted); }
.court-price { font-size: .88rem; white-space: nowrap; }
.time-slots { display: grid; grid-template-columns: repeat(16,minmax(0,1fr)); gap: 6px; }
.time-slot { min-height: 48px; display: grid; place-items: center; border-radius: 8px; font-size: .69rem; font-weight: 700; }
.time-slot.is-open { background: #edf8e3; color: #416e2d; border: 1px solid #d8edc9; }
.time-slot.is-booked { background: #f8e8e5; color: #a75247; border: 1px solid #f0d4cf; }
.availability-legend,.booking-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 17px; font-size: .78rem; color: var(--ink-soft); }
.availability-legend span,.booking-legend span { display: inline-flex; align-items: center; gap: 7px; }
.availability-legend i,.booking-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend-open { background: #b9e79b; }
.legend-booked { background: #e7a69c; }
.legend-paid { background: #72c78e; }
.legend-partial { background: #e4b94e; }
.match-strip { background: var(--green-deep); color: white; padding: 42px 0; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.strip-inner .eyebrow { color: #b7d7a5; }
.strip-inner h2 { margin: 10px 0; }
.strip-inner p { margin: 0; color: #b6c4b9; }
.session-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.session-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 6px 9px; font-size: .64rem; font-weight: 700; letter-spacing: .07em; }
.status-open { color: #416b2d; background: #eef8e5; }
.status-full { color: #a64c40; background: #fff0ed; }
.session-card h3 { margin: 15px 0 8px; }
.session-card p { font-size: .84rem; margin-bottom: 10px; }
.session-card-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; font-size: .76rem; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 25px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .78rem; color: var(--muted); }
.footer-inner .brand { color: var(--ink); }
.footer-inner > a:last-child { color: var(--green-dark); font-weight: 700; }
.hidden { display: none !important; }
.auth-page { min-height: 100vh; background: linear-gradient(120deg,#f7f8f4 55%,#e8f1e1 55%); }
.auth-layout { display: grid; grid-template-columns: 1fr minmax(360px,460px); gap: 80px; align-items: center; min-height: calc(100vh - 82px); padding-top: 40px; padding-bottom: 70px; }
.auth-intro > p { max-width: 480px; color: var(--muted); line-height: 1.8; }
.auth-points { display: grid; gap: 12px; margin-top: 30px; color: #44634a; font-size: .9rem; font-weight: 600; }
.auth-card { background: white; border: 1px solid rgba(210,223,207,.8); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #f0f4ec; padding: 5px; border-radius: 12px; margin-bottom: 26px; }
.auth-tab { border: 0; background: transparent; border-radius: 8px; min-height: 40px; color: var(--muted); font-weight: 700; }
.auth-tab.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.05); }
.auth-card h2 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-card > p { font-size: .87rem; }
.form-field { display: flex; flex-direction: column; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.form-field input,.form-field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #dbe3d9; border-radius: 10px; background: #fff; color: var(--ink); outline: none; font-weight: 400; }
.form-field input:focus,.form-field select:focus { border-color: #91bd69; box-shadow: 0 0 0 3px rgba(145,189,105,.15); }
.auth-card form { display: grid; gap: 16px; margin-top: 22px; }
.form-message { font-size: .84rem; margin: 12px 0 0; color: var(--muted); }
.form-message.error { color: #ad4339; }
.form-message.success { color: #3d772d; }
.auth-small { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; font-size: .73rem !important; color: var(--muted); line-height: 1.6; }
.dashboard-main { padding-top: 42px; padding-bottom: 80px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.dashboard-heading h1 { font-size: clamp(2rem,4vw,3.4rem); margin: 9px 0; }
.dashboard-heading p { max-width: 700px; margin: 0; color: var(--muted); }
.calendar-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 16px; }
.calendar-grid { display: grid; gap: 5px; }
.admin-calendar { min-width: max-content; }
.admin-calendar .col-header { padding: 12px 5px; font-size: .82rem; }
.time-col { display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: .72rem; color: var(--muted); min-height: 60px; }
.slot { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; min-height: 60px; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; text-align: left; overflow: hidden; }
.slot strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.slot small { font-size: .64rem; line-height: 1.3; }
.slot-free { justify-content: center; align-items: center; background: #edf8e7; border-color: #dbeed1; color: #50733d; font-weight: 700; }
.slot-free:hover { background: #dff1d3; }
.slot-booked { background: #fff0ed; border-color: #f2d5cf; color: #98493e; }
.slot-booked.status-completed { background: #e9f5e8; border-color: #cfe8cb; color: #3f713b; }
.slot-booked.status-pending { background: #fff7df; border-color: #f1e4b9; color: #8b6b20; }
.slot-continuation { align-items: flex-start; justify-content: center; background: #f8e9e5; color: #b36c60; opacity: .75; }
.admin-fields { margin-top: 25px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; }
.panel h2 { font-size: 1.5rem; margin-bottom: 5px; }
.panel p { font-size: .85rem; margin-bottom: 18px; }
.field-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.field-summary-item { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.field-summary-item strong { font-size: .9rem; }
.field-summary-item span { color: var(--muted); font-size: .76rem; }
.field-summary-item b { font-size: .82rem; margin-top: 4px; }
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12,26,18,.58); overflow-y: auto; }
.modal-content { position: relative; width: min(100%,460px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; background: white; border-radius: 22px; box-shadow: 0 25px 80px rgba(0,0,0,.2); }
.modal-large { width: min(100%,650px); }
.modal-content h2 { font-size: 1.8rem; margin: 8px 0; }
.modal-close,.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.4rem; }
.modal-close { position: absolute; top: 18px; right: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 22px 0 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.matchmaking-main { padding-top: 30px; padding-bottom: 80px; }
.match-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 55px 55px; border-radius: 28px; background: var(--green-deep); color: white; }
.match-hero h1 { font-size: clamp(2.4rem,4.4vw,4rem); }
.match-hero p { max-width: 570px; color: #c1cec3; line-height: 1.8; }
.match-hero .eyebrow { color: #c5e7a9; }
.match-hero-badge { flex: 0 0 205px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 23px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(255,255,255,.06); }
.match-hero-badge > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 9px; border-radius: 16px; background: var(--green); color: var(--green-deep); font-size: 1.8rem; }
.match-hero-badge strong { font-size: .95rem; }
.match-hero-badge small { color: #b7c7ba; font-size: .75rem; }
.compact-section { padding-bottom: 40px; }
.session-grid-large { grid-template-columns: repeat(2,minmax(0,1fr)); }
.session-card-full { padding: 24px; }
.session-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.level-tag { border-radius: 999px; padding: 5px 9px; background: #f1f4ee; color: #69776d; font-size: .68rem; font-weight: 700; }
.session-card-full h3 { font-size: 1.28rem; margin: 18px 0 8px; }
.session-venue { color: var(--muted); }
.session-date { display: flex; flex-direction: column; gap: 3px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .83rem; }
.session-date span { color: var(--muted); }
.capacity-wrap { margin-top: 17px; }
.capacity-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--ink-soft); font-size: .75rem; }
.capacity-label span:last-child { font-weight: 700; }
.capacity-bar { height: 6px; border-radius: 99px; overflow: hidden; background: #edf1e9; }
.capacity-bar span { display: block; height: 100%; border-radius: inherit; background: #88bc55; }
.session-notes { min-height: 36px; margin: 14px 0; color: var(--muted); font-size: .82rem; }
.session-actions { display: flex; align-items: center; gap: 12px; }
.host-label { font-size: .75rem; color: var(--green-dark); font-weight: 700; }
.empty-state { grid-column: 1/-1; padding: 40px 24px; text-align: center; background: white; border: 1px dashed #cbd8c8; border-radius: var(--radius); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: .9rem; }
.create-panel { margin: 25px 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel-heading h2 { margin-top: 8px; }
.create-panel .form-grid { margin-top: 20px; }
.create-panel form > .button { margin-top: 10px; }
@media (max-width: 900px) {
  .hero { gap: 28px; }
  .hero-art { min-height: 360px; }
  .time-slots { grid-template-columns: repeat(8,minmax(0,1fr)); }
  .auth-layout { gap: 35px; }
  .match-hero { padding: 40px; }
  .match-hero-badge { flex-basis: 175px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 30px, 1160px); }
  .nav { min-height: 70px; gap: 10px; }
  .nav-links { gap: 12px; }
  .nav-links > a:not(.button) { display: none; }
  .nav-links .button { min-height: 38px; padding: 0 12px; font-size: .75rem; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 55px; }
  h1 { font-size: clamp(2.55rem,12vw,3.8rem); }
  .hero-copy > p { font-size: .96rem; }
  .hero-stats { margin-top: 32px; gap: 27px; }
  .hero-art { min-height: 330px; }
  .court-art { height: 210px; }
  .court-circle { width: 70px; height: 70px; }
  .section { padding-top: 25px; padding-bottom: 55px; }
  .section-heading,.dashboard-heading { align-items: flex-start; flex-direction: column; }
  .section-heading { gap: 16px; }
  .date-control { width: 100%; }
  .date-control input { width: 100%; }
  .time-slots { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .time-slot { min-height: 39px; }
  .court-card { padding: 16px; }
  .availability-legend { gap: 10px 15px; }
  .availability-legend .muted { flex-basis: 100%; }
  .strip-inner { align-items: flex-start; flex-direction: column; }
  .session-grid,.session-grid-large { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
  .auth-page { background: var(--paper); }
  .auth-layout { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding-top: 25px; }
  .auth-intro h1 { font-size: 2.8rem; }
  .auth-intro > p { font-size: .9rem; }
  .auth-points { gap: 7px; margin-top: 18px; font-size: .82rem; }
  .auth-card { padding: 23px; }
  .dashboard-main { padding-top: 28px; }
  .booking-legend { gap: 10px; }
  .field-summary { grid-template-columns: 1fr; }
  .calendar-wrap { margin-inline: -5px; padding: 10px; }
  .match-hero { align-items: flex-start; flex-direction: column; padding: 30px 24px; gap: 24px; }
  .match-hero h1 { font-size: 2.65rem; }
  .match-hero-badge { flex-basis: auto; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 25px 20px; }
  .modal-close { top: 12px; right: 12px; }
  .session-actions { align-items: stretch; flex-direction: column; }
  .host-label { text-align: center; }
}

.request-panel { margin-top: 26px; }
.request-panel .panel-heading { margin-bottom: 12px; }
.request-panel .form-grid { margin-top: 18px; }
.form-field-full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-field-full { grid-column: auto; } }

/* Google OAuth sign-in */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-button { display: flex; align-items: center; justify-content: center; gap: 11px; }
.google-button svg { flex: 0 0 20px; }


/* Email verification landing page */
.verify-layout { display: grid; place-items: center; min-height: calc(100vh - 82px); padding-top: 36px; padding-bottom: 70px; }
.verify-card { width: min(100%, 510px); padding: 42px; text-align: center; background: white; border: 1px solid rgba(210,223,207,.8); border-radius: 26px; box-shadow: var(--shadow); }
.verify-icon { width: 76px; height: 76px; margin: 0 auto 22px; }
.verify-icon svg { display: block; width: 100%; height: 100%; }
.verify-card .eyebrow { justify-content: center; }
.verify-card h1 { margin: 13px 0 15px; font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.08; }
.verify-card > p:not(.verify-footnote) { margin: 0 auto 25px; max-width: 390px; color: var(--muted); line-height: 1.75; font-size: .95rem; }
.verify-home-link { display: inline-block; margin-top: 18px; color: var(--green-dark); font-size: .88rem; font-weight: 700; }
.verify-footnote { margin: 27px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.6; }
@media (max-width: 680px) { .verify-layout { min-height: calc(100vh - 70px); padding-top: 24px; padding-bottom: 40px; } .verify-card { padding: 30px 23px; } }
