/* =====================================================================
   WeCare Pet Clinic — Design system (glassmorphism · ocean & sunshine)
   Shared by every page. Page-specific styles live in their own files.
   ===================================================================== */

:root {
  /* Ocean */
  --ocean-950: #01182b;
  --ocean-900: #032339;
  --ocean-850: #052d49;
  --ocean-800: #07385a;
  --ocean-700: #0a4f7d;
  --ocean-600: #0b6aa8;
  --ocean-500: #0f8bd6;
  --ocean-400: #3aaaf0;
  --ocean-300: #7dcaf6;
  /* Sunshine */
  --sun-600: #f0a500;
  --sun-500: #ffbe1a;
  --sun-400: #ffcf4d;
  --sun-300: #ffe08a;
  /* Medical aqua */
  --aqua-500: #19d3c5;
  --aqua-400: #4fe6da;
  /* Status */
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #ff5c6c;
  --danger-600: #e8394b;
  --info: #60a5fa;
  /* Text */
  --text: #ecf7ff;
  --text-2: #b6d0e3;
  --text-3: #7d9cb5;
  --text-dark: #10283b;
  /* Glass */
  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.10);
  --glass-3: rgba(255, 255, 255, 0.15);
  --glass-solid: rgba(6, 40, 66, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --border-2: rgba(255, 255, 255, 0.22);
  --blur: blur(20px) saturate(150%);
  /* Shape */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow: 0 18px 50px -12px rgba(0, 8, 20, 0.55);
  --shadow-sm: 0 8px 24px -8px rgba(0, 8, 20, 0.45);
  --glow-sun: 0 10px 30px -8px rgba(255, 190, 26, 0.55);
  --glow-ocean: 0 10px 30px -8px rgba(15, 139, 214, 0.6);
  /* Type */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--ocean-950);
  background-image:
    radial-gradient(1100px 700px at -10% -10%, rgba(15, 139, 214, 0.45), transparent 60%),
    radial-gradient(900px 600px at 110% 0%, rgba(255, 190, 26, 0.16), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(25, 211, 197, 0.14), transparent 60%),
    linear-gradient(165deg, var(--ocean-950) 0%, var(--ocean-850) 50%, var(--ocean-900) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--sun-400); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sun-300); }
h1, h2, h3, h4, h5 { margin: 0 0 .4em; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sun-500); color: var(--text-dark); }
:focus-visible { outline: 2px solid var(--sun-400); outline-offset: 2px; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------------------------------------------------------------- ambient orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: float 18s ease-in-out infinite alternate;
}
.bg-orbs span:nth-child(1) { width: 380px; height: 380px; background: var(--ocean-500); top: -80px; left: 8%; }
.bg-orbs span:nth-child(2) { width: 300px; height: 300px; background: var(--sun-500); top: 35%; right: -60px; opacity: .28; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 340px; height: 340px; background: var(--aqua-500); bottom: -120px; left: 30%; opacity: .25; animation-delay: -12s; }
@keyframes float { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

/* ---------------------------------------------------------------- glass */
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.06);
}
.card-hover { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card-hover:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.card-title h3 i { color: var(--sun-400); }

/* ---------------------------------------------------------------- brand */
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--sun-400); letter-spacing: .14em; text-transform: uppercase; margin-top: -2px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 700; font-size: .94rem; letter-spacing: .01em; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--sun-400), var(--sun-600)); color: var(--text-dark); box-shadow: var(--glow-sun); }
.btn-primary:hover { color: var(--text-dark); box-shadow: 0 14px 34px -8px rgba(255, 190, 26, .75); transform: translateY(-1px); }
.btn-ocean { background: linear-gradient(135deg, var(--ocean-400), var(--ocean-600)); color: #fff; box-shadow: var(--glow-ocean); }
.btn-ocean:hover { color: #fff; transform: translateY(-1px); }
.btn-glass { background: var(--glass-2); border-color: var(--border-2); color: var(--text); backdrop-filter: var(--blur); }
.btn-glass:hover { background: var(--glass-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--glass); color: var(--text); }
.btn-danger { background: linear-gradient(135deg, #ff7381, var(--danger-600)); color: #fff; box-shadow: 0 10px 28px -8px rgba(255, 92, 108, .6); }
.btn-danger:hover { color: #fff; transform: translateY(-1px); }
.btn-outline-danger { background: rgba(255, 92, 108, .08); border-color: rgba(255, 92, 108, .4); color: #ff9aa4; }
.btn-outline-danger:hover { background: rgba(255, 92, 108, .16); color: #ffc0c6; }
.btn-sm { --h: 36px; padding: 0 15px; font-size: .85rem; }
.btn-lg { --h: 54px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { --h: 42px; width: var(--h); padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn .spinner { width: 18px; height: 18px; border-width: 2.5px; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading > :not(.spinner) { opacity: 0; }
.btn.is-loading { position: relative; }
.btn.is-loading .spinner { position: absolute; }

.spinner {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--sun-400);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-group { margin-bottom: 18px; position: relative; }
.label { display: flex; align-items: center; gap: 2px; font-size: .84rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.label .req { color: var(--sun-400); margin-left: 3px; }
.label .hint { margin-left: auto; font-weight: 500; color: var(--text-3); font-size: .78rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: rgba(1, 24, 43, .45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-2); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sun-400); box-shadow: 0 0 0 4px rgba(255, 190, 26, .14); background: rgba(1, 24, 43, .6); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ffcf4d' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.select option { background: var(--ocean-900); color: var(--text); }
input[type="date"].input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); cursor: pointer; }

.input-wrap { position: relative; }
.input-wrap > i:first-child { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; transition: color .2s; }
.input-wrap > .input { padding-left: 46px; }
.input-wrap:focus-within > i:first-child { color: var(--sun-400); }
.input-wrap .input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--text-3); width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
}
.input-wrap .input-action:hover { color: var(--text); background: var(--glass); }
.input-prefix { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-weight: 600; pointer-events: none; }
.input-wrap.has-prefix > .input { padding-left: 86px; }

.field-error { display: none; color: #ff98a2; font-size: .8rem; font-weight: 500; margin-top: 6px; }
.field-error::before { content: '\f06a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: rgba(255, 92, 108, .7); box-shadow: 0 0 0 4px rgba(255, 92, 108, .1); }
.has-error .field-error { display: block; }
.form-alert { display: none; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 18px; }
.form-alert.show { display: flex; gap: 10px; align-items: flex-start; }
.form-alert.error { background: rgba(255, 92, 108, .12); border: 1px solid rgba(255, 92, 108, .35); color: #ffc2c8; }
.form-alert.success { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); color: #b7f5dc; }
.form-alert.info { background: rgba(96, 165, 250, .12); border: 1px solid rgba(96, 165, 250, .35); color: #cfe2ff; }

/* Checkbox & radio */
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--text-2); line-height: 1.4; }
.check input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid var(--border-2); background: rgba(1,24,43,.4); cursor: pointer; display: grid; place-content: center; transition: .2s; }
.check input[type="radio"] { border-radius: 50%; }
.check input::after { content: ''; width: 10px; height: 10px; transform: scale(0); transition: .15s var(--ease); background: var(--text-dark); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input[type="radio"]::after { clip-path: none; border-radius: 50%; }
.check input:checked { background: var(--sun-500); border-color: var(--sun-500); }
.check input:checked::after { transform: scale(1); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: 0 0 48px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid var(--border); cursor: pointer; transition: .25s; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--sun-500); border-color: var(--sun-500); }
.switch input:checked + span::before { transform: translateX(20px); }

/* Choice chips (radio/checkbox styled as pills) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: var(--radius-pill);
  background: var(--glass); border: 1px solid var(--border); color: var(--text-2); font-size: .86rem; font-weight: 600;
  cursor: pointer; transition: .2s; user-select: none;
}
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip.active, .chip:has(input:checked) { background: rgba(255, 190, 26, .16); border-color: var(--sun-500); color: var(--sun-300); }
.chip input { display: none; }

/* Upload drop */
.upload-box {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius);
  border: 1.5px dashed var(--border-2); background: rgba(1,24,43,.3); cursor: pointer; transition: .2s;
}
.upload-box:hover, .upload-box.drag { border-color: var(--sun-400); background: rgba(255,190,26,.06); }
.upload-box input { display: none; }
.upload-preview { width: 74px; height: 74px; border-radius: 16px; flex: 0 0 74px; background: var(--glass-2) center/cover no-repeat; display: grid; place-items: center; color: var(--text-3); font-size: 1.5rem; border: 1px solid var(--border); }
.upload-box strong { display: block; font-size: .92rem; }
.upload-box small { color: var(--text-3); }

/* ---------------------------------------------------------------- badges & status */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: var(--glass-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-sun     { background: rgba(255, 190, 26, .14); color: var(--sun-300); border-color: rgba(255, 190, 26, .35); }
.badge-ocean   { background: rgba(58, 170, 240, .14); color: var(--ocean-300); border-color: rgba(58, 170, 240, .35); }
.badge-success { background: rgba(52, 211, 153, .13); color: #86efc4; border-color: rgba(52, 211, 153, .35); }
.badge-danger  { background: rgba(255, 92, 108, .13); color: #ffa3ad; border-color: rgba(255, 92, 108, .35); }
.badge-warning { background: rgba(251, 191, 36, .13); color: #fcd877; border-color: rgba(251, 191, 36, .35); }
.badge-aqua    { background: rgba(25, 211, 197, .13); color: var(--aqua-400); border-color: rgba(25, 211, 197, .35); }
.badge-muted   { background: rgba(255,255,255,.06); color: var(--text-3); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--radius-pill); background: rgba(1,24,43,.45); border: 1px solid var(--border); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius-pill);
  border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: .25s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(135deg, var(--sun-400), var(--sun-600)); color: var(--text-dark); box-shadow: var(--glow-sun); }
.tab .count { font-size: .72rem; background: rgba(255,255,255,.14); padding: 1px 7px; border-radius: 99px; }
.tab.active .count { background: rgba(16,40,59,.18); }

/* ---------------------------------------------------------------- avatar */
.avatar {
  --s: 44px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; font-weight: 700; font-size: calc(var(--s) * .38);
  background: linear-gradient(135deg, var(--ocean-400), var(--aqua-500)); color: #fff; border: 2px solid rgba(255,255,255,.18);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sq { border-radius: 30%; }
.avatar-sm { --s: 34px; } .avatar-lg { --s: 64px; } .avatar-xl { --s: 96px; }

/* Icon tile */
.icon-tile {
  --s: 48px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 15px; display: grid; place-items: center; font-size: calc(var(--s) * .42);
  background: rgba(255, 190, 26, .14); color: var(--sun-400); border: 1px solid rgba(255, 190, 26, .25);
}
.icon-tile.ocean { background: rgba(58,170,240,.14); color: var(--ocean-300); border-color: rgba(58,170,240,.3); }
.icon-tile.aqua { background: rgba(25,211,197,.14); color: var(--aqua-400); border-color: rgba(25,211,197,.3); }
.icon-tile.danger { background: rgba(255,92,108,.14); color: #ff98a2; border-color: rgba(255,92,108,.3); }

/* ---------------------------------------------------------------- modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(1, 12, 24, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: .25s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(10, 60, 96, .92), rgba(4, 30, 52, .95));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); box-shadow: 0 30px 80px -10px rgba(0,0,0,.6);
  transform: translateY(20px) scale(.97); transition: transform .3s var(--ease);
}
.modal-backdrop.open .modal { transform: none; }
.modal.lg { max-width: 760px; }
.modal.sm { max-width: 420px; }
.modal.xl { max-width: 960px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-close { background: var(--glass); border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 12px; color: var(--text-2); cursor: pointer; flex: 0 0 38px; }
.modal-close:hover { color: #fff; background: var(--glass-3); }
body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------- toast */
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(6, 40, 66, .92); border: 1px solid var(--border-2); backdrop-filter: var(--blur);
  box-shadow: var(--shadow); font-size: .9rem; animation: toastIn .35s var(--ease);
}
.toast.out { animation: toastOut .3s forwards; }
.toast i { font-size: 1.15rem; margin-top: 1px; }
.toast.success i { color: var(--success); } .toast.error i { color: var(--danger); } .toast.info i { color: var(--ocean-300); } .toast.warning i { color: var(--warning); }
.toast .t-body { flex: 1; } .toast strong { display: block; margin-bottom: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: rgba(1,24,43,.35); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }

/* ---------------------------------------------------------------- states */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty-state .icon-tile { --s: 76px; margin: 0 auto 18px; border-radius: 24px; }
.empty-state h3 { color: var(--text); }
.empty-state p { max-width: 380px; margin: 0 auto 20px; color: var(--text-3); }
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.06); border-radius: var(--radius); }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loader-block { display: grid; place-items: center; padding: 60px 0; }

/* Status timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--glass-2); border: 2px solid var(--border-2); display: grid; place-items: center; font-size: .6rem; color: transparent; }
.timeline li.done .dot { background: var(--success); border-color: var(--success); color: var(--text-dark); }
.timeline li.done::before { background: linear-gradient(var(--success), var(--border)); }
.timeline li.current .dot { background: var(--sun-500); border-color: var(--sun-500); color: var(--text-dark); box-shadow: 0 0 0 6px rgba(255,190,26,.18); }
.timeline li.cancel .dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline strong { display: block; font-size: .92rem; }
.timeline small { color: var(--text-3); }

/* Uploaded file list */
.file-list { display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(1,24,43,.35); border: 1px solid var(--border); }
.file-item strong { display: block; font-size: .9rem; color: var(--text); }
.file-item a:hover strong { color: var(--sun-300); }
.file-item small { color: var(--text-3); font-size: .78rem; }

/* Stars */
.stars { color: var(--sun-400); font-size: .82rem; display: inline-flex; gap: 2px; align-items: center; }
.stars .muted { color: var(--text-3); margin-left: 6px; font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; font-size: 1.8rem; }
.star-input input { display: none; }
.star-input label { color: rgba(255,255,255,.2); cursor: pointer; transition: .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--sun-400); transform: scale(1.05); }

/* Price */
.price { font-weight: 800; color: var(--sun-300); }
.price-old { color: var(--text-3); text-decoration: line-through; font-size: .85em; margin-left: 6px; font-weight: 500; }

/* ---------------------------------------------------------------- utilities */
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.text-sun { color: var(--sun-400); }
.text-ocean { color: var(--ocean-300); }
.text-aqua { color: var(--aqua-400); }
.text-danger { color: #ff98a2; }
.text-success { color: var(--success); }
.small { font-size: .84rem; }
.xsmall { font-size: .76rem; }
.bold { font-weight: 700; }
.center { text-align: center; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden, [hidden] { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--text-3); }
.kv span:last-child { text-align: right; font-weight: 600; }

.fade-up { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .card { padding: 18px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .toast-stack { top: auto; bottom: 90px; right: 16px; left: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; color: #000; }
  .bg-orbs, .sidebar, .topbar, .bottom-nav, .emergency-fab, .no-print, .modal-foot, .modal-close { display: none !important; }
  .modal-backdrop { position: static; background: none; backdrop-filter: none; }
  .modal { background: #fff; color: #000; box-shadow: none; border: 0; max-height: none; }
}
