/* —— StockBook Neo — final lock ——
   Loaded after styles.css. Soft depth language wins last.
   Highlight upper-left · shade lower-right.
   Idle raised · hover carved · selected pops up (never carved-as-selected). */

:root {
  --surface: #e5e5e5;
  --well: #d8d8dc;
  --ink: #1a1a1e;
  --mute: #6a6a72;

  --recessed:
    inset 3px 3px 7px rgba(40, 40, 48, 0.18),
    inset -2px -2px 6px rgba(255, 255, 255, 0.72);
  --raised:
    4px 4px 10px rgba(40, 40, 48, 0.18),
    -3px -3px 8px rgba(255, 255, 255, 0.72);
  --raised-sm:
    2px 2px 6px rgba(40, 40, 48, 0.12),
    -2px -2px 5px rgba(255, 255, 255, 0.7);

  --green-dot: #3d8f6a;
  --gold-dot: #b8923a;
  --orange-dot: #c47a3a;
  --purple-dot: #7a6aad;
  --rose-dot: #c45a6a;
  --blue-dot: #4a7a9e;
}

/* Utility surfaces */
.neo-surface {
  background: var(--surface);
}

.neo-well {
  background: var(--well);
  box-shadow: var(--recessed);
}

.neo-raised {
  background: var(--surface);
  box-shadow: var(--raised-sm);
}

.neo-pill {
  border-radius: 999px;
}

/* Chip / option depth: idle raised → hover recessed → selected raised + heavy ink */
.neo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--mute);
  box-shadow: var(--raised-sm);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.neo-chip:hover {
  box-shadow: var(--recessed);
  color: var(--ink);
}

.neo-chip.is-selected,
.neo-chip[aria-selected="true"] {
  box-shadow: var(--raised);
  color: var(--ink);
  font-weight: 700;
}

/* Status = recessed chip + soft dot */
.neo-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--well);
  color: var(--ink);
  box-shadow: var(--recessed);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.neo-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--green-dot));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--green-dot)) 20%, transparent);
}

.neo-status[data-status="active"] {
  --dot: var(--green-dot);
  background: rgba(61, 143, 106, 0.14);
}

.neo-status[data-status="consigned"] {
  --dot: var(--gold-dot);
  background: rgba(184, 146, 58, 0.16);
}

.neo-status[data-status="repair"] {
  --dot: var(--orange-dot);
  background: rgba(196, 122, 58, 0.16);
}

.neo-status[data-status="sold"] {
  --dot: var(--purple-dot);
  background: rgba(122, 106, 173, 0.14);
}

.neo-status[data-status="returned"] {
  --dot: var(--rose-dot);
  background: rgba(196, 90, 106, 0.14);
}

/* Rose Clear — brighter on hover, not darker */
.neo-rose {
  color: var(--rose-dot);
  background: rgba(196, 90, 106, 0.12);
  box-shadow: var(--raised-sm);
}

.neo-rose:hover {
  color: #d46878;
  background: rgba(212, 104, 120, 0.2);
  box-shadow: var(--recessed);
}

/* Action buttons lock */
.btn,
.product-link,
.text-link,
nav a {
  border-radius: 999px;
}

.btn {
  box-shadow: var(--raised-sm);
}

.btn:hover,
.btn:active,
.product-link:hover,
.text-link:hover,
nav a:hover {
  box-shadow: var(--recessed);
}

.btn.primary {
  background: linear-gradient(
    180deg,
    rgba(61, 143, 106, 0.18),
    color-mix(in srgb, var(--surface) 92%, #fff)
  );
  color: #2f7354;
}

/* Money-aware: cost strong, retail mute (utility) */
.neo-cost {
  color: var(--ink);
  font-weight: 700;
}

.neo-retail {
  color: var(--mute);
  font-weight: 500;
}

/* Focus blur workspace when menus open */
body.has-focus-blur .workspace-blur {
  filter: blur(3px);
  opacity: 0.55;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Inputs = recessed wells */
input.neo-input,
textarea.neo-input,
select.neo-input {
  appearance: none;
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: none;
  border-radius: 14px;
  background: var(--well);
  color: var(--ink);
  box-shadow: var(--recessed);
  font: inherit;
}

input.neo-input:focus,
textarea.neo-input:focus,
select.neo-input:focus {
  outline: none;
  box-shadow:
    var(--recessed),
    0 0 0 2px color-mix(in srgb, var(--green-dot) 35%, transparent);
}

/* Dialog well shell */
.neo-dialog {
  background: var(--well);
  border-radius: 20px;
  box-shadow: var(--recessed);
  padding: 1.25rem;
}

.neo-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  position: sticky;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Phone: disable pull-to-refresh habit on long wizards when applied */
.neo-no-overscroll {
  overscroll-behavior-y: contain;
}

@media (max-width: 640px) {
  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }
}
