/*!
 * ApkLevel UI core – tokens, reset, components
 * (c) Anow Hosting Web
 */

:root {
  --brand: #0a9f6b;
  --brand-2: #12b886;
  --brand-3: #0ea5e9;
  --hot: #f59e0b;
  --brand-rgb: 10, 159, 107;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
  --btn-bg: var(--grad);

  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #f2f4f7;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --soft: rgba(var(--brand-rgb), .09);
  --soft-2: rgba(var(--brand-rgb), .16);

  --ok: #12b76a; --ok-bg: #e7f8ef; --ok-ink: #067647;
  --warn: #f79009; --warn-bg: #fef0c7; --warn-ink: #b54708;
  --bad: #f04438; --bad-bg: #fee4e2; --bad-ink: #b42318;
  --info: #2e90fa; --info-bg: #e0efff; --info-ink: #175cd3;

  --r: 18px;
  --r-sm: 12px;
  --r-xs: 9px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .05);
  --sh-2: 0 12px 34px rgba(16, 24, 40, .12);
  --sh-3: 0 24px 64px rgba(16, 24, 40, .2);
  --ring: 0 0 0 4px rgba(var(--brand-rgb), .16);

  --font: 'Plus Jakarta Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: .22s var(--ease);
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #eef2f6;
  --ink-2: #c4ccd6;
  --muted: #8d98a6;
  --line: #26303a;
  --line-2: #1c242d;
  --bg: #0b1015;
  --surface: #131a21;
  --surface-2: #18212a;
  --soft: rgba(var(--brand-rgb), .18);
  --soft-2: rgba(var(--brand-rgb), .28);
  --ok-bg: rgba(18, 183, 106, .16); --ok-ink: #5fe0a5;
  --warn-bg: rgba(247, 144, 9, .16); --warn-ink: #fdb55a;
  --bad-bg: rgba(240, 68, 56, .16); --bad-ink: #ff8f86;
  --info-bg: rgba(46, 144, 250, .16); --info-ink: #84c1ff;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --sh-2: 0 14px 40px rgba(0, 0, 0, .45);
  --sh-3: 0 24px 70px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); letter-spacing: -.02em; line-height: 1.2; font-weight: 750; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(var(--brand-rgb), .22); }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack > * + * { margin-top: 16px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; } .mt-5 { margin-top: 40px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hide-sm { }
.show-sm { display: none !important; }

/* ---------- icons ---------- */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 14px; height: 14px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px;
  border-radius: 12px;
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background-color var(--t), border-color var(--t), color var(--t), opacity var(--t);
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--btn-bg); color: #fff; box-shadow: 0 8px 22px rgba(var(--brand-rgb), .32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(var(--brand-rgb), .42); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: rgba(var(--brand-rgb), .4); color: var(--brand); }
.btn-soft { background: var(--soft); color: var(--brand); }
.btn-soft:hover { background: var(--soft-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); color: var(--brand); }
.btn-ok { background: var(--ok-bg); color: var(--ok-ink); }
.btn-bad { background: var(--bad-bg); color: var(--bad-ink); }
.btn-warn { background: var(--warn-bg); color: var(--warn-ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-white { background: #fff; color: #101828; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading > .i { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.icon-btn:hover { border-color: rgba(var(--brand-rgb), .4); color: var(--brand); }
.icon-btn:active { transform: scale(.95); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; min-width: 9px; height: 9px; border-radius: 9px; background: var(--hot); border: 2px solid var(--surface); }
.icon-btn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 17px; }
.card-body { padding: 24px; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--line); }
.lift { transition: transform var(--t), box-shadow var(--t), border-color var(--t); will-change: transform; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill-info { background: var(--info-bg); color: var(--info-ink); }
.pill-mute { background: var(--line-2); color: var(--ink-2); }
.pill-brand { background: var(--soft); color: var(--brand); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.chip:hover { border-color: rgba(var(--brand-rgb), .35); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }

.tabs { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); }
.tabs a, .tabs button { padding: 7px 13px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); transition: background-color var(--t), color var(--t), box-shadow var(--t); white-space: nowrap; }
.tabs .is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.label-hint { font-weight: 500; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  outline: 0; transition: border-color var(--t), box-shadow var(--t);
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23767b98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--bad); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.input-group > .input { padding-left: 42px; }
.input-group > .addon { position: absolute; right: 6px; }
.hint { font-size: 12.5px; color: var(--muted); }
.error { font-size: 12.5px; color: var(--bad-ink); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.color-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 6px 6px; background: var(--surface); }
.color-input input[type=color] { width: 34px; height: 34px; border: 0; border-radius: 9px; padding: 0; background: none; cursor: pointer; }
.color-input input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input input[type=color]::-webkit-color-swatch { border: 0; border-radius: 9px; }
.color-input input[type=text] { border: 0; outline: 0; width: 90px; background: none; font-weight: 700; text-transform: uppercase; }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 99px; background: #cdd2dd; transition: background-color var(--t); flex: none; }
[data-theme="dark"] .switch .track { background: #3a3f63; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 2px dashed rgba(var(--brand-rgb), .32); border-radius: var(--r); padding: 30px 20px;
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .03), rgba(var(--brand-rgb), .07));
  transition: border-color var(--t), background-color var(--t);
}
.dropzone.is-over { border-color: var(--brand); background: var(--soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(var(--brand-rgb), .32); }

.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .25s linear; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t); }
.table tbody tr:hover { background: var(--surface-2); }

/* ---------- alerts & toasts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-bad { background: var(--bad-bg); color: var(--bad-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert-info { background: var(--info-bg); color: var(--info-ink); }
.alert-brand { background: var(--soft); color: var(--brand); }

.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 420px;
  padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--sh-3);
  font-weight: 600; font-size: 14px;
  animation: toast-in .35s var(--ease) both;
}
.toast.is-leaving { animation: toast-out .25s var(--ease) both; }
.toast .ti { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast-ok .ti { background: var(--ok); color: #fff; }
.toast-bad .ti { background: var(--bad); color: #fff; }
.toast-info .ti { background: var(--brand); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- dropdown & modal ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 8px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.dropdown.is-open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); text-align: left; transition: background-color var(--t), color var(--t); }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--soft); color: var(--brand); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 24, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s var(--ease); }
.modal-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.modal.is-open { visibility: visible; }
.modal.is-open::before { opacity: 1; }
.modal.is-open .modal-box { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 18px 22px 22px; }

/* ---------- app icon ---------- */
.app-icon { display: block; position: relative; flex: none; width: 64px; height: 64px; border-radius: 22%; overflow: hidden; background: var(--line-2); box-shadow: 0 0 0 1px rgba(15, 18, 38, .06), 0 6px 14px rgba(15, 18, 38, .1); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.xs { width: 36px; height: 36px; border-radius: 10px; }
.app-icon.sm { width: 48px; height: 48px; }
.app-icon.lg { width: 96px; height: 96px; }
.app-icon.xl { width: 128px; height: 128px; border-radius: 28px; }
.stars { display: inline-flex; align-items: center; gap: 3px; color: #ffb020; font-weight: 700; font-size: 13px; }
.stars .i { fill: currentColor; stroke: none; }
.stars small { color: var(--muted); font-weight: 600; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; }
.verified .i { width: 16px; height: 16px; }

.avatar { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--line-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; }
.avatar.lg { width: 88px; height: 88px; }

/* ---------- empty state & skeleton ---------- */
.empty { text-align: center; padding: 48px 20px; }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); margin-top: 6px; }

/* ---------- pagination ---------- */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; transition: border-color var(--t), color var(--t); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .is-disabled { opacity: .45; }

/* ---------- reveal on scroll (no layout shift: transform + opacity only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .wrap { padding-inline: 16px; }
  .hide-sm { display: none !important; }
  .show-sm { display: flex !important; }
  /* Icon buttons stay centred grids on phones (flex would push the icon to the left). */
  .icon-btn.show-sm { display: inline-grid !important; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card-pad, .card-body { padding: 18px; }
  .card-head { padding: 16px 18px; flex-wrap: wrap; }
  .toasts { left: 12px; right: 12px; bottom: 86px; }
  .toast { min-width: 0; max-width: none; }
  .modal { align-items: end; padding: 0; }
  .modal-box { border-radius: 22px 22px 0 0; max-height: 92vh; transform: translateY(40px); }
}
