@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --bg-0: #091018;
  --bg-1: #101c2b;
  --bg-2: #1a2d3f;
  --glass: rgba(13, 23, 35, 0.72);
  --glass-strong: rgba(10, 18, 28, 0.9);
  --line: #35526a;
  --line-soft: #283d50;
  --text: #f1f7ff;
  --muted: #b6cadb;
  --accent: #3fd6b8;
  --accent-2: #5cc8ff;
  --accent-deep: #113d52;
  --danger: #ff8f8f;
  --ok: #8ff2cc;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 26px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.45;
  background:
    radial-gradient(circle at 8% -8%, #4bffd222, transparent 42%),
    radial-gradient(circle at 86% 4%, #64d3ff22, transparent 36%),
    radial-gradient(circle at 50% 120%, #5cc8ff1f, transparent 40%),
    linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 100%);
  opacity: 0.4;
}

.shell {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 16px 28px;
  display: grid;
  gap: 16px;
}

.shell-narrow {
  max-width: 720px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(165deg, var(--glass), var(--glass-strong));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  animation: card-in 0.45s ease-out both;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.auth-card {
  max-width: 760px;
  margin-inline: auto;
}

.page-login .auth-card {
  border-color: #3e6f8c;
  background: linear-gradient(165deg, rgba(13, 26, 39, 0.86), rgba(14, 34, 51, 0.93));
}

.page-booking .card {
  border-color: #426f7e;
}

.page-register .auth-card {
  border-color: #4b6a85;
}

.page-dashboard .card {
  border-color: #4f6d82;
}

.page-customer .sticky-actions {
  border-color: #3f7c8d;
}

.sticky-actions {
  position: sticky;
  top: 10px;
  z-index: 20;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 6px;
  padding: 3px 10px;
  border: 1px solid rgba(143, 242, 204, 0.32);
  border-radius: 999px;
  background: rgba(63, 214, 184, 0.1);
  color: #baf5de;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

h2 {
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
}

h3 {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

p {
  margin: 0 0 10px;
  color: var(--muted);
}

a {
  color: #8be4ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 228, 255, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #b9f0ff;
  border-color: rgba(185, 240, 255, 0.8);
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.93rem;
  color: #d4e5f2;
}

.stack,
.grid {
  display: grid;
  gap: 12px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
button {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  padding: 11px 12px;
  background: #0c1723;
  color: var(--text);
  font: inherit;
}

input::placeholder {
  color: #90a8bc;
}

input:focus,
select:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--accent-2) 65%, white);
  box-shadow: 0 0 0 4px rgba(92, 200, 255, 0.16);
}

button {
  position: relative;
  cursor: pointer;
  font-weight: 700;
  border: 0;
  letter-spacing: 0.02em;
  background: linear-gradient(125deg, var(--accent), var(--accent-2));
  color: #032027;
  box-shadow: 0 10px 22px rgba(63, 214, 184, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 14px 28px rgba(92, 200, 255, 0.28);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  background: linear-gradient(135deg, #2a3f53, #365a79);
  color: #eef6ff;
  box-shadow: 0 10px 20px rgba(15, 31, 48, 0.34);
}

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #0c1722;
  padding: 10px 12px;
}

.checkline input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  padding: 9px 8px;
  vertical-align: top;
}

th {
  background: #112333;
  font-weight: 600;
}

.error {
  color: var(--danger);
  margin-top: 8px;
  font-weight: 600;
}

.muted {
  color: var(--muted);
  margin-right: 8px;
}

.tiny {
  font-size: 0.84rem;
  color: #c0d5e5;
}

.panel-note {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(170deg, #0d1c2c, #122638);
  display: grid;
  gap: 7px;
}

.panel-note strong {
  color: #e6f8ff;
}

.actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.wrap-actions {
  flex-wrap: wrap;
}

.actions button {
  width: auto;
  min-width: 180px;
}

pre {
  white-space: pre-wrap;
  background: #0a1723;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #d7ecff;
  font-size: 0.9rem;
  max-height: 280px;
  overflow: auto;
}

.stats-grid,
.guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(135deg, #0f2537, #173349);
  margin: 8px 0 12px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.plan-card {
  min-height: 56px;
}

.plan-card.selected,
.pay-method.selected {
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 74%, transparent);
}

.guide-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  margin-bottom: 8px;
}

.stat-card,
.guide-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, #102132, #142a3f);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  color: var(--ok);
}

.stat-line {
  margin-top: 6px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .grid,
  .stats-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }
}
