:root {
  color-scheme: light;
  --cp-ink: #172635;
  --cp-muted: #617386;
  --cp-soft: #f5f7fa;
  --cp-soft-2: #eef3f7;
  --cp-line: #d9e3ec;
  --cp-panel: #ffffff;
  --cp-brand: #0f766e;
  --cp-brand-dark: #0a5e58;
  --cp-gold: #c9a46a;
  --cp-blue: #315f86;
  --cp-danger: #b42318;
  --cp-shadow: 0 18px 42px rgba(17, 34, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f8;
  color: var(--cp-ink);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.cp-auth-page {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(238, 243, 247, 0.95), rgba(245, 247, 250, 0.98)),
    #eef3f7;
}

.cp-auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--cp-panel);
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  box-shadow: var(--cp-shadow);
}

.cp-auth-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: 32px 24px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.93), rgba(23, 38, 53, 0.96)),
    linear-gradient(45deg, rgba(201, 164, 106, 0.28), transparent);
  color: #ffffff;
}

.cp-brand-row,
.cp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-brand-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 900;
}

.cp-auth-hero h1,
.cp-auth-panel h2,
.cp-topbar h1,
.cp-panel h2,
.cp-welcome-card h2,
.cp-next-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.cp-auth-hero h1 {
  max-width: 620px;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 0.98;
}

.cp-auth-hero p:not(.cp-eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.cp-eyebrow {
  margin: 0 0 7px;
  color: #6d7f92;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cp-auth-hero .cp-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.cp-auth-actions,
.cp-welcome-actions,
.cp-actions,
.cp-card-actions,
.cp-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-link,
.cp-button,
.cp-primary,
.cp-icon-button,
.cp-filter-group button,
.cp-tabs button {
  min-height: 40px;
  border: 1px solid var(--cp-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--cp-ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cp-link-soft {
  background: transparent;
}

.cp-auth-proof {
  display: grid;
  gap: 10px;
}

.cp-auth-proof div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.cp-auth-proof strong,
.cp-auth-proof span {
  display: block;
}

.cp-auth-proof strong {
  margin-bottom: 3px;
  font-size: 1.25rem;
}

.cp-auth-proof span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.83rem;
}

.cp-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.cp-auth-panel-head {
  margin-bottom: 22px;
}

.cp-auth-panel-head h2 {
  font-size: clamp(24px, 6vw, 34px);
}

.cp-auth-panel-head p:not(.cp-eyebrow),
.cp-helper-text {
  color: var(--cp-muted);
  line-height: 1.6;
}

.cp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  background: var(--cp-soft);
  border: 1px solid var(--cp-line);
  border-radius: 8px;
}

.cp-tabs button {
  border-color: transparent;
}

.cp-tabs button.is-active,
.cp-primary,
.cp-filter-group button.is-active {
  border-color: var(--cp-brand);
  background: var(--cp-brand);
  color: #ffffff;
}

.cp-button,
.cp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.cp-button:hover,
.cp-primary:hover,
.cp-link:hover,
.cp-filter-group button:hover {
  transform: translateY(-1px);
}

.cp-form {
  display: grid;
  gap: 14px;
}

.cp-form label {
  display: grid;
  gap: 7px;
  color: #385066;
  font-size: 0.84rem;
  font-weight: 800;
}

.cp-form input,
.cp-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--cp-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--cp-ink);
  outline: none;
}

.cp-form textarea {
  resize: vertical;
}

.cp-form input:focus,
.cp-form textarea:focus {
  border-color: var(--cp-brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.cp-grid-two {
  display: grid;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

.cp-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--cp-muted);
  font-size: 0.9rem;
}

.cp-status.is-error {
  color: var(--cp-danger);
}

.cp-status.is-success {
  color: var(--cp-brand-dark);
}

.cp-form label.is-invalid input,
.cp-form label.is-invalid textarea {
  border-color: var(--cp-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10);
}

.cp-helper-text {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.cp-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 42px);
  background: rgba(250, 252, 253, 0.92);
  border-bottom: 1px solid var(--cp-line);
  backdrop-filter: blur(12px);
}

.cp-topbar .cp-brand-mark {
  background: linear-gradient(135deg, var(--cp-brand), #135e82);
  border-color: var(--cp-brand);
}

.cp-topbar h1 {
  font-size: clamp(24px, 5vw, 36px);
}

.cp-dashboard-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 44px;
  display: grid;
  gap: 18px;
}

.cp-dashboard-hero,
.cp-content-grid {
  display: grid;
  gap: 16px;
}

.cp-welcome-card,
.cp-next-card,
.cp-panel {
  background: var(--cp-panel);
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 34, 51, 0.06);
}

.cp-welcome-card {
  min-height: 260px;
  display: grid;
  align-content: end;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(49, 95, 134, 0.08)),
    linear-gradient(180deg, #ffffff, #f8fbfc);
  overflow: hidden;
  position: relative;
}

.cp-welcome-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(201, 164, 106, 0.18);
}

.cp-welcome-card > * {
  position: relative;
}

.cp-welcome-card h2 {
  max-width: 760px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
}

.cp-welcome-card p:not(.cp-eyebrow),
.cp-next-card .cp-meta {
  max-width: 650px;
  color: var(--cp-muted);
  line-height: 1.65;
}

.cp-next-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 260px;
  padding: 24px;
  border-color: rgba(201, 164, 106, 0.42);
  background:
    linear-gradient(180deg, #fffaf1, #ffffff);
}

.cp-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 14px;
  background: var(--cp-soft);
}

.cp-summary-strip div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background: #ffffff;
}

.cp-summary-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--cp-muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cp-summary-strip strong {
  font-size: 1.65rem;
}

.cp-panel {
  padding: 20px;
}

.cp-side-stack {
  display: grid;
  gap: 16px;
}

.cp-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cp-panel-actions {
  justify-content: flex-end;
}

.cp-panel h2 {
  font-size: 1.24rem;
}

.cp-filter-group {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: var(--cp-soft);
  border: 1px solid var(--cp-line);
  border-radius: 8px;
}

.cp-filter-group button {
  min-height: 32px;
  padding: 0 10px;
  border-color: transparent;
  font-size: 0.8rem;
}

.cp-list {
  display: grid;
  gap: 12px;
}

.cp-empty {
  padding: 22px;
  border: 1px dashed var(--cp-line);
  border-radius: 8px;
  color: var(--cp-muted);
  background: #f8fafc;
  line-height: 1.55;
}

.cp-empty-compact {
  padding: 14px;
  font-size: 0.88rem;
}

.cp-loading {
  padding: 14px;
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cp-muted);
  font-size: 0.88rem;
}

.cp-mini-list {
  display: grid;
  gap: 10px;
}

.cp-mini-item,
.cp-balance-item {
  padding: 14px;
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  background: #ffffff;
}

.cp-mini-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
}

.cp-mini-item h3,
.cp-balance-item h3 {
  margin: 0 0 4px;
  font-size: 0.94rem;
}

.cp-mini-item p,
.cp-balance-item p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cp-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--cp-blue);
}

.cp-dot.is-success {
  background: var(--cp-brand);
}

.cp-dot.is-danger {
  background: var(--cp-danger);
}

.cp-dot.is-muted {
  background: #92a2b1;
}

.cp-balance-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cp-balance-top span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf7f6;
  color: var(--cp-brand-dark);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cp-progress {
  height: 8px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: #e7edf2;
  overflow: hidden;
}

.cp-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cp-brand), var(--cp-gold));
}

.cp-balance-item small {
  display: block;
  margin-top: 7px;
  color: var(--cp-muted);
  font-size: 0.75rem;
}

.cp-invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--cp-muted);
  font-size: 0.78rem;
}

.cp-booking-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--cp-line);
  border-radius: 14px;
  background: #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cp-booking-card:hover {
  transform: translateY(-1px);
  border-color: #c9d7e3;
  box-shadow: 0 14px 28px rgba(15, 34, 51, 0.06);
}

.cp-booking-main {
  display: grid;
  gap: 7px;
}

.cp-booking-main h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cp-meta {
  color: var(--cp-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--cp-brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: capitalize;
}

.cp-badge.is-muted {
  background: #edf2f6;
  color: var(--cp-muted);
}

.cp-badge.is-danger {
  background: #fff1f0;
  color: var(--cp-danger);
}

.cp-badge.is-info {
  background: #eaf1f8;
  color: var(--cp-blue);
}

.cp-dialog {
  width: min(520px, calc(100% - 24px));
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--cp-shadow);
}

.cp-dialog::backdrop {
  background: rgba(20, 37, 54, 0.42);
}

.cp-dialog-body {
  padding: 18px;
}

.cp-dialog-field {
  display: grid;
  gap: 7px;
  color: #385066;
  font-size: 0.84rem;
  font-weight: 800;
}

.cp-dialog-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--cp-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--cp-ink);
  outline: none;
}

.cp-dialog-field input:focus {
  border-color: var(--cp-brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.cp-slot-picker {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  background: var(--cp-soft);
}

.cp-slot-picker .cp-meta {
  margin: 0 0 10px;
}

.cp-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cp-slot-grid button {
  min-height: 38px;
  border: 1px solid var(--cp-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--cp-ink);
  cursor: pointer;
  font-weight: 800;
}

.cp-slot-grid button.is-active {
  border-color: var(--cp-brand);
  background: var(--cp-brand);
  color: #ffffff;
}

.cp-icon-button {
  width: 38px;
  min-height: 38px;
}

.cp-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

@media (min-width: 720px) {
  .cp-auth-shell {
    grid-template-columns: 1.05fr 0.8fr;
  }

  .cp-auth-hero,
  .cp-auth-panel {
    padding: 42px;
  }

  .cp-auth-proof,
  .cp-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-booking-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .cp-dashboard-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    align-items: stretch;
  }
}

@media (min-width: 1060px) {
  .cp-content-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    align-items: start;
  }
}

@media (max-width: 680px) {
  .cp-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cp-actions,
  .cp-panel-actions,
  .cp-welcome-actions {
    width: 100%;
  }

  .cp-actions > *,
  .cp-panel-actions > *,
  .cp-welcome-actions > * {
    flex: 1 1 auto;
  }

  .cp-panel-head {
    flex-direction: column;
  }

  .cp-filter-group {
    width: 100%;
  }

  .cp-filter-group button {
    flex: 1;
  }

  .cp-summary-strip {
    grid-template-columns: 1fr;
  }

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