/* Aura Barbería — global styles */
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 600px at 50% -10%, #2a3a33 0%, #121614 55%, #0c0e0d 100%);
  overscroll-behavior: none;
  color: #1a1c1b;
}

/* ---------- Device frame ---------- */
#device {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: #f9f9f6;
  overflow: hidden;
  transform: translateZ(0); /* containing block for position:fixed descendants */
}
#scroller {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#screen { min-height: 100%; position: relative; }

@media (min-width: 520px) {
  body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
  #device {
    width: 400px;
    height: min(860px, calc(100dvh - 48px));
    border-radius: 44px;
    box-shadow: 0 0 0 10px #0b0d0c, 0 0 0 11px #2b2f2d, 0 40px 80px -20px rgba(0,0,0,.65);
  }
}

/* Viewport-height utilities inside the device refer to the device, not the window */
#scroller .min-h-screen { min-height: 100%; }
#scroller .h-screen { height: 100%; }
#screen > .h-full { min-height: 100%; }

/* Safe areas */
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Scrollbars hidden everywhere */
*::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  line-height: 1;
}
.fill-1 { font-variation-settings: 'FILL' 1 !important; }

/* No abrasive focus rings */
*:focus, *:focus-visible { outline: none; }
button { -webkit-tap-highlight-color: transparent; }

/* Screen transition */
.screen-enter > * { animation: screenIn .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* fixed bars should not slide */
.screen-enter > header.fixed, .screen-enter > nav.fixed, .screen-enter > .fixed { animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Toasts */
#toast-host {
  position: absolute; left: 0; right: 0; bottom: 96px; z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
  padding: 0 20px;
}
.toast { animation: toastIn .25s ease both; }
.toast-out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
