* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f7f8fa;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header,
.site-footer {
    background: #111827;
    color: #fff;
    padding: 16px 24px;
}

.site-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-nav a,
.site-footer a {
    color: #dbeafe;
}

.site-main {
    margin: 0 auto;
    max-width: 1160px;
    padding: 30px 20px 50px;
}

.hero {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 32px;
    padding: 34px;
}

.hero h1 {
    font-size: 38px;
    margin: 0 0 10px;
}

.page-title,
.section-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    margin-top: 0;
}

.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 32px;
}

.card,
.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 22px;
}

.detail-layout,
.checkout-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.button,
button {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    text-decoration: none;
}

.button:hover,
button:hover {
    background: #f8fafc;
    text-decoration: none;
}

.button.primary,
button.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.button.danger,
button.danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.button.secondary {
    background: #f8fafc;
}

.actions,
.inline-form,
.quantity-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form {
    display: grid;
    gap: 14px;
}

label {
    color: #374151;
    display: grid;
    font-weight: 700;
    gap: 6px;
}

input,
select,
textarea {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    padding: 9px 10px;
    width: 100%;
}

.quantity-form input,
.inline-form input,
.option-row input {
    width: 90px;
}

.checkbox {
    align-items: center;
    display: flex;
    gap: 8px;
}

.checkbox input {
    width: auto;
}

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

.option-row {
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 90px auto;
    padding: 14px 0;
}

.option-row span {
    color: #6b7280;
    display: block;
}

table {
    background: #fff;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
}

.summary-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 18px 0;
    max-width: 360px;
    padding: 18px;
}

.summary-panel p,
.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.details {
    display: grid;
    gap: 6px 14px;
    grid-template-columns: max-content 1fr;
}

.details dt {
    color: #6b7280;
    font-weight: 700;
}

.plain-list {
    margin: 0;
    padding-left: 18px;
}

.price {
    font-size: 22px;
    font-weight: 700;
}

.empty {
    color: #6b7280;
}

.alert {
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.hidden {
    display: none;
}

.muted {
    color: #6b7280;
}

.nmi-field {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    min-height: 44px;
    padding: 9px 10px;
}

.payment-form {
    gap: 16px;
}

.ticket-group {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.ticket-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-number {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    color: #166534;
    display: inline-block;
    font-weight: 700;
    padding: 6px 10px;
}

.winner-list {
    display: grid;
    gap: 16px;
}

.winner-card h2 {
    margin-bottom: 8px;
}

.maintenance {
    margin: 80px auto;
    max-width: 640px;
    text-align: center;
}

.confirmation {
    max-width: 760px;
}

@media (max-width: 800px) {
    .site-header,
    .page-title,
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-layout,
    .checkout-layout,
    .option-row {
        grid-template-columns: 1fr;
    }

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