:root {
  --bg: #101010;
  --bg-soft: #1b1b1b;
  --red: #B00000;
  --red-dark: #8F0000;
  --white: #FFFFFF;
  --surface: #F0F0F0;
  --gold: #F0D060;
  --gold-2: #F0C040;
  --gold-3: #E0B020;
  --text: #101010;
  --border: #2d2d2d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--white); }
a { color: inherit; text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 270px; background: var(--bg); border-right: 1px solid rgba(240, 208, 96, .3); padding: 24px 18px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand-lockup { display: flex; gap: 12px; align-items: center; }
.brand-lockup.centered { justify-content: center; margin-bottom: 18px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-name { font-weight: 700; font-size: 18px; color: var(--white); }
.brand-tag { font-size: 12px; color: var(--gold); }
.nav-list { display: grid; gap: 8px; }
.nav-item { padding: 12px 14px; border-radius: 14px; color: var(--white); border: 1px solid transparent; background: rgba(255,255,255,.02); }
.nav-item:hover { border-color: rgba(240,208,96,.45); }
.nav-item.active { background: var(--red); color: var(--white); border-color: var(--red); }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(240,208,96,.25); }
.footer-user { font-size: 13px; margin-bottom: 8px; color: var(--gold); }
.logout-link { font-size: 14px; color: var(--white); }
.content-area { flex: 1; padding: 28px; max-width: calc(100vw - 270px); }
.mobile-topbar { display: none; }
.page-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.page-header h1 { margin: 0 0 6px 0; font-size: 28px; color: var(--white); }
.page-header p { margin: 0; color: #d9d9d9; max-width: 760px; line-height: 1.5; }
.instruction-card, .panel, .stat-card { background: var(--white); color: var(--text); border-radius: 18px; border: 1px solid rgba(16,16,16,.15); }
.instruction-card { padding: 18px 20px; margin-bottom: 18px; border-top: 4px solid var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { padding: 18px; min-height: 98px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card span { font-size: 12px; text-transform: uppercase; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.stat-card strong { font-size: 18px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 20px; margin-bottom: 18px; }
.panel-title { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--white); background: var(--red); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; text-transform: uppercase; box-shadow: inset 0 -2px 0 var(--gold-2); }
.countdown { font-size: 34px; font-weight: 800; color: var(--red); }
.subtle { color: #555; font-size: 14px; }
.panel-actions, .payment-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { appearance: none; border: none; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid rgba(16,16,16,.18); }
.checklist { list-style: none; padding: 0; margin: 0 0 14px 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.checklist li.done .bullet { background: var(--red); color: var(--white); border-color: var(--red); }
.bullet { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--gold-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--red); }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-bar { flex: 1; background: #ececec; height: 12px; border-radius: 999px; overflow: hidden; }
.progress-bar div { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold-2)); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field-full { grid-column: 1 / -1; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.text-input, .simple-form .text-input, .auth-card input, .auth-card select, .auth-card textarea { width: 100%; border-radius: 12px; border: 1px solid rgba(16,16,16,.2); background: var(--white); color: var(--text); padding: 12px 14px; min-height: 46px; font-size: 14px; }
.text-input:focus, .auth-card input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(176,0,0,.12); }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid rgba(16,16,16,.14); padding: 10px 12px; border-radius: 999px; }
.choice-pill input { accent-color: var(--red); }
.inline-choice { display: inline-flex; gap: 10px; align-items: center; }
.inline-choice input { accent-color: var(--red); }
.save-indicator { background: var(--white); color: var(--text); border: 1px solid rgba(16,16,16,.14); border-radius: 999px; padding: 10px 14px; font-size: 13px; }
.save-indicator.saving { background: var(--gold); }
.save-indicator.error { background: var(--red); color: var(--white); }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.upload-card { background: var(--surface); border: 1px dashed var(--gold-3); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.upload-label { font-weight: 800; color: var(--red); }
.file-table { display: grid; gap: 10px; }
.file-row { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr .8fr; gap: 12px; align-items: center; background: var(--surface); padding: 12px 14px; border-radius: 12px; }
.file-row.head { background: transparent; color: var(--red); font-weight: 800; text-transform: uppercase; font-size: 12px; padding: 0 4px 8px 4px; }
.empty-state { background: var(--surface); padding: 18px; border-radius: 12px; color: #444; }
.messages-panel { padding-bottom: 12px; }
.message-thread { display: grid; gap: 12px; margin-bottom: 16px; }
.message-bubble { max-width: 82%; padding: 14px; border-radius: 16px; background: var(--surface); }
.message-bubble.admin { margin-left: auto; background: #fff3d1; }
.message-meta { font-size: 12px; color: #555; margin-bottom: 6px; }
.message-composer { display: grid; gap: 12px; }
.pay-chip { background: var(--surface); border: 1px solid rgba(16,16,16,.14); padding: 10px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.detail-list { display: grid; gap: 12px; }
.detail-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(16,16,16,.08); }
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--white); color: var(--text); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.auth-card h1 { margin: 0 0 4px 0; color: var(--text); }
.auth-card label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.alert { background: #ffe0e0; color: var(--red); border-radius: 12px; padding: 12px; }
.helper { font-size: 12px; color: #666; }
.simple-form { display: grid; gap: 12px; }
.admin-status-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; padding-top: 10px; }
.admin-event-card { background: var(--surface); padding: 12px; border-radius: 14px; }
.payment-methods { margin-top: 14px; }
.mobile-topbar .menu-btn { background: var(--red); color: var(--white); border: none; border-radius: 10px; width: 42px; height: 42px; font-size: 18px; }
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .upload-grid, .two-col-grid, .admin-status-grid { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 1.6fr 1fr 1fr .8fr; }
}
@media (max-width: 860px) {
  .mobile-topbar { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid rgba(240,208,96,.2); position: sticky; top: 0; z-index: 30; background: var(--bg); }
  .sidebar { position: fixed; left: -290px; z-index: 40; transition: left .2s ease; }
  .sidebar.open { left: 0; }
  .content-area { max-width: 100vw; width: 100%; padding: 18px; }
  .app-shell { display: block; }
  .page-header { flex-direction: column; }
}
@media (max-width: 640px) {
  .form-grid, .stat-grid, .upload-grid, .two-col-grid { grid-template-columns: 1fr; }
  .file-row, .file-row.head { grid-template-columns: 1fr; }
  .message-bubble { max-width: 100%; }
}
