:root {
    --black: #080808;
    --dark: #161616;
    --grey: #f3f3f3;
    --muted: #666;
    --white: #fff;
    --border: #dedede;
    --accent: #d7b56d;
    --danger: #b42318;
    --success: #067647;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    background: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .3px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 2px solid var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--white);
    color: var(--black);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 20px;
}

.hero {
    background:
        linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.65)),
        repeating-linear-gradient(90deg, #050505 0, #050505 90px, #fff 90px, #fff 180px);
    color: var(--white);
    padding: 90px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 32px;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.eyebrow.dark {
    color: #7a5a13;
    margin-bottom: 0;
}

.hero h1 {
    font-size: clamp(42px, 8vw, 86px);
    line-height: .95;
    margin: 0 0 20px;
}

.hero-text {
    max-width: 680px;
    font-size: 20px;
    color: #eee;
}

.hero-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(5px);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}

.btn.small {
    padding: 9px 14px;
    font-size: 14px;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
}

.section {
    padding: 54px 0;
}

.section.alt {
    background: var(--grey);
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin-top: 4px;
    font-size: 34px;
}

.page-hero {
    padding: 56px 0;
    background: var(--grey);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin: 0 0 8px;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.cards.two {
    grid-template-columns: repeat(2, 1fr);
}

.card,
.form-card,
.notice,
.table-card,
.login-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.card h2,
.card h3,
.content h2,
.form-card h2 {
    margin-top: 0;
}

.card a {
    font-weight: 700;
}

.content {
    max-width: 850px;
}

.content.wide {
    max-width: 1120px;
}

.content h2 {
    margin-top: 32px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.badge,
.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    background: #f4ead0;
}

.status {
    background: #efefef;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.clean-list li {
    margin-bottom: 6px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--border);
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    width: 260px;
    background: #fafafa;
}

.form-card {
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    margin-bottom: 18px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    margin: 16px 0;
}

.checkbox input {
    width: auto;
    margin-top: 6px;
}

.hint {
    color: var(--muted);
    font-size: 14px;
}

.notice {
    background: #fbfaf7;
    border-color: #e5d4a8;
}

.notice.compact {
    margin-bottom: 24px;
}

.alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin: 18px 0;
}

.alert.success {
    background: #ecfdf3;
    color: var(--success);
    border: 1px solid #abefc6;
}

.alert.error {
    background: #fef3f2;
    color: var(--danger);
    border: 1px solid #fecdca;
}

.site-footer {
    background: var(--black);
    color: #eee;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .8fr;
    gap: 24px;
}

.footer-grid a {
    color: #fff;
}

.admin-login-body {
    background: var(--grey);
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(460px, calc(100% - 32px));
}

.admin-header {
    background: var(--black);
    color: var(--white);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header a {
    color: var(--white);
    margin-left: 14px;
}

.admin-intro {
    color: var(--muted);
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.big-number {
    font-size: 44px;
    font-weight: 900;
    margin: 0 0 12px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.danger-link {
    color: var(--danger);
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .hero-inner,
    .cards,
    .cards.two,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-bottom: 18px;
    }

    .main-nav.open {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav a {
        border-radius: 10px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .admin-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


.form-grid.single {
    grid-template-columns: minmax(220px, 360px);
}

input[readonly] {
    background: #f7f7f7;
    color: #333;
    cursor: not-allowed;
}


.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.pill.paid {
    background: #ecfdf3;
    color: var(--success);
    border: 1px solid #abefc6;
}

.pill.unpaid {
    background: #fef3f2;
    color: var(--danger);
    border: 1px solid #fecdca;
}

.admin-management-box {
    margin-bottom: 24px;
    background: #fbfaf7;
    border-color: #e5d4a8;
}


.field-help {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.conditional-box {
    margin-top: -6px;
    margin-bottom: 24px;
}

.conditional-box h3 {
    margin-bottom: 6px;
}


.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
}

.cookie-banner-content {
    width: min(1120px, 100%);
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookie-banner h2,
.cookie-modal h2,
.cookie-option h3 {
    margin-top: 0;
}

.cookie-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 700;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,.58);
    display: grid;
    place-items: center;
    padding: 20px;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
    display: none;
}

.cookie-modal-panel {
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: var(--white);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 60px rgba(0,0,0,.3);
}

.cookie-option {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin: 14px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.cookie-option input {
    width: 22px;
    height: 22px;
}

.modal-actions {
    margin-top: 18px;
}

.policy-date {
    margin-top: 32px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .cookie-banner-content {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        justify-content: flex-start;
    }

    .cookie-option {
        grid-template-columns: 1fr;
    }
}


.filter-card {
    background: #fbfaf7;
    border: 1px solid #e5d4a8;
    border-radius: 22px;
    padding: 20px;
    margin: 20px 0 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.filter-card label {
    margin-bottom: 0;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.filter-count {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 700px) {
    .filter-grid,
    .filter-grid.three {
        grid-template-columns: 1fr;
    }
}


.brand-logo {
    width: clamp(72px, 9vw, 100px);
    height: auto;
    overflow: visible;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


.payment-section {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.payment-section h2 {
    border-top: 0;
    padding-top: 0;
}

.paypal-code-box {
    margin: 22px 0;
    padding: 24px;
    border: 2px dashed #d0b36d;
    border-radius: 18px;
    background: #fbfaf7;
}

.paypal-code-box h3 {
    margin-top: 0;
}


.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.paypal-button-small {
    width: 200px;
    height: auto;
    max-width: 100%;
}
