:root {
  --bg: #081120;
  --panel: #0f1b2d;
  --panel-2: #12233a;
  --border: #1f3655;
  --text: #ebf4ff;
  --muted: #9eb6d3;
  --primary: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-glow: #ff5d5d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: linear-gradient(135deg, #07101d, #0b1630); color: var(--text); }
.hidden { display: none !important; }

.landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(59,130,246,.24), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(16,185,129,.16), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(125,211,252,.12), transparent 30%),
    linear-gradient(135deg, #030916 0%, #07101d 42%, #0a1a39 100%);
}
.landing-shell::before,
.landing-shell::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
  pointer-events: none;
}
.landing-shell::before {
  width: 280px;
  height: 280px;
  left: 8%;
  top: 10%;
  background: rgba(59,130,246,.18);
  animation: floatOrb 12s ease-in-out infinite;
}
.landing-shell::after {
  width: 340px;
  height: 340px;
  right: 8%;
  bottom: 8%;
  background: rgba(16,185,129,.12);
  animation: floatOrb 16s ease-in-out infinite reverse;
}
.landing-card {
  width: min(760px, 100%);
  padding: 34px;
  border-radius: 26px;
  background: rgba(11, 22, 38, .9);
  border: 1px solid rgba(96,165,250,.24);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  text-align: center;
}
.landing-card h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}
.landing-subtitle {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 16px;
}
.landing-language-row {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
}
.landing-language-box {
  width: min(220px, 100%);
  text-align: left;
}
.landing-language-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.portal-intro-card {
  width: min(560px, 100%);
}
.portal-intro-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}
.portal-intro-step {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10,22,39,.96), rgba(8,18,32,.98));
  border: 1px solid rgba(71,104,151,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.portal-intro-step strong {
  display: block;
  margin-bottom: 6px;
  color: #eaf4ff;
}
.portal-intro-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.portal-intro-actions {
  grid-template-columns: 1fr 1fr;
}
.landing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.landing-action {
  min-height: 76px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 18px;
}
.login-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 760px) {
  .landing-card { padding: 24px; }
  .landing-actions,
  .login-form-actions { grid-template-columns: 1fr; }
}

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card, .card, .portal-box, .assistant-box, .kpi, .search-box, .doc-list { background: rgba(15,27,45,.96); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.login-card { width: min(460px, 100%); padding: 28px; }
.eyebrow { color: #7dd3fc; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.stack-md > * + *,.stack-sm > * + * { margin-top: 12px; }
label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: #091321; color: var(--text); }
textarea { min-height: 92px; resize: vertical; }
button {
  border: 1px solid rgba(93,134,188,.22);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease, opacity .22s ease;
  position: relative;
  overflow: hidden;
}
button::before, .file-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.08) 45%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .6s ease;
  pointer-events: none;
}
button:hover::before, .file-btn:hover::before { transform: translateX(130%); }
button:hover, .file-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0,0,0,.22); }
button:active, .file-btn:active { transform: translateY(0); }
button:focus-visible, .file-btn:focus-within { outline: none; border-color: rgba(125,211,252,.72); box-shadow: 0 0 0 3px rgba(59,130,246,.18), 0 12px 24px rgba(0,0,0,.24); }
button.primary { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; border-color: rgba(96,165,250,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(37,99,235,.22); }
button.primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 30px rgba(37,99,235,.28); }
button.ghost, .file-btn { background: linear-gradient(180deg, rgba(19,38,61,.96), rgba(12,25,42,.96)); color: var(--text); border-color: rgba(93,134,188,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
button.danger { background: linear-gradient(180deg, rgba(99,32,41,.22), rgba(66,17,24,.3)); color: #ffd4d4; border-color: rgba(239,68,68,.35); }
.app { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; height: 100vh; overflow: hidden; }
.sidebar { border-right: 1px solid rgba(57,87,129,.38); background: linear-gradient(180deg, rgba(5,14,28,.98), rgba(8,19,37,.96)); display: flex; flex-direction: column; padding: 18px; position: relative; overflow-x: hidden; overflow-y: auto; min-height: 0; }
.sidebar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(59,130,246,.12), transparent 32%), radial-gradient(circle at bottom right, rgba(14,165,233,.08), transparent 28%); pointer-events: none; }
.sidebar > * { position: relative; z-index: 1; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 10px 8px 14px; }
.brand-badge { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #2563eb, #10b981); font-weight: 800; box-shadow: 0 12px 22px rgba(37,99,235,.25); }
.brand-title { font-weight: 800; letter-spacing: .01em; }
.brand-subtitle { color: var(--muted); font-size: 13px; line-height: 1.35; }
.nav { display: flex; flex-direction: column; gap: 10px; }
.nav-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  background: linear-gradient(180deg, rgba(15,30,50,.66), rgba(11,22,38,.72));
  color: var(--text);
  border: 1px solid rgba(71,104,151,.22);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(6px);
}
.nav-tab:hover { border-color: rgba(96,165,250,.38); box-shadow: 0 14px 26px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.03); }
.nav-tab.active {
  background: linear-gradient(135deg, rgba(34,92,192,.3), rgba(13,111,176,.18));
  border-color: rgba(96,165,250,.5);
  box-shadow: 0 16px 32px rgba(14,42,82,.38), inset 0 1px 0 rgba(255,255,255,.05);
  transform: translateY(-1px);
}
.nav-tab__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(14,165,233,.08));
  border: 1px solid rgba(125,211,252,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.nav-tab__icon svg { width: 19px; height: 19px; fill: #d7e8ff; opacity: .95; transition: transform .22s ease, fill .22s ease; }
.nav-tab:hover .nav-tab__icon svg { transform: scale(1.08); fill: #ffffff; }
.nav-tab.active .nav-tab__icon { background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(16,185,129,.14)); border-color: rgba(125,211,252,.26); }
.nav-tab__label { font-weight: 600; letter-spacing: .01em; position: relative; z-index: 1; }
.nav-tab__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 14% 50%, rgba(125,211,252,.12), transparent 35%), linear-gradient(90deg, rgba(59,130,246,.08), transparent 52%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.nav-tab:hover .nav-tab__glow, .nav-tab.active .nav-tab__glow { opacity: 1; }
.sidebar-footer { margin-top: auto; padding-top: 16px; }
.userbox { padding: 13px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(10,22,39,.96), rgba(8,18,32,.98)); border: 1px solid rgba(71,104,151,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
#logoutButton { width: 100%; }
.main { padding: 24px; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; align-self: stretch; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.muted, .hint { color: var(--muted); }
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 10px; }
.grid { display: grid; gap: 16px; }
.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)); }
.kpi-wrap { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.kpi { padding: 16px; }
.kpi .num { font-size: 30px; font-weight: 800; margin-top: 8px; }
.card, .portal-box, .assistant-box, .doc-list, .search-box { padding: 16px; }
.search-box { margin-bottom: 14px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid rgba(158,182,211,.12); vertical-align: top; }
th { color: #b8d0ec; font-size: 13px; position: sticky; top: 0; background: #12233a; }
.badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid transparent; }
.badge.success { background: rgba(16,185,129,.12); color: #b4ffde; border-color: rgba(16,185,129,.3); }
.badge.warning { background: rgba(245,158,11,.12); color: #ffe2b0; border-color: rgba(245,158,11,.32); }
.badge.danger { background: rgba(239,68,68,.12); color: #ffd0d0; border-color: rgba(239,68,68,.32); }
.badge.info { background: rgba(59,130,246,.12); color: #cfe1ff; border-color: rgba(59,130,246,.32); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.error { color: #ffb4b4; }
.donut-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.donut { display: flex; align-items: center; gap: 14px; }
.ring { width: 86px; height: 86px; border-radius: 50%; position: relative; background: conic-gradient(var(--primary) calc(var(--p) * 1%), #16304f 0); }
.ring::after { content: ''; position: absolute; inset: 11px; background: #0f1b2d; border-radius: 50%; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-weight: 700; }
.deadline-urgent { color: var(--danger-glow); text-shadow: 0 0 8px rgba(255,93,93,.7), 0 0 16px rgba(255,93,93,.45); font-weight: 700; }
.doc-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(158,182,211,.12); }
.ai-response { background: #081120; border: 1px solid var(--border); border-radius: 14px; padding: 12px; white-space: pre-wrap; min-height: 220px; }
@media (max-width: 1200px) { .grid-2,.grid-3,.grid-4,.kpi-wrap,.donut-grid { grid-template-columns: 1fr 1fr; } .app { grid-template-columns: 1fr; height: auto; overflow: visible; } .sidebar { border-right: 0; border-bottom: 1px solid var(--border);} }
@media (max-width: 760px) { .grid-2,.grid-3,.grid-4,.kpi-wrap,.donut-grid,.form-grid { grid-template-columns: 1fr; } .topbar { flex-direction: column; align-items: stretch; } }


.clickable-card { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.clickable-card:hover { transform: translateY(-1px); border-color: rgba(59,130,246,.5); box-shadow: 0 16px 28px rgba(0,0,0,.26); }
.scroll-card { max-height: min(70vh, 640px); overflow: auto; }
.scroll-card table { margin-bottom: 0; }
.portal-inline-btn { width: 100%; margin-top: 10px; }
.modal-root { position: fixed; inset: 0; z-index: 2000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(4px); }
.modal-panel { position: relative; margin: 4vh auto; width: min(1100px, calc(100vw - 32px)); max-height: 92vh; overflow: auto; background: rgba(15,27,45,.98); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 20px 48px rgba(0,0,0,.38); padding: 18px; }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; position: sticky; top: 0; background: rgba(15,27,45,.98); z-index: 2; padding-bottom: 10px; }
.modal-body { padding-bottom: 6px; }
.success-text { color: #9ff6c6; }
.danger-kpi { border-color: rgba(255,93,93,.45); box-shadow: 0 0 18px rgba(255,93,93,.18); }
.danger-kpi .num, .danger-kpi div:first-child { color: #ff7f7f; text-shadow: 0 0 10px rgba(255,93,93,.55), 0 0 20px rgba(255,93,93,.35); }
.kpi.clickable-card { appearance: none; text-align: left; color: var(--text); }
.donut.clickable-card { appearance: none; width: 100%; text-align: left; border: 1px solid var(--border); background: transparent; padding: 0; }
.doc-list .scroll-card { max-height: 420px; }

.dashboard-filters { margin-bottom: 16px; }
.dashboard-filters label { min-width: 130px; }
.dashboard-filters select, .dashboard-filters input { min-width: 160px; }
.modal-header .actions { justify-content: flex-end; }
.print-toolbar { margin-bottom: 12px; }

.summary-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.summary-stat { background:#0b1626; border:1px solid rgba(59,130,246,.18); border-radius:16px; padding:14px; }
.summary-stat-label { color:var(--muted); font-size:13px; margin-bottom:8px; }
.summary-stat-value { font-size:28px; font-weight:800; }
.service-filter-bar { margin-bottom:12px; }
.clients-layout { display:grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap:16px; align-items:start; min-width:0; }
.clients-form-card, .clients-table-card { min-width:0; }
.clients-table-card { overflow-x:auto; }
.clients-table-card table { min-width: 860px; }
.client-list-card { max-height: calc(100vh - 180px); }
.client-list-30 { max-height: calc(100vh - 180px); }
.client-list-30 .search-box { position: sticky; top: 0; z-index: 3; background: rgba(15,27,45,.98); padding-bottom: 12px; margin-bottom: 0; }
.client-list-30 .search-box input { width: 100%; min-width: 0; }
.client-list-30 table thead th { top: 56px; }
@media (max-width: 1400px) { .clients-layout { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); } }
@media (max-width: 1200px) { .summary-stat-grid { grid-template-columns:1fr; } .clients-layout { grid-template-columns:1fr; } .client-list-card, .client-list-30 { max-height:min(78vh, 920px); } }


.calendar-toolbar { margin-bottom: 14px; }
.calendar-grid-labels { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; margin-bottom:10px; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; }
.calendar-day { min-height:130px; padding:10px; border-radius:16px; border:1px solid var(--border); background:#0b1626; color:var(--text); text-align:left; display:flex; flex-direction:column; gap:8px; }
.calendar-day:hover { border-color:rgba(59,130,246,.45); transform:translateY(-1px); }
.calendar-day-muted { opacity:.62; }
.calendar-day-today { box-shadow:0 0 0 1px rgba(59,130,246,.55) inset; border-color:rgba(59,130,246,.55); }
.calendar-day-head { display:flex; justify-content:space-between; align-items:center; font-weight:700; }
.calendar-day-count { min-width:22px; height:22px; padding:0 6px; border-radius:999px; display:inline-grid; place-items:center; background:rgba(59,130,246,.18); border:1px solid rgba(59,130,246,.35); font-size:12px; }
.calendar-day-body { display:flex; flex-direction:column; gap:6px; overflow:hidden; }
.calendar-pill { font-size:12px; padding:6px 8px; border-radius:10px; background:rgba(59,130,246,.12); border:1px solid rgba(59,130,246,.2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 1200px) { .calendar-grid, .calendar-grid-labels { grid-template-columns:repeat(7,minmax(90px,1fr)); overflow:auto; } }
@media (max-width: 760px) { .calendar-grid, .calendar-grid-labels { grid-template-columns:repeat(7,minmax(80px,1fr)); } .calendar-day { min-height:110px; } }


.calendar-toolbar { margin-bottom: 14px; }
.calendar-grid-labels { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin-bottom:8px; color:var(--muted); font-size:12px; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.calendar-day { min-height:120px; padding:10px; border-radius:14px; background:#0b1626; border:1px solid var(--border); color:var(--text); text-align:left; }
.calendar-day-muted { opacity:.55; }
.calendar-day-today { border-color: rgba(59,130,246,.65); box-shadow: 0 0 0 1px rgba(59,130,246,.35) inset; }
.calendar-day-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-weight:700; }
.calendar-day-count { color:#7dd3fc; font-size:12px; }
.calendar-day-body { display:grid; gap:6px; }
.calendar-pill { font-size:12px; padding:5px 7px; border-radius:999px; background:rgba(59,130,246,.14); border:1px solid rgba(59,130,246,.28); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 1000px) { .calendar-grid-labels, .calendar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .calendar-grid-labels, .calendar-grid { grid-template-columns: 1fr; } .calendar-day { min-height: unset; } }

body.who-we-are-open { overflow: hidden; }

.login-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(16,185,129,.12), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(125,211,252,.10), transparent 30%),
    linear-gradient(135deg, #040b16 0%, #081120 38%, #0a1b3f 100%);
}
.login-shell::before,
.login-shell::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .8;
  pointer-events: none;
}
.login-shell::before {
  width: 280px;
  height: 280px;
  left: 12%;
  top: 18%;
  background: rgba(59,130,246,.16);
  animation: floatOrb 12s ease-in-out infinite;
}
.login-shell::after {
  width: 360px;
  height: 360px;
  right: 10%;
  bottom: 12%;
  background: rgba(14,165,233,.12);
  animation: floatOrb 15s ease-in-out infinite reverse;
}

.login-card {
  position: relative;
  overflow: hidden;
  width: min(520px, 100%);
  padding: 30px;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(10,20,37,.92), rgba(7,17,32,.96));
}
.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125,211,252,.08), transparent 40%, rgba(59,130,246,.08));
  pointer-events: none;
}
#loginTitle { font-size: clamp(2.2rem, 4vw, 3rem); margin: 10px 0 6px; }
#loginSubtitle { max-width: 40ch; line-height: 1.5; }

.who-we-are-widget { display: flex; justify-content: center; margin: 14px 0 18px; }
.who-we-are-trigger {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18,35,58,.95), rgba(11,28,54,.95));
  border: 1px solid rgba(125,211,252,.26);
  box-shadow: 0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.who-we-are-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(125,211,252,.5);
  box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 0 1px rgba(59,130,246,.18) inset;
}
.who-we-are-trigger__glow {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg, transparent, rgba(125,211,252,.12), transparent 28%, rgba(59,130,246,.08), transparent 50%);
  animation: spinSlow 11s linear infinite;
}
.who-we-are-trigger__icon,
.who-we-are-trigger__content,
.who-we-are-trigger__arrow { position: relative; z-index: 1; }
.who-we-are-trigger__icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(14,165,233,.12));
  border: 1px solid rgba(125,211,252,.18);
}
.who-we-are-trigger__content { display: grid; gap: 4px; text-align: left; }
.who-we-are-trigger__content strong { font-size: 1rem; }
.who-we-are-trigger__content small { color: var(--muted); font-size: .79rem; }
.who-we-are-trigger__arrow {
  font-size: 1.2rem;
  color: #b6dbff;
  transition: transform .24s ease;
}
.who-we-are-trigger:hover .who-we-are-trigger__arrow { transform: translate(3px, -3px); }
.law-balance-icon { position: relative; width: 42px; height: 36px; animation: lawSwing 2.8s ease-in-out infinite; }
.law-balance-icon .pole { position: absolute; left: 20px; top: 4px; width: 3px; height: 24px; background: #9ed8ff; border-radius: 4px; }
.law-balance-icon .beam { position: absolute; left: 6px; top: 8px; width: 30px; height: 2px; background: #9ed8ff; border-radius: 4px; }
.law-balance-icon .base { position: absolute; left: 9px; bottom: 1px; width: 24px; height: 3px; background: #9ed8ff; border-radius: 4px; }
.law-balance-icon .rope-l,.law-balance-icon .rope-r { position: absolute; top: 10px; width: 1px; height: 12px; background: #9ed8ff; }
.law-balance-icon .rope-l { left: 10px; }
.law-balance-icon .rope-r { right: 10px; }
.law-balance-icon .pan-l,.law-balance-icon .pan-r { position: absolute; top: 22px; width: 11px; height: 6px; border: 1.5px solid #9ed8ff; border-top: none; border-radius: 0 0 8px 8px; }
.law-balance-icon .pan-l { left: 4px; }
.law-balance-icon .pan-r { right: 4px; }

.who-we-are-root {
  position: fixed;
  inset: 0;
  z-index: 4000;
}
.who-we-are-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,8,18,.76);
  backdrop-filter: blur(10px);
}
.who-we-are-shell {
  position: relative;
  width: min(1500px, calc(100vw - 24px));
  height: min(94vh, 1100px);
  margin: 3vh auto;
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(125,211,252,.14);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.16), transparent 28%),
    radial-gradient(circle at top right, rgba(14,165,233,.12), transparent 28%),
    linear-gradient(180deg, #050d18 0%, #071222 34%, #091a31 100%);
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.who-we-are-experience {
  position: relative;
  min-height: 100%;
  padding: 30px;
  overflow: hidden;
}
.who-we-are-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(8,17,32,.82);
  border: 1px solid rgba(125,211,252,.16);
  backdrop-filter: blur(12px);
}
.who-ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: .45;
  pointer-events: none;
}
.who-ambient--1 { width: 280px; height: 280px; top: 100px; right: -50px; background: rgba(59,130,246,.2); animation: floatOrb 16s ease-in-out infinite; }
.who-ambient--2 { width: 240px; height: 240px; bottom: 120px; left: -40px; background: rgba(16,185,129,.14); animation: floatOrb 18s ease-in-out infinite reverse; }
.who-ambient--3 { width: 180px; height: 180px; top: 45%; left: 55%; background: rgba(125,211,252,.12); animation: pulseGlow 8s ease-in-out infinite; }

.who-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: center;
  padding: 8px 0 30px;
}
.who-hero__copy { position: relative; z-index: 1; }
.who-hero__eyebrow,
.who-copy-block__eyebrow,
.who-panel-card__label,
.who-timeline-step__index,
.who-pillar-card__index {
  color: #84d8ff;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
}
.who-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .98;
  max-width: 11ch;
}
.who-hero p,
.who-copy-block p,
.who-panel-card p,
.who-pillar-card p,
.who-timeline-step p { color: #c1d5eb; line-height: 1.7; }
.who-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 24px; }
.who-hero__ghost { background: rgba(18,35,58,.72); }
.who-stat-grid,
.who-panel-grid,
.who-pillar-grid {
  display: grid;
  gap: 16px;
}
.who-stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 760px; }
.who-stat-card,
.who-panel-card,
.who-pillar-card,
.who-gallery-card,
.who-timeline-step__content,
.who-mobile-mockup__screen {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,29,49,.88), rgba(8,18,35,.84));
  border: 1px solid rgba(125,211,252,.12);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.who-stat-card { padding: 18px; display: grid; gap: 6px; }
.who-stat-card strong { font-size: clamp(1.3rem, 3vw, 2.15rem); }
.who-stat-card span { color: var(--muted); }
.who-hero__visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.who-hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
}
.who-hero-orb--a { width: 220px; height: 220px; background: rgba(59,130,246,.28); top: 30px; right: 30px; animation: pulseGlow 7s ease-in-out infinite; }
.who-hero-orb--b { width: 180px; height: 180px; background: rgba(16,185,129,.18); bottom: 40px; left: 20px; animation: floatOrb 14s ease-in-out infinite; }
.who-hero-glass {
  position: relative;
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  transform: perspective(1200px) rotateY(-9deg) rotateX(4deg);
}
.who-hero-glass img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: 24px;
}
.who-hero-glass__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 35%, transparent 65%, rgba(255,255,255,.05));
  pointer-events: none;
}
.who-hero-glass__card {
  position: absolute;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7,17,32,.82);
  border: 1px solid rgba(125,211,252,.18);
  color: #eaf4ff;
  backdrop-filter: blur(12px);
}
.who-hero-glass__card--top { top: 28px; left: -26px; animation: floatPanel 10s ease-in-out infinite; }
.who-hero-glass__card--bottom { right: -22px; bottom: 30px; animation: floatPanel 11s ease-in-out infinite reverse; }

.who-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(8,17,32,.72);
  border: 1px solid rgba(125,211,252,.1);
  backdrop-filter: blur(16px);
}
.who-nav-pill {
  background: transparent;
  color: #dbeafe;
  border: 1px solid rgba(125,211,252,.1);
  border-radius: 999px;
  padding: 10px 16px;
}
.who-nav-pill.active {
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(14,165,233,.18));
  border-color: rgba(125,211,252,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.who-subscreen { display: none; animation: panelReveal .45s ease; }
.who-subscreen.active { display: block; }
.who-panel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.who-panel-card,
.who-pillar-card { padding: 22px; }
.who-bullet-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.who-bullet-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,.14);
  color: #d7ebff;
  border: 1px solid rgba(125,211,252,.14);
  font-size: .88rem;
}
.who-copy-block { max-width: 760px; margin-bottom: 20px; }
.who-copy-block h2 { margin: 12px 0; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.who-pillar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.who-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 16px;
}
.who-gallery-card { min-height: 280px; }
.who-gallery-card--1 { grid-row: span 2; min-height: 580px; }
.who-gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-timeline { display: grid; gap: 16px; }
.who-timeline-step { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.who-timeline-step__dot {
  width: 14px;
  height: 14px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 0 0 6px rgba(59,130,246,.12);
}
.who-timeline-step__content { padding: 18px 20px; }
.who-timeline-step__content h3 { margin: 8px 0; }
.who-mobile-mockup {
  display: grid;
  place-items: center;
  padding: 10px 0 24px;
}
.who-mobile-mockup__screen {
  width: min(320px, 100%);
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(9,19,34,.98), rgba(11,28,54,.95));
}
.who-mobile-mockup__header,
.who-mobile-mockup__card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(14,165,233,.08));
  border: 1px solid rgba(125,211,252,.1);
}
.who-mobile-mockup__header { height: 34px; margin-bottom: 14px; }
.who-mobile-mockup__card { height: 76px; margin-bottom: 12px; }
.who-mobile-mockup__card--hero { height: 160px; }
.who-mobile-mockup__card--wide { height: 110px; }
.who-mobile-mockup__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

.panel-enter { animation: panelReveal .5s ease both; }

@keyframes lawSwing { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes floatOrb { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(10px,-18px,0) scale(1.06); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseGlow { 0%,100% { transform: scale(1); opacity: .38; } 50% { transform: scale(1.12); opacity: .58; } }
@keyframes floatPanel { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes panelReveal { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1100px) {
  .who-hero,
  .who-panel-grid,
  .who-pillar-grid,
  .who-gallery-grid,
  .who-stat-grid { grid-template-columns: 1fr; }
  .who-gallery-card--1 { grid-row: auto; min-height: 360px; }
  .who-hero__visual { min-height: 420px; }
  .who-hero-glass { transform: none; }
}

@media (max-width: 760px) {
  .login-shell { padding: 16px; }
  .login-card { padding: 22px; border-radius: 22px; }
  .who-we-are-shell { width: calc(100vw - 12px); height: calc(100vh - 12px); margin: 6px auto; border-radius: 24px; }
  .who-we-are-experience { padding: 18px; }
  .who-hero h1 { max-width: 100%; }
  .who-sticky-nav { top: 0; overflow-x: auto; flex-wrap: nowrap; }
  .who-nav-pill { white-space: nowrap; }
  .who-we-are-trigger { grid-template-columns: auto 1fr; }
  .who-we-are-trigger__arrow { display: none; }
}


.who-bg-photo-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,10,20,.78) 0%, rgba(4,12,24,.84) 34%, rgba(5,16,31,.92) 100%),
    url('/who-we-are-assets/foto%20de%20fondo.jpg') center/cover no-repeat;
  opacity: .92;
  pointer-events: none;
}
.who-bg-photo-shell > * { position: relative; z-index: 1; }
.who-mobile-photo-hero { display: none; }
.who-animated-headline span {
  display: inline-block;
  margin-right: .22em;
  text-shadow: 0 8px 26px rgba(14,165,233,.22), 0 0 18px rgba(59,130,246,.18);
  animation: whoWordFloat 5.8s ease-in-out infinite;
  animation-delay: calc(var(--word-index) * .12s);
}
@keyframes whoWordFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.who-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 46px;
}
.who-contact-stack { display: grid; gap: 12px; margin-top: 18px; }
.who-contact-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #eef7ff;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8,17,32,.72);
  border: 1px solid rgba(125,211,252,.16);
}
.who-contact-address {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8,17,32,.54);
  border: 1px solid rgba(125,211,252,.1);
  color: #d7ebff;
  line-height: 1.6;
}
.who-gallery-grid--floating { align-items: stretch; }
.who-gallery-card--floating {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(125,211,252,.18);
  transform-origin: center center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.who-gallery-card--floating::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,12,23,.72) 100%);
}
.who-gallery-card--floating:hover {
  transform: translateY(-8px) scale(1.015) rotate(0deg) !important;
  border-color: rgba(125,211,252,.38);
  box-shadow: 0 26px 60px rgba(0,0,0,.34);
}
.who-gallery-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px;
  color: #fff;
}
.who-gallery-card__overlay strong { font-size: 1rem; }
.who-gallery-card__overlay small { color: #c9e7ff; }
.who-gallery-card--1 { animation: whoCardFloatA 8s ease-in-out infinite; }
.who-gallery-card--2 { animation: whoCardFloatB 9s ease-in-out infinite; }
.who-gallery-card--3 { animation: whoCardFloatC 8.4s ease-in-out infinite; }
.who-gallery-card--4 { animation: whoCardFloatD 9.4s ease-in-out infinite; }
.who-gallery-card--5 { animation: whoCardFloatE 7.7s ease-in-out infinite; }
.who-gallery-card--6 { animation: whoCardFloatF 8.8s ease-in-out infinite; }
.who-gallery-card--7 { animation: whoCardFloatG 9.1s ease-in-out infinite; }
@keyframes whoCardFloatA { 0%,100%{ transform: translateY(0) rotate(-1.2deg);} 50%{ transform: translateY(-10px) rotate(1.3deg);} }
@keyframes whoCardFloatB { 0%,100%{ transform: translateY(0) rotate(1.5deg);} 50%{ transform: translateY(-12px) rotate(-1deg);} }
@keyframes whoCardFloatC { 0%,100%{ transform: translateY(0) rotate(-.8deg);} 50%{ transform: translateY(-9px) rotate(1deg);} }
@keyframes whoCardFloatD { 0%,100%{ transform: translateY(0) rotate(1deg);} 50%{ transform: translateY(-11px) rotate(-1.2deg);} }
@keyframes whoCardFloatE { 0%,100%{ transform: translateY(0) rotate(-1deg);} 50%{ transform: translateY(-8px) rotate(.8deg);} }
@keyframes whoCardFloatF { 0%,100%{ transform: translateY(0) rotate(.8deg);} 50%{ transform: translateY(-10px) rotate(-1deg);} }
@keyframes whoCardFloatG { 0%,100%{ transform: translateY(0) rotate(-1.4deg);} 50%{ transform: translateY(-12px) rotate(1.1deg);} }
.who-detail-stage {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
.who-detail-card {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
}
.who-detail-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1100px) {
  .who-detail-stage { grid-template-columns: 1fr; }
}


/* Who we are mobile background fit + luminous titles */
.who-bg-photo-shell::before {
  background-position: center center, center top;
  background-size: cover, cover;
}
.who-hero h1,
.who-copy-block h2,
.who-panel-card h3,
.who-timeline-step__content h3,
.who-gallery-card__overlay strong,
.who-detail-stage h2,
.who-contact-link span,
.who-contact-address strong,
.who-hero__eyebrow,
.who-copy-block__eyebrow,
.who-panel-card__label {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,.55), 0 0 24px rgba(125,211,252,.32), 0 0 42px rgba(59,130,246,.24);
}
.who-animated-headline span {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,.62), 0 0 28px rgba(125,211,252,.36), 0 0 52px rgba(59,130,246,.28);
}
.who-hero p,
.who-copy-block p,
.who-panel-card p,
.who-pillar-card p,
.who-timeline-step p,
.who-contact-address,
.who-gallery-card__overlay small {
  color: #f4fbff;
  text-shadow: 0 0 8px rgba(255,255,255,.18), 0 0 20px rgba(125,211,252,.12);
}

@media (max-width: 760px) {
  .who-loading-overlay__panel {
    width: min(100%, calc(100vw - 24px));
    padding: 24px 14px 20px;
  }
  .who-showcase-stage {
    min-height: 390px;
  }
  .who-showcase-stage__ring {
    width: 180px;
    height: 180px;
  }
  .who-showcase-card {
    width: 132px;
  }
  .who-showcase-card__image-wrap {
    height: 122px;
  }
  .who-showcase-card--1 { transform: translate3d(-120px, -48px, 8px) rotateY(18deg) rotateX(8deg) rotateZ(-9deg); }
  .who-showcase-card--2 { transform: translate3d(-62px, -114px, 54px) rotateY(10deg) rotateX(9deg) rotateZ(-4deg); }
  .who-showcase-card--3 { transform: translate3d(-8px, -64px, 100px) rotateY(0deg) rotateX(4deg) rotateZ(0deg); }
  .who-showcase-card--4 { transform: translate3d(56px, -112px, 48px) rotateY(-10deg) rotateX(9deg) rotateZ(4deg); }
  .who-showcase-card--5 { transform: translate3d(112px, -44px, 6px) rotateY(-18deg) rotateX(8deg) rotateZ(9deg); }
  @keyframes whoShowcaseCard1 {
    0%,100% { transform: translate3d(-120px, -48px, 8px) rotateY(18deg) rotateX(8deg) rotateZ(-9deg); }
    50% { transform: translate3d(-134px, -62px, 28px) rotateY(24deg) rotateX(10deg) rotateZ(-12deg); }
  }
  @keyframes whoShowcaseCard2 {
    0%,100% { transform: translate3d(-62px, -114px, 54px) rotateY(10deg) rotateX(9deg) rotateZ(-4deg); }
    50% { transform: translate3d(-76px, -130px, 84px) rotateY(15deg) rotateX(12deg) rotateZ(-8deg); }
  }
  @keyframes whoShowcaseCard3 {
    0%,100% { transform: translate3d(-8px, -64px, 100px) rotateY(0deg) rotateX(4deg) rotateZ(0deg); }
    50% { transform: translate3d(-8px, -80px, 132px) rotateY(0deg) rotateX(7deg) rotateZ(0deg); }
  }
  @keyframes whoShowcaseCard4 {
    0%,100% { transform: translate3d(56px, -112px, 48px) rotateY(-10deg) rotateX(9deg) rotateZ(4deg); }
    50% { transform: translate3d(72px, -128px, 78px) rotateY(-15deg) rotateX(12deg) rotateZ(8deg); }
  }
  @keyframes whoShowcaseCard5 {
    0%,100% { transform: translate3d(112px, -44px, 6px) rotateY(-18deg) rotateX(8deg) rotateZ(9deg); }
    50% { transform: translate3d(126px, -58px, 28px) rotateY(-24deg) rotateX(10deg) rotateZ(12deg); }
  }
}

@media (max-width: 760px) {
  .who-bg-photo-shell::before {
    background-position: center center, center top;
    background-size: cover, 100% auto;
    opacity: .98;
  }
  .who-we-are-shell {
    background:
      radial-gradient(circle at top left, rgba(59,130,246,.16), transparent 30%),
      radial-gradient(circle at top right, rgba(14,165,233,.12), transparent 30%),
      linear-gradient(180deg, #050d18 0%, #071222 34%, #091a31 100%);
  }
  .who-hero {
    gap: 18px;
    padding-bottom: 18px;
  }
  .who-hero__visual {
    min-height: 280px;
  }
  .who-hero-glass {
    width: min(100%, 360px);
    padding: 10px;
    border-radius: 24px;
  }
  .who-hero-glass img {
    aspect-ratio: 4 / 5;
    object-position: center top;
    border-radius: 18px;
  }
  .who-hero-glass__card--top {
    top: 12px;
    left: 10px;
  }
  .who-hero-glass__card--bottom {
    right: 10px;
    bottom: 12px;
  }
}



/* REAL mobile fix for Who we are:
   1) photo lives at the top of the shell
   2) tabs sit immediately after the photo
   3) active panel content starts immediately after tabs
   4) no desktop visual block can add height on phone
   5) service card labels/titles stay aligned
*/
@media (max-width: 760px) {
  .who-we-are-shell {
    overflow-y: auto !important;
  }

  .who-we-are-experience.who-bg-photo-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 18px 18px 22px !important;
    min-height: auto !important;
  }

  .who-bg-photo-shell {
    position: relative !important;
  }

  .who-bg-photo-shell::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 250px !important;
    background:
      linear-gradient(180deg, rgba(3,10,20,.18) 0%, rgba(3,10,20,.30) 42%, rgba(4,12,24,.62) 76%, rgba(5,16,31,.96) 100%),
      url('/who-we-are-assets/foto%20de%20fondo.jpg') center top / cover no-repeat !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  .who-bg-photo-shell > * {
    position: relative !important;
    z-index: 1 !important;
  }

  .who-we-are-close {
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;
    margin: 0 !important;
    z-index: 25 !important;
  }

  .who-sticky-nav {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    margin: 222px 0 8px !important;
    padding: 12px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    z-index: 20 !important;
  }

  .who-subscreen,
  .who-subscreen.active {
    order: 3 !important;
    margin: 0 !important;
    padding: 0 !important;
    animation: none !important;
  }

  .who-copy-block,
  .who-copy-block__eyebrow,
  .who-copy-block h1,
  .who-copy-block h2,
  .who-copy-block h3,
  .who-copy-block p {
    margin-top: 0 !important;
  }

  /* Overview / hero block must become text-only on phone */
  #whoPanel-overview .who-hero,
  .who-subscreen .who-hero {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    align-items: start !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  #whoPanel-overview .who-hero__visual,
  #whoPanel-overview .who-hero-glass,
  #whoPanel-overview .who-hero-orb,
  #whoPanel-overview .who-mobile-mockup,
  #whoPanel-overview .who-stat-grid,
  .who-subscreen .who-hero__visual,
  .who-subscreen .who-hero-glass,
  .who-subscreen .who-hero-orb,
  .who-subscreen .who-mobile-mockup {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .who-hero__copy,
  #whoPanel-overview .who-hero__copy {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .who-hero__eyebrow,
  .who-hero h1,
  .who-hero h2,
  .who-hero h3,
  .who-hero p {
    margin-top: 0 !important;
  }

  .who-hero h1,
  .who-copy-block h2 {
    margin-bottom: 12px !important;
  }

  .who-panel-grid,
  .who-pillar-grid,
  .who-service-highlight-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 14px !important;
  }

  .who-panel-card,
  .who-pillar-card,
  .who-service-highlight-card {
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
  }

  .who-panel-card__label,
  .who-pillar-card__index,
  .who-service-highlight-card__label {
    display: block !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  .who-panel-card h3,
  .who-pillar-card h3,
  .who-service-highlight-card h3 {
    margin: 0 !important;
    line-height: 1.15 !important;
  }

  .who-panel-card p,
  .who-pillar-card p,
  .who-service-highlight-card p {
    margin: 0 !important;
  }
}


/* FINAL PHONE-ONLY FIX:
   Use the Who We Are image as a normal top photo instead of a background layer.
   Desktop stays unchanged.
*/
@media (max-width: 760px) {
  .who-we-are-shell {
    width: calc(100vw - 12px) !important;
    height: calc(100vh - 12px) !important;
    margin: 6px auto !important;
    overflow-y: auto !important;
  }

  .who-we-are-experience.who-bg-photo-shell {
    display: block !important;
    min-height: auto !important;
    padding: 18px 18px 22px !important;
    overflow: visible !important;
  }

  .who-bg-photo-shell::before {
    display: none !important;
    content: none !important;
  }

  .who-ambient,
  .who-hero-orb,
  .who-hero-glass__card--top,
  .who-hero-glass__card--bottom {
    display: none !important;
  }

  .who-mobile-photo-hero {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    margin: 0 0 12px !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    border: 1px solid rgba(125,211,252,.14) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.28) !important;
    background: linear-gradient(180deg, rgba(3,10,20,.08) 0%, rgba(3,10,20,.16) 35%, rgba(4,12,24,.52) 100%) !important;
  }

  .who-mobile-photo-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,10,20,.08) 0%, rgba(3,10,20,.18) 48%, rgba(4,12,24,.58) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .who-mobile-photo-hero__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 26px !important;
  }

  .who-we-are-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 30 !important;
  }

  .who-sticky-nav {
    position: relative !important;
    top: auto !important;
    margin: 0 0 14px !important;
    padding: 10px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    z-index: 5 !important;
  }

  .who-subscreen,
  .who-subscreen.active {
    margin: 0 !important;
    padding: 0 !important;
    animation: none !important;
  }

  .who-hero {
    display: block !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
  }

  .who-hero__copy {
    margin: 0 !important;
    padding: 0 !important;
  }

  .who-hero__visual {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .who-panel-grid,
  .who-pillar-grid,
  .who-gallery-grid,
  .who-stat-grid,
  .who-contact-grid,
  .who-detail-stage {
    grid-template-columns: 1fr !important;
  }

  .who-copy-block,
  .who-panel-card,
  .who-pillar-card,
  .who-contact-card,
  .who-gallery-card,
  .who-detail-card {
    margin-top: 0 !important;
  }
}
/* Who We Are - icons for Call and Map links */
.who-cta-link,
.who-contact-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.who-cta-link[href^="tel:"]::before,
.who-contact-link[href^="tel:"]::before {
  content: "📞";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.who-cta-link[href*="google.com/maps"]::before,
.who-contact-link[href*="google.com/maps"]::before,
.who-cta-link[href*="maps.apple.com"]::before,
.who-contact-link[href*="maps.apple.com"]::before {
  content: "📍";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* slightly nicer spacing in hero buttons */
.who-hero__actions .who-cta-link {
  padding-left: 14px;
  padding-right: 14px;
}

/* contact panel buttons */
.who-contact-link::before {
  min-width: 18px;
}

/* mobile tune */
@media (max-width: 760px) {
  .who-cta-link,
  .who-contact-link {
    gap: 8px;
  }

  .who-cta-link[href^="tel:"]::before,
  .who-contact-link[href^="tel:"]::before,
  .who-cta-link[href*="google.com/maps"]::before,
  .who-contact-link[href*="google.com/maps"]::before,
  .who-cta-link[href*="maps.apple.com"]::before,
  .who-contact-link[href*="maps.apple.com"]::before {
    font-size: 0.95rem;
  }
}
/* ===== Who We Are - luminous button animations ===== */

.who-cta-link,
.who-contact-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  animation: whoButtonFloat 3.2s ease-in-out infinite;
}

/* base glow */
.who-cta-link::after,
.who-contact-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.28), rgba(16,185,129,0.12), transparent 72%);
  opacity: 0.8;
  filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* animated shine sweep */
.who-cta-link::selection,
.who-contact-link::selection {
  background: rgba(255,255,255,0.2);
}

.who-cta-link > *,
.who-contact-link > * {
  position: relative;
  z-index: 2;
}

.who-cta-link::before,
.who-contact-link::before {
  transition: transform 0.25s ease;
}

/* light streak */
.who-cta-link span,
.who-contact-link span {
  position: relative;
}

.who-cta-link .btn-shine,
.who-contact-link .btn-shine {
  display: none;
}

/* hover state */
.who-cta-link:hover,
.who-contact-link:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(125,211,252,0.28),
    0 0 18px rgba(59,130,246,0.22),
    0 0 34px rgba(16,185,129,0.16),
    0 12px 28px rgba(0,0,0,0.24);
}

.who-cta-link:hover::after,
.who-contact-link:hover::after {
  opacity: 1;
  transform: scale(1.03);
}

.who-cta-link:hover::before,
.who-contact-link:hover::before {
  transform: scale(1.12);
}

/* click */
.who-cta-link:active,
.who-contact-link:active {
  transform: translateY(0) scale(0.985);
}

/* stronger luminous colors for phone + map */
.who-cta-link[href^="tel:"],
.who-contact-link[href^="tel:"] {
  border-color: rgba(59,130,246,0.35) !important;
  box-shadow:
    inset 0 0 0 1px rgba(125,211,252,0.06),
    0 0 14px rgba(59,130,246,0.14);
}

.who-cta-link[href^="tel:"]:hover,
.who-contact-link[href^="tel:"]:hover {
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(59,130,246,0.26)) !important;
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255,255,255,0.26);
}

.who-cta-link[href*="google.com/maps"],
.who-contact-link[href*="google.com/maps"],
.who-cta-link[href*="maps.apple.com"],
.who-contact-link[href*="maps.apple.com"] {
  border-color: rgba(16,185,129,0.34) !important;
  box-shadow:
    inset 0 0 0 1px rgba(110,231,183,0.06),
    0 0 14px rgba(16,185,129,0.13);
}

.who-cta-link[href*="google.com/maps"]:hover,
.who-contact-link[href*="google.com/maps"]:hover,
.who-cta-link[href*="maps.apple.com"]:hover,
.who-contact-link[href*="maps.apple.com"]:hover {
  background: linear-gradient(135deg, rgba(5,150,105,0.2), rgba(16,185,129,0.24)) !important;
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255,255,255,0.24);
}

/* subtle pulse */
@keyframes whoButtonFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
}

/* optional glow pulse for stronger premium feel */
@keyframes whoGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.04),
      0 0 10px rgba(59,130,246,0.10),
      0 0 20px rgba(16,185,129,0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.08),
      0 0 16px rgba(59,130,246,0.16),
      0 0 28px rgba(16,185,129,0.14);
  }
}

.who-cta-link,
.who-contact-link {
  animation:
    whoButtonFloat 3.2s ease-in-out infinite,
    whoGlowPulse 2.8s ease-in-out infinite;
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .who-cta-link,
  .who-contact-link {
    animation: none;
    transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .who-cta-link::after,
  .who-contact-link::after {
    transition: none;
  }
}

/* ===== Corrected Who We Are PC fullscreen + Services gallery refinement ===== */
@media (min-width: 761px) {
  .who-we-are-shell {
    width: calc(100vw - 12px) !important;
    height: calc(100vh - 12px) !important;
    margin: 6px auto !important;
    border-radius: 24px !important;
  }

  #whoPanel-gallery .who-copy-block {
    max-width: 980px;
    margin-bottom: 16px;
  }

  #whoPanel-gallery .who-gallery-grid,
  #whoPanel-gallery .who-gallery-grid--floating {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
  }

  #whoPanel-gallery .who-gallery-card,
  #whoPanel-gallery .who-gallery-card--floating {
    min-height: 220px !important;
    height: 220px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
  }

  #whoPanel-gallery .who-gallery-card--1 {
    grid-row: auto !important;
    min-height: 220px !important;
    height: 220px !important;
  }

  #whoPanel-gallery .who-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .55s ease, filter .55s ease;
  }

  #whoPanel-gallery .who-gallery-card::before,
  #whoPanel-gallery .who-gallery-card--floating::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125,211,252,.16), transparent 30%, transparent 70%, rgba(59,130,246,.14));
    opacity: .7;
    pointer-events: none;
    z-index: 1;
  }

  #whoPanel-gallery .who-gallery-card__overlay {
    z-index: 2;
    padding: 14px !important;
    gap: 3px !important;
    background: linear-gradient(180deg, rgba(4,10,20,0) 0%, rgba(4,10,20,.18) 18%, rgba(4,10,20,.84) 100%);
  }

  #whoPanel-gallery .who-gallery-card__overlay strong {
    font-size: .92rem !important;
    line-height: 1.15;
  }

  #whoPanel-gallery .who-gallery-card__overlay small {
    font-size: .74rem !important;
    line-height: 1.25;
  }

  #whoPanel-gallery .who-gallery-card--floating:hover,
  #whoPanel-gallery .who-gallery-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    border-color: rgba(125,211,252,.42) !important;
    box-shadow: 0 24px 52px rgba(0,0,0,.34), 0 0 0 1px rgba(125,211,252,.12) inset !important;
  }

  #whoPanel-gallery .who-gallery-card:hover img,
  #whoPanel-gallery .who-gallery-card--floating:hover img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
  }

  #whoPanel-gallery .who-gallery-card--1 { animation: whoSvcFloatA 8.5s ease-in-out infinite !important; }
  #whoPanel-gallery .who-gallery-card--2 { animation: whoSvcFloatB 9.2s ease-in-out infinite !important; }
  #whoPanel-gallery .who-gallery-card--3 { animation: whoSvcFloatC 8.8s ease-in-out infinite !important; }
  #whoPanel-gallery .who-gallery-card--4 { animation: whoSvcFloatD 9.6s ease-in-out infinite !important; }
  #whoPanel-gallery .who-gallery-card--5 { animation: whoSvcFloatE 8.1s ease-in-out infinite !important; }
  #whoPanel-gallery .who-gallery-card--6 { animation: whoSvcFloatF 9.4s ease-in-out infinite !important; }
  #whoPanel-gallery .who-gallery-card--7 { animation: whoSvcFloatG 8.9s ease-in-out infinite !important; }
}

@keyframes whoSvcFloatA { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-8px) rotate(.6deg); } }
@keyframes whoSvcFloatB { 0%,100% { transform: translateY(0) rotate(.5deg); } 50% { transform: translateY(-10px) rotate(-.5deg); } }
@keyframes whoSvcFloatC { 0%,100% { transform: translateY(0) rotate(-.35deg); } 50% { transform: translateY(-7px) rotate(.45deg); } }
@keyframes whoSvcFloatD { 0%,100% { transform: translateY(0) rotate(.45deg); } 50% { transform: translateY(-9px) rotate(-.45deg); } }
@keyframes whoSvcFloatE { 0%,100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-8px) rotate(.4deg); } }
@keyframes whoSvcFloatF { 0%,100% { transform: translateY(0) rotate(.35deg); } 50% { transform: translateY(-9px) rotate(-.35deg); } }
@keyframes whoSvcFloatG { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-8px) rotate(.5deg); } }

@media (max-width: 760px) {
  #whoPanel-gallery .who-gallery-grid,
  #whoPanel-gallery .who-gallery-grid--floating {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #whoPanel-gallery .who-gallery-card,
  #whoPanel-gallery .who-gallery-card--floating,
  #whoPanel-gallery .who-gallery-card--1 {
    min-height: 260px !important;
    height: auto !important;
  }
}


/* ===== ULTRA PREMIUM LOGIN BACKGROUND ENHANCEMENT (NON-BREAKING) ===== */
@keyframes loginGradientMovePremium {
  0% {
    background-position: 0% 50%, 100% 50%, 50% 100%, 0% 0%;
  }
  25% {
    background-position: 30% 40%, 85% 20%, 55% 85%, 20% 10%;
  }
  50% {
    background-position: 100% 50%, 0% 50%, 50% 0%, 100% 100%;
  }
  75% {
    background-position: 70% 65%, 15% 80%, 45% 15%, 80% 90%;
  }
  100% {
    background-position: 0% 50%, 100% 50%, 50% 100%, 0% 0%;
  }
}

@keyframes premiumParticleDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .18; }
  25% { transform: translate3d(16px, -22px, 0) scale(1.06); opacity: .26; }
  50% { transform: translate3d(32px, -8px, 0) scale(.96); opacity: .16; }
  75% { transform: translate3d(10px, 14px, 0) scale(1.04); opacity: .24; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: .18; }
}

@keyframes premiumParticleDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .15; }
  20% { transform: translate3d(-12px, -18px, 0) scale(1.05); opacity: .22; }
  50% { transform: translate3d(-28px, 12px, 0) scale(.94); opacity: .14; }
  80% { transform: translate3d(-10px, 24px, 0) scale(1.03); opacity: .2; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: .15; }
}

@keyframes premiumLightSweep {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  12% { opacity: .22; }
  30% { transform: translateX(160%) skewX(-18deg); opacity: .1; }
  100% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
}

@keyframes premiumCardFloat {
  0%, 100% { transform: translateY(0px); box-shadow: 0 18px 42px rgba(0,0,0,.24); }
  50% { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(0,0,0,.3); }
}

@keyframes premiumAuraPulse {
  0%, 100% { opacity: .42; filter: blur(34px); }
  50% { opacity: .66; filter: blur(44px); }
}

.login-shell {
  background-size: 220% 220%;
  animation: loginGradientMovePremium 22s ease-in-out infinite;
  isolation: isolate;
}

.login-shell::before,
.login-shell::after {
  z-index: 0;
}

.login-shell::before {
  animation: floatOrb 12s ease-in-out infinite, premiumParticleDriftA 18s ease-in-out infinite;
}

.login-shell::after {
  animation: floatOrb 15s ease-in-out infinite reverse, premiumParticleDriftB 20s ease-in-out infinite;
}

.login-shell .login-premium-particles,
.login-shell .login-premium-particles::before,
.login-shell .login-premium-particles::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-shell .login-premium-particles {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 72%, rgba(125,211,252,.16) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 28% 32%, rgba(255,255,255,.08) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 82%, rgba(96,165,250,.14) 0 1.4px, transparent 2.6px),
    radial-gradient(circle at 58% 24%, rgba(255,255,255,.09) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 64%, rgba(125,211,252,.16) 0 1.1px, transparent 2.2px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.07) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 78%, rgba(96,165,250,.16) 0 1.4px, transparent 2.6px),
    radial-gradient(circle at 92% 42%, rgba(255,255,255,.08) 0 1px, transparent 2px);
  opacity: .9;
  animation: premiumParticleDriftA 24s ease-in-out infinite;
}

.login-shell .login-premium-particles::before {
  background:
    radial-gradient(circle at 10% 52%, rgba(255,255,255,.06) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 12%, rgba(125,211,252,.1) 0 1.1px, transparent 2.2px),
    radial-gradient(circle at 36% 56%, rgba(255,255,255,.06) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 14%, rgba(96,165,250,.12) 0 1.3px, transparent 2.4px),
    radial-gradient(circle at 68% 88%, rgba(255,255,255,.06) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 36%, rgba(125,211,252,.1) 0 1.1px, transparent 2.2px);
  animation: premiumParticleDriftB 28s ease-in-out infinite;
  opacity: .78;
}

.login-shell .login-premium-particles::after {
  inset: auto;
  left: 8%;
  right: 8%;
  top: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.18), transparent);
  box-shadow:
    0 120px 0 rgba(125,211,252,.10),
    0 240px 0 rgba(125,211,252,.07),
    0 360px 0 rgba(125,211,252,.08),
    0 480px 0 rgba(125,211,252,.06);
  opacity: .55;
  filter: blur(.2px);
}

.login-card {
  animation: premiumCardFloat 10s ease-in-out infinite;
  box-shadow:
    0 18px 42px rgba(0,0,0,.24),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 30px rgba(59,130,246,.08);
  z-index: 1;
}

.login-card::after {
  content: '';
  position: absolute;
  top: -18%;
  bottom: -18%;
  width: 32%;
  left: -40%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.02) 20%,
    rgba(125,211,252,.18) 50%,
    rgba(255,255,255,.03) 80%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: premiumLightSweep 8.5s ease-in-out infinite;
}

.login-card .login-card-aura {
  position: absolute;
  inset: auto;
  width: 200px;
  height: 200px;
  right: -70px;
  bottom: -70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,.26), rgba(14,165,233,.12), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: premiumAuraPulse 7s ease-in-out infinite;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .login-shell {
    background-size: 240% 240%;
    animation-duration: 24s;
  }

  .login-shell .login-premium-particles::after {
    display: none;
  }

  .login-card::after {
    animation-duration: 10s;
    opacity: .8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell,
  .login-shell::before,
  .login-shell::after,
  .login-shell .login-premium-particles,
  .login-shell .login-premium-particles::before,
  .login-card,
  .login-card::after,
  .login-card .login-card-aura {
    animation: none !important;
  }
}


/* Fallback if no helper elements are injected */
.login-shell:not(.premium-login-ready) {
  isolation: isolate;
}

.login-shell:not(.premium-login-ready) .login-card {
  z-index: 1;
}

.login-shell:not(.premium-login-ready)::selection {
  background: rgba(125,211,252,.22);
}


/* Settings / Backup */
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-card {
  min-height: 220px;
}
.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-tab { width: calc(50% - 5px); min-width: 220px; }
}
@media (max-width: 760px) {
  .nav { display: grid; grid-template-columns: 1fr; }
  .nav-tab { width: 100%; min-width: 0; }
  .sidebar { padding: 16px; }
}



/* ===== SAFE UX ENHANCEMENT STYLES ===== */

.toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(93,134,188,.24);
  background: linear-gradient(180deg, rgba(12,23,40,.98), rgba(8,18,31,.98));
  box-shadow: 0 18px 36px rgba(0,0,0,.28);
  color: var(--text);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(14px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-8px) scale(.98);
}

.toast__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.04);
}

.toast--success { border-color: rgba(16,185,129,.32); }
.toast--success .toast__icon { color: #a7f3d0; background: rgba(16,185,129,.14); }
.toast--error { border-color: rgba(239,68,68,.34); }
.toast--error .toast__icon { color: #fecaca; background: rgba(239,68,68,.14); }
.toast--info { border-color: rgba(59,130,246,.34); }
.toast--info .toast__icon { color: #bfdbfe; background: rgba(59,130,246,.14); }

button.ui-loading,
.file-btn.ui-loading {
  pointer-events: none;
  opacity: .95;
}

button.ui-loading::after,
.file-btn.ui-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: rgba(255,255,255,.95);
  position: absolute;
  right: 12px;
  top: calc(50% - 7px);
  animation: uiSpin .65s linear infinite;
}

button.ui-success,
.file-btn.ui-success {
  border-color: rgba(16,185,129,.42) !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,.12), 0 14px 28px rgba(0,0,0,.22);
}

button.ui-error,
.file-btn.ui-error {
  border-color: rgba(239,68,68,.42) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12), 0 14px 28px rgba(0,0,0,.22);
  animation: uiShake .34s ease-in-out 1;
}

.btn-state-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  font-weight: 900;
}

.view-enter {
  animation: viewFadeSlide .32s ease both;
}

.kpi {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.kpi .num {
  position: relative;
  display: inline-block;
  letter-spacing: -.02em;
}

.kpi-critical {
  border-color: rgba(239,68,68,.34);
  box-shadow: 0 0 0 1px rgba(239,68,68,.12) inset, 0 14px 28px rgba(239,68,68,.08);
}

.kpi-critical .num,
.kpi-critical div:first-child {
  color: #fca5a5;
  text-shadow: 0 0 14px rgba(239,68,68,.24);
}

.kpi-pending {
  border-color: rgba(245,158,11,.34);
  box-shadow: 0 0 0 1px rgba(245,158,11,.10) inset, 0 14px 28px rgba(245,158,11,.06);
}

.kpi-pending .num,
.kpi-pending div:first-child {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(245,158,11,.18);
}

.attention-today-card {
  margin-top: 16px;
  margin-bottom: 16px;
  border-color: rgba(93,134,188,.26);
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 24%),
    linear-gradient(180deg, rgba(15,27,45,.98), rgba(11,22,38,.98));
}

.attention-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.attention-pill {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(93,134,188,.2);
  background: rgba(9,19,33,.78);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.attention-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.attention-pill__title {
  font-weight: 700;
  margin-bottom: 6px;
}

.attention-pill__meta {
  color: var(--muted);
  font-size: 12px;
}

.attention-pill--critical {
  border-color: rgba(239,68,68,.34);
  box-shadow: 0 0 0 1px rgba(239,68,68,.12) inset;
}

.attention-pill--warning {
  border-color: rgba(245,158,11,.32);
  box-shadow: 0 0 0 1px rgba(245,158,11,.10) inset;
}

.table-wrap tbody tr,
table tbody tr {
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.table-wrap tbody tr:hover,
table tbody tr:hover {
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 1px rgba(125,211,252,.06);
}

button:active,
.file-btn:active,
.actions button:active {
  transform: scale(.98);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(125,211,252,.72);
  box-shadow: 0 0 0 3px rgba(59,130,246,.16), 0 10px 22px rgba(2,8,23,.18);
  outline: none;
}

@keyframes uiSpin {
  to { transform: rotate(360deg); }
}

@keyframes uiShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@keyframes viewFadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .attention-pill-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .toast-host {
    left: 12px;
    right: 12px;
    top: 12px;
  }
  .toast {
    min-width: 0;
    max-width: none;
  }
  .attention-pill-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== Restore colored left tabs on top of current working feedback build ===== */
.nav .nav-tab {
  position: relative;
  isolation: isolate;
}

.nav .nav-tab::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--nav-accent, #7dd3fc);
  box-shadow: 0 0 12px var(--nav-accent-shadow, rgba(125,211,252,.28));
  opacity: .95;
  transform: scaleY(.72);
  transition: transform .20s ease, opacity .20s ease;
  pointer-events: none;
}

.nav .nav-tab:hover::after,
.nav .nav-tab.active::after {
  transform: scaleY(1);
  opacity: 1;
}

.nav .nav-tab:hover {
  border-color: var(--nav-accent, rgba(96,165,250,.38));
  box-shadow: 0 14px 26px rgba(0,0,0,.20);
}

.nav .nav-tab.active {
  border-color: var(--nav-accent, rgba(96,165,250,.5));
  box-shadow:
    0 16px 30px var(--nav-accent-shadow-strong, rgba(14,42,82,.28)),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.nav .nav-tab:hover .nav-tab__icon,
.nav .nav-tab.active .nav-tab__icon {
  border-color: color-mix(in srgb, var(--nav-accent, #7dd3fc) 45%, transparent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--nav-accent, #7dd3fc) 22%, transparent);
}

.nav .nav-tab:hover .nav-tab__label,
.nav .nav-tab.active .nav-tab__label {
  color: #ffffff;
}

.nav .nav-tab:nth-child(1)  { --nav-accent:#3b82f6; --nav-accent-shadow:rgba(59,130,246,.28); --nav-accent-shadow-strong:rgba(59,130,246,.22); }
.nav .nav-tab:nth-child(2)  { --nav-accent:#ef4444; --nav-accent-shadow:rgba(239,68,68,.28); --nav-accent-shadow-strong:rgba(239,68,68,.18); }
.nav .nav-tab:nth-child(3)  { --nav-accent:#8b5cf6; --nav-accent-shadow:rgba(139,92,246,.28); --nav-accent-shadow-strong:rgba(139,92,246,.18); }
.nav .nav-tab:nth-child(4)  { --nav-accent:#14b8a6; --nav-accent-shadow:rgba(20,184,166,.28); --nav-accent-shadow-strong:rgba(20,184,166,.18); }
.nav .nav-tab:nth-child(5)  { --nav-accent:#22c55e; --nav-accent-shadow:rgba(34,197,94,.28); --nav-accent-shadow-strong:rgba(34,197,94,.18); }
.nav .nav-tab:nth-child(6)  { --nav-accent:#f59e0b; --nav-accent-shadow:rgba(245,158,11,.28); --nav-accent-shadow-strong:rgba(245,158,11,.18); }
.nav .nav-tab:nth-child(7)  { --nav-accent:#06b6d4; --nav-accent-shadow:rgba(6,182,212,.28); --nav-accent-shadow-strong:rgba(6,182,212,.18); }
.nav .nav-tab:nth-child(8)  { --nav-accent:#eab308; --nav-accent-shadow:rgba(234,179,8,.28); --nav-accent-shadow-strong:rgba(234,179,8,.18); }
.nav .nav-tab:nth-child(9)  { --nav-accent:#f97316; --nav-accent-shadow:rgba(249,115,22,.28); --nav-accent-shadow-strong:rgba(249,115,22,.18); }
.nav .nav-tab:nth-child(10) { --nav-accent:#ec4899; --nav-accent-shadow:rgba(236,72,153,.28); --nav-accent-shadow-strong:rgba(236,72,153,.18); }
.nav .nav-tab:nth-child(11) { --nav-accent:#6366f1; --nav-accent-shadow:rgba(99,102,241,.28); --nav-accent-shadow-strong:rgba(99,102,241,.18); }
.nav .nav-tab:nth-child(12) { --nav-accent:#10b981; --nav-accent-shadow:rgba(16,185,129,.28); --nav-accent-shadow-strong:rgba(16,185,129,.18); }
.nav .nav-tab:nth-child(13) { --nav-accent:#a855f7; --nav-accent-shadow:rgba(168,85,247,.28); --nav-accent-shadow-strong:rgba(168,85,247,.18); }
.nav .nav-tab:nth-child(14) { --nav-accent:#94a3b8; --nav-accent-shadow:rgba(148,163,184,.24); --nav-accent-shadow-strong:rgba(148,163,184,.16); }

.nav .nav-tab:nth-child(1).active  { background: linear-gradient(135deg, rgba(59,130,246,.24), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(2).active  { background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(3).active  { background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(4).active  { background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(5).active  { background: linear-gradient(135deg, rgba(34,197,94,.20), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(6).active  { background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(7).active  { background: linear-gradient(135deg, rgba(6,182,212,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(8).active  { background: linear-gradient(135deg, rgba(234,179,8,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(9).active  { background: linear-gradient(135deg, rgba(249,115,22,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(10).active { background: linear-gradient(135deg, rgba(236,72,153,.20), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(11).active { background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(12).active { background: linear-gradient(135deg, rgba(16,185,129,.20), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(13).active { background: linear-gradient(135deg, rgba(168,85,247,.20), rgba(11,22,38,.92)); }
.nav .nav-tab:nth-child(14).active { background: linear-gradient(135deg, rgba(148,163,184,.16), rgba(11,22,38,.92)); }



/* ===== SAFE session loading overlay ===== */
.session-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.session-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.session-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.16), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(14,165,233,.12), transparent 24%),
    rgba(2,8,23,.72);
  backdrop-filter: blur(10px);
}

.session-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(125,211,252,.18);
  background: linear-gradient(180deg, rgba(10,20,37,.96), rgba(7,17,32,.98));
  box-shadow:
    0 30px 80px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 30px rgba(59,130,246,.08);
  text-align: center;
  overflow: hidden;
}

.session-overlay__panel::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -38%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.16), transparent);
  transform: skewX(-18deg);
  animation: sessionSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}

.session-overlay__spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: #7dd3fc;
  border-right-color: rgba(59,130,246,.9);
  box-shadow: 0 0 24px rgba(59,130,246,.18);
  animation: sessionSpin .9s linear infinite;
}

.session-overlay__title {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.session-overlay__message {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  min-height: 21px;
}

.session-overlay__dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.session-overlay__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(125,211,252,.75);
  box-shadow: 0 0 14px rgba(125,211,252,.25);
  animation: sessionDot 1.2s ease-in-out infinite;
}

.session-overlay__dots span:nth-child(2) { animation-delay: .15s; }
.session-overlay__dots span:nth-child(3) { animation-delay: .3s; }

@keyframes sessionSpin {
  to { transform: rotate(360deg); }
}

@keyframes sessionDot {
  0%, 80%, 100% { transform: translateY(0) scale(.9); opacity: .55; }
  40% { transform: translateY(-5px) scale(1.08); opacity: 1; }
}

@keyframes sessionSweep {
  0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(520px) skewX(-18deg); opacity: 0; }
}



/* ===== Smart Button safe enhancement ===== */
.smart-trigger-btn {
  border-color: rgba(125,211,252,.30);
  background:
    linear-gradient(135deg, rgba(37,99,235,.24), rgba(14,165,233,.16)),
    linear-gradient(180deg, rgba(19,38,61,.96), rgba(12,25,42,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 24px rgba(37,99,235,.12);
}

.smart-trigger-btn:hover {
  border-color: rgba(125,211,252,.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 16px 30px rgba(37,99,235,.18);
}

.smart-overlay {
  position: fixed;
  inset: 0;
  z-index: 7100;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.smart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.smart-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(59,130,246,.16), transparent 24%),
    radial-gradient(circle at 82% 80%, rgba(16,185,129,.12), transparent 22%),
    rgba(2,8,23,.76);
  backdrop-filter: blur(9px);
}
.smart-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(125,211,252,.18);
  background: linear-gradient(180deg, rgba(10,20,37,.96), rgba(7,17,32,.98));
  box-shadow:
    0 30px 80px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 30px rgba(59,130,246,.08);
  text-align: center;
  overflow: hidden;
}
.smart-overlay__panel::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -38%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.16), transparent);
  transform: skewX(-18deg);
  animation: smartSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.smart-overlay__spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: #7dd3fc;
  border-right-color: rgba(59,130,246,.9);
  box-shadow: 0 0 24px rgba(59,130,246,.18);
  animation: smartSpin .9s linear infinite;
}
.smart-overlay__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.smart-overlay__message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  min-height: 21px;
}
.smart-overlay__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.smart-overlay__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(125,211,252,.75);
  box-shadow: 0 0 14px rgba(125,211,252,.25);
  animation: smartDot 1.2s ease-in-out infinite;
}
.smart-overlay__dots span:nth-child(2) { animation-delay: .15s; }
.smart-overlay__dots span:nth-child(3) { animation-delay: .3s; }

.smart-results-wrap {
  display: grid;
  gap: 14px;
}
.smart-results-head h3 {
  margin: 0 0 6px 0;
}
.smart-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.smart-result-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(93,134,188,.22);
  background: linear-gradient(180deg, rgba(12,23,40,.98), rgba(8,18,31,.98));
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.smart-result-card__kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.smart-result-card__title {
  font-weight: 800;
  margin-bottom: 8px;
}
.smart-result-card__meta {
  font-size: 13px;
  color: #d7e8ff;
  margin-bottom: 6px;
}
.smart-result-card__extra {
  font-size: 12px;
  color: var(--muted);
}
.smart-result-card--critical {
  border-color: rgba(239,68,68,.34);
  box-shadow: 0 0 0 1px rgba(239,68,68,.10) inset, 0 12px 26px rgba(239,68,68,.10);
}
.smart-result-card--warning {
  border-color: rgba(245,158,11,.34);
  box-shadow: 0 0 0 1px rgba(245,158,11,.08) inset, 0 12px 26px rgba(245,158,11,.08);
}
.smart-result-card--high {
  border-color: rgba(59,130,246,.34);
  box-shadow: 0 0 0 1px rgba(59,130,246,.08) inset, 0 12px 26px rgba(59,130,246,.08);
}
.smart-results-empty {
  padding: 22px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(93,134,188,.22);
  color: var(--muted);
  text-align: center;
}

@keyframes smartSpin {
  to { transform: rotate(360deg); }
}
@keyframes smartDot {
  0%, 80%, 100% { transform: translateY(0) scale(.9); opacity: .55; }
  40% { transform: translateY(-5px) scale(1.08); opacity: 1; }
}
@keyframes smartSweep {
  0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(520px) skewX(-18deg); opacity: 0; }
}
@media (max-width: 760px) {
  .smart-results-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== Who we are loading transition ===== */
.who-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.who-loading-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.who-loading-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.16), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(16,185,129,.10), transparent 24%),
    rgba(2,8,23,.74);
  backdrop-filter: blur(10px);
}
.who-loading-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  padding: 30px 24px;
  border-radius: 24px;
  border: 1px solid rgba(125,211,252,.18);
  background: linear-gradient(180deg, rgba(10,20,37,.96), rgba(7,17,32,.98));
  box-shadow:
    0 30px 80px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 30px rgba(59,130,246,.08);
  text-align: center;
  overflow: hidden;
}
.who-loading-overlay__panel::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.14), transparent);
  transform: skewX(-18deg);
  animation: whoLoadingSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.who-loading-overlay__spinner {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: #7dd3fc;
  border-right-color: rgba(59,130,246,.92);
  box-shadow: 0 0 24px rgba(59,130,246,.18);
  animation: whoLoadingSpin .9s linear infinite;
  transition: opacity .24s ease, transform .24s ease;
}
.who-loading-overlay__message {
  font-size: 16px;
  color: #dcecff;
  line-height: 1.45;
  min-height: 24px;
  transition: opacity .24s ease, transform .24s ease, filter .24s ease;
}
.who-loading-overlay__welcome {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,.18), 0 0 30px rgba(125,211,252,.18);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .34s ease, transform .34s ease, filter .34s ease;
  filter: blur(6px);
}
.who-loading-overlay--welcome .who-loading-overlay__spinner,
.who-loading-overlay--welcome .who-loading-overlay__message {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(4px);
}
.who-loading-overlay--welcome .who-loading-overlay__welcome {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.who-loading-overlay__showcase {
  position: relative;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(26px) scale(.94);
  pointer-events: none;
  transition: opacity .5s ease, transform .65s cubic-bezier(.2,.8,.2,1), filter .45s ease;
  filter: blur(14px);
}
.who-showcase-stage {
  position: relative;
  min-height: 280px;
  perspective: 1800px;
  transform-style: preserve-3d;
}
.who-showcase-stage__halo {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(34px);
  opacity: .75;
  pointer-events: none;
}
.who-showcase-stage__halo--a {
  width: 180px;
  height: 180px;
  left: 6%;
  top: 26%;
  background: rgba(59,130,246,.22);
  animation: whoShowcaseHaloFloat 6s ease-in-out infinite;
}
.who-showcase-stage__halo--b {
  width: 170px;
  height: 170px;
  right: 8%;
  top: 8%;
  background: rgba(16,185,129,.18);
  animation: whoShowcaseHaloFloat 7s ease-in-out infinite reverse;
}
.who-showcase-stage__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(74deg);
  border: 1px solid rgba(125,211,252,.24);
  box-shadow: 0 0 26px rgba(59,130,246,.12), inset 0 0 20px rgba(125,211,252,.06);
  animation: whoShowcaseRingSpin 7s linear infinite;
}
.who-showcase-card {
  position: absolute;
  width: 158px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16,28,49,.96), rgba(8,18,32,.98));
  border: 1px solid rgba(125,211,252,.18);
  box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform-style: preserve-3d;
}
.who-showcase-card__image-wrap {
  position: relative;
  height: 152px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(125,211,252,.18), transparent 35%), linear-gradient(135deg, rgba(19,40,70,.95), rgba(8,21,39,.98));
}
.who-showcase-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  animation: whoShowcaseImageDrift 7s ease-in-out infinite alternate;
  filter: saturate(1.1) contrast(1.02);
}
.who-showcase-card__swirl {
  position: absolute;
  inset: -24%;
  background:
    radial-gradient(circle at center, transparent 0 38%, rgba(125,211,252,.34) 43%, transparent 49%),
    conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(125,211,252,.22) 70deg, rgba(59,130,246,.16) 150deg, rgba(255,255,255,0) 220deg, rgba(16,185,129,.18) 300deg, rgba(255,255,255,0) 360deg);
  mix-blend-mode: screen;
  animation: whoShowcaseSwirl 5.8s linear infinite;
}
.who-showcase-card__content {
  padding: 12px 14px 14px;
  text-align: left;
}
.who-showcase-card__content strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #eef7ff;
  text-shadow: 0 0 12px rgba(125,211,252,.12);
}
.who-showcase-card--1 {
  left: 50%; top: 50%;
  transform: translate3d(-192px, -86px, 20px) rotateY(28deg) rotateX(8deg) rotateZ(-10deg);
  animation: whoShowcaseCard1 4.8s ease-in-out infinite;
}
.who-showcase-card--2 {
  left: 50%; top: 50%;
  transform: translate3d(-88px, -128px, 80px) rotateY(12deg) rotateX(10deg) rotateZ(-4deg);
  animation: whoShowcaseCard2 5.2s ease-in-out infinite;
}
.who-showcase-card--3 {
  left: 50%; top: 50%;
  transform: translate3d(-8px, -78px, 140px) rotateY(0deg) rotateX(4deg) rotateZ(1deg);
  animation: whoShowcaseCard3 5.4s ease-in-out infinite;
}
.who-showcase-card--4 {
  left: 50%; top: 50%;
  transform: translate3d(88px, -126px, 70px) rotateY(-14deg) rotateX(10deg) rotateZ(5deg);
  animation: whoShowcaseCard4 5s ease-in-out infinite;
}
.who-showcase-card--5 {
  left: 50%; top: 50%;
  transform: translate3d(178px, -74px, 10px) rotateY(-28deg) rotateX(8deg) rotateZ(10deg);
  animation: whoShowcaseCard5 4.9s ease-in-out infinite;
}
.who-loading-overlay--showcase .who-loading-overlay__spinner,
.who-loading-overlay--showcase .who-loading-overlay__message,
.who-loading-overlay--showcase .who-loading-overlay__welcome {
  opacity: 0;
  transform: translateY(-18px) scale(.92);
  filter: blur(10px);
}
.who-loading-overlay--showcase .who-loading-overlay__showcase {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
@keyframes whoShowcaseSwirl {
  from { transform: rotate(0deg) scale(.94); }
  to { transform: rotate(360deg) scale(1.08); }
}
@keyframes whoShowcaseImageDrift {
  0% { transform: scale(1.08) translate3d(-4px, -2px, 0); }
  100% { transform: scale(1.15) translate3d(5px, 4px, 0); }
}
@keyframes whoShowcaseHaloFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -16px, 0) scale(1.08); }
}
@keyframes whoShowcaseRingSpin {
  from { transform: translate(-50%, -50%) rotateX(74deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(74deg) rotateZ(360deg); }
}
@keyframes whoShowcaseCard1 {
  0%,100% { transform: translate3d(-192px, -86px, 20px) rotateY(28deg) rotateX(8deg) rotateZ(-10deg); }
  50% { transform: translate3d(-214px, -100px, 56px) rotateY(35deg) rotateX(12deg) rotateZ(-14deg); }
}
@keyframes whoShowcaseCard2 {
  0%,100% { transform: translate3d(-88px, -128px, 80px) rotateY(12deg) rotateX(10deg) rotateZ(-4deg); }
  50% { transform: translate3d(-112px, -148px, 130px) rotateY(20deg) rotateX(13deg) rotateZ(-10deg); }
}
@keyframes whoShowcaseCard3 {
  0%,100% { transform: translate3d(-8px, -78px, 140px) rotateY(0deg) rotateX(4deg) rotateZ(1deg); }
  50% { transform: translate3d(-8px, -102px, 188px) rotateY(0deg) rotateX(8deg) rotateZ(0deg); }
}
@keyframes whoShowcaseCard4 {
  0%,100% { transform: translate3d(88px, -126px, 70px) rotateY(-14deg) rotateX(10deg) rotateZ(5deg); }
  50% { transform: translate3d(110px, -146px, 124px) rotateY(-20deg) rotateX(14deg) rotateZ(9deg); }
}
@keyframes whoShowcaseCard5 {
  0%,100% { transform: translate3d(178px, -74px, 10px) rotateY(-28deg) rotateX(8deg) rotateZ(10deg); }
  50% { transform: translate3d(202px, -90px, 48px) rotateY(-35deg) rotateX(12deg) rotateZ(14deg); }
}
@keyframes whoLoadingSpin {
  to { transform: rotate(360deg); }
}
@keyframes whoLoadingSweep {
  0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(540px) skewX(-18deg); opacity: 0; }
}



/* ===== Who we are welcome 3D letter break effect ===== */
.who-loading-overlay__welcome {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.who-loading-overlay__welcome .who-char {
  display: inline-block;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  text-shadow:
    0 1px 0 rgba(255,255,255,.06),
    0 6px 18px rgba(59,130,246,.14),
    0 0 22px rgba(125,211,252,.12);
}

.who-loading-overlay--break .who-loading-overlay__welcome .who-char {
  animation: whoCharBreak 720ms cubic-bezier(.22,.7,.12,1) forwards;
}

.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(1)  { animation-delay: 0ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(2)  { animation-delay: 18ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(3)  { animation-delay: 36ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(4)  { animation-delay: 54ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(5)  { animation-delay: 72ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(6)  { animation-delay: 90ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(7)  { animation-delay: 108ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(8)  { animation-delay: 126ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(9)  { animation-delay: 144ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(10) { animation-delay: 162ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(11) { animation-delay: 180ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(12) { animation-delay: 198ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(13) { animation-delay: 216ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(14) { animation-delay: 234ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(15) { animation-delay: 252ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(16) { animation-delay: 270ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(17) { animation-delay: 288ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(18) { animation-delay: 306ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(19) { animation-delay: 324ms; }
.who-loading-overlay--break .who-loading-overlay__welcome .who-char:nth-child(20) { animation-delay: 342ms; }

@keyframes whoCharBreak {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0,0,0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
  }
  35% {
    opacity: 1;
    filter: blur(.2px);
    transform:
      translate3d(calc((var(--scatter-x, 0) * .35) * 1px), calc((var(--scatter-y, 0) * -.12) * 1px), 18px)
      rotateX(calc(var(--rot-x, 0) * .45deg))
      rotateY(calc(var(--rot-y, 0) * .45deg))
      rotateZ(calc(var(--rot-z, 0) * .45deg))
      scale(1.03);
  }
  100% {
    opacity: 0;
    filter: blur(8px);
    transform:
      translate3d(calc(var(--scatter-x, 0) * 1px), calc(var(--scatter-y, 0) * 1px), 110px)
      rotateX(calc(var(--rot-x, 0) * 1deg))
      rotateY(calc(var(--rot-y, 0) * 1deg))
      rotateZ(calc(var(--rot-z, 0) * 1deg))
      scale(.86);
  }
}
/* ===== CALENDAR ULTRA FX (SAFE OVERLAY - NO BREAK) ===== */

.calendar-day {
  position: relative;
  overflow: hidden;
}

/* movimiento suave (no rompe layout) */
.calendar-pill {
  position: relative;
  z-index: 1;
  animation: calendarFloatSoft 4.5s ease-in-out infinite;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    border-color .25s ease,
    padding .25s ease;
}

/* variación natural */
.calendar-pill:nth-child(2n) {
  animation-duration: 5.5s;
}
.calendar-pill:nth-child(3n) {
  animation-duration: 6.2s;
}

/* HOVER NORMAL */
.calendar-pill:hover {
  transform: translateY(-2px) scale(1.04);
  z-index: 5;

  background: linear-gradient(135deg,
    rgba(59,130,246,.25),
    rgba(14,165,233,.18)
  );

  border-color: rgba(125,211,252,.45);

  box-shadow:
    0 10px 20px rgba(0,0,0,.25),
    0 0 10px rgba(125,211,252,.15);
}

/* 🔥 DIA ACTUAL = EFECTO PREMIUM */
.calendar-day-today .calendar-pill:hover {
  transform: translateY(-4px) scale(1.12);

  background: linear-gradient(135deg,
    rgba(59,130,246,.35),
    rgba(16,185,129,.22)
  );

  border-color: rgba(125,211,252,.6);

  box-shadow:
    0 18px 30px rgba(37,99,235,.25),
    0 0 18px rgba(125,211,252,.25);
}

/* glow del día actual */
.calendar-day-today {
  transition: box-shadow .3s ease;
}

.calendar-day-today:hover {
  box-shadow:
    0 0 0 1px rgba(59,130,246,.5) inset,
    0 0 18px rgba(59,130,246,.15);
}

/* animación flotante */
@keyframes calendarFloatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
}


/* ===== Calendar tooltip + Apple-style expand (safe add-on over current full CSS) ===== */
.calendar-day {
  position: relative;
  overflow: visible;
}

.calendar-day-body {
  position: relative;
  z-index: 1;
}

.calendar-pill {
  position: relative;
  z-index: 1;
  animation: calendarPillFloatSoft 4.8s ease-in-out infinite;
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease,
    background .24s ease,
    filter .24s ease,
    padding .24s ease;
  transform-origin: left center;
}

.calendar-pill:nth-child(2n) {
  animation-duration: 5.6s;
  animation-delay: .25s;
}
.calendar-pill:nth-child(3n) {
  animation-duration: 6.1s;
  animation-delay: .4s;
}

.calendar-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125,211,252,.22);
  background: linear-gradient(180deg, rgba(10,20,37,.98), rgba(7,17,32,.98));
  box-shadow:
    0 20px 40px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.03) inset;
  color: #eaf4ff;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
  text-align: left;
}

.calendar-pill::before {
  content: '';
  position: absolute;
  left: 16px;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  background: rgba(10,20,37,.98);
  border-left: 1px solid rgba(125,211,252,.22);
  border-top: 1px solid rgba(125,211,252,.22);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.calendar-pill:hover {
  z-index: 6;
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(125,211,252,.46);
  background: linear-gradient(135deg, rgba(37,99,235,.24), rgba(14,165,233,.16));
  box-shadow:
    0 12px 24px rgba(0,0,0,.20),
    0 0 0 1px rgba(125,211,252,.10) inset;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.calendar-pill:hover::after,
.calendar-pill:hover::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.calendar-day-today .calendar-pill:hover,
.calendar-pill--today:hover {
  transform: translateY(-4px) scale(1.12);
  border-color: rgba(125,211,252,.58);
  background: linear-gradient(135deg, rgba(59,130,246,.34), rgba(16,185,129,.18));
  box-shadow:
    0 18px 30px rgba(37,99,235,.22),
    0 0 0 1px rgba(125,211,252,.16) inset,
    0 0 22px rgba(125,211,252,.10);
  padding: 7px 10px;
}

.calendar-day-today .calendar-pill::after,
.calendar-pill--today::after {
  min-width: 250px;
  max-width: 340px;
}

.calendar-day:hover .calendar-pill:not(:hover) {
  filter: saturate(1.04);
}

@keyframes calendarPillFloatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

@media (max-width: 760px) {
  .calendar-pill::after {
    left: 0;
    min-width: 180px;
    max-width: 240px;
    font-size: 11px;
  }
}



/* ===== Dashboard cards fixed layout + internal scroll (safe add-on) ===== */
.dashboard-card-grid {
  align-items: stretch;
}

.dashboard-card-shell {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  max-height: 360px;
  overflow: hidden;
}

.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.dashboard-card-head h3 {
  margin: 0;
}

.dashboard-card-hint {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-card-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-card-scroll .table-wrap,
.dashboard-card-scroll .scroll-card {
  max-height: none;
  overflow: visible;
}

.dashboard-card-scroll .donut-grid {
  align-content: start;
}

.dashboard-card-scroll::-webkit-scrollbar {
  width: 10px;
}
.dashboard-card-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03);
  border-radius: 999px;
}
.dashboard-card-scroll::-webkit-scrollbar-thumb {
  background: rgba(125,211,252,.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@media (max-width: 1200px) {
  .dashboard-card-shell {
    min-height: 320px;
    max-height: 320px;
  }
}

@media (max-width: 760px) {
  .dashboard-card-shell {
    min-height: 280px;
    max-height: 280px;
  }
  .dashboard-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-card-hint {
    white-space: normal;
  }
}


/* ===== Mobile app navigation after sign in ===== */
.mobile-topbar,
.mobile-nav-header,
.mobile-userbox,
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    position: relative;
    padding-top: 78px;
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(5,14,28,.98), rgba(8,19,37,.96));
    border-bottom: 1px solid rgba(57,87,129,.38);
    backdrop-filter: blur(12px);
  }

  .mobile-topbar__menu,
  .mobile-topbar__back {
    min-height: 48px;
    white-space: nowrap;
  }

  .mobile-topbar__menu {
    min-width: 118px;
    font-weight: 700;
  }

  .mobile-topbar__back {
    margin-left: auto;
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(2,8,20,.64);
    backdrop-filter: blur(5px);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 360px);
    height: 100vh;
    z-index: 1200;
    border-right: 1px solid rgba(57,87,129,.38);
    border-bottom: 0;
    transform: translateX(-104%);
    transition: transform .26s ease, box-shadow .26s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: none;
    padding-top: 20px;
  }

  .app.mobile-nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 22px 0 48px rgba(0,0,0,.38);
    pointer-events: auto;
  }

  .app.mobile-nav-open .mobile-nav-overlay {
    display: block;
  }

  .sidebar > .brand,
  .sidebar > #navTabs,
  .sidebar > .sidebar-footer > #currentUserBox {
    display: none !important;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .brand--mobile-drawer {
    margin: 0;
    padding: 0;
  }

  .mobile-nav-close {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    font-size: 20px;
  }

  .mobile-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-userbox {
    display: block;
    margin-top: 14px;
  }

  .sidebar-footer {
    margin-top: 14px;
    padding-bottom: 20px;
  }

  .app {
    overflow-x: hidden;
  }

  .main {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.app-mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .sidebar-footer > #appLanguage,
  .sidebar-footer > #logoutButton {
    display: block !important;
    width: 100%;
  }

  .sidebar-footer > #logoutButton {
    margin-top: 12px;
  }


  .main {
    width: 100%;
    padding: 16px 14px 24px;
  }

  .topbar {
    margin-top: 0;
    align-items: stretch;
  }

  .topbar > div:last-child {
    width: 100%;
  }

  .topbar .row.gap-sm.wrap {
    width: 100%;
  }

  .topbar .row.gap-sm.wrap > * {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .topbar .row.gap-sm.wrap button,
  .topbar .row.gap-sm.wrap .file-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .view {
    min-width: 0;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ===== Fix: Who we are without Contact tab + brighter white CTA text ===== */
.who-hero__actions .who-cta-link,
.who-contact-stack .who-contact-link {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255,255,255,.92), 0 0 22px rgba(255,255,255,.55), 0 0 34px rgba(125,211,252,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 18px rgba(255,255,255,.12), 0 0 34px rgba(59,130,246,.18);
}

.who-hero__actions .who-cta-link[href^="tel:"],
.who-contact-stack .who-contact-link[href^="tel:"],
.who-hero__actions .who-cta-link[href*="google.com/maps"],
.who-contact-stack .who-contact-link[href*="google.com/maps"],
.who-hero__actions .who-cta-link[href*="maps.apple.com"],
.who-contact-stack .who-contact-link[href*="maps.apple.com"] {
  animation: whoButtonFloat 3.2s ease-in-out infinite, whoWhitePulse 1.8s ease-in-out infinite alternate;
}

.who-hero__actions .who-cta-link::after,
.who-contact-stack .who-contact-link::after {
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.32), rgba(125,211,252,.18), transparent 72%);
  opacity: 1;
  filter: blur(12px);
}

@keyframes whoWhitePulse {
  0% {
    text-shadow: 0 0 8px rgba(255,255,255,.82), 0 0 18px rgba(255,255,255,.48), 0 0 26px rgba(125,211,252,.24);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 14px rgba(255,255,255,.10), 0 0 26px rgba(59,130,246,.12);
  }
  100% {
    text-shadow: 0 0 12px rgba(255,255,255,.98), 0 0 26px rgba(255,255,255,.62), 0 0 40px rgba(125,211,252,.40);
    box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 22px rgba(255,255,255,.18), 0 0 38px rgba(59,130,246,.22);
  }
}


/* ===== Mobile drawer hard fix: always show all tabs on phone ===== */

#mobileNavTabs {
  display: none;
}

@media (max-width: 900px) {
  .app {
    min-height: 100vh;
  }

  .sidebar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
  }

  .mobile-nav-header {
    display: flex !important;
    flex: 0 0 auto;
  }

  #mobileNavTabs,
  .mobile-nav-tabs {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: max-content !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 10px 0 0 !important;
  }

  .mobile-nav-tabs .nav-tab,
  .mobile-nav-tab-card {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 72px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .sidebar-footer {
    margin-top: 16px !important;
    padding-top: 14px !important;
    padding-bottom: 24px !important;
    flex: 0 0 auto !important;
  }

  .sidebar > .sidebar-footer > #appLanguage,
  .sidebar > .sidebar-footer > #logoutButton,
  .sidebar > .sidebar-footer > #mobileUserBox {
    display: block !important;
    width: 100% !important;
  }

  .sidebar > .sidebar-footer > #currentUserBox {
    display: none !important;
  }

  .mobile-userbox {
    display: block !important;
  }

  .mobile-topbar__menu,
  .mobile-topbar__back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .main {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .topbar,
  .view,
  .card,
  .table-wrap,
  .scroll-card {
    min-width: 0;
  }
}


/* Dashboard birthdays + today overview */
.birthday-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.birthday-summary-grid > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.birthday-summary-title {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.birthday-summary-title--today {
  color: #a7f3d0;
  text-shadow: 0 0 12px rgba(16,185,129,.18);
}
.birthday-list {
  display: grid;
  gap: 10px;
}
.birthday-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(71,104,151,.24);
  background: linear-gradient(180deg, rgba(10,22,39,.92), rgba(8,18,32,.96));
}
.birthday-person > div:first-child {
  min-width: 0;
}
.birthday-person strong,
.birthday-person .muted {
  display: block;
  overflow-wrap: anywhere;
}
.birthday-person--today {
  border-color: rgba(16,185,129,.42);
  background: linear-gradient(180deg, rgba(5,39,30,.92), rgba(6,28,23,.98));
  box-shadow: 0 0 0 1px rgba(16,185,129,.08) inset, 0 14px 28px rgba(2,44,34,.22);
}
.birthday-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(93,134,188,.28);
  background: rgba(19,38,61,.9);
  color: #d9ebff;
}
.birthday-chip--today {
  border-color: rgba(16,185,129,.42);
  background: rgba(5,150,105,.18);
  color: #bbf7d0;
  box-shadow: 0 0 16px rgba(16,185,129,.12);
}
.dashboard-birthday-card .dashboard-card-scroll {
  display: grid;
  gap: 12px;
}
.birthday-inline-panel {
  padding-top: 14px;
  border-top: 1px solid rgba(158,182,211,.12);
}
.today-overview-grid .card {
  min-height: 100%;
}
@media (max-width: 1200px) {
  .birthday-summary-grid {
    grid-template-columns: 1fr;
  }
  .birthday-person {
    grid-template-columns: minmax(0, 1fr);
  }
  .birthday-chip {
    justify-self: start;
  }
}


/* Email Center */
.email-center-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  align-items: start;
}
.email-status-card {
  position: sticky;
  top: 20px;
}
.email-subtabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.email-checkbox-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.email-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 10px;
}
#emailSendForm textarea {
  white-space: pre-wrap;
}
@media (max-width: 1200px) {
  .email-center-grid {
    grid-template-columns: 1fr;
  }
  .email-status-card {
    position: static;
  }
}


.email-account-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.email-account-picker-row button {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .email-account-picker-row {
    grid-template-columns: 1fr;
  }
}

.email-history-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.email-history-actions button {
  min-width: 72px;
}
@media (max-width: 760px) {
  .email-history-actions {
    flex-wrap: wrap;
  }
}


.email-inbox-filters .email-checkbox-row {
  align-items: center;
  padding-top: 24px;
}
.email-center-grid .table-wrap td {
  max-width: 320px;
}
.email-center-grid .table-wrap td:nth-child(5) {
  max-width: 420px;
}


/* Timeline */
.timeline-shell {
  display: grid;
  gap: 14px;
}
.timeline-subtitle {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(158,182,211,.12);
}
.timeline-list {
  display: grid;
  gap: 0;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  padding: 12px 0;
}
.timeline-entry:not(:last-child) {
  border-bottom: 1px solid rgba(158,182,211,.08);
}
.timeline-entry__rail {
  position: relative;
}
.timeline-entry__rail::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: -12px;
  width: 2px;
  background: rgba(59,130,246,.16);
}
.timeline-entry:last-child .timeline-entry__rail::after {
  display: none;
}
.timeline-entry__dot {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.timeline-entry__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.timeline-entry__date {
  color: var(--muted);
  font-size: 12px;
}
.timeline-entry__body {
  line-height: 1.5;
  color: #dcecff;
}
.timeline-entry__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.timeline-entry__meta span {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.14);
}


/* Landing prompt visual upgrade */
.landing-shell {
  perspective: 1200px;
}
.landing-shell::before {
  animation-duration: 11s;
}
.landing-shell::after {
  animation-duration: 18s;
}
.landing-card {
  overflow: hidden;
  transform-style: preserve-3d;
}
.landing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(130deg, rgba(125,211,252,.34), rgba(59,130,246,.12), rgba(16,185,129,.18), rgba(125,211,252,.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .9;
}
.landing-card::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(125,211,252,.14), transparent 68%);
  filter: blur(8px);
  animation: landingHaloSpin 14s linear infinite;
  pointer-events: none;
}
#landingEyebrow {
  position: relative;
  text-shadow: 0 0 12px rgba(125,211,252,.22);
  animation: landingEyebrowFloat 4.8s ease-in-out infinite;
}
#landingTitle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .18em;
  perspective: 1000px;
  text-rendering: geometricPrecision;
}
.landing-title-word {
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
  animation:
    landingWordRise .95s cubic-bezier(.2,.8,.2,1) both,
    landingWordFloat 5.4s ease-in-out infinite;
  animation-delay: var(--word-delay), calc(var(--word-delay) + 1.05s);
  padding-right: .02em;
  color: #eef5ff;
  text-shadow:
    0 1px 0 rgba(255,255,255,.25),
    0 10px 18px rgba(37,99,235,.18),
    0 18px 36px rgba(2,8,23,.45);
}
.landing-title-word::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: .08em;
  height: .28em;
  background: linear-gradient(90deg, rgba(59,130,246,0), rgba(59,130,246,.26), rgba(16,185,129,.18), rgba(59,130,246,0));
  filter: blur(10px);
  opacity: .95;
  transform: translateZ(-10px);
  pointer-events: none;
}
#landingSubtitle {
  position: relative;
  animation: landingSubtitleFade 1.2s ease both .22s;
}
.landing-language-box select {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.landing-language-box select:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.landing-actions {
  position: relative;
}
.landing-actions::before {
  content: '';
  position: absolute;
  inset: auto 6% -16px 6%;
  height: 26px;
  background: radial-gradient(circle, rgba(59,130,246,.18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.landing-action {
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform .26s ease,
    box-shadow .26s ease,
    border-color .26s ease,
    background .26s ease;
}
.landing-action::after {
  content: '';
  position: absolute;
  inset: auto 16% 8px 16%;
  height: 12px;
  background: radial-gradient(circle, rgba(59,130,246,.22), transparent 72%);
  filter: blur(10px);
  opacity: .82;
  z-index: -1;
  transition: opacity .26s ease, transform .26s ease;
}
.landing-action:hover {
  transform: translateY(-4px) scale(1.01) rotateX(7deg);
}
.landing-action:hover::after {
  opacity: 1;
  transform: scale(1.08);
}
.landing-action__label {
  display: inline-block;
  position: relative;
  z-index: 2;
  animation:
    landingButtonLabelIn .8s cubic-bezier(.22,.9,.25,1) both,
    landingLabelFloat 4.2s ease-in-out infinite;
  animation-delay: var(--btn-label-delay), calc(var(--btn-label-delay) + .95s);
  text-shadow:
    0 1px 0 rgba(255,255,255,.16),
    0 10px 14px rgba(2,8,23,.36);
}
.landing-action__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.landing-action__pulse::before,
.landing-action__pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.landing-action__pulse::before {
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 36%);
  opacity: .75;
  animation: landingButtonPulse 3.6s ease-in-out infinite;
}
.landing-action__pulse::after {
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 45%, transparent 70%);
  transform: translateX(-135%);
  animation: landingShineSweep 3.8s ease-in-out infinite 1.1s;
}
.landing-action--who {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 18px 34px rgba(59,130,246,.26),
    0 0 0 1px rgba(96,165,250,.16);
}
.landing-action--portal,
.landing-action--signin {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 14px 28px rgba(0,0,0,.24);
}
@keyframes landingWordRise {
  0% { opacity: 0; transform: translateY(30px) rotateX(58deg) scale(.92); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); filter: blur(0); }
}
@keyframes landingWordFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-3px) rotateX(2deg); }
}
@keyframes landingSubtitleFade {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes landingButtonLabelIn {
  0% { opacity: 0; transform: translateY(14px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes landingLabelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
@keyframes landingButtonPulse {
  0%, 100% { opacity: .34; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.03); }
}
@keyframes landingShineSweep {
  0% { transform: translateX(-135%); }
  55%, 100% { transform: translateX(135%); }
}
@keyframes landingEyebrowFloat {
  0%, 100% { transform: translateY(0); opacity: .92; }
  50% { transform: translateY(-2px); opacity: 1; }
}
@keyframes landingHaloSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (max-width: 760px) {
  #landingTitle { gap: .12em; }
  .landing-title-word { animation: landingWordRise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--word-delay); }
  .landing-action:hover { transform: translateY(-2px) scale(1.01); }
}


/* Sequential service words around landing card */
.landing-card {
  overflow: visible;
}
.landing-service-ring {
  position: absolute;
  inset: -34px -42px;
  pointer-events: none;
  z-index: 2;
}
.landing-service-word {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(220,236,255,.96);
  background: linear-gradient(180deg, rgba(10,20,37,.82), rgba(9,19,34,.56));
  border: 1px solid rgba(125,211,252,.22);
  box-shadow: 0 12px 28px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.05);
  white-space: nowrap;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px) scale(.92);
  animation: landingServiceCycle var(--service-duration,20s) ease-in-out infinite;
  animation-delay: var(--service-delay,0s);
}
.landing-service-word--top-left { top: 8px; left: -8px; }
.landing-service-word--top-center { top: -18px; left: 50%; transform: translateX(-50%) translateY(10px) scale(.92); }
.landing-service-word--top-right { top: 8px; right: -8px; }
.landing-service-word--right-center { top: 50%; right: -34px; transform: translateY(-50%) translateX(10px) scale(.92); }
.landing-service-word--bottom-right { right: 0; bottom: -18px; }
.landing-service-word--bottom-center { left: 50%; bottom: -26px; transform: translateX(-50%) translateY(10px) scale(.92); }
.landing-service-word--bottom-left { left: 0; bottom: -18px; }
.landing-service-word--left-center { top: 50%; left: -34px; transform: translateY(-50%) translateX(-10px) scale(.92); }

@keyframes landingServiceCycle {
  0%, 6% { opacity: 0; filter: blur(12px); }
  9%, 15% { opacity: .96; filter: blur(0); }
  20%, 100% { opacity: 0; filter: blur(12px); }
}

@media (max-width: 900px) {
  .landing-service-ring {
    inset: -22px -12px 8px -12px;
  }
  .landing-service-word {
    min-width: auto;
    font-size: 11px;
    padding: 7px 11px;
    letter-spacing: .05em;
  }
  .landing-service-word--top-left { top: -4px; left: 8px; }
  .landing-service-word--top-center { top: -18px; }
  .landing-service-word--top-right { top: -4px; right: 8px; }
  .landing-service-word--right-center { top: auto; right: 2px; bottom: 118px; transform: translateY(10px) scale(.92); }
  .landing-service-word--bottom-right { right: 10px; bottom: 92px; }
  .landing-service-word--bottom-center { bottom: -14px; }
  .landing-service-word--bottom-left { left: 10px; bottom: 92px; }
  .landing-service-word--left-center { top: auto; left: 2px; bottom: 118px; transform: translateY(10px) scale(.92); }
}

@media (max-width: 760px) {
  .landing-service-ring {
    inset: -16px 0 2px 0;
  }
  .landing-service-word--top-left,
  .landing-service-word--top-right,
  .landing-service-word--left-center,
  .landing-service-word--right-center,
  .landing-service-word--bottom-left,
  .landing-service-word--bottom-right {
    display: none;
  }
  .landing-service-word--top-center { top: -16px; }
  .landing-service-word--bottom-center { bottom: -12px; }
}


/* Today overview neon enhancement */
.today-overview-shell .table-wrap table td,
.today-overview-shell .table-wrap table th {
  vertical-align: middle;
}
.today-overview-heading,
.today-overview-shell .birthday-summary-title,
.today-overview-shell .birthday-summary-title--today,
.today-overview-shell .birthday-person strong,
.today-overview-shell .today-neon-text {
  color: #86efac;
  text-shadow:
    0 0 8px rgba(34,197,94,.42),
    0 0 16px rgba(34,197,94,.28);
}
.today-overview-shell .today-overview-card {
  border-color: rgba(34,197,94,.18);
  box-shadow:
    inset 0 0 0 1px rgba(34,197,94,.05),
    0 12px 30px rgba(0,0,0,.22);
}
.today-client-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.today-client-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.38);
  background: linear-gradient(180deg, rgba(8,52,31,.72), rgba(5,35,22,.86));
  color: #bbf7d0;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(34,197,94,.08) inset,
    0 0 14px rgba(34,197,94,.14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.phone-link:hover {
  transform: translateY(-1px);
  border-color: rgba(74,222,128,.7);
  box-shadow:
    0 0 0 1px rgba(74,222,128,.16) inset,
    0 0 18px rgba(74,222,128,.24);
  filter: brightness(1.08);
}
.phone-link--compact {
  padding: 5px 10px;
  font-size: 12px;
}
.phone-link__icon {
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(74,222,128,.45));
}
.today-missing-phone {
  color: rgba(187,247,208,.7);
  font-size: 12px;
}
.birthday-meta {
  display: grid;
  gap: 6px;
}
.birthday-phone-row {
  display: flex;
  flex-wrap: wrap;
}


/* AI assistant accuracy patch */
.ai-pro-layout { align-items: start; }
.ai-pro-box { position: relative; overflow: hidden; }
.ai-pro-header { display:flex; gap:14px; align-items:flex-start; margin-bottom:14px; }
.ai-pro-robot { width:56px; height:56px; border-radius:18px; display:grid; place-items:center; background:linear-gradient(135deg, rgba(59,130,246,.28), rgba(16,185,129,.18)); border:1px solid rgba(125,211,252,.28); box-shadow:0 0 0 1px rgba(255,255,255,.03) inset, 0 12px 28px rgba(0,0,0,.22); }
.ai-pro-robot-face { font-size:28px; filter: drop-shadow(0 0 12px rgba(125,211,252,.35)); }
.ai-pro-samples { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.ai-chip { font-size:12px; padding:8px 12px; border-radius:999px; }
.ai-results-card { min-height: 100%; }
.ai-response { min-height: 360px; }
@media (max-width: 900px) { .ai-pro-header { flex-direction:column; } .ai-response { min-height: 220px; } }


.email-history-search-box {
  margin-bottom: 12px;
}

.email-history-search-box input {
  width: 100%;
}


.resources-hero {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:16px;
  background: linear-gradient(135deg, rgba(15,35,63,.96), rgba(10,25,43,.98));
}
.resources-title { margin: 6px 0 4px; font-size: 28px; }
.resources-hero__hint {
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(93,134,188,.28);
  background:rgba(8,19,33,.58);
  color:var(--muted);
  min-width:220px;
}
.resources-search-box input {
  min-height: 48px;
  width: 100%;
}
.resources-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
.resources-card {
  display:flex;
  flex-direction:column;
  gap:12px;
  position: relative;
  overflow: hidden;
  border-width: 1px;
  border-style: solid;
}
.resources-card::before {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 34%);
}
.resources-card__head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.resources-card__head h3 { margin:0; }
.resources-list {
  display:grid;
  gap:10px;
}
.resources-link {
  display:grid;
  grid-template-columns: 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(71,104,151,.22);
  background: linear-gradient(180deg, rgba(11,25,43,.96), rgba(8,19,33,.98));
  text-decoration:none;
  color:var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.resources-link:hover {
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(0,0,0,.22);
}
.resources-link__body { display:grid; gap:5px; }
.resources-link__body strong { font-size:15px; }
.resources-link__body span { color:var(--muted); line-height:1.45; }
.resources-link__body small { color:#dff7ff; opacity:.95; }
.resources-link__cta {
  white-space:nowrap;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.32);
  background:rgba(59,130,246,.12);
  color:#cfe1ff;
}
.resources-card--business {
  border-color: rgba(76, 144, 255, .55);
  box-shadow: 0 0 18px rgba(76, 144, 255, .18), inset 0 0 0 1px rgba(76, 144, 255, .08);
  background: linear-gradient(180deg, rgba(10,24,48,.98), rgba(6,18,38,.98));
}
.resources-card--business .resources-card__head h3 { color:#8bc2ff; text-shadow:0 0 10px rgba(76,144,255,.32); }
.resources-link--business:hover { border-color:#66b3ff; box-shadow:0 0 18px rgba(76,144,255,.25); }
.resources-card--tax {
  border-color: rgba(0, 255, 163, .42);
  box-shadow: 0 0 18px rgba(0,255,163,.14), inset 0 0 0 1px rgba(0,255,163,.06);
  background: linear-gradient(180deg, rgba(6,35,33,.98), rgba(6,21,24,.98));
}
.resources-card--tax .resources-card__head h3 { color:#7effc9; text-shadow:0 0 10px rgba(0,255,163,.28); }
.resources-link--tax:hover { border-color:#5cffbf; box-shadow:0 0 18px rgba(0,255,163,.22); }
.resources-card--payroll {
  border-color: rgba(190, 107, 255, .48);
  box-shadow: 0 0 18px rgba(190,107,255,.16), inset 0 0 0 1px rgba(190,107,255,.06);
  background: linear-gradient(180deg, rgba(34,14,50,.98), rgba(18,10,35,.98));
}
.resources-card--payroll .resources-card__head h3 { color:#d9a7ff; text-shadow:0 0 10px rgba(190,107,255,.3); }
.resources-link--payroll:hover { border-color:#ca86ff; box-shadow:0 0 18px rgba(190,107,255,.22); }
.resources-card--compliance {
  border-color: rgba(255, 165, 56, .48);
  box-shadow: 0 0 18px rgba(255,165,56,.16), inset 0 0 0 1px rgba(255,165,56,.06);
  background: linear-gradient(180deg, rgba(48,24,8,.98), rgba(28,15,6,.98));
}
.resources-card--compliance .resources-card__head h3 { color:#ffcb7d; text-shadow:0 0 10px rgba(255,165,56,.3); }
.resources-link--compliance:hover { border-color:#ffb85c; box-shadow:0 0 18px rgba(255,165,56,.22); }
.resources-card--state {
  border-color: rgba(255, 92, 92, .48);
  box-shadow: 0 0 18px rgba(255,92,92,.16), inset 0 0 0 1px rgba(255,92,92,.06);
  background: linear-gradient(180deg, rgba(46,13,20,.98), rgba(27,8,12,.98));
}
.resources-card--state .resources-card__head h3 { color:#ff9e9e; text-shadow:0 0 10px rgba(255,92,92,.28); }
.resources-link--state:hover { border-color:#ff7c7c; box-shadow:0 0 18px rgba(255,92,92,.22); }
.resources-card--accounting {
  border-color: rgba(71, 238, 255, .45);
  box-shadow: 0 0 18px rgba(71,238,255,.16), inset 0 0 0 1px rgba(71,238,255,.06);
  background: linear-gradient(180deg, rgba(8,34,46,.98), rgba(6,20,28,.98));
}
.resources-card--accounting .resources-card__head h3 { color:#96f6ff; text-shadow:0 0 10px rgba(71,238,255,.28); }
.resources-link--accounting:hover { border-color:#6ff4ff; box-shadow:0 0 18px rgba(71,238,255,.22); }
.resources-card--insurance {
  border-color: rgba(255, 221, 87, .45);
  box-shadow: 0 0 18px rgba(255,221,87,.16), inset 0 0 0 1px rgba(255,221,87,.06);
  background: linear-gradient(180deg, rgba(49,40,6,.98), rgba(29,22,6,.98));
}
.resources-card--insurance .resources-card__head h3 { color:#ffe78c; text-shadow:0 0 10px rgba(255,221,87,.28); }
.resources-link--insurance:hover { border-color:#ffe16a; box-shadow:0 0 18px rgba(255,221,87,.22); }
.resources-card--empty {
  border-color: rgba(125,211,252,.22);
}
@media (max-width: 1100px) {
  .resources-grid { grid-template-columns: 1fr; }
  .resources-hero { flex-direction:column; }
  .resources-hero__hint { min-width:0; width:100%; }
}
@media (max-width: 700px) {
  .resources-link { grid-template-columns: 1fr; }
  .resources-link__cta { justify-self:start; }
}


/* News tab visual refinement */
.news-hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(125,211,252,.18);
  background: linear-gradient(135deg, rgba(10,22,39,.98), rgba(11,29,54,.98));
}
.news-hero::before {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(circle at top right, rgba(125,211,252,.10), transparent 34%), radial-gradient(circle at left center, rgba(59,130,246,.08), transparent 26%);
}
.news-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
.news-card {
  position:relative;
  overflow:hidden;
  border-width:1px;
  border-style:solid;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover {
  transform: translateY(-2px);
}
.news-card::before {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.95;
}
.news-card .resources-card__head,
.news-card .resources-list {
  position:relative;
  z-index:1;
}
.news-card .resources-card__head h3 {
  color:#f8fdff !important;
  text-shadow: 0 0 8px rgba(255,255,255,.45), 0 0 18px rgba(125,211,252,.22);
  letter-spacing:.01em;
}
.news-card .badge.info {
  color:#f3fbff;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 12px rgba(125,211,252,.10);
}
.news-card--tax {
  border-color: rgba(59,130,246,.48);
  box-shadow: 0 0 22px rgba(59,130,246,.16), inset 0 0 0 1px rgba(59,130,246,.06);
  background: linear-gradient(180deg, rgba(8,26,48,.98), rgba(6,16,34,.98));
}
.news-card--tax::before { background: linear-gradient(135deg, rgba(59,130,246,.22), transparent 46%); }
.news-card--business {
  border-color: rgba(16,185,129,.48);
  box-shadow: 0 0 22px rgba(16,185,129,.16), inset 0 0 0 1px rgba(16,185,129,.06);
  background: linear-gradient(180deg, rgba(7,34,28,.98), rgba(6,20,18,.98));
}
.news-card--business::before { background: linear-gradient(135deg, rgba(16,185,129,.20), transparent 46%); }
.news-card--payroll {
  border-color: rgba(168,85,247,.48);
  box-shadow: 0 0 22px rgba(168,85,247,.16), inset 0 0 0 1px rgba(168,85,247,.06);
  background: linear-gradient(180deg, rgba(29,15,45,.98), rgba(16,10,28,.98));
}
.news-card--payroll::before { background: linear-gradient(135deg, rgba(168,85,247,.20), transparent 46%); }
.news-card--accounting {
  border-color: rgba(34,211,238,.48);
  box-shadow: 0 0 22px rgba(34,211,238,.16), inset 0 0 0 1px rgba(34,211,238,.06);
  background: linear-gradient(180deg, rgba(8,35,44,.98), rgba(7,20,25,.98));
}
.news-card--accounting::before { background: linear-gradient(135deg, rgba(34,211,238,.20), transparent 46%); }
.news-card--immigration {
  border-color: rgba(245,158,11,.48);
  box-shadow: 0 0 22px rgba(245,158,11,.16), inset 0 0 0 1px rgba(245,158,11,.06);
  background: linear-gradient(180deg, rgba(45,25,7,.98), rgba(24,15,7,.98));
}
.news-card--immigration::before { background: linear-gradient(135deg, rgba(245,158,11,.20), transparent 46%); }
.news-card--insurance {
  border-color: rgba(250,204,21,.48);
  box-shadow: 0 0 22px rgba(250,204,21,.16), inset 0 0 0 1px rgba(250,204,21,.06);
  background: linear-gradient(180deg, rgba(46,38,8,.98), rgba(27,22,7,.98));
}
.news-card--insurance::before { background: linear-gradient(135deg, rgba(250,204,21,.18), transparent 46%); }
.news-card--licenses {
  border-color: rgba(244,114,182,.48);
  box-shadow: 0 0 22px rgba(244,114,182,.16), inset 0 0 0 1px rgba(244,114,182,.06);
  background: linear-gradient(180deg, rgba(43,12,31,.98), rgba(25,9,18,.98));
}
.news-card--licenses::before { background: linear-gradient(135deg, rgba(244,114,182,.18), transparent 46%); }
.news-card--state {
  border-color: rgba(239,68,68,.48);
  box-shadow: 0 0 22px rgba(239,68,68,.16), inset 0 0 0 1px rgba(239,68,68,.06);
  background: linear-gradient(180deg, rgba(42,12,16,.98), rgba(24,8,10,.98));
}
.news-card--state::before { background: linear-gradient(135deg, rgba(239,68,68,.18), transparent 46%); }
.news-card--tolls {
  border-color: rgba(99,102,241,.48);
  box-shadow: 0 0 22px rgba(99,102,241,.16), inset 0 0 0 1px rgba(99,102,241,.06);
  background: linear-gradient(180deg, rgba(15,20,53,.98), rgba(8,11,29,.98));
}
.news-card--tolls::before { background: linear-gradient(135deg, rgba(99,102,241,.18), transparent 46%); }
.resource-link {
  display:grid;
  grid-template-columns: 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(71,104,151,.22);
  background: linear-gradient(180deg, rgba(11,25,43,.96), rgba(8,19,33,.98));
  text-decoration:none;
  color:var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.resource-link:hover {
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(0,0,0,.22);
  border-color: rgba(125,211,252,.34);
}
.resource-link__meta {
  display:grid;
  gap:5px;
}
.resource-link__meta strong {
  color:#ffffff;
  text-shadow:0 0 8px rgba(255,255,255,.16);
  font-size:15px;
}
.resource-link__meta span {
  color:var(--muted);
  line-height:1.45;
}
.resource-link__cta {
  white-space:nowrap;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.32);
  background:rgba(59,130,246,.12);
  color:#cfe1ff;
}
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .resource-link { grid-template-columns: 1fr; }
  .resource-link__cta { justify-self:start; }
}


/* CRM Clients redesign */
.crm-clients-shell {
  display: grid;
  gap: 16px;
}
.crm-clients-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 28%),
    linear-gradient(135deg, rgba(13,31,56,.98), rgba(8,22,39,.98));
}
.crm-clients-hero h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.crm-clients-hero__copy { min-width: 0; }
.crm-clients-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.crm-new-client-btn {
  min-width: 180px;
  box-shadow: 0 0 0 1px rgba(96,165,250,.24) inset, 0 18px 32px rgba(37,99,235,.26);
}
.crm-client-editor-card {
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(16,185,129,.12), transparent 20%),
    linear-gradient(180deg, rgba(13,28,47,.98), rgba(10,22,39,.98));
}
.crm-client-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.crm-client-editor-head h3 {
  margin: 4px 0 0;
}
.crm-client-docs {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(125,211,252,.12);
}
.crm-clients-list-card {
  padding: 18px;
}
.crm-clients-list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.crm-clients-list-head h3 {
  margin: 4px 0 0;
}
.crm-clients-list-search {
  width: min(420px, 100%);
  min-width: 240px;
}
.crm-clients-list-search .search-box {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.crm-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.crm-client-record {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(90,134,190,.22);
  background:
    linear-gradient(180deg, rgba(10,21,38,.96), rgba(9,18,33,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 14px 32px rgba(0,0,0,.24);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.crm-client-record:hover {
  transform: translateY(-2px);
  border-color: rgba(125,211,252,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 18px 36px rgba(0,0,0,.28),
    0 0 0 1px rgba(59,130,246,.16);
}
.crm-client-record--selected {
  border-color: rgba(16,185,129,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(16,185,129,.18),
    0 18px 36px rgba(0,0,0,.28);
}
.crm-client-record__glow {
  position: absolute;
  inset: -25% auto auto -18%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59,130,246,.12), transparent 62%);
  pointer-events: none;
}
.crm-client-record__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.crm-client-record__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.crm-client-record__avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #eff7ff;
  background: linear-gradient(135deg, rgba(37,99,235,.88), rgba(14,165,233,.68));
  box-shadow: 0 12px 24px rgba(37,99,235,.22);
}
.crm-client-record__identity h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
  word-break: break-word;
}
.crm-client-record__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #dcedff;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.24);
}
.crm-client-record__docs {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #bfe0ff;
  background: rgba(12,31,56,.9);
  border: 1px solid rgba(90,134,190,.22);
  white-space: nowrap;
}
.crm-client-record__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.crm-detail-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.crm-detail-item__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.crm-detail-item__value {
  min-width: 0;
  word-break: break-word;
}
.crm-link,
.crm-client-record a {
  color: #dff0ff;
  text-decoration: none;
}
.crm-link:hover,
.crm-client-record a:hover {
  text-decoration: underline;
}
.crm-client-record__footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.crm-client-record__footer button {
  width: 100%;
}
.crm-clients-empty {
  padding: 28px 18px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(125,211,252,.22);
  background: rgba(10,21,38,.64);
}
@media (max-width: 1100px) {
  .crm-clients-hero,
  .crm-clients-list-head,
  .crm-client-editor-head {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-clients-list-search {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .crm-clients-shell {
    gap: 14px;
  }
  .crm-clients-hero,
  .crm-clients-list-card,
  .crm-client-editor-card,
  .crm-client-record {
    padding: 15px;
    border-radius: 18px;
  }
  .crm-client-record__top,
  .crm-client-record__identity {
    align-items: flex-start;
  }
  .crm-client-record__details,
  .crm-client-record__footer {
    grid-template-columns: 1fr;
  }
  .crm-new-client-btn {
    min-width: 0;
    width: 100%;
  }
  .crm-clients-hero__actions {
    width: 100%;
  }
  .crm-clients-hero__actions > * {
    flex: 1 1 100%;
  }
}


/* ===== Invoice multi-item form ===== */
.invoice-items-box {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.invoice-item-row {
  display: grid;
  grid-template-columns: 1.7fr .55fr .75fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(125,211,252,.16);
  border-radius: 16px;
  background: rgba(8,18,32,.72);
}

.invoice-item-actions {
  margin-top: 10px;
}

.invoice-new-service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.invoice-remove-btn {
  min-height: 43px;
}

@media (max-width: 900px) {
  .invoice-item-row,
  .invoice-new-service-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Invoice totals fields update ===== */
.invoice-item-row {
  grid-template-columns: 1.6fr .45fr .65fr .75fr auto;
}
@media (max-width: 1100px) {
  .invoice-item-row { grid-template-columns: 1fr 1fr; }
}

/* Email template manager */
.email-template-panel {
  border-color: rgba(125, 211, 252, .22);
  background: linear-gradient(180deg, rgba(15, 31, 52, .98), rgba(10, 22, 39, .98));
}
.email-template-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.email-template-body {
  min-height: 150px;
}
@media (max-width: 760px) {
  .email-template-picker-row { grid-template-columns: 1fr; }
}


/* M&J Multiservices additions */
.mini-donut { padding: 10px; border-radius: 16px; border: 1px solid rgba(71,104,151,.18); background: rgba(8,18,32,.35); }
.modal-tools .modal-search-input { max-width: 280px; min-width: 220px; }
.case-closed-screen { text-align: center; padding: 24px 12px 28px; display: grid; gap: 12px; place-items: center; }
.case-closed-icon { width: 82px; height: 82px; border-radius: 999px; display: grid; place-items: center; font-size: 42px; font-weight: 900; background: linear-gradient(135deg, rgba(16,185,129,.95), rgba(59,130,246,.85)); color: white; box-shadow: 0 18px 40px rgba(16,185,129,.22); animation: caseClosedPop .55s ease both; }
.case-closed-screen h2 { margin: 0; font-size: clamp(30px, 5vw, 48px); }
.case-closed-screen p { margin: 0; color: var(--text); font-size: 18px; max-width: 560px; line-height: 1.5; }
@keyframes caseClosedPop { 0% { transform: scale(.55); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }


.crm-followup-btn {
  border-color: rgba(16,185,129,.35) !important;
  color: #c8ffea !important;
}
.crm-followup-btn--active {
  opacity: .9;
  background: linear-gradient(135deg, rgba(16,185,129,.20), rgba(59,130,246,.12)) !important;
}
.followup-success-card {
  text-align: center;
  padding: 18px 10px 8px;
}
.followup-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16,185,129,.26), rgba(59,130,246,.18));
  border: 1px solid rgba(16,185,129,.38);
  color: #b4ffde;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(16,185,129,.14);
}
.followup-success-card h3 { margin: 0 0 8px; }
.followup-success-card p { margin: 0 auto; max-width: 560px; color: var(--muted); line-height: 1.6; }


.followup-review-wrap { display: grid; gap: 18px; }
.followup-review-hero { padding: 18px; border-radius: 20px; border: 1px solid rgba(125,211,252,.22); background: linear-gradient(135deg, rgba(16,35,63,.96), rgba(9,19,33,.96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.followup-review-hero h3 { margin: 8px 0 8px; }
.followup-client-chip { display: inline-flex; margin-top: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(59,130,246,.14); border: 1px solid rgba(96,165,250,.28); color: #eaf4ff; font-size: 13px; }
.followup-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.followup-review-card { padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(15,27,45,.98), rgba(9,19,33,.98)); border: 1px solid rgba(71,104,151,.28); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.followup-review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.followup-day-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.28); color: #c9ffe8; font-size: 12px; font-weight: 700; }
.followup-review-card textarea { min-height: 220px; line-height: 1.45; }
.followup-review-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
@media (max-width: 1100px) { .followup-review-grid { grid-template-columns: 1fr; } }
