* {
    box-sizing: border-box;
}

:root {
    --bg: #0d0e12;
    --surface: #17181e;
    --surface2: #202128;
    --border: rgba(255,255,255,.08);
    --text: #f5f5f7;
    --muted: #9a9ca6;
    --green: #78d69a;
    --red: #ff7d85;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% -20%, #282a35 0, #131419 38%, var(--bg) 70%);
    color: var(--text);
}

a {
    color: inherit;
}

.header {
    max-width: 1120px;
    margin: auto;
    padding: 54px 18px 30px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 56px);
    letter-spacing: -2px;
}

.header p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.info {
    max-width: 620px;
    margin: 22px auto 0;
    padding: 12px 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    border-radius: 999px;
    color: #b9bbc3;
    font-size: 14px;
}

.container {
    width: min(1120px, calc(100% - 28px));
    margin: auto;
    padding-bottom: 70px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(24,25,31,.96);
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.image {
    position: relative;
    height: 270px;
    background: var(--surface2);
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 52px;
    opacity: .35;
}

.priority {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10,10,13,.82);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 750;
}

.content {
    padding: 21px;
}

.title {
    margin: 0 0 7px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.description {
    min-height: 24px;
    color: var(--muted);
    line-height: 1.45;
}

.price {
    margin-top: 16px;
    font-size: 21px;
    font-weight: 800;
}

.actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    min-height: 48px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: #f5f5f7;
    color: #111216;
}

.btn-secondary {
    background: rgba(255,255,255,.06);
    color: white;
    border: 1px solid var(--border);
}

.btn-danger {
    background: rgba(255,90,100,.10);
    color: var(--red);
    border: 1px solid rgba(255,90,100,.18);
}

.btn-green {
    background: rgba(80,210,125,.12);
    color: var(--green);
    border: 1px solid rgba(80,210,125,.22);
}

.reserved {
    padding: 14px;
    border-radius: 14px;
    background: rgba(80,210,125,.10);
    border: 1px solid rgba(80,210,125,.20);
    color: var(--green);
    text-align: center;
    font-weight: 800;
}

.reserved small {
    display: block;
    margin-top: 4px;
    opacity: .78;
    font-weight: 600;
}

.topbar {
    width: min(1120px, calc(100% - 28px));
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar a {
    color: var(--muted);
    text-decoration: none;
}

.panel {
    padding: 22px;
    margin-bottom: 22px;
    border-radius: 22px;
    background: rgba(24,25,31,.96);
    border: 1px solid var(--border);
}

.panel h2 {
    margin: 0 0 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin: 0 0 6px;
    color: #c3c4ca;
    font-size: 13px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #111217;
    color: white;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

textarea {
    min-height: 85px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: rgba(255,255,255,.28);
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 45px;
}

.check input {
    width: auto;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 20px;
    background: rgba(0,0,0,.76);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-box {
    width: min(430px, 100%);
    padding: 27px;
    border-radius: 24px;
    background: #1a1b21;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.modal-box h2 {
    margin-top: 0;
}

.modal-box p {
    color: var(--muted);
    line-height: 1.5;
}

.login {
    width: min(430px, calc(100% - 28px));
    margin: 12vh auto;
    padding: 30px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.login h1 {
    margin-top: 0;
}

.login p {
    color: var(--muted);
}

.flash {
    padding: 11px 13px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255,90,100,.1);
    color: #ff9da3;
}

footer {
    padding: 0 20px 35px;
    text-align: center;
    color: #62646d;
    font-size: 13px;
}

@media (max-width: 650px) {
    .header {
        padding-top: 38px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .image {
        height: 245px;
    }
}

/* ==============================
   INSTALL APP
   ============================== */

.install-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.install-popup.show {
    display: flex;
}

.install-box {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 26px;
    background: #1a1b21;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
    text-align: center;
}

.install-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 17px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 43px;
    background:
        radial-gradient(circle at 30% 20%, #ff82bb, #6f3dd4 55%, #171821);
    box-shadow: 0 12px 35px rgba(150,70,220,.35);
}

.install-box h2 {
    margin: 0;
    font-size: 25px;
}

.install-box p {
    margin: 10px 0 20px;
    color: #a8aab3;
    line-height: 1.5;
}

.install-help {
    padding: 15px;
    margin: 15px 0;
    border-radius: 15px;
    background: rgba(255,255,255,.05);
    color: #d2d3d8;
    line-height: 1.6;
}
