/* =========================================================
   LIGOLIFE LOCAL RANK GRID — PREMIUM UI
   Design-only stylesheet. Functional PHP/JS untouched.
   Brand: #050809 / #07100F / #20D3B9 / Inter Tight
   ========================================================= */

/* ---------- TOKENS / BASE ---------- */
.llrg-wrapper{
  --llrg-bg:#050809;
  --llrg-surface:#07100F;
  --llrg-surface-2:#081310;
  --llrg-surface-3:#0A1714;
  --llrg-accent:#20D3B9;
  --llrg-accent-hover:#77F1E0;
  --llrg-text:#F4F7F7;
  --llrg-text-2:#C5CECF;
  --llrg-muted:#8E9A9B;
  --llrg-border:rgba(32,211,185,.16);
  --llrg-border-strong:rgba(32,211,185,.30);
  --llrg-shadow:0 30px 70px -52px rgba(0,0,0,.96),0 24px 64px -54px rgba(32,211,185,.24);
  --llrg-radius-lg:18px;
  --llrg-radius-md:14px;
  --llrg-radius-sm:10px;
  width:100%;
  max-width:100%;
  margin:0 auto;
  padding:0;
  box-sizing:border-box;
  color:var(--llrg-text)!important;
  font-family:'Inter Tight','Inter',Arial,sans-serif!important;
  font-size:16px;
  line-height:1.5;
  isolation:isolate;
}

.llrg-wrapper *,
.llrg-wrapper *::before,
.llrg-wrapper *::after{box-sizing:border-box}

.llrg-wrapper h3,
.llrg-wrapper p,
.llrg-wrapper strong,
.llrg-wrapper span,
.llrg-wrapper small,
.llrg-wrapper label{font-family:inherit}

.llrg-wrapper h3{
  margin:0 0 8px!important;
  color:var(--llrg-text)!important;
  font-size:22px;
  line-height:1.18;
  font-weight:700;
  letter-spacing:-.3px;
}

.llrg-wrapper p{
  color:var(--llrg-text-2)!important;
  font-size:14px;
  line-height:1.58;
}

.llrg-wrapper strong{color:var(--llrg-text)!important;font-weight:700}
.llrg-wrapper small{color:var(--llrg-muted)!important}

/* ---------- PRIMARY CARDS ---------- */
.llrg-search-card,
.llrg-form,
.llrg-loading,
.llrg-result-card,
.llrg-map-card,
.llrg-analysis-card{
  position:relative;
  width:100%;
  max-width:100%;
  margin:0;
  padding:24px;
  border:1px solid var(--llrg-border)!important;
  border-radius:var(--llrg-radius-lg)!important;
  background:
    radial-gradient(ellipse at 92% 0%,rgba(32,211,185,.055),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,0)),
    var(--llrg-surface)!important;
  color:var(--llrg-text)!important;
  box-shadow:var(--llrg-shadow)!important;
  overflow:hidden;
}

.llrg-search-card::before,
.llrg-form::before,
.llrg-result-card::before,
.llrg-map-card::before,
.llrg-analysis-card::before{
  content:"";
  position:absolute;
  top:-1px;
  left:24px;
  width:74px;
  height:2px;
  border-radius:0 0 999px 999px;
  background:var(--llrg-accent);
  box-shadow:0 0 14px rgba(32,211,185,.36);
}

.llrg-search-card{margin-bottom:16px}
.llrg-results{display:grid;gap:16px;margin-top:18px}
.llrg-results>.llrg-loading,
.llrg-results>.llrg-result-card,
.llrg-results>.llrg-map-card,
.llrg-results>.llrg-analysis-card{margin-top:0}

/* ---------- SEARCH / FORM LAYOUT ---------- */
.llrg-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.22fr) minmax(0,.9fr) auto;
  gap:12px;
  align-items:end;
  margin-top:18px;
}

.llrg-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  align-items:end;
}

.llrg-form .llrg-button{grid-column:1/-1;justify-self:start;margin-top:2px}
.llrg-unlock-field{min-width:0;max-width:none}
.llrg-unlock-field input{width:100%;box-sizing:border-box}

/* ---------- FIELDS ---------- */
.llrg-field{position:relative;min-width:0}
.llrg-field label{
  display:block;
  margin:0 0 7px;
  color:#D7DEDF!important;
  font-size:12px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:.02em;
}

.llrg-field input,
.llrg-field select,
.llrg-audit-form input[type="text"],
.llrg-audit-form input[type="email"],
.llrg-share-actions input{
  width:100%;
  min-height:48px;
  margin:0;
  border:1px solid rgba(255,255,255,.105)!important;
  border-radius:var(--llrg-radius-sm)!important;
  padding:12px 13px!important;
  background:#050B0A!important;
  color:var(--llrg-text)!important;
  caret-color:var(--llrg-accent);
  font:500 14px/1.35 'Inter Tight','Inter',Arial,sans-serif!important;
  outline:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015)!important;
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease!important;
  appearance:auto;
}

.llrg-field input::placeholder,
.llrg-audit-form input::placeholder,
.llrg-share-actions input::placeholder{color:#697677!important;opacity:1}

.llrg-field select{cursor:pointer;color-scheme:dark}
.llrg-field select option{background:#07100F;color:#F4F7F7}

.llrg-field input:hover,
.llrg-field select:hover,
.llrg-audit-form input:hover,
.llrg-share-actions input:hover{border-color:rgba(32,211,185,.24)!important}

.llrg-field input:focus,
.llrg-field select:focus,
.llrg-audit-form input:focus,
.llrg-share-actions input:focus{
  border-color:rgba(32,211,185,.62)!important;
  background:#06110F!important;
  box-shadow:0 0 0 3px rgba(32,211,185,.10),0 14px 30px -26px rgba(32,211,185,.36)!important;
}

/* ---------- BUTTONS ---------- */
.llrg-button,
.llrg-copy-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:50px!important;
  max-width:100%;
  margin:0;
  padding:14px 19px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:9px!important;
  background:var(--llrg-accent)!important;
  color:#04110F!important;
  box-shadow:0 18px 38px -23px rgba(32,211,185,.58),inset 0 1px 0 rgba(255,255,255,.22)!important;
  font:700 14px/1 'Inter Tight','Inter',Arial,sans-serif!important;
  text-decoration:none!important;
  white-space:nowrap;
  cursor:pointer!important;
  transition:transform .2s cubic-bezier(.22,.61,.36,1),background-color .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}

.llrg-button *,
.llrg-copy-link *{color:#04110F!important}

.llrg-button:hover,
.llrg-button:focus-visible,
.llrg-copy-link:hover,
.llrg-copy-link:focus-visible{
  transform:translateY(-2px);
  background:var(--llrg-accent-hover)!important;
  color:#04110F!important;
  border-color:rgba(255,255,255,.22)!important;
  box-shadow:0 22px 44px -21px rgba(32,211,185,.70),inset 0 1px 0 rgba(255,255,255,.26)!important;
  outline:none!important;
}

.llrg-button:active,
.llrg-copy-link:active{transform:translateY(0) scale(.99)}

.llrg-button:disabled{
  opacity:.56!important;
  cursor:wait!important;
  transform:none!important;
  box-shadow:none!important;
}

.llrg-search-button{min-width:128px}

/* ---------- TIP / INFO / MESSAGES ---------- */
.llrg-manual-note,
.llrg-live-hint,
.llrg-profile-loading,
.llrg-profile-loading-percent,
.llrg-city-empty,
.llrg-empty,
.llrg-loading-small{
  width:100%;
  margin:0 0 16px;
  padding:14px 16px;
  border:1px solid var(--llrg-border)!important;
  border-radius:var(--llrg-radius-md)!important;
  background:linear-gradient(180deg,rgba(32,211,185,.05),rgba(32,211,185,.018)),var(--llrg-surface-2)!important;
  color:var(--llrg-text-2)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
  font-size:13px;
  line-height:1.5;
}

.llrg-manual-note strong,
.llrg-profile-loading strong,
.llrg-live-hint strong{color:var(--llrg-text)!important}

.llrg-message{
  margin-top:16px;
  padding:13px 15px;
  border-radius:var(--llrg-radius-md);
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}
.llrg-message-error,
.llrg-audit-response.is-error{
  border:1px solid rgba(255,122,89,.30)!important;
  background:rgba(255,122,89,.075)!important;
  color:#FFC1B2!important;
}
.llrg-message-info,
.llrg-audit-response.is-success{
  border:1px solid rgba(32,211,185,.28)!important;
  background:rgba(32,211,185,.07)!important;
  color:#B7FFF4!important;
}

/* ---------- PROFILE SEARCH ---------- */
.llrg-business-results{margin-top:14px;position:relative;z-index:10}
.llrg-profile-list{display:grid;gap:9px;max-height:420px;overflow-y:auto;padding-right:3px}
.llrg-live-profile-list{margin-top:10px}
.llrg-live-title{margin:0 0 8px;color:var(--llrg-text)!important;font-size:13px;font-weight:700}

.llrg-profile-option,
.llrg-city-option{
  width:100%;
  text-align:left;
  border:1px solid rgba(255,255,255,.09)!important;
  background:#07100F!important;
  color:var(--llrg-text)!important;
  border-radius:12px!important;
  padding:13px 14px!important;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease!important;
}

.llrg-profile-option{display:grid;gap:4px}
.llrg-profile-option *{color:inherit!important}
.llrg-profile-option strong{font-size:15px;color:var(--llrg-text)!important}
.llrg-profile-option span{font-size:13px;color:#B5BEBF!important}
.llrg-profile-option small{font-size:11px;color:#7F8C8D!important;opacity:1}

.llrg-profile-option:hover,
.llrg-profile-option:focus-visible,
.llrg-profile-option.is-selected,
.llrg-city-option:hover,
.llrg-city-option:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(32,211,185,.46)!important;
  background:#091A16!important;
  color:var(--llrg-text)!important;
  box-shadow:0 18px 36px -30px rgba(32,211,185,.26)!important;
  outline:none!important;
}

.llrg-profile-option.is-selected{box-shadow:inset 3px 0 0 var(--llrg-accent),0 18px 36px -30px rgba(32,211,185,.24)!important}
.llrg-selected-profile-static{cursor:default!important;transform:none!important}

.llrg-city-suggestions{margin-top:7px;display:grid;gap:6px;position:absolute;z-index:50;width:100%;max-width:100%}
.llrg-city-option{font:650 13px/1.35 'Inter Tight','Inter',Arial,sans-serif!important}

/* ---------- PROFILE PROGRESS ---------- */
.llrg-profile-loading{margin-top:12px;margin-bottom:0}
.llrg-profile-loading-percent{margin-top:12px;margin-bottom:0}
.llrg-profile-loading-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.llrg-profile-loading-top span{color:var(--llrg-muted)!important;opacity:1;font-weight:650}
.llrg-profile-loading-percent p{margin:9px 0 0!important;color:var(--llrg-muted)!important;font-size:12px!important}

.llrg-mini-progress,
.llrg-real-progress,
.llrg-progress{
  width:100%;
  overflow:hidden;
  border:1px solid rgba(32,211,185,.07);
  border-radius:999px;
  background:#0C1B18!important;
}
.llrg-mini-progress{height:7px}
.llrg-real-progress{height:9px;margin-top:10px}
.llrg-progress{height:9px}
.llrg-mini-progress div,
.llrg-real-progress>div,
.llrg-progress-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#16BDA6,var(--llrg-accent),#5FE8D5)!important;
  box-shadow:0 0 12px rgba(32,211,185,.28);
}
.llrg-progress-bar{width:0;transition:width .35s ease}
.llrg-real-progress>div{transition:width .6s ease}
.llrg-mini-progress div{width:45%;animation:llrgMiniProgress 1.1s ease-in-out infinite}
@keyframes llrgMiniProgress{0%{transform:translateX(-110%)}55%{transform:translateX(75%)}100%{transform:translateX(240%)}}

/* ---------- RESULTS / LOADING ---------- */
.llrg-eyebrow{
  margin:0 0 7px!important;
  color:var(--llrg-accent)!important;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:10px!important;
  line-height:1.2;
  font-weight:750!important;
  opacity:1;
}
.llrg-small-note{margin:8px 0 0!important;color:var(--llrg-muted)!important;font-size:12px!important;line-height:1.5;opacity:1}
.llrg-loading-top{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:11px;color:var(--llrg-text)!important;font-size:13px;font-weight:700}
.llrg-loading p{margin:10px 0 0!important;color:var(--llrg-muted)!important;font-size:12px!important}

/* ---------- MAP CARD / LEAFLET ---------- */
.llrg-map-help{margin:0 0 12px!important;color:var(--llrg-muted)!important;font-size:13px!important;font-weight:450;opacity:1}
#llrg-map{
  width:100%;
  height:460px;
  margin-top:12px;
  overflow:hidden;
  border:1px solid rgba(32,211,185,.13);
  border-radius:14px;
  background:#DDE3E3;
  box-shadow:0 24px 52px -42px rgba(0,0,0,.72);
}

#llrg-map .leaflet-control-zoom a,
#llrg-map .leaflet-control-attribution{
  border-color:rgba(32,211,185,.18)!important;
  background:#07100F!important;
  color:#D9E0E0!important;
}
#llrg-map .leaflet-control-zoom a:hover{background:#0B1B18!important;color:var(--llrg-accent)!important}
#llrg-map .leaflet-control-attribution a{color:#108E7D!important}

#llrg-map .leaflet-popup-content-wrapper{
  border:1px solid rgba(32,211,185,.18)!important;
  border-radius:14px!important;
  background:#07100F!important;
  color:var(--llrg-text)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.38)!important;
}
#llrg-map .leaflet-popup-tip{background:#07100F!important}
#llrg-map .leaflet-popup-content{margin:18px!important;color:var(--llrg-text)!important}
#llrg-map .leaflet-popup-content *{color:inherit!important}
#llrg-map .leaflet-popup-content small,
#llrg-map .leaflet-popup-content span{color:#AEB8B9!important}
#llrg-map a.leaflet-popup-close-button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  height:32px!important;
  right:7px!important;
  top:7px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.035)!important;
  color:#AAB5B6!important;
  font-size:22px!important;
  line-height:1!important;
  transition:background-color .18s ease,color .18s ease,transform .18s ease!important;
}
#llrg-map a.leaflet-popup-close-button:hover{background:rgba(32,211,185,.10)!important;color:var(--llrg-accent)!important;transform:rotate(6deg)}

.llrg-popup{max-height:420px;overflow-y:auto;color:var(--llrg-text)!important;font-family:inherit;font-size:12px;line-height:1.45}
.llrg-popup p{margin:6px 0!important;color:#C4CDCE!important}
.llrg-popup strong{color:var(--llrg-text)!important}
.llrg-popup hr{border:0;border-top:1px solid rgba(255,255,255,.08);margin:10px 0}
.llrg-popup-list{margin:8px 0 0;padding-left:0!important}
.llrg-popup-list-item{margin-bottom:10px}
.llrg-popup-rank{display:inline-block;min-width:24px;color:var(--llrg-accent)!important;font-weight:800}

.llrg-map-marker-wrap{background:transparent;border:none}
.llrg-map-marker{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px solid #fff;
  border-radius:50%;
  color:#fff;
  font-size:16px;
  font-weight:800;
  box-shadow:0 9px 24px rgba(0,0,0,.27),0 0 0 1px rgba(0,0,0,.06);
}
.llrg-map-marker[style*="#20d3b9"],
.llrg-map-marker[style*="#f5c542"]{color:#04110F}

.llrg-map-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:13px;color:#AEB8B9!important;font-size:11px;font-weight:600}
.llrg-map-legend span{display:inline-flex;align-items:center;gap:6px;color:#AEB8B9!important}
.llrg-map-legend i{width:10px;height:10px;display:inline-block;border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.04)}
.legend-good{background:#20d3b9}.legend-mid{background:#f5c542}.legend-low{background:#ff7a59}.legend-none{background:#050505}

/* ---------- ANALYSIS ---------- */
.llrg-analysis-card{display:grid;gap:16px}
.llrg-analysis-good{border-color:rgba(32,211,185,.34)!important}
.llrg-analysis-medium{border-color:rgba(245,197,66,.30)!important}
.llrg-analysis-need{border-color:rgba(255,122,89,.30)!important}
.llrg-analysis-main p{margin:0!important;color:#B7C0C1!important}
.llrg-analysis-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.llrg-analysis-stats div{
  min-width:0;
  padding:14px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:#081310;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015);
}
.llrg-analysis-stats strong{display:block;color:var(--llrg-text)!important;font-size:24px;line-height:1.05;font-weight:750;letter-spacing:-.5px}
.llrg-analysis-stats span{display:block;margin-top:5px;color:var(--llrg-muted)!important;font-size:11px;line-height:1.25;font-weight:600;opacity:1}

.llrg-soft-cta,
.llrg-share-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  min-width:0;
  padding:16px;
  border:1px solid rgba(32,211,185,.17);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(32,211,185,.045),rgba(32,211,185,.012)),#081310;
  color:var(--llrg-text)!important;
}
.llrg-soft-cta strong,
.llrg-share-box strong{color:var(--llrg-text)!important;font-size:13px}
.llrg-soft-cta p,
.llrg-share-box p{margin:4px 0 0!important;color:var(--llrg-muted)!important;font-size:12px!important;line-height:1.45;opacity:1}
.llrg-share-box{border-color:rgba(255,255,255,.08);background:#07100F}
.llrg-share-actions{display:flex;gap:8px;align-items:center;min-width:0;max-width:100%}
.llrg-share-actions input{width:min(330px,38vw);min-height:42px!important;font-size:12px!important;padding:10px 12px!important}
.llrg-copy-link{min-height:42px!important;padding:11px 14px!important;font-size:12px!important}

/* ---------- AUDIT MODAL ---------- */
.llrg-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.llrg-modal{
  position:relative;
  width:100%;
  max-width:min(560px,calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  overflow-y:auto;
  padding:28px;
  border:1px solid rgba(32,211,185,.20);
  border-radius:20px;
  background:radial-gradient(ellipse at 90% 0%,rgba(32,211,185,.07),transparent 42%),#07100F;
  color:var(--llrg-text)!important;
  box-shadow:0 34px 90px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.015) inset;
  font-family:'Inter Tight','Inter',Arial,sans-serif;
}
.llrg-modal *{font-family:inherit}
.llrg-modal h3{margin:0 40px 8px 0!important;color:var(--llrg-text)!important;font-size:24px;line-height:1.15;font-weight:700;letter-spacing:-.4px}
.llrg-modal>p:not(.llrg-eyebrow){margin:0;color:#B3BDBE!important;font-size:13px;line-height:1.55}
.llrg-modal-close{
  position:absolute;
  right:14px;
  top:14px;
  z-index:1000000;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:38px!important;
  height:38px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.035)!important;
  color:#AEB8B9!important;
  font-size:27px!important;
  line-height:1!important;
  cursor:pointer!important;
  transition:transform .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease!important;
}
.llrg-modal-close:hover{transform:rotate(7deg);border-color:rgba(32,211,185,.22)!important;background:rgba(32,211,185,.08)!important;color:var(--llrg-accent)!important}

.llrg-modal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:17px 0}
.llrg-modal-summary span{
  min-width:0;
  padding:10px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  background:#081310;
  color:#AEB8B9!important;
  font-size:11px;
  line-height:1.35;
  font-weight:600;
}
.llrg-modal-summary strong{display:block;margin-top:3px;color:var(--llrg-text)!important;font-size:16px}
.llrg-audit-form{display:grid;gap:10px}
.llrg-consent{display:grid;grid-template-columns:18px 1fr;gap:9px;align-items:start;color:#96A2A3!important;font-size:11px;line-height:1.45}
.llrg-consent input{margin-top:2px;accent-color:var(--llrg-accent)}
.llrg-audit-response{margin:0;padding:11px 13px;border-radius:10px;font-size:12px;font-weight:600}

/* ---------- SCROLLBARS ---------- */
.llrg-profile-list,
.llrg-popup,
.llrg-modal{scrollbar-width:thin;scrollbar-color:rgba(32,211,185,.55) #081310}
.llrg-profile-list::-webkit-scrollbar,
.llrg-popup::-webkit-scrollbar,
.llrg-modal::-webkit-scrollbar{width:7px}
.llrg-profile-list::-webkit-scrollbar-track,
.llrg-popup::-webkit-scrollbar-track,
.llrg-modal::-webkit-scrollbar-track{background:#081310;border-radius:999px}
.llrg-profile-list::-webkit-scrollbar-thumb,
.llrg-popup::-webkit-scrollbar-thumb,
.llrg-modal::-webkit-scrollbar-thumb{background:rgba(32,211,185,.48);border-radius:999px}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width:1024px){
  .llrg-wrapper{font-size:15px}
  .llrg-search-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .llrg-search-button{grid-column:1/-1;justify-self:start}
  .llrg-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .llrg-form .llrg-button{grid-column:1/-1}
  #llrg-map{height:400px}
}

/* ---------- RESPONSIVE: MOBILE ---------- */
@media (max-width:767px){
  .llrg-search-card,
  .llrg-form,
  .llrg-loading,
  .llrg-result-card,
  .llrg-map-card,
  .llrg-analysis-card{padding:18px;border-radius:16px!important}

  .llrg-search-card::before,
  .llrg-form::before,
  .llrg-result-card::before,
  .llrg-map-card::before,
  .llrg-analysis-card::before{left:18px;width:64px}

  .llrg-search-row,
  .llrg-form{grid-template-columns:1fr;gap:11px}
  .llrg-search-button,
  .llrg-form .llrg-button{grid-column:auto;width:100%;justify-self:stretch}

  .llrg-field label{font-size:11px}
  .llrg-field input,
  .llrg-field select,
  .llrg-audit-form input[type="text"],
  .llrg-audit-form input[type="email"]{min-height:46px;font-size:13px!important}

  .llrg-button{width:100%;min-height:49px!important;font-size:13px!important}
  .llrg-manual-note{padding:13px 14px;font-size:12px}

  .llrg-profile-option{padding:12px 13px!important}
  .llrg-profile-option strong{font-size:14px}
  .llrg-profile-option span{font-size:12px}

  #llrg-map{height:340px;border-radius:12px}
  .llrg-map-legend{gap:7px 11px;font-size:10px}
  .llrg-map-marker{width:38px;height:38px;font-size:14px}

  .llrg-analysis-stats{grid-template-columns:1fr}
  .llrg-analysis-stats div{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}
  .llrg-analysis-stats strong{font-size:21px}
  .llrg-analysis-stats span{margin-top:0}

  .llrg-soft-cta,
  .llrg-share-box{grid-template-columns:1fr;gap:12px;padding:14px}
  .llrg-soft-cta .llrg-button{width:100%}
  .llrg-share-actions{flex-direction:column;align-items:stretch;width:100%}
  .llrg-share-actions input,
  .llrg-copy-link{width:100%!important}

  .llrg-modal{padding:22px 17px;border-radius:17px}
  .llrg-modal h3{font-size:21px}
  .llrg-modal-summary{grid-template-columns:1fr}
  .llrg-modal-summary span{display:flex;justify-content:space-between;gap:10px;align-items:center}
  .llrg-modal-summary strong{display:inline;margin-top:0;font-size:14px}
}

@media (max-width:430px){
  .llrg-search-card,
  .llrg-form,
  .llrg-loading,
  .llrg-result-card,
  .llrg-map-card,
  .llrg-analysis-card{padding:16px}
  #llrg-map{height:310px}
}

/* ---------- ACCESSIBILITY / MOTION ---------- */
@media (prefers-reduced-motion:reduce){
  .llrg-wrapper *,
  .llrg-wrapper *::before,
  .llrg-wrapper *::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.001ms!important;animation-iteration-count:1!important}
}

/* =========================================================
   PREMIUM V2 — HARD THEME OVERRIDE
   Purpose: make the COMPLETE plugin visually consistent even
   when Elementor / theme parent containers are white.
   ========================================================= */

html body .llrg-wrapper{
  --llrg-bg:#050809;
  --llrg-surface:#07100F;
  --llrg-surface-2:#081310;
  --llrg-surface-3:#0A1714;
  --llrg-accent:#20D3B9;
  --llrg-accent-hover:#77F1E0;
  --llrg-text:#F5F8F8;
  --llrg-text-2:#C5CECF;
  --llrg-muted:#8E9A9B;
  --llrg-border:rgba(32,211,185,.18);
  --llrg-border-strong:rgba(32,211,185,.34);
  position:relative!important;
  isolation:isolate!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:18px!important;
  overflow:hidden!important;
  border:1px solid rgba(32,211,185,.16)!important;
  border-radius:22px!important;
  background:
    radial-gradient(ellipse at 86% -4%,rgba(32,211,185,.10) 0%,rgba(32,211,185,.025) 34%,rgba(32,211,185,0) 64%),
    radial-gradient(ellipse at -8% 110%,rgba(32,211,185,.05),rgba(32,211,185,0) 48%),
    #050809!important;
  color:var(--llrg-text)!important;
  box-shadow:
    0 34px 82px -66px rgba(32,211,185,.42),
    0 28px 66px -54px rgba(0,0,0,.98),
    inset 0 1px 0 rgba(255,255,255,.025)!important;
}

html body .llrg-wrapper::before{
  content:"";
  position:absolute;
  top:-1px;
  left:28px;
  width:96px;
  height:3px;
  z-index:20;
  border-radius:0 0 999px 999px;
  background:#20D3B9;
  box-shadow:0 0 12px rgba(32,211,185,.48),0 0 26px rgba(32,211,185,.18);
  pointer-events:none;
}

html body .llrg-wrapper::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-210px;
  top:-220px;
  z-index:-1;
  border-radius:50%;
  background:rgba(32,211,185,.06);
  filter:blur(90px);
  pointer-events:none;
}

/* All main panels are dark even against aggressive theme CSS */
html body .llrg-wrapper .llrg-search-card,
html body .llrg-wrapper .llrg-form,
html body .llrg-wrapper .llrg-loading,
html body .llrg-wrapper .llrg-result-card,
html body .llrg-wrapper .llrg-map-card,
html body .llrg-wrapper .llrg-analysis-card{
  border:1px solid rgba(32,211,185,.16)!important;
  border-radius:17px!important;
  background:
    radial-gradient(ellipse at 92% 0%,rgba(32,211,185,.065),rgba(32,211,185,.014) 40%,rgba(32,211,185,0) 72%),
    linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,0)),
    #07100F!important;
  color:#F5F8F8!important;
  box-shadow:
    0 26px 58px -50px rgba(32,211,185,.26),
    inset 0 1px 0 rgba(255,255,255,.022)!important;
}

html body .llrg-wrapper .llrg-search-card{margin-bottom:14px!important}
html body .llrg-wrapper .llrg-manual-note{margin:0 0 14px!important}
html body .llrg-wrapper .llrg-form{margin:0!important}

/* Headings/text */
html body .llrg-wrapper h3{
  color:#F5F8F8!important;
  font:700 22px/1.16 'Inter Tight','Inter',Arial,sans-serif!important;
  letter-spacing:-.32px!important;
}
html body .llrg-wrapper p{color:#B6C0C1!important}
html body .llrg-wrapper strong{color:#F5F8F8!important}
html body .llrg-wrapper label{color:#D7DEDF!important}

/* Fields: no white browser/theme states */
html body .llrg-wrapper .llrg-field input,
html body .llrg-wrapper .llrg-field select,
html body .llrg-modal .llrg-audit-form input[type="text"],
html body .llrg-modal .llrg-audit-form input[type="email"],
html body .llrg-wrapper .llrg-share-actions input{
  min-height:48px!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:10px!important;
  background:#050B0A!important;
  color:#F4F7F7!important;
  -webkit-text-fill-color:#F4F7F7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.016)!important;
}

html body .llrg-wrapper .llrg-field input:-webkit-autofill,
html body .llrg-wrapper .llrg-field input:-webkit-autofill:hover,
html body .llrg-wrapper .llrg-field input:-webkit-autofill:focus,
html body .llrg-modal input:-webkit-autofill{
  -webkit-text-fill-color:#F4F7F7!important;
  -webkit-box-shadow:0 0 0 1000px #050B0A inset!important;
  box-shadow:0 0 0 1000px #050B0A inset!important;
  transition:background-color 9999s ease-out 0s!important;
}

html body .llrg-wrapper .llrg-field input::placeholder,
html body .llrg-wrapper .llrg-share-actions input::placeholder,
html body .llrg-modal input::placeholder{color:#687677!important;opacity:1!important}

html body .llrg-wrapper .llrg-field input:hover,
html body .llrg-wrapper .llrg-field select:hover,
html body .llrg-modal input:hover{
  border-color:rgba(32,211,185,.28)!important;
  background:#06100E!important;
}

html body .llrg-wrapper .llrg-field input:focus,
html body .llrg-wrapper .llrg-field select:focus,
html body .llrg-modal input:focus{
  border-color:rgba(32,211,185,.68)!important;
  background:#06110F!important;
  box-shadow:0 0 0 3px rgba(32,211,185,.10),0 15px 30px -27px rgba(32,211,185,.40)!important;
}

html body .llrg-wrapper select,
html body .llrg-wrapper option{color-scheme:dark!important}
html body .llrg-wrapper option{background:#07100F!important;color:#F4F7F7!important}

/* PRIMARY CTA BUTTONS */
html body .llrg-wrapper .llrg-button,
html body .llrg-modal .llrg-button{
  min-height:50px!important;
  padding:14px 19px!important;
  border:1px solid rgba(255,255,255,.17)!important;
  border-radius:9px!important;
  background:#20D3B9!important;
  color:#04110F!important;
  -webkit-text-fill-color:#04110F!important;
  box-shadow:0 18px 38px -23px rgba(32,211,185,.62),inset 0 1px 0 rgba(255,255,255,.23)!important;
  font:700 14px/1 'Inter Tight','Inter',Arial,sans-serif!important;
  text-shadow:none!important;
}

@media (hover:hover) and (pointer:fine){
  html body .llrg-wrapper .llrg-button:hover,
  html body .llrg-wrapper .llrg-button:focus-visible,
  html body .llrg-modal .llrg-button:hover,
  html body .llrg-modal .llrg-button:focus-visible{
    transform:translateY(-2px)!important;
    border-color:rgba(255,255,255,.24)!important;
    background:#77F1E0!important;
    color:#04110F!important;
    -webkit-text-fill-color:#04110F!important;
    box-shadow:0 23px 45px -20px rgba(32,211,185,.72),inset 0 1px 0 rgba(255,255,255,.27)!important;
  }
}

html body .llrg-wrapper .llrg-button:active,
html body .llrg-modal .llrg-button:active{transform:translateY(0) scale(.99)!important}

/* SECONDARY BUTTON */
html body .llrg-wrapper .llrg-copy-link{
  min-height:42px!important;
  padding:11px 14px!important;
  border:1px solid rgba(32,211,185,.24)!important;
  border-radius:9px!important;
  background:rgba(32,211,185,.055)!important;
  color:#BDFBF1!important;
  -webkit-text-fill-color:#BDFBF1!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
  font:700 12px/1 'Inter Tight','Inter',Arial,sans-serif!important;
}
@media (hover:hover) and (pointer:fine){
  html body .llrg-wrapper .llrg-copy-link:hover,
  html body .llrg-wrapper .llrg-copy-link:focus-visible{
    transform:translateY(-1px)!important;
    border-color:rgba(32,211,185,.44)!important;
    background:rgba(32,211,185,.10)!important;
    color:#77F1E0!important;
    -webkit-text-fill-color:#77F1E0!important;
    box-shadow:0 16px 30px -27px rgba(32,211,185,.38)!important;
  }
}

/* Notes, suggestions, loading and empty states */
html body .llrg-wrapper .llrg-manual-note,
html body .llrg-wrapper .llrg-live-hint,
html body .llrg-wrapper .llrg-profile-loading,
html body .llrg-wrapper .llrg-profile-loading-percent,
html body .llrg-wrapper .llrg-city-empty,
html body .llrg-wrapper .llrg-empty,
html body .llrg-wrapper .llrg-loading-small{
  border:1px solid rgba(32,211,185,.17)!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,rgba(32,211,185,.05),rgba(32,211,185,.015)),#081310!important;
  color:#C5CECF!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
}

/* Profile results — kill theme white button background */
html body .llrg-wrapper button.llrg-profile-option,
html body .llrg-wrapper button.llrg-city-option,
html body .llrg-wrapper .llrg-selected-profile-static{
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:12px!important;
  background:#07100F!important;
  color:#F4F7F7!important;
  -webkit-text-fill-color:currentColor!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.014)!important;
}
html body .llrg-wrapper button.llrg-profile-option *,
html body .llrg-wrapper button.llrg-city-option *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
@media (hover:hover) and (pointer:fine){
  html body .llrg-wrapper button.llrg-profile-option:hover,
  html body .llrg-wrapper button.llrg-profile-option:focus-visible,
  html body .llrg-wrapper button.llrg-city-option:hover,
  html body .llrg-wrapper button.llrg-city-option:focus-visible,
  html body .llrg-wrapper button.llrg-profile-option.is-selected{
    transform:translateY(-1px)!important;
    border-color:rgba(32,211,185,.46)!important;
    background:#091A16!important;
    box-shadow:0 18px 36px -30px rgba(32,211,185,.30),inset 3px 0 0 rgba(32,211,185,.85)!important;
  }
}

/* Progress bars */
html body .llrg-wrapper .llrg-mini-progress,
html body .llrg-wrapper .llrg-real-progress,
html body .llrg-wrapper .llrg-progress{
  border:1px solid rgba(32,211,185,.08)!important;
  background:#0B1B17!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.30)!important;
}
html body .llrg-wrapper .llrg-mini-progress div,
html body .llrg-wrapper .llrg-real-progress>div,
html body .llrg-wrapper .llrg-progress-bar{
  background:linear-gradient(90deg,#16BDA6,#20D3B9,#5FE8D5)!important;
  box-shadow:0 0 14px rgba(32,211,185,.30)!important;
}

/* Result / analysis cards */
html body .llrg-wrapper .llrg-analysis-stats div{
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:12px!important;
  background:#081310!important;
  color:#F4F7F7!important;
}
html body .llrg-wrapper .llrg-soft-cta,
html body .llrg-wrapper .llrg-share-box{
  border-radius:13px!important;
  background:linear-gradient(180deg,rgba(32,211,185,.045),rgba(32,211,185,.012)),#081310!important;
}
html body .llrg-wrapper .llrg-share-box{
  border-color:rgba(255,255,255,.08)!important;
  background:#07100F!important;
}

/* MAP: surrounding UI dark, tiles subtly muted instead of stark white */
html body .llrg-wrapper #llrg-map{
  border:1px solid rgba(32,211,185,.15)!important;
  border-radius:14px!important;
  background:#0A1614!important;
  box-shadow:0 24px 52px -42px rgba(0,0,0,.78)!important;
}
html body .llrg-wrapper #llrg-map .leaflet-tile-pane{
  filter:saturate(.72) brightness(.90) contrast(1.04);
}
html body .llrg-wrapper #llrg-map .leaflet-control-zoom a,
html body .llrg-wrapper #llrg-map .leaflet-control-attribution{
  border-color:rgba(32,211,185,.18)!important;
  background:#07100F!important;
  color:#D9E0E0!important;
}
html body .llrg-wrapper #llrg-map .leaflet-popup-content-wrapper,
html body .llrg-wrapper #llrg-map .leaflet-popup-tip{
  background:#07100F!important;
  color:#F4F7F7!important;
}

/* Modal — scoped hard override because it is appended to body, outside wrapper */
html body .llrg-modal-backdrop{
  background:rgba(0,0,0,.76)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
html body .llrg-modal{
  border:1px solid rgba(32,211,185,.22)!important;
  border-radius:20px!important;
  background:radial-gradient(ellipse at 90% 0%,rgba(32,211,185,.08),rgba(32,211,185,0) 44%),#07100F!important;
  color:#F5F8F8!important;
  box-shadow:0 34px 90px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html body .llrg-modal,
html body .llrg-modal *{font-family:'Inter Tight','Inter',Arial,sans-serif!important}
html body .llrg-modal h3,
html body .llrg-modal strong{color:#F5F8F8!important}
html body .llrg-modal p,
html body .llrg-modal label{color:#B3BDBE!important}
html body .llrg-modal-summary span{
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:10px!important;
  background:#081310!important;
  color:#AEB8B9!important;
}
html body .llrg-modal-close{
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.035)!important;
  color:#AEB8B9!important;
}
@media (hover:hover) and (pointer:fine){
  html body .llrg-modal-close:hover{
    border-color:rgba(32,211,185,.26)!important;
    background:rgba(32,211,185,.09)!important;
    color:#20D3B9!important;
    transform:rotate(7deg)!important;
  }
}

/* Keyboard focus */
html body .llrg-wrapper button:focus-visible,
html body .llrg-wrapper input:focus-visible,
html body .llrg-wrapper select:focus-visible,
html body .llrg-modal button:focus-visible,
html body .llrg-modal input:focus-visible{
  outline:none!important;
  box-shadow:0 0 0 3px rgba(32,211,185,.11)!important;
}

/* Tablet */
@media (max-width:1024px){
  html body .llrg-wrapper{padding:16px!important;border-radius:20px!important}
  html body .llrg-wrapper .llrg-search-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .llrg-wrapper .llrg-search-button{grid-column:1/-1!important;width:max-content!important;justify-self:start!important}
  html body .llrg-wrapper .llrg-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Mobile */
@media (max-width:767px){
  html body .llrg-wrapper{
    padding:12px!important;
    border-radius:16px!important;
  }
  html body .llrg-wrapper::before{left:18px;width:72px}
  html body .llrg-wrapper .llrg-search-card,
  html body .llrg-wrapper .llrg-form,
  html body .llrg-wrapper .llrg-loading,
  html body .llrg-wrapper .llrg-result-card,
  html body .llrg-wrapper .llrg-map-card,
  html body .llrg-wrapper .llrg-analysis-card{
    padding:17px!important;
    border-radius:14px!important;
  }
  html body .llrg-wrapper .llrg-search-row,
  html body .llrg-wrapper .llrg-form{grid-template-columns:1fr!important;gap:11px!important}
  html body .llrg-wrapper .llrg-search-button,
  html body .llrg-wrapper .llrg-form .llrg-button{width:100%!important;grid-column:auto!important}
  html body .llrg-wrapper .llrg-button{white-space:normal!important}
  html body .llrg-wrapper .llrg-soft-cta,
  html body .llrg-wrapper .llrg-share-box{grid-template-columns:1fr!important}
  html body .llrg-wrapper .llrg-share-actions{flex-direction:column!important;align-items:stretch!important}
  html body .llrg-wrapper .llrg-share-actions input,
  html body .llrg-wrapper .llrg-copy-link{width:100%!important}
  html body .llrg-modal{padding:22px 17px!important;border-radius:17px!important}
}

@media (max-width:430px){
  html body .llrg-wrapper{padding:10px!important}
  html body .llrg-wrapper .llrg-search-card,
  html body .llrg-wrapper .llrg-form,
  html body .llrg-wrapper .llrg-loading,
  html body .llrg-wrapper .llrg-result-card,
  html body .llrg-wrapper .llrg-map-card,
  html body .llrg-wrapper .llrg-analysis-card{padding:15px!important}
}

/* =========================================================
   PREMIUM V3 — NO OUTER FRAME
   The parent Elementor/accordion container provides the outer
   visual frame. Only the plugin's functional inner cards remain.
   ========================================================= */
html body .llrg-wrapper{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

html body .llrg-wrapper::before,
html body .llrg-wrapper::after{
  content:none!important;
  display:none!important;
}

/* =========================================================
   V4 FIX — SELECTED BUSINESS PROFILE
   Keep the chosen profile visibly selected and brand-consistent
   instead of falling back to a nearly black/theme state.
   ========================================================= */
html body .llrg-wrapper .llrg-profile-option.is-selected,
html body .llrg-wrapper .llrg-selected-profile-static{
  background:
    linear-gradient(135deg,rgba(32,211,185,.12),rgba(32,211,185,.035)),
    #081310!important;
  border-color:rgba(32,211,185,.38)!important;
  color:#F4F7F7!important;
  -webkit-text-fill-color:currentColor!important;
  box-shadow:
    inset 3px 0 0 #20D3B9,
    inset 0 1px 0 rgba(255,255,255,.025),
    0 16px 34px -30px rgba(32,211,185,.34)!important;
  transform:none!important;
}

html body .llrg-wrapper .llrg-profile-option.is-selected strong,
html body .llrg-wrapper .llrg-selected-profile-static strong{
  color:#F4F7F7!important;
  -webkit-text-fill-color:#F4F7F7!important;
}

html body .llrg-wrapper .llrg-profile-option.is-selected span,
html body .llrg-wrapper .llrg-selected-profile-static span{
  color:#C5CECF!important;
  -webkit-text-fill-color:#C5CECF!important;
}

html body .llrg-wrapper .llrg-profile-option.is-selected small,
html body .llrg-wrapper .llrg-selected-profile-static small{
  color:#77F1E0!important;
  -webkit-text-fill-color:#77F1E0!important;
  opacity:1!important;
}

/* Prevent a black pressed/focus flash when selecting a profile. */
html body .llrg-wrapper button.llrg-profile-option:active,
html body .llrg-wrapper button.llrg-profile-option:focus{
  background:
    linear-gradient(135deg,rgba(32,211,185,.11),rgba(32,211,185,.03)),
    #081310!important;
  border-color:rgba(32,211,185,.42)!important;
  color:#F4F7F7!important;
  outline:none!important;
}
