:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --brand: #ff3d6d;
  --brand-2: #ffd166;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 12% 10%, rgba(255, 61, 109, 0.22), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(255, 209, 102, 0.16), transparent 55%),
    radial-gradient(900px 600px at 40% 95%, rgba(86, 214, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: auto;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand-name {
  display: block;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

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

.inline-form { margin: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.chip.primary {
  border-color: rgba(255, 61, 109, 0.35);
  background: rgba(255, 61, 109, 0.16);
}

.chip.primary:hover { background: rgba(255, 61, 109, 0.22); }

.chip.danger {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}

.chip.danger:hover { background: #ff5d86; }

.chip:disabled {
  opacity: 0.45;
  cursor: default;
}

.hero { padding: 28px 0 8px; }

.bus-top {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(120deg, rgba(255, 61, 109, 0.22), transparent 46%),
    var(--panel);
}

.bus-kicker {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bus-stops {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
}

.bus-stops li {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.bus-stops span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bus-stops strong { display: block; margin: 4px 0; }

.bus-stops em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy { padding: 22px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.3px;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.2px;
}

h3 { margin: 0 0 8px; font-size: 16px; }

.lead {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  max-width: 62ch;
  white-space: pre-wrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-logo {
  width: min(280px, 100%);
  height: auto;
  display: block;
  border-radius: 12px;
  background: #000;
}

.section { padding: 18px 0 26px; }

.sub { margin: 0 0 14px; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

.feat strong { display: block; margin-bottom: 4px; font-size: 14px; }
.feat span { color: var(--muted); font-size: 13px; }

.stage-card { padding: 12px; overflow: hidden; }

.stage-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 240px;
  border-radius: 14px;
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1180px;
  transform-origin: top left;
}

.stage-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
  pointer-events: none;
}

.sticker {
  position: absolute;
  margin: 0;
}

button.sticker {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.caption {
  margin: 8px 4px 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.contact-card { padding: 18px; }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

a.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.contact-item .label {
  color: var(--muted);
  font-size: 12px;
}

.contact-item .value { font-weight: 700; }

.note-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.note-list li { margin: 6px 0; }

.send-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.send-note a {
  color: var(--brand);
  font-weight: 800;
}

footer {
  padding: 18px 0 40px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.footer-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.footer-copy {
  margin: 0;
}

.paypal-here {
  display: block;
  width: min(140px, 40%);
  height: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px 6px;
}

.lb {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1000;
  padding: 18px;
}

.lb.open { display: flex; }

.lb-dialog {
  width: min(1100px, 96vw);
  max-height: 92vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70vw;
}

.lb-actions { display: flex; gap: 8px; align-items: center; }

.lb-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.lb-btn:hover { background: rgba(255, 255, 255, 0.1); }

.lb-imgwrap {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.lb-img {
  max-width: 100%;
  max-height: calc(92vh - 110px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  object-fit: contain;
}

.page { padding: 22px 0 10px; }

.login-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 28px 0 40px;
}

.login-card { width: min(440px, 100%); padding: 22px; }

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

select option {
  color: #0b1220;
  background: #ffffff;
}

textarea { min-height: 96px; resize: vertical; }

input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.form-actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.album-panel { margin-bottom: 14px; }

.album-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.album-create .form-actions { margin-top: 0; }

.album-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
}

.pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.pick-item img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.pick-item span { min-width: 0; }

.pick-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.inspector {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel { padding: 14px; }

.panel h2 { font-size: 16px; }

.help { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.toast {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 209, 102, 0.12);
}

.toast.is-error { background: rgba(255, 61, 109, 0.16); }

.form-error {
  margin: 8px 0 0;
  color: #ffd0dc;
  font-size: 13px;
}

.preview {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.file-name { margin: 8px 0 0; font-weight: 600; }
.added { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.align-row, .z-row, .swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.align-row .chip { flex: 1; }

.align-row .chip.is-on,
.swatch.is-on {
  border-color: rgba(255, 61, 109, 0.55);
  background: rgba(255, 61, 109, 0.2);
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
}

.stack-gap { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.credential {
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 4px 0 12px;
}

.admin-page .stage {
  background-color: rgba(255, 255, 255, 0.03);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 14px;
  touch-action: none;
  user-select: none;
}

.admin-page .shot { cursor: grab; }
.admin-page .sticker.is-dragging .shot { cursor: grabbing; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }

.admin-page .sticker.is-selected .shot {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.admin-page .caption:empty::before {
  content: "Text below image";
  color: rgba(255, 255, 255, 0.35);
}

.resize-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: nwse-resize;
  touch-action: none;
}

.stage-card.is-drop { outline: 2px dashed var(--brand-2); outline-offset: -8px; }

@media (max-width: 980px) {
  .features,
  .contact-grid,
  .editor,
  .album-create { grid-template-columns: 1fr; }
  .album-create .form-actions { margin-top: 4px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspector { position: static; }
  .brand-sub { max-width: 46vw; }
}

@media (max-width: 720px) {
  .bus-top { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .bus-stops,
  .features { grid-template-columns: 1fr; }
  .chip { font-size: 13px; padding: 8px 10px; }
  .pos-grid { grid-template-columns: 1fr; }
}

.contact-form {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.contact-title {
  margin: 0 0 8px;
  text-align: center;
}

.char-count,
.file-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.upload-progress {
  margin-top: 10px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  background: var(--brand);
}

.image-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.image-list li {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.char-count { text-align: right; }

input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1000;
  padding: 18px;
}

.modal.open { display: flex; }

.modal-card {
  width: min(440px, 100%);
  padding: 22px;
  text-align: center;
}

.modal-card h1 { font-size: 28px; }
