/* ═══════════════════════════════════════════════════════
   MODx Level UP — Premium Purple UI
   Mobile + Desktop · No zoom · No duplicate nav
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg:         #08080d;
  --bg-2:       #0b0b12;
  --surface:    #101018;
  --surface-2:  #16161f;
  --surface-3:  #1c1c28;
  --line:       #1f1f2b;
  --line-2:     #2a2a3a;
  --text:       #ffffff;
  --text-2:     #9296a8;
  --text-3:     #565a6e;

  --violet:     #8b5cf6;
  --violet-2:   #a855f7;
  --indigo:     #6366f1;
  --blue:       #3b82f6;

  --green:      #10b981;
  --yellow:     #f59e0b;
  --red:        #ef4444;
  --pink:       #ec4899;

  --radius:     16px;
  --radius-sm:  12px;
  --radius-lg:  22px;
  --shadow:     0 20px 60px rgba(0,0,0,.55);
  --shadow-sm:  0 8px 24px rgba(0,0,0,.4);
  --shadow-glow:0 0 40px rgba(139,92,246,.25);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 15px;
  position: relative;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% -10%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(ellipse 800px 400px at 90% 110%, rgba(99,102,241,.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; touch-action: manipulation; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════════ Container ═══════════════════ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}
@media (min-width: 720px) { .container { padding: 26px 28px 60px; } }

/* ═══════════════════ Topbar ═══════════════════ */
.topbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,13,.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  min-height: 60px;
}
@media (min-width: 720px) { .topbar-inner { padding: 14px 26px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.02em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 720px) { .brand { font-size: 17px; } }

.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 0 16px rgba(139,92,246,.7);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.92); }
}

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  letter-spacing: -.02em;
  box-shadow: 0 0 0 2px rgba(139,92,246,.2);
  flex-shrink: 0;
}

/* ═══════════════════ Bottom nav (MOBILE ONLY) ═══════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,13,.9);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  gap: 2px;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  transition: color .2s, transform .15s;
  border-radius: 12px;
  position: relative;
  min-height: 52px;
}
.bottom-nav a.active { color: #fff; }
.bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 24px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
}
.bottom-nav a:active { transform: scale(.94); }
.bottom-nav svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* Desktop pe bottom nav HIDE */
@media (min-width: 901px) {
  .bottom-nav { display: none !important; }
  body { padding-bottom: 40px; }
}

/* ═══════════════════ Layout ═══════════════════ */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px 60px;
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 16px; padding: 14px 14px 30px; }
}

/* ═══════════════════ Sidebar (DESKTOP ONLY) ═══════════════════ */
.sidebar {
  position: sticky;
  top: 76px;
  height: fit-content;
}
/* Mobile pe sidebar HIDE (with !important to prevent override) */
@media (max-width: 1000px) {
  .sidebar { display: none !important; }
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  transition: all .18s;
  white-space: nowrap;
  position: relative;
}
.sidebar-nav a:hover { background: var(--surface-2); color: #fff; }
.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(168,85,247,.08));
  color: #fff;
  border: 1px solid rgba(139,92,246,.28);
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--violet), var(--violet-2));
  box-shadow: 0 0 12px rgba(139,92,246,.6);
}

/* ═══════════════════ Cards ═══════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  animation: fadeUp .5s cubic-bezier(.16,.84,.44,1) both;
}
@media (min-width: 720px) { .card { padding: 22px; } }

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.card.no-hover:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.stagger > * { animation: fadeUp .55s cubic-bezier(.16,.84,.44,1) both; }
.stagger > *:nth-child(1) { animation-delay: .04s; }
.stagger > *:nth-child(2) { animation-delay: .09s; }
.stagger > *:nth-child(3) { animation-delay: .14s; }
.stagger > *:nth-child(4) { animation-delay: .19s; }
.stagger > *:nth-child(5) { animation-delay: .24s; }
.stagger > *:nth-child(6) { animation-delay: .29s; }

/* ═══════════════════ Buttons ═══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  transition: transform .18s, box-shadow .25s, background .2s, border-color .2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(.97) !important; }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(139,92,246,.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(139,92,246,.42);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .6s cubic-bezier(.16,.84,.44,1);
}
.btn-primary:hover::before { left: 140%; }

.btn-white {
  background: #fff;
  color: #000;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,.2); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  background: var(--surface-2);
}

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(239,68,68,.35); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; border-radius: 10px; min-height: 36px; }
.btn-lg { padding: 15px 28px; font-size: 15px; min-height: 52px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-icon { padding: 0; width: 38px; height: 38px; min-height: 0; border-radius: 11px; }

/* ═══════════════════ Inputs (16px = no iOS zoom) ═══════════════════ */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.input, select.input, textarea.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;   /* ⚠️ iOS zoom prevent */
  font-weight: 500;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
  min-height: 50px;
  -webkit-appearance: none;
  appearance: none;
}
@media (min-width: 720px) {
  .input, select.input, textarea.input { font-size: 14px; min-height: 46px; }
}
.input:focus {
  border-color: var(--violet);
  background: #18181f;
  box-shadow: 0 0 0 4px rgba(139,92,246,.12);
}
.input::placeholder { color: var(--text-3); }

select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239296a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

/* ═══════════════════ Headings ═══════════════════ */
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: 24px; margin-bottom: 8px; }
h2 { font-size: 20px; margin-bottom: 8px; }
h3 { font-size: 16px; margin-bottom: 6px; }
@media (min-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  h3 { font-size: 17px; }
}
.subtitle { color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* ═══════════════════ Badges ═══════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-violet { background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.3); }
.badge-green  { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.badge-yellow { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-red    { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.badge-blue   { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.badge-muted  { background: rgba(146,150,168,.08);color: var(--text-2); border: 1px solid rgba(146,150,168,.2); }

/* ═══════════════════ Grid ═══════════════════ */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 720px) {
  .grid { gap: 14px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 340px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════ Stat cards (purple gradient icon) ═══════════════════ */
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.stat:hover { border-color: var(--line-2); transform: translateY(-2px); }

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.stat-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(168,85,247,.08));
  border: 1px solid rgba(139,92,246,.22);
}
.stat-trend {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(16,185,129,.1);
  color: #34d399;
}
.stat-trend.down { background: rgba(239,68,68,.1); color: #f87171; }

.stat-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.1;
}
@media (min-width: 720px) { .stat-value { font-size: 26px; } }
.stat-sub { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }

@media (max-width: 720px) {
  .stat { padding: 14px; border-radius: 14px; }
  .stat-value { font-size: 20px; }
  .stat-icon { width: 30px; height: 30px; font-size: 14px; }
}

/* ═══════════════════ Chart wrapper ═══════════════════ */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 14px;
  position: relative;
  overflow: hidden;
}
.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.chart-title {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -.02em;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.chart-body {
  position: relative;
  height: 220px;
}
@media (min-width: 720px) { .chart-body { height: 260px; } }

/* ═══════════════════ Activity feed ═══════════════════ */
.feed { max-height: 300px; overflow-y: auto; }
.feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: none; }
.feed-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--violet);
  box-shadow: 0 0 8px rgba(139,92,246,.5);
}
.feed-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,.5); }
.feed-dot.red   { background: var(--red);   box-shadow: 0 0 8px rgba(239,68,68,.5); }
.feed-dot.yellow{ background: var(--yellow); box-shadow: 0 0 8px rgba(245,158,11,.5); }
.feed-time { font-size: 11px; color: var(--text-3); }
.feed-msg { font-size: 12.5px; color: var(--text); margin-top: 2px; line-height: 1.4; }

/* ═══════════════════ Progress ═══════════════════ */
.progress {
  height: 7px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
  border-radius: 100px;
  transition: width .6s cubic-bezier(.16,.84,.44,1);
  box-shadow: 0 0 12px rgba(139,92,246,.4);
}

/* ═══════════════════ Captcha ═══════════════════ */
.cap-box {
  padding: 14px 12px;
  min-height: 90px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-box .cf-turnstile {
  width: 100%;
  max-width: 300px;
  display: flex;
  justify-content: center;
}
@media (max-width: 400px) {
  .cap-box { padding: 12px 8px; }
  .cap-box .cf-turnstile { transform: scale(0.92); transform-origin: center; }
}

/* ═══════════════════ Alerts ═══════════════════ */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid;
  line-height: 1.5;
}
.alert-error { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.28); color: #fca5a5; }
.alert-ok    { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.28); color: #6ee7b7; }
.alert-info  { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.28); color: #c4b5fd; }

/* ═══════════════════ Toast ═══════════════════ */
#toast {
  position: fixed;
  bottom: calc(110px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c1c28;
  border: 1px solid var(--line-2);
  color: #fff;
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.16,.84,.44,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  max-width: calc(100vw - 32px);
  text-align: center;
}
@media (min-width: 901px) { #toast { bottom: 40px; } }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { border-color: rgba(239,68,68,.5); background: #2a1013; }

/* ═══════════════════ Spinner ═══════════════════ */
.spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════ Tables ═══════════════════ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  font-weight: 800;
  white-space: nowrap;
}
td { color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }
code {
  font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 12px;
  background: var(--surface-3);
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--text-2);
}

/* ═══════════════════ Misc ═══════════════════ */
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.mt-1 { margin-top: 6px; }  .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 22px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; }
.wrap { flex-wrap: wrap; }

.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ═══════════════════ Modal ═══════════════════ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .3s cubic-bezier(.16,.84,.44,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══════════════════ iOS safe areas ═══════════════════ */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

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