/* Dokta PWA: the same tokens and components as the Flutter app (app/lib/core/theme.dart, widgets/common.dart). */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-Variable.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F3FAF9; --surface: #FFFFFF; --ink: #0F2A33; --muted: #5C7380; --line: #E3EEEE;
  --primary: #0F9D8F; --primary-dark: #0B7F74; --blue: #2563EB; --field: #EAF4F3;
  --danger: #E5484D; --success: #16A34A; --warning: #F59E0B;
  --grad: linear-gradient(135deg, #0E9F9A, #2563EB);
  --shadow: 0 6px 18px rgba(15, 42, 51, .07);
  --t-teal: #DDF3F0; --t-teal-fg: var(--primary);
  --t-rose: #FDE6E4; --t-rose-fg: #E0594F;
  --t-blue: #E4EBFC; --t-blue-fg: #3D5FD8;
  --t-amber: #FDF0D6; --t-amber-fg: #D98A12;
  --t-violet: #ECE6FB; --t-violet-fg: #7B4FD0;
  --login-top: #BFDCEC; --steth: #3A4350;
  --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom);
}
html.dark {
  --bg: #0B191E; --surface: #13262C; --ink: #E8F3F2; --muted: #8FA8B0; --line: #214048;
  --primary: #19B3A4; --primary-dark: #0F9D8F; --blue: #4B84F5; --field: #1A3239;
  --danger: #F2686C; --success: #34C26B; --warning: #F5AE2E;
  --shadow: 0 6px 18px rgba(0, 0, 0, .25);
  --t-teal: #173A3A; --t-rose: #3A2327; --t-blue: #1E2A4A; --t-amber: #3A3020; --t-violet: #2B2548;
  --login-top: #1B3A46; --steth: rgba(255, 255, 255, .3);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); overscroll-behavior: none; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); font-weight: 500; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[x-cloak] { display: none !important; }

/* Material Symbols: *_rounded in Flutter = filled, *_outlined = outline. */
.i { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; -webkit-font-smoothing: antialiased; user-select: none; flex-shrink: 0; }
.i.o { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ---------------------------------------------------------------- frame */
#app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) {
  body { background: #E6F2F1; }
  html.dark body { background: #061014; }
  #app { left: 50%; width: 430px; margin-left: -215px; box-shadow: 0 10px 40px rgba(0, 0, 0, .13); }
}
.page { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.page.push-enter { animation: pushIn .32s cubic-bezier(.2, .8, .2, 1) both; }
.page.push-leave { animation: pushOut .26s ease-in both; }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushOut { from { transform: none; } to { transform: translateX(100%); } }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.hscroll { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar, .scroll::-webkit-scrollbar { display: none; }
.safe-top { padding-top: var(--safe-top); }
.fade-in { animation: fadeIn .22s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide-in { animation: slideIn .36s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.press { transition: transform .12s ease; }
.press:active { transform: scale(.96); }

/* ---------------------------------------------------------------- bars */
.appbar { height: 56px; display: flex; align-items: center; padding: 0 8px 0 4px; flex-shrink: 0; background: var(--bg); }
.appbar .back { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); }
.appbar .title { font-size: 17px; font-weight: 700; flex: 1; padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .act { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.tabbar { flex-shrink: 0; background: var(--surface); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06); padding-bottom: var(--safe-bottom); display: flex; height: calc(66px + var(--safe-bottom)); position: relative; z-index: 2; }
html.dark .tabbar { box-shadow: 0 -4px 20px rgba(0, 0, 0, .3); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 66px; transition: transform .12s; }
.tabbar button:active { transform: scale(.9); }
.tabbar .pill { position: relative; width: 54px; height: 30px; border-radius: 16px; display: grid; place-items: center; transition: background .22s; }
.tabbar .pill .i { font-size: 22px; color: var(--muted); }
.tabbar .lbl { margin-top: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.tabbar .on .pill { background: var(--t-teal); }
.tabbar .on .pill .i { color: var(--primary); animation: pop .3s ease-out; }
.tabbar .on .lbl { color: var(--primary); font-weight: 800; }
.tabbar .badge { position: absolute; right: 2px; top: -4px; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.bottombar { flex-shrink: 0; background: var(--surface); box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); padding: 12px 20px calc(12px + var(--safe-bottom)); display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- type */
.h20 { font-size: 20px; font-weight: 800; }
.muted { color: var(--muted); }
.prim { color: var(--primary); }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

/* ---------------------------------------------------------------- buttons */
.btn { height: 52px; width: 100%; border-radius: 14px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, opacity .2s; white-space: nowrap; overflow: hidden; padding: 0 10px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn.busy { opacity: 1; }
.btn.grad { background: var(--grad); }
.btn.danger { background: var(--danger); }
.btn .i { font-size: 18px; }
.btn-o { height: 52px; width: 100%; border-radius: 14px; background: var(--surface); border: 1.2px solid var(--line); color: var(--primary); font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s; white-space: nowrap; padding: 0 10px; }
.btn-o:active { transform: scale(.97); }
.btn-o .i { font-size: 18px; }
.btn-o.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.spin { width: 22px; height: 22px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.spin.dark { border-color: var(--line); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.round-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); }
.round-btn .i { font-size: 19px; }
.round-btn .badge { position: absolute; right: -2px; top: -2px; }
.badge { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #EF5B50; border: 1.5px solid var(--surface); color: #fff; font-size: 9.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.link { font-size: 13px; font-weight: 800; color: var(--primary); }

/* ---------------------------------------------------------------- surfaces */
.panel { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; }
.panel.tap { transition: transform .12s; cursor: pointer; }
.panel.tap:active { transform: scale(.98); }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.tile { display: grid; place-items: center; flex-shrink: 0; }
.t-teal { background: var(--t-teal); color: var(--t-teal-fg); }
.t-rose { background: var(--t-rose); color: var(--t-rose-fg); }
.t-blue { background: var(--t-blue); color: var(--t-blue-fg); }
.t-amber { background: var(--t-amber); color: var(--t-amber-fg); }
.t-violet { background: var(--t-violet); color: var(--t-violet-fg); }
.sec-h { display: flex; align-items: center; padding: 22px 20px 12px; }
.sec-h .t { flex: 1; font-size: 16.5px; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .12s; flex-shrink: 0; }
.chip:active { transform: scale(.93); }
.chip .i { font-size: 15px; color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.on .i { color: #fff; }
.divider { height: 1px; background: var(--line); }
.grad-bg { background: var(--grad); }

/* ---------------------------------------------------------------- inputs */
.field { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 14px; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s; }
.field::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); font-weight: 500; }
.field:focus { border-color: var(--primary); box-shadow: inset 0 0 0 .5px var(--primary); }
.field-wrap { position: relative; }
.field-wrap .pre { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 22px; pointer-events: none; }
.field-wrap .field.has-pre { padding-left: 46px; }
.field-wrap .suf { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; color: var(--muted); }
.flabel { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 14px 0 8px; }
.err { font-size: 12.5px; font-weight: 600; color: var(--danger); }
.switch { position: relative; width: 52px; height: 32px; border-radius: 16px; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: background .2s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(20px); }

/* ---------------------------------------------------------------- avatars */
.av { position: relative; flex-shrink: 0; }
.av .pic { width: 100%; height: 100%; overflow: hidden; }
.av .pic > img, .av .pic > svg { width: 100%; height: 100%; display: block; object-fit: cover; object-position: bottom; }
.av .pic > img { background: #67D4FA; }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 26%; height: 26%; background: #16A34A; border: 2px solid #fff; border-radius: 50%; }
.av.ring { padding: 3px; border: 3px solid rgba(255, 255, 255, .55); border-radius: 50%; box-sizing: content-box; }

/* ---------------------------------------------------------------- states */
.skel { background: var(--line); border-radius: 10px; animation: skel 1.1s ease-in-out infinite alternate; }
@keyframes skel { from { background: var(--line); } to { background: var(--field); } }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; flex: 1; }
.empty .circle { width: 84px; height: 84px; border-radius: 50%; background: var(--t-teal); display: grid; place-items: center; color: var(--primary); }
.empty .circle .i { font-size: 38px; }
.empty .t { margin-top: 18px; font-size: 17px; font-weight: 800; }
.empty .m { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.empty .btn { width: 200px; height: 46px; margin-top: 20px; }

/* ---------------------------------------------------------------- overlays */
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); z-index: 50; animation: fadeIn .2s ease-out; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--surface); border-radius: 24px 24px 0 0; max-height: calc(100% - var(--safe-top) - 24px); display: flex; flex-direction: column; animation: sheetIn .3s cubic-bezier(.2, .8, .2, 1); padding-bottom: var(--safe-bottom); }
.sheet.tall { height: 88%; }
.sheet .handle { width: 32px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 40%, transparent); margin: 22px auto 22px; flex-shrink: 0; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
.sheet-item { display: flex; align-items: center; gap: 16px; padding: 14px 24px; font-size: 15px; font-weight: 600; width: 100%; text-align: left; }
.sheet-item:active { background: var(--field); }
.dialog { position: absolute; left: 40px; right: 40px; top: 50%; transform: translateY(-50%); z-index: 51; background: var(--surface); border-radius: 20px; padding: 24px 24px 12px; animation: dlgIn .2s ease-out; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(-50%) scale(.9); } to { opacity: 1; transform: translateY(-50%); } }
.dialog .dt { font-size: 17px; font-weight: 800; }
.dialog .db { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.dialog .da { display: flex; justify-content: flex-end; gap: 4px; margin-top: 18px; }
.dialog .da button { padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--muted); border-radius: 20px; }
.dialog .da button.yes { color: var(--primary); font-weight: 800; }
.dialog .da button.yes.danger { color: var(--danger); }
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(80px + var(--safe-bottom)); z-index: 60; background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; animation: slideIn .25s ease-out; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }

/* range slider */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: transparent; pointer-events: none; position: absolute; left: 0; top: 50%; margin: 0; transform: translateY(-50%); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); pointer-events: auto; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); pointer-events: auto; border: 0; }
.range { position: relative; height: 40px; margin: 0 10px; }
.range .track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: var(--line); border-radius: 2px; }
.range .fill { position: absolute; top: 50%; height: 4px; transform: translateY(-50%); background: var(--primary); border-radius: 2px; }

/* chat */
.bubble { max-width: 74%; margin: 4px 0; padding: 10px 12px 8px 14px; border-radius: 18px 18px 18px 4px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-end; }
.bubble.mine { align-self: flex-end; background: var(--primary); color: #fff; border-radius: 18px 18px 4px 18px; box-shadow: none; }
.bubble:not(.mine) { align-self: flex-start; }
.bubble .body { align-self: flex-start; font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.bubble .meta { margin-top: 3px; font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.bubble.mine .meta { color: rgba(255, 255, 255, .7); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; margin: 0 2.5px; animation: typing 1s infinite; }
.typing span:nth-child(2) { animation-delay: .33s; } .typing span:nth-child(3) { animation-delay: .66s; }
@keyframes typing { 0%, 100% { opacity: .35; } 33% { opacity: 1; } }

/* install banner (iOS) */
.ios-hint { position: absolute; left: 12px; right: 12px; bottom: calc(80px + var(--safe-bottom)); z-index: 40; background: var(--surface); border-radius: 18px; padding: 14px 44px 14px 16px; box-shadow: 0 12px 40px rgba(15, 42, 51, .22); font-size: 13.5px; line-height: 1.45; animation: slideIn .3s ease-out; }
.ios-hint b { color: var(--primary); }
.ios-hint .x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 15px; background: var(--field); color: var(--muted); display: grid; place-items: center; }

/* booking (screens/booking.dart, widgets/slot_picker.dart) */
.blabel { padding: 22px 20px 12px; font-size: 15px; font-weight: 800; }
.selcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; align-items: center; transition: background .18s, box-shadow .18s; }
.selcard .sub { color: var(--muted); } .selcard .main { color: var(--ink); }
.selcard.sel { background: var(--grad); border-color: transparent; box-shadow: 0 6px 14px color-mix(in srgb, var(--blue) 25%, transparent); }
.selcard.sel .sub { color: rgba(255, 255, 255, .7); } .selcard.sel .main { color: #fff; }
.slot { width: 92px; padding: 10px 0; align-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink); transition: background .16s; }
.slot .note { font-size: 10px; font-weight: 600; color: var(--muted); }
.slot.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot.on .note { color: rgba(255, 255, 255, .7); }
.slot.off { background: var(--field); color: color-mix(in srgb, var(--muted) 60%, transparent); text-decoration: line-through; }
.prow { padding: 5px 0; font-size: 13px; } .prow b { font-weight: 700; }
/* ticket */
.tcap { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .6px; }
.tval { margin-top: 3px; font-size: 14px; font-weight: 800; }
.tline { padding: 4px 0; font-size: 13px; } .tline b { font-weight: 800; }
.chatrow { width: 100%; padding: 11px 12px; border-radius: 16px; transition: background .15s; }
.chatrow:active { background: var(--field); }
/* profile */
.pcap { padding: 22px 20px 10px 26px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.pgroup { margin: 0 20px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.pitem { width: 100%; padding: 12px 14px; transition: background .15s; }
.pitem:active { background: var(--field); }
/* settings */
.scap { padding: 22px 4px 10px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.stile { width: 100%; padding: 10px 16px; }
.legal h1, .legal h2, .legal h3 { font-size: 15px; font-weight: 800; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--muted); }
/* MarkdownLite */
.md h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.md p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; }
.md ul { list-style: none; margin: 0 0 10px; padding: 0; }
.md li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 14.5px; line-height: 1.55; }
.md li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ---------------------------------------------------------------- motion (matches the website) */
/* Tab switch: the tab page fades and rises each time it is shown */
.page.tab-in { animation: tabIn .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Scroll reveal (classes added by the script in app.blade.php) */
.rv { opacity: 0; translate: 0 18px; }
.rv.rv-in { opacity: 1; translate: 0 0; transition: opacity .5s cubic-bezier(.2, .7, .2, 1), translate .5s cubic-bezier(.2, .7, .2, 1); }

/* Cards: lift on hover (desktop), keep the press-in on touch */
@media (hover: hover) {
  .panel.tap, .selcard, .chatrow { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, background .18s; }
  .panel.tap:hover, .selcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 42, 51, .12); }
  .chatrow:hover { transform: translateX(3px); }
  .panel.tap:hover .av .pic > img { transform: scale(1.06); }
}
.av .pic > img { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }

/* Buttons: lift, glow and a light sweep on hover; ripple on tap */
.btn, .btn-o { position: relative; overflow: hidden; isolation: isolate; transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease, opacity .15s, background-color .2s; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); background-size: 250% 100%; background-repeat: no-repeat; background-position: 150% 0; }
@media (hover: hover) {
  .btn:hover:not(:disabled), .btn-o:hover:not(:disabled) { transform: translateY(-2px); }
  .btn:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(15, 157, 143, .3); }
  .btn-o:hover:not(:disabled) { box-shadow: 0 8px 18px rgba(15, 42, 51, .08); }
  .btn:hover:not(:disabled)::after { background-position: -50% 0; transition: background-position .7s ease; }
  .btn:hover:not(:disabled) .i:last-child:not(:first-child), .btn:hover:not(:disabled) .i[style*="order:2"] { translate: 3px 0; }
}
.btn .i { transition: translate .2s ease; }
.btn:active:not(:disabled), .btn-o:active { transform: scale(.97); box-shadow: none; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); animation: ripple .55s ease-out forwards; background: currentColor; opacity: .25; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Loading bar for slow API calls */
#load-bar { position: absolute; top: 0; left: 0; height: 3px; width: 0; z-index: 90; background: var(--grad); box-shadow: 0 0 8px rgba(14, 159, 154, .6); opacity: 0; pointer-events: none; border-radius: 0 2px 2px 0; }
#load-bar.run { opacity: 1; animation: loadBar 6s cubic-bezier(.1, .8, .2, 1) forwards; }
#load-bar.done { width: 100% !important; animation: none; opacity: 0; transition: width .2s ease, opacity .3s .15s ease; }
@keyframes loadBar { 0% { width: 0; } 10% { width: 35%; } 100% { width: 90%; } }

/* Onboarding art floats gently */
.onb-art { animation: onbFloat 4s ease-in-out infinite; }
@keyframes onbFloat { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .page.tab-in, .onb-art, .ripple { animation: none; }
  .rv { opacity: 1; translate: none; }
  .btn::after { display: none; }
}
