.premium-fab {
  min-width: 52px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: #10241f;
  box-shadow: 0 6px 18px rgba(16, 36, 31, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.premium-fab.is-active {
  background: linear-gradient(135deg, #08634f, #149667);
}

.premium-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(16, 36, 31, 0.3);
  color: var(--ink);
}

.premium-dialog::backdrop {
  background: rgba(7, 22, 18, 0.54);
  backdrop-filter: blur(3px);
}

.dialog-sheet {
  padding: 24px;
  overflow: auto;
  background: var(--surface);
}

.member-sheet {
  max-height: min(820px, calc(100dvh - 24px));
}

.dialog-head,
.section-inline-head,
.dialog-actions,
.inline-form,
.feedback-fields {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-head,
.section-inline-head {
  justify-content: space-between;
}

.dialog-head h2,
.member-section h3,
.feedback-form h3,
.premium-cta h2 {
  margin: 0;
}

.dialog-close,
.text-action {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.benefit-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding-left: 22px;
}

.entitlement-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.entitlement-comparison > section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
}

.entitlement-comparison > .is-vip {
  border-color: #9fd0bc;
  background: var(--brand-soft);
}

.entitlement-comparison .benefit-list {
  margin: 12px 0 0;
}

.beta-note,
.correction-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warning-soft);
  color: #725009;
}

.dialog-actions {
  flex-wrap: wrap;
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand);
}

.primary-action[aria-disabled="true"] {
  border-color: var(--line-strong);
  background: var(--line);
  color: var(--muted);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.feedback-block {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feedback-toggle {
  justify-self: start;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-weight: 700;
}

.correction-banner {
  display: grid;
  gap: 2px;
  border: 1px solid #ead8a5;
}

.correction-banner[hidden],
.feedback-form[hidden],
.developer-quick-correction[hidden],
.premium-message[hidden] {
  display: none;
}

.developer-quick-correction {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5b2ad;
  border-radius: 12px;
  background: #fff7f5;
}

.developer-quick-correction .is-crowded {
  width: fit-content;
  background: var(--high);
}

.developer-geofence-collection {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #9fd0bc;
  border-radius: 14px;
  background: var(--brand-soft);
}

.developer-geofence-collection[hidden],
.geofence-panel[hidden] {
  display: none;
}

.geofence-panel,
.geofence-statistics {
  display: grid;
  gap: 10px;
}

.geofence-privacy-notice {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.geofence-progress {
  margin: 0;
  font-weight: 800;
}

.geofence-stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.geofence-stage-list button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.geofence-stage-list button[aria-current="step"] {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.geofence-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
}

.geofence-consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
}

.geofence-actions,
.geofence-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.geofence-capture {
  min-width: min(100%, 240px);
  min-height: 54px;
  font-size: 17px;
}

.text-action.is-danger {
  color: var(--high);
}

.geofence-statistics {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}

.geofence-statistics span,
.geofence-statistics small {
  color: var(--muted);
}

.correction-banner span,
.correction-banner small {
  display: block;
}

.feedback-form,
.member-section,
.member-status-card,
.premium-cta {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.feedback-form,
.stack-form,
.member-content,
.member-list,
.member-list-item,
.member-status-card {
  display: grid;
  gap: 12px;
}

.status-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.status-choice {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.status-choice[aria-pressed="true"],
.status-choice:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.status-choice.is-smooth { color: var(--low); }
.status-choice.is-busy { color: #9a6a05; }
.status-choice.is-crowded,
.status-choice.is-diverted { color: var(--high); }

.feedback-form input,
.feedback-form select,
.feedback-form textarea,
.member-section input,
.member-section select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.feedback-form textarea {
  min-height: 70px;
  resize: vertical;
}

.feedback-fields > * {
  flex: 1 1 0;
}

.field-help,
.feedback-context,
.premium-message,
.member-list-item span,
.member-list-item small,
.member-status-card span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.premium-message.is-error { color: var(--high); }
.premium-message.is-success { color: var(--low); }

.premium-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, #f4fbf8, #fff);
}

.premium-cta p {
  margin: 6px 0 0;
  color: var(--muted);
}

.premium-cta .eyebrow,
.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-content {
  margin-top: 18px;
}

.member-status-card {
  border-color: #bbded0;
  background: var(--brand-soft);
}

.member-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.member-field small {
  font-weight: 400;
}

.member-login-email {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.member-login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.grid-form > .primary-action,
.grid-form > .premium-message {
  grid-column: 1 / -1;
}

.member-list {
  margin-top: 12px;
}

.member-list-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

.free-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-action.is-danger {
  color: var(--high);
}

.member-list h4 {
  margin: 12px 0 0;
}

.admin-feedback-panel {
  border-color: #d7c5ef;
  background: #fbf8ff;
}

@media (max-width: 560px) {
  .premium-fab {
    min-width: 46px;
    padding-inline: 9px;
  }

  .dialog-sheet {
    padding: 18px;
  }

  .premium-cta,
  .dialog-actions,
  .inline-form,
  .feedback-fields {
    align-items: stretch;
    flex-direction: column;
  }

  .status-choice-grid,
  .grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entitlement-comparison {
    grid-template-columns: 1fr;
  }

  .premium-cta .primary-action,
  .dialog-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-dialog::backdrop {
    backdrop-filter: none;
  }
}

/* Configurable VIP notification controls */
.vip-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.notification-section {
  display: grid;
  gap: 12px;
}
.notification-preferences,
.notification-direction {
  display: grid;
  gap: 10px;
}
.notification-direction {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.notification-direction legend {
  padding: 0 5px;
  color: var(--ink);
  font-weight: 800;
}
.notification-events,
.weekday-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-chip,
.check-line {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--page);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.check-line {
  width: fit-content;
  border-color: transparent;
  padding-inline: 0;
  background: transparent;
}
.check-chip:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.check-chip input,
.check-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}
.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.member-bus-search-wrap {
  position: relative;
}
.member-bus-results {
  position: absolute;
  z-index: 2;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(16, 36, 31, .14);
}
.member-bus-results[hidden] {
  display: none;
}
.member-bus-result {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.member-bus-result:hover,
.member-bus-result:focus-visible {
  background: var(--brand-soft);
  outline: 0;
}
@media (max-width: 560px) {
  .member-form-grid { grid-template-columns: 1fr; }
  .notification-direction { padding: 10px; }
  .geofence-stage-list { grid-template-columns: 1fr; }
  .geofence-capture { width: 100%; }
}
