* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  color: #172033;
}

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

.reset-btn {
  border: none;
  background: transparent;
  cursor: pointer;
}

.hero {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  padding: 24px 18px 42px;
}

.nav {
  max-width: 1150px;
  margin: 0 auto 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-align: left;
}

.logo {
  width: 48px;
  height: 48px;
  background: #22c55e;
  color: #06130a;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
}

.brand h1 {
  font-size: 24px;
}

.brand p {
  font-size: 13px;
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-btn,
.primary-small-btn,
.logout-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.primary-small-btn {
  background: #22c55e;
  color: #06130a;
}

.logout-btn {
  background: #ef4444;
  color: white;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-block;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.24);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 16px;
}

.dark-pill {
  background: #dcfce7;
  color: #166534;
  border: none;
}

.hero-content h2 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.04;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 17px;
  opacity: 0.88;
  line-height: 1.5;
  margin-bottom: 24px;
}

.search-box {
  background: white;
  border-radius: 18px;
  padding: 8px;
  max-width: 650px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  padding: 16px;
  font-size: 16px;
  border-radius: 14px;
}

.container {
  max-width: 1150px;
  margin: -24px auto 0;
  padding: 0 18px 44px;
}

.filters {
  background: white;
  padding: 14px;
  border-radius: 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-btn {
  border: none;
  background: #eef2f7;
  color: #111827;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.filter-btn.active {
  background: #22c55e;
  color: #06130a;
}

.quick-filter {
  margin: 20px 4px;
  font-weight: 800;
}

.quick-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  margin: 22px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.section-title h3 {
  font-size: 27px;
}

.section-title p {
  color: #64748b;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.card.featured {
  border: 2px solid #22c55e;
}

.featured-ribbon {
  position: absolute;
  right: 16px;
  top: 16px;
  background: #111827;
  color: white;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-right: 74px;
}

.category-tag {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: #475569;
  background: #f1f5f9;
  padding: 7px 10px;
  border-radius: 999px;
}

.status {
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status.available {
  background: #dcfce7;
  color: #166534;
}

.status.busy {
  background: #fee2e2;
  color: #991b1b;
}

.status.later {
  background: #fef3c7;
  color: #92400e;
}

.status.closed {
  background: #e2e8f0;
  color: #334155;
}

.card h4 {
  font-size: 22px;
  padding-right: 8px;
}

.card-location {
  color: #64748b;
  font-size: 14px;
  margin-top: 4px;
}

.promo-box {
  background: #ecfdf5;
  color: #166534;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid #bbf7d0;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
}

.service-item strong {
  color: #111827;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.primary-btn,
.whatsapp-btn,
.danger-btn,
.secondary-btn {
  border: none;
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}

.primary-btn {
  background: #22c55e;
  color: #06130a;
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.whatsapp-btn {
  background: #111827;
  color: white;
}

.secondary-btn {
  background: #eef2f7;
  color: #111827;
}

.danger-btn {
  background: #ef4444;
  color: white;
}

.empty-state {
  background: white;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  color: #64748b;
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 100;
}

.modal-content {
  background: white;
  width: min(100%, 500px);
  border-radius: 22px;
  padding: 22px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  right: 16px;
  top: 12px;
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

.modal-content p {
  color: #64748b;
  margin-bottom: 18px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 800;
}

form input,
form select,
form textarea {
  padding: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #22c55e;
}

.check-row {
  flex-direction: row;
  align-items: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 15px;
  margin-bottom: 18px;
}

.auth-tab {
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
}

.auth-tab.active {
  background: white;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.demo-box {
  margin-top: 16px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #475569;
}

.dashboard {
  margin-top: 26px;
}

.dashboard-header {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}

.dashboard-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 6px;
}

.dashboard-header p {
  color: #64748b;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel-card {
  background: white;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.panel-card h3 {
  font-size: 23px;
  margin-bottom: 6px;
}

.panel-help {
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 700;
}

.status-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.status-action {
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.available-bg {
  background: #dcfce7;
  color: #166534;
}

.later-bg {
  background: #fef3c7;
  color: #92400e;
}

.busy-bg {
  background: #fee2e2;
  color: #991b1b;
}

.closed-bg {
  background: #e2e8f0;
  color: #334155;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 130px auto;
  gap: 10px;
  align-items: center;
}

.inline-form input {
  width: 100%;
}

.mini-list,
.reservations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.mini-item,
.reservation-item {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  font-size: 14px;
}

.mini-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mini-item strong,
.reservation-item strong {
  display: block;
  margin-bottom: 4px;
}

.mini-item button {
  border: none;
  background: #fee2e2;
  color: #991b1b;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.reservation-item p {
  color: #475569;
  margin-top: 4px;
}

.footer {
  text-align: center;
  color: #64748b;
  padding: 24px;
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 660px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .nav-actions button {
    flex: 1;
  }

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

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

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

  .status-buttons {
    grid-template-columns: 1fr;
  }
}