:root {
  --bg: #0b0b0c;
  --panel: #171719;
  --panel-2: #1f2023;
  --line: rgba(210, 176, 84, 0.18);
  --line-strong: rgba(210, 176, 84, 0.34);
  --text: #ede3d1;
  --muted: #a79a83;
  --gold: #d2b054;
  --blue: #5d95d8;
  --green: #5fb47e;
  --amber: #dd9a46;
  --red: #d26156;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #131416 0%, #080809 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
body { min-height: 100vh; }
a { text-decoration: none; }
button, input, select, textarea { font: inherit; }
input[type="file"] {
  padding: 10px 12px;
}
.login-body { display: grid; place-items: center; padding: 22px; }
.public-body {
  padding: 24px;
}
.login-shell { width: 100%; max-width: 460px; }
.public-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.public-footer {
  padding: 22px 24px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.public-footer a {
  color: var(--gold);
}
.login-card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.login-card { padding: 28px; }
.login-title, .page-title, .section-title, .brand {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.04em;
}
.login-title { margin: 10px 0 10px; font-size: 42px; line-height: 0.95; }
.muted { color: var(--muted); }
.form-stack { display: grid; gap: 14px; margin-top: 20px; }
.login-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.form-grid .span-2 { grid-column: span 2; }
.form-group { display: grid; gap: 7px; }
.input-like-readonly {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(210, 176, 84, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}
.button-primary { background: var(--gold); color: #111; }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button-danger { background: rgba(210, 97, 86, 0.12); color: #ffb2ab; border-color: rgba(210, 97, 86, 0.28); }
.button-full { width: 100%; }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.toolbar-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
}
.toolbar-search {
  min-width: min(420px, 100%);
  flex: 1 1 420px;
  display: grid;
  gap: 8px;
}
.toolbar-search label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.bookings-filter-search {
  flex: 1.6 1 360px;
  min-width: min(360px, 100%);
}
.bookings-filter-status {
  flex: 0 1 210px;
  min-width: min(210px, 100%);
}
.bookings-filter-event {
  flex: 1.15 1 300px;
  min-width: min(300px, 100%);
}
.public-section {
  margin-top: 20px;
}
.public-hero {
  background:
    radial-gradient(circle at top right, rgba(210,176,84,0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.public-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.public-event-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.public-event-poster {
  display: block;
  background: #111;
  position: relative;
}
.public-event-poster img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.public-event-poster-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid #111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.public-event-poster-cta-closed {
  background: #b42318;
  color: #fff;
  font-weight: 900;
}
.public-event-poster-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #111;
}
.public-booking-button {
  background: var(--red) !important;
  color: #fff !important;
  border-color: #111 !important;
}
.public-booking-button-closed {
  background: #b42318 !important;
  cursor: default;
  pointer-events: none;
}
.public-event-title {
  font-size: 24px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.1;
}
.public-event-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.public-event-card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}
.public-meta {
  color: var(--muted);
  margin-top: 6px;
}
.public-soldout-note {
  display: inline-block;
  margin-left: 8px;
  color: #ffd79a;
  font-size: 13px;
  line-height: 1.5;
}
.public-soldout-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(210, 97, 86, 0.16);
  border: 1px solid rgba(210, 97, 86, 0.34);
  color: #ff9e96;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.public-soldout-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.public-soldout-title {
  display: block;
  margin-bottom: 4px;
  color: #ff9e96;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.public-description {
  margin: 14px 0 18px;
  line-height: 1.6;
}
.public-event-layout {
  align-items: start;
}
.public-info-card {
  position: sticky;
  top: 24px;
}
.public-single-poster {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.public-single-poster img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #111;
}
.public-form-grid {
  margin-top: 16px;
}
.public-back-row {
  margin-bottom: 18px;
}
.table-sort,
.table-sort:link,
.table-sort:visited,
.table-sort:active {
  color: #b7b0a3 !important;
  font-weight: 700;
}
.table-sort:hover,
.table-sort.active {
  color: #d7d1c5 !important;
}
.alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.page-alert { margin-bottom: 20px; }
.alert-error {
  background: rgba(210, 97, 86, 0.12);
  border: 1px solid rgba(210, 97, 86, 0.28);
  color: #ffaaa0;
}
.alert-success {
  background: rgba(95, 180, 126, 0.12);
  border: 1px solid rgba(95, 180, 126, 0.28);
  color: #b6f0c9;
}
.alert-waiting {
  background: rgba(221, 154, 70, 0.12);
  border: 1px solid rgba(221, 154, 70, 0.34);
  color: #ffd79a;
}
.alert-info {
  background: rgba(93, 149, 216, 0.12);
  border: 1px solid rgba(93, 149, 216, 0.28);
  color: #bdd8ff;
}
.public-booking-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.public-booking-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 34px;
  background: rgba(255,255,255,0.08);
  font-size: 18px;
  line-height: 1;
}
.public-booking-result strong {
  display: block;
  margin-bottom: 4px;
}
.demo-box {
  margin-top: 20px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.demo-title, .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.app-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
  background: rgba(10, 10, 11, 0.96);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
}
.sidebar-brand-block {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.sidebar-logo-wrap {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f1012;
}
.brand { font-size: 28px; color: var(--gold); }
.sidebar-chapter { margin-top: 0; }
.sidebar-user { margin-top: 20px; padding: 14px; }
.sidebar-nav { display: grid; gap: 16px; margin-top: 18px; }
.sidebar-nav-section {
  display: grid;
  gap: 8px;
}
.sidebar-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(210, 176, 84, 0.7);
  padding: 0 6px;
}
.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav-link:hover, .nav-link.active {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}
.sidebar-logout { margin-top: 18px; }
.sidebar-footer-brand {
  margin-top: 14px;
  text-align: center;
}
.content { padding: 24px; }
.page-header { margin-bottom: 24px; }
.page-title { margin: 8px 0 8px; font-size: 36px; }
.page-subtitle { margin: 0; color: var(--muted); }
.stats-grid, .two-col { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col { grid-template-columns: 1fr 1fr; }
.section-gap { margin-top: 24px; }
.stat-card, .pad { padding: 18px; }
.stat-value { margin-top: 8px; font-size: 34px; font-weight: 800; }
.section-top, .list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.section-title { margin: 8px 0 0; font-size: 28px; }
.list { display: grid; gap: 12px; margin-top: 16px; }
.list-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.list-item h3 { margin: 0 0 6px; }
.dashboard-list-item h3 {
  margin-bottom: 4px;
}
.dashboard-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(210, 176, 84, 0.14);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.dashboard-chip-soldout {
  background: rgba(210, 97, 86, 0.14);
  border-color: rgba(210, 97, 86, 0.28);
  color: #ff9e96;
  font-weight: 700;
}
.dashboard-status-item {
  display: grid;
  gap: 8px;
}
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status.green { background: rgba(95, 180, 126, 0.12); color: var(--green); }
.status.amber { background: rgba(221, 154, 70, 0.12); color: var(--amber); }
.status.red { background: rgba(210, 97, 86, 0.12); color: var(--red); }
.status.blue { background: rgba(93, 149, 216, 0.12); color: var(--blue); }
.member-hog-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.member-hog-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(210, 176, 84, 0.12);
  border: 1px solid rgba(210, 176, 84, 0.22);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.member-hog-expiry {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.member-hog-expiry.expired {
  color: var(--red);
}
.member-request-action {
  position: relative;
  display: inline-flex;
  width: 42px;
  min-height: 58px;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 16px;
}
.member-request-action-complete {
  min-height: 42px;
  padding-bottom: 0;
}
.member-request-count {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.table-wrap { margin-top: 16px; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
.row-waiting td {
  background: rgba(221, 154, 70, 0.06);
}
.bulk-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bulk-booking-checkbox,
#select_all_bookings {
  width: 16px;
  height: 16px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.text-link { color: var(--gold); }
.empty-state {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.panel-note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.form-errors {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.inline-form {
  display: inline-flex;
  margin: 0;
}
.template-vars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.template-var-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.template-var-item code {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(210,176,84,0.12);
  color: var(--gold);
}
.template-var-item span {
  color: var(--muted);
}
.template-editor {
  min-height: 420px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}
.embed-code {
  min-height: 110px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #111215;
}
.compact-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.event-preview-stats {
  grid-template-columns: 0.8fr 0.8fr 1.45fr 0.75fr 0.75fr 0.75fr 1fr 1fr;
}
.renewal-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cash-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cash-summary-grid .compact-stat-card {
  min-height: 94px;
  padding: 14px 18px;
}
.cash-summary-grid .eyebrow {
  margin-bottom: 8px;
}
.cash-summary-grid .stat-value {
  font-size: 32px;
  line-height: 1;
}
.cash-summary-grid .muted {
  margin-top: 6px;
  font-size: 13px;
}
.cash-toolbar-row {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: end;
}
.cash-toolbar-search {
  min-width: 280px;
  flex: 0 1 320px;
}
.cash-toolbar-row .form-group {
  min-width: 150px;
  flex: 0 0 150px;
}
.cash-toolbar-row .button-row {
  flex: 0 0 auto;
}
.compact-stat-card {
  min-height: 120px;
}
.event-preview-stats .compact-stat-card {
  display: flex;
  flex-direction: column;
}
.event-preview-stats .compact-stat-card .eyebrow {
  min-height: 30px;
}
.event-preview-stats .compact-stat-card .stat-value,
.event-preview-stats .compact-stat-card .section-gap {
  margin-top: auto;
}
.module-toggle-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.module-toggle-card .checkbox-label {
  width: 100%;
}
.template-preview-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.template-preview-card {
  min-height: 120px;
}
.template-advanced {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 16px;
  background: rgba(255,255,255,0.02);
}
.template-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
.template-advanced summary::-webkit-details-marker {
  display: none;
}
.template-advanced[open] summary {
  margin-bottom: 12px;
}
.document-link-helper {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.waitlist-panel {
  border-color: rgba(221, 154, 70, 0.28);
  background: rgba(221, 154, 70, 0.06);
}
.waitlist-title {
  font-size: 22px;
}
.waitlist-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.waitlist-pill {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid rgba(221, 154, 70, 0.24);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
}
.waitlist-pill span {
  color: var(--muted);
  font-size: 13px;
}
.booking-ops-summary {
  display: grid;
  gap: 12px;
}
.booking-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.booking-ops-grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.booking-ops-card {
  padding: 14px;
  min-width: 0;
}
.booking-ops-card .stat-value {
  margin-top: 6px;
  font-size: clamp(22px, 2.2vw, 30px);
}
.booking-ops-card .muted {
  margin-top: 6px;
  font-size: 13px;
}
@media (max-width: 1180px) {
  .booking-ops-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
.guide-sheet {
  display: grid;
  gap: 12px;
}
.guide-sheet h2,
.guide-sheet h3 {
  margin: 0;
}
.guide-sheet p,
.guide-sheet ul {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}
.guide-sheet ul {
  padding-left: 18px;
}
.event-preview-poster {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.event-preview-poster img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #111;
}
.grouped-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}
.grouped-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.nested-form-grid {
  margin-top: 0;
}
.inline-grid-2,
.inline-grid-3,
.inline-grid-4 {
  display: grid;
  gap: 16px;
}
.inline-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inline-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.inline-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.email-preview-frame {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 320px;
}
.email-preview-frame > * {
  max-width: 100%;
}
.action-icons {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}
.events-action-icons {
  gap: 7px;
}
.events-table td {
  vertical-align: middle;
}
.date-stack {
  display: grid;
  gap: 3px;
}
.events-actions-cell {
  white-space: nowrap;
}
.events-action-icons .icon-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.events-action-icons .icon-action span {
  font-size: 16px;
}
.visibility-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.visibility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.visibility-icon.green {
  color: var(--green);
  background: rgba(95, 180, 126, 0.12);
}
.visibility-icon.red {
  color: var(--red);
  background: rgba(210, 97, 86, 0.12);
}
.visibility-icon.amber {
  color: var(--amber);
  background: rgba(221, 154, 70, 0.12);
}
.visibility-icon.blue {
  color: var(--blue);
  background: rgba(93, 149, 216, 0.12);
}
.table-soldout-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(210, 97, 86, 0.16);
  border: 1px solid rgba(210, 97, 86, 0.34);
  color: #ff9e96;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.icon-action {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #24262a;
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.icon-action-static {
  cursor: default;
}
.icon-action-static:hover {
  transform: none;
}
.icon-action:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 176, 84, 0.56);
  background: rgba(210, 176, 84, 0.12);
}
.icon-action-danger {
  color: #ffb2ab;
}
.icon-action-alert {
  color: #ffb2ab;
  border-color: rgba(210, 97, 86, 0.42);
  background: rgba(210, 97, 86, 0.12);
}
.icon-action-alert:hover {
  background: rgba(210, 97, 86, 0.18);
  border-color: rgba(210, 97, 86, 0.52);
}
.icon-action-success {
  color: #b6f0c9;
  border-color: rgba(95, 180, 126, 0.38);
  background: rgba(95, 180, 126, 0.12);
}
.icon-action-success:hover {
  background: rgba(95, 180, 126, 0.18);
  border-color: rgba(95, 180, 126, 0.52);
}
.icon-action-danger:hover {
  background: rgba(210, 97, 86, 0.16);
  border-color: rgba(210, 97, 86, 0.42);
}
.icon-action span {
  font-size: 19px;
  line-height: 1;
}
.form-group-missing label {
  color: #ffb2ab;
}
.form-group-missing input,
.form-group-missing select,
.form-group-missing textarea {
  border-color: rgba(210, 97, 86, 0.48);
  box-shadow: 0 0 0 1px rgba(210, 97, 86, 0.14);
}
.sidebar-switcher {
  margin-bottom: 16px;
  display: grid;
  gap: 10px;
}
.compact-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
}
.check-card input {
  width: 18px;
  height: 18px;
}
.receipt-sheet {
  margin-top: 18px;
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 34px 42px;
}
.receipt-header {
  text-align: center;
}
.receipt-logo {
  max-width: 150px;
  max-height: 130px;
  display: block;
  margin: 0 auto 12px;
}
.receipt-chapter {
  line-height: 1.6;
  font-weight: 700;
}
.receipt-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}
.receipt-recipient {
  margin-top: 38px;
  line-height: 1.65;
}
.receipt-label {
  font-weight: 700;
  margin-bottom: 8px;
}
.receipt-body {
  margin-top: 34px;
  line-height: 1.8;
  min-height: 150px;
}
.receipt-footer-date {
  margin-top: 80px;
}
@media (max-width: 980px) {
  .app-layout, .stats-grid, .two-col, .form-grid, .event-preview-stats { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .template-preview-grid { grid-template-columns: 1fr; }
  .template-vars { grid-template-columns: 1fr; }
  .renewal-summary-grid { grid-template-columns: 1fr; }
  .cash-summary-grid { grid-template-columns: 1fr; }
  .public-card-grid { grid-template-columns: 1fr; }
  .inline-grid-2, .inline-grid-3, .inline-grid-4 { grid-template-columns: 1fr; }
  .compact-role-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .cash-toolbar-row { flex-wrap: wrap; }
  .cash-toolbar-search,
  .cash-toolbar-row .form-group,
  .cash-toolbar-row .button-row {
    min-width: 100%;
    flex: 1 1 100%;
  }
  .public-body { padding: 14px; }
  .public-info-card { position: static; }
}
