:root {
  --bg: #030712;
  --panel: #0b172b;
  --panel2: #07101f;
  --line: #203653;
  --blue: #087cff;
  --cyan: #00e5ff;
  --text: #edf5ff;
  --muted: #91a4bf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0 0 105px;
  background:
    radial-gradient(ellipse at top, #102b59 0%, var(--bg) 48%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  background: rgba(3, 8, 19, .96);
  border-bottom: 1px solid #172944;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  width: 75px;
  height: 75px;
  border-radius: 17px;
  object-fit: cover;
  background: #09215b;
}

.brand {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
}

.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
  letter-spacing: 2px;
}

main {
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 18px 15px 20px;
}

.page {
  display: none;
  animation: appear .2s ease;
}

.page.active {
  display: block;
}

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

.slider {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #061126;
}

.slides {
  display: flex;
  transition: transform .4s ease;
}

.slides img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  flex: 0 0 100%;
  background: #050b19;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.dot {
  border: 0;
  border-radius: 20px;
  width: 8px;
  height: 8px;
  padding: 0;
  background: #53647e;
}

.dot.active {
  width: 24px;
  background: var(--cyan);
}

.panel {
  margin-top: 18px;
  padding: 24px 20px;
  border: 1px solid #203a5c;
  border-radius: 25px;
  background: linear-gradient(145deg, #0d1b32, #050c19 85%);
  box-shadow: 0 10px 30px #0003;
}

.welcome {
  text-align: center;
  padding: 34px 22px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

h1 {
  font-size: clamp(27px, 7vw, 42px);
  margin: 13px 0;
}

h2 {
  font-size: 27px;
  margin: 12px 0 25px;
}

p {
  line-height: 1.6;
  color: #c1cee0;
}

.service-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  object-fit: contain;
}

label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 17px 0 8px;
  color: #dceaff;
}

.field {
  display: block;
  width: 100%;
  min-height: 51px;
  border: 1px solid #2a4261;
  border-radius: 13px;
  padding: 13px 15px;
  background: #050d1b;
  color: #f5f9ff;
  outline: none;
}

.field:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px #00e5ff1a;
}

select.field {
  color-scheme: dark;
}

textarea.field {
  resize: vertical;
  min-height: 75px;
}

.primary,
.secondary {
  display: block;
  width: 100%;
  border-radius: 13px;
  padding: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-top: 16px;
  border: 1px solid transparent;
  transition: .15s ease;
}

.primary {
  color: white;
  background: linear-gradient(110deg, #0754c5, #008cff);
  border-color: #258bff;
  box-shadow: 0 5px 18px #006dff25;
}

.primary:active,
.secondary:active {
  transform: scale(.98);
}

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

.secondary {
  color: #d8e8ff;
  background: #0b1930;
  border-color: #294362;
}

.full {
  width: 100%;
}

.total-box {
  padding: 20px;
  margin-top: 22px;
  border: 1px solid #183a59;
  border-radius: 17px;
  background: #050d1b;
}

.total-box span,
.payment-total span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.total-box strong {
  display: block;
  color: var(--cyan);
  font-size: 34px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}

.total-box small {
  display: block;
  color: #b6c8df;
  line-height: 1.5;
  font-size: 13px;
  }
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 6px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 12, 27, .98);
  border-top: 1px solid #203653;
}

.nav-item {
  min-width: 0;
  height: 83px;
  border: 1px solid #1b2b42;
  border-radius: 19px;
  color: #8999b0;
  background: #091323;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-item span {
  font-size: 25px;
  line-height: 1;
}

.nav-item small {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item.active {
  color: white;
  background: linear-gradient(145deg, #0754a8, #087cff);
  border-color: #218fff;
}

.nav-logo {
  width: 100%;
  max-width: 92px;
  height: 92px;
  margin: auto;
  border-radius: 50%;
  border: 1px solid #1767c6;
  background: #07152c;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px #0077ff26;
}

.nav-logo img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.order-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.order-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: #050d1b;
  border-radius: 14px;
}

.order-card strong {
  color: var(--cyan);
}

.order-card p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.empty {
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 3, 10, .85);
  overflow-y: auto;
}

.modal.show {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 26px 20px 22px;
  border: 1px solid #255183;
  border-radius: 23px;
  background: linear-gradient(145deg, #10213b, #050b18);
  text-align: center;
}

.modal-card h2 {
  margin-bottom: 16px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #142641;
  color: white;
  font-size: 27px;
}

.payment-total {
  padding: 15px;
  margin: 12px 0;
  background: #040b17;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.payment-total strong {
  display: block;
  margin-top: 7px;
  color: var(--cyan);
  font-size: 29px;
}

.payment-qr {
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 15px auto;
  padding: 8px;
  border-radius: 12px;
  background: white;
}

.payment-description {
  font-size: 13px;
  margin: 10px 0;
}

.countdown {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  z-index: 150;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid #1d8dff;
  border-radius: 12px;
  background: #0b1d35;
  color: white;
  text-align: center;
  transition: .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 600px) {
  main {
    padding-top: 25px;
  }

  .panel {
    padding: 30px;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(100%, 760px);
    transform: translateX(-50%);
    border: 1px solid #203653;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  .bottom-nav {
    gap: 3px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .nav-item {
    height: 72px;
    border-radius: 13px;
  }

  .nav-item small {
    font-size: 9px;
  }

  .nav-logo {
    height: 68px;
    width: 68px;
  }

  .nav-logo img {
    width: 46px;
    height: 46px;
  }

  .panel {
    padding: 19px 15px;
  }
}
