:root {
  --bg: #05050b;
  --panel: rgba(5, 7, 14, 0.72);
  --panel-strong: rgba(2, 3, 8, 0.9);
  --text: #f7f2ff;
  --muted: #91899c;
  --pink: #ff3f9f;
  --pink-soft: rgba(255, 63, 159, 0.42);
  --cyan: #13d8ff;
  --cyan-soft: rgba(19, 216, 255, 0.28);
  --danger: #ff5b90;
  --line: rgba(255, 63, 159, 0.72);
  --shadow-pink: 0 0 18px rgba(255, 63, 159, 0.72), 0 0 44px rgba(255, 63, 159, 0.24);
  --shadow-cyan: 0 0 18px rgba(19, 216, 255, 0.5), 0 0 34px rgba(19, 216, 255, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(5, 5, 11, 0.82), rgba(5, 5, 11, 0.92)),
    url("/neon-scene.png?v=20260526-neon") center / cover fixed,
    var(--bg);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(255, 63, 159, 0.18), transparent 38%, rgba(19, 216, 255, 0.14));
  mix-blend-mode: screen;
  opacity: 0.46;
}

button,
input,
textarea {
  font: inherit;
}

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

.app-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 54px;
  align-items: center;
  padding: calc(34px + env(safe-area-inset-top)) 32px calc(34px + env(safe-area-inset-bottom));
}

.admin-shell {
  width: min(100%, 760px);
  display: block;
}

.work-panel {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ff69b5;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 63, 159, 0.9), 0 0 28px rgba(255, 63, 159, 0.46);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--pink);
  font-size: 58px;
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 0 12px rgba(255, 63, 159, 0.95), 0 0 30px rgba(255, 63, 159, 0.52);
}

h2 {
  color: var(--pink);
  font-size: 27px;
  line-height: 1.05;
  font-weight: 950;
  text-shadow: 0 0 10px rgba(255, 63, 159, 0.9), 0 0 22px rgba(255, 63, 159, 0.48);
}

.status-pill {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 10px 16px;
  border: 1px solid rgba(19, 216, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(2, 10, 20, 0.72);
  color: #77e9ff;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: var(--shadow-cyan), inset 0 0 18px rgba(19, 216, 255, 0.12);
}

.status-pill.error {
  border-color: rgba(255, 91, 144, 0.88);
  background: rgba(35, 3, 17, 0.82);
  color: #ff8db8;
  box-shadow: var(--shadow-pink), inset 0 0 18px rgba(255, 63, 159, 0.12);
}

.mini-note {
  color: #82e9ff;
  font-size: 13px;
  text-align: right;
  text-shadow: 0 0 12px rgba(19, 216, 255, 0.42);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.mode-tab {
  min-height: 62px;
  border: 1px solid rgba(19, 216, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(2, 4, 10, 0.72);
  color: #b1a8bd;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(19, 216, 255, 0.06);
}

.mode-tab.active {
  border-color: rgba(255, 63, 159, 0.96);
  color: #ffd1e6;
  box-shadow: var(--shadow-pink), inset 0 0 24px rgba(255, 63, 159, 0.18);
  text-shadow: 0 0 12px rgba(255, 63, 159, 0.9);
}

.report-form {
  display: grid;
  gap: 22px;
}

.form-group {
  display: grid;
  gap: 22px;
}

.hidden {
  display: none !important;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  color: #efe9f7;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.36);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 3, 8, 0.82);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 18px rgba(255, 63, 159, 0.08), 0 0 12px rgba(255, 63, 159, 0.16);
}

input {
  min-height: 58px;
  padding: 0 18px;
}

textarea {
  resize: vertical;
  min-height: 128px;
  padding: 16px 18px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 242, 255, 0.42);
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan), inset 0 0 18px rgba(19, 216, 255, 0.09);
}

.desserts-panel {
  position: relative;
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 63, 159, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(rgba(3, 4, 11, 0.9), rgba(3, 4, 11, 0.78));
  box-shadow: var(--shadow-pink), inset 0 0 34px rgba(255, 63, 159, 0.07);
  overflow: hidden;
}

.desserts-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(19, 216, 255, 0.14), transparent 26%, rgba(255, 63, 159, 0.12));
}

.section-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.icon-button,
.remove-dessert {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 63, 159, 0.86);
  border-radius: var(--radius);
  background: rgba(7, 8, 15, 0.86);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 63, 159, 0.42), inset 0 0 18px rgba(255, 63, 159, 0.08);
}

.icon-button {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  font-size: 32px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(19, 216, 255, 0.95);
}

.desserts-list {
  position: relative;
  display: grid;
  gap: 10px;
}

.dessert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 48px;
  gap: 4px;
  align-items: center;
}

.dessert-row input {
  min-height: 58px;
}

.remove-dessert {
  width: 48px;
  height: 58px;
  color: var(--danger);
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 91, 144, 0.92);
}

.submit-button {
  position: relative;
  min-height: 66px;
  border: 1px solid rgba(255, 63, 159, 0.96);
  border-radius: var(--radius);
  background: rgba(8, 3, 12, 0.86);
  color: #ffd3e8;
  font-size: 19px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-pink), inset 0 0 24px rgba(255, 63, 159, 0.13);
  text-shadow: 0 0 12px rgba(255, 63, 159, 0.86);
}

.submit-button::after {
  content: ">";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-24deg);
  color: var(--cyan);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(19, 216, 255, 0.9);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ghost-button {
  min-height: 54px;
  border: 1px solid rgba(19, 216, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(2, 4, 10, 0.62);
  color: #a9eefe;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(19, 216, 255, 0.08);
}

.chat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-dessert-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) 48px;
}

.scene-panel {
  position: sticky;
  top: 32px;
  min-height: 690px;
  border: 1px solid rgba(255, 63, 159, 0.88);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel-strong);
  box-shadow: var(--shadow-pink), 0 0 80px rgba(19, 216, 255, 0.12);
}

.scene-panel img {
  width: 100%;
  height: 100%;
  min-height: 690px;
  display: block;
  object-fit: cover;
}

.scene-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 63, 159, 0.08), transparent 34%, rgba(19, 216, 255, 0.09));
  box-shadow: inset 0 0 46px rgba(255, 63, 159, 0.34);
}

@media (max-width: 960px) {
  .app-shell {
    width: min(100%, 640px);
    display: block;
    padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  }

  .scene-panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .eyebrow {
    font-size: 15px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 21px;
  }

  .status-pill {
    min-width: 88px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .mode-tabs {
    gap: 8px;
  }

  .mode-tab {
    min-height: 54px;
    font-size: 15px;
  }

  .field span {
    font-size: 15px;
  }

  input {
    min-height: 52px;
    padding: 0 14px;
  }

  .desserts-panel {
    padding: 16px 14px 14px;
  }

  .dessert-row {
    grid-template-columns: minmax(0, 1fr) 84px 44px;
  }

  .dessert-row input {
    min-height: 52px;
  }

  .remove-dessert {
    width: 44px;
    height: 52px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .chat-grid,
  .admin-dessert-row {
    grid-template-columns: 1fr;
  }

  .admin-dessert-row .remove-dessert {
    width: 100%;
  }

  .submit-button {
    min-height: 60px;
    padding: 0 54px 0 16px;
    font-size: 16px;
  }
}
