:root{
  --army:#0B2B40;
  --green:#1F8A70;
  --bg:#F6FAFF;
  --card:#FFFFFF;
  --text:#0B1220;
  --muted:#5B6B7F;
  --border:#E6EEF7;
  --shadow: 0 14px 40px rgba(2, 6, 23, .08);
  --shadow-sm: 0 8px 22px rgba(2, 6, 23, .06);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1120px;
  --ring: 0 0 0 4px rgba(31, 138, 112, .14);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1100px 420px at 20% -10%, rgba(31,138,112,.14), transparent 55%),
              radial-gradient(900px 360px at 90% 0%, rgba(11,43,64,.10), transparent 50%),
              var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:18px}
@media (min-width: 768px){.container{padding:26px}}

.section{margin-top:18px}
@media (min-width:768px){.section{margin-top:26px}}

.h1{font-size:clamp(28px, 4vw, 46px);letter-spacing:-.02em;margin:0 0 10px}
.h2{font-size:clamp(20px, 2.3vw, 28px);letter-spacing:-.01em;margin:0 0 10px}
.h3{font-size:18px;margin:0 0 8px}
.p{margin:0;color:var(--muted)}
.small{font-size:13px;color:var(--muted)}

.nav{
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:50;
}
.nav .inner{
  max-width:var(--max);margin:0 auto;padding:12px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width: 220px}
.brand .logo{width:36px;height:36px}
.brand .name{font-weight:800;line-height:1.1}
.brand .tag{font-size:12px;color:var(--muted);font-weight:600}
.navlinks{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.navlinks a{font-size:14px;text-decoration:none;color:var(--muted);font-weight:600}
.navlinks a:hover{color:var(--army)}
.nav-cta{display:flex;gap:10px;align-items:center}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:999px;border:1px solid var(--border);
  text-decoration:none;font-weight:800;font-size:14px;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  background:#fff;
}

.btn-sm{padding:8px 10px;font-size:13px;line-height:1.1}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.btn:active{transform:translateY(0)}
.btn-primary{background:var(--army);color:#fff;border-color:var(--army)}
.btn-accent{background:var(--green);color:#fff;border-color:var(--green)}
.btn-ghost{background:transparent}
.btn:focus{outline:none;box-shadow: var(--ring)}

.badges{display:flex;gap:10px;flex-wrap:wrap}
.badge{
  font-size:12px;padding:7px 10px;border-radius:999px;
  background:rgba(31,138,112,.12);
  color:var(--green);border:1px solid rgba(31,138,112,.22);
  font-weight:800;
}

.grid{display:grid;gap:14px}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 980px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 900px){.grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 680px){.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card.soft{
  box-shadow:none;
  background:#fff;
  border-radius:var(--radius);
}
.card.hover:hover{transform:translateY(-2px);transition:transform .12s ease}
.card-tight{padding:14px}

.hero{padding:18px 0 6px}
.hero-wrap{
  display:grid;gap:14px;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
}
@media (max-width: 900px){.hero-wrap{grid-template-columns:1fr}}
.hero-left{
  padding:18px;
  border-radius:var(--radius);
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(31,138,112,.20), transparent 60%),
    radial-gradient(700px 260px at 100% 0%, rgba(11,43,64,.16), transparent 55%),
    rgba(255,255,255,.92);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.hero-right{display:grid;gap:14px}
.kpi{
  display:flex;gap:12px;align-items:flex-start;
  padding:14px;border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:#fff;
}
.kpi .ico{font-size:22px}
.kpi .t{font-weight:900}
.kpi .d{font-size:13px;color:var(--muted)}

.icon{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(31,138,112,.12);
  border:1px solid rgba(31,138,112,.18);
  font-size:22px;
}
.card-title{display:flex;gap:12px;align-items:center}
.card-title h3{margin:0}
.sep{height:1px;background:var(--border);margin:12px 0}

.footer{
  margin-top:36px;padding:26px 0;border-top:1px solid var(--border);
  background: rgba(255,255,255,.9);
}
.footer .inner{max-width:var(--max);margin:0 auto;padding:0 18px;color:var(--muted);font-size:14px}

.input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  font-size:14px;
}
.input:focus{outline:none;box-shadow:var(--ring);border-color:rgba(31,138,112,.35)}
.label{font-size:13px;color:var(--muted);display:block;margin:10px 0 6px;font-weight:800}
.help{font-size:12px;color:var(--muted)}

.notice{
  border:1px solid rgba(11,43,64,.16);
  background: rgba(11,43,64,.05);
  border-radius: 16px;
  padding: 12px;
  color: var(--army);
  font-weight: 700;
}

.chips{display:flex;gap:10px;flex-wrap:wrap}
.chip{
  font-size:12px;padding:7px 10px;border-radius:999px;
  border:1px solid var(--border);background:#fff;color:var(--muted);font-weight:800;
}

.mobile-menu{display:none}
@media (max-width: 980px){
  .navlinks{display:none}
  .mobile-menu{display:block}
  details.mobile-menu > summary{
    list-style:none;cursor:pointer;
    display:inline-flex;align-items:center;gap:8px;
    padding:9px 12px;border-radius:999px;border:1px solid var(--border);
    background:#fff;font-weight:900;
  }
  details.mobile-menu[open] > summary{box-shadow:var(--shadow-sm)}
  details.mobile-menu > summary::-webkit-details-marker{display:none}
  .menu-panel{
    position:absolute;right:16px;top:58px;
    width:min(360px, calc(100vw - 36px));
    background:#fff;border:1px solid var(--border);
    border-radius:18px;box-shadow:var(--shadow);
    padding:12px;
  }
  .menu-panel a{display:block;padding:10px 10px;border-radius:12px;text-decoration:none;font-weight:800;color:var(--army)}
  .menu-panel a:hover{background:rgba(31,138,112,.10);color:var(--green)}
  .menu-panel .row{display:flex;gap:10px;margin-top:10px}
  .menu-panel .row a{flex:1;text-align:center}
}

/* Service media (photo + illustration) */
.service-media{position:relative;border-radius:16px;overflow:hidden;margin-bottom:12px;border:1px solid var(--border);background:#fff}
.service-media img{display:block;width:100%;height:180px;object-fit:cover}
@media (max-width:680px){.service-media img{height:160px}}
.service-media .ill{display:none}
body.show-illustrations .service-media .ph{display:none}
body.show-illustrations .service-media .ill{display:block}
/* toggle */
.view-toggle{display:flex;gap:10px;flex-wrap:wrap}
.view-toggle button{appearance:none;border:1px solid var(--border);background:#fff;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}
.view-toggle button:hover{box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.view-toggle button.active{background:var(--army);color:#fff;border-color:var(--army)}

/* Support chat / ticket widget */
.support-fab{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.14);
  background:#ffffff;
  color:var(--ink);
  font-weight:900;
  box-shadow:0 12px 26px rgba(2,6,23,.12);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.support-fab:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(2,6,23,.16)}
.support-fab .icon{
  width:36px;height:36px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(31,138,112,.18), rgba(11,43,64,.12));
  border:1px solid rgba(31,138,112,.22);
}
.support-fab span{font-size:13px;line-height:1.1}
.support-fab small{display:block;font-size:11px;font-weight:800;color:var(--muted);margin-top:2px}
.support-fab small{opacity:.9;font-weight:800}
@media (max-width:520px){
  .support-fab{right:12px;bottom:78px} /* leave room for footer / install banner */
}
.support-panel{
  position:fixed;
  right:16px;
  bottom:72px;
  width:min(420px, calc(100vw - 24px));
  z-index:9999;
  border-radius:18px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:0 20px 60px rgba(11,43,64,.22);
  overflow:hidden;
  display:none;
}
.support-panel.open{display:block}
.support-panel .head{
  padding:14px 16px;
  background:linear-gradient(135deg, rgba(11,43,64,.08), rgba(31,138,112,.08));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.support-panel .body{padding:14px 16px}
.support-panel .x{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  width:34px;height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.support-panel input,.support-panel textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
}
.support-panel textarea{min-height:96px;resize:vertical}
.support-panel .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:520px){.support-panel{right:12px;bottom:128px}.support-panel .row{grid-template-columns:1fr}}
.support-panel .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.support-panel .hint{font-size:12px;color:var(--muted);font-weight:800;margin-top:8px}


/* Premium chat-style support panel */
.support-panel .title{font-weight:1000;letter-spacing:-.02em}
.support-panel .chat{padding:12px 14px 6px 14px;background:linear-gradient(180deg, rgba(31,138,112,.06), rgba(255,255,255,0));border-top:1px solid var(--border)}
.support-panel .bubble{max-width:92%;padding:10px 12px;border-radius:16px;font-weight:800;line-height:1.35;margin:8px 0}
.support-panel .bubble.bot{background:#fff;border:1px solid rgba(15,23,42,.10);box-shadow:0 10px 24px rgba(2,6,23,.06)}
.support-panel .bubble.notice{background:rgba(2,6,23,.03);border:1px solid rgba(2,6,23,.06);font-size:12px;color:var(--muted)}
.support-panel .bubble.muted{background:transparent;border:none;box-shadow:none;margin-bottom:0;color:var(--muted);font-size:12px;padding:2px 2px}
.support-panel .quick-actions{display:flex;gap:10px;flex-wrap:wrap;padding:6px 0 4px 0}
.support-panel .qa{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid rgba(15,23,42,.12);background:#fff;font-weight:900;font-size:12px}
.support-panel .qa:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(2,6,23,.10)}
.support-panel .chat-form{padding:10px 14px 14px 14px}
.support-panel .mini-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.support-panel details.more{margin-top:10px;border:1px solid rgba(15,23,42,.10);border-radius:14px;padding:8px 10px;background:#fff}
.support-panel details.more > summary{cursor:pointer;font-weight:1000;color:var(--muted);font-size:12px;list-style:none}
.support-panel details.more > summary::-webkit-details-marker{display:none}
.support-panel details.more[open]{box-shadow:0 14px 30px rgba(2,6,23,.08)}
.support-panel .composer{margin-top:10px;border:1px solid rgba(15,23,42,.12);border-radius:16px;padding:10px;background:#fff;box-shadow:0 10px 24px rgba(2,6,23,.06)}
.support-panel .composer textarea{border:none;outline:none;padding:0;margin:0;min-height:88px}
.support-panel .composer-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}
@media (max-width:520px){
  .support-panel .mini-row{grid-template-columns:1fr}
  .support-panel .qa{width:100%;justify-content:center}
}


/* Support widget "real chat" upgrades */
.support-panel .preview{margin-top:10px}
.support-panel .preview-head{font-size:11px;color:var(--muted);font-weight:900;margin:8px 0 6px 0}
.support-panel .bubble.client{margin-left:auto;background:rgba(31,138,112,.10);border:1px solid rgba(31,138,112,.18)}
.support-panel .bubble.staff{background:#fff;border:1px solid rgba(2,6,23,.10)}
.support-panel .bubble.success{background:rgba(22,163,74,.10);border:1px solid rgba(22,163,74,.25)}
.support-panel .preview-link{display:inline-block;margin:8px 0 0 0;font-weight:900;font-size:12px}
.support-panel .typing{gap:6px;align-items:center;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.10);width:max-content;box-shadow:0 10px 24px rgba(2,6,23,.06)}
.support-panel .typing .dot{width:7px;height:7px;border-radius:50%;background:rgba(15,23,42,.35);display:inline-block;animation:supportDot 1.2s infinite ease-in-out}
.support-panel .typing .dot:nth-child(2){animation-delay:.15s}
.support-panel .typing .dot:nth-child(3){animation-delay:.30s}
@keyframes supportDot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:.9}}


/* Support widget refinements */
.support-panel .lookup-row{display:flex;gap:10px;align-items:center;margin-top:10px}
.support-panel .lookup-row .btn{white-space:nowrap}
.support-panel .chat-form .mini-row{display:flex;gap:10px}
.support-panel .chat-form .mini-row > *{flex:1}
.support-panel .chat-form details.more{margin-top:8px}


/* Support preview secure row */
#supportLoadPreview.btn-ghost{padding:8px 10px;border-radius:12px}


/* Support embedded in footer card (not floating) */
.support-panel.footer-embed{
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.support-panel.footer-embed .head{
  display:none; /* we use footer card head */
}
.support-footer-card .support-footer-body{
  margin-top:12px;
}
.support-footer-card .support-footer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.support-footer-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.support-panel.footer-embed .chat{
  max-height:260px;
}
.support-panel.footer-embed .form .mini-row{
  flex-wrap:wrap;
}
.support-panel.footer-embed .form .mini-row .input{
  min-width: 160px;
  flex:1;
}


/* Footer support accordion */
.support-acc-toggle{
  all: unset;
  cursor: pointer;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.06);
  flex: 1 1 auto;
  min-width: 240px;
}
.support-acc-title{font-weight:900}
.support-acc-sub{font-size:11px;color:var(--muted)}
.support-acc-icon{
  margin-left:auto;
  font-size:14px;
  opacity:.7;
  transform: rotate(0deg);
  transition: transform .18s ease;
  position:absolute;
  right:16px;
  top: 16px;
}
.support-footer-head{position:relative}
.support-footer-head-right{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.support-footer-body{
  overflow:hidden;
  transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
  max-height: 2000px;
  opacity:1;
  transform: translateY(0);
}
.support-footer-body.is-collapsed{
  max-height: 0px;
  opacity:0;
  transform: translateY(-4px);
  pointer-events:none;
}
#supportAccordionBtn[aria-expanded="false"] .support-acc-icon{transform: rotate(-90deg);}

@media (max-width: 768px){
  .support-footer-head{
    gap:10px;
  }
  .support-footer-head-right{
    width:100%;
    justify-content:flex-start;
  }
  .support-acc-toggle{
    width:100%;
  }
}


/* Footer support: polished split card */
.support-split{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap:14px;
  align-items:start;
}
.support-side{display:flex;flex-direction:column;gap:12px}
.support-side-cards{display:flex;flex-direction:column;gap:10px}
.support-mini-card{
  display:flex;align-items:center;gap:12px;
  padding:12px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}
.support-mini-card:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(2,6,23,.10)}
.support-mini-card .sm-ico{
  width:38px;height:38px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(31,138,112,.18), rgba(11,43,64,.10));
  border:1px solid rgba(31,138,112,.22);
}
.support-mini-card .sm-title{font-weight:1000}
.support-mini-card .sm-sub{font-size:11px;color:var(--muted);margin-top:2px;font-weight:800}
.support-mini-card .sm-arrow{margin-left:auto;font-weight:1000;opacity:.6}

.support-side-note{display:flex;gap:8px;flex-wrap:wrap}
.support-side-note .pill{
  padding:6px 10px;border-radius:999px;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
  font-size:11px;font-weight:900;color:var(--muted);
}

.support-chat-wrap .support-panel.footer-embed{
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 12px 26px rgba(2,6,23,.08);
  padding:0;
}
.support-chat-wrap .support-panel.footer-embed .chat{
  border-top:0;
}
.support-chat-wrap .support-panel.footer-embed .chat-form{
  border-top:1px solid rgba(15,23,42,.08);
  background:rgba(2,6,23,.02);
  border-bottom-left-radius:18px;
  border-bottom-right-radius:18px;
}

/* Responsive: stack on mobile */
@media (max-width: 900px){
  .support-split{grid-template-columns:1fr}
}



/* --- Premium footer support (C: full real chat) --- */
.support-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 900px){
  .support-grid{grid-template-columns: 1fr; }
}

.support-mini-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (max-width: 900px){
  .support-mini-grid{grid-template-columns: repeat(3, minmax(0,1fr));}
}
@media (max-width: 560px){
  .support-mini-grid{grid-template-columns: 1fr;}
}

.support-mini-card{
  display:block;
  padding: 12px 12px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: #fff;
  text-decoration:none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(2,6,23,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.support-mini-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(2,6,23,.08);
}
.smc-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.smc-icon{font-size:18px}
.smc-badge{
  font-size:11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59,130,246,.10);
  color: #1d4ed8;
  border: 1px solid rgba(59,130,246,.18);
}
.smc-badge-soft{background: rgba(148,163,184,.18); color:#0f172a; border-color: rgba(148,163,184,.28);}
.smc-badge-green{background: rgba(16,185,129,.12); color:#047857; border-color: rgba(16,185,129,.22);}
.smc-title{font-weight: 700; font-size: 13px; margin-bottom: 2px}
.smc-sub{font-size: 12px; color: rgba(15,23,42,.65)}

.support-mini-note{
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed rgba(148,163,184,.55);
  border-radius: 14px;
  background: rgba(248,250,252,.7);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.support-mini-note-text{font-size:12px;color:rgba(15,23,42,.75); line-height:1.35}
.pill{display:inline-flex; align-items:center; gap:6px; font-size:11px; padding: 4px 8px; border-radius:999px; border:1px solid rgba(148,163,184,.35)}
.pill-soft{background: rgba(226,232,240,.55); color: rgba(15,23,42,.85)}

/* chat shell */
.support-chat-shell{padding: 14px;}
.chat-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.chat-title{font-weight:800; font-size: 14px}
.chat-sub{font-size:11px; color: rgba(15,23,42,.62)}
.chat-lookup{
  padding: 10px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 14px;
  background: rgba(248,250,252,.9);
  margin-bottom: 10px;
}
.chat-lookup-row{display:flex; gap: 8px; align-items:center}
.chat-lookup-row input{flex: 1}
.chat-lookup-help{margin-top: 6px; font-size: 11px; color: rgba(15,23,42,.65)}
.chat-stream{
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  height: 260px;
  overflow: auto;
}
@media (max-width: 560px){ .chat-stream{height: 220px;} }

.bubble{
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.bubble.client{margin-left:auto; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.22)}
.bubble.staff{margin-right:auto; background: rgba(59,130,246,.10); border: 1px solid rgba(59,130,246,.18)}
.bubble.bot{background: rgba(15,23,42,.04); border: 1px solid rgba(148,163,184,.22)}
.bubble.notice{background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.18)}
.bubble.error{background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.18)}

.typing-bubble{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(148,163,184,.25);
  background:#fff;
  margin-top:10px;
}
.typing-bubble .dot{
  width:6px;height:6px;border-radius:999px;
  background: rgba(15,23,42,.55);
  animation: supportTyping 1.2s infinite ease-in-out;
}
.typing-bubble .dot:nth-child(2){animation-delay:.2s}
.typing-bubble .dot:nth-child(3){animation-delay:.4s}
@keyframes supportTyping{
  0%, 80%, 100%{transform: translateY(0); opacity:.45}
  40%{transform: translateY(-3px); opacity:1}
}

/* form */
.chat-form{margin-top: 10px;}
.chat-form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px){ .chat-form-grid{grid-template-columns: 1fr;} }
.label{display:block; font-size: 11px; color: rgba(15,23,42,.65); margin: 6px 0 4px}
.input, .textarea{
  width:100%;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
.input-sm{padding: 9px 10px; border-radius: 12px; font-size: 12px}
.textarea{min-height: 88px; resize: vertical}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(148,163,184,.35);
  background: #fff;
  cursor:pointer;
  font-weight: 700;
}
.btn-sm{padding: 8px 12px; font-size: 12px}
.btn-primary{
  background: var(--primary, #0f766e);
  color: #fff;
  border-color: rgba(2,6,23,.0);
}
.btn-ghost{background: rgba(15,23,42,.04)}
.chat-form-actions{display:flex; align-items:center; gap: 10px; margin-top: 10px}
.chat-success{font-size: 12px; color: #047857; font-weight: 700}
.chat-more summary{cursor:pointer; font-size: 12px; color: rgba(15,23,42,.72); margin: 8px 0}


/* ==========================================
   Olutech iCare floating chat (real-chat feel)
   ========================================== */
.icare-chat-fab{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:10050;
  width:56px;
  height:56px;
  border-radius:999px;
  border:none;
  background:linear-gradient(135deg, #6D28D9, #7C3AED);
  color:#fff;
  font-weight:900;
  letter-spacing:.2px;
  box-shadow:0 16px 40px rgba(109,40,217,.28);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.icare-chat-fab:hover{transform:translateY(-2px);box-shadow:0 22px 55px rgba(109,40,217,.34)}
.icare-chat-fab:active{transform:translateY(0)}
.icare-chat-fab:focus{outline:3px solid rgba(124,58,237,.25);outline-offset:3px}

.icare-chat-panel{
  position:fixed;
  right:16px;
  bottom:92px;
  z-index:10060;
  width:min(380px, calc(100vw - 36px));
  max-height:min(520px, calc(100vh - 140px));
  border-radius:18px;
  border:1px solid rgba(2,6,23,.08);
  background:#fff;
  box-shadow:0 22px 70px rgba(2,6,23,.20);
  overflow:hidden;
  display:none;
}
.icare-chat-panel.open{display:flex;flex-direction:column}
.icare-chat-head{
  padding:14px 16px;
  background:linear-gradient(135deg, #6D28D9, #7C3AED);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.icare-chat-title{font-weight:950;font-size:15px;line-height:1.1}
.icare-chat-sub{opacity:.92;font-weight:700;font-size:12px;margin-top:2px}
.icare-chat-close{
  appearance:none;border:none;background:rgba(255,255,255,.16);
  color:#fff;width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-weight:900;
}
.icare-chat-close:hover{background:rgba(255,255,255,.22)}
.icare-chat-body{
  padding:12px 12px 10px;
  overflow:auto;
  background:linear-gradient(180deg, rgba(124,58,237,.06), rgba(255,255,255,0));
}

.icare-msg{display:flex;margin:10px 0}
.icare-msg.bot{justify-content:flex-start}
.icare-msg.user{justify-content:flex-end}
.icare-bubble{
  max-width:85%;
  border:1px solid rgba(2,6,23,.08);
  border-radius:14px;
  padding:10px 12px;
  box-shadow:0 10px 28px rgba(2,6,23,.08);
  background:#fff;
  font-size:13px;
}
.icare-msg.user .icare-bubble{
  background:rgba(109,40,217,.10);
  border-color:rgba(109,40,217,.18);
}
.icare-msg-name{font-weight:900;font-size:12px;margin-bottom:4px;opacity:.85}

.icare-help-card{
  border:1px solid rgba(2,6,23,.08);
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 28px rgba(2,6,23,.08);
  padding:10px 10px 6px;
  margin:12px 0 4px;
}
.icare-help-title{font-weight:950;margin-bottom:8px}
.icare-help-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 8px;
  border-radius:12px;
  text-decoration:none;
  color:inherit;
}
.icare-help-row:hover{background:rgba(2,6,23,.03)}
.icare-help-left{display:flex;flex-direction:column;gap:2px}
.icare-help-kind{font-weight:900;font-size:12.5px}
.icare-help-meta{font-size:12px;color:var(--muted)}
.icare-help-action{font-weight:900;color:#4f46e5}

.icare-chat-input{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(2,6,23,.08);
  background:#fff;
}
.icare-chat-input input{
  flex:1;
  border:1px solid rgba(2,6,23,.10);
  border-radius:999px;
  padding:12px 14px;
  font-size:13px;
  outline:none;
  background:#fff;
}
.icare-chat-input input:focus{border-color:rgba(124,58,237,.45);box-shadow:0 0 0 4px rgba(124,58,237,.12)}
.icare-send{
  width:42px;height:42px;border-radius:999px;border:none;
  background:linear-gradient(135deg, #6D28D9, #7C3AED);
  color:#fff;font-weight:950;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  box-shadow:0 14px 34px rgba(109,40,217,.24);
}
.icare-send:hover{filter:brightness(1.02)}
.icare-typing{
  display:flex;
  gap:4px;
  align-items:center;
  padding:8px 12px;
  margin:8px 0 0;
  width:max-content;
  border-radius:999px;
  background:rgba(2,6,23,.04);
  border:1px solid rgba(2,6,23,.06);
  font-size:12px;
  color:var(--muted);
}

@media(max-width:420px){
  .icare-chat-fab{right:12px;bottom:12px}
  .icare-chat-panel{right:12px;bottom:86px}
}


/* Lift chat widget when footer is visible to avoid overlapping footer buttons */
.icare-chat-fab.lift{bottom:120px}
.icare-chat-panel.lift{bottom:188px}
@media(max-width:420px){
  .icare-chat-fab.lift{bottom:96px}
  .icare-chat-panel.lift{bottom:166px}
}


/* Footer compact polish */
.footer .inner{padding-bottom:18px}
.footer-grid{align-items:start}
.footer-install-card{padding:12px}
.footer .divider{opacity:.8}

/* =========================================================
   MOBILE + NATIVE APP (WEBVIEW) POLISH
   - Smaller buttons on phones
   - Better nav CTA wrapping (Install + Request Care)
   - Stronger brand consistency
   - Prevent WebView text autosizing
   ========================================================= */

/* Prevent Android/iOS WebView from auto-resizing text (causes giant buttons) */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }

/* Slightly refresh brand tones (keeps your existing theme but looks cleaner) */
:root{
  --green:#16a34a;
  --ring: 0 0 0 4px rgba(22, 163, 74, .16);
}

/* Make button styling consistent across <a> and <button> */
a.btn, button.btn{ -webkit-tap-highlight-color: transparent; }

/* Default buttons: a touch more compact and modern */
.btn{
  border-radius: 14px;
  padding: 10px 14px;
  line-height: 1.1;
}

/* Mobile: shrink buttons + reduce visual bulk */
@media (max-width: 520px){
  .btn{ padding: 9px 12px; font-size: 13px; border-radius: 14px; }
  .btn-sm{ padding: 7px 10px; font-size: 12px; border-radius: 12px; }

  /* Inputs: slightly tighter */
  .input{ padding: 11px 12px; border-radius: 12px; }

  /* Cards: tighter padding on phone */
  .card{ padding: 14px; border-radius: 18px; }
  .card-tight{ padding: 12px; }

  /* Nav: allow CTA row to wrap without overflow */
  .nav .inner{ flex-wrap: wrap; align-items: flex-start; }
  .brand{ min-width: 0; flex: 1 1 auto; }
  .nav-cta{ flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

  /* Install + Request Care: keep compact and avoid pushing layout */
  #pwaInstallBtn{ padding: 8px 10px; font-size: 12px; }

  /* If there are multiple action buttons in a row, make them wrap nicely */
  .nav-cta > a.btn,
  .nav-cta > button.btn{ flex: 0 0 auto; }
}

/* Make accent buttons look premium */
.btn-accent{
  background: var(--green);
  border-color: var(--green);
  color: #052e16;
}
.btn-accent:hover{ filter: brightness(0.98); }

/* Make primary button slightly less harsh (better for medical brand) */
.btn-primary{
  background: var(--army);
  border-color: var(--army);
}

/* Ensure footer install card stays compact */
@media (max-width: 520px){
  .footer-install-card{ padding: 12px; }
  #pwaInstallBtnFooter{ padding: 7px 10px; font-size: 12px; }
}
