:root {
  --bg: #edf3f5;
  --panel: #ffffff;
  --border: #d5dee5;
  --text: #13212d;
  --muted: #617285;
  --brand: #145a66;
  --brand-dark: #0d4650;
  --brand-soft: #d9eef1;
  --ink-soft: #eef5f7;
  --danger: #c0392b;
  --danger-bg: #fceae7;
  --success: #1e8e5a;
  --success-bg: #e8f7ef;
  --warning: #b7791f;
  --warning-bg: #fff4dd;
  --idle-bg: #eef2f7;
  --gold: #b9995a;
  --gold-soft: #f5ecd8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(20, 90, 102, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbfc 0%, var(--bg) 38%, #e9f0f3 100%);
  color: var(--text);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--brand-dark);
}

button:disabled,
button:disabled:hover,
.button-link[aria-disabled="true"],
.button-link[aria-disabled="true"]:hover {
  background: #e8edf4;
  color: var(--muted);
  cursor: not-allowed;
}

.secondary-button {
  background: #e8edf4;
  color: var(--text);
}

.secondary-button:hover {
  background: #d8e0ea;
}

.danger-button {
  background: #fee7e6;
  color: #a53a32;
}

.danger-button:hover {
  background: #f9d4d1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.header-meta,
.subtle {
  color: var(--muted);
}

.page-content {
  display: grid;
  gap: 1.25rem;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(17, 32, 49, 0.05);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: 0 26px 64px rgba(17, 32, 49, 0.08);
}

.hero-panel {
  background: linear-gradient(135deg, #186773 0%, #145a66 52%, #0f434d 100%);
  color: #fff;
}

.hero-panel p,
.hero-panel .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.auth-panel,
.success-panel,
.centered-panel {
  max-width: 640px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 700;
}

h1,
h2 {
  margin: 0 0 0.5rem;
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.notice {
  border-radius: 18px;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
}

.notice-success {
  background: var(--success-bg);
  border-color: #b6e6cb;
  color: #0f6b3f;
}

.notice-warning {
  background: var(--warning-bg);
  border-color: #eed28a;
  color: #8d5b14;
}

.notice-error {
  background: var(--danger-bg);
  border-color: #f4b9b2;
  color: #9d2318;
}

.section-notice {
  margin-bottom: 1rem;
}

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

.compact-form {
  grid-template-columns: 1fr;
}

.form-grid label {
  display: grid;
  gap: 0.45rem;
}

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

.field-error {
  color: var(--danger);
}

.form-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.table-actions form {
  margin: 0;
}

.form-section-title {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f4f8fb;
  border: 1px solid #dce8f1;
}

.button-link {
  text-decoration: none;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-nav a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 90, 102, 0.1);
  color: var(--text);
  font-weight: 600;
}

.admin-nav a.active {
  background: var(--brand);
  color: #fff;
}

.admin-nav form {
  margin-left: auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.toolbar-wide {
  grid-template-columns: minmax(0, 1.5fr) 240px auto;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid #e9eef5;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-chip.success {
  background: var(--success-bg);
  color: var(--success);
}

.status-chip.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-chip.muted {
  background: #edf2f7;
  color: var(--muted);
}

.status-chip-button {
  min-height: 0;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.1;
}

.status-chip-button:hover {
  filter: brightness(0.98);
}

.inline-status-form {
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.disabled-link {
  color: #9ba7b6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  border: 1px solid #e5ebf3;
  border-radius: 22px;
  padding: 1rem;
  background: #fbfdff;
}

.detail-card dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.detail-card dl div {
  display: grid;
  gap: 0.15rem;
}

.detail-card dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.detail-card dd {
  margin: 0;
}

.qr-card {
  text-align: center;
}

.ticket-panel {
  max-width: 980px;
  margin: 0 auto;
}

.ticket-hero {
  margin-bottom: 1.5rem;
}

.ticket-hero p {
  max-width: 640px;
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ticket-card {
  border: 1px solid #e5ebf3;
  border-radius: 24px;
  padding: 1.25rem;
  background: #fbfdff;
}

.ticket-qr-card {
  text-align: center;
  position: sticky;
  top: 1rem;
}

.ticket-card-label {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(15, 76, 129, 0.08);
}

.ticket-qr-frame img {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.ticket-card h2 {
  margin-top: 0;
}

.ticket-meta-grid {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.ticket-meta-grid div {
  display: grid;
  gap: 0.15rem;
}

.ticket-meta-grid dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.ticket-meta-grid dd {
  margin: 0;
}

.ticket-link-box {
  margin-top: 1.2rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f4f8fc;
  border: 1px solid #dbe6f2;
}

.ticket-link-box p {
  margin: 0.45rem 0 0;
}

.ticket-link-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mono {
  font-family: Consolas, Monaco, monospace;
  word-break: break-all;
}

.scanner-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}

.scanner-panel,
.result-panel {
  min-height: 360px;
}

.reader-box {
  min-height: 360px;
  border: 2px dashed #c8d5e2;
  border-radius: 24px;
  padding: 1rem;
  background: #f9fbfd;
}

.result-card {
  border-radius: 22px;
  padding: 1rem;
  min-height: 200px;
  border: 1px solid transparent;
}

.result-idle {
  background: var(--idle-bg);
  border-color: #d6dde8;
}

.result-success {
  background: var(--success-bg);
  border-color: #b6e6cb;
}

.result-warning {
  background: var(--warning-bg);
  border-color: #eed28a;
}

.result-error {
  background: var(--danger-bg);
  border-color: #f4b9b2;
}

.note-card {
  padding: 1rem;
  border-radius: 18px;
  background: #f7f9fc;
  border: 1px solid #e0e7f0;
}

.screenshot-reminder {
  margin: 1rem 0;
  background: linear-gradient(135deg, #fff8e8 0%, #fffdf7 100%);
  border-color: rgba(185, 153, 90, 0.35);
}

.screenshot-reminder strong {
  color: #8b641e;
}

.empty-state {
  padding: 2rem 0;
  color: var(--muted);
}

.registration-hero,
.admin-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy,
.hero-aside {
  display: grid;
  gap: 1rem;
}

.hero-aside {
  align-content: stretch;
}

.hero-stat {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat strong {
  font-size: 0.95rem;
}

.invitation-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 247, 236, 0.92)),
    radial-gradient(circle at 85% 20%, rgba(185, 153, 90, 0.2), transparent 32%),
    linear-gradient(110deg, rgba(20, 90, 102, 0.08), transparent 58%);
  border: 1px solid rgba(185, 153, 90, 0.24);
}

.invitation-hero::before,
.invitation-hero::after {
  content: "";
  position: absolute;
  inset: auto -6% 22% 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 153, 90, 0.62), transparent);
  transform: rotate(-3deg);
}

.invitation-hero::after {
  inset: 22% 10% auto -8%;
  transform: rotate(4deg);
  opacity: 0.65;
}

.invitation-glow {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 153, 90, 0.28), transparent 64%);
  pointer-events: none;
}

.invitation-copy,
.invitation-aside {
  position: relative;
  z-index: 1;
}

.invitation-hero p,
.invitation-hero .eyebrow {
  color: #4f5a64;
}

.invitation-brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  letter-spacing: 0.02em;
}

.invitation-tagline {
  margin: -0.4rem 0 0;
  color: #6a5d45;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.invitation-divider {
  display: grid;
  grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
  align-items: center;
  gap: 1rem;
  color: #1d2a38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-style: italic;
  margin-top: 0.8rem;
}

.invitation-divider::before,
.invitation-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.invitation-copy h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  margin: 0;
  color: #13212d;
}

.event-detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.event-detail-strip div {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(185, 153, 90, 0.24);
}

.event-detail-strip span {
  color: #8b7544;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-detail-strip strong {
  color: #13212d;
  font-size: 0.92rem;
}

.invitation-aside .hero-stat {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(185, 153, 90, 0.25);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(78, 60, 23, 0.08);
}

.invitation-aside .hero-stat strong {
  color: #8b641e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.hero-badges {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metrics-grid-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 90, 102, 0.08);
  box-shadow: 0 16px 34px rgba(17, 32, 49, 0.06);
}

.metric-card-highlight {
  background:
    radial-gradient(circle at top right, rgba(20, 90, 102, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.metric-value {
  display: block;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.metric-value-domain {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.metric-value-muted {
  color: var(--muted);
  font-size: 1.28rem;
}

.metric-subvalue {
  display: block;
  margin-top: -0.15rem;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.2rem;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.domain-subtle {
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--brand-dark);
  font-weight: 700;
}

.meal-card {
  position: relative;
  overflow: hidden;
}

.meal-summary-stack {
  display: grid;
  gap: 0.85rem;
}

.meal-summary-item {
  display: grid;
  gap: 0.65rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(20, 90, 102, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(17, 32, 49, 0.05);
}

.meal-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.meal-summary-value {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--brand-dark);
}

.meal-summary-item p {
  margin: 0;
  max-width: 34ch;
}

.meal-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  opacity: 0.18;
}

.meal-card-total::after {
  background: #7eb9c1;
}

.meal-card-veg::after {
  background: #6fbf73;
}

.meal-card-nonveg::after {
  background: #e49b73;
}

.meal-card-unset::after {
  background: #d0c47a;
}

.settings-stack {
  display: grid;
  gap: 1rem;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: start;
}

.settings-panel {
  display: grid;
  gap: 1rem;
}

.account-stack {
  display: grid;
  gap: 0.9rem;
}

.account-card {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(20, 90, 102, 0.08);
  background: #fbfdff;
}

.account-card-current {
  background:
    radial-gradient(circle at top right, rgba(20, 90, 102, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.account-meta {
  display: grid;
  gap: 0.25rem;
}

.account-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.account-form {
  display: grid;
  gap: 0.85rem;
}

.inline-danger-form {
  margin: 0;
}

.current-account-note {
  gap: 0.75rem;
}

.settings-subgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.settings-toggle-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #e5ebf3;
  border-radius: 18px;
  background: #fff;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 6px;
}

.sticky-actions {
  justify-content: flex-end;
}

.custom-fields-panel {
  display: grid;
  gap: 1rem;
}

.builder-add-button,
.builder-remove-button {
  min-height: 40px;
}

.custom-field-stack {
  display: grid;
  gap: 1rem;
}

.custom-field-card {
  padding: 1rem;
  border: 1px solid #dbe6ef;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.custom-field-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.checkbox-row-inline {
  min-height: 52px;
  padding-top: 1.9rem;
}

.custom-options-group.is-hidden,
.builder-empty-state.is-hidden {
  display: none;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}

.registration-info {
  display: grid;
  gap: 1rem;
}

.elevated-form {
  padding: 1.2rem;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border: 1px solid rgba(20, 90, 102, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.premium-table {
  border: 1px solid rgba(20, 90, 102, 0.08);
  border-radius: 24px;
  background: #fff;
}

.premium-table table {
  min-width: 760px;
}

.table-primary {
  display: grid;
  gap: 0.25rem;
}

.table-primary span {
  color: var(--muted);
  font-size: 0.92rem;
}

.step-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.login-showcase {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255, 190, 92, 0.22), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(255, 121, 82, 0.2), transparent 18%),
    linear-gradient(145deg, #175b86 0%, #12a3b4 42%, #ff8a5b 100%);
  color: #fff;
  border: 0;
}

.login-showcase::before,
.login-showcase::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.login-showcase::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: 120px;
  background: rgba(255, 255, 255, 0.12);
}

.login-showcase::after {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -30px;
  background: rgba(255, 255, 255, 0.1);
}

.login-showcase-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  align-content: space-between;
  min-height: 100%;
}

.login-showcase .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.login-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.login-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 640px;
}

.login-copy h1 {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.login-copy p {
  margin: 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.65;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: auto;
}

.login-feature-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.login-feature-card strong {
  color: #fff;
  font-size: 1rem;
}

.login-feature-card span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.5;
}

.login-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.7rem;
  background: rgba(255, 255, 255, 0.96);
}

.login-card-top {
  display: grid;
  gap: 0.45rem;
}

.login-card-top h1 {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 2.3rem;
  letter-spacing: -0.04em;
}

.login-default-callout {
  display: grid;
  gap: 0.35rem;
}

.login-form {
  gap: 1.1rem;
}

.login-form label span {
  font-weight: 700;
}

.login-form input {
  background: #f8fbff;
  border-color: #d8e5ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.login-submit {
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, #145a66 0%, #0f7786 100%);
}

.login-submit:hover {
  background: linear-gradient(135deg, #0f4f59 0%, #106c7a 100%);
}

.login-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(19, 33, 45, 0.08);
}

.login-footer-copy {
  display: grid;
  gap: 0.2rem;
}

.login-footer-copy strong {
  font-size: 0.95rem;
}

.login-footer-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr);
  gap: 1rem;
}

.attendance-report-grid {
  align-items: start;
}

.report-side-panel {
  position: sticky;
  top: 1rem;
}

.report-filter-panel {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.report-filter-form {
  align-items: end;
}

.report-date-picker {
  display: grid;
  gap: 0.55rem;
  min-width: min(320px, 100%);
}

.report-date-picker input {
  min-height: 48px;
}

.hourly-list {
  display: grid;
  gap: 0.85rem;
}

.hourly-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.hourly-bar-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 0.6rem;
  align-items: center;
}

.hourly-bar {
  display: block;
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, #2d8391 100%);
}

.hourly-bar-group small {
  color: var(--muted);
  text-align: right;
}

.hourly-label strong {
  display: inline-block;
  min-width: 56px;
}

@media (max-width: 900px) {
  .form-grid,
  .detail-grid,
  .metrics-grid,
  .metrics-grid-wide,
  .scanner-grid,
  .login-shell,
  .login-feature-grid,
  .toolbar,
  .toolbar-wide,
  .registration-layout,
  .registration-hero,
  .admin-hero-panel,
  .ticket-layout,
  .team-layout,
  .settings-subgrid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .section-heading,
  .pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-nav form {
    margin-left: 0;
  }

  .hero-badges,
  .sticky-actions {
    justify-content: flex-start;
  }

  .account-card-header,
  .account-badges {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .report-side-panel,
  .ticket-qr-card {
    position: static;
  }

  .hourly-row {
    grid-template-columns: 1fr;
  }

  .meal-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .login-footer-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-showcase {
    min-height: auto;
  }

  .event-detail-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .event-detail-strip {
    grid-template-columns: 1fr;
  }

  .invitation-divider {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .invitation-divider::before,
  .invitation-divider::after {
    display: none;
  }
}
