/* ───────── UBERMAQ · Prototype styles ─────────
   Industrial palette: orange / black / yellow accent
   Fonts: Clash Display (display) + Satoshi (body) — Fontshare
   Mobile-first, with desktop phone-frame container
*/

:root {
  --orange: #F26B1F;
  --orange-deep: #D8551A;
  --orange-soft: #FFF1E6;
  --yellow: #FFC93C;
  --black: #0F0F0F;
  --ink: #1A1A1A;
  --ink-2: #2A2A2A;
  --slate-700: #3E4148;
  --slate-500: #6B6F77;
  --slate-300: #C8CBD1;
  --slate-200: #E4E6EA;
  --slate-100: #F2F3F5;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --border: #E6E4DE;
  --success: #2F7A3D;
  --error: #B43A3A;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --pad: 18px;
  --nav-h: 68px;

  --shadow-card: 0 1px 2px rgba(15,15,15,.04), 0 6px 18px rgba(15,15,15,.06);
  --shadow-lift: 0 12px 32px rgba(15,15,15,.16);
  --shadow-phone: 0 30px 80px rgba(15,15,15,.28), 0 8px 24px rgba(15,15,15,.18);

  --font-display: 'Clash Display', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: #0F0F0F;
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── INVESTOR STRIP (only visible on desktop, outside phone) ── */
.investor-strip {
  display: none;
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  align-items: center;
  gap: 10px;
  z-index: 50;
}
.investor-strip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242,107,31,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.investor-strip .strip-meta {
  color: rgba(255,255,255,.55);
  padding-left: 10px; border-left: 1px solid rgba(255,255,255,.15);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242,107,31,.18); }
  50% { box-shadow: 0 0 0 8px rgba(242,107,31,.05); }
}

/* ── PHONE CONTAINER ── */
.phone {
  position: relative;
  background: var(--bg);
  width: 100%;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 24px);
}

/* desktop: real phone frame */
@media (min-width: 720px) {
  body {
    background: radial-gradient(120% 60% at 50% 0%, #1a1c20 0%, #0a0b0d 60%);
    display: grid;
    place-items: center;
    padding: 80px 20px 40px;
  }
  .investor-strip { display: inline-flex; }
  .phone {
    width: 400px;
    min-height: 0;
    height: min(840px, calc(100vh - 120px));
    border-radius: 44px;
    overflow: hidden auto;
    box-shadow: var(--shadow-phone), 0 0 0 12px #0F0F0F, 0 0 0 13px rgba(255,255,255,.06);
    padding-bottom: 0;
  }
  .phone::before { display: none; }
}

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 80;
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0; min-width: 0; }
.brand-logo-lockup {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.logo-mark-img {
  width: 38px;
  height: 30px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}
.logo-wordmark-img {
  width: 118px;
  height: 31px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}
.logo-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--black);
}
.brand-sub {
  font-size: 9px; font-weight: 700; color: var(--orange);
  letter-spacing: .14em; text-transform: uppercase; margin-top: 3px;
}
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--slate-100); }

/* ── SCREENS ── */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── HERO ── */
.hero {
  position: relative;
  margin: 14px var(--pad) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #111418;
  min-height: 240px;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,16,.92) 0%, rgba(10,12,16,.55) 50%, rgba(10,12,16,.15) 100%),
              linear-gradient(180deg, rgba(10,12,16,0) 0%, rgba(10,12,16,.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 22px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 230px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 220px;
  text-transform: uppercase;
}
.hero-accent { color: var(--yellow); display: inline; }
.hero-sub {
  font-size: 13px; color: rgba(255,255,255,.78);
  max-width: 280px;
  font-weight: 500;
}

/* SEARCH CARD */
.search-card {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.search-input {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  color: var(--slate-500);
}
.search-input input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.search-input input::placeholder { color: var(--slate-500); }

.search-chips {
  display: flex; gap: 6px; align-items: stretch;
  flex-wrap: nowrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  padding: 8px 9px;
  border-radius: 9px;
  font-size: 10.5px; font-weight: 700;
  white-space: nowrap;
  transition: transform .12s ease;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip-dark {
  background: rgba(15,15,15,.78);
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
}
.chip:active { transform: scale(.97); }
.chip svg { opacity: .9; }

.btn-search {
  background: var(--orange);
  color: #fff;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 11px; font-weight: 800;
  white-space: nowrap;
  letter-spacing: .02em;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(242,107,31,.35);
  transition: background .15s ease, transform .12s ease;
}
.btn-search:hover { background: var(--orange-deep); }
.btn-search:active { transform: scale(.97); }

/* ── BLOCK / SECTION ── */
.block { padding: 22px var(--pad) 0; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.block-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.block-link {
  font-size: 12px; font-weight: 700; color: var(--orange);
  padding: 4px 0;
}
.block-meta { font-size: 12px; color: var(--slate-500); font-weight: 500; }

/* ── CATEGORÍAS ── */
.cats-row {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0;
}
.cats-row::-webkit-scrollbar { display: none; }

.cat-item {
  flex: 0 0 calc((100% - 24px) / 4);
  min-width: 0;
  height: 96px;
  background: var(--orange);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(242,107,31,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
  pointer-events: none;
}
.cat-item:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242,107,31,.36); }
.cat-item.active { background: var(--orange-deep); }
.cat-icon {
  width: 62px;
  height: 43px;
  display: grid;
  place-items: center;
}
.cat-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.18));
}
.cat-name {
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  line-height: 1.15;
}

/* ── CARDS ── */
.cards-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 4px;
}
.cards-scroll::-webkit-scrollbar { display: none; }

.cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--border);
}
.cards-scroll .card { flex: 0 0 180px; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.card-img {
  position: relative;
  aspect-ratio: 4/3;
  background: #1a1d22;
  overflow: hidden;
}
.machine-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04);
}
.machine-fallback {
  width: 100%;
  height: 100%;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(15,15,15,0), rgba(15,15,15,.42));
  pointer-events: none;
}
.card-img svg { width: 100%; height: 100%; }
.card-badge {
  position: absolute; top: 8px; left: 8px;
  z-index: 2;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(15,15,15,.78);
  color: #fff;
  backdrop-filter: blur(6px);
}
.card-badge.disp { background: rgba(47,122,61,.92); }
.card-badge.busy { background: rgba(180,58,58,.92); }

.card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.card-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.15;
}
.card-det { font-size: 11px; color: var(--slate-500); line-height: 1.3; }
.card-price {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  color: var(--orange);
  margin-top: 4px;
  letter-spacing: -.01em;
}
.card-price small { font-size: 10.5px; color: var(--slate-500); font-weight: 600; margin-left: 2px; font-family: var(--font-body); }

.btn-card {
  margin-top: 8px;
  background: var(--orange);
  color: #fff;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  transition: background .15s ease;
}
.btn-card:hover { background: var(--orange-deep); }
.btn-card:disabled { background: var(--slate-300); color: #fff; cursor: not-allowed; }

/* ── METRICS ── */
.metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}
.metric-val {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: var(--black);
  letter-spacing: -.02em;
}
.metric-lbl {
  font-size: 10px; color: var(--slate-500);
  text-transform: uppercase; letter-spacing: .06em;
  margin-top: 4px;
  font-weight: 600;
}
.disclaimer {
  font-size: 10.5px; color: var(--slate-500);
  text-align: center; margin-top: 10px;
  font-style: italic;
}

/* ── PAGE HEAD (Explorar/Reservas/Publicar) ── */
.page-head { padding: 22px var(--pad) 4px; }
.page-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.page-sub { font-size: 13px; color: var(--slate-500); margin-top: 4px; }

/* ── FILTERS ── */
.filters {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px var(--pad);
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group:last-child { grid-column: 1 / -1; }
.filter-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--slate-500);
}
.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6F77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}
.filter-select:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
#cards-explorar { padding: 4px var(--pad) 24px; }

/* ── RESERVAS ── */
#reservas-list { padding: 8px var(--pad) 24px; }
.reserva-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.reserva-head {
  background: var(--ink);
  color: #fff;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.reserva-num {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .02em;
}
.reserva-date { font-size: 11px; color: rgba(255,255,255,.7); }
.reserva-body { padding: 14px 16px; }
.reserva-eq {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.reserva-meta { font-size: 12px; color: var(--slate-500); margin-top: 3px; }
.reserva-rows { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.reserva-row {
  display: flex; justify-content: space-between;
  font-size: 12.5px; padding: 3px 0;
  color: var(--slate-700);
}
.reserva-row.total {
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 800;
  color: var(--orange);
  font-family: var(--font-display);
}
.reserva-status {
  display: inline-block; margin-top: 10px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}

.empty {
  text-align: center; padding: 60px 20px; color: var(--slate-500);
}
.empty-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.empty h3 { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.empty p { font-size: 13px; }

/* ── CUENTA ── */
.account-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 24px var(--pad);
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  box-shadow: 0 6px 16px rgba(242,107,31,.32);
}
.account-name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.account-meta { font-size: 12px; color: var(--slate-500); margin-top: 2px; }

.account-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  padding: 0 var(--pad);
}
.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}
.ac-val {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  color: var(--ink); letter-spacing: -.02em;
}
.ac-lbl {
  font-size: 10px; color: var(--slate-500);
  text-transform: uppercase; letter-spacing: .06em;
  margin-top: 4px; font-weight: 600;
}

.cta-block {
  display: flex; align-items: center; justify-content: space-between;
  width: calc(100% - 2 * var(--pad));
  margin: 18px var(--pad) 0;
  background: var(--ink);
  color: #fff;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  text-align: left;
  transition: transform .12s ease;
}
.cta-block:hover { transform: translateY(-1px); }
.cta-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: -.01em;
}
.cta-sub { font-size: 11.5px; color: rgba(255,255,255,.65); margin-top: 2px; }

.account-list {
  margin: 18px var(--pad) 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.account-list li {
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.account-list li:last-child { border-bottom: 0; }
.account-list svg { color: var(--slate-500); }

/* ── PUBLICAR FORM ── */
.publish-form {
  padding: 16px var(--pad) 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-lbl {
  font-size: 11px; font-weight: 700;
  color: var(--slate-700);
  text-transform: uppercase; letter-spacing: .06em;
}
.field-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,107,31,.18);
}
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6F77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px; font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(242,107,31,.32);
  transition: background .15s ease, transform .12s ease;
}
.btn-primary:hover { background: var(--orange-deep); }
.btn-primary:active { transform: scale(.98); }
.btn-large { padding: 15px; font-size: 15px; margin-top: 4px; }

.btn-ghost {
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
}
.btn-ghost:hover { background: var(--slate-200); }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 90;
}
@media (min-width: 720px) {
  .bottom-nav {
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: none;
    left: auto; transform: none;
    border-radius: 0 0 44px 44px;
    background: rgba(255,255,255,.98);
  }
}
.nav-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--slate-500);
  transition: color .15s ease;
  font-size: 10px; font-weight: 700;
  letter-spacing: .03em;
  min-height: 44px;
}
.nav-btn span { line-height: 1; }
.nav-btn.active { color: var(--orange); }
.nav-btn.active svg { stroke-width: 2.4; }

/* ── SHEET (BOTTOM MODAL) ── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,15,.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
.sheet-overlay[hidden] { display: none; }
.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 720px) {
  .sheet-overlay { align-items: center; }
  .sheet { border-radius: 22px; max-width: 420px; }
}

.sheet-handle {
  width: 40px; height: 4px;
  background: var(--slate-300);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.sheet-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--slate-700);
  background: var(--slate-100);
}
.sheet-close:hover { background: var(--slate-200); }
.sheet-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.sheet-eq {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.sheet-eq-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  color: var(--ink); letter-spacing: -.01em;
}
.sheet-eq-meta { font-size: 12px; color: var(--slate-700); margin-top: 3px; }

.sheet-form { display: flex; flex-direction: column; gap: 12px; }

.sheet-summary {
  margin-top: 16px;
  background: var(--slate-100);
  border-radius: 12px;
  padding: 14px;
}
.sum-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 3px 0;
  color: var(--slate-700);
}
.sum-row span:last-child { font-weight: 700; color: var(--ink); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sum-total span:first-child {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .06em;
}
.sum-total span:last-child {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--orange);
  letter-spacing: -.02em;
}

.sheet-actions {
  display: flex; gap: 10px; margin-top: 18px;
}
.sheet-actions .btn-primary { flex: 1; }
.sheet-actions .btn-ghost { flex: 0 0 auto; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 18px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 300;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── A11Y ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* mobile fine-tune */
@media (max-width: 380px) {
  :root { --pad: 14px; }
  .hero-title { font-size: 22px; }
  .cards-grid { gap: 10px; }
  .card-name { font-size: 13px; }
  .chip { font-size: 10px; padding: 7px 8px; }
  .btn-search { font-size: 10px; padding: 7px 10px; }
}
