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

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(180, 87, 255, .35), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(110, 40, 255, .35), transparent 30%),
    linear-gradient(135deg, #090014 0%, #160025 45%, #2b064b 100%);
  overflow-x: hidden;
}

body.modal-open .page {
  filter: blur(10px);
  transform: scale(.985);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle, rgba(167, 92, 255, .35), transparent 35%),
    linear-gradient(135deg, #06000d, #210039, #090014);
  animation: introOut .9s ease forwards;
  animation-delay: 2.4s;
}

.intro h1 {
  margin-top: 130px;
  font-size: clamp(42px, 8vw, 96px);
  letter-spacing: -3px;
  text-shadow: 0 0 35px rgba(204, 153, 255, .75);
}

.intro p {
  margin-top: -70px;
  color: #e9d8ff;
  font-size: 18px;
}

.scissor {
  position: absolute;
  font-size: 120px;
  filter: drop-shadow(0 0 35px #b25cff);
  animation: scissorCut 2.4s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes scissorCut {
  0% { transform: translateX(-80vw) rotate(-35deg) scale(.6); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translateX(0) rotate(18deg) scale(1.2); }
  70% { transform: translateX(0) rotate(-18deg) scale(1.2); }
  100% { transform: translateX(80vw) rotate(35deg) scale(.8); opacity: 0; }
}

@keyframes introOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.page {
  min-height: 100vh;
  transition: .35s ease;
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 900;
}

.logo span {
  color: #c88cff;
  margin-left: 5px;
}

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

.nav-btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s ease;
}

.nav-btn,
.primary-btn {
  padding: 15px 24px;
  background: linear-gradient(135deg, #a855f7, #6d28d9, #ec4899);
  box-shadow: 0 0 30px rgba(168, 85, 247, .45);
}

.danger-btn {
  padding: 13px 18px;
  background: linear-gradient(135deg, #ef4444, #be123c);
  box-shadow: 0 0 25px rgba(239, 68, 68, .25);
}

.nav-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-3px);
}

.ghost-btn {
  padding: 15px 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}

.ghost-btn.small {
  padding: 12px 18px;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  color: #d8b4fe;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(46px, 8vw, 92px);
  line-height: .95;
  letter-spacing: -4px;
  text-shadow: 0 0 55px rgba(168, 85, 247, .35);
}

.lead {
  max-width: 620px;
  margin-top: 26px;
  color: #f2e7ff;
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.glow-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #ec4899, #a855f7, #22d3ee, #ec4899);
  filter: blur(15px);
  animation: spin 7s linear infinite;
  opacity: .8;
}

@keyframes spin { to { transform: rotate(360deg); } }

.glass-panel {
  position: relative;
  width: min(380px, 100%);
  padding: 42px;
  border-radius: 34px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.big-icon {
  font-size: 74px;
  margin-bottom: 25px;
}

.glass-panel h2 { font-size: 36px; }

.glass-panel p {
  margin-top: 14px;
  color: #eadcff;
  line-height: 1.6;
}

.booking-overlay,
.login-overlay,
.admin-overlay,
.edit-overlay,
.register-overlay,
.profile-overlay,
.services-overlay,
.account-overlay,
.users-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  background: rgba(8, 0, 18, .48);
  backdrop-filter: blur(12px);
  padding: 24px;
  overflow-y: auto;
}

.booking-overlay.active,
.login-overlay.active,
.admin-overlay.active,
.edit-overlay.active,
.register-overlay.active,
.profile-overlay.active,
.services-overlay.active,
.account-overlay.active,
.users-overlay.active {
  display: grid;
}

.booking-modal,
.login-modal,
.admin-panel,
.edit-modal {
  width: min(1040px, 100%);
  position: relative;
  text-align: center;
  padding: 34px;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(55, 12, 91, .94), rgba(17, 2, 35, .96));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
  animation: modalIn .35s ease;
}

.login-modal,
.edit-modal {
  width: min(620px, 100%);
}

.admin-panel {
  width: min(1180px, 100%);
  text-align: left;
}

.services-panel {
  text-align: center;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.booking-header {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 12px;
}

.back-btn {
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  transition: .25s ease;
}

.back-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal h2,
.login-modal h2,
.admin-panel h2,
.edit-modal h2 {
  font-size: clamp(30px, 5vw, 52px);
}

.booking-modal p,
.login-modal p,
.admin-panel p,
.edit-modal p {
  margin-top: 10px;
  color: #eadcff;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.steps span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #d8c7ee;
  font-size: 13px;
  font-weight: 800;
}

.steps span.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 0 25px rgba(236, 72, 153, .35);
}

.booking-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.booking-view {
  display: none;
  animation: slideIn .36s ease;
}

.booking-view.active {
  display: block;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-cards {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.floating-card {
  min-height: 210px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 28px;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at top, rgba(236, 72, 153, .28), transparent 45%),
    rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  animation: float 3s ease-in-out infinite;
  transition: .25s ease;
}

.floating-card:nth-child(2) { animation-delay: .25s; }
.floating-card:nth-child(3) { animation-delay: .5s; }

.floating-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: rgba(216, 180, 254, .85);
  box-shadow: 0 25px 80px rgba(168, 85, 247, .45);
}

.floating-card span {
  display: block;
  font-size: 54px;
  margin-bottom: 18px;
}

.floating-card strong {
  font-size: 30px;
  letter-spacing: 2px;
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

.service-grid,
.length-grid,
.time-grid,
.day-picker {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

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

.service-btn,
.length-btn,
.day-btn,
.time-btn {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  color: #fff;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  transition: .25s ease;
}

.service-btn {
  min-height: 92px;
  padding: 18px;
  text-align: left;
}

.service-btn strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.service-btn small { color: #d9c4ef; }

.service-btn:hover,
.length-btn:hover,
.day-btn:hover,
.time-btn:hover {
  transform: translateY(-4px);
  background: rgba(168, 85, 247, .22);
  border-color: rgba(216, 180, 254, .65);
}

.picked-service,
.selected-mini-card {
  width: fit-content;
  max-width: 100%;
  text-align: left;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  animation: dockTopLeft .35s ease;
}

@keyframes dockTopLeft {
  from { opacity: .2; transform: translate(240px, 80px) scale(1.15); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

.picked-service small,
.selected-mini-card span {
  display: block;
  color: #d9c4ef;
  font-size: 12px;
  margin-bottom: 5px;
}

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

.length-btn {
  min-height: 120px;
  padding: 20px;
}

.length-btn strong {
  display: block;
  font-size: 24px;
}

.length-btn span {
  display: block;
  margin-top: 8px;
  color: #eadcff;
}

.day-picker { grid-template-columns: repeat(6, 1fr); }

.day-btn {
  padding: 14px 8px;
  font-weight: 900;
}

.day-btn.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-color: transparent;
}

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

.time-btn {
  padding: 14px 8px;
  font-weight: 900;
}

.time-btn.selected {
  background: linear-gradient(135deg, #22c55e, #a855f7);
}

.time-btn.disabled {
  opacity: .32;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-form,
.login-form,
.edit-form {
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
}

.booking-form { display: none; }
.booking-form.active { display: block; animation: slideIn .35s ease; }

.booking-form h3 { margin-bottom: 16px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

input,
select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: none;
}

select option {
  color: #111;
}

input::placeholder { color: #d8c7ee; }

.success-box,
.error-box {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
}

.success-box {
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .45);
  color: #dcffe9;
}

.error-box {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .45);
  color: #ffe0e0;
}

.success-box.active,
.error-box.active { display: block; }

.login-hint {
  margin-top: 15px;
  color: #d8c7ee;
  font-size: 14px;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 54px;
}

.admin-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 24px;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.admin-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
}

.admin-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.admin-card p {
  margin: 4px 0;
  color: #eadcff;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-actions button {
  white-space: nowrap;
}

.empty-admin {
  padding: 30px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  color: #eadcff;
}

.services-only-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

.services-category {
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}

.services-category h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

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

.service-view-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.service-view-card strong {
  display: block;
  margin-bottom: 8px;
}

.service-view-card small {
  color: #eadcff;
}

.profile-logout {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; margin-top: 34px; }

  .booking-header,
  .admin-tools,
  .admin-card {
    grid-template-columns: 1fr;
  }

  .back-btn { width: fit-content; }

  .booking-cards,
  .service-grid,
  .length-grid,
  .day-picker,
  .time-grid,
  .form-grid,
  .services-items {
    grid-template-columns: 1fr;
  }

  .navbar,
  .nav-actions,
  .admin-top,
  .admin-actions {
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
  }
}


.account-icon-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  backdrop-filter: blur(12px);
  transition: .25s ease;
}

.account-icon-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 30px rgba(168, 85, 247, .45);
}

.nav-logout {
  display: none;
}

body.logged-in .account-icon-btn {
  display: none;
}

body.logged-in .nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-menu-actions {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.user-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
}

.user-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.user-card p {
  margin: 5px 0;
  color: #eadcff;
}

.user-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  font-size: 12px;
  font-weight: 900;
}


.profile-panel {
  text-align: left;
}

.profile-menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.profile-tab {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: .25s ease;
}

.profile-tab.active,
.profile-tab:hover {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  transform: translateY(-2px);
}

.profile-section {
  display: none;
  margin-top: 22px;
}

.profile-section.active {
  display: block;
  animation: slideIn .35s ease;
}

.profile-data-card,
.tip-card {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
}

.profile-data-card h3,
.tip-card h3 {
  margin-bottom: 12px;
}

.profile-data-card p,
.tip-card p {
  color: #eadcff;
  margin-bottom: 18px;
  line-height: 1.6;
}

.profile-bookings-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.booking-status {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .18);
  border: 1px solid rgba(34, 197, 94, .35);
  color: #dcffe9;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .profile-bookings-head {
    flex-direction: column;
    align-items: stretch;
  }
}


.nav-profile {
  display: none;
}

body.logged-in .nav-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Extra mobile polish */
@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 20% 10%, rgba(180, 87, 255, .28), transparent 32%),
      radial-gradient(circle at 85% 20%, rgba(236, 72, 153, .22), transparent 34%),
      linear-gradient(135deg, #090014 0%, #160025 55%, #250441 100%);
  }

  .intro h1 {
    font-size: 40px;
    letter-spacing: -1px;
    margin-top: 110px;
  }

  .intro p {
    font-size: 15px;
    margin-top: -50px;
    padding: 0 18px;
  }

  .scissor {
    font-size: 88px;
  }

  .navbar {
    width: calc(100% - 22px);
    padding: 18px 0;
    align-items: stretch;
  }

  .logo {
    text-align: center;
    font-size: 22px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 52px;
    gap: 10px;
    width: 100%;
  }

  .nav-actions .small,
  .nav-actions .nav-profile,
  .nav-actions .nav-logout,
  .nav-actions .nav-btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .account-icon-btn {
    width: 52px;
    height: 46px;
    border-radius: 16px;
  }

  body.logged-in .nav-actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    width: calc(100% - 22px);
    margin-top: 30px;
    gap: 24px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1;
    letter-spacing: -2px;
    text-align: center;
  }

  .eyebrow,
  .lead {
    text-align: center;
  }

  .lead {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions button,
  .primary-btn,
  .ghost-btn,
  .danger-btn {
    width: 100%;
  }

  .hero-card {
    min-height: 280px;
  }

  .glow-ring {
    width: 240px;
    height: 240px;
  }

  .glass-panel {
    padding: 26px;
    border-radius: 26px;
  }

  .big-icon {
    font-size: 52px;
    margin-bottom: 16px;
  }

  .glass-panel h2 {
    font-size: 28px;
  }

  .booking-overlay,
  .login-overlay,
  .admin-overlay,
  .edit-overlay,
  .register-overlay,
  .profile-overlay,
  .services-overlay,
  .account-overlay,
  .users-overlay {
    padding: 10px;
    align-items: start;
  }

  .booking-modal,
  .login-modal,
  .admin-panel,
  .edit-modal {
    width: 100%;
    margin-top: 8px;
    padding: 22px 14px;
    border-radius: 24px;
  }

  .close-btn {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .booking-modal h2,
  .login-modal h2,
  .admin-panel h2,
  .edit-modal h2 {
    font-size: 30px;
    padding-right: 38px;
  }

  .booking-header {
    display: block;
    text-align: center;
  }

  .back-btn {
    margin-bottom: 14px;
  }

  .steps {
    gap: 6px;
    margin: 18px 0 8px;
  }

  .steps span {
    font-size: 11px;
    padding: 8px 9px;
  }

  .booking-stage {
    min-height: auto;
    overflow: visible;
  }

  .floating-card {
    min-height: 150px;
    border-radius: 22px;
  }

  .floating-card span {
    font-size: 42px;
    margin-bottom: 10px;
  }

  .floating-card strong {
    font-size: 24px;
  }

  .service-btn {
    min-height: auto;
    padding: 16px;
    border-radius: 18px;
  }

  .service-btn strong {
    font-size: 16px;
  }

  .length-btn {
    min-height: 92px;
  }

  .day-picker {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .time-btn,
  .day-btn {
    padding: 13px 6px;
    font-size: 14px;
  }

  .form-grid {
    gap: 10px;
  }

  input,
  select {
    padding: 14px;
    font-size: 16px;
  }

  .admin-top {
    padding-right: 0;
  }

  .admin-card {
    padding: 15px;
    border-radius: 20px;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .services-category {
    padding: 16px;
    border-radius: 20px;
  }

  .services-category h3 {
    font-size: 24px;
  }

  .profile-menu {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-bookings-head {
    align-items: stretch;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 38px;
  }

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

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

  .account-icon-btn {
    width: 100%;
  }
}
