:root {
    --ink: #17202a;
    --muted: #657383;
    --line: #d9e0e7;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --nav: #111827;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --accent: #b7791f;
    --danger: #b42318;
    --success-bg: #eaf7ef;
    --danger-bg: #fff0ee;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header, .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.topbar { background: var(--nav); color: #fff; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 800;
    letter-spacing: 0;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font-weight: 900;
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.topbar a { color: #fff; }
.avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}
.container { width: min(1180px, calc(100% - 36px)); margin: 30px auto; }
.hero {
    min-height: 560px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(10, 20, 28, .84), rgba(10, 20, 28, .46)),
        url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0; }
.hero h1 { max-width: 780px; margin: 0 0 18px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: 0; }
.hero p { max-width: 640px; margin: 0 0 26px; color: #e9eef3; font-size: 19px; line-height: 1.55; }
.hero-actions, .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.actions form { display: inline-flex; margin: 0; }
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    padding: 8px 12px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
td .button, td button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}
.inline-manage {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}
.inline-manage input,
.inline-manage select {
    width: auto;
    min-width: 120px;
    margin-top: 0;
    padding: 7px 9px;
    font-size: 13px;
}
.inline-manage input { min-width: 180px; }
.inline-manage button { white-space: nowrap; }
.button:hover { text-decoration: none; background: var(--brand-dark); }
.button.secondary, button.secondary { background: #eef2f5; color: var(--ink); border: 1px solid var(--line); }
.button.danger, button.danger { background: var(--danger); }
.section { padding: 56px 0; }
.section h2, .container h1 { margin-top: 0; font-size: 32px; letter-spacing: 0; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.panel, .price-card, .stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 18px 50px rgba(15, 118, 110, .12); }
.price { font-size: 36px; font-weight: 850; margin: 12px 0; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
label { display: block; font-weight: 720; margin-bottom: 14px; }
label small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
input, select, textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #b9c4d0;
    border-radius: 7px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
textarea { min-height: 116px; resize: vertical; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid #e7ecf1; text-align: left; vertical-align: top; }
th { background: #f0f3f6; font-size: 13px; color: #3f4b59; }
.alert, .notice, .error { padding: 12px 14px; border-radius: 7px; border: 1px solid var(--line); }
.alert.success, .notice { background: var(--success-bg); border-color: #b7dfc4; }
.alert.danger, .error { background: var(--danger-bg); border-color: #f1b5ad; }
.stat strong { display: block; margin-top: 8px; font-size: 34px; }
.qr-card {
    display: inline-grid;
    gap: 10px;
    justify-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}
.qr-box {
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
}
.qr-box canvas, .qr-box svg { width: 172px; height: 172px; }
.qr-download { width: 100%; min-height: 36px; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, .58);
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 90px rgba(17, 24, 39, .28);
    padding: 22px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.modal-header h2 { margin: 0 0 4px; }
.qr-preview {
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.invitee-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; font-weight: 650; }
.invitee-row input { width: auto; margin: 0; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(140deg, #eef7f6, #f7f8fb); }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 24px 70px rgba(17, 24, 39, .12); }
.auth-card h1 { margin-top: 0; }
.splash { max-width: 720px; margin: 70px auto; text-align: center; }
.footer { padding: 30px clamp(18px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); background: #fff; }
@media (max-width: 760px) {
    .site-header, .topbar { align-items: flex-start; flex-direction: column; }
    .hero { min-height: 520px; }
    table { display: block; overflow-x: auto; }
}
