@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap");
:root {
    --bg: #0b1512;
    --panel: #13241d;
    --panel2: #193329;
    --green: #b8f35f;
    --green2: #7dcb42;
    --ink: #ecf5ed;
    --muted: #a8b9ad;
    --line: #355041;
    --red: #ec6c6c;
    --yellow: #e6bf5b;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font:
        16px "DM Sans",
        Arial,
        sans-serif;
}
h1,
h2,
h3,
.brand {
    font-family: Outfit, Arial, sans-serif;
}
h1 {
    font-size: clamp(2.6rem, 6vw, 6rem);
    line-height: 1.04;
    margin: 0.3em 0;
}
h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    margin: 0.25em 0;
}
h3 {
    margin: 0.4em 0;
}
p {
    line-height: 1.65;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
.btn {
    border: 0;
    background: var(--green);
    color: #102114;
    padding: 14px 20px;
    border-radius: 12px;
    font:
        700 15px "DM Sans",
        sans-serif;
    cursor: pointer;
    transition: 0.2s;
}
button:hover,
.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
button:disabled {
    cursor: not-allowed;
    transform: none;
    filter: none;
}
button.secondary,
.outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
button.link {
    padding: 10px 0;
    background: none;
    color: var(--green);
}
input,
select {
    background: #0d1b15;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 13px;
    color: var(--ink);
    font: inherit;
    min-width: 0;
    width: 100%;
    color-scheme: dark;
}
input:focus,
select:focus {
    outline: 2px solid var(--green2);
}
label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}
form {
    display: grid;
    gap: 15px;
}
.top {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(4vw, 20px);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
}
.top nav {
    display: flex;
    align-items: center;
    gap: 23px;
    font-size: 0.9rem;
}
.top nav button {
    padding: 10px;
}
.brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.brand span {
    color: var(--green);
}
.hero {
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 45%, #245b36 0, transparent 34%),
        linear-gradient(135deg, #10251a, #091510);
}
.hero-inner {
    padding: 80px max(4vw, 20px) 90px;
}
.hero h1 span,
.eyebrow {
    color: var(--green);
}
.hero-inner > p:not(.eyebrow) {
    font-size: 1.2rem;
    max-width: 550px;
    color: var(--muted);
}
.eyebrow {
    font-weight: 800;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 65px;
}
.hero-stats div {
    display: grid;
    gap: 4px;
}
.hero-stats strong {
    font: 700 1.6rem Outfit;
}
.hero-stats small {
    color: var(--muted);
}
.pitch-art {
    padding: 15%;
    transform: rotate(-17deg);
}
.pitch-lines {
    aspect-ratio: 1.5;
    border: 6px solid #baf469;
    border-radius: 18px;
    box-shadow:
        0 30px 90px #0009,
        inset 0 0 80px #90e5513d;
    background: repeating-linear-gradient(
        90deg,
        #246c38 0 70px,
        #267b3a 70px 140px
    );
    position: relative;
    display: grid;
    place-items: center;
}
.pitch-lines:before {
    content: "";
    position: absolute;
    inset: 0 50%;
    border-left: 4px solid #baf469;
}
.pitch-lines i {
    width: 30%;
    aspect-ratio: 1;
    border: 4px solid #baf469;
    border-radius: 50%;
    position: absolute;
}
.pitch-lines b {
    font-size: 4rem;
    z-index: 1;
    text-shadow: 0 15px 20px #0009;
}
.section {
    padding: 90px max(4vw, 20px);
    max-width: 1600px;
    margin: auto;
}
.muted {
    color: var(--muted);
}
.filters {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0;
}
.filters > * {
    min-width: 170px;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.field-card {
    text-align: left;
    padding: 0;
    overflow: hidden;
    background: var(--panel);
    color: var(--ink);
    border: 2px solid var(--line);
    border-radius: 18px;
}
.field-card.selected {
    border-color: var(--green);
}
.field-card > div:last-child {
    padding: 15px 20px;
}
.field-card small {
    color: var(--green);
}
.field-card p {
    color: var(--muted);
    margin: 0;
}
.field-photo {
    aspect-ratio: 5/3;
    background: linear-gradient(135deg, #254e33, #638346);
    display: grid;
    place-items: center;
    font-size: 5rem;
}
.field-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.schedule {
    margin-top: 70px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.legend {
    font-size: 0.85rem;
    color: var(--muted);
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    margin-left: 10px;
}
.dot.busy {
    background: var(--red);
}
.slots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.slots > button,
.slot {
    padding: 17px 8px;
    display: grid;
    gap: 4px;
    text-align: center;
    background: var(--panel2);
    color: var(--ink);
    border: 1px solid #40734a;
    border-radius: 13px;
}
.slots strong {
    font: 700 1.15rem Outfit;
}
.slots small {
    color: var(--green);
}
.slots button:disabled,
.slot.unavailable {
    background: #22292a;
    color: #8b9892;
    border-color: #3b4442;
}
.slots button:disabled small,
.slot.unavailable small {
    color: var(--red);
}
.event-section {
    background: #12251b;
    border-radius: 25px;
    margin-bottom: 70px;
}
.inline-form {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 30px 0;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.gallery figure {
    margin: 0;
}
.gallery img {
    width: 100%;
    aspect-ratio: 5/3;
    object-fit: cover;
    border-radius: 12px;
}
.gallery figcaption {
    font-size: 0.85rem;
    color: var(--muted);
}
footer {
    border-top: 1px solid var(--line);
    padding: 30px 4%;
    color: var(--muted);
}
dialog {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #15261d;
    color: var(--ink);
    width: min(95vw, 520px);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 90px #000b;
    padding: 0;
}
dialog::backdrop {
    background: #020a06d9;
    backdrop-filter: blur(6px);
}
.dialog-body {
    padding: 30px;
    position: relative;
}
.dialog-body > form {
    margin-top: 20px;
}
.dialog-body button:not(.x) {
    width: 100%;
}
.x {
    position: absolute;
    right: 14px;
    top: 14px;
    background: transparent;
    color: var(--ink);
    padding: 4px 12px;
    font-size: 1.7rem;
}
.policy-text {
    max-height: 38vh;
    overflow: auto;
    color: var(--muted);
}
.policy-text strong {
    color: var(--ink);
}
.payment,
.result {
    background: #20362a;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 5px;
}
.code {
    font: 800 2rem Outfit;
    color: var(--green);
    letter-spacing: 0.03em;
}
.receipt {
    display: block;
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    border-radius: 10px;
    background: #09160e;
}
.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 75% 20%, #1b4f2a, transparent 50%), var(--bg);
}
.auth-card {
    width: min(100%, 430px);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 35px;
    border-radius: 24px;
}
.auth-card h1 {
    font-size: 2.2rem;
}
.auth-card .brand {
    display: block;
    margin: 35px 0 10px;
}
.auth-card form {
    margin-top: 25px;
}
.auth-card p {
    color: var(--muted);
}
#toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--green);
    color: #11220f;
    border-radius: 12px;
    padding: 14px 22px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}
#toast.show {
    opacity: 1;
}
.admin {
    display: flex;
}
.sidebar {
    width: 235px;
    flex: none;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    background: #101e17;
    border-right: 1px solid var(--line);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar .brand {
    margin-bottom: 20px;
}
.sidebar p {
    color: var(--muted);
    font-size: 0.8rem;
}
.sidebar > a:not(.brand) {
    padding: 12px;
    border-radius: 9px;
    color: var(--muted);
}
.sidebar > a:hover {
    background: var(--panel2);
    color: var(--green);
}
.sidebar button {
    margin-top: auto;
}
.admin-main {
    flex: 1;
    min-width: 0;
    padding: 32px;
    max-width: 1600px;
}
.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.admin-head h1 {
    font-size: 2.5rem;
}
.pill {
    background: #24412c;
    color: var(--green);
    border-radius: 50px;
    padding: 7px 12px;
    font-size: 0.8rem;
}
.panel {
    padding: 25px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 25px;
}
.panel h2 {
    font-size: 1.6rem;
}
.panel .slots {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}
.weekday {
    text-align: center;
    color: var(--green);
    padding: 10px;
}
.day {
    background: #1a3023;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 100px;
    padding: 7px;
    overflow: hidden;
}
.day > b {
    display: block;
    margin-bottom: 5px;
}
.booking-chip,
.event {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.72rem;
    padding: 5px;
    margin: 3px 0;
    border-radius: 5px;
    background: #753736;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event {
    background: #7d6024;
    color: #fff;
}
.table-wrap {
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
td,
th {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid var(--line);
}
th {
    color: var(--muted);
}
button.small {
    padding: 7px 12px;
}
.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}
.manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.manager-grid form {
    background: #1d3325;
    padding: 18px;
    border-radius: 15px;
}
.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
    .top nav {
        gap: 8px;
    }
    .top nav > a {
        display: none;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-inner {
        padding-bottom: 20px;
    }
    .pitch-art {
        padding: 8%;
        max-width: 600px;
    }
    .admin {
        display: block;
    }
    .sidebar {
        width: auto;
        min-height: 0;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sidebar .brand {
        width: 100%;
        margin: 0;
    }
    .sidebar p {
        display: none;
    }
    .sidebar button {
        margin: 0;
    }
    .admin-main {
        padding: 16px;
    }
}
@media (max-width: 600px) {
    .top {
        height: auto;
        padding: 16px;
        gap: 15px;
        flex-wrap: wrap;
    }
    .top nav {
        width: 100%;
        justify-content: space-between;
    }
    .hero-stats {
        gap: 18px;
        margin-top: 35px;
    }
    .hero-inner {
        padding-top: 60px;
    }
    .slots,
    .panel .slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .section {
        padding: 60px 16px;
    }
    .day {
        min-height: 70px;
        padding: 3px;
        font-size: 0.7rem;
    }
    .weekday {
        font-size: 0.7rem;
    }
    .booking-chip,
    .event {
        font-size: 0.57rem;
        padding: 2px;
    }
    .panel {
        padding: 14px;
    }
    .sidebar {
        gap: 2px;
    }
    .sidebar > a:not(.brand) {
        font-size: 0.8rem;
        padding: 7px;
    }
    .dialog-body {
        padding: 20px;
    }
}
