/* =============================================================
   YAXXK SHOP — components.css
   Botones, Cards, Forms, Modales, Badges, Sidebar, Header
   ============================================================= */

/* ─── BOTONES ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.btn:hover::after { opacity: 0.1; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 24px rgba(37,99,235,0.4); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-10); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--warning); color: #fff; }

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-round { border-radius: var(--radius-full); }
.btn-icon { padding: 0.625rem; aspect-ratio: 1; border-radius: var(--radius-md); }

/* Botón con gradiente */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-gradient:hover { box-shadow: 0 6px 30px rgba(37,99,235,0.5); transform: translateY(-1px); }

/* Loading spinner en botón */
.btn-loading { pointer-events: none; }
.btn-loading::before {
  content: '';
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ─── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-md) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-primary); }

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
}
[data-theme="dark"] .card-glass {
  background: rgba(17,24,39,0.85);
  border-color: rgba(255,255,255,0.08);
}

.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Product Card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-md) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-primary);
}
.product-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary), var(--surface-2));
  position: relative;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-lg) var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }
.product-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-10), var(--bg-secondary));
}
.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}
.product-card__fav {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-size: 1.1rem;
}
.product-card__fav:hover { transform: scale(1.15); border-color: var(--danger); }
.product-card__fav.active { color: var(--danger); }
.product-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-card__category { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.product-card__name { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.product-card__desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--warning); }
.product-card__footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); }
.product-card__price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

/* ─── FORMS ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
  width: 100%;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-10); }
.form-input:hover:not(:focus) { border-color: var(--border-strong); }
.form-input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-error { font-size: 0.78rem; color: var(--danger); display: flex; align-items: center; gap: 0.3rem; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* Field con icono */
.input-with-icon { position: relative; }
.input-with-icon .input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-with-icon .form-input { padding-left: 2.75rem; }
.input-with-icon .input-icon-right { left: auto; right: 1rem; }
.input-with-icon .form-input.has-right-icon { padding-right: 2.75rem; }

/* ─── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-primary { background: var(--primary-10); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-ghost   { background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-featured { background: linear-gradient(135deg, #F59E0B, #F97316); color: #fff; }

/* ─── AVATAR ──────────────────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar-md  { width: 40px; height: 40px; font-size: 1rem; }
.avatar-lg  { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-xl  { width: 80px; height: 80px; font-size: 1.75rem; }

/* ─── TABS ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0.25rem; background: var(--surface-2); padding: 0.25rem; border-radius: var(--radius-md); border: 1px solid var(--border); }
.tab-btn {
  flex: 1; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600;
  border-radius: calc(var(--radius-md) - 2px); color: var(--text-secondary);
  transition: all var(--duration) var(--ease); cursor: pointer; white-space: nowrap;
}
.tab-btn.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-btn:hover:not(.active) { color: var(--text); }

/* ─── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s var(--ease);
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.25s var(--ease);
}
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; transition: all var(--duration) var(--ease); font-size: 1.25rem; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }
.modal-lg { max-width: 700px; }
.modal-xl { max-width: 900px; }

/* ─── HEADER ──────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 500;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1rem;
  box-shadow: var(--shadow-primary);
}
.header__logo-text { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.header__logo-text span { color: var(--primary); }
.header__spacer { flex: 1; }
.header__search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.header__search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-size: 0.875rem;
  transition: all var(--duration) var(--ease);
}
.header__search-input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-10); }
.header__search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }
.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.header__balance {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--primary-10);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.header__balance:hover { background: var(--primary-20); }
.header__btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  font-size: 1.1rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
}
.header__btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.hamburger { width: 38px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; border-radius: var(--radius-md); transition: background var(--duration) var(--ease); }
.hamburger:hover { background: var(--surface-2); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--duration-md) var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 800;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform var(--duration-md) var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar.open { transform: translateX(0); }
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 799;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  display: none;
  animation: fadeIn 0.2s var(--ease);
}
.sidebar-overlay.visible { display: block; }
.sidebar__header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.sidebar__close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 1.2rem; transition: all var(--duration) var(--ease); }
.sidebar__close:hover { background: var(--surface-2); color: var(--text); }
.sidebar__user { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.875rem; }
.sidebar__user-info { flex: 1; min-width: 0; }
.sidebar__user-name { font-weight: 700; font-size: 0.95rem; truncate; }
.sidebar__user-balance { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar__nav-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  border: 1px solid transparent;
}
.sidebar__nav-item:hover { background: var(--primary-10); color: var(--primary); border-color: var(--border-primary); }
.sidebar__nav-item.active { background: var(--primary-10); color: var(--primary); border-color: var(--border-primary); }
.sidebar__nav-item .nav-icon { font-size: 1.2rem; flex-shrink: 0; }
.sidebar__nav-sep { height: 1px; background: var(--border); margin: 0.5rem 0; }
.sidebar__footer { padding: 1rem 0.75rem; border-top: 1px solid var(--border); }

/* ─── STAT CARD ───────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-md) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-card__body { flex: 1; }
.stat-card__label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.stat-card__value { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-card__change { font-size: 0.78rem; font-weight: 600; margin-top: 0.25rem; }
.stat-card__change.up { color: var(--success); }
.stat-card__change.down { color: var(--danger); }

/* ─── TABLE ───────────────────────────────────────────────────── */
.table-wrapper { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { padding: 0.875rem 1rem; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--surface-2); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--duration) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }

/* ─── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.empty-state__icon { font-size: 4rem; line-height: 1; }
.empty-state__title { font-size: 1.2rem; font-weight: 700; }
.empty-state__desc { color: var(--text-secondary); font-size: 0.9rem; max-width: 320px; }

/* ─── TOAST NOTIFICATIONS ─────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 300px; max-width: 420px;
  animation: slideInRight 0.35s var(--ease);
  pointer-events: auto;
  backdrop-filter: blur(12px);
}
.toast.removing { animation: slideInRight 0.3s var(--ease) reverse; }
.toast__icon { font-size: 1.3rem; flex-shrink: 0; }
.toast__body { flex: 1; }
.toast__title { font-size: 0.875rem; font-weight: 700; }
.toast__msg { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.1rem; }
.toast__close { color: var(--text-muted); cursor: pointer; font-size: 1.1rem; flex-shrink: 0; padding: 0.125rem; border-radius: var(--radius-sm); transition: color var(--duration) var(--ease); }
.toast__close:hover { color: var(--text); }
.toast-success { border-left: 4px solid var(--success); }
.toast-danger  { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info    { border-left: 4px solid var(--info); }
.toast-primary { border-left: 4px solid var(--primary); }

/* ─── FLOATING ACTION BUTTONS ─────────────────────────────────── */
.fab-container { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 600; display: flex; flex-direction: column; gap: 0.75rem; }
.fab {
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
  text-decoration: none;
}
.fab:hover { transform: scale(1.12) translateY(-2px); box-shadow: var(--shadow-xl); }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-instagram { background: linear-gradient(135deg,#405DE6,#5851DB,#833AB4,#C13584,#E1306C,#FD1D1D,#F56040,#F77737,#FCAF45,#FFDC80); color: #fff; }

/* ─── PROGRESS BAR ─────────────────────────────────────────────── */
.progress { height: 8px; background: var(--surface-2); border-radius: var(--radius-full); overflow: hidden; border: 1px solid var(--border); }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: var(--radius-full); transition: width 0.5s var(--ease); }

/* ─── DIVIDER ──────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: 0.8rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── STARS ────────────────────────────────────────────────────── */
.stars { display: flex; gap: 2px; }
.star { font-size: 1rem; color: var(--border-strong); cursor: pointer; transition: color var(--duration) var(--ease); }
.star.filled, .star:hover { color: var(--warning); }

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header__search { display: none; }
  .toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast { min-width: unset; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; }
}
