:root {
    --orange: #ff641e;
    --orange-dark: #e74b12;
    --blue: #171179;
    --blue-deep: #100663;
    --blue-bright: #2b4fd8;
    --green: #16a34a;
    --yellow: #facc15;
    --red: #dc2626;
    --ink: #171717;
    --muted: #626577;
    --line: #e2e4eb;
    --surface: #f5f6fa;
    --white: #fff;
    --shadow: 0 10px 30px rgba(20, 18, 74, .08);
    --radius: 8px;
    --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; letter-spacing: 0; }
body, button, input, select, textarea { font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #6ca6ff; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: 1.15rem; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { padding-block: 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; border: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: -60px; background: var(--white); color: var(--blue); padding: 10px 14px; border-radius: 4px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header); background: var(--blue); color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.16); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; white-space: nowrap; }
.brand-ticket { display: grid; place-items: center; width: 42px; height: 34px; background: var(--orange); color: var(--white); border: 2px solid rgba(255,255,255,.8); border-radius: 4px; font-size: .83rem; font-weight: 900; }
.brand strong { color: #ffd8c6; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: .94rem; }
.main-nav > a:not(.button) { color: rgba(255,255,255,.82); }
.main-nav > a:hover { color: var(--white); }
.site-header .menu-toggle { display: none; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--blue); }
.menu-toggle span { width: 20px; height: 2px; display: block; background: currentColor; margin: 2px; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; padding: 11px 20px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(16,6,99,.16); }
.button-primary { background: var(--orange); color: var(--white); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { color: var(--blue); background: #eef0ff; border-color: #d4d7fb; }
.button-success { color: var(--white); background: var(--green); }
.button-danger { color: var(--white); background: var(--red); }
.button-light { color: var(--blue); background: var(--white); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(16,6,99,.22); }
.button-outline-light { color: var(--white); border-color: rgba(255,255,255,.3); background: transparent; }
.button-small { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-button { border: 0; background: none; color: var(--blue); text-decoration: underline; padding: 10px; }

.eyebrow { display: inline-block; margin-bottom: 12px; color: #ffd7c4; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.eyebrow.dark { color: var(--orange-dark); }
.hero { position: relative; min-height: min(680px, calc(100vh - var(--header) - 58px)); display: flex; align-items: center; color: var(--white); background-image: var(--hero-image); background-size: cover; background-position: center; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,6,99,.96) 0%, rgba(23,17,121,.77) 44%, rgba(16,6,99,.08) 78%); }
.hero-content { position: relative; padding-block: 80px; }
.hero-content h1 { max-width: 710px; margin-bottom: 16px; }
.hero-content p { max-width: 610px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.86); }
.hero-content .button-row { margin-top: 30px; }

.featured-band { background: var(--surface); padding-block: 64px; }
.featured-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); align-items: stretch; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.featured-layout > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.featured-copy { padding: clamp(28px, 5vw, 54px); }
.featured-copy h2 { margin: 14px 0 12px; }
.featured-copy p { color: var(--muted); }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 25px 0; }
.price-line strong { color: var(--blue); font-size: 2rem; }
.price-line span { color: var(--muted); }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: var(--muted); font-size: .88rem; }
.progress { height: 10px; background: #e8e9f0; border-radius: 5px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0; }
.countdown span { display: grid; text-align: center; padding: 10px 4px; background: var(--blue); color: rgba(255,255,255,.75); border-radius: 6px; font-size: .7rem; text-transform: uppercase; }
.countdown b { color: var(--white); font-size: 1.35rem; }
.countdown.compact { margin: 16px 0; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { color: var(--blue); font-weight: 750; }
.section-heading.light { color: var(--white); }
.raffle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.raffle-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 5px 18px rgba(18,20,54,.07); }
.raffle-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.raffle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.raffle-card:hover .raffle-image img { transform: scale(1.025); }
.raffle-image .status-badge { position: absolute; top: 12px; left: 12px; }
.raffle-card-body { padding: 20px; }
.raffle-card h3 { margin-bottom: 8px; }
.raffle-card p { min-height: 48px; color: var(--muted); font-size: .92rem; }
.raffle-card .progress { margin-bottom: 18px; height: 7px; }

.status-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.status-active, .status-paid, .status-approved { color: #085b27; background: #dcfce7; }
.status-scheduled, .status-reserved, .status-awaiting_proof { color: #765100; background: #fef3c7; }
.status-pending_review, .status-pending_payment { color: #7c2d12; background: #ffedd5; }
.status-closed, .status-cancelled, .status-expired { color: #4b5563; background: #e5e7eb; }
.status-rejected { color: #991b1b; background: #fee2e2; }
.status-winner, .status-drawn { color: #6d4c00; background: #fef08a; }

.how-band { padding-block: 72px; color: var(--white); background: var(--blue); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps b { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--white); }
.steps p { color: rgba(255,255,255,.74); }
.trust-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.trust-strip div { display: grid; gap: 3px; padding: 26px; background: var(--white); }
.trust-strip strong { color: var(--blue); font-size: 1.45rem; }
.trust-strip span { color: var(--muted); }
.winner-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.winner-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.winner-card > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.winner-card > div { padding: 22px; }
.winner-card h2, .winner-card h3 { margin: 12px 0 5px; }
.winner-card p { color: var(--muted); }
.winner-card dl { margin: 18px 0 0; }
.winner-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.winner-card dt { color: var(--muted); }
.winner-card dd { margin: 0; text-align: right; }
.faq-section { padding-top: 32px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { margin: 12px 0 0; color: var(--muted); }

.site-footer { padding-top: 60px; color: rgba(255,255,255,.78); background: var(--blue-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer-grid h2 { color: var(--white); font-size: 1rem; }
.footer-grid a { display: block; margin: 8px 0; }
.brand-footer { margin-bottom: 18px; }
.admin-link { color: #ffc4aa; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 45px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }

.page-heading { padding: 68px 0; color: var(--white); background: var(--blue); }
.page-heading h1 { margin-bottom: 12px; font-size: clamp(2.3rem,5vw,4rem); }
.page-heading p { margin: 0; color: rgba(255,255,255,.75); font-size: 1.1rem; }
.compact-heading { padding-block: 42px; }
.back-link { display: inline-block; margin-bottom: 12px; color: #ffd4c0; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 24px; }
.filter { min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.filter.active { color: var(--white); background: var(--blue); border-color: var(--blue); }

.raffle-hero { padding-block: 48px; background: var(--surface); }
.raffle-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 38px; align-items: start; }
.raffle-gallery { overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.raffle-gallery img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.raffle-summary h1 { margin: 16px 0; font-size: clamp(2rem,4vw,3.2rem); }
.raffle-summary > p { color: var(--muted); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 14px; }
.metric-row div { display: grid; gap: 2px; }
.metric-row b { color: var(--blue); font-size: 1.2rem; }
.metric-row span { color: var(--muted); font-size: .8rem; }
.draw-date { margin: 18px 0 0; }
.action-stack { display: grid; gap: 10px; margin-top: 22px; }
.detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: 64px; align-items: start; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 38px; font-size: 1.6rem; }
.prose p { color: #444654; }
.info-panel { position: sticky; top: calc(var(--header) + 24px); padding: 26px; border-left: 4px solid var(--orange); background: var(--surface); }
.info-panel h2 { font-size: 1.3rem; }
.package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.package-grid button { display: grid; min-height: 68px; place-items: center; border: 1px solid #d9dbea; border-radius: 6px; background: var(--white); color: var(--blue); }
.package-grid button:hover { border-color: var(--orange); }
.package-grid span { font-size: .78rem; color: var(--muted); }
.notice { margin-top: 22px; padding: 16px; color: #174f2b; background: #e9f9ee; border-left: 3px solid var(--green); }
.notice p { margin: 5px 0 0; font-size: .85rem; }

.number-workspace { padding-block: 38px 100px; }
.number-toolbar { display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; align-items: end; margin-bottom: 18px; }
label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfd2dc; border-radius: 5px; padding: 11px 12px; background: var(--white); color: var(--ink); }
textarea { resize: vertical; }
label small { color: var(--muted); font-weight: 400; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0; color: var(--muted); font-size: .8rem; }
.legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid var(--line); border-radius: 2px; vertical-align: -1px; background: var(--white); }
.legend .available::before { border-color: var(--green); }
.legend .selected::before { background: var(--blue-bright); }
.legend .reserved::before { background: var(--yellow); }
.legend .paid::before { background: #9ca3af; }
.legend .winner::before { background: #d4a017; }
.picker-layout { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; }
.number-grid { min-height: 500px; display: grid; grid-template-columns: repeat(10, minmax(54px,1fr)); gap: 7px; align-content: start; }
.number-cell { min-width: 0; height: 44px; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 4px; background: var(--white); color: #0b6b31; font-size: .78rem; font-weight: 800; }
.number-cell:hover:not(:disabled) { background: #e9f9ee; }
.number-cell.is-selected { color: var(--white); background: var(--blue-bright); border-color: var(--blue-bright); }
.number-cell.reserved { color: #614600; background: #fef3c7; border-color: #e9c646; }
.number-cell.paid, .number-cell.pending_payment { color: #4b5563; background: #e5e7eb; border-color: #b7bbc3; text-decoration: line-through; }
.number-cell.winner { color: #493400; background: var(--yellow); border-color: #b48c00; }
.number-cell.blocked, .number-cell.cancelled { color: var(--white); background: #4b5563; border-color: #374151; }
.skeleton-grid { display: contents; }
.skeleton-grid span { height: 44px; border-radius: 4px; background: linear-gradient(90deg,#eceef3,#f7f8fa,#eceef3); background-size: 200% 100%; animation: loading 1.2s infinite; }
@keyframes loading { to { background-position: -200% 0; } }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.selection-panel { position: sticky; top: calc(var(--header) + 24px); padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); background: var(--white); box-shadow: var(--shadow); }
.selection-panel h2 { font-size: 1.25rem; }
.selection-count { display: flex; align-items: baseline; gap: 7px; }
.selection-count strong { color: var(--blue); font-size: 2.2rem; }
.selected-list { max-height: 150px; overflow: auto; margin: 14px 0; color: var(--muted); font-size: .85rem; }
.total-line { display: flex; justify-content: space-between; margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.mobile-selection { display: none; }

.checkout-layout, .order-layout, .lookup-layout { display: grid; grid-template-columns: 1fr 370px; gap: 34px; align-items: start; }
.form-panel, .order-status, .proof-panel, .lookup-result { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.form-section + .form-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h2, .proof-panel h2 { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: 1 / -1; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-options label { position: relative; }
.payment-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-options span { display: grid; min-height: 70px; align-content: center; padding: 12px; border: 2px solid var(--line); border-radius: 6px; }
.payment-options input:checked + span { border-color: var(--blue); background: #f0f1ff; }
.payment-options small { color: var(--muted); font-weight: 400; }
.check { grid-template-columns: 22px 1fr; align-items: start; gap: 9px; margin: 18px 0; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.check a { color: var(--blue); text-decoration: underline; }
.order-summary { position: sticky; top: calc(var(--header) + 24px); padding: 28px; color: var(--white); background: var(--blue); border-radius: var(--radius); }
.order-summary h2 { margin: 16px 0; font-size: 1.45rem; }
.reservation-timer { display: flex; align-items: baseline; gap: 4px; margin: 22px 0; font-size: 2rem; }
.reservation-timer span { margin-left: 8px; color: rgba(255,255,255,.67); font-size: .8rem; }
.number-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.number-chips span { padding: 5px 8px; border-radius: 4px; color: var(--blue); background: var(--white); font-size: .78rem; font-weight: 800; }
.number-chips.large span { border: 1px solid #cbd0f5; background: #f0f1ff; }
.order-summary dl { margin-bottom: 0; }
.order-summary dl div, .order-details div, .payment-instructions dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.16); }
.order-summary dd, .order-details dd, .payment-instructions dd { margin: 0; text-align: right; }
.summary-total { font-size: 1.2rem; font-weight: 800; }
.confirmation-band { padding: 48px 0; color: var(--white); background: var(--blue); }
.confirmation-inner { display: flex; align-items: center; gap: 22px; }
.confirmation-icon { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; background: var(--green); font-size: 2rem; }
.confirmation-inner h1 { margin-bottom: 4px; font-size: clamp(2rem,5vw,3rem); }
.confirmation-inner p { margin: 0; color: rgba(255,255,255,.75); }
.order-status .number-chips { margin: 24px 0; }
.proof-panel form { display: grid; gap: 16px; }
.payment-instructions { margin-bottom: 22px; padding: 16px; border-left: 3px solid var(--orange); background: var(--surface); }
.payment-instructions p:last-child { margin-bottom: 0; }
.payment-instructions dl div { border-color: var(--line); }
.lookup-layout { grid-template-columns: 370px 1fr; }
.lookup-form { display: grid; gap: 18px; }
.lookup-result { min-height: 330px; }
.lookup-result > h2 { margin: 14px 0 6px; }
.lookup-result .number-chips { margin: 22px 0; }
.empty-state { min-height: 220px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-state.compact { min-height: 150px; }
.empty-state h2 { color: var(--ink); }
.alert { padding: 14px 16px; border-left: 4px solid; border-radius: 3px; }
.alert p { margin: 4px 0 0; }
.alert-error { color: #7f1d1d; background: #fef2f2; border-color: var(--red); }
.alert-success { color: #14532d; background: #f0fdf4; border-color: var(--green); }
.alert-warning { color: #713f12; background: #fffbeb; border-color: #eab308; }
.toast { position: fixed; z-index: 500; top: 90px; right: 20px; max-width: min(420px, calc(100% - 40px)); padding: 14px 18px; color: var(--white); border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.22); animation: toast-in .25s ease; }
.toast-success { background: #126c35; }
.toast-error { background: #a91d1d; }
@keyframes toast-in { from { transform: translateY(-12px); opacity: 0; } }
.page-prose { min-height: 45vh; }
.error-page { min-height: calc(100vh - var(--header)); display: grid; place-items: center; padding: 40px 20px; text-align: center; background: var(--surface); }
.error-code { color: var(--orange); font-size: 5rem; font-weight: 900; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--blue); }
.auth-shell { width: min(440px,100%); }
.login-panel { display: grid; gap: 25px; padding: 36px; border-radius: var(--radius); background: var(--white); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.login-panel .brand { color: var(--blue); }
.login-panel .brand strong { color: var(--orange); }
.login-panel h1 { margin-bottom: 8px; font-size: 2rem; }
.login-panel p { color: var(--muted); }
.login-panel form { display: grid; gap: 18px; }
.login-panel > a:last-child { color: var(--blue); text-align: center; }

.admin-body { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: var(--surface); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 32px; padding: 28px 20px; color: var(--white); background: var(--blue-deep); }
.admin-sidebar nav { display: grid; align-content: start; gap: 6px; }
.admin-sidebar nav a { padding: 11px 12px; border-radius: 5px; color: rgba(255,255,255,.76); }
.admin-sidebar nav a:hover { color: var(--white); background: rgba(255,255,255,.09); }
.admin-main { min-width: 0; }
.admin-topbar { height: 68px; display: flex; align-items: center; justify-content: flex-end; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--white); }
.admin-topbar > div { display: grid; text-align: right; }
.admin-topbar span { color: var(--muted); font-size: .8rem; }
.admin-menu-toggle { display: none; }
.admin-content { width: min(1440px,100%); padding: 32px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-heading p { margin-bottom: 3px; color: var(--muted); }
.admin-heading h1 { margin: 0; font-size: 2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-grid article { display: grid; gap: 5px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); background: var(--white); }
.stat-grid span, .stat-grid small { color: var(--muted); }
.stat-grid strong { color: var(--blue); font-size: 1.7rem; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin: 18px 0; }
.admin-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.admin-panel h2 { font-size: 1.25rem; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; }
.panel-heading a { color: var(--blue); font-weight: 700; }
.alert-panel { background: #fff8ed; border-color: #f4d29a; }
.alert-metric { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #f0d9b4; }
.alert-metric strong { color: var(--orange-dark); font-size: 1.7rem; }
.bar-chart { min-height: 210px; display: flex; align-items: end; gap: 10px; padding-top: 25px; }
.chart-bar { position: relative; min-width: 16px; flex: 1; height: var(--bar-height); max-height: 190px; background: var(--blue-bright); border-radius: 3px 3px 0 0; }
.chart-bar span { position: absolute; bottom: -23px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .65rem; }
.chart-bar:hover::after { content: attr(data-value); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 4px 7px; color: var(--white); background: var(--ink); border-radius: 3px; font-size: .7rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
td { font-size: .9rem; }
td small { display: block; color: var(--muted); }
.admin-form { display: grid; gap: 18px; }
.admin-form.narrow { max-width: 900px; }
.admin-form .form-section + .form-section { margin-top: 0; }
.toggle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px 20px; }
.sticky-form-actions { position: sticky; bottom: 12px; z-index: 10; display: flex; justify-content: flex-end; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.payment-review-list { display: grid; gap: 16px; }
.payment-review-head { display: flex; justify-content: space-between; gap: 20px; }
.payment-review-head h2 { margin: 10px 0 4px; }
.payment-review-head p { margin: 0; color: var(--muted); }
.payment-review-head > strong { color: var(--blue); font-size: 1.5rem; }
.payment-review .order-details { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.payment-review .order-details div { display: grid; gap: 3px; border-color: var(--line); }
.payment-review .order-details dd { text-align: left; }
.proof-reference { padding: 10px; background: var(--surface); overflow-wrap: anywhere; }
.review-actions { display: flex; align-items: end; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-actions form:last-child { display: flex; align-items: end; gap: 10px; margin-left: auto; }
.settings-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-methods fieldset { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.settings-methods legend { padding: 0 8px; color: var(--blue); font-weight: 800; }

@media (max-width: 1000px) {
    .main-nav { position: absolute; top: var(--header); left: 0; right: 0; display: none; padding: 18px 16px 24px; align-items: stretch; background: var(--blue); box-shadow: 0 10px 20px rgba(0,0,0,.18); }
    .main-nav.is-open { display: grid; }
    .site-header .menu-toggle { display: block; color: var(--white); border-color: rgba(255,255,255,.25); background: transparent; }
    .featured-layout, .raffle-hero-grid { grid-template-columns: 1fr; }
    .featured-layout > img { min-height: 0; aspect-ratio: 16/9; }
    .raffle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .steps, .trust-strip { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .number-grid { grid-template-columns: repeat(8,minmax(48px,1fr)); }
    .picker-layout { grid-template-columns: 1fr; }
    .selection-panel { display: none; }
    .mobile-selection { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; color: var(--white); background: #171717; box-shadow: 0 -4px 20px rgba(0,0,0,.22); }
    .mobile-selection[hidden] { display: none; }
    .detail-layout { grid-template-columns: 1fr; }
    .info-panel { position: static; }
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; z-index: 200; left: -270px; width: 250px; transition: left .2s ease; }
    .admin-sidebar.is-open { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
    .admin-topbar { justify-content: space-between; }
    .admin-menu-toggle { display: grid; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
    :root { --header: 64px; }
    .container { width: min(100% - 24px, 1180px); }
    .section { padding-block: 48px; }
    .hero { min-height: 650px; background-position: 64% center; align-items: end; }
    .hero-overlay { background: linear-gradient(0deg, rgba(16,6,99,.98) 0%, rgba(23,17,121,.86) 48%, rgba(16,6,99,.15) 100%); }
    .hero-content { padding-block: 48px; }
    .button-row .button { width: 100%; }
    .featured-band { padding-block: 24px; }
    .featured-layout { width: 100%; border-left: 0; border-right: 0; }
    .featured-copy { padding: 24px 16px 30px; }
    .raffle-grid, .winner-grid, .faq-list { grid-template-columns: 1fr; }
    .section-heading { align-items: start; }
    .steps { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
    .trust-strip { grid-template-columns: 1fr 1fr; }
    .trust-strip div { padding: 18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .page-heading { padding-block: 46px; }
    .raffle-hero { padding-block: 18px 38px; }
    .raffle-hero-grid { width: 100%; gap: 24px; }
    .raffle-gallery { border-left: 0; border-right: 0; border-radius: 0; }
    .raffle-summary { width: calc(100% - 24px); margin-inline: auto; }
    .metric-row { gap: 6px; }
    .number-toolbar { grid-template-columns: 1fr 1fr; }
    .number-toolbar .button { grid-column: 1 / -1; }
    .number-grid { grid-template-columns: repeat(5,minmax(46px,1fr)); gap: 6px; }
    .number-cell { height: 42px; font-size: .72rem; }
    .checkout-layout, .order-layout, .lookup-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; grid-row: 1; }
    .form-panel, .order-status, .proof-panel, .lookup-result { padding: 22px 18px; }
    .form-grid, .payment-options { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .confirmation-inner { align-items: start; }
    .confirmation-icon { width: 48px; height: 48px; }
    .admin-content { padding: 20px 12px; }
    .admin-heading { align-items: stretch; flex-direction: column; }
    .stat-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .admin-panel { padding: 18px 14px; }
    .toggle-grid { grid-template-columns: 1fr; }
    .payment-review-head { align-items: start; flex-direction: column; }
    .payment-review .order-details { grid-template-columns: 1fr 1fr; }
    .review-actions, .review-actions form:last-child { align-items: stretch; flex-direction: column; }
    .settings-methods { grid-template-columns: 1fr; }
    .review-actions form:last-child { margin-left: 0; }
}

/* Public information pages and automatic purchase */
.how-hero, .contact-hero { color: var(--white); background: var(--blue); border-bottom: 8px solid var(--orange); }
.how-hero-grid, .contact-hero-inner { min-height: 360px; display: grid; align-content: center; gap: 22px; }
.how-hero-grid { grid-template-columns: minmax(0, 1fr) 310px; align-items: center; }
.how-hero h1, .contact-hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.how-hero p, .contact-hero p { max-width: 650px; color: rgba(255,255,255,.86); font-size: 1.1rem; }
.how-hero-note { display: grid; gap: 8px; padding: 28px; border-left: 5px solid var(--orange); color: var(--ink); background: var(--white); }
.how-hero-note strong { color: var(--blue); font-size: 1.3rem; }
.how-step-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.how-step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; min-height: 190px; padding: 28px; border-top: 4px solid var(--blue); background: var(--white); box-shadow: 0 8px 24px rgba(20,18,64,.08); }
.how-step.is-accent { border-top-color: var(--orange); background: #fff7f1; }
.how-step h3 { margin-bottom: 8px; color: var(--blue); font-size: 1.25rem; }
.how-step p { color: var(--muted); }
.how-step a, .how-step strong { color: var(--orange-dark); font-weight: 800; }
.step-number { color: var(--white); background: var(--blue); width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; }
.is-accent .step-number { background: var(--orange); }
.centered { justify-content: center; text-align: center; }
.light { color: var(--white); }
.how-benefits { padding: 76px 0; color: var(--white); background: #222d36; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.2); }
.benefit-grid article { min-height: 180px; padding: 26px; background: #222d36; }
.benefit-grid h3 { margin: 20px 0 8px; }
.benefit-grid p { color: rgba(255,255,255,.72); }
.benefit-mark { color: var(--orange); font-weight: 900; }
.how-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-cta h2 { margin: 0; color: var(--blue); }
.contact-hero-inner { min-height: 300px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 28px; align-items: start; }
.contact-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-card { display: grid; gap: 8px; min-height: 150px; padding: 24px; border-left: 4px solid var(--orange); color: var(--ink); background: var(--white); box-shadow: 0 6px 18px rgba(20,18,64,.08); }
.contact-card:hover { color: var(--ink); border-left-color: var(--blue); }
.contact-label { color: var(--orange-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.contact-card strong { color: var(--blue); font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); }
.contact-help { padding: 30px; border-top: 5px solid var(--blue); background: #fff7f1; }
.contact-help h2 { margin: 8px 0 18px; color: var(--blue); }
.contact-help ul { display: grid; gap: 12px; margin: 0 0 24px; padding-left: 18px; }
.contact-note { padding: 16px; border-left: 3px solid var(--orange); background: var(--white); }
.contact-note strong { color: var(--orange-dark); }
.contact-note p { margin: 5px 0 0; color: var(--muted); }
.contact-faq { background: var(--surface); }
.contact-faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-faq-grid article { padding: 24px; border-top: 3px solid var(--blue); background: var(--white); }
.contact-faq-grid h3 { color: var(--blue); }
.contact-faq-grid p { color: var(--muted); }
.terms-heading { color: var(--white); background: var(--blue); border-bottom: 8px solid var(--orange); }
.terms-heading p { color: rgba(255,255,255,.82); }
.terms-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.terms-prose { padding-right: 20px; }
.terms-lead { padding: 20px; border-left: 4px solid var(--orange); color: var(--blue); background: #fff7f1; font-weight: 700; }
.terms-aside { position: sticky; top: 24px; display: grid; gap: 14px; padding: 24px; border-top: 4px solid var(--orange); background: var(--surface); }
.terms-aside strong { color: var(--blue); font-size: 1.15rem; }
.terms-aside span { padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.terms-aside a { color: var(--orange-dark); font-weight: 800; }
.automatic-purchase { background: var(--surface); }
.automatic-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .7fr); gap: 30px; align-items: start; }
.automatic-intro { padding: 26px 0; }
.automatic-intro h2 { max-width: 600px; color: var(--blue); font-size: clamp(2rem, 4vw, 3.3rem); }
.automatic-intro p { max-width: 650px; color: var(--muted); font-size: 1.06rem; }
.automatic-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.automatic-points span { padding: 14px; border-top: 3px solid var(--orange); color: var(--blue); background: var(--white); font-size: .9rem; font-weight: 800; }
.automatic-form { display: grid; gap: 18px; padding: 28px; border-top: 5px solid var(--orange); background: var(--white); box-shadow: 0 8px 22px rgba(20,18,64,.1); }
.automatic-form fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.automatic-form legend { margin-bottom: 4px; color: var(--blue); font-weight: 800; }
.strategy-option { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); cursor: pointer; }
.strategy-option:has(input:checked) { border-color: var(--blue); background: #f4f3ff; }
.strategy-option span { display: grid; gap: 4px; }
.strategy-option strong { color: var(--blue); }
.strategy-option small { color: var(--muted); }
.automatic-total { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.automatic-total strong { color: var(--blue); font-size: 1.25rem; }
.form-note { color: var(--muted); text-align: center; }
.automatic-packages { padding-top: 0; }
.public-package-grid { grid-template-columns: repeat(5, 1fr); }
.public-package-grid button { min-height: 96px; border: 1px solid var(--line); background: var(--white); }
.public-package-grid button:hover { border-color: var(--orange); background: #fff7f1; }
.participant-toolbar { margin-bottom: 18px; }
.inline-search { display: flex; align-items: end; gap: 12px; }
.inline-search label { flex: 1; }
.admin-heading-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 800px) {
    .how-hero-grid, .contact-layout, .terms-layout, .automatic-layout { grid-template-columns: 1fr; }
    .how-hero-note { max-width: 360px; }
    .how-step-list, .contact-faq-grid { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .terms-aside { position: static; }
    .terms-prose { padding-right: 0; }
    .public-package-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .contact-card-grid, .benefit-grid, .automatic-points { grid-template-columns: 1fr; }
    .how-cta-inner, .inline-search { align-items: stretch; flex-direction: column; }
    .automatic-form { padding: 20px 16px; }
}

/* Rich admin operations */
.participant-stats, .payment-stats { margin-bottom: 18px; }
.admin-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto; gap: 12px; align-items: end; }
.admin-filter-grid label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.admin-filter-grid input, .admin-filter-grid select { margin-top: 0; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.status-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); color: var(--muted); background: var(--white); font-size: .82rem; font-weight: 800; }
.status-tabs a:hover, .status-tabs a.active { border-color: var(--blue); color: var(--white); background: var(--blue); }
.status-tabs b { display: grid; min-width: 20px; min-height: 20px; place-items: center; border-radius: 50%; color: inherit; background: rgba(255,255,255,.18); font-size: .72rem; }
.payment-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 22px; border: 1px solid var(--line); background: var(--line); }
.payment-detail-grid > div { display: grid; gap: 5px; min-height: 82px; padding: 14px; background: var(--white); }
.payment-detail-grid span, .payment-detail-grid small { color: var(--muted); font-size: .78rem; }
.payment-detail-grid strong { color: var(--blue); overflow-wrap: anywhere; }
.payment-actions { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.payment-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.payment-links small { color: var(--muted); }
.payment-actions .review-actions { padding-top: 0; border-top: 0; }
.payment-actions .review-actions form:last-child { margin-left: 0; }
.participant-detail-grid, .winner-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 18px; margin-bottom: 18px; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin-top: 18px; }
.detail-list div { display: grid; gap: 5px; padding: 13px 0; border-top: 1px solid var(--line); }
.detail-list dt, .detail-muted { color: var(--muted); }
.detail-list dd { margin: 0; color: var(--blue); font-weight: 800; overflow-wrap: anywhere; }
.participant-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.winner-overview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.winner-overview-head h2 { margin: 10px 0 3px; color: var(--blue); }
.winner-overview-head p { color: var(--muted); }
.winner-state { max-width: 170px; padding: 10px 12px; color: #166534; background: #dcfce7; font-size: .85rem; text-align: right; }
.winner-state.pending { color: var(--orange-dark); background: #fff3cf; }
.winner-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; margin-top: 20px; }
.winner-metrics div { display: grid; gap: 4px; border-top: 1px solid var(--line); }
.winner-metrics dd { color: var(--blue); font-size: 1.15rem; font-weight: 800; }
.winner-rules { margin-top: 18px; padding: 16px; border-left: 3px solid var(--orange); background: #fff7f1; }
.winner-rules p { margin: 7px 0; color: var(--muted); }
.winner-rules small { color: var(--blue); font-weight: 700; }
.winner-number-panel { border-top: 4px solid var(--orange); }
.winner-number-panel h2 { margin: 8px 0; color: var(--blue); }
.winner-number-panel > p { color: var(--muted); }
.paid-numbers-panel { margin-top: 18px; }

@media (max-width: 1000px) {
    .admin-filter-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
    .payment-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .participant-detail-grid, .winner-overview { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .admin-filter-grid { grid-template-columns: 1fr; }
    .payment-detail-grid, .detail-list, .winner-metrics { grid-template-columns: 1fr; }
    .payment-actions, .winner-overview-head { align-items: stretch; flex-direction: column; }
    .payment-actions .review-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Official storefront visual system */
:root { --header: 146px; --blue: #1b117b; --blue-deep: #150b66; --orange: #f36a21; --surface: #f7f7f9; }
.site-header { height: var(--header); color: var(--ink); background: var(--white); box-shadow: 0 2px 12px rgba(20,18,64,.12); }
.header-service { height: 56px; color: var(--white); background: var(--blue); }
.service-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header-search { width: min(570px, 52%); display: grid; grid-template-columns: 1fr 54px; }
.header-search input { height: 42px; border: 0; border-radius: 4px 0 0 4px; background: #f4f4f6; }
.header-search button { border: 0; border-radius: 0 4px 4px 0; color: var(--white); background: var(--orange); font-size: 1rem; }
.service-copy { display: flex; align-items: center; gap: 22px; font-size: .86rem; }
.service-copy a { color: #ffd8c4; }
.header-nav { height: 90px; background: var(--white); }
.header-inner { height: 100%; }
.brand-logo { width: 124px; height: 76px; object-fit: contain; }
.main-nav { gap: 25px; color: var(--ink); }
.main-nav > a:not(.button) { color: #282836; }
.main-nav > a:not(.button):hover { color: var(--orange-dark); }
.site-header .menu-toggle { color: var(--blue); }
.hero { min-height: min(620px, calc(100vh - var(--header) - 40px)); }
.hero-overlay { background: rgba(15, 8, 83, .73); }
.hero-content { padding-block: 70px; }
.hero-content h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.hero-content p { color: rgba(255,255,255,.9); }
.featured-layout { box-shadow: 0 8px 24px rgba(20,18,74,.09); }
.raffle-card { box-shadow: none; }
.how-band { border-top: 8px solid var(--orange); }
.site-footer { padding-top: 54px; background: var(--blue); }
.footer-grid { grid-template-columns: 1.35fr repeat(3, 1fr); }
.footer-logo { width: 160px; max-height: 106px; object-fit: contain; }
.footer-brand p { max-width: 310px; }
.age-notice { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 38px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); text-align: center; }
.age-notice strong { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); }
.footer-bottom { margin-top: 0; }
.status-inactive, .status-blocked { color: #7f1d1d; background: #fee2e2; }

.raffle-hero { color: var(--white); background: var(--blue); border-bottom: 8px solid var(--orange); }
.raffle-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: stretch; }
.raffle-gallery { border: 0; border-radius: 0; background: #0f0b3e; }
.raffle-gallery img { height: 100%; min-height: 470px; }
.raffle-summary { padding: clamp(28px, 4vw, 46px); color: var(--ink); background: var(--white); }
.raffle-summary > p { color: var(--muted); }
.raffle-summary h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.raffle-summary .progress { background: #e9e9ee; }
.raffle-summary .countdown { margin-bottom: 8px; }
.raffle-summary .draw-date { color: var(--muted); }
.raffle-summary .price-line strong { color: var(--blue); }
.info-panel { color: var(--white); border-left: 0; border-top: 5px solid var(--orange); background: #202b35; }
.info-panel h2 { color: var(--white); }
.info-panel .package-grid button { min-height: 82px; border: 0; border-radius: 2px; color: #20232a; background: #f4f4f6; }
.info-panel .package-grid button:hover { color: var(--white); background: var(--green); }
.info-panel .notice { color: #fff3ca; background: #303c47; border-color: var(--yellow); }

.compact-heading { color: var(--blue); background: var(--white); text-align: center; border-bottom: 1px solid var(--line); }
.compact-heading .back-link { color: var(--orange-dark); }
.compact-heading h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.compact-heading p { color: var(--muted); }
.number-toolbar { padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.number-status-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border-bottom: 2px solid var(--line); }
.number-status-tabs button { min-height: 52px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-weight: 750; }
.number-status-tabs button.active { color: var(--ink); border-bottom-color: var(--blue); }
.number-status-tabs b { margin-left: 5px; color: inherit; }
.search-result-line { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.search-result-line a { color: var(--blue); font-weight: 700; }
.number-grid { grid-template-columns: repeat(12, minmax(52px, 1fr)); gap: 6px; }
.number-cell { height: 40px; border-color: #9598a2; border-radius: 0; color: #22252b; }
.number-cell:hover:not(:disabled) { border-color: var(--blue); color: var(--white); background: var(--blue); }
.number-cell.is-selected { background: #344d89; border-color: #344d89; }
.selection-panel { border-top-color: var(--green); border-radius: 0; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.selection-panel .button-primary { background: var(--green); }

.admin-brand { display: grid; place-items: center; min-height: 102px; padding: 8px; background: var(--white); border-radius: 4px; }
.admin-brand img { width: 152px; max-height: 94px; object-fit: contain; }
.admin-sidebar { width: 260px; grid-template-rows: auto minmax(0,1fr) auto; overflow-y: auto; }
.admin-body { grid-template-columns: 260px 1fr; }
.admin-sidebar nav { gap: 3px; }
.admin-sidebar nav a { padding-block: 9px; }
.auth-brand { justify-content: center; }
.auth-brand img { width: 190px; max-height: 125px; object-fit: contain; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; }
.auth-links a { color: var(--blue); }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.permission-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; }
.permission-list .check span { display: grid; }
.permission-list small { color: var(--muted); font-weight: 400; }
.faq-admin-list, .notification-list { display: grid; gap: 16px; margin-top: 18px; }
.notification-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.notification-item.is-unread { border-left: 4px solid var(--orange); }
.notification-item h2 { margin: 9px 0 4px; }
.notification-item p { margin-bottom: 4px; color: var(--muted); }
.report-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; }
.report-stats, .report-exports { margin: 18px 0; }

@media (max-width: 1100px) {
    :root { --header: 86px; }
    .header-service { display: none; }
    .header-nav { height: 86px; }
    .main-nav { position: absolute; top: var(--header); left: 0; right: 0; display: none; padding: 18px 16px 24px; align-items: stretch; color: var(--white); background: var(--blue); box-shadow: 0 10px 20px rgba(0,0,0,.18); }
    .main-nav.is-open { display: grid; }
    .main-nav > a:not(.button) { color: rgba(255,255,255,.9); }
    .site-header .menu-toggle { display: block; border-color: #d7d7df; background: var(--white); }
    .brand-logo { width: 112px; height: 72px; }
    .raffle-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .number-grid { grid-template-columns: repeat(9, minmax(48px, 1fr)); }
    .admin-body { grid-template-columns: 1fr; }
    .admin-main, .admin-content { width: 100%; }
    .report-filter-grid { grid-template-columns: repeat(2, 1fr); }
    .report-filter-grid .button { grid-column: 1 / -1; }
}

.auth-alert { margin-bottom: 14px; }

@media (max-width: 720px) {
    :root { --header: 76px; }
    .header-nav { height: 76px; }
    .brand-logo { width: 100px; height: 66px; }
    .hero { min-height: 560px; background-position: 62% center; }
    .hero-overlay { background: rgba(15, 8, 83, .78); }
    .hero-content { padding-block: 42px; }
    .hero-content h1 { font-size: 2.65rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-logo { width: 140px; }
    .age-notice { align-items: flex-start; text-align: left; }
    .raffle-hero { padding-top: 0; }
    .raffle-hero-grid { gap: 0; }
    .raffle-gallery img { min-height: 0; aspect-ratio: 16/11; }
    .raffle-summary { width: 100%; margin: 0; padding: 24px 16px 30px; }
    .detail-layout { width: 100%; gap: 28px; padding-top: 0; }
    .detail-layout .prose { padding: 0 12px; }
    .info-panel { order: -1; padding: 24px 16px 30px; }
    .number-workspace { width: 100%; padding: 20px 12px 96px; }
    .number-toolbar { grid-template-columns: 1fr 1fr; padding: 12px; }
    .number-status-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(130px, 1fr)); }
    .number-grid { grid-template-columns: repeat(5, minmax(45px, 1fr)); gap: 5px; }
    .number-cell { height: 39px; }
    .mobile-selection .button { min-height: 44px; width: auto; }
    .role-grid, .permission-list { grid-template-columns: 1fr; }
    .notification-item { align-items: flex-start; flex-direction: column; }
    .report-filter-grid { grid-template-columns: 1fr; }
    .report-filter-grid .button { grid-column: auto; }
    .auth-links { align-items: center; flex-direction: column; }
}
