﻿:root {
    --yellow: #f6c719;
    --yellow-soft: #ffe880;
    --blue: #2c5bd3;
    --blue-deep: #151b6d;
    --green: #26b15c;
    --red: #d64d57;
    --ink: #16202a;
    --muted: #5d6975;
    --surface: #fffaf0;
    --surface-strong: #fff3c8;
    --line: rgba(6, 31, 56, .16);
    --shadow: 0 24px 70px rgba(6, 31, 56, .22);
    --font: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    letter-spacing: 0;
    background: #f6d34d;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background:
        radial-gradient(circle at 20px 20px, rgba(6, 31, 56, .45) 1px, transparent 1.4px),
        radial-gradient(circle at 42px 48px, rgba(255, 255, 255, .75) 1px, transparent 1.6px);
    background-size: 64px 64px;
}

body.public-page {
    background:
        linear-gradient(180deg, #f6c719 0%, #ffd633 58%, var(--blue-deep) 58%, var(--blue-deep) 100%);
}

body.invite-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 244, 194, .48), transparent 36%),
        linear-gradient(180deg, #f6d34d 0%, #f1bf29 54%, var(--blue-deep) 54%, var(--blue-deep) 100%);
}

.public-shell {
    width: min(960px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 0 56px;
}

.public-shell.compact {
    grid-template-columns: 1fr;
    place-items: center;
}

.hero {
    display: grid;
    justify-items: center;
    padding: 10px 0 4px;
    text-align: center;
}

.context-line {
    margin: 0 auto 14px;
    color: var(--blue-deep);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-logo {
    width: min(360px, 78vw);
    height: auto;
    display: block;
    margin: 0 auto 18px;
    border-radius: 24px;
    filter: drop-shadow(0 16px 28px rgba(6, 31, 56, .18));
}

.poster-art {
    width: min(520px, 92vw);
    border: 3px solid var(--blue);
    border-radius: 8px;
}

.hero-art {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.brand-logo.small {
    width: 108px;
    margin: 0 auto 20px;
}

.eyebrow {
    width: fit-content;
    margin: 0 auto 14px;
    padding: 7px 10px;
    color: var(--surface);
    background: var(--red);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    max-width: 560px;
    margin: 0 auto;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: clamp(2.55rem, 4.4vw, 4.25rem);
    font-weight: 850;
    line-height: .9;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 .title-word,
h1 .title-accent {
    display: block;
}

h1 .title-accent {
    color: var(--blue);
    font-size: .58em;
    font-weight: 800;
}

.lead {
    max-width: 640px;
    margin: 18px 0 0;
    color: #1e2a34;
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.58;
}

.public-shell.compact .lead {
    color: rgba(255, 250, 240, .92);
}

.event-details {
    width: min(760px, 100%);
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.event-detail {
    min-height: 112px;
    padding: 16px;
    text-align: left;
    background: rgba(255, 250, 240, .9);
    border: 1px solid rgba(6, 31, 56, .14);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(6, 31, 56, .12);
}

.event-detail span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.event-detail strong,
.event-detail a {
    display: block;
    color: var(--blue-deep);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.event-detail a {
    color: var(--blue);
}

.event-detail.price {
    background: var(--blue-deep);
}

.event-detail.price span {
    color: rgba(255, 250, 240, .78);
}

.event-detail.price strong {
    color: var(--yellow);
    font-size: 1.45rem;
}

.event-detail.price small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 250, 240, .84);
    font-weight: 700;
    line-height: 1.35;
}

.payment-guidance {
    width: min(760px, 100%);
    margin-top: 16px;
    padding: 18px;
    color: var(--blue-deep);
    background: rgba(255, 250, 240, .94);
    border: 2px solid rgba(201, 33, 39, .48);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(6, 31, 56, .14);
    text-align: center;
}

.payment-guidance span {
    display: block;
    margin-bottom: 8px;
    color: var(--red);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.payment-guidance p {
    margin: 8px auto 0;
    max-width: 620px;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.5;
}

.payment-guidance strong {
    color: var(--blue-deep);
    font-size: 1.08em;
    font-weight: 900;
}

.contact-link {
    color: var(--blue);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.closed-hero {
    width: min(820px, 100%);
}

.closed-notice {
    width: min(760px, 100%);
    margin-top: 18px;
    padding: 20px;
    color: var(--surface);
    background: var(--blue-deep);
    border: 2px solid rgba(243, 199, 47, .72);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(6, 31, 56, .24);
    text-align: center;
}

.closed-notice span {
    display: block;
    color: var(--yellow);
    font-size: .88rem;
    font-weight: 900;
    text-transform: uppercase;
}

.closed-notice p {
    margin: 10px auto 0;
    max-width: 560px;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.45;
}

.closed-notice .contact-link {
    color: var(--yellow);
}

.event-strip {
    width: min(760px, 100%);
    margin-top: 16px;
    padding: 16px;
    color: var(--surface);
    background: rgba(6, 31, 56, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(6, 31, 56, .24);
    text-align: center;
}

.event-strip strong,
.event-strip span {
    display: block;
}

.event-strip strong {
    color: var(--yellow);
    font-size: .96rem;
    font-weight: 800;
}

.event-strip span {
    margin-top: 6px;
    color: rgba(255, 250, 240, .86);
    font-size: .88rem;
    font-weight: 650;
}

.ticket-form,
.login-box,
.detail-grid article,
.table-wrap,
.summary-grid div {
    background: rgba(255, 250, 240, .96);
    border: 1px solid rgba(6, 31, 56, .14);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.ticket-form {
    width: min(820px, 100%);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.ticket-form::before {
    content: "Compra de entrada";
    display: block;
    margin: -30px -30px 26px;
    padding: 18px 24px;
    color: var(--surface);
    background:
        linear-gradient(90deg, var(--blue-deep), var(--blue)),
        var(--blue-deep);
    border-bottom: 4px solid var(--red);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

label,
fieldset {
    display: block;
    margin: 0 0 18px;
    color: var(--blue-deep);
    font-size: .84rem;
    font-weight: 750;
}

label span,
small {
    color: var(--muted);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px 13px;
    border: 1px solid rgba(6, 31, 56, .26);
    border-radius: 12px;
    background: #fffdf6;
    color: var(--ink);
    font: 500 1rem var(--font);
    letter-spacing: 0;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(6, 31, 56, .42);
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(11, 106, 67, .14);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

fieldset {
    padding: 16px;
    border: 1px solid rgba(11, 106, 67, .28);
    border-radius: 14px;
    background: rgba(11, 106, 67, .05);
}

legend {
    padding: 0 8px;
}

.choice-row,
.action-row,
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.choice-row label,
.terms {
    display: flex;
    gap: 10px;
    align-items: center;
}

.choice-row input,
.terms input {
    width: auto;
    margin: 0;
}

.terms {
    padding: 14px;
    border-radius: 14px;
    background: rgba(243, 199, 47, .26);
}

.price-calculator {
    margin: 0 0 18px;
    padding: 16px;
    color: var(--surface);
    background: var(--blue-deep);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(6, 31, 56, .16);
}

.price-calculator span,
.price-calculator strong,
.price-calculator small {
    display: block;
}

.price-calculator span {
    color: rgba(255, 250, 240, .8);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.price-calculator strong {
    margin-top: 6px;
    color: var(--yellow);
    font-size: 1.55rem;
    font-weight: 900;
}

.price-calculator small {
    margin-top: 6px;
    color: rgba(255, 250, 240, .88);
}

button,
.primary-link,
.filters a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: var(--surface);
    background: var(--blue-deep);
    font: 750 .95rem var(--font);
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover,
.primary-link:hover,
.filters a:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(6, 31, 56, .22);
}

.primary-button,
.primary-link,
.approve-button {
    color: var(--blue-deep);
    background: var(--yellow);
}

.secondary-button {
    color: var(--blue-deep);
    background: rgba(6, 31, 56, .08);
}

.refuse-button {
    background: var(--red);
}

.error-text {
    min-height: 20px;
    color: var(--red);
    font-weight: 750;
}

.admin-page {
    background:
        linear-gradient(145deg, rgba(11, 106, 67, .1), transparent 38%),
        #f7d963;
}

.admin-topbar {
    min-height: 64px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blue-deep);
    color: var(--surface);
    border-bottom: 4px solid var(--red);
}

.admin-topbar a {
    color: inherit;
    font-weight: 750;
    text-decoration: none;
}

.admin-brand {
    color: var(--yellow) !important;
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

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

.admin-heading h1,
.login-box h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-grid div {
    padding: 18px;
}

.summary-grid span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.summary-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--blue-deep);
    font-size: 2.15rem;
}

.filters {
    margin-bottom: 18px;
}

.filters a {
    min-height: 38px;
    color: var(--blue-deep);
    background: rgba(255, 250, 240, .88);
}

.filters a.active {
    color: var(--surface);
    background: var(--blue);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--surface);
    background: var(--blue-deep);
    font-size: .78rem;
    font-weight: 750;
}

td a,
.back-link {
    color: var(--blue);
    font-weight: 750;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 750;
}

.badge-pendente {
    color: var(--blue-deep);
    background: rgba(243, 199, 47, .7);
}

.badge-aprovado {
    color: #073517;
    background: #a9daa3;
}

.badge-recusado {
    color: #5d160f;
    background: #f3b1a8;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
}

.detail-grid article {
    padding: 22px;
}

.detail-grid h2 {
    margin-top: 0;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 800;
}

dl {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 10px 16px;
}

dt {
    color: var(--blue-deep);
    font-weight: 750;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.notes-form {
    margin-top: 22px;
}


.delete-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(6, 31, 56, .12);
}

.delete-button {
    color: var(--surface);
    background: #8f1d2c;
}
.manual-invite {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(11, 106, 67, .24);
    border-radius: 18px;
    background: rgba(11, 106, 67, .06);
}

.manual-invite.pending {
    background: rgba(243, 199, 47, .18);
}

.manual-invite h3 {
    margin: 0 0 8px;
    color: var(--blue-deep);
    font-size: 1.1rem;
}

.manual-invite p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.45;
}

.manual-invite input,
.manual-invite textarea {
    background: #ffffff;
}

.invite-preview-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.invite-preview-heading {
    display: grid;
    justify-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.invite-preview-heading h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.invite-preview-heading p:not(.eyebrow) {
    max-width: 620px;
    color: #1e2a34;
    font-weight: 650;
    line-height: 1.55;
}

.invite-card {
    width: min(840px, 100%);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid rgba(6, 31, 56, .16);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.invite-art {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 244, 194, .72), transparent 42%),
        #f3c72f;
}

.invite-art img {
    width: min(280px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 22px;
    filter: drop-shadow(0 16px 28px rgba(6, 31, 56, .18));
}

.invite-content {
    padding: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .34), transparent),
        var(--surface);
}

.invite-kicker {
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 10px;
    color: var(--surface);
    background: var(--red);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.invite-content h2 {
    margin: 0 0 18px;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: clamp(2.25rem, 4vw, 3.8rem);
    font-weight: 850;
    line-height: .9;
    letter-spacing: 0;
    text-transform: uppercase;
}

.invite-content h2 span {
    color: var(--blue);
    font-size: .58em;
}

.invite-content p {
    color: #1e2a34;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.invite-greeting {
    margin-top: 0;
}

.invite-meta {
    margin: 22px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.invite-meta div {
    padding: 13px;
    border: 1px solid rgba(6, 31, 56, .12);
    border-radius: 14px;
    background: rgba(243, 199, 47, .16);
}

.invite-meta span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.invite-meta strong {
    display: block;
    color: var(--blue-deep);
    font-size: .98rem;
    line-height: 1.35;
}

.invite-note {
    padding: 14px;
    border-radius: 14px;
    color: var(--surface) !important;
    background: var(--blue-deep);
}

.invite-signature {
    margin-bottom: 0;
    color: var(--blue-deep) !important;
    font-weight: 800 !important;
}

.invite-download {
    margin-top: 14px;
}

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

.login-box {
    width: min(430px, 100%);
    padding: 28px;
    text-align: center;
}

.login-box label {
    text-align: left;
}

.empty {
    text-align: center;
    padding: 30px;
    font-weight: 750;
}

@media (max-width: 860px) {
    body.public-page {
        background:
            linear-gradient(180deg, #f6d34d 0%, #f1bf29 72%, var(--blue-deep) 72%, var(--blue-deep) 100%);
    }

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

    .hero {
        padding-bottom: 0;
    }

    .poster-art {
        width: min(440px, 92vw);
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 560px) {
    .public-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .form-grid.two,
    .event-details,
    .invite-meta,
    .summary-grid,
    dl {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .poster-art {
        width: min(100%, 92vw);
    }

    .ticket-form,
    .login-box,
    .detail-grid article {
        padding: 20px;
        border-radius: 18px;
    }

    .ticket-form::before {
        margin: -20px -20px 22px;
    }

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

    .invite-art,
    .invite-content {
        padding: 22px;
    }
}

