:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #667085;
    --border: #dfe5ec;
    --accent: #6f46d9;
    --accent-soft: #f0ebff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.hero {
    width: min(780px, 100%);
    padding: 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.lead {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.55;
}

.status {
    display: inline-flex;
    margin-top: 32px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}


/* ============================================================
   CreativeSentry Administration
   ============================================================ */

.admin-body,
.login-body {
    background: #f6f8fb;
    min-height: 100vh;
}

.admin-topbar {
    min-height: 72px;
    padding: 14px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-brand {
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.admin-org {
    margin-left: 14px;
    color: var(--muted);
    font-size: 14px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
}

.admin-layout {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 22px 14px;
}

.admin-sidebar nav {
    display: grid;
    gap: 5px;
}

.admin-sidebar a {
    padding: 11px 13px;
    border-radius: 9px;
    color: #344054;
    text-decoration: none;
    font-weight: 650;
}

.admin-sidebar a:hover {
    background: #f4f1ff;
    color: var(--accent);
}

.admin-main {
    padding: 32px;
    min-width: 0;
}

.admin-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.admin-heading h1 {
    margin-top: 5px;
    font-size: 34px;
    letter-spacing: -0.035em;
}

.metric-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.metric-card,
.panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.metric-card {
    padding: 22px;
}

.metric-label {
    color: var(--muted);
    font-weight: 700;
}

.metric-value {
    margin-top: 7px;
    font-size: 34px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.panel {
    padding: 24px;
}

.panel h2 {
    margin-top: 0;
    font-size: 22px;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(460px, 100%);
    padding: 38px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow:
        0 18px 50px rgba(16, 24, 40, 0.08);
}

.login-title {
    font-size: 42px;
}

.login-subtitle {
    margin: 9px 0 28px;
    color: var(--muted);
    font-size: 18px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cfd7e3;
    border-radius: 9px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(111, 70, 217, 0.14);
    border-color: var(--accent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
}

.button-secondary {
    background: #ffffff;
    border-color: #d0d5dd;
    color: #344054;
}

.button-small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 14px;
}

.button-full {
    width: 100%;
}

.inline-form {
    display: inline;
    margin: 0;
}

.flash {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    font-weight: 650;
}

.flash-error {
    background: #fff1f1;
    border: 1px solid #f4c7c7;
    color: #9b1c1c;
}

.flash-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.flash-info {
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
    color: #344054;
}

@media (max-width: 900px) {
    .metric-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-sidebar nav {
        display: flex;
        overflow-x: auto;
    }

    .admin-sidebar a {
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 22px 16px;
    }

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

    .admin-user {
        width: 100%;
        justify-content: space-between;
    }

    .login-card {
        padding: 28px 22px;
    }
}


/* CREATIVESENTRY_EVENT_ADMIN_STYLES */

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

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

.section-heading h2 {
    margin-bottom: 6px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field textarea {
    resize: vertical;
}

.field-help {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

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

.data-table th {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-sub,
.muted {
    color: var(--muted);
    font-size: 14px;
}

.table-sub {
    margin-top: 4px;
}

.table-action {
    text-align: right !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.status-published {
    background: #ecfdf3;
    color: #067647;
}

.status-draft {
    background: #f2f4f7;
    color: #475467;
}

.status-closed,
.status-archived {
    background: #fff4ed;
    color: #b54708;
}

.status-completed {
    background: #eff8ff;
    color: #175cd3;
}

.empty-state {
    padding: 38px 16px;
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: var(--muted);
    line-height: 1.55;
}

.error-list {
    margin-bottom: 0;
}

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

    .field-wide {
        grid-column: auto;
    }
}


/* CREATIVESENTRY_PACKAGE_ADMIN_STYLES */

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-weight: 650;
}

.check-row input {
    width: auto;
    margin: 0;
}

.no-margin {
    margin-top: 0;
}

.compact-heading {
    margin-bottom: 18px;
}

.compact-heading h2 {
    margin: 0 0 5px;
}

.package-items-panel {
    margin-top: 28px;
}

.compact-empty {
    padding-top: 18px;
    padding-bottom: 18px;
}

.compact-empty p {
    margin-bottom: 0;
}


/* CREATIVESENTRY_PUBLIC_REGISTRATION_STYLES */

.registration-body {
    background: #f6f8fb;
    min-height: 100vh;
}

.registration-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.registration-shell.narrow {
    width: min(820px, calc(100% - 32px));
}

.registration-header {
    margin-bottom: 28px;
}

.registration-header h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 7vw, 64px);
}

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

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

.registration-card {
    min-height: 300px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.registration-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.registration-card p {
    color: var(--muted);
    line-height: 1.55;
}

.registration-meta {
    margin: 5px 0 !important;
    font-size: 15px;
}

.registration-price {
    margin: 10px 0 16px;
    color: var(--accent);
    font-size: 30px;
    font-weight: 850;
}

.registration-price.small {
    font-size: 22px;
}

.package-inclusion-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: #344054;
}

.package-inclusion-list li {
    margin: 7px 0;
}

.registration-progress {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.registration-progress span {
    padding: 9px 10px;
    border-radius: 8px;
    background: #e9edf3;
    color: #667085;
    text-align: center;
    font-size: 13px;
    font-weight: 750;
}

.registration-progress span.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.participant-panel {
    margin-bottom: 18px;
}

.participant-panel h2 {
    margin-top: 0;
}

.addon-grid {
    display: grid;
    gap: 16px;
}

.addon-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 120px;
    gap: 22px;
    align-items: center;
}

.addon-card h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.addon-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.review-section {
    margin-bottom: 18px;
}

.review-list {
    margin: 0;
}

.review-list > div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.review-list > div:last-child {
    border-bottom: 0;
}

.review-list dt {
    color: var(--muted);
    font-weight: 700;
}

.review-list dd {
    margin: 0;
}

.review-participants {
    display: grid;
    gap: 10px;
}

.review-participants > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.review-participants > div:last-child {
    border-bottom: 0;
}

.review-participants span {
    color: var(--muted);
}

.review-line-items {
    display: grid;
}

.review-line-items > div {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.review-total {
    margin-top: 10px;
    padding-top: 18px !important;
    border-top: 2px solid var(--border);
    font-size: 21px;
}

.payment-next-notice {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid #d9d3f8;
    border-radius: 10px;
    background: #f5f2ff;
    color: #53389e;
    font-weight: 650;
}

@media (max-width: 640px) {
    .registration-progress {
        grid-template-columns: repeat(2, 1fr);
    }

    .addon-card {
        grid-template-columns: 1fr;
    }

    .review-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .review-participants > div {
        flex-direction: column;
        gap: 4px;
    }
}


/* CREATIVESENTRY_REPORT_ADMIN_STYLES */

.filter-panel {
    margin-bottom: 20px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns:
        minmax(240px, 2fr)
        minmax(180px, 1fr)
        auto;
    gap: 16px;
    align-items: end;
}

.admin-filter-form .field {
    margin-bottom: 0;
}

.filter-action {
    padding-bottom: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.metric-money {
    font-size: 28px;
}

.report-wrap {
    display: inline-block;
    max-width: 340px;
    white-space: normal;
    line-height: 1.45;
}

@media print {
    .admin-topbar,
    .admin-sidebar,
    .button,
    .form-actions {
        display: none !important;
    }

    .admin-layout {
        display: block;
    }

    .admin-main {
        padding: 0;
    }

    .panel,
    .metric-card {
        box-shadow: none;
        break-inside: avoid;
    }
}

@media (max-width: 760px) {
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .filter-action {
        padding-bottom: 0;
    }

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


/* CREATIVESENTRY_VENDOR_STYLES */

.vendor-status-row {
    display: grid;
    grid-template-columns:
        minmax(240px, 420px)
        auto;
    gap: 18px;
    align-items: end;
}

.vendor-status-row .field {
    margin-bottom: 0;
}

.booth-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.status-approved {
    background: #ecfdf3;
    color: #067647;
}

.status-pending {
    background: #fffaeb;
    color: #b54708;
}

.status-waitlisted {
    background: #eff8ff;
    color: #175cd3;
}

.status-declined,
.status-cancelled {
    background: #fff1f1;
    color: #b42318;
}

@media (max-width: 640px) {
    .vendor-status-row {
        grid-template-columns: 1fr;
    }
}


/* CREATIVESENTRY_TICKETING_STYLES */

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

.ticket-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    break-inside: avoid;
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.ticket-card h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.ticket-qr {
    margin: 24px auto;
    max-width: 320px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.ticket-qr img {
    display: block;
    width: 100%;
    height: auto;
}

.ticket-scan-note {
    text-align: center;
    color: var(--muted);
    font-weight: 650;
}

@media print {
    .ticket-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ticket-card {
        page-break-inside: avoid;
    }
}

@media (max-width: 640px) {
    .ticket-card-grid {
        grid-template-columns: 1fr;
    }
}
