/* ---------- Fuente Hanson ---------- */
@font-face {
  font-family: "Hanson";
  src: url("../../assets/fonts/Hanson-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   THEMES — variables CSS para light/dark
   ============================================================ */
:root,
[data-theme="dark"] {
  --bg: #000000;
  --surface: #0f0f0f;
  --surface-2: #1a1a1a;
  --ink: #ffffff;
  --ink-soft: #b6b6b6;
  --muted: #6e6e6e;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
  --accent: #d6336c;
  --accent-strong: #ff3b3b;
  --danger: #ff4d4d;
  --tabbar-bg: rgba(20,20,20,0.92);
  --tabbar-border: rgba(255,255,255,0.08);
  --tabbar-overlay-bg: #ffffff;
  --tabbar-overlay-ink: #000000;
  --tabbar-base-ink: #6e6e6e;
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #ececec;
  --ink: #0a0a0a;
  --ink-soft: #555555;
  --muted: #8e8e8e;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.18);
  --accent: #d6336c;
  --accent-strong: #ff3b3b;
  --danger: #d92020;
  --tabbar-bg: rgba(255,255,255,0.92);
  --tabbar-border: rgba(0,0,0,0.08);
  --tabbar-overlay-bg: #000000;
  --tabbar-overlay-ink: #ffffff;
  --tabbar-base-ink: #888888;
}

:root {
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font-display: "Hanson", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

@supports (height: 100dvh) { .app { min-height: 100dvh; } }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  padding:
    calc(20px + env(safe-area-inset-top, 0px))
    18px
    calc(120px + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow-x: hidden;
  animation: fadeIn 0.45s var(--ease) both;
  transition: background 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Morphing liquid text (header) ---------- */
.morph {
  position: relative;
  display: inline-block;
  line-height: 1;
  filter: url(#threshold) blur(0.6px);
  vertical-align: top;
}
.morph__sizer { visibility: hidden; white-space: nowrap; }
.morph__a, .morph__b {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  font: inherit;
  color: inherit;
}

/* ---------- Header ---------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 18px;
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.6px;
}
.app-header__actions { display: flex; gap: 12px; align-items: center; }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--ink);
  border-radius: 50%;
  transition: background 0.25s var(--ease), transform 0.18s var(--ease-bounce);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(0.92); }

/* ---------- Tarjeta de identidad ---------- */
.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 18px;
  background: var(--surface);
  border-radius: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.identity__avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d6336c, #6e2148);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  overflow: hidden;
  border: 3px solid var(--bg);
  box-shadow: 0 6px 18px rgba(214,51,108,0.3);
}
.identity__avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.identity__initials {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
}
.identity__name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.identity__email {
  margin: 2px 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
}
.btn-pill {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s var(--ease-bounce), opacity 0.2s var(--ease);
}
.btn-pill:hover { opacity: 0.88; }
.btn-pill:active { transform: scale(0.96); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.stat__lbl {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Grupos / listas ---------- */
.group { margin-bottom: 22px; }
.group__title {
  margin: 0 0 10px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s var(--ease);
  position: relative;
}
.row + .row {
  border-top: 1px solid var(--line);
}
.row:hover { background: var(--surface-2); }
.row:active { background: var(--surface-2); }

.row__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.row__icon--accent {
  background: linear-gradient(145deg, #d6336c, #6e2148);
  color: #fff;
}
.row__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.row__sub {
  font-size: 12px;
  color: var(--ink-soft);
}
.row__chevron {
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.row--feature .row__title { font-weight: 700; }

/* ---------- Switch (theme toggle) ---------- */
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  flex-shrink: 0;
}
.switch__track {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.switch__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-bounce), background 0.3s var(--ease);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.switch[aria-checked="true"] .switch__knob {
  transform: translateX(22px);
}
.switch__icon { transition: opacity 0.2s var(--ease); }
.switch__icon--sun { display: none; }
[data-theme="light"] .switch__icon--moon { display: none; }
[data-theme="light"] .switch__icon--sun { display: block; }

/* ---------- Logout ---------- */
.logout {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  transition: background 0.2s var(--ease), transform 0.18s var(--ease-bounce);
}
.logout:hover { background: rgba(255,77,77,0.08); }
.logout:active { transform: scale(0.98); }

.version {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin: 8px 0 0;
}

/* ---------- Dialog (logout confirm) ---------- */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.dialog.is-open { pointer-events: auto; opacity: 1; }
.dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dialog__panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  width: calc(100% - 48px);
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 16px;
  text-align: center;
  transition: transform 0.3s var(--ease-bounce);
}
.dialog.is-open .dialog__panel { transform: translate(-50%, -50%) scale(1); }
.dialog__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}
.dialog__text {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.dialog__actions {
  display: flex;
  gap: 10px;
}
.dialog__btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s var(--ease-bounce), opacity 0.2s var(--ease);
}
.dialog__btn--ghost {
  background: var(--surface-2);
  color: var(--ink);
}
.dialog__btn--danger {
  background: var(--danger);
  color: #fff;
}
.dialog__btn:active { transform: scale(0.96); }

/* ============================================================
   SUBPÁGINAS DE PERFIL
   ============================================================ */
.subheader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 18px;
}
.back-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), transform 0.18s var(--ease-bounce);
  flex-shrink: 0;
}
.back-btn:hover { background: var(--surface-2); }
.back-btn:active { transform: scale(0.92); }
.sub-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.3px;
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.3px;
  padding-left: 4px;
}
.field__input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.field__input:focus { border-color: var(--ink-soft); }
.field__input::placeholder { color: var(--muted); }

.btn-primary-full {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  transition: opacity 0.2s var(--ease), transform 0.18s var(--ease-bounce);
}
.btn-primary-full:hover { opacity: 0.88; }
.btn-primary-full:active { transform: scale(0.98); }

.btn-outline-full {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.18s var(--ease-bounce);
}
.btn-outline-full:hover { background: var(--surface); }
.btn-outline-full:active { transform: scale(0.98); }

/* ---------- Address / generic item ---------- */
.item-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.2s var(--ease);
}
.item-card:hover { background: var(--surface-2); }
.item-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.item-card__body { flex: 1; min-width: 0; }
.item-card__title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-card__text {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.item-card__menu {
  background: transparent;
  color: var(--muted);
  padding: 4px;
  transition: color 0.2s var(--ease);
}
.item-card__menu:hover { color: var(--ink); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
}

/* ---------- Tarjeta de crédito visual ---------- */
.credit-card {
  position: relative;
  border-radius: 20px;
  padding: 22px 20px 18px;
  margin-bottom: 12px;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
  cursor: pointer;
}
.credit-card:hover { transform: translateY(-2px); }
.credit-card--visa { background: linear-gradient(135deg, #1a3a8a 0%, #0a1f4e 100%); }
.credit-card--master { background: linear-gradient(135deg, #2a2a2a 0%, #050505 100%); }
.credit-card--amex { background: linear-gradient(135deg, #006fcf 0%, #003a78 100%); }
.credit-card__brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.5px;
  align-self: flex-end;
}
.credit-card__number {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 17px;
  letter-spacing: 2.5px;
}
.credit-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 0.5px;
}
.credit-card__row strong { font-size: 13px; letter-spacing: 0.8px; text-transform: none; }

/* ---------- Order card ---------- */
.order-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  transition: background 0.2s var(--ease);
}
.order-card:hover { background: var(--surface-2); }
.order-card__img {
  width: 60px; height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.order-card__body { flex: 1; min-width: 0; }
.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.order-card__id {
  font-size: 11px;
  color: var(--muted);
  font-family: "SF Mono", monospace;
}
.order-card__title {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.order-card__date { font-size: 12px; color: var(--ink-soft); }
.order-card__price { font-size: 14px; font-weight: 700; color: var(--ink); }
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-badge--shipped { background: rgba(50,150,255,0.18); color: #5cb0ff; }
.status-badge--delivered { background: rgba(50,200,100,0.18); color: #4ed47e; }
.status-badge--pending { background: rgba(255,180,50,0.18); color: #ffb432; }
.status-badge--cancelled { background: rgba(255,80,80,0.18); color: #ff8080; }

/* ---------- Toggle row (notificaciones) ---------- */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .switch { margin-left: auto; }
.toggle-row__body { flex: 1; min-width: 0; }
.toggle-row__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.toggle-row__sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.toggle-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

/* Switch reusable: trabaja con aria-checked como el del tema */
.switch[aria-checked="true"] .switch__track { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .switch__knob   { background: #fff; color: var(--accent); }

/* ---------- Radio list (idioma) ---------- */
.radio-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.radio-row:last-child { border-bottom: none; }
.radio-row:hover { background: var(--surface-2); }
.radio-row__flag { font-size: 22px; line-height: 1; }
.radio-row__lbl { flex: 1; text-align: left; font-size: 14px; font-weight: 600; }
.radio-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.2s var(--ease);
  flex-shrink: 0;
}
.radio-row.is-active .radio-circle {
  border-color: var(--ink);
}
.radio-row.is-active .radio-circle::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  animation: pop 0.25s var(--ease-bounce) both;
}
@keyframes pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ---------- Accordion (ayuda) ---------- */
.accordion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s var(--ease);
}
.acc-trigger:hover { background: var(--surface-2); }
.acc-icon {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  color: var(--muted);
}
.acc-item.is-open .acc-icon { transform: rotate(180deg); }
.acc-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.acc-item.is-open .acc-content { grid-template-rows: 1fr; }
.acc-content > div {
  overflow: hidden;
  padding: 0 14px;
}
.acc-item.is-open .acc-content > div { padding: 0 14px 16px; }
.acc-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Empresa upsell ---------- */
.upsell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 22px 22px;
  text-align: center;
  margin-bottom: 16px;
}
.upsell__icon {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 28px;
  background: linear-gradient(145deg, #d6336c, #6e2148);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 12px 28px rgba(214,51,108,0.35);
}
.upsell__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.upsell__text {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.benefits {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.benefit__check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(214,51,108,0.15);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.benefit__body { flex: 1; }
.benefit__title { font-size: 13px; font-weight: 700; color: var(--ink); }
.benefit__text { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }

/* ---------- Tabbar (themed) ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 28px);
  max-width: 402px;
  background: var(--tabbar-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--tabbar-border);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.3);
  z-index: 100;
  will-change: transform;
  animation: dropIn 0.45s var(--ease) both 0.15s;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
@keyframes dropIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.tabbar__base { position: relative; display: flex; width: 100%; z-index: 1; }
.tabbar__overlay {
  position: absolute;
  inset: 6px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 75% 0 0 round 999px);
  transition: clip-path 0.42s cubic-bezier(0.32, 0.72, 0.24, 1);
}
.tabbar__overlay-inner {
  display: flex;
  width: 100%;
  height: 100%;
  background: var(--tabbar-overlay-bg);
  border-radius: 999px;
  transition: background 0.3s var(--ease);
}
.tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--tabbar-base-ink);
  padding: 8px 4px;
  border-radius: 999px;
  background: transparent;
  transition: transform 0.18s var(--ease-bounce);
}
.tab span { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; }
.tabbar__overlay .tab { color: var(--tabbar-overlay-ink); }
.tab:active { transform: scale(0.93); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
