*{box-sizing:border-box}

:root{
  --brand:#E65100;
  --brand-dark:#B71C1C;
  --brand-light:#fff3e0;
  --bg:#f4f6ff;
  --surface:#fff;
  --text:#111827;
  --muted:#667085;
  --line:#e5e7eb;
  --shadow-md:0 10px 30px rgba(0,0,0,.12);
}

html{
  margin:0;
  padding:0;
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding:0;
  max-width:100%;
  overflow-x:hidden;
  font-family:system-ui,-apple-system,Segoe UI,sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  color:inherit;
  text-decoration:none;
}

button{
  font-family:inherit;
}

img{
  max-width:100%;
}

/* SVG ICONS */
.svg-icon,
.site-svg,
.bn-svg,
.home-svg,
.push-svg,
.al-svg,
.inq-svg{
  display:inline-block;
  vertical-align:middle;
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;
  stroke:currentColor;
  fill:none;
  flex:0 0 auto;
  pointer-events:none;
  transition:.16s ease;
}

.icon-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

.icon-text{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.icon-text .svg-icon{
  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;
}

/* ICON COLORS */
.icon-brand{color:var(--brand)!important}
.icon-white{color:#fff!important}
.icon-muted{color:var(--muted)!important}
.icon-success{color:#15803d!important}
.icon-danger{color:#dc2626!important}
.icon-warning{color:#d97706!important}
.icon-info{color:#2563eb!important}

.icon-whatsapp{color:#16a34a}
.icon-facebook{color:#1877F2}
.icon-instagram{color:#E1306C}
.icon-youtube{color:#FF0000}

a:hover .svg-icon,
button:hover .svg-icon{
  transform:scale(1.05);
}

a:active .svg-icon,
button:active .svg-icon{
  transform:scale(.97);
}

/* LAYOUT */
.container{
  max-width:1100px;
  margin:auto;
  padding:12px;
}

/* PUSH POPUP */
#pushPopup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  overflow:auto;
}

#pushPopup.active{
  display:flex;
}

#pushPopup[hidden]{
  display:none!important;
}

.push-modal{
  width:100%;
  max-width:420px;
  max-height:90dvh;
  overflow-y:auto;
  background:#fff;
  border-radius:18px;
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  color:#111;
}

#categoryCheckboxWrap{
  display:grid;
  gap:12px;
}

.push-cat-row{
  display:grid;
  grid-template-columns:26px 1fr;
  align-items:center;
  gap:12px;
  font-size:16px;
  font-weight:700;
}

.push-cat-row input[type="checkbox"]{
  width:20px;
  height:20px;
  margin:0;
  accent-color:var(--brand);
}

.push-cat-text{
  display:flex;
  align-items:center;
  gap:10px;
}

#pushDeniedMsg,
#pushStatusMsg{
  display:none;
  margin:12px 0 0;
  font-size:14px;
  text-align:center;
  line-height:1.5;
}

#pushDeniedMsg{color:#c62828}
#pushStatusMsg{color:#177a35}

/* GLOBAL LOADER */
.global-form-loader{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.88);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:100000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:.18s ease;
}

.global-form-loader.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.loader-box{
  background:#fff;
  padding:22px 26px;
  border-radius:18px;
  box-shadow:var(--shadow-md);
  text-align:center;
  min-width:180px;
  max-width:min(92vw,300px);
}

.loader-spinner{
  width:46px;
  height:46px;
  border:4px solid #e5e7eb;
  border-top-color:var(--brand);
  border-radius:50%;
  margin:0 auto 12px;
  animation:spin .8s linear infinite;
}

.loader-text{
  font-size:15px;
  font-weight:600;
  color:#222;
}

body.form-loading{
  overflow:hidden;
}

@keyframes spin{
  100%{transform:rotate(360deg)}
}

/* INPUT ERROR */
.field-error{
  min-height:18px;
  margin:4px 0 6px;
  font-size:13px;
  color:#dc2626;
  font-weight:700;
}

.input-error{
  border-color:#dc2626!important;
  background:#fff6f6;
}

/* STARTUP LOADER */
.app-startup-loader{
  position:fixed;
  inset:0;
  background:rgba(244,246,255,.82);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:999999;
  transition:.28s ease;
}

.app-startup-loader.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.app-startup-inner{
  width:min(92vw,240px);
  height:255px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
}

.app-startup-ring{
  position:absolute;
  top:8px;
  left:50%;
  width:188px;
  height:188px;
  border-radius:50%;
  border:4px solid rgba(21,101,192,.14);
  border-top-color:var(--brand);
  animation:startupSpin 1.05s linear infinite;
}

.app-startup-logo{
  position:absolute;
  top:62px;
  left:50%;
  transform:translateX(-50%);
  width:76px;
  height:76px;
}

.app-startup-logo img{
  width:76px;
  height:76px;
  object-fit:contain;
}

.app-startup-text{
  position:absolute;
  bottom:34px;
  left:50%;
  transform:translateX(-50%);
  width:230px;
  font-size:15px;
  font-weight:800;
  color:var(--brand);
}

.app-startup-subtext{
  position:absolute;
  bottom:8px;
  left:50%;
  transform:translateX(-50%);
  width:230px;
  font-size:12px;
  font-weight:600;
  color:#5f6b7a;
}

@keyframes startupSpin{
  0%{transform:translateX(-50%) rotate(0deg)}
  100%{transform:translateX(-50%) rotate(360deg)}
}

/* MOBILE */
@media(max-width:480px){
  .push-modal{
    padding:18px 16px;
    border-radius:16px;
  }

  .loader-box{
    width:min(92vw,280px);
    padding:18px 16px;
  }

  .loader-spinner{
    width:42px;
    height:42px;
  }

  .app-startup-inner{
    width:min(94vw,220px);
    height:240px;
  }

  .app-startup-ring{
    width:168px;
    height:168px;
  }

  .app-startup-logo,
  .app-startup-logo img{
    width:68px;
    height:68px;
  }

  .svg-icon,
  .site-svg,
  .bn-svg,
  .home-svg,
  .push-svg,
  .al-svg,
  .inq-svg{
    width:18px;
    height:18px;
    min-width:18px;
    min-height:18px;
  }
}

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