/* =====================================================================
   شركة النعال التجارية — Design System v3
   Light by default · Navy brand · Calm, corporate surfaces
   ===================================================================== */
:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-2: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --surface-3: #e7eaf0;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --primary: #1f3c88;
  --primary-hi: #18306f;
  --primary-soft: #eaf0fb;
  --sky: #2453c7;
  --navy: #0b1b3f;
  --navy-2: #12285c;
  --navy-3: #1f3c88;
  --green: #067647;
  --green-bg: #ecfdf3;
  --amber: #b54708;
  --amber-bg: #fffaeb;
  --red: #b42318;
  --red-bg: #fef3f2;
  --gold: #b88a1b;
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 20px -6px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --glow: none;
  --ring: 0 0 0 4px rgba(31, 60, 136, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-2: #0e131d;
  --surface: #121824;
  --surface-2: #171e2c;
  --surface-3: #202939;
  --line: #222b3b;
  --line-2: #2e3a4f;
  --text: #f2f4f7;
  --text-2: #cdd4df;
  --muted: #8d97a8;
  --primary: #3a63d6;
  --primary-hi: #4b73e6;
  --primary-soft: rgba(58, 99, 214, .16);
  --sky: #8fb0ff;
  --green: #47cd89;
  --green-bg: rgba(71, 205, 137, .12);
  --amber: #fdb022;
  --amber-bg: rgba(253, 176, 34, .12);
  --red: #f97066;
  --red-bg: rgba(249, 112, 102, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .65);
  --ring: 0 0 0 4px rgba(58, 99, 214, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); background-clip: padding-box; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.65; font-size: 15px;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
td.num, th.num { display: table-cell; }
.muted { color: var(--muted); }
.sky { color: var(--sky); }
.green { color: var(--green); }
.hidden { display: none !important; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 26px; height: 26px; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.01em; }

/* ---------------------------------------------------- layout */
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 16px; }
.section-title h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0; font-weight: 700; }
.section-title > a { display: inline-flex; align-items: center; gap: 4px; color: var(--sky); font-size: 14px; font-weight: 600; }
.section-title > a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: relative; box-shadow: var(--shadow-sm); }
.card.flat { background: var(--surface-2); box-shadow: none; }
.card.glass { background: var(--surface); }
.card.navy, .navy { background: var(--navy); color: #fff; border-color: transparent; overflow: hidden;
  --text: #fff; --text-2: #d5dcec; --muted: #a3b0cc; --sky: #a9c1ff; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .2);
  --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .08); --surface-3: rgba(255, 255, 255, .14); }

/* ---------------------------------------------------- buttons */
.btn {
  --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  position: relative; white-space: nowrap; user-select: none; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); }
.btn:focus-visible { outline: 0; box-shadow: var(--ring); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hi); border-color: var(--primary-hi); }
.btn-white { background: #fff; border-color: #fff; color: var(--navy); }
.btn-white:hover { background: #eef2fb; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--sky); box-shadow: none; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-danger { background: var(--red-bg); border-color: transparent; color: var(--red); box-shadow: none; }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn-success { background: var(--green-bg); border-color: transparent; color: var(--green); box-shadow: none; }
.btn-lg { --h: 50px; font-size: 16px; padding: 0 26px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; margin-inline-start: 6px; }
.ripple { display: none; }

/* ---------------------------------------------------- forms */
.field { display: block; }
.field > label, .label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.input, .select, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line-2); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; box-shadow: var(--shadow-sm);
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder { color: #98a2b3; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: var(--ring); }
.select { appearance: none; padding-inline-end: 14px; padding-inline-start: 36px;
  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='%23667085' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; background-size: 12px; }
.input-group { display: flex; gap: 8px; }
.input-group .prefix { flex: none; display: grid; place-items: center; width: 84px; height: 46px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 15px; direction: ltr; color: var(--text-2); }
.input.ltr { direction: ltr; text-align: right; letter-spacing: .3px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-2); font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }

.progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: rtl; }
.progress-steps span { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; position: relative; }
.progress-steps span::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.progress-steps span.on::after { transform: scaleX(1); }

/* ---------------------------------------------------- badges & chips */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1.6; border: 1px solid transparent; }
.badge .icon { width: 13px; height: 13px; }
.badge-vip { background: var(--navy); color: #e3c77a; letter-spacing: .3px; }
.badge-green { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 20%, transparent); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 22%, transparent); }
.badge-red { background: var(--red-bg); color: var(--red); border-color: color-mix(in srgb, var(--red) 20%, transparent); }
.badge-blue { background: var(--primary-soft); color: var(--sky); border-color: color-mix(in srgb, var(--sky) 20%, transparent); }
.badge-gray { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--text-2);
  display: inline-flex; align-items: center; border: 1px solid var(--line-2); transition: .15s; cursor: pointer; font-size: 14px; }
.chip:hover { background: var(--surface-2); }
.chip.active, .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
[data-theme="dark"] :is(.chip.active, .chip.on) { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------------------------------------------------- product card */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; box-shadow: var(--shadow-sm); }
.p-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.p-media { aspect-ratio: 4/3; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.03); }
.p-media .tag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.p-media .tag.tag-points { top: auto; bottom: 10px; inset-inline-start: 10px; }
.p-art { background: hsl(var(--hue, 220) 45% 95%); }
.p-art .art-orb { position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%; background: hsl(var(--hue, 220) 55% 89%); }
.p-art > .icon, .p-art .slides .icon { position: relative; z-index: 1; width: 22%; height: auto; aspect-ratio: 1; max-width: 64px; color: hsl(var(--hue, 220) 45% 38%); stroke-width: 1.5; }
[data-theme="dark"] .p-art { background: hsl(var(--hue, 220) 25% 15%); }
[data-theme="dark"] .p-art .art-orb { background: hsl(var(--hue, 220) 28% 21%); }
[data-theme="dark"] :is(.p-art > .icon, .p-art .slides .icon) { color: hsl(var(--hue, 220) 60% 75%); }
.p-body { padding: 14px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.p-code { color: var(--muted); font-size: 12px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.p-name { font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-name:hover { color: var(--sky); }
.p-pack { color: var(--muted); font-size: 13px; }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; gap: 8px; }
.p-price { font-weight: 700; font-size: 18px; color: var(--text); }
.p-price s { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-inline-start: 6px; }
.p-login { font-size: 13px; color: var(--sky); font-weight: 600; }
.add-fab { width: 38px; height: 38px; border-radius: var(--r); border: 0; background: var(--primary); color: #fff; cursor: pointer; flex: none;
  display: grid; place-items: center; transition: background .15s; }
.add-fab .icon { width: 18px; height: 18px; }
.add-fab:hover { background: var(--primary-hi); }
.add-fab.done { background: var(--green-bg); color: var(--green); }

/* ---------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr.selected { background: var(--primary-soft); }
.table .strong { font-weight: 700; }

/* ---------------------------------------------------- tabs (segmented) */
.segmented { display: flex; padding: 4px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); position: relative; isolation: isolate; }
.segmented a, .segmented button { flex: 1; text-align: center; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm);
  color: var(--muted); position: relative; z-index: 1; transition: color .2s; background: none; border: 0; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.segmented .active { color: var(--text); font-weight: 700; }
.segmented .seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); transition: all .3s var(--ease); }
[data-theme="dark"] .segmented .seg-ind { background: var(--surface-3); }

/* ---------------------------------------------------- order timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin: 22px 0 6px; text-align: center; }
.timeline::before { content: ""; position: absolute; top: 15px; inset-inline: 12.5%; height: 2px; background: var(--surface-3); }
.timeline .fill { position: absolute; top: 15px; inset-inline-start: 12.5%; height: 2px; background: var(--primary); width: 0; transition: width .8s var(--ease) .1s; }
.timeline .step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.timeline .dot .icon { width: 15px; height: 15px; }
.timeline .done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.timeline .done { color: var(--text-2); }
.timeline .current .dot { background: var(--surface); border: 6px solid var(--primary); }
.timeline .current { color: var(--text); font-weight: 700; }

/* ---------------------------------------------------- misc */
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 8px; width: 0; transition: width 1s var(--ease) .1s; }
.navy .progress { background: rgba(255, 255, 255, .16); }
.navy .progress > span, .progress.white > span { background: #fff; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; color: var(--muted); margin: 0 auto 14px; stroke-width: 1.4; padding: 10px; box-sizing: content-box; border-radius: 50%; background: var(--surface-2); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--text-2); }
.kv.total { font-size: 19px; font-weight: 700; color: var(--text); padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--sky); font-weight: 700; font-size: 18px; flex: none; }
.navy .avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.map-box { height: 170px; border-radius: var(--r) var(--r) 0 0; position: relative; overflow: hidden;
  background-color: var(--surface-2); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }
.map-box .pin { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sky); }
.map-box .pin .icon { width: 40px; height: 40px; }
.map-box.located .pin .icon { animation: drop .5s var(--ease); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------- message windows (AN.toast) */
.notice-back { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(16, 24, 40, .45);
  backdrop-filter: blur(2px); opacity: 0; transition: opacity .18s; }
.notice-back.open { opacity: 1; }
.notice { position: relative; overflow: hidden; width: min(400px, 100%); padding: 28px 24px 22px; border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; transform: translateY(8px) scale(.97); transition: transform .22s var(--ease); }
.notice-back.open .notice { transform: none; }
.notice-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700;
  background: var(--green-bg); color: var(--green); }
.notice-ic .icon { width: 26px; height: 26px; }
.notice.error .notice-ic { background: var(--red-bg); color: var(--red); }
.notice.info .notice-ic { background: var(--primary-soft); color: var(--sky); }
.notice b { display: block; font-size: 18px; margin-bottom: 6px; }
.notice p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.notice-btns { display: flex; gap: 8px; }
.notice-btns .btn { flex: 1; }
.notice-bar { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--green); transform-origin: right; animation: notice-bar linear forwards; }
@keyframes notice-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------------------------------------------------- modal / drawer (centred sheets) */
.overlay { position: fixed; inset: 0; z-index: 900; background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal, .drawer {
  position: fixed; z-index: 901; top: 50%; left: 50%; width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain;
  padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translate(-50%, -48%); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .25s var(--ease), opacity .2s, visibility 0s linear .25s;
}
.drawer { width: min(780px, calc(100vw - 28px)); }
.modal.open, .drawer.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s var(--ease), opacity .2s, visibility 0s; }
.modal h3, .drawer h3 { margin: 0 0 18px; font-size: 19px; }

/* ---------------------------------------------------- command palette */
.palette { position: fixed; z-index: 1000; top: 12vh; left: 50%; width: min(620px, 94vw); transform: translateX(-50%) translateY(-8px); opacity: 0; pointer-events: none;
  transition: .2s var(--ease); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette.open { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.palette .p-search { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette .p-search input { flex: 1; height: 58px; background: none; border: 0; outline: 0; font-size: 16px; color: var(--text); }
kbd, .palette kbd { font-family: ui-monospace, system-ui; font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.palette .results { max-height: 52vh; overflow: auto; padding: 8px; }
.palette .res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); }
.palette .res:hover, .palette .res.focus { background: var(--surface-2); }
.palette .res .thumb { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--muted); overflow: hidden; flex: none; border: 1px solid var(--line); }
.palette .res .thumb img { width: 100%; height: 100%; object-fit: cover; }
.palette .hint { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------- reveal on scroll (subtle) */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------- keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-4px); } }
@keyframes drop { 0% { transform: translateY(-20px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.2); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 60, 136, .35); } 100% { box-shadow: 0 0 0 10px rgba(31, 60, 136, 0); } }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
.bump { animation: bump .4s var(--ease); }
.page-enter { animation: fade-up .35s var(--ease) backwards; }

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