* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, #ffe7f6 0, #ffe7f6 20%, transparent 45%),
    radial-gradient(circle at 88% 90%, #f3e6ff 0, #f3e6ff 22%, transparent 50%),
    linear-gradient(145deg, #fff8fc, #fef6ff);
  color: #3f2f3a;
  min-height: 100vh;
}

.bg-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-particles span {
  position: absolute;
  width: var(--size, 14px);
  height: var(--size, 14px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25));
  opacity: 0.55;
  left: var(--left, 50%);
  animation: floatParticle var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #fddff2, #f0e0ff);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.splash.is-visible {
  display: flex;
}

.splash-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 28px 34px;
  box-shadow: 0 22px 44px rgba(145, 84, 124, 0.14);
  backdrop-filter: blur(8px);
  text-align: center;
  color: #513a48;
}

.spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border: 4px solid #f6cae1;
  border-top-color: #ca6fa5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  position: relative;
  z-index: 2;
}

.hero {
  padding: 24px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 234, 247, 0.95), rgba(241, 233, 255, 0.95));
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 28px rgba(151, 99, 132, 0.14);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.55s ease both;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  color: #89647a;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: #6a5361;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  animation: fadeUp 0.55s 0.08s ease both;
}

.tab {
  border: 1px solid rgba(236, 202, 224, 0.9);
  border-radius: 14px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #664c5b;
  font-weight: 600;
  transition: all 0.2s ease;
  transform: translateY(0);
}

.tab span {
  margin-right: 4px;
}

.tab.is-active {
  background: linear-gradient(135deg, #e8b5d8, #d6b8f0);
  color: #2f2029;
  box-shadow: 0 8px 18px rgba(137, 86, 116, 0.28);
  transform: translateY(-2px);
}

.panel {
  display: none;
  opacity: 0;
  transform: translateY(10px) scale(0.995);
}

.panel.is-active {
  display: block;
  animation: panelIn 0.28s ease forwards;
}

#confirm-page .card {
  margin-top: 6px;
}

.card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(104, 68, 93, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:active {
  transform: scale(0.998);
}

.card-title {
  margin: 2px 0 14px;
  font-size: 18px;
  color: #4f3a48;
}

.hidden {
  display: none;
}

.auth-hidden {
  display: none !important;
}

.warning p {
  margin-top: 0;
}

#booking-warning {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b4f61;
  font-weight: 600;
}

input,
select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #eccde0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #d88ab8;
  box-shadow: 0 0 0 3px rgba(216, 138, 184, 0.18);
}

.primary,
.primary-link {
  display: inline-block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  background: linear-gradient(135deg, #db8dbc, #c786d7);
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(173, 96, 144, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.primary:active,
.primary-link:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 6px 12px rgba(173, 96, 144, 0.26);
  filter: brightness(0.98);
}

.secondary {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e5b6d1;
  border-radius: 14px;
  padding: 11px;
  background: rgba(255, 244, 251, 0.95);
  color: #4f3a48;
  margin-top: 8px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.secondary:active {
  transform: scale(0.996);
  box-shadow: 0 8px 16px rgba(147, 103, 129, 0.16);
}

.confirm-block {
  background: rgba(255, 244, 251, 0.86);
  border: 1px solid #eccde0;
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
}

.confirm-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b4f61;
  font-weight: 700;
}

.confirm-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #87657a;
}

#confirm-slider {
  accent-color: #d68ab8;
  --progress: 0%;
  appearance: none;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(to right, #d88ab8 0, #cf86d5 var(--progress), #f1ddec var(--progress), #f1ddec 100%);
  outline: none;
  margin-top: 4px;
}

#confirm-slider::-webkit-slider-thumb {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: linear-gradient(135deg, #d886b6, #c784d7);
  box-shadow: 0 6px 14px rgba(146, 89, 122, 0.3);
}

#confirm-slider::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: linear-gradient(135deg, #d886b6, #c784d7);
  box-shadow: 0 6px 14px rgba(146, 89, 122, 0.3);
}

.status {
  min-height: 30px;
  padding: 10px 2px;
  color: #6c4c60;
  font-weight: 600;
}

.works-grid {
  display: grid;
  gap: 10px;
}

.work-item {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(104, 68, 93, 0.11);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.45s ease both;
}

.work-item:active {
  transform: scale(0.995);
}

.work-item:hover {
  box-shadow: 0 14px 28px rgba(104, 68, 93, 0.16);
}

.work-item img {
  width: 100%;
  height: 182px;
  object-fit: cover;
}

.work-item .content {
  padding: 12px;
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 26px;
  }

  .tab {
    font-size: 13px;
    padding: 11px 6px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatParticle {
  0% {
    transform: translateY(105vh) translateX(0) scale(0.9);
    opacity: 0;
  }
  12% {
    opacity: 0.45;
  }
  50% {
    transform: translateY(45vh) translateX(12px) scale(1);
  }
  88% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-12vh) translateX(-10px) scale(1.05);
    opacity: 0;
  }
}
