/* ============================================================
   SDCATTM — global styles (public site + dashboards)
   ============================================================ */
:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #f5f6fa;
}

body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; color: var(--ink); }

/* ---------- Public site ---------- */
.public-nav { background: rgba(15, 23, 42, .92); backdrop-filter: blur(10px); }
.public-nav .nav-link { color: #cbd5e1; font-weight: 500; }
.public-nav .nav-link:hover { color: #fff; }

.hero {
  background: var(--brand-grad);
  color: #fff;
  padding: 6.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.15), transparent 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; letter-spacing: -1px; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 640px; }

.feature-card {
  border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.75rem;
  height: 100%; background: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.feature-icon {
  width: 52px; height: 52px; border-radius: .9rem; display: grid; place-items: center;
  background: #eef2ff; color: var(--brand); font-size: 1.5rem; margin-bottom: 1rem;
}

.price-card { border: 1px solid #e2e8f0; border-radius: 1.25rem; background: #fff; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 16px 40px rgba(79,70,229,.15); }
.price-amount { font-size: 2.6rem; font-weight: 800; }

.section-title { font-weight: 800; letter-spacing: -.5px; }
.step-number {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-grad);
  color: #fff; font-weight: 700; display: grid; place-items: center; margin: 0 auto .75rem;
}

.public-footer { background: #0f172a; }
.public-footer a { color: #94a3b8; text-decoration: none; }
.public-footer a:hover { color: #fff; }

/* ---------- Dashboard shell ---------- */
.dash-body { background: var(--surface); }
.dash-wrapper { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 256px; flex-shrink: 0; background: #111827; color: #cbd5e1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-brand { padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-brand a { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.dash-nav { padding: .75rem .75rem 2rem; }
.dash-nav-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: #6b7280; padding: 1rem .5rem .35rem;
}
.dash-nav a {
  display: flex; align-items: center; gap: .65rem; color: #cbd5e1; text-decoration: none;
  padding: .55rem .75rem; border-radius: .5rem; font-size: .92rem; margin-bottom: 2px;
}
.dash-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.dash-nav a i { font-size: 1.05rem; }
.dash-nav a span { flex: 1; }

/* Collapsible grouped submenus */
.dash-nav-group { margin-bottom: .1rem; }
.dash-nav-head {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  background: transparent; border: 0; text-align: left;
  color: #8b93a7; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  padding: .85rem .55rem .4rem; cursor: pointer;
}
.dash-nav-head:hover { color: #e5e7eb; }
.dash-nav-head span { flex: 1; }
.dash-nav-head .chev { flex: 0; transition: transform .2s ease; font-size: .75rem; }
.dash-nav-head.collapsed .chev { transform: rotate(-90deg); }
.dash-nav-sub { display: flex; flex-direction: column; }
.dash-nav a.active {
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.dash-nav a.active i { color: #fff; }

/* A switched-off module.
   Visibly inert but still clickable, on purpose: the click lands on the page
   that explains why, which is the whole point of showing it rather than hiding
   it. Opacity alone would look like a rendering bug, so there is a lock icon. */
.dash-nav a.nav-locked {
  color: #6b7280;
  cursor: not-allowed;
}
.dash-nav a.nav-locked:hover { background: rgba(255,255,255,.04); color: #9ca3af; }
.dash-nav a.nav-locked i:first-child { opacity: .55; }
.dash-nav a.nav-locked .bi-lock-fill { font-size: .72rem; opacity: .8; flex: 0; }

/* Announcement kiosk ticker */
.announce-ticker {
  display: flex; align-items: center; gap: .5rem; overflow: hidden;
  background: linear-gradient(90deg, #eef2ff, #f5f3ff);
  border: 1px solid #e0e7ff; border-radius: .75rem; padding: .35rem .5rem;
}
.announce-ticker-label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem;
  background: #4f46e5; color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: .3rem .6rem; border-radius: .5rem;
}
.announce-ticker-viewport { flex: 1 1 auto; overflow: hidden; position: relative; }
.announce-ticker-track {
  display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap;
  will-change: transform; animation: announce-scroll 30s linear infinite;
}
.announce-ticker:hover .announce-ticker-track { animation-play-state: paused; }
.announce-ticker-item { font-size: .9rem; color: #312e81; }
.announce-ticker-item.announce-warning strong { color: #92400e; }
.announce-ticker-item.announce-danger strong { color: #991b1b; }
.announce-ticker-item.announce-success strong { color: #065f46; }
.announce-ticker-more { flex: 0 0 auto; font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
@keyframes announce-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 575.98px) {
  .announce-ticker-label span, .announce-ticker-more { display: none; }
}

.dash-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dash-topbar {
  background: #fff; border-bottom: 1px solid #e5e7eb; padding: .7rem 1.5rem;
  display: flex; align-items: center; position: sticky; top: 0; z-index: 100;
}
.dash-content { padding: 1.5rem; }

.stat-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem 1.4rem;
}
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; }

.card { border: 1px solid #e5e7eb; border-radius: 1rem; }
.table > :not(caption) > * > * { padding: .65rem .75rem; }

.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.status-dot.online { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.status-dot.offline { background: #dc2626; }

@media (max-width: 991.98px) {
  .dash-sidebar {
    position: fixed; left: -260px; z-index: 1050; transition: left .25s ease; height: 100vh;
  }
  .dash-sidebar.open { left: 0; box-shadow: 0 0 60px rgba(0,0,0,.4); }
}

/* ---------- Hero v2 ---------- */
.hero-v2 {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, #1e1b4b 0%, #312e81 35%, #4f46e5 75%, #7c3aed 100%);
  padding: 6rem 0 4.5rem;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.hero-blob-1 { width: 420px; height: 420px; background: #7c3aed; top: -120px; right: -80px; }
.hero-blob-2 { width: 340px; height: 340px; background: #06b6d4; bottom: -140px; left: -100px; animation-delay: 3s; }
.hero-blob-3 { width: 260px; height: 260px; background: #f59e0b; top: 40%; left: 45%; opacity: .22; animation-delay: 6s; }
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.15); }
}
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .9rem; border-radius: 2rem; font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero-title { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.hero-gradient-text {
  background: linear-gradient(90deg, #fbbf24, #f97316, #fb7185);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 560px; margin-top: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .88rem; color: rgba(255,255,255,.75); }
.hero-payments .pay-badge {
  display: inline-block; padding: .3rem .8rem; border-radius: .5rem; font-size: .78rem; font-weight: 700;
  margin-right: .4rem; margin-top: .3rem; background: rgba(255,255,255,.92); color: #0f172a;
}
.pay-bkash { color: #d12053 !important; }
.pay-nagad { color: #ec1c24 !important; }
.pay-card  { color: #1a1f71 !important; }
.pay-bank  { color: #065f46 !important; }

/* Dashboard mockup */
.hero-mockup {
  background: #fff; border-radius: 1rem; overflow: hidden; color: var(--ink);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  animation: mockupIn 1s ease both;
}
@keyframes mockupIn {
  from { opacity: 0; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(30px); }
  to   { opacity: 1; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(0); }
}
.hero-mockup-topbar {
  display: flex; align-items: center; gap: 5px; padding: .6rem .9rem;
  background: #f1f5f9; border-bottom: 1px solid #e2e8f0;
}
.hero-mockup-topbar .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #f87171; } .dot-y { background: #fbbf24; } .dot-g { background: #34d399; }
.hero-mockup-body { padding: 1rem; }
.mock-stat { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .6rem; text-align: center; padding: .5rem; }
.mock-stat-num { font-weight: 800; font-size: 1.3rem; }
.mock-stat-label { font-size: .7rem; color: var(--muted); }
.mock-feed { display: flex; flex-direction: column; gap: .45rem; }
.mock-punch {
  display: flex; align-items: center; gap: .6rem; font-size: .82rem;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: .55rem; padding: .45rem .7rem;
  animation: punchIn .6s ease both;
}
.mock-punch i { color: var(--brand); }
.mock-punch .mock-time { margin-left: auto; color: var(--muted); font-size: .72rem; }
.mock-punch.delay-1 { animation-delay: .5s; }
.mock-punch.delay-2 { animation-delay: 1s; }
.mock-punch.delay-3 { animation-delay: 1.5s; }
@keyframes punchIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.mock-device-status { margin-top: .8rem; font-size: .75rem; color: var(--muted); }

.hero-stats .hero-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: .9rem; padding: 1rem;
}
.hero-stat-num { font-size: 1.6rem; font-weight: 800; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.7); }

/* Testimonials */
.testimonial-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.5rem; height: 100%;
  font-size: .95rem; color: #334155;
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}

/* CTA band */
.cta-band { background: linear-gradient(135deg, #1e1b4b, #4f46e5); padding: 4rem 0; }

@media (max-width: 991.98px) {
  .hero-mockup { transform: none; }
}

/* ---------- Employee list ---------- */
.emp-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.emp-avatar-initials {
  display: grid; place-items: center; background: var(--brand-grad); color: #fff;
  font-weight: 700; font-size: .85rem; text-transform: uppercase;
}
.emp-table td { vertical-align: middle; }

/* ---------- Clients strip ---------- */
.client-chip {
  display: inline-block; padding: .5rem 1.2rem; border-radius: .6rem;
  background: #fff; border: 1px solid #e2e8f0; color: #475569;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}

/* ---------- Products ---------- */
.product-thumb { width: 100%; height: 190px; object-fit: contain; background: #f8fafc; border-radius: .75rem; }
.product-thumb-empty { display: grid; place-items: center; color: #cbd5e1; font-size: 3rem; }
.product-gallery-thumb { width: 72px; height: 72px; object-fit: contain; cursor: pointer; background: #f8fafc; }
.product-gallery-thumb:hover { border-color: var(--brand) !important; }

/* ============================================================
   Front-page v3: motion, marquees, reveal, chat widget
   ============================================================ */

/* Scroll-reveal: elements fade/slide in when they enter the viewport */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Generic horizontal marquee (logos, testimonials, blog).
   Two identical groups each translate -100% of their own width, so the loop
   is perfectly seamless (end joins start with no gap or jump). */
.marquee { overflow: hidden; position: relative; width: 100%; display: flex; flex-wrap: nowrap; }
.marquee:hover .marquee-group { animation-play-state: paused; }
.marquee-group {
  flex: 0 0 auto; display: flex; align-items: stretch; gap: 1.25rem; padding-right: 1.25rem;
  will-change: transform; animation: marquee-x linear infinite;
}
.marquee-fade::before, .marquee-fade::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.marquee-fade::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee-fade::after  { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Client logos */
.client-logo {
  flex: 0 0 auto; height: 64px; min-width: 150px; display: flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 0 1.25rem; background: #fff; border: 1px solid #eef2f7; border-radius: 1rem;
  font-weight: 700; color: #334155; box-shadow: 0 6px 18px rgba(2,6,23,.04); filter: grayscale(1); opacity: .8;
  transition: filter .25s, opacity .25s, transform .25s;
}
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.client-logo img { max-height: 40px; max-width: 120px; object-fit: contain; }

/* Testimonials */
.t-card {
  flex: 0 0 360px; max-width: 360px; background: #fff; border: 1px solid #eef2f7; border-radius: 1.25rem;
  padding: 1.5rem; box-shadow: 0 10px 30px rgba(2,6,23,.05); display: flex; flex-direction: column; gap: 1rem;
}
.t-quote { color: #1e293b; line-height: 1.6; }
.t-stars { color: #f59e0b; }
.t-person { display: flex; align-items: center; gap: .75rem; }
.t-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 48px; }

/* Blog scroller cards */
.blog-card {
  flex: 0 0 340px; max-width: 340px; background: #fff; border: 1px solid #eef2f7; border-radius: 1.25rem;
  overflow: hidden; box-shadow: 0 10px 30px rgba(2,6,23,.05); transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(2,6,23,.12); }
.blog-card-img { height: 180px; width: 100%; object-fit: cover; background: linear-gradient(135deg,#e0e7ff,#f5f3ff); }
.blog-card-img-empty { height: 180px; display: grid; place-items: center; color: #a5b4fc; font-size: 2.5rem; background: linear-gradient(135deg,#e0e7ff,#f5f3ff); }
.blog-card-body { padding: 1.1rem 1.25rem; }

/* Hero background media (image/video) */
.hero-media-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-media-bg video, .hero-media-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,23,42,.88), rgba(79,70,229,.72)); }
.hero-v2.has-media > .container { position: relative; z-index: 1; }

/* Language toggle */
.lang-toggle { border: 1px solid rgba(255,255,255,.35); border-radius: 2rem; padding: .15rem; display: inline-flex; }
.lang-toggle a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .8rem; font-weight: 600; padding: .12rem .6rem; border-radius: 2rem; }
.lang-toggle a.active { background: #fff; color: #4f46e5; }

/* Floating AI / live chat widget */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1080; width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; font-size: 1.6rem; cursor: pointer;
  box-shadow: 0 12px 30px rgba(79,70,229,.45); display: grid; place-items: center; transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .badge-dot { position: absolute; top: 8px; right: 10px; width: 10px; height: 10px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
.chat-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 1080; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 1.25rem; box-shadow: 0 24px 60px rgba(2,6,23,.28); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; animation: chat-in .25s ease; }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.chat-head { background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .6rem; }
.chat-head .online { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; display: inline-block; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #f8fafc; }
.chat-msg { margin-bottom: .7rem; display: flex; }
.chat-msg .bubble { padding: .55rem .8rem; border-radius: 1rem; max-width: 80%; font-size: .9rem; line-height: 1.45; }
.chat-msg.bot .bubble { background: #fff; border: 1px solid #eef2f7; border-bottom-left-radius: .25rem; }
.chat-msg.me { justify-content: flex-end; }
.chat-msg.me .bubble { background: #4f46e5; color: #fff; border-bottom-right-radius: .25rem; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; background: #f8fafc; }
.chat-quick button { font-size: .78rem; border: 1px solid #c7d2fe; background: #eef2ff; color: #4338ca; border-radius: 2rem; padding: .25rem .7rem; cursor: pointer; }
.chat-foot { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid #eef2f7; background: #fff; }
.chat-foot input { flex: 1; border: 1px solid #e2e8f0; border-radius: 2rem; padding: .5rem .9rem; font-size: .9rem; }
.chat-foot button { border: 0; background: #4f46e5; color: #fff; width: 40px; border-radius: 50%; cursor: pointer; }

/* ============ Team chat page ============ */
.chat-shell { overflow: hidden; }
.chat-shell .row { min-height: 60vh; }
.chat-people { border-right: 1px solid #eef2f7; background: #fff; max-height: 68vh; overflow-y: auto; }
.chat-person {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  padding: .6rem .8rem; border: 0; border-bottom: 1px solid #f1f5f9; background: transparent; cursor: pointer;
}
.chat-person:hover { background: #f8fafc; }
.chat-person.active { background: #eef2ff; }
.chat-person .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(135deg,#6366f1,#8b5cf6); position: relative;
}
.chat-person .presence {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid #fff; background: #cbd5e1;
}
.chat-person .presence.on { background: #22c55e; }
.chat-person .who { flex: 1; min-width: 0; }
.chat-person .who .nm { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-person .who .st { font-size: .72rem; color: #94a3b8; }
.chat-person .unread { background: #ef4444; color: #fff; border-radius: 999px; font-size: .68rem; padding: .05rem .4rem; }

.chat-convo { max-height: 68vh; }
.chat-convo-body { overflow-y: auto; padding: 1rem; background: #f8fafc; }
.chat-empty { margin-top: 12vh; }
.chat-line { display: flex; margin-bottom: .6rem; }
.chat-line.me { justify-content: flex-end; }
.chat-line .b { max-width: 74%; padding: .5rem .8rem; border-radius: 1rem; font-size: .92rem; line-height: 1.45; }
.chat-line.them .b { background: #fff; border: 1px solid #eef2f7; border-bottom-left-radius: .25rem; }
.chat-line.me .b { background: #4f46e5; color: #fff; border-bottom-right-radius: .25rem; }
.chat-line .t { display: block; font-size: .68rem; opacity: .7; margin-top: .15rem; }
.chat-convo-head .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #cbd5e1; }
.chat-dot.on { background: #22c55e; }

/* Promo / offer bar (Amazon-style) */
.promo-bar { font-size: .9rem; padding: .5rem 0; }
.promo-bar a { text-decoration: none; font-weight: 600; }
.promo-bar a:hover u { text-decoration: none; }

/* Public nav search */
.public-search { background: rgba(255,255,255,.12); border-radius: 2rem; padding: .1rem .7rem; }
.public-search i { color: #cbd5e1; font-size: .9rem; }
.public-search input { color: #fff; width: 130px; box-shadow: none !important; }
.public-search input::placeholder { color: #94a3b8; }

/* Search results page */
.search-hit { display: block; text-decoration: none; color: inherit; border: 1px solid #eef2f7; border-radius: 1rem; padding: 1rem 1.25rem; transition: box-shadow .2s, transform .2s; }
.search-hit:hover { box-shadow: 0 10px 26px rgba(2,6,23,.08); transform: translateY(-2px); }
.search-hit .kind { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6366f1; font-weight: 700; }

/* ============================================================
   v24 — school-first visual layer
   Appended rather than merged into the rules above so the
   original file stays diffable and any of this can be removed
   in one block if a school wants the plainer look back.
   ============================================================ */
:root {
  --brand2: #7c3aed;
  --accent: #06b6d4;
  --success: #10b981;
  --warm: #f59e0b;
  --ink-soft: #334155;
  --line: #e2e8f0;
  --mesh: radial-gradient(at 12% 18%, rgba(79,70,229,.16) 0px, transparent 55%),
          radial-gradient(at 88% 8%,  rgba(6,182,212,.14) 0px, transparent 50%),
          radial-gradient(at 70% 88%, rgba(124,58,237,.14) 0px, transparent 55%);
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--brand-grad); color: #fff; border: 0; font-weight: 700;
  box-shadow: 0 10px 24px rgba(79,70,229,.28); transition: .22s;
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(79,70,229,.36); }
.btn-outline-brand {
  border: 2px solid var(--brand); color: var(--brand); font-weight: 700; background: #fff; transition: .22s;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--brand); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-hero {
  position: relative; padding: 5rem 0 8rem; overflow: hidden;
  background-color: #0b1020; background-image: var(--mesh); color: #fff;
}
.pricing-hero-glow {
  position: absolute; left: 50%; top: -220px; width: 900px; height: 480px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,58,237,.45), transparent 70%);
  filter: blur(28px);
}
.pricing-title {
  font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -1.4px; margin: 1rem 0 .6rem;
}
.pricing-sub { color: #cbd5e1; max-width: 720px; margin: 0 auto; font-size: 1.06rem; }

.billing-toggle {
  display: inline-flex; margin-top: 2rem; padding: 5px; gap: 4px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; backdrop-filter: blur(8px);
}
.billing-toggle button {
  border: 0; background: transparent; color: #cbd5e1; font-weight: 700;
  padding: .55rem 1.5rem; border-radius: 999px; transition: .2s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.billing-toggle button.active { background: #fff; color: var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.save-pill {
  font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px;
  background: var(--success); color: #fff;
}

.pricing-grid-wrap { margin-top: -5.5rem; position: relative; z-index: 2; }

.price-card-v2 {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1.9rem 1.6rem 1.6rem; display: flex; flex-direction: column;
  box-shadow: 0 10px 34px rgba(15,23,42,.07); transition: .26s; position: relative;
}
.price-card-v2:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(15,23,42,.13); }
.price-card-v2.featured {
  border: 0; box-shadow: 0 22px 54px rgba(79,70,229,.24); transform: translateY(-10px);
}
/* The gradient border is a background layer, not a real border — a 2px gradient
   border can't be done in CSS without this trick, and a flat colour loses the
   distinction between the featured plan and the rest. */
.price-card-v2.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 2px;
  background: var(--brand-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.price-card-v2.featured:hover { transform: translateY(-14px); }

.price-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .4px; padding: .35rem 1rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(79,70,229,.4);
}
.price-name { font-weight: 800; font-size: 1.3rem; margin: .3rem 0 .2rem; }
.price-desc { color: var(--muted); font-size: .86rem; min-height: 2.4em; margin: 0; }
.price-figure { margin: 1.1rem 0 .3rem; }
.price-figure .cur { font-size: 1.3rem; font-weight: 700; vertical-align: super; color: var(--ink-soft); }
.price-figure .amt { font-size: 2.9rem; font-weight: 800; letter-spacing: -2px; }
.price-figure .per { color: var(--muted); font-weight: 600; }
.price-note { font-size: .8rem; color: var(--muted); min-height: 1.4em; }

.price-caps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px;
  padding: .8rem .4rem; margin: 1.1rem 0 1.2rem; text-align: center;
}
.price-caps .cap-num { font-weight: 800; font-size: 1.15rem; color: var(--brand); line-height: 1.1; }
.price-caps .cap-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.price-features { list-style: none; padding: 0; margin: 0 0 1.4rem; flex-grow: 1; }
.price-features li {
  display: flex; align-items: flex-start; gap: .55rem; font-size: .87rem;
  padding: .34rem 0; line-height: 1.35;
}
.price-features li i { flex: 0 0 auto; margin-top: .12rem; }
.price-features li.on i { color: var(--success); }
.price-features li.off { color: #94a3b8; }
.price-features li.off i { color: #cbd5e1; }

.included-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem; }
.included-item {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem;
  background: #f8fafc; border-radius: 12px; font-size: .9rem; font-weight: 500; height: 100%;
}
.included-item i { color: var(--brand); font-size: 1.15rem; }

.device-strip {
  background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
  color: #fff; border-radius: 22px; padding: 2.4rem;
}
.device-chip {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 1rem .4rem; height: 100%;
}
.device-chip i { font-size: 1.6rem; display: block; margin-bottom: .35rem; }
.device-chip span { font-size: .74rem; opacity: .85; }

.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .7rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 700; padding: 1.05rem 1.2rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: #f5f3ff; color: var(--brand); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }

.cta-band {
  background: var(--brand-grad); color: #fff; border-radius: 22px; padding: 3rem 2rem;
  box-shadow: 0 20px 50px rgba(79,70,229,.28);
}

/* ============================================================
   AUTH — split screen
   ============================================================ */
/* Sits inside the public layout, which already has a nav and a footer, so a
   flat 100vh would overshoot the fold. A floor keeps it composed on a laptop
   without pushing the footer off a short window. */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.auth-aside {
  position: relative; overflow: hidden; color: #fff;
  background-color: #0b1020; background-image: var(--mesh);
  display: flex; align-items: center; padding: 3rem;
}
.auth-aside-glow {
  position: absolute; width: 620px; height: 620px; right: -180px; top: -160px;
  background: radial-gradient(closest-side, rgba(124,58,237,.5), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.auth-aside-inner { position: relative; max-width: 460px; margin-left: auto; margin-right: auto; }
.auth-brand {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 800;
  font-size: 1.3rem; color: #fff; text-decoration: none; margin-bottom: 2.2rem;
}
.auth-brand i { font-size: 1.6rem; color: #a78bfa; }
.auth-headline { font-weight: 800; font-size: 2.5rem; letter-spacing: -1.2px; line-height: 1.15; }
.auth-gradient {
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-lede { color: #cbd5e1; margin: 1rem 0 2rem; }

.auth-roles { display: flex; flex-direction: column; gap: .7rem; }
.auth-role {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; backdrop-filter: blur(6px);
}
.auth-role .ico {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; background: rgba(167,139,250,.2); color: #c4b5fd; font-size: 1.05rem;
}
.auth-role .r-name { font-weight: 700; font-size: .9rem; }
.auth-role .r-hint { font-size: .78rem; color: #94a3b8; }
.auth-role .r-hint code { color: #67e8f9; background: rgba(34,211,238,.12); padding: 0 .3rem; border-radius: 4px; }
.auth-foot-note { margin-top: 2rem; font-size: .8rem; color: #94a3b8; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .mobile-only { display: none; color: var(--ink); }
.auth-card .mobile-only i { color: var(--brand); }
.auth-title { font-weight: 800; font-size: 1.9rem; letter-spacing: -.6px; margin-bottom: .2rem; }
.auth-subtitle { color: var(--muted); margin-bottom: 1.6rem; }
.auth-form .field { margin-bottom: 1.1rem; }
.auth-form .form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }

.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.input-icon .form-control { padding-left: 2.5rem; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); }
.input-icon .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.pw-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #94a3b8; padding: .35rem .5rem;
}
.pw-toggle:hover { color: var(--brand); }

.auth-divider { position: relative; text-align: center; margin: 1.6rem 0 1rem; }
.auth-divider::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--line); }
.auth-divider span { position: relative; background: #fff; padding: 0 .8rem; color: var(--muted); font-size: .8rem; }
.auth-help { font-size: .78rem; color: var(--muted); margin-top: 1.4rem; line-height: 1.5; }

@media (max-width: 991.98px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-aside { display: none; }
  .auth-card .mobile-only { display: inline-flex; }
  .auth-main { min-height: 70vh; }
}

/* ============================================================
   DEVICES
   ============================================================ */
.stat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.1rem; display: flex; align-items: center; gap: .9rem; height: 100%;
}
.stat-ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; }
.stat-num { font-size: 1.5rem; font-weight: 800; line-height: 1.05; }
.stat-label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.device-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem;
  position: relative; overflow: hidden; transition: .24s;
}
.device-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,23,42,.1); }
/* A colour bar rather than a coloured card: the status has to read from across
   a room, but the details still need to be legible on white. */
.device-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.device-card.online::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.device-card.offline::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.device-card.stale::before   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.device-card-top { display: flex; align-items: center; gap: .8rem; }
.device-icon {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: #eef2ff; color: var(--brand);
}
.device-card.offline .device-icon { background: #fef2f2; color: #ef4444; }
.device-card.stale .device-icon   { background: #fffbeb; color: #d97706; }
.device-name { font-weight: 700; }
.device-sn { font-size: .74rem; color: var(--muted); font-family: ui-monospace, monospace; }

.device-pill {
  font-size: .68rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.device-card.online .device-pill  { background: #ecfdf5; color: #047857; }
.device-card.offline .device-pill { background: #fef2f2; color: #b91c1c; }
.device-card.stale .device-pill   { background: #fffbeb; color: #b45309; }
.device-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.device-card.online .device-pill .dot { animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.device-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .8rem; font-size: .8rem; }
.device-meta .k { color: var(--muted); display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .3px; }
.device-meta .v { font-weight: 600; }

.device-punches {
  background: #f8fafc; border-radius: 10px; padding: .55rem .8rem;
  font-size: .82rem; display: flex; align-items: center; gap: .5rem;
}
.device-punches i { color: var(--brand); }
.device-warn {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 10px; padding: .55rem .75rem; font-size: .76rem; line-height: 1.4;
}

.empty-state { border: 2px dashed var(--line); border-radius: 20px; background: #fff; }
.empty-ico {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 22px;
  display: grid; place-items: center; font-size: 2.1rem;
  background: #eef2ff; color: var(--brand);
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-avatar {
  position: relative; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 1.1rem;
}
.chat-avatar .online {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
  background: #22c55e; border: 2px solid #5b21b6; border-radius: 50%;
}
.chat-head .online-text { font-size: .72rem; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem .8rem; border-top: 1px solid #eef2f7; }
.chat-quick button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: .3rem .7rem; font-size: .74rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem; transition: .18s;
}
.chat-quick button i { font-size: .8rem; color: var(--brand); }
.chat-quick button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat-quick button:hover i { color: #fff; }

/* ---------- Home: four portals ---------- */
.section-eyebrow {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #c7d2fe; font-size: .78rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; margin-bottom: .9rem;
}
.portals-section {
  position: relative; padding: 5rem 0; overflow: hidden;
  background-color: #0b1020; background-image: var(--mesh);
}
.portal-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 1.5rem 1.2rem; color: #e2e8f0;
  backdrop-filter: blur(8px); transition: .26s; position: relative; overflow: hidden;
}
.portal-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.portal-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px; opacity: .9;
}
.portal-card.p-indigo::after  { background: linear-gradient(90deg,#6366f1,#a78bfa); }
.portal-card.p-cyan::after    { background: linear-gradient(90deg,#06b6d4,#67e8f9); }
.portal-card.p-emerald::after { background: linear-gradient(90deg,#10b981,#6ee7b7); }
.portal-card.p-amber::after   { background: linear-gradient(90deg,#f59e0b,#fcd34d); }

.portal-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: .9rem;
}
.portal-card.p-indigo .portal-ico  { background: rgba(99,102,241,.2);  color: #a5b4fc; }
.portal-card.p-cyan .portal-ico    { background: rgba(6,182,212,.2);   color: #67e8f9; }
.portal-card.p-emerald .portal-ico { background: rgba(16,185,129,.2);  color: #6ee7b7; }
.portal-card.p-amber .portal-ico   { background: rgba(245,158,11,.2);  color: #fcd34d; }

.portal-who { font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: .8rem; }
.portal-list { list-style: none; padding: 0; margin: 0; }
.portal-list li {
  display: flex; align-items: flex-start; gap: .45rem;
  font-size: .82rem; color: #cbd5e1; padding: .28rem 0; line-height: 1.35;
}
.portal-list li i { color: #34d399; flex: 0 0 auto; margin-top: .1rem; }

/* Hero: a faint grid over the gradient adds depth without another image request. */
.hero-v2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 78%);
}

/* Respect the OS setting. Floating blobs and card lifts are decoration; a user
   who has asked for less motion should not have to endure them. */
@media (prefers-reduced-motion: reduce) {
  .hero-blob, .device-card.online .device-pill .dot { animation: none !important; }
  .portal-card:hover, .price-card-v2:hover, .device-card:hover { transform: none; }
}

/* ---------- Chat: lead-capture intro ---------- */
.chat-intro { padding: 1rem 1.1rem 1.2rem; overflow-y: auto; flex: 1; }
.chat-intro-lead { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; }
.chat-intro-lead i { font-size: 1.3rem; color: var(--brand); margin-top: .1rem; }
.chat-intro label { display: block; font-size: .74rem; font-weight: 700; color: var(--ink-soft); margin: .6rem 0 .22rem; }
.chat-intro label .req { color: #ef4444; }
.chat-intro label .opt { color: var(--muted); font-weight: 500; }
.chat-intro input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; font-size: .85rem; transition: .15s;
}
.chat-intro input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.chat-intro input.invalid { border-color: #ef4444; background: #fef2f2; }
.chat-intro .err { color: #dc2626; font-size: .7rem; min-height: .9rem; margin-top: .12rem; }
.chat-intro-btn {
  width: 100%; margin-top: 1rem; border: 0; border-radius: 10px; padding: .6rem;
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: .88rem; transition: .2s;
}
.chat-intro-btn:hover:not(:disabled) { filter: brightness(1.08); }
.chat-intro-btn:disabled { opacity: .6; }
.chat-intro-note { font-size: .68rem; color: var(--muted); text-align: center; margin-top: .6rem; }

/* ============================================================
   REPORTS
   ============================================================ */
.report-card {
  display: flex; align-items: center; gap: .9rem; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem; text-decoration: none; color: inherit; transition: .22s;
}
.report-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,23,42,.1); border-color: var(--brand); color: inherit; }
.report-ico { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; }
.report-name { font-weight: 700; }
.report-blurb { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.report-go { color: var(--muted); margin-left: auto; flex: 0 0 auto; }

.report-head { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.report-school { font-weight: 800; font-size: 1.15rem; }
.report-addr { font-size: .78rem; color: var(--muted); }
.report-title-bar { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.report-period { font-size: .8rem; color: var(--ink-soft); }

.report-summary {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.report-summary > div {
  flex: 1 1 140px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: .7rem .9rem;
}
.report-summary .k { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.report-summary .v { font-size: 1.25rem; font-weight: 800; }

.report-table thead th { background: #f8fafc; font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.report-table td, .report-table th { padding: .55rem .7rem; }

.mini-bar { width: 70px; height: 7px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: 4px; }

.split-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: #eef2f7; }
.split-bar .b { background: #3b82f6; }
.split-bar .g { background: #ec4899; }

.preset-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.preset {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: .28rem .8rem; font-size: .78rem;
  font-weight: 600; text-decoration: none; transition: .16s;
}
.preset:hover { border-color: var(--brand); color: var(--brand); }
.preset.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Printing a report: only the report. */
@media print {
  .dash-sidebar, .dash-topbar, .no-print, .preset-row { display: none !important; }
  .dash-main, .dash-content { margin: 0 !important; padding: 0 !important; }
  .card, .report-head { box-shadow: none !important; border: 1px solid #ccc !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  a[href]:after { content: none !important; }
}

/* ---------- Blog ---------- */
.blog-hero {
  position: relative; padding: 4.5rem 0 7rem; overflow: hidden;
  background-color: #0b1020; background-image: var(--mesh); color: #fff;
}
.blog-grid-wrap { margin-top: -4.5rem; position: relative; z-index: 2; }
.blog-card {
  display: flex; flex-direction: column; height: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit; transition: .24s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(15,23,42,.13); color: inherit; }
.blog-cover {
  height: 165px; display: grid; place-items: center; color: rgba(255,255,255,.85);
  font-size: 2.6rem; position: relative; overflow: hidden;
}
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-meta { font-size: .74rem; color: var(--muted); margin-bottom: .4rem; }
.blog-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin-bottom: .5rem; }
.blog-summary { font-size: .85rem; color: var(--muted); flex-grow: 1; }
.blog-more { font-size: .82rem; font-weight: 700; color: var(--brand); }

/* ---------- Payment result ---------- */
.pay-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; font-size: 2.4rem; color: #fff;
}
.pay-icon.success { background: linear-gradient(135deg, #10b981, #34d399); }
.pay-icon.fail    { background: linear-gradient(135deg, #ef4444, #f87171); }
.pay-summary {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.2rem; margin-top: 1.2rem;
}
.pay-summary > div { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .9rem; }
.pay-summary > div + div { border-top: 1px solid var(--line); }
.pay-summary span { color: var(--muted); }

.pay-online {
  margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line);
}

/* Live indicator on the analytics dashboard.
   Grey until the SignalR hub connects, green and pulsing once it does — so a
   frozen dashboard is visibly frozen rather than quietly wrong. */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #cbd5e1; margin-left: 6px; vertical-align: middle;
}
.live-dot.live-on { background: #10b981; animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%      { opacity: .6; box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ============================================================
   Devices, Contact and the login proof strip
   ============================================================ */

/* ---- Devices ---- */
.dev-hero {
  position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 4rem;
  background: linear-gradient(140deg, #0b1020 0%, #1e1b4b 40%, #4338ca 100%);
}
.dev-hero-glow {
  position: absolute; top: -30%; right: -10%; width: 620px; height: 620px;
  border-radius: 50%; filter: blur(90px); opacity: .35;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
}
.dev-eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(255,255,255,.12); color: #e0e7ff;
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.dev-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -1px; }
.dev-lede { color: rgba(255,255,255,.82); max-width: 34rem; font-size: 1.05rem; }

.dev-visual {
  position: relative; display: grid; place-items: center; height: 240px;
  font-size: 6rem; color: rgba(255,255,255,.9);
}
.dev-visual-ring {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  animation: devPulse 3.5s ease-in-out infinite;
}
@keyframes devPulse {
  0%,100% { transform: scale(1);    opacity: .5; }
  50%     { transform: scale(1.12); opacity: .15; }
}

.dev-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dev-card:hover {
  transform: translateY(-5px); border-color: #c7d2fe;
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}
.dev-card-media {
  position: relative; display: block; background: #f8fafc; aspect-ratio: 4/3;
  overflow: hidden;
}
.dev-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.dev-card-empty { display: grid; place-items: center; height: 100%; font-size: 3rem; color: #cbd5e1; }
.dev-badge {
  position: absolute; top: .75rem; left: .75rem; background: #f59e0b; color: #1f2937;
  font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
}
.dev-card-body { padding: 1.1rem 1.15rem 1.15rem; }
.dev-price { font-size: 1.25rem; font-weight: 800; }
.dev-price-was { font-size: .85rem; color: #94a3b8; text-decoration: line-through; margin-left: .35rem; }

.dev-why { background: #f8fafc; padding: 3.5rem 0; border-top: 1px solid #e2e8f0; }
.dev-why-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  padding: 1.6rem; height: 100%;
}
.dev-why-card .ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: .8rem;
  background: #eef2ff; color: #4f46e5; font-size: 1.3rem; margin-bottom: .9rem;
}

/* ---- Contact ---- */
.contact-hero {
  position: relative; overflow: hidden; color: #fff; padding: 4rem 0 6.5rem;
  background: linear-gradient(140deg, #1e1b4b, #4f46e5 70%, #7c3aed);
}
.contact-hero-glow {
  position: absolute; bottom: -50%; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px; border-radius: 50%; filter: blur(90px); opacity: .4;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
}
.contact-title { font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -1px; }
.contact-lede { color: rgba(255,255,255,.85); max-width: 40rem; }

/* Pulled up over the hero so the page reads as one composition. */
.contact-wrap { margin-top: -4rem; padding-bottom: 4rem; position: relative; z-index: 2; }

.contact-card {
  display: flex; gap: .9rem; align-items: flex-start; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  padding: 1.1rem; margin-bottom: .85rem; transition: transform .15s ease, box-shadow .15s ease;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,23,42,.08); }
.contact-card .ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: .7rem; font-size: 1.1rem;
}
.ico-green  { background: #dcfce7; color: #16a34a; }
.ico-blue   { background: #dbeafe; color: #2563eb; }
.ico-purple { background: #ede9fe; color: #7c3aed; }
.contact-card .c-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; font-weight: 700; }
.contact-card .c-value { font-weight: 700; }
.contact-card .c-hint  { font-size: .8rem; color: #64748b; }

.contact-demo {
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  border-radius: 1rem; padding: 1.25rem;
}

.contact-form-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem;
  padding: 2rem; box-shadow: 0 16px 40px rgba(15,23,42,.06);
}

/* ---- Login proof strip ---- */
.auth-proof { display: flex; flex-direction: column; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.auth-proof-item {
  display: flex; align-items: baseline; gap: .75rem;
  opacity: 0; transform: translateY(10px);
  animation: proofIn .55s ease forwards; animation-delay: var(--d, 0s);
}
.auth-proof-item .p-num {
  font-weight: 800; font-size: 1.15rem; color: #fff; white-space: nowrap;
  min-width: 6.5rem;
}
.auth-proof-item .p-num small { font-size: .7rem; opacity: .7; margin-left: .1rem; }
.auth-proof-item .p-txt { color: rgba(255,255,255,.78); font-size: .9rem; }
@keyframes proofIn { to { opacity: 1; transform: translateY(0); } }

/* Motion is decoration here. Anyone who has asked the OS to stop animating
   things should not have to watch three panels slide in on a login screen. */
@media (prefers-reduced-motion: reduce) {
  .auth-proof-item { animation: none; opacity: 1; transform: none; }
  .dev-visual-ring { animation: none; }
}

/* ============================================================
   Hero — motion pass
   ============================================================ */

/* A slow-drifting mesh behind the blobs. Two gradients moving at different
   speeds read as depth; one moving gradient just reads as a loading bar. */
.hero-v2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(124,58,237,.28), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(6,182,212,.22), transparent 45%);
  animation: heroMesh 18s ease-in-out infinite alternate;
}
@keyframes heroMesh {
  0%   { transform: translate3d(0,0,0)      scale(1); }
  100% { transform: translate3d(-3%,2%,0)   scale(1.08); }
}

/* Faint grid, masked to fade out. Gives the gradient something to sit on so it
   doesn't look like an untextured blur. */
.hero-v2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 75%);
  animation: heroGrid 26s linear infinite;
}
@keyframes heroGrid { to { background-position: 46px 46px; } }

/* Shimmer across the badge — a single pass, not a loop, so it reads as polish
   rather than as something still loading. */
.hero-eyebrow { position: relative; overflow: hidden; }
.hero-eyebrow::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: eyebrowShine 4.5s ease-in-out 1.2s infinite;
}
@keyframes eyebrowShine { 0% { left: -60%; } 45%,100% { left: 130%; } }

/* The headline arrives a word-block at a time rather than all at once. */
.hero-title, .hero-sub, .hero-trust, .hero-payments {
  opacity: 0; transform: translateY(14px);
  animation: heroRise .7s cubic-bezier(.22,.9,.3,1) forwards;
}
.hero-title    { animation-delay: .05s; }
.hero-sub      { animation-delay: .18s; }
.hero-trust    { animation-delay: .34s; }
.hero-payments { animation-delay: .44s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }

/* The gradient text moves, slowly. */
.hero-gradient-text {
  background-size: 220% auto;
  animation: heroGradient 7s ease infinite;
}
@keyframes heroGradient {
  0%,100% { background-position: 0% center; }
  50%     { background-position: 100% center; }
}

/* The dashboard mockup breathes and tilts slightly — enough to feel alive,
   not enough to be distracting while someone reads the copy beside it. */
.hero-mockup {
  animation: heroFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0)     rotate(-.35deg); }
  50%     { transform: translateY(-14px) rotate(.35deg); }
}

/* New punches slide in. The JS re-triggers this by re-adding the class. */
.mock-punch { animation: punchIn .45s ease backwards; }
.mock-punch.delay-1 { animation-delay: .5s; }
.mock-punch.delay-2 { animation-delay: 1s; }
.mock-punch.delay-3 { animation-delay: 1.5s; }
@keyframes punchIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: none; }
}
.mock-punch.is-new { animation: punchFlash .9s ease; }
@keyframes punchFlash {
  0%   { background: rgba(79,70,229,.16); transform: translateX(-10px); opacity: 0; }
  100% { background: transparent;         transform: none;              opacity: 1; }
}

/* The "syncing" dot should actually pulse, or it is a claim with no evidence. */
.mock-device-status .status-dot.online { animation: livePulse 2s ease-in-out infinite; }

.hero-stat-num { font-variant-numeric: tabular-nums; }

/* Everything above is decoration. Anyone who has asked their OS to stop
   animating things should get a still page, not a slightly calmer one. */
@media (prefers-reduced-motion: reduce) {
  .hero-v2::before, .hero-v2::after,
  .hero-eyebrow::after, .hero-gradient-text,
  .hero-mockup, .mock-punch, .mock-punch.is-new,
  .mock-device-status .status-dot.online { animation: none !important; }
  .hero-title, .hero-sub, .hero-trust, .hero-payments {
    opacity: 1; transform: none; animation: none;
  }
}
