:root {
  --bg: #07111d;
  --panel: #0f1b2d;
  --panel-soft: #132338;
  --ink: #f5f7fb;
  --muted: #9fb1c8;
  --line: rgba(255, 255, 255, 0.08);
  --red: #d61f26;
  --gold: #f2c230;
  --green: #0c8f46;
  --danger: #ff7262;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 31, 38, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 143, 70, 0.16), transparent 24%),
    linear-gradient(180deg, #08111e 0%, #091626 36%, var(--bg) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

strong,
h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}

small {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 6rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.topbar,
.hero,
.section,
.footer {
  width: min(calc(100vw - 1.4rem), var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.2rem;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 29, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.auth-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0.8rem 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(19, 35, 56, 0.92);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
}

.account-chip strong,
.account-chip small {
  display: block;
}

.account-chip .text-button {
  white-space: nowrap;
}

.account-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(19, 35, 56, 0.92);
  border: 1px solid rgba(13, 27, 42, 0.08);
  display: grid;
  gap: 0.6rem;
}

.account-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-toggle {
  display: inline-flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.auth-grid {
  margin-bottom: 0.25rem;
}

.auth-signup-only.hidden {
  display: none !important;
}

.auth-toggle .chip {
  border: 0;
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: block;
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.1);
  flex: 0 0 auto;
}

.brand__mark {
  width: 56px;
  height: 56px;
  padding: 0 0.15rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  font-weight: 900;
  font-size: 1.45rem;
  background: rgba(7, 17, 29, 0.78);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.1);
}

.brand__digit--4 {
  color: var(--red);
}

.brand__digit--7 {
  color: var(--gold);
}

.brand__digit--3 {
  color: var(--green);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.desktop-nav a {
  position: relative;
  padding: 0.2rem 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.ghost-button,
.text-button,
.primary-button,
.icon-button,
.table-action {
  border: 0;
  border-radius: 999px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ghost-button,
.text-button {
  background: transparent;
}

.ghost-button {
  padding: 0.82rem 1.05rem;
  border: 1px solid rgba(13, 27, 42, 0.12);
  color: var(--ink);
}

.ghost-button--small,
.table-action {
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: rgba(7, 17, 29, 0.78);
  color: var(--ink);
}

.primary-button {
  padding: 0.95rem 1.2rem;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red), var(--green));
  box-shadow: 0 12px 24px rgba(214, 31, 38, 0.18);
}

.primary-button--block {
  width: 100%;
}

.text-button {
  padding: 0;
  color: var(--red);
  font-weight: 700;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.table-action[data-admin-action="approve"],
.table-action[data-admin-action="restore"] {
  border-color: rgba(12, 143, 70, 0.2);
  color: var(--green);
}

.table-action[data-admin-action="reject"],
.table-action[data-admin-action="delete"] {
  border-color: rgba(180, 35, 24, 0.2);
  color: var(--danger);
}

button:hover,
button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.text-button:hover,
.text-button:focus-visible,
.table-action:hover,
.table-action:focus-visible {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  gap: 1rem;
  padding-top: 1.2rem;
}

.hero__copy {
  padding-top: 0.6rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(214, 31, 38, 0.08);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero__lede,
.section__copy,
.muted,
.metric-label,
.table-note {
  color: var(--muted);
}

.hero__lede,
.section__copy {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 58ch;
}

.hero-search {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  margin-top: 1.25rem;
}

.hero-search input,
.filters select,
input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  padding: 0.9rem 1rem;
  background: rgba(7, 17, 29, 0.78);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(214, 31, 38, 0.18);
  border-color: rgba(214, 31, 38, 0.25);
}

textarea {
  resize: vertical;
}

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

.stat-card,
.metric-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 10px 26px rgba(13, 27, 42, 0.06);
}

.stat-card strong,
.metric-card strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 0.35rem;
}

.hero__panel {
  padding: 1.25rem;
}

.hero__panel-top,
.hero__availability,
.results-bar,
.section__header,
.booking-item__top,
.receipt__top,
.summary-bar,
.provider-cta,
.service-card__price,
.payment-summary__row,
.admin-toolbar,
.admin-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__availability {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid rgba(13, 27, 42, 0.06);
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
  line-height: 1.5;
}

.feature-list--compact {
  margin-top: 0.75rem;
}

.hero__mini {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(214, 31, 38, 0.08), rgba(12, 143, 70, 0.08));
}

.status-pill,
.badge,
.chip,
.provider-tags span,
.booking-meta span,
.table-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill,
.table-status {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.status-pill--live {
  color: white;
  background: linear-gradient(135deg, var(--green), #0a6b34);
}

.table-status--featured {
  background: rgba(242, 194, 48, 0.24);
  color: #7a5c00;
}

.table-status--verified {
  background: rgba(12, 143, 70, 0.12);
  color: var(--green);
}

.table-status--pending {
  background: rgba(242, 194, 48, 0.18);
  color: #7a5c00;
}

.table-status--rejected {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.section {
  margin-top: 4rem;
}

.section__header {
  align-items: flex-end;
  margin-bottom: 1rem;
}

.section__header--tight {
  align-items: center;
  margin-bottom: 0.8rem;
}

.section h2,
.section h3,
.section h4 {
  margin: 0;
}

.filters,
.bookings-card,
.receipt-card,
.table-card,
.pitch-card,
.admin-lock,
.admin-toolbar {
  padding: 1.1rem;
}

.filters {
  display: grid;
  gap: 1rem;
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.chip.active {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--green));
}

.filters__controls {
  display: grid;
  gap: 0.8rem;
}

.filters__controls label,
.form-grid label,
.stack label,
.payment-summary,
.receipt,
.choice-card,
.booking-item,
.empty-state,
.provider-section,
.admin-lock,
.admin-login-form {
  display: grid;
  gap: 0.42rem;
}

.toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.7rem;
}

.toggle input {
  width: auto;
}

.toggle--stack {
  align-items: flex-start;
}

.toggle--stack span {
  display: grid;
  gap: 0.15rem;
}

.form-toggle {
  border: 1px dashed rgba(13, 27, 42, 0.12);
  border-radius: 18px;
  padding: 0.8rem 1rem;
}

.results-bar {
  margin: 1rem 0 1rem;
}

.services-grid,
.business-grid,
.bookings-layout,
.dashboard-panels {
  display: grid;
  gap: 1rem;
}

.service-card {
  overflow: hidden;
}

.service-card__media,
.provider-hero {
  min-height: 168px;
  padding: 1.15rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background-size: cover;
  background-position: center;
}

.media-marine {
  background: linear-gradient(135deg, #0e5f74, #3298dc, #9fd3ff);
}

.media-home {
  background: linear-gradient(135deg, #374151, #2563eb, #8ec5ff);
}

.media-clean {
  background: linear-gradient(135deg, #0f766e, #14b8a6, #7dd3fc);
}

.media-cooling {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8, #a5f3fc);
}

.media-beauty {
  background: linear-gradient(135deg, #9d174d, #ec4899, #fecdd3);
}

.media-outdoor {
  background: linear-gradient(135deg, #166534, #65a30d, #bef264);
}

.media-power {
  background: linear-gradient(135deg, #7c2d12, #ea580c, #fdba74);
}

.media-tech {
  background: linear-gradient(135deg, #312e81, #7c3aed, #c4b5fd);
}

.media-food {
  background: linear-gradient(135deg, #7c2d12, #dc2626, #fdba74);
}

.media-nightlife {
  background: linear-gradient(135deg, #581c87, #7e22ce, #f0abfc);
}

.media-retail {
  background: linear-gradient(135deg, #0f766e, #0ea5e9, #a7f3d0);
}

.media-auto {
  background: linear-gradient(135deg, #111827, #ef4444, #f59e0b);
}

.media-custom {
  background: linear-gradient(135deg, #102a43, #d61f26, #0c8f46);
}

.service-card__media h3,
.service-card__media p,
.provider-hero h2,
.provider-hero p {
  margin: 0;
}

.service-card__body {
  padding: 1.05rem;
}

.service-card__meta,
.service-card__badges,
.provider-tags,
.booking-meta,
.price-stack,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.service-card__meta {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card__badges,
.provider-tags {
  margin-top: 0.9rem;
}

.provider-tags span,
.booking-meta span {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.service-card__price {
  align-items: flex-start;
  margin-top: 1rem;
}

.service-card__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.business-grid,
.bookings-layout {
  grid-template-columns: 1fr;
}

.pitch-card h3,
.receipt-card h3,
.admin-lock h3 {
  margin-top: 0;
}

.price-stack {
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}


.form-details {
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 20px;
  background: var(--panel-soft);
  padding: 0.95rem 1rem;
}

.form-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.form-details summary::-webkit-details-marker {
  display: none;
}

.form-details summary::after {
  content: '+';
  float: right;
  font-size: 1.05rem;
  color: var(--muted);
}

.form-details[open] summary::after {
  content: '−';
}

.form-details__content {
  margin-top: 1rem;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.helper-card--booking-intro strong {
  display: block;
  margin-bottom: 0.25rem;
}

.choice-card--default {
  border-color: rgba(12, 143, 70, 0.16);
  background: rgba(12, 143, 70, 0.03);
}

.provider-cta {
  flex-wrap: wrap;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.form-section {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid rgba(13, 27, 42, 0.08);
}

.form-section h4 {
  margin: 0;
}

.section-hint,
.summary-note,
.business-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.helper-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(214, 31, 38, 0.06), rgba(12, 143, 70, 0.06));
  border: 1px solid rgba(13, 27, 42, 0.08);
}

.booking-item,
.receipt,
.empty-state,
.payment-summary,
.summary-bar,
.admin-lock {
  padding: 1rem;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid rgba(13, 27, 42, 0.06);
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.badge--paid {
  color: white;
  background: linear-gradient(135deg, var(--green), #0f8b5f);
}

.badge--pending {
  color: #7a4c00;
  background: rgba(242, 194, 48, 0.18);
}

.badge--requested {
  color: #7c1526;
  background: rgba(214, 31, 38, 0.1);
}

.receipt--empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  color: var(--muted);
}

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

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

th,
td {
  padding: 0.85rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-login-form {
  margin-top: 0.75rem;
}

.admin-toolbar {
  margin-top: 1rem;
}

.admin-toolbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer {
  margin-top: 4rem;
  padding: 2rem 0 7rem;
  color: var(--muted);
}

.mobile-nav {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.5rem;
  border-radius: 24px;
  background: rgba(13, 27, 42, 0.94);
  box-shadow: 0 16px 35px rgba(13, 27, 42, 0.22);
}

.mobile-nav__item {
  text-align: center;
  color: white;
  font-size: 0.82rem;
  padding: 0.82rem 0.3rem;
  border-radius: 18px;
}

.mobile-nav__item:hover,
.mobile-nav__item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(13, 27, 42, 0.45);
  backdrop-filter: blur(8px);
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 1rem;
}

.drawer {
  place-items: stretch end;
}

.drawer__content,
.modal__panel {
  position: relative;
  width: min(100%, 840px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: rgba(7, 17, 29, 0.78);
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(13, 27, 42, 0.22);
  border: 1px solid rgba(13, 27, 42, 0.1);
}

.drawer__content {
  width: min(100%, 540px);
  padding: 1.2rem;
}

.modal__panel {
  padding: 1.2rem;
}

.modal__panel--narrow {
  width: min(100%, 520px);
}

.drawer__close,
.modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin-left: auto;
  z-index: 2;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

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

.choice-grid {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.choice-grid legend {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.choice-grid > .section-hint {
  margin-top: -0.1rem;
  margin-bottom: 0.2rem;
}

.choice-card {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  background: rgba(7, 17, 29, 0.78);
}

.choice-card input {
  width: auto;
  margin-top: 0.2rem;
}

.payment-summary {
  margin-bottom: 1rem;
}

.summary-note {
  margin-top: -0.2rem;
  padding-inline: 0.1rem;
}

.provider-hero {
  border-radius: 24px;
}

.provider-section {
  margin-top: 1rem;
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 6.6rem;
  z-index: 100;
  display: grid;
  gap: 0.65rem;
}

.toast {
  min-width: min(92vw, 320px);
  padding: 0.92rem 1rem;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(13, 27, 42, 0.16);
  color: white;
}

.toast--success {
  background: linear-gradient(135deg, var(--green), #127a57);
}

.toast--error {
  background: linear-gradient(135deg, var(--danger), #8d1c13);
}

.empty-state {
  place-items: start;
  min-height: 180px;
}

@media (max-width: 719px) {
  .form-grid--business-core {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .hero-search {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .filters__controls,
  .form-grid,
  .admin-login-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-grid,
  .bookings-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 881px) {
  .desktop-nav {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: start;
  }

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

  .dashboard-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav {
    display: none;
  }
}

@media (min-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .topbar {
    padding-inline: 0.1rem;
  }

  .topbar__actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .auth-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .auth-controls .ghost-button,
  .auth-controls .primary-button,
  #openBusinessModal {
    flex: 1 1 auto;
  }

  .account-chip {
    width: 100%;
    justify-content: space-between;
  }

  .section__header,
  .hero__panel-top,
  .hero__availability,
  .results-bar,
  .booking-item__top,
  .receipt__top,
  .summary-bar,
  .admin-toolbar,
  .admin-toolbar__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card__actions {
    flex-direction: column;
  }

  .drawer,
  .modal {
    padding: 0;
  }

  .drawer__content,
  .modal__panel {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 0.5rem);
    border-radius: 28px 28px 0 0;
  }

  .toast-region {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 6.8rem;
  }
}


@media (max-width: 540px) {
  .brand small {
    display: none;
  }

  .auth-controls,
  .account-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-controls .ghost-button,
  .auth-controls .primary-button,
  #openBusinessModal,
  .account-panel__actions .ghost-button,
  .account-panel__actions .primary-button {
    width: 100%;
  }
}

#bookings { display: none !important; }
.desktop-nav a, .mobile-nav__item { color: #dbe6f3; }
.brand small { color: var(--muted); }
.hero-search input, .filters select, input, textarea, select { background: rgba(7, 17, 29, 0.72); color: var(--ink); }
.ghost-button { color: var(--ink); border-color: rgba(255,255,255,0.14); }
.text-button { color: #ffd166; }
.chip { background: rgba(255,255,255,0.08); color: var(--ink); }
.receipt, .payment-summary, .booking-item, .empty-state, .summary-bar, .admin-lock, .account-panel, .hero__availability, .hero__mini, .form-section, .form-details, .helper-card { background: rgba(19,35,56,0.92); }
.service-card__meta span, .muted, .metric-label, small, .section__copy, .hero__lede { color: var(--muted); }


.service-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
  background: white;
  padding: 4px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.service-logo--large {
  width: 72px;
  height: 72px;
  margin-right: 0.75rem;
  flex: 0 0 auto;
}


/* Admin mobile improvements */
.table-note { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.table-card { overflow: hidden; }

@media (max-width: 880px) {
  .hero,
  .section,
  .footer,
  .topbar {
    width: min(calc(100vw - 1rem), var(--max-width));
  }

  .hero {
    gap: 0.85rem;
    padding-top: 0.6rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    max-width: 100%;
  }

  .hero__lede,
  .section__copy {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-search,
  .filters,
  .bookings-card,
  .receipt-card,
  .table-card,
  .pitch-card,
  .admin-lock,
  .admin-toolbar {
    padding: 0.95rem;
  }

  .service-card__media,
  .provider-hero {
    min-height: 132px;
    padding: 0.95rem;
    gap: 0.75rem;
  }

  .service-card__body {
    padding: 0.9rem;
  }

  .service-card__price {
    gap: 0.6rem;
  }

  .service-card__actions .ghost-button,
  .service-card__actions .primary-button {
    width: 100%;
  }

  .service-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .service-logo--large {
    width: 60px;
    height: 60px;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td,
  .table-wrap th {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    display: grid;
    gap: 0.8rem;
  }

  .table-wrap tr {
    background: rgba(19, 35, 56, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.85rem;
  }

  .table-wrap td {
    border: 0;
    padding: 0.35rem 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.18rem;
  }

  .table-actions {
    gap: 0.45rem;
  }

  .table-action {
    flex: 1 1 130px;
    text-align: center;
  }

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

@media (max-width: 540px) {
  .topbar {
    gap: 0.6rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .hero__stats,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card__meta,
  .service-card__badges,
  .provider-tags,
  .booking-meta,
  .price-stack,
  .table-actions {
    gap: 0.45rem;
  }

  .mobile-nav {
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    padding: 0.42rem;
  }

  .mobile-nav__item {
    font-size: 0.84rem;
  }
}

/* 473Link mobile-first polish + installable app UI */
:root {
  --app-bg: #07111d;
  --app-card: rgba(15, 27, 45, 0.92);
  --app-card-strong: rgba(20, 36, 58, 0.96);
  --app-line: rgba(255, 255, 255, 0.1);
  --app-soft: rgba(255, 255, 255, 0.06);
  --app-red: #d61f26;
  --app-green: #0c8f46;
  --app-gold: #f2c230;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 31, 38, 0.22), transparent 28rem),
    radial-gradient(circle at 96% 10%, rgba(12, 143, 70, 0.18), transparent 24rem),
    linear-gradient(180deg, #07111d 0%, #091827 54%, #06101b 100%);
}

.topbar {
  border-radius: 0 0 22px 22px;
  padding-inline: .65rem;
}

.brand small,
.desktop-nav,
.topbar__actions > .ghost-button {
  display: none;
}

.brand__icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.hero {
  padding-top: .7rem;
  gap: 1rem;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 11vw, 4.4rem);
  line-height: .96;
}

.hero__lede {
  font-size: 1rem;
  line-height: 1.55;
}

.hero-search {
  position: sticky;
  top: 74px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px;
  background: rgba(15, 27, 45, .88);
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}

.card,
.service-card,
.pitch-card,
.table-card,
.admin-toolbar,
.admin-lock,
.filters,
.modal__panel,
.drawer {
  border-color: var(--app-line) !important;
  background: linear-gradient(180deg, rgba(19,35,56,.96), rgba(12,23,38,.96)) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.30) !important;
}

.services-grid {
  gap: 1rem;
}

.service-card {
  overflow: hidden;
  border-radius: 28px;
}

.service-card__media,
.provider-hero {
  position: relative;
  min-height: 190px;
  border-radius: 0;
  background-size: cover !important;
  background-position: center !important;
}

.service-card__media::after,
.provider-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.68));
  pointer-events: none;
}

.service-card__media > *,
.provider-hero > * {
  position: relative;
  z-index: 1;
}

.service-logo {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover;
  border-radius: 22px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.service-logo--large {
  width: 96px !important;
  height: 96px !important;
  border-radius: 28px;
}

.service-card__media h3 {
  margin-top: .8rem;
  font-size: 1.35rem;
  line-height: 1.05;
  max-width: 12ch;
}

.service-card__body {
  padding: 1rem;
}

.service-card__body > p {
  line-height: 1.5;
  color: rgba(245,247,251,.82);
}

.badge,
.status-pill,
.table-status {
  backdrop-filter: blur(10px);
}

.service-card__actions,
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.service-card__actions .ghost-button,
.service-card__actions .primary-button,
.contact-action,
.primary-button,
.ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card__badges .badge:first-child,
.table-status--featured {
  background: linear-gradient(135deg, rgba(242,194,48,.28), rgba(242,194,48,.12));
  color: #ffe08a;
  border: 1px solid rgba(242,194,48,.28);
}

.drawer {
  border-radius: 28px 28px 0 0;
}

.provider-section {
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.drop-zone {
  border: 1.5px dashed rgba(242,194,48,.38) !important;
  background:
    linear-gradient(180deg, rgba(242,194,48,.08), rgba(255,255,255,.04)) !important;
  border-radius: 24px !important;
  min-height: 138px !important;
}

.drop-zone.dragging {
  border-color: var(--app-gold) !important;
  background: rgba(242,194,48,.16) !important;
}

.drop-zone__preview img {
  border-radius: 18px;
}

.install-app-button {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 5.7rem;
  z-index: 80;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #07111d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--app-gold), #fff2a8);
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}

.mobile-nav {
  background: rgba(7,17,29,.92);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}

.mobile-nav__item {
  border-radius: 18px;
  padding: .7rem .25rem;
}

.mobile-nav__item:hover,
.mobile-nav__item:focus-visible {
  background: rgba(255,255,255,.08);
}

@media (max-width: 720px) {
  .topbar__actions .primary-button,
  .topbar__actions .ghost-button,
  .auth-controls .ghost-button {
    display: none;
  }

  .section {
    margin-top: 2.75rem;
  }

  .section__header {
    display: grid;
    gap: .65rem;
    align-items: start;
  }

  .filters__controls {
    grid-template-columns: 1fr;
  }

  .hero__stats,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-panels,
  .dashboard-panels--stacked {
    gap: .85rem;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: .85rem;
    padding: .85rem;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
  }

  td {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: .75rem;
    padding: .55rem 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    color: rgba(159,177,200,.9);
    font-weight: 800;
    font-size: .78rem;
  }

  .table-actions {
    gap: .45rem;
  }

  .table-action {
    flex: 1 1 auto;
  }
}

@media (min-width: 760px) {
  .brand small,
  .desktop-nav,
  .topbar__actions > .ghost-button {
    display: flex;
  }

  .hero-search {
    position: static;
    grid-template-columns: 1fr auto;
  }

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