:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --panel: rgba(12, 12, 12, 0.88);
  --panel-border: rgba(255, 26, 26, 0.12);
  --panel-strong: rgba(18, 18, 18, 0.96);
  --red: #ff1a1a;
  --red-dark: #b30000;
  --red-soft: rgba(255, 26, 26, 0.18);
  --red-glow: rgba(255, 26, 26, 0.45);
  --red-dim: #8b0000;
  --online: #ff3333;
  --online-soft: rgba(255, 51, 51, 0.2);
  --offline: #3a3a3a;
  --offline-soft: rgba(80, 80, 80, 0.25);
  --text: #f5f5f5;
  --muted: #888;
  --muted-2: #555;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  position: relative;
}

/* --- Background --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float-orb 14s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.35), transparent 70%);
}

.orb-b {
  width: 220px;
  height: 220px;
  top: 35%;
  right: -70px;
  background: radial-gradient(circle, rgba(179, 0, 0, 0.35), transparent 70%);
  animation-delay: -4s;
}

.orb-c {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.15), transparent 70%);
  animation-delay: -8s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.06); }
}

/* --- Screens --- */
.screen {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding:
    max(18px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  max-width: 520px;
  margin: 0 auto;
}

.screen.active {
  display: flex;
  flex-direction: column;
  animation: screen-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- LOGIN --- */
#screen-login {
  justify-content: center;
}

.login-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-card {
  text-align: center;
  padding: 8px 10px 0;
}

.logo-orbit {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, var(--red), var(--red-dark), #1a1a1a);
  box-shadow: 0 0 40px var(--red-glow);
  animation: pulse-logo 3s ease-in-out infinite;
}

.logo-core {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #141414 0%, #080808 100%);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--red);
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px var(--red-glow); }
  50% { transform: scale(1.03); box-shadow: 0 0 55px rgba(255, 26, 26, 0.55); }
}

.brand-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.brand-title {
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.panel-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid transparent;
}

.panel-tabs .tab.active {
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.28), rgba(139, 0, 0, 0.35));
  color: #fff;
  border-color: rgba(255, 26, 26, 0.25);
}

.panel-tabs .tab.ghost {
  opacity: 0.65;
}

.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.field-wrap:focus-within {
  border-color: rgba(255, 26, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.12);
  transform: translateY(-1px);
}

.field-icon {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted-2);
  flex-shrink: 0;
}

.field-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 0;
  outline: none;
}

.field-wrap input::placeholder {
  color: #5f5f78;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff2222 0%, #cc0000 52%, #8b0000 100%);
  box-shadow: 0 12px 32px var(--red-glow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-error {
  color: #ff8888;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 26, 26, 0.1);
  border: 1px solid rgba(255, 26, 26, 0.28);
}

.login-foot {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.45;
  padding-top: 2px;
}

/* --- DASHBOARD HEADER --- */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.user-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--red);
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.22), rgba(139, 0, 0, 0.35));
  border: 1px solid rgba(255, 26, 26, 0.25);
  flex-shrink: 0;
}

.user-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.btn-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-pill:active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.07);
}

/* --- STATUS CARD --- */
.status-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.92));
  border: 1px solid rgba(255, 26, 26, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 26, 26, 0.06), transparent);
  pointer-events: none;
}

.status-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  position: relative;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s;
}

.status-dot.online {
  background: var(--online);
  box-shadow: 0 0 0 6px var(--online-soft), 0 0 24px rgba(255, 51, 51, 0.55);
  animation: heartbeat 1.8s ease-in-out infinite;
}

.status-dot.offline {
  background: var(--offline);
  box-shadow: 0 0 0 6px var(--offline-soft), 0 0 18px rgba(80, 80, 80, 0.35);
}

.status-card:has(.status-dot.online) {
  border-color: rgba(255, 51, 51, 0.35);
}

.status-card:has(.status-dot.online) .status-ring {
  animation: ring-spin 4s linear infinite;
  background: conic-gradient(from 0deg, rgba(255, 51, 51, 0.18), transparent, rgba(255, 26, 26, 0.35), transparent);
}

.status-card:has(.status-dot.online) .status-badge {
  opacity: 1;
  color: #ff8888;
  border-color: rgba(255, 51, 51, 0.4);
  background: rgba(255, 26, 26, 0.14);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.status-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 2px 0;
}

.status-hint {
  font-size: 0.76rem;
  color: var(--muted-2);
  line-height: 1.35;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  opacity: 0.45;
}

/* --- SECTIONS --- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.section-chip.accent {
  color: #ff8888;
  border-color: rgba(255, 26, 26, 0.35);
  background: rgba(255, 26, 26, 0.12);
}

/* --- COMMAND GRID (botvendas card style) --- */
.command-grid,
.grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.cmd-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.cmd-btn::after {
  content: "";
  position: absolute;
  inset: auto -30% -120% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.12), transparent 70%);
  pointer-events: none;
}

.cmd-btn:active:not(:disabled) {
  transform: scale(0.985);
  border-color: rgba(255, 26, 26, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cmd-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.cmd-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 26, 26, 0.12);
  border: 1px solid rgba(255, 26, 26, 0.28);
  color: #ffaaaa;
  flex-shrink: 0;
}

.cmd-btn.accent .cmd-icon {
  background: rgba(255, 26, 26, 0.2);
  border-color: rgba(255, 26, 26, 0.4);
  color: #ffcccc;
}

.cmd-icon.warn {
  background: rgba(255, 26, 26, 0.25);
  border-color: rgba(255, 26, 26, 0.5);
  color: #fff;
  font-size: 1rem;
}

.cmd-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmd-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cmd-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.cmd-go {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted-2);
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}

.cmd-btn:active:not(:disabled) .cmd-go {
  transform: translateX(3px);
  color: #fff;
}

.cmd-btn.danger {
  border-color: rgba(255, 26, 26, 0.35);
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.14), rgba(255, 26, 26, 0.04));
}

.cmd-btn.danger .cmd-title {
  color: #ffaaaa;
}

.cmd-btn.wide {
  grid-column: 1 / -1;
}

.grid-trio {
  margin-bottom: 10px;
}

.dash-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-2);
  padding: 8px 0 4px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* --- TOAST --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 26, 26, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.ok {
  border-color: rgba(255, 51, 51, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 26, 26, 0.18);
}

.toast.fail {
  border-color: rgba(255, 26, 26, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 26, 26, 0.25);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* --- Responsive polish --- */
@media (min-width: 420px) {
  .command-grid,
  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cmd-btn.wide,
  .grid-trio .cmd-btn.wide {
    grid-column: 1 / -1;
  }
}

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

/* --- MODAL CONFIRMACAO --- */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in 0.25s ease;
}

.modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 24px 20px 20px;
  border-radius: 22px 22px 18px 18px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
  border: 1px solid rgba(255, 26, 26, 0.2);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 26, 26, 0.08);
  text-align: center;
  animation: modal-slide-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 26, 26, 0.2);
  border: 2px solid rgba(255, 26, 26, 0.45);
  box-shadow: 0 0 32px rgba(255, 26, 26, 0.25);
  animation: modal-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-icon.success {
  color: #fff;
  background: linear-gradient(135deg, #ff2222, #b30000);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(255, 26, 26, 0.45);
}

.modal-icon.fail {
  font-size: 1.25rem;
  background: rgba(60, 60, 60, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.modal-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.modal-sheet h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.modal-warn {
  font-size: 0.8rem;
  color: #ff8888;
  line-height: 1.4;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 26, 26, 0.1);
  border: 1px solid rgba(255, 26, 26, 0.25);
}

.modal-warn[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.modal-actions.single {
  margin-top: 10px;
}

.modal-actions.single .btn-confirm {
  width: 100%;
}

.btn-modal {
  flex: 1;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-modal:active {
  transform: scale(0.97);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.btn-confirm {
  color: #fff;
  background: linear-gradient(135deg, #ff2222 0%, #cc0000 52%, #8b0000 100%);
  box-shadow: 0 8px 24px var(--red-glow);
}

.modal.danger .modal-icon {
  color: #fff;
  background: rgba(255, 26, 26, 0.28);
  border-color: rgba(255, 26, 26, 0.55);
  box-shadow: 0 0 32px rgba(255, 26, 26, 0.3);
}

.modal.danger .modal-sheet {
  border-color: rgba(255, 26, 26, 0.4);
}

.modal.danger .btn-confirm {
  background: linear-gradient(135deg, #ff3333 0%, #cc0000 45%, #660000 100%);
  box-shadow: 0 8px 28px rgba(255, 26, 26, 0.5);
}

.modal.fail .modal-kicker {
  color: var(--muted);
}

.modal.fail .modal-sheet {
  border-color: rgba(255, 255, 255, 0.1);
}

@keyframes modal-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 480px) {
  .modal {
    align-items: center;
  }

  .modal-sheet {
    border-radius: var(--radius);
  }
}
