/* ============================================================================================
   BUSMA QR Life — consumer dashboard design system (R12.3).
   Scoped entirely under .life-shell / .life-sidebar so the Business admin shell and the
   Platform Control Center are never affected. Layered ON TOP of admin.css. RTL-safe (logical
   properties only). Real data only — this file adds no content, just the premium visual language.
   ============================================================================================ */
.life-shell {
    --lf-green: #0E8F5A;
    --lf-green-dark: #0B6E47;
    --lf-mint: #E8F5EE;
    --lf-ink: #101828;
    --lf-muted: #667085;
    --lf-line: #ECEFF3;
    --lf-canvas: #F5F7F9;
    --lf-card: #FFFFFF;
    --lf-radius: 18px;
    --lf-radius-sm: 12px;
    --lf-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -16px rgba(16,24,40,.18);
    --lf-shadow-hover: 0 2px 4px rgba(16,24,40,.06), 0 16px 36px -18px rgba(16,24,40,.28);
}
.life-shell.admin-body { background: var(--lf-canvas); }
/* Wider, better-used canvas on large displays (was capped at 1120). */
.life-shell .admin-content { max-width: 1360px; margin-inline: auto; padding-block: 20px; }
.life-shell h1, .life-shell h2, .life-shell h3, .life-shell h4 { color: var(--lf-ink); }

/* ---- generic Life card ---- */
.life-card { background: var(--lf-card); border: 1px solid var(--lf-line); border-radius: var(--lf-radius); box-shadow: var(--lf-shadow); }
.life-section-title { font-size: 1rem; font-weight: 700; color: var(--lf-ink); margin: 0 0 .75rem; }
.life-link { color: var(--lf-green); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.life-link:hover { color: var(--lf-green-dark); }
.life-link .bi { transition: transform .15s ease; }
.life-link:hover .bi { transform: translateX(3px); }
[dir="rtl"] .life-link:hover .bi { transform: translateX(-3px); }

/* ---- HERO ---- */
.life-hero {
    position: relative; overflow: hidden; border-radius: 22px; color: #fff; margin-bottom: 20px;
    background: linear-gradient(135deg, #0B6E47 0%, #0E8F5A 52%, #16B36B 100%);
    box-shadow: 0 20px 48px -24px rgba(14,143,90,.6);
    padding: clamp(22px, 3vw, 40px);
    display: grid; grid-template-columns: 1.4fr .9fr; align-items: center; gap: 24px;
}
.life-hero__eyebrow { font-weight: 600; opacity: .9; letter-spacing: .02em; margin-bottom: .35rem; }
.life-hero__title { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; line-height: 1.15; margin: 0 0 .5rem; }
.life-hero__sub { opacity: .92; max-width: 46ch; margin: 0 0 1.25rem; font-size: 1rem; }
.life-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.life-hero__art { justify-self: end; align-self: center; width: 100%; max-width: 320px; }
.life-hero__art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(0,0,0,.18)); }

.lf-btn { display: inline-flex; align-items: center; gap: .45rem; border-radius: 12px; font-weight: 700; padding: .6rem 1.15rem; text-decoration: none; border: 1px solid transparent; font-size: .95rem; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.lf-btn:active { transform: translateY(1px); }
.lf-btn--primary { background: #fff; color: var(--lf-green-dark); box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
.lf-btn--primary:hover { color: var(--lf-green-dark); box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
.lf-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.32); }
.lf-btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.lf-btn--solid { background: var(--lf-green); color: #fff; box-shadow: 0 8px 20px -10px rgba(14,143,90,.7); }
.lf-btn--solid:hover { background: var(--lf-green-dark); color: #fff; }
.lf-btn--soft { background: var(--lf-mint); color: var(--lf-green-dark); }
.lf-btn--soft:hover { background: #d8efe2; color: var(--lf-green-dark); }
.lf-btn--sm { padding: .4rem .8rem; font-size: .85rem; }

/* ---- compact subscription chip ---- */
.life-subchip { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .3rem .3rem .3rem .85rem; margin-bottom: 1rem; }
[dir="rtl"] .life-subchip { padding: .3rem .85rem .3rem .3rem; }
.life-subchip__dot { width: 8px; height: 8px; border-radius: 50%; background: #8AF0BE; box-shadow: 0 0 0 3px rgba(138,240,190,.25); }
.life-subchip strong { font-weight: 800; }
.life-subchip a { background: #fff; color: var(--lf-green-dark); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; font-weight: 700; text-decoration: none; }

/* ---- KPI cards ---- */
.life-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.life-kpi { position: relative; background: var(--lf-card); border: 1px solid var(--lf-line); border-radius: var(--lf-radius); box-shadow: var(--lf-shadow); padding: 18px; overflow: hidden; }
.life-kpi__chip { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 12px; }
.life-kpi__value { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--lf-ink); font-feature-settings: "tnum"; }
.life-kpi__label { color: var(--lf-muted); font-size: .85rem; margin-top: .3rem; }
.life-kpi__hint { color: var(--lf-green-dark); font-size: .78rem; margin-top: .35rem; font-weight: 600; }

/* ---- service (product) cards ---- */
.life-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.life-service { display: flex; flex-direction: column; background: var(--lf-card); border: 1px solid var(--lf-line); border-radius: var(--lf-radius); box-shadow: var(--lf-shadow); overflow: hidden; transition: transform .14s ease, box-shadow .14s ease; }
.life-service:hover { transform: translateY(-3px); box-shadow: var(--lf-shadow-hover); }
.life-service__art { height: 92px; display: grid; place-items: center; position: relative; }
.life-service__art .bi { font-size: 2rem; }
.life-service__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.life-service__name { font-weight: 800; color: var(--lf-ink); line-height: 1.1; }
.life-service__sub { color: var(--lf-muted); font-size: .82rem; margin-top: .1rem; }
.life-service__stats { display: flex; gap: 14px; margin: 12px 0; color: var(--lf-muted); font-size: .84rem; }
.life-service__stats b { color: var(--lf-ink); font-size: 1.05rem; font-weight: 800; }
.life-service__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.life-badge { font-size: .72rem; font-weight: 700; padding: .18rem .5rem; border-radius: 999px; }
.life-badge--warn { background: #FEF3C7; color: #92400E; }
.life-badge--info { background: var(--lf-mint); color: var(--lf-green-dark); }
/* per-vertical soft accents (green stays the master brand; buttons/links remain green) */
.life-service--auto  .life-service__art { background: #EAF3FF; } .life-service--auto  .life-service__art .bi { color: #1D4ED8; }
.life-service--find  .life-service__art { background: #E0F2F1; } .life-service--find  .life-service__art .bi { color: #0F766E; }
.life-service--kids  .life-service__art { background: #EDE9FE; } .life-service--kids  .life-service__art .bi { color: #7C3AED; }
.life-service--events .life-service__art { background: var(--lf-mint); } .life-service--events .life-service__art .bi { color: var(--lf-green); }

/* ---- bottom 3-column grid ---- */
.life-bottom { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 16px; align-items: start; }
.life-panel { background: var(--lf-card); border: 1px solid var(--lf-line); border-radius: var(--lf-radius); box-shadow: var(--lf-shadow); padding: 18px; }
.life-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.life-panel__head h3 { margin: 0; font-size: .98rem; font-weight: 700; }

/* activity timeline */
.life-activity { list-style: none; margin: 0; padding: 0; }
.life-activity li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lf-line); }
.life-activity li:first-child { border-top: 0; }
.life-actchip { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: var(--lf-mint); color: var(--lf-green); }
.life-activity .t { font-weight: 700; font-size: .86rem; color: var(--lf-ink); }
.life-activity .d { font-size: .82rem; color: var(--lf-muted); }
.life-activity .ago { margin-inline-start: auto; font-size: .76rem; color: var(--lf-muted); white-space: nowrap; }

/* upcoming events */
.life-event { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lf-line); text-decoration: none; }
.life-event:first-of-type { border-top: 0; }
.life-event__date { flex: 0 0 auto; width: 48px; text-align: center; border-radius: 10px; background: var(--lf-mint); color: var(--lf-green-dark); padding: 6px 0; line-height: 1; }
.life-event__date .d { font-size: 1.15rem; font-weight: 800; }
.life-event__date .m { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.life-event__body { min-width: 0; }
.life-event__title { font-weight: 700; color: var(--lf-ink); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.life-event__meta { font-size: .78rem; color: var(--lf-muted); }
.life-event .bi-chevron-right, .life-event .bi-chevron-left { margin-inline-start: auto; color: var(--lf-muted); }

/* insights */
.life-insight-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.life-insight-row + .life-insight-row { border-top: 1px solid var(--lf-line); }
.life-insight-row .k { color: var(--lf-muted); font-size: .86rem; display: inline-flex; align-items: center; gap: .5rem; }
.life-insight-row .v { font-weight: 800; color: var(--lf-ink); }
.life-bars { margin-top: 12px; display: grid; gap: 8px; }
.life-bar { display: grid; grid-template-columns: 62px 1fr 28px; align-items: center; gap: 8px; font-size: .8rem; color: var(--lf-muted); }
.life-bar__track { height: 8px; background: var(--lf-line); border-radius: 999px; overflow: hidden; }
.life-bar__fill { height: 100%; border-radius: 999px; background: var(--lf-green); }
.life-bar__val { font-weight: 700; color: var(--lf-ink); text-align: end; }

/* calm alerts */
.life-alert { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; text-decoration: none; font-size: .9rem; border: 1px solid; }
.life-alert--warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.life-alert--info { background: var(--lf-mint); border-color: #BBE7CE; color: var(--lf-green-dark); }
.life-alert .bi { font-size: 1.1rem; }
.life-alert .life-link { margin-inline-start: auto; }

/* empty state (onboarding) */
.life-empty-hero { text-align: center; padding: 8px 0 4px; }
.life-empty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 22px auto 0; }
.life-empty-card { background: var(--lf-card); border: 1px solid var(--lf-line); border-radius: var(--lf-radius); box-shadow: var(--lf-shadow); padding: 22px 16px; text-align: center; text-decoration: none; transition: transform .14s ease, box-shadow .14s ease; }
.life-empty-card:hover { transform: translateY(-3px); box-shadow: var(--lf-shadow-hover); }

/* ---- sidebar plan card ---- */
.life-plancard { margin: 10px 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(14,143,90,.16), rgba(22,179,107,.10)); border: 1px solid rgba(255,255,255,.08); }
.life-plancard__label { color: #9FB0C3; font-size: .72rem; }
.life-plancard__name { color: #fff; font-weight: 800; margin: .1rem 0 .5rem; }
.life-plancard__cta { display: block; text-align: center; background: var(--lf-green); color: #fff; border-radius: 10px; padding: .45rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.life-plancard__cta:hover { background: #16B36B; color: #fff; }

/* ---- Life topbar identity ---- */
.life-topbar .lf-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lf-mint); color: var(--lf-green-dark); font-weight: 800; font-size: .82rem; }
.life-topbar .lf-user { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--lf-ink); }
.life-topbar .lf-user__name { font-weight: 600; font-size: .88rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- hero icon composition (R12.3.1 — replaces emoji with the shared bootstrap-icon family) ---- */
.life-hero__art { position: relative; min-height: 190px; }
.lf-artqr { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 118px; height: 118px; background: #fff; border-radius: 22px; display: grid; place-items: center; box-shadow: 0 16px 30px -12px rgba(0,0,0,.28); }
.lf-artqr .bi { font-size: 60px; color: var(--lf-green); }
.lf-artchip { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(0,0,0,.3); }
.lf-artchip .bi { font-size: 22px; }
.lf-artchip--tl { top: 6px; left: 8%; } .lf-artchip--tr { top: 14px; right: 6%; }
.lf-artchip--bl { bottom: 10px; left: 4%; } .lf-artchip--br { bottom: 4px; right: 10%; }

/* ---- product card zero-state (guides creation) ---- */
.life-service__empty { display: flex; flex-direction: column; flex: 1; }
.life-service__empty p { color: var(--lf-muted); font-size: .82rem; margin: .1rem 0 12px; line-height: 1.45; }
.life-service__empty .lf-btn { margin-top: auto; align-self: flex-start; }

/* ---- rich "up next" event ---- */
.life-upnext { display: flex; gap: 14px; align-items: stretch; text-decoration: none; padding: 4px 0 12px; border-bottom: 1px solid var(--lf-line); margin-bottom: 10px; }
.life-upnext__date { flex: 0 0 auto; width: 64px; border-radius: 14px; background: linear-gradient(135deg,#0B6E47,#16B36B); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; }
.life-upnext__date .d { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.life-upnext__date .m { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .95; margin-top: 2px; }
.life-upnext__date .soon { font-size: .82rem; font-weight: 800; }
.life-upnext__body { min-width: 0; display: flex; flex-direction: column; }
.life-upnext__title { font-weight: 800; color: var(--lf-ink); font-size: 1rem; }
.life-upnext__type { font-size: .8rem; color: var(--lf-muted); margin-top: 1px; }
.life-upnext__rsvp { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; font-size: .82rem; }
.life-upnext__rsvp b { font-weight: 800; }
.rsvp-c { color: var(--lf-green-dark); } .rsvp-d { color: #B45309; }

/* ---- QR activity sparkline ---- */
.life-spark { margin-top: 6px; }
.life-spark svg { width: 100%; height: 64px; display: block; overflow: visible; }
.life-spark__val { font-size: 1.5rem; font-weight: 800; color: var(--lf-ink); }
.life-spark__cap { font-size: .8rem; color: var(--lf-muted); }
.life-spark--empty { text-align: center; color: var(--lf-muted); padding: 18px 0; }

/* ---- recomposed bottom: (up-next | qr activity) then full-width activity ---- */
.life-bottom { grid-template-columns: 1.35fr 1fr; }
.life-bottom > .life-activity-full { grid-column: 1 / -1; }
.life-activity--empty { text-align: center; color: var(--lf-muted); padding: 14px 0 4px; }
.life-activity--empty .bi { font-size: 1.5rem; opacity: .45; }

/* ============================================================================================
   R12.4 — shared Life component layer. One premium language across every authenticated Life page
   (Auto / Find / Kids / Events / Tags / Orders / Billing …). Reuses the R12.3 tokens; no per-page
   one-off styling. Specialized workspaces (Events Designer) keep their own CSS.
   ============================================================================================ */

/* --- compact page header (internal pages; Home keeps the big hero) --- */
.life-back { display:inline-flex; align-items:center; gap:.35rem; color:var(--lf-muted); text-decoration:none; font-size:.85rem; margin-bottom:10px; }
.life-back:hover { color:var(--lf-green); }
.life-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.life-head__title { font-size:1.4rem; font-weight:800; color:var(--lf-ink); margin:0; display:inline-flex; align-items:center; gap:.55rem; }
.life-head__title .bi { color:var(--lf-green); }
.life-head__sub { color:var(--lf-muted); font-size:.9rem; margin-top:4px; max-width:60ch; }
.life-head__actions { display:flex; gap:8px; flex-wrap:wrap; }

/* --- summary tiles + asset card grid --- */
.life-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:20px; }
.life-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }

.life-tile { display:flex; flex-direction:column; background:var(--lf-card); border:1px solid var(--lf-line); border-radius:var(--lf-radius); box-shadow:var(--lf-shadow); padding:16px; transition:transform .14s ease, box-shadow .14s ease; text-decoration:none; }
a.life-tile:hover { transform:translateY(-3px); box-shadow:var(--lf-shadow-hover); }
.life-tile__top { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.life-tile__icon { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; font-size:1.3rem; flex:0 0 auto; background:var(--lf-mint); color:var(--lf-green); }
.life-tile__name { font-weight:800; color:var(--lf-ink); line-height:1.15; }
.life-tile__meta { color:var(--lf-muted); font-size:.82rem; margin-top:1px; }
.life-tile__body { color:var(--lf-muted); font-size:.85rem; display:flex; flex-wrap:wrap; gap:6px 14px; }
.life-tile__body b { color:var(--lf-ink); font-weight:700; }
.life-tile__foot { margin-top:auto; padding-top:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.life-tile--auto .life-tile__icon { background:#EAF3FF; color:#1D4ED8; }
.life-tile--find .life-tile__icon { background:#E0F2F1; color:#0F766E; }
.life-tile--kids .life-tile__icon { background:#EDE9FE; color:#7C3AED; }
.life-tile--events .life-tile__icon { background:var(--lf-mint); color:var(--lf-green); }
.life-tile--lost { border-color:#FDE68A; }
.life-tile--lost .life-tile__icon { background:#FEF3C7; color:#B45309; }

/* --- status badges (semantic, consistent) --- */
.life-badge { display:inline-flex; align-items:center; gap:.3rem; }
.life-badge--success { background:#DCFCE7; color:#065F46; }
.life-badge--neutral { background:#EEF2F6; color:#475569; }
.life-badge--danger { background:#FEE2E2; color:#991B1B; }
.life-badge--muted { background:#F1F5F9; color:#94A3B8; }

/* --- polished empty state --- */
.life-empty { text-align:center; background:var(--lf-card); border:1px solid var(--lf-line); border-radius:var(--lf-radius); box-shadow:var(--lf-shadow); padding:44px 20px; }
.life-empty__icon { width:72px; height:72px; border-radius:20px; display:grid; place-items:center; margin:0 auto 16px; background:var(--lf-mint); color:var(--lf-green); font-size:1.9rem; }
.life-empty__title { font-weight:800; font-size:1.15rem; color:var(--lf-ink); }
.life-empty__text { color:var(--lf-muted); max-width:46ch; margin:6px auto 18px; }

/* --- forms --- */
.life-form { display:grid; gap:16px; }
.life-formsec { background:var(--lf-card); border:1px solid var(--lf-line); border-radius:var(--lf-radius); box-shadow:var(--lf-shadow); padding:18px; }
.life-formsec__title { font-weight:700; color:var(--lf-ink); margin:0 0 14px; display:flex; align-items:center; gap:.5rem; }
.life-formsec__title .bi { color:var(--lf-green); }
.life-field { margin-bottom:14px; } .life-field:last-child { margin-bottom:0; }
.life-field > label { display:block; font-size:.85rem; font-weight:600; color:var(--lf-ink); margin-bottom:5px; }
.life-shell .form-control, .life-shell .form-select { border-radius:10px; }
.life-field .form-control:focus, .life-field .form-select:focus { border-color:var(--lf-green); box-shadow:0 0 0 3px rgba(14,143,90,.12); }
.life-hint { font-size:.78rem; color:var(--lf-muted); margin-top:5px; display:flex; align-items:flex-start; gap:.35rem; }
.life-hint .bi { color:var(--lf-green); margin-top:1px; flex:0 0 auto; }
.life-hint--privacy { color:#7C3AED; } .life-hint--privacy .bi { color:#7C3AED; }
.life-req { color:#DC2626; }
.life-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:4px; }
.life-actions .spacer { margin-inline-start:auto; }

/* --- QR management card --- */
.life-qrcard { text-align:center; }
.life-qrcard img { width:170px; height:170px; max-width:100%; border:1px solid var(--lf-line); border-radius:14px; padding:8px; background:#fff; }

/* --- detail sections + description lists --- */
.life-cols { display:grid; grid-template-columns:1fr 1.4fr; gap:16px; align-items:start; }
.life-detailsec { background:var(--lf-card); border:1px solid var(--lf-line); border-radius:var(--lf-radius); box-shadow:var(--lf-shadow); padding:18px; }
.life-detailsec + .life-detailsec { margin-top:16px; }
.life-dl { display:grid; grid-template-columns:auto 1fr; gap:9px 16px; margin:0; font-size:.9rem; }
.life-dl dt { color:var(--lf-muted); } .life-dl dd { margin:0; color:var(--lf-ink); font-weight:600; text-align:end; }

/* --- lost-mode banner (Find) --- */
.life-lostbanner { display:flex; align-items:center; gap:12px; background:#FFFBEB; border:1px solid #FDE68A; color:#92400E; border-radius:var(--lf-radius); padding:14px 16px; margin-bottom:16px; }
.life-lostbanner .bi { font-size:1.5rem; }

/* --- polished table (orders / billing) --- */
.life-tablewrap { background:var(--lf-card); border:1px solid var(--lf-line); border-radius:var(--lf-radius); box-shadow:var(--lf-shadow); overflow:auto; }
.life-table { width:100%; border-collapse:separate; border-spacing:0; margin:0; }
.life-table th { text-align:start; font-size:.72rem; text-transform:uppercase; letter-spacing:.03em; color:var(--lf-muted); font-weight:700; padding:12px; white-space:nowrap; }
.life-table td { padding:14px 12px; border-top:1px solid var(--lf-line); font-size:.88rem; color:var(--lf-ink); }
.life-table tbody tr:hover { background:#FAFBFC; }
.life-table td:first-child, .life-table th:first-child { padding-inline-start:18px; }
.life-table td:last-child, .life-table th:last-child { padding-inline-end:18px; }

/* --- plan cards (pricing / upgrade) --- */
.life-plans { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.life-plan { background:var(--lf-card); border:1px solid var(--lf-line); border-radius:var(--lf-radius); box-shadow:var(--lf-shadow); padding:22px; display:flex; flex-direction:column; }
.life-plan--featured { border-color:var(--lf-green); box-shadow:0 16px 40px -20px rgba(14,143,90,.45); position:relative; }
.life-plan__tag { position:absolute; top:-11px; inset-inline-start:22px; background:var(--lf-green); color:#fff; font-size:.72rem; font-weight:700; padding:.2rem .6rem; border-radius:999px; }
.life-plan__name { font-weight:800; font-size:1.15rem; color:var(--lf-ink); }
.life-plan__price { font-size:1.9rem; font-weight:800; color:var(--lf-ink); margin:8px 0; }
.life-plan__price small { font-size:.85rem; font-weight:500; color:var(--lf-muted); }
.life-plan__feats { list-style:none; margin:12px 0 18px; padding:0; display:grid; gap:8px; font-size:.88rem; color:var(--lf-ink); }
.life-plan__feats li { display:flex; align-items:center; gap:.5rem; } .life-plan__feats .bi { color:var(--lf-green); }
.life-plan__cta { margin-top:auto; }
.life-current { display:inline-flex; align-items:center; gap:.35rem; background:var(--lf-mint); color:var(--lf-green-dark); font-weight:700; border-radius:10px; padding:.5rem; justify-content:center; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1180px) {
    .life-bottom { grid-template-columns: 1fr 1fr; }
    .life-bottom > :last-child { grid-column: 1 / -1; }
    .life-empty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .life-services { grid-template-columns: repeat(2, 1fr); }
    .life-hero { grid-template-columns: 1fr; }
    .life-hero__art { display: none; }
}
@media (max-width: 640px) {
    .life-kpis { grid-template-columns: repeat(2, 1fr); }
    .life-services { grid-template-columns: 1fr; }
    .life-bottom { grid-template-columns: 1fr; }
    .life-empty-grid { grid-template-columns: repeat(2, 1fr); }
    .life-hero__title { font-size: 1.4rem; }
    .life-hero__actions .lf-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
    .life-kpis { grid-template-columns: 1fr; }
}
/* keep the topbar within the viewport on phones (no horizontal scroll) */
@media (max-width: 576px) {
    .life-topbar .topbar-actions { gap: 6px; }
    .life-topbar .topbar-title { display: none; }
    .life-topbar .btn-light { padding-inline: .5rem; }
}
/* R12.4 shared components responsive */
@media (max-width: 900px) {
    .life-cols { grid-template-columns: 1fr; }
    .life-plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .life-head { flex-direction: column; align-items: stretch; }
    .life-head__actions .lf-btn { flex: 1 1 auto; justify-content: center; }
    .life-grid { grid-template-columns: 1fr; }
    .life-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .life-service, .life-empty-card, .lf-btn, .life-link .bi, .life-tile { transition: none; }
}
