/* PlastiLink design system. Loaded after Bootstrap 5; overrides via tokens. */
:root {
  --pl-primary: #086B52;
  --pl-primary-dark: #055440;
  --pl-secondary: #16A085;
  --pl-mint: #DFF3EA;
  --pl-bg: #F4F7F5;
  --pl-charcoal: #202C28;
  --pl-amber: #F0B44D;
  --pl-white: #FFFFFF;
  --pl-muted: #5B6B66;
  --pl-border: #D5DDDA;
  --pl-radius: 1rem;
  --pl-shadow: 0 1px 2px rgba(32,44,40,.06), 0 4px 14px rgba(32,44,40,.06);

  --bs-primary: var(--pl-primary);
  --bs-primary-rgb: 8, 107, 82;
  --bs-success: var(--pl-secondary);
  --bs-success-rgb: 22, 160, 133;
  --bs-warning: var(--pl-amber);
  --bs-warning-rgb: 240, 180, 77;
  --bs-body-bg: var(--pl-bg);
  --bs-body-color: var(--pl-charcoal);
  --bs-link-color: var(--pl-primary);
  --bs-link-hover-color: var(--pl-primary-dark);
  --bs-border-color: var(--pl-border);
  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { background: var(--pl-bg); color: var(--pl-charcoal); }
.text-muted, .text-secondary { color: var(--pl-muted) !important; }

/* Buttons */
.btn { border-radius: .6rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-primary { --bs-btn-bg: var(--pl-primary); --bs-btn-border-color: var(--pl-primary);
  --bs-btn-hover-bg: var(--pl-primary-dark); --bs-btn-hover-border-color: var(--pl-primary-dark);
  --bs-btn-active-bg: var(--pl-primary-dark); --bs-btn-active-border-color: var(--pl-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--pl-primary); --bs-btn-border-color: var(--pl-primary);
  --bs-btn-hover-bg: var(--pl-primary); --bs-btn-hover-border-color: var(--pl-primary);
  --bs-btn-active-bg: var(--pl-primary); --bs-btn-active-border-color: var(--pl-primary); }
.btn-accent { --bs-btn-bg: var(--pl-amber); --bs-btn-border-color: var(--pl-amber); --bs-btn-color: var(--pl-charcoal);
  --bs-btn-hover-bg: #e4a237; --bs-btn-hover-border-color: #e4a237; --bs-btn-hover-color: var(--pl-charcoal); }
:focus-visible { outline: 3px solid var(--pl-amber); outline-offset: 2px; }

/* Tabs / pills use the brand colours */
.nav-pills { --bs-nav-pills-link-active-bg: var(--pl-primary); --bs-nav-pills-link-active-color: #fff; --bs-nav-link-color: var(--pl-primary); --bs-nav-link-hover-color: var(--pl-primary-dark); }
.page-link { color: var(--pl-primary); }
.page-item.active .page-link { background: var(--pl-primary); border-color: var(--pl-primary); }

/* Brand */
.brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 1.3rem; }
.brand .brand-plasti { color: var(--pl-charcoal); }
.brand .brand-link { color: var(--pl-primary); }
.brand-on-dark .brand-plasti { color: #fff; }
.brand-on-dark .brand-link { color: var(--pl-mint); }

/* Public layout */
.site-nav { background: #fff; border-bottom: 1px solid var(--pl-border); }
.site-footer { background: var(--pl-charcoal); color: #cfd9d5; }
.site-footer a { color: var(--pl-mint); }

.hero { background: linear-gradient(135deg, var(--pl-primary) 0%, var(--pl-secondary) 100%); color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); }

/* Cards */
.card { border: 1px solid var(--pl-border); border-radius: var(--pl-radius); box-shadow: var(--pl-shadow); }
.stat-icon { width: 48px; height: 48px; border-radius: .75rem; background: var(--pl-mint); color: var(--pl-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.stat-card .stat-label { color: var(--pl-muted); font-size: .875rem; }

@media (max-width: 420px) {
  .stat-card .stat-value { font-size: 1.3rem; }
  .stat-card .card-body { gap: .6rem !important; padding: .8rem; }
  .stat-icon { width: 40px; height: 40px; font-size: 1.15rem; }
}

/* Forms */
.form-label { font-weight: 600; }
.form-control, .form-select { min-height: 44px; border-radius: .6rem; border-color: var(--pl-border); }
.form-control:focus, .form-select:focus { border-color: var(--pl-secondary); box-shadow: 0 0 0 .2rem rgba(22,160,133,.2); }

/* Tables */
.table { --bs-table-bg: transparent; }
.table thead th { background: transparent; color: var(--pl-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--pl-border); white-space: nowrap; padding-top: .9rem; padding-bottom: .7rem; }
.table > tbody > tr > * { border-bottom-color: #E6ECE9; padding-top: .75rem; padding-bottom: .75rem; }
.table > tbody > tr:hover > * { background: #EAF5EF; }

/* Badges / states */
.badge-soft { background: var(--pl-mint); color: var(--pl-primary); font-weight: 600; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--pl-muted); }
.empty-state .bi { font-size: 2.5rem; color: var(--pl-secondary); }

/* Loading state */
.loading { position: relative; pointer-events: none; opacity: .6; }
.spinner-pl { width: 1.25rem; height: 1.25rem; border: 3px solid var(--pl-mint); border-top-color: var(--pl-primary);
  border-radius: 50%; animation: pl-spin .8s linear infinite; display: inline-block; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

/* Dashboard layout */
.dash { display: flex; min-height: 100vh; }
.sidebar { width: 270px; background: var(--pl-primary); color: #fff; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-brand { padding: 1.25rem 1.5rem; }
.sidebar .brand-plasti { color: #fff; }
.sidebar .brand-link { color: var(--pl-mint); }
.sidebar-panel { flex: 1; overflow-y: auto; padding: .5rem 1rem 1.25rem; }
.sidebar .nav-link { color: rgba(255,255,255,.88); border-radius: 999px; padding: .6rem 1rem; display: flex; gap: .75rem; align-items: center; min-height: 44px; font-weight: 500; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.sidebar .nav-link.active { background: #fff; color: var(--pl-primary); font-weight: 700; }
.dash-main { flex: 1; min-width: 0; }
.dash-topbar { background: #fff; border-bottom: 1px solid var(--pl-border); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pl-primary); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topbar-search { position: relative; align-items: center; flex: 1 1 auto; max-width: 420px; margin-left: 1rem; }
.topbar-search .bi { position: absolute; left: 1rem; color: var(--pl-muted); pointer-events: none; }
.topbar-search .form-control { border-radius: 999px; background: #EEF3F1; border-color: transparent; padding-left: 2.6rem; }

/* Desktop: a floating, rounded app window on a coloured backdrop, as in modern drive-style apps */
@media (min-width: 992px) {
  body.app-body { background: var(--pl-primary); padding: 1.25rem; }
  .app-body .dash { height: calc(100vh - 2.5rem); min-height: 0; max-width: 1760px; margin: 0 auto; background: #fff;
    border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
  .app-body .sidebar { background: #fff; }
  .app-body .sidebar .brand-plasti { color: var(--pl-charcoal); }
  .app-body .sidebar .brand-link { color: var(--pl-primary); }
  .app-body .sidebar-panel { background: var(--pl-primary); border-top-right-radius: 40px; padding-top: 1.5rem; }
  .app-body .dash-main { overflow-y: auto; background: var(--pl-bg); }
  .app-body .dash-topbar { position: sticky; top: 0; z-index: 5; border-bottom: 0; padding-top: .9rem !important; padding-bottom: .9rem !important; }
}
@media (max-width: 991.98px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .2s; z-index: 1040; }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.open { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1030; }
}

.swatch { height: 64px; border-radius: .6rem; border: 1px solid var(--pl-border); }

/* Printing (receipts): only the receipt, no navigation */
@media print {
  body { background: #fff !important; }
  .sidebar, .sidebar-backdrop, .dash-topbar, .no-print, .alert-success, .site-nav, .site-footer { display: none !important; }
  body.app-body { padding: 0 !important; }
  .app-body .dash { height: auto !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
  .app-body .dash-main { overflow: visible !important; }
  .dash-main { padding: 0 !important; }
  main { padding: 0 !important; }
  .card { border: 1px solid #999 !important; box-shadow: none !important; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Admin dashboard: greeting banner, attention cards, quick-link tiles */
.dash-hero { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--pl-mint), #fff 70%); border: 1px solid var(--pl-border); border-radius: var(--pl-radius);
  padding: 1.25rem 1.5rem; box-shadow: var(--pl-shadow); }
.attn-card { border-left: 4px solid var(--pl-amber); }
.attn-count { min-width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #FFF1D6; color: #7a4d00; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
/* Folder-style tiles: a tab on the top-left corner, the first one filled */
.quick-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; height: 100%; min-height: 128px;
  padding: 1.25rem 1.1rem 1rem; margin-top: .9rem; background: #E9F2EE; color: inherit; border: 0; border-radius: 0 1.1rem 1.1rem 1.1rem;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.quick-tile::before { content: ""; position: absolute; left: 0; top: -.9rem; width: 46%; height: 1rem; background: inherit; border-radius: .8rem .8rem 0 0; }
.quick-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(8,107,82,.18); color: inherit; }
.quick-tile .stat-icon { background: #fff; width: 42px; height: 42px; font-size: 1.2rem; }
.quick-tile.is-featured { background: var(--pl-primary); color: #fff; }
.quick-tile.is-featured .text-muted { color: rgba(255,255,255,.8) !important; }
.quick-tile.is-featured:hover { color: #fff; }

/* Recent activity table header */
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem .4rem; }
@media (prefers-reduced-motion: reduce) { .quick-tile { transition: none; } .quick-tile:hover { transform: none; } }

/* ---------- Public site (landing, sign-in and registration pages) ---------- */
:root { --pl-lime: #9BD13D; --pl-deep: #0E261E; }
.site-nav { background: var(--pl-deep); border-bottom: 0; padding-top: .7rem; padding-bottom: .7rem; }
.site-nav .brand-plasti { color: #fff; }
.site-nav .brand-link { color: var(--pl-lime); }
.site-nav .nav-link { color: rgba(255,255,255,.85); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--pl-lime); }
.btn-lime { --bs-btn-bg: var(--pl-lime); --bs-btn-border-color: var(--pl-lime); --bs-btn-color: #10261e;
  --bs-btn-hover-bg: #b1e054; --bs-btn-hover-border-color: #b1e054; --bs-btn-hover-color: #10261e;
  --bs-btn-active-bg: #b1e054; --bs-btn-active-border-color: #b1e054; --bs-btn-active-color: #10261e; font-weight: 700; border-radius: 999px; }
.btn-outline-light { border-radius: 999px; }
.site-footer { background: var(--pl-deep); color: #cfd9d5; }
.site-footer a { color: #cfd9d5; text-decoration: none; }
.site-footer a:hover { color: var(--pl-lime); }
.site-footer li { margin-bottom: .45rem; }
.footer-muted { color: rgba(255,255,255,.6); }
.footer-rule { border-color: rgba(255,255,255,.15); margin: 1.5rem 0 1rem; }

.land-hero { position: relative; color: #fff; padding: 5rem 0 7rem; overflow: hidden;
  background: radial-gradient(800px 460px at 88% 15%, rgba(155,209,61,.28), transparent 60%),
              radial-gradient(700px 480px at 0% 100%, rgba(22,160,133,.40), transparent 60%),
              linear-gradient(160deg, #0b2a20 0%, #0f3b2d 55%, #165a43 100%); }
.land-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; }
.land-hero h1 { text-transform: uppercase; font-weight: 800; line-height: 1.03; letter-spacing: -.01em; font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
.land-hero .lead { color: rgba(255,255,255,.88); max-width: 36rem; }
.land-chip { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: .3rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.land-kicker { display: inline-block; color: var(--pl-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .5rem; }
.hero-orb { width: 210px; height: 210px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(155,209,61,.30), rgba(155,209,61,0) 68%); border: 1px solid rgba(155,209,61,.35); }
.hero-orb .bi { font-size: 6.5rem; color: var(--pl-lime); }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border-radius: 1.4rem; padding: 1rem 1.1rem; position: relative; }
.hero-step { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; font-weight: 500; }
.hero-step + .hero-step { border-top: 1px solid rgba(255,255,255,.12); }
.hero-step span { width: 38px; height: 38px; border-radius: .7rem; background: var(--pl-lime); color: var(--pl-deep);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mt-n3 { margin-top: -1rem; }

/* Four step cards that overlap the hero, styled like photo cards */
.land-pull { margin-top: -4.2rem; position: relative; z-index: 2; }
.svc-card { position: relative; min-height: 210px; border-radius: 1.4rem; padding: 1.1rem; color: #fff; display: flex; align-items: flex-end; overflow: hidden;
  box-shadow: 0 14px 30px rgba(14,38,30,.22); height: 100%; }
.svc-1 { background: linear-gradient(160deg, #1d6a4f, #0d3a2b); }
.svc-2 { background: linear-gradient(160deg, #2a7f8a, #123e4a); }
.svc-3 { background: linear-gradient(160deg, #6a8f1f, #2f4a0f); }
.svc-4 { background: linear-gradient(160deg, #1f8a6c, #0b3f33); }
.svc-bg { position: absolute; right: -14px; top: -10px; font-size: 8rem; opacity: .16; line-height: 1; }
.svc-num { display: block; font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--pl-lime); margin-bottom: .2rem; }
.svc-text { color: rgba(255,255,255,.85); padding-right: 2.6rem; }
.svc-badge { position: absolute; right: 0; bottom: 0; width: 54px; height: 54px; background: var(--pl-lime); color: var(--pl-deep);
  border-radius: 1.1rem 0 1.4rem 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* About */
.about-art { position: relative; min-height: 380px; }
.about-tile { position: absolute; border-radius: 1.5rem; color: #fff; padding: 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; font-weight: 700; box-shadow: 0 14px 30px rgba(14,38,30,.18); }
.about-tile .bi { font-size: 2.2rem; color: var(--pl-lime); }
.about-tile.t1 { left: 0; top: 40px; width: 46%; height: 300px; background: linear-gradient(160deg, #1d6a4f, #0d3a2b); }
.about-tile.t2 { right: 0; top: 0; width: 50%; height: 170px; background: linear-gradient(160deg, #2a7f8a, #123e4a); }
.about-tile.t3 { right: 0; bottom: 0; width: 50%; height: 190px; background: linear-gradient(160deg, #6a8f1f, #2f4a0f); }
.about-badge { position: absolute; left: 39%; top: 158px; width: 124px; height: 124px; border-radius: 50%; background: var(--pl-deep); color: #fff;
  border: 6px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; box-shadow: 0 10px 24px rgba(14,38,30,.3); }
.about-badge strong { font-size: 1.35rem; color: var(--pl-lime); }
.about-badge small { font-size: .6rem; color: rgba(255,255,255,.8); padding: 0 .5rem; }
.land-checks li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.land-checks .bi { color: var(--pl-secondary); margin-top: .15rem; }

/* Dark feature band */
.dark-band { background: var(--pl-deep); color: #fff; margin: 1rem 1rem 0; padding: 4.5rem 0; border-radius: 2rem; }
.feat { display: flex; gap: .9rem; align-items: flex-start; }
.feat-icon { width: 48px; height: 48px; border-radius: .9rem; background: var(--pl-lime); color: var(--pl-deep); display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* FAQ and call to action */
.land-faq .accordion-item { border: 1px solid var(--pl-border); border-radius: 1rem !important; margin-bottom: .75rem; overflow: hidden; }
.land-faq .accordion-button { font-weight: 600; background: #fff; }
.land-faq .accordion-button:not(.collapsed) { background: var(--pl-mint); color: var(--pl-primary-dark); box-shadow: none; }
.cta-band { background: linear-gradient(90deg, var(--pl-primary), var(--pl-secondary)); color: #fff; border-radius: 1.5rem; padding: 2.25rem; }

@media (max-width: 575.98px) {
  .land-hero { padding: 3rem 0 6rem; }
  .svc-card { min-height: 180px; }
  .svc-text { padding-right: 0; font-size: .8rem; }
  .svc-badge { width: 44px; height: 44px; font-size: 1.1rem; }
  .about-art { min-height: 340px; }
  .about-badge { left: 36%; width: 112px; height: 112px; }
  .dark-band { margin: 1rem .5rem 0; border-radius: 1.5rem; }
}

/* Photos on the public home page */
.hero-photo { position: relative; border-radius: 1.5rem; overflow: hidden; border: 3px solid rgba(255,255,255,.22); box-shadow: 0 20px 44px rgba(0,0,0,.35); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.hero-photo figcaption { position: absolute; left: .9rem; top: .9rem; background: rgba(14,38,30,.78); color: #fff; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hero-photo figcaption .bi { color: var(--pl-lime); }
.hero-card-overlap { margin: -1.6rem 1rem 0; background: rgba(14,38,30,.9); }
.about-tile { overflow: hidden; padding: 0; justify-content: flex-end; }
.about-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,38,30,.82) 0%, rgba(14,38,30,0) 55%); }
.about-tile span { position: relative; z-index: 1; padding: 0 1rem 1rem; }
.about-tile.t1 img { object-position: 60% 50%; }
.about-tile.t2 img { object-position: 50% 80%; }

/* ---------- Phone and installed-app polish ---------- */
html { -webkit-text-size-adjust: 100%; }
a, button, .btn, .nav-link { touch-action: manipulation; -webkit-tap-highlight-color: rgba(8,107,82,.15); }
.site-nav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
@media (max-width: 767.98px) {
  .form-control, .form-select { font-size: 16px; }            /* stops iOS zooming into fields */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  main.p-3 { padding-left: max(1rem, env(safe-area-inset-left)) !important; padding-right: max(1rem, env(safe-area-inset-right)) !important; }
  /* The Actions column stays visible while the rest of a wide table scrolls sideways */
  td:has(> .row-actions), td.row-actions, .table thead th.th-actions { position: sticky; right: 0; background: #fff; z-index: 1; box-shadow: -10px 0 10px -10px rgba(14,38,30,.25); }
  .table > tbody > tr:hover > td:has(> .row-actions), .table > tbody > tr:hover > td.row-actions { background: #EAF5EF; }
  .row-actions { flex-direction: column; align-items: stretch; }
  td.row-actions { display: table-cell; }
  td.row-actions > .btn, td.row-actions > form { display: block; margin: .15rem 0; }
  td.row-actions > form .btn { width: 100%; }
}

/* Bottom navigation bar (phones only) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: #fff; border-top: 1px solid var(--pl-border);
  box-shadow: 0 -6px 18px rgba(14,38,30,.08); padding-bottom: env(safe-area-inset-bottom); }
.bn-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .5rem .2rem;
  min-height: 56px; background: none; border: 0; color: var(--pl-muted); text-decoration: none; font-size: .68rem; font-weight: 600; }
.bn-item .bi { font-size: 1.3rem; line-height: 1; }
.bn-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-item.active { color: var(--pl-primary); }
.bn-item.active .bi { background: var(--pl-mint); border-radius: 999px; padding: .15rem .9rem; margin-bottom: -.05rem; }
@media (max-width: 991.98px) {
  .dash-main main { padding-bottom: calc(5rem + env(safe-area-inset-bottom)) !important; }
  .dash-topbar { position: sticky; top: 0; z-index: 1020; padding-top: max(.5rem, env(safe-area-inset-top)) !important; }
  .sidebar { padding-top: env(safe-area-inset-top); }
}
@media print { .bottom-nav, .action-tiles { display: none !important; } }

/* Main action in the phone menu */
.bn-main { color: var(--pl-primary); }
.bn-main .bi { background: var(--pl-primary); color: #fff; border-radius: 50%; width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  margin-top: -1.4rem; border: 4px solid #fff; box-sizing: content-box; box-shadow: 0 4px 10px rgba(14,38,30,.2); }
.bn-main.active .bi { background: var(--pl-primary); padding: 0; }

/* Large quick actions on home screens */
.action-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .action-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.action-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 96px; padding: .9rem .5rem;
  background: #fff; border: 1px solid var(--pl-border); border-radius: 18px; color: var(--pl-charcoal); font-weight: 600; text-align: center; text-decoration: none; }
.action-tile .bi { font-size: 1.7rem; line-height: 1; color: var(--pl-primary); }
.action-tile:hover, .action-tile:focus-visible { border-color: var(--pl-primary); color: var(--pl-primary); }
.action-tile:active { background: var(--pl-mint); }
.dash-topbar h1 { min-width: 0; }

/* ---------- Logo ---------- */
.site-logo { display: block; height: 40px; width: auto; }
.site-footer .site-logo { height: 48px; }
.sidebar-brand img { height: 40px; width: auto; max-width: 100%; }
.sidebar-brand .logo-on-light { display: none; }            /* the mobile drawer is green: use the light-on-dark logo */
@media (min-width: 992px) {                                  /* the desktop sidebar header is white: use the dark-on-light logo */
  .app-body .sidebar-brand .logo-on-dark { display: none; }
  .app-body .sidebar-brand .logo-on-light { display: block; }
  .sidebar-brand { padding-top: 1.1rem; padding-bottom: 1.1rem; }
}
@media (max-width: 575.98px) { .site-logo { height: 34px; } }

/* ---------- Dashboard: charts, activity feed, notification bell ---------- */
.dash-chart { position: relative; height: 260px; }
.dash-chart.chart-failed::after { content: "The chart could not be loaded."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--pl-muted); }
.activity-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 1.25rem; border-top: 1px solid #E6ECE9; }
.activity-list li:first-child { border-top: 0; }
.activity-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--pl-mint); color: var(--pl-primary); font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.btn-bell { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--pl-border); background: #fff; color: var(--pl-charcoal); display: inline-flex; align-items: center; justify-content: center; }
.btn-bell:hover, .btn-bell:focus-visible { background: var(--pl-mint); color: var(--pl-primary); }
.notify-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #D64545; color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.notify-badge[hidden] { display: none; }
.notify-menu { min-width: 20rem; max-width: 92vw; padding: .4rem; border-radius: 1rem; }
.attn-count-sm { min-width: 1.7rem; height: 1.7rem; font-size: .8rem; flex-shrink: 0; }
@media (max-width: 575.98px) { .dash-chart { height: 220px; } }

/* ---------- Public site motion (all of it is switched off by the reduced-motion rule above) ---------- */
.site-nav { position: sticky; top: 0; z-index: 1030; transition: box-shadow .2s ease; }
.site-nav.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@keyframes pl-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.land-hero .col-lg-7 > * { animation: pl-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.land-hero .col-lg-7 > *:nth-child(2) { animation-delay: .08s; }
.land-hero .col-lg-7 > *:nth-child(3) { animation-delay: .16s; }
.land-hero .col-lg-7 > *:nth-child(4) { animation-delay: .24s; }
.land-hero .col-lg-7 > *:nth-child(5) { animation-delay: .32s; }
.land-hero .col-lg-5 { animation: pl-rise .8s cubic-bezier(.2,.7,.2,1) .2s both; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.svc-card, .quick-tile { transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(14,38,30,.28); }
@keyframes pl-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(155,209,61,.25); } 50% { box-shadow: 0 0 0 18px rgba(155,209,61,0); } }
.dark-band .hero-orb { animation: pl-glow 3.2s ease-in-out infinite; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } .land-hero .col-lg-7 > *, .land-hero .col-lg-5 { animation: none !important; } .site-nav { position: static; } }

/* ---------- Landing page: "Find a hub" map ---------- */
.hub-panel .hub-list { display: flex; flex-direction: column; gap: .5rem; max-height: 320px; overflow-y: auto; padding-right: .2rem; }
.hub-item { width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left; background: #fff; border: 1px solid var(--pl-border); border-radius: .9rem; padding: .6rem .75rem; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.hub-item:hover, .hub-item:focus-visible { border-color: var(--pl-primary); box-shadow: 0 4px 14px rgba(8,107,82,.14); }
.hub-item.is-active { border-color: var(--pl-primary); background: var(--pl-mint); }
.hub-item-dot { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--pl-primary); color: var(--pl-lime); display: inline-flex; align-items: center; justify-content: center; }
.hub-item-text { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.hub-item-dist { color: var(--pl-primary); white-space: nowrap; }
.hub-tracker { border-top: 1px solid var(--pl-border); padding-top: 1rem; }
.hub-route { background: var(--pl-mint); border-radius: .9rem; padding: .75rem .9rem; }

.hub-map-card { position: relative; height: 480px; border-radius: 1.25rem; overflow: hidden; background: #dfe9e4; border: 1px solid var(--pl-border); box-shadow: var(--pl-shadow); }
.hub-map-canvas { position: absolute; inset: 0; z-index: 0; }
.hub-map-cover { position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(520px 320px at 80% 10%, rgba(155,209,61,.30), transparent 60%), linear-gradient(150deg, #0b2a20, #0f3b2d 55%, #165a43); }
.hub-map-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 22px 22px; }
.hub-map-cover > div { position: relative; }
.hub-map-cover[hidden] { display: none; }
.hub-cover-icon { font-size: 3rem; color: var(--pl-lime); }
.hub-cover-text { color: rgba(255,255,255,.8); }

.hub-pin, .user-pin { background: transparent; border: 0; }
.hub-pin-dot { position: absolute; inset: 7px; border-radius: 50%; background: var(--pl-primary); border: 3px solid var(--pl-lime); box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hub-pin-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(155,209,61,.55); animation: pl-pin 2.2s ease-out infinite; }
.hub-pin.is-reference .hub-pin-dot { background: #5B6B66; border-color: #fff; }
.hub-pin.is-reference .hub-pin-pulse { background: rgba(91,107,102,.35); }
.user-pin-dot { position: absolute; inset: 5px; border-radius: 50%; background: #2f6fdb; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.5); }
.user-pin-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(47,111,219,.45); animation: pl-pin 1.8s ease-out infinite; }
@keyframes pl-pin { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@media (max-width: 575.98px) { .hub-map-card { height: 380px; } }
@media print { #hubs-map { display: none; } }
