/* ==========================================================================
   Healthy Inc. — Pharma Directory Portal
   theme.css — shared design system (Clean Medical/Pharma · Teal + Green)
   Works alongside Tailwind (Play CDN). Custom, no third-party plugin CSS.
   ========================================================================== */

:root {
  --c-primary:      #0d9488; /* teal-600  */
  --c-primary-dark: #0f766e; /* teal-700  */
  --c-primary-600:  #0d9488;
  --c-primary-050:  #f0fdfa;
  --c-accent:       #10b981; /* emerald-500 */
  --c-accent-dark:  #059669;
  --c-ink:          #0f172a; /* slate-900 */
  --c-body:         #334155; /* slate-700 */
  --c-muted:        #64748b; /* slate-500 */
  --c-line:         #e2e8f0; /* slate-200 */
  --c-bg:           #f8fafc; /* slate-50  */
  --c-surface:      #ffffff;
  --c-amber:        #f59e0b;
  --c-red:          #ef4444;
  --c-blue:         #3b82f6;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.05);
  --shadow-glow: 0 8px 30px rgba(13,148,136,.22);
  --radius: 16px;
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--c-body);
  background: var(--c-bg);
}

h1,h2,h3,h4,h5 { color: var(--c-ink); letter-spacing: -0.02em; }

/* ---- Brand helpers ------------------------------------------------------- */
.text-brand   { color: var(--c-primary); }
.bg-brand     { background: var(--c-primary); }
.grad-brand   { background: linear-gradient(135deg, #0d9488 0%, #10b981 100%); }
.grad-brand-soft { background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%); }
.grad-hero    {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(13,148,136,.20), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}
.grad-ink { background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%); }
.text-gradient {
  background: linear-gradient(120deg, #0d9488, #10b981 60%, #14b8a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Cards / surfaces ---------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #ccfbf1; }
.ring-brand:focus-visible, .ring-brand:focus { outline: none; box-shadow: 0 0 0 3px rgba(13,148,136,.30); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; line-height: 1;
  padding: .72rem 1.15rem; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-glow); }
.btn-accent  { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); }
.btn-ghost   { background: #fff; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-050); }
.btn-dark    { background: var(--c-ink); color:#fff; }
.btn-dark:hover { background:#1e293b; }
.btn-sm { padding: .5rem .8rem; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---- Badges / chips ------------------------------------------------------ */
.badge {
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.72rem; font-weight:600; padding:.28rem .6rem; border-radius:999px;
  background:#f1f5f9; color:#475569;
}
.badge-brand   { background: var(--c-primary-050); color: var(--c-primary-dark); }
.badge-green   { background:#dcfce7; color:#15803d; }
.badge-amber   { background:#fef3c7; color:#b45309; }
.badge-red     { background:#fee2e2; color:#b91c1c; }
.badge-blue    { background:#dbeafe; color:#1d4ed8; }
.badge-dot::before { content:""; width:6px; height:6px; border-radius:999px; background:currentColor; display:inline-block; }

/* ---- Forms & Controls --------------------------------------------------- */
.field { display:block; width:100%; padding:.7rem .9rem; border:1px solid var(--c-line);
  border-radius:12px; background:#fff; color:var(--c-ink); font-size:.9rem; transition:.2s; }
.field::placeholder { color:#94a3b8; }
.field:focus { outline:none; border-color:var(--c-primary); box-shadow:0 0 0 3px rgba(13,148,136,.15); }
.label { display:block; font-size:.8rem; font-weight:600; color:#334155; margin-bottom:.4rem; }
.help  { font-size:.75rem; color:var(--c-muted); margin-top:.35rem; }

/* ---- Enhanced Custom Select Boxes --------------------------------------- */
select,
select.field,
.field select,
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%230d9488' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.25rem !important;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

select:hover,
select.field:hover {
  border-color: #5eead4;
  background-color: #fafdfc;
}

select:focus,
select.field:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%230f766e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

select:disabled,
select.field:disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

select option {
  color: #0f172a;
  background-color: #ffffff;
  padding: 0.5rem 0.75rem;
}

/* Dark selects (e.g., admin dark modal fields) */
select.\!bg-slate-800,
select.bg-slate-800 {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232dd4bf' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

select.\!bg-slate-800 option,
select.bg-slate-800 option {
  background-color: #1e293b;
  color: #f8fafc;
}

/* ---- Enhanced Custom Checkboxes ----------------------------------------- */
input[type="checkbox"]:not(.sr-only):not(.peer) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  border-radius: 6px;
  border: 1.75px solid #cbd5e1;
  background-color: #ffffff;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

input[type="checkbox"]:not(.sr-only):not(.peer):hover {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

input[type="checkbox"]:not(.sr-only):not(.peer):focus-visible,
input[type="checkbox"]:not(.sr-only):not(.peer):focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
}

input[type="checkbox"]:not(.sr-only):not(.peer):checked {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.32);
}

input[type="checkbox"]:not(.sr-only):not(.peer):indeterminate {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' d='M4 8a1 1 0 011-1h6a1 1 0 110 2H5a1 1 0 01-1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

input[type="checkbox"]:not(.sr-only):not(.peer):disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Rose variant for destructive remove checkboxes */
input[type="checkbox"].text-rose-600:checked,
input[type="checkbox"].text-rose-500:checked {
  background-color: #e11d48 !important;
  border-color: #e11d48 !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.32) !important;
}

/* ---- Enhanced Custom Radio Buttons -------------------------------------- */
input[type="radio"]:not(.sr-only):not(.peer) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  border-radius: 50%;
  border: 1.75px solid #cbd5e1;
  background-color: #ffffff;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

input[type="radio"]:not(.sr-only):not(.peer):hover {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

input[type="radio"]:not(.sr-only):not(.peer):focus-visible,
input[type="radio"]:not(.sr-only):not(.peer):focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
}

input[type="radio"]:not(.sr-only):not(.peer):checked {
  border-color: var(--c-primary);
  background-color: #ffffff;
  background-image: radial-gradient(circle, var(--c-primary) 42%, transparent 45%);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15), 0 2px 6px rgba(13, 148, 136, 0.25);
}

input[type="radio"]:not(.sr-only):not(.peer):disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Helper label wrapper for check / radio */
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
  transition: color 0.15s ease;
}

.form-check:hover {
  color: #0f172a;
}

/* ---- Nav ----------------------------------------------------------------- */
.nav-link { position:relative; font-weight:500; color:#475569; padding:.4rem 0; transition:.2s; }
.nav-link:hover, .nav-link.active { color: var(--c-primary); }
.nav-link.active::after, .nav-link:hover::after {
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--c-primary); border-radius:2px;
}

/* ---- Sidebar (backend) --------------------------------------------------- */
.side-link { display:flex; align-items:center; gap:.75rem; padding:.65rem .85rem; border-radius:12px;
  color:#cbd5e1; font-weight:500; font-size:.9rem; transition:.18s; }
.side-link:hover { background:rgba(255,255,255,.08); color:#fff; }
.side-link.active { background:linear-gradient(135deg, rgba(13,148,136,.9), rgba(16,185,129,.9)); color:#fff; box-shadow:var(--shadow-glow); }
.side-link svg { width:20px; height:20px; flex:0 0 auto; }

/* ---- Tables -------------------------------------------------------------- */
.tbl { width:100%; border-collapse:separate; border-spacing:0; }
.tbl th { text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em;
  color:#64748b; font-weight:700; padding:.75rem 1rem; border-bottom:1px solid var(--c-line); }
.tbl td { padding:.85rem 1rem; border-bottom:1px solid #f1f5f9; font-size:.88rem; color:#334155; }
.tbl tbody tr { transition:.15s; }
.tbl tbody tr:hover { background:#f8fafc; }
.tbl-sortable th[data-sort]{ cursor:pointer; user-select:none; }
.tbl-sortable th[data-sort]:hover{ color:var(--c-primary); }

/* ---- Stat tile ----------------------------------------------------------- */
.stat { display:flex; align-items:center; gap:1rem; }
.stat-ic { width:52px; height:52px; border-radius:14px; display:grid; place-items:center; flex:0 0 auto; }
.stat-num { font-size:1.75rem; font-weight:800; color:var(--c-ink); line-height:1; }

/* ---- Toast --------------------------------------------------------------- */
#toast-wrap { position:fixed; top:1rem; right:1rem; z-index:9999; display:flex; flex-direction:column; gap:.6rem; }
.toast { display:flex; align-items:flex-start; gap:.7rem; min-width:280px; max-width:360px;
  background:#fff; border:1px solid var(--c-line); border-left:4px solid var(--c-primary);
  border-radius:12px; padding:.85rem 1rem; box-shadow:var(--shadow-lg);
  animation:toastIn .35s cubic-bezier(.2,.8,.2,1); }
.toast.out { animation:toastOut .3s forwards; }
.toast-success { border-left-color:#10b981; }
.toast-error   { border-left-color:#ef4444; }
.toast-info    { border-left-color:#3b82f6; }
@keyframes toastIn { from{opacity:0; transform:translateX(30px);} to{opacity:1; transform:none;} }
@keyframes toastOut { to{opacity:0; transform:translateX(30px);} }

/* ---- Modal --------------------------------------------------------------- */
.modal-overlay { position:fixed; inset:0; background:rgba(15,23,42,.55); backdrop-filter:blur(3px);
  z-index:9998; display:flex; align-items:center; justify-content:center; padding:1rem;
  opacity:0; pointer-events:none; transition:opacity .25s; }
.modal-overlay.open { opacity:1; pointer-events:auto; }
.modal-box { background:#fff; border-radius:20px; box-shadow:var(--shadow-lg); width:100%; max-width:520px;
  transform:translateY(16px) scale(.98); transition:transform .28s cubic-bezier(.2,.8,.2,1); max-height:90vh; overflow:auto; }
.modal-overlay.open .modal-box { transform:none; }

/* ---- Dropdown ------------------------------------------------------------ */
.dropdown { position:relative; }
.dropdown-menu { position:absolute; right:0; top:calc(100% + 8px); min-width:190px; background:#fff;
  border:1px solid var(--c-line); border-radius:14px; box-shadow:var(--shadow-lg); padding:.4rem;
  opacity:0; transform:translateY(-6px); pointer-events:none; transition:.18s; z-index:60; }
.dropdown.open .dropdown-menu { opacity:1; transform:none; pointer-events:auto; }
.dropdown-item { display:flex; align-items:center; gap:.6rem; padding:.55rem .7rem; border-radius:9px;
  font-size:.85rem; color:#334155; cursor:pointer; }
.dropdown-item:hover { background:var(--c-primary-050); color:var(--c-primary-dark); }

/* ---- Tabs ---------------------------------------------------------------- */
.tab-btn { padding:.6rem .1rem; font-weight:600; font-size:.9rem; color:#64748b; border-bottom:2px solid transparent; cursor:pointer; transition:.2s; }
.tab-btn.active { color:var(--c-primary); border-bottom-color:var(--c-primary); }
.tab-pane { display:none; }
.tab-pane.active { display:block; animation:fadeUp .4s ease; }

/* ---- Wizard / stepper panels --------------------------------------------- */
[data-step] { display:none; }
[data-step].active { display:block; animation:fadeUp .4s ease; }

/* ---- Accordion ----------------------------------------------------------- */
.acc-item { border:1px solid var(--c-line); border-radius:14px; overflow:hidden; background:#fff; }
.acc-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.1rem 1.25rem; cursor:pointer; font-weight:600; color:var(--c-ink); }
.acc-body { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.acc-body-inner { padding:0 1.25rem 1.2rem; color:var(--c-body); font-size:.92rem; }
.acc-item.open .acc-chev { transform:rotate(180deg); }
.acc-chev { transition:transform .3s; }

/* ---- Rich text editor ---------------------------------------------------- */
.rte-toolbar { display:flex; flex-wrap:wrap; gap:.2rem; padding:.5rem; border:1px solid var(--c-line); border-bottom:0; border-radius:12px 12px 0 0; background:#f8fafc; }
.rte-btn { width:34px; height:34px; display:grid; place-items:center; border-radius:8px; color:#475569; cursor:pointer; font-size:.85rem; }
.rte-btn:hover { background:#e2e8f0; color:var(--c-ink); }
.rte-btn.active { background:var(--c-primary); color:#fff; }
.rte-area { min-height:280px; padding:1.1rem 1.25rem; border:1px solid var(--c-line); border-radius:0 0 12px 12px; background:#fff; color:var(--c-ink); outline:none; line-height:1.6; font-size: 0.95rem; }
.rte-area:focus { box-shadow:0 0 0 3px rgba(13,148,136,.15); }
.rte-area p { margin-top: 0; margin-bottom: 0.85rem; line-height: 1.65; }
.rte-area p:empty, .rte-area p:has(> br:only-child) { margin: 0; height: 0; }
.rte-area h2{ font-size:1.35rem; font-weight:800; margin:1.25rem 0 .5rem; } .rte-area h3{ font-size:1.15rem; font-weight:700; margin:1rem 0 .4rem; }
.rte-area ul{ list-style:disc; padding-left:1.4rem; margin-bottom: 0.85rem; } .rte-area ol{ list-style:decimal; padding-left:1.4rem; margin-bottom: 0.85rem; }
.rte-area a{ color:var(--c-primary); text-decoration:underline; }
.rte-area:empty:before { content:attr(data-placeholder); color:#94a3b8; }

/* ---- Article Public Reader Prose Typography ------------------------------ */
.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155; /* slate-700 */
}
.article-body p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.article-body p:last-child {
  margin-bottom: 0;
}
.article-body p:empty,
.article-body p:has(> br:only-child) {
  display: none;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.article-body ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.15rem;
}
.article-body ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.15rem;
}
.article-body li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}
.article-body blockquote {
  border-left: 4px solid var(--c-primary);
  padding: 0.5rem 0 0.5rem 1rem;
  font-style: italic;
  color: #475569;
  margin: 1.25rem 0;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
}
.article-body a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.article-body a:hover {
  color: var(--c-primary-dark);
}
.article-body img {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--c-line);
}

/* ---- Upload dropzone ----------------------------------------------------- */
.dropzone { border:2px dashed #cbd5e1; border-radius:16px; padding:1.75rem; text-align:center; cursor:pointer; transition:.2s; background:#f8fafc; }
.dropzone:hover, .dropzone.drag { border-color:var(--c-primary); background:var(--c-primary-050); }

/* ---- Tag input ----------------------------------------------------------- */
.tag-input { display:flex; flex-wrap:wrap; gap:.4rem; padding:.5rem; border:1px solid var(--c-line); border-radius:12px; background:#fff; }
.tag-input:focus-within { border-color:var(--c-primary); box-shadow:0 0 0 3px rgba(13,148,136,.15); }
.tag-chip { display:inline-flex; align-items:center; gap:.35rem; background:var(--c-primary-050); color:var(--c-primary-dark); font-size:.78rem; font-weight:600; padding:.28rem .55rem; border-radius:8px; }
.tag-chip button{ line-height:1; opacity:.7; } .tag-chip button:hover{ opacity:1; }
.tag-input input{ border:0; outline:none; flex:1; min-width:100px; font-size:.85rem; background:transparent; }

/* ---- Range / stepper ----------------------------------------------------- */
.step { display:flex; align-items:center; gap:.6rem; }
.step-dot { width:32px; height:32px; border-radius:999px; display:grid; place-items:center; font-weight:700; font-size:.85rem; background:#e2e8f0; color:#64748b; transition:.3s; }
.step.active .step-dot { background:var(--c-primary); color:#fff; box-shadow:var(--shadow-glow); }
.step.done .step-dot   { background:var(--c-accent); color:#fff; }
.step-line { flex:1; height:2px; background:#e2e8f0; }
.step.done + .step-line, .step-line.done { background:var(--c-accent); }

/* ---- Skeleton ------------------------------------------------------------ */
.skeleton { background:linear-gradient(90deg,#eef2f7 25%,#e2e8f0 37%,#eef2f7 63%); background-size:400% 100%; animation:sk 1.4s ease infinite; border-radius:8px; }
@keyframes sk { 0%{background-position:100% 0} 100%{background-position:0 0} }

/* ---- Animations ---------------------------------------------------------- */
@keyframes fadeUp   { from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:none;} }
@keyframes fadeIn   { from{opacity:0;} to{opacity:1;} }
@keyframes floaty   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes pulseRing{ 0%{box-shadow:0 0 0 0 rgba(16,185,129,.4)} 70%{box-shadow:0 0 0 12px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)} }
.anim-float { animation:floaty 6s ease-in-out infinite; }
.pulse-ring { animation:pulseRing 2.2s infinite; }

/* reveal-on-scroll (toggled by core.js) */
[data-reveal] { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
[data-reveal].in { opacity:1; transform:none; }
[data-reveal-delay="1"]{ transition-delay:.08s } [data-reveal-delay="2"]{ transition-delay:.16s }
[data-reveal-delay="3"]{ transition-delay:.24s } [data-reveal-delay="4"]{ transition-delay:.32s }
[data-reveal-delay="5"]{ transition-delay:.40s } [data-reveal-delay="6"]{ transition-delay:.48s }

/* ---- Misc ---------------------------------------------------------------- */
.divider { height:1px; background:var(--c-line); }
.link { color:var(--c-primary); font-weight:600; } .link:hover{ text-decoration:underline; }
.container-x { max-width:1200px; margin:0 auto; padding-left:1.25rem; padding-right:1.25rem; }
.avatar { border-radius:999px; object-fit:cover; background:#e2e8f0; }
.logo-tile { width:56px; height:56px; border-radius:14px; display:grid; place-items:center; font-weight:800; color:#fff; }
::selection { background:rgba(13,148,136,.2); }
.scroll-thin::-webkit-scrollbar{ width:8px; height:8px; }
.scroll-thin::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:8px; }
.hero-blob { position:absolute; border-radius:50%; filter:blur(50px); opacity:.5; z-index:0; }

/* print-friendly for client PDF export */
@media print { .no-print{ display:none !important; } body{ background:#fff; } }
