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

html, body { overflow-x: hidden; }
html { background: #171021; }

:root {
  --bg: #171021;
  --bg-soft: #1f1630;
  --card: #211837;
  --card-hover: #281d42;
  --border: rgba(255, 255, 255, 0.09);
  --text: #efe9f7;
  --muted: #a89bbd;
  --purple: #9b77dd;
  --purple-deep: #6f4bb5;
  --purple-soft: rgba(155, 119, 221, 0.14);
  --gold: #cfa85c;
  --gold-soft: rgba(207, 168, 92, 0.12);
  --heading: #f4eefb;
  --radius: 14px;
  --serif: "Cormorant Garamond", "Didot", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background:
    radial-gradient(900px 420px at 50% -140px, #2b1e45 0%, var(--bg) 65%);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.shell { max-width: 880px; margin: 0 auto; padding: 48px 20px 130px; }

/* Header */
header.site { text-align: center; margin-bottom: 40px; }
header.site .avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px var(--purple-soft);
  margin-bottom: 18px;
}
header.site h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--heading);
}
header.site h1 em { font-style: italic; color: var(--gold); }
header.site::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto 0;
}
header.site .tagline {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-top: 10px;
}
header.site .intro { color: var(--muted); max-width: 540px; margin: 16px auto 0; font-size: 0.95rem; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--sans);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: var(--card-hover);
}
.service-card h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--heading); }
.service-card .price {
  color: var(--gold);
  font-size: 0.82rem;
  margin-top: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.service-card .count { color: var(--muted); font-size: 0.8rem; margin-top: 5px; }

/* Hard No's */
.limits-line { font-size: 0.86rem; }
.limits-line b { color: var(--gold); font-weight: 600; }
.limits-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 26px; }
.brief-hint { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }

/* Custom photo set cards */
.photo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.photo-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.photo-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  font-weight: 600;
}
.photo-card select { margin-bottom: 10px; background-color: var(--bg-soft); }
.photo-addons-label { margin: 2px 0 8px; font-size: 0.7rem; }
.photo-addons { display: flex; flex-direction: column; gap: 8px; }
.photo-addons .choice { background: var(--bg-soft); }

/* Builder */
.float-back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  background: rgba(33, 24, 55, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.float-back:hover { border-color: #fff; }

.builder h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; color: var(--heading); margin-bottom: 14px; }
.builder .description {
  color: var(--text);
  font-size: 0.95rem;
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 26px;
}

.group { margin-bottom: 28px; }
.group-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.req { color: #ff4d61; font-weight: 700; white-space: nowrap; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
  font-size: 0.93rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.choice input { accent-color: var(--purple); }
.choice:hover { border-color: var(--purple); }
.choice.selected { background: var(--purple-soft); border-color: var(--purple); }
.choice .price { color: var(--gold); font-size: 0.85rem; font-weight: 600; }

/* Per-minute meter */
.meter-row { display: flex; align-items: center; gap: 12px; }
.meter-btn {
  width: 46px; height: 46px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--purple);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.meter-btn:hover { border-color: var(--purple); background: var(--purple-soft); }
input[type="number"].meter-input {
  width: 90px;
  height: 46px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0 6px;
  font-size: 1.05rem;
  font-family: var(--sans);
}
input[type="number"].meter-input:focus { outline: none; border-color: var(--purple); }
.meter-hint { color: var(--muted); font-size: 0.88rem; }

/* Form fields */
textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem; /* 16px minimum stops iOS Safari from zooming on focus */
}
input[type="text"], input[type="email"], input[type="password"] { height: 46px; padding: 0 14px; }
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89bbd' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select:focus { outline: none; border-color: var(--purple); }
select:invalid, select option[value=""] { color: var(--muted); }

/* Combined handle + platform control */
.handle-group {
  display: flex;
  height: 46px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.handle-group:focus-within { border-color: var(--purple); }
.handle-group input[type="text"] {
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
}
.handle-group select {
  flex: 1 1 50%;
  width: 50%;
  height: 100%;
  background-color: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
}
.handle-group input:focus, .handle-group select:focus { border-color: var(--border); }
textarea { min-height: 96px; resize: vertical; padding: 12px 14px; }
textarea:focus, input:focus { outline: none; border-color: var(--purple); }
label.field { display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 14px; color: var(--muted); font-size: 0.88rem; }
label.field > span { display: block; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* "Other" request boxes */
.other-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.other-row textarea { min-height: 56px; flex: 1; }
.other-remove {
  width: 46px; height: 46px; flex: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.other-remove:hover { border-color: var(--purple); color: var(--text); }
#add-other { padding: 10px 18px; font-size: 0.88rem; }

/* Sticky total bar */
.total-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(23, 16, 33, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold);
  padding: 14px 20px;
  display: none;
}
.total-bar.visible { display: block; }
.total-bar .inner { max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.total-bar .amount { font-family: var(--serif); font-size: 1.7rem; color: var(--heading); }
.total-bar .amount small { color: var(--muted); font-size: 0.8rem; font-family: var(--sans); display: block; letter-spacing: 0.5px; }

.btn {
  background: var(--purple-deep);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.12s ease;
}
.btn:hover { background: #8258cf; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--purple); }
.btn.ghost:hover { background: var(--purple-soft); }
.btn.danger { background: #93384f; }
.btn.danger:hover { background: #7a2c40; }

.error-msg { color: #ff9bb0; margin-top: 12px; font-size: 0.92rem; }

/* Panels (success, status, login) */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
}
.panel h2 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: var(--heading); margin-bottom: 10px; }
.panel p { color: var(--muted); font-size: 0.95rem; }

.code-box {
  background: var(--purple-soft);
  border: 1px solid var(--purple);
  border-radius: 12px;
  padding: 20px;
  margin: 22px 0;
}
.code-box .code { font-size: 2rem; letter-spacing: 5px; font-weight: 700; color: #fff; font-family: var(--sans); }
.code-box .hint { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }

.pay-methods { list-style: none; margin: 14px 0; text-align: left; display: inline-block; }
.pay-methods li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.pay-methods li:last-child { border-bottom: none; }
.pay-methods b { color: var(--gold); }

.status-chip {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.status-pending { background: var(--gold-soft); color: var(--gold); }
.status-approved { background: rgba(112, 205, 152, 0.14); color: #7fd6a3; }
.status-declined { background: rgba(255, 130, 155, 0.12); color: #ff9bb0; }

.copy-link { color: var(--purple); font-size: 0.85rem; cursor: pointer; background: none; border: none; margin-top: 8px; }

footer.site { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 64px; }
footer.site::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 18px;
}

.hidden { display: none !important; }
