/* 1CAW Batch 6 — approved additions to the MAIN website (styles ONLY elements marked
   data-addition="1caw", plus the "Create Your Website" page). The pixel guard of the original design
   (tests/visual) leaves this file and those elements out, so the original design itself stays guarded. */

/* ---------------------------------------------------------------- Create Your Website band */
.main-create {
  position: relative;
  padding: 28px 16px;
  background: radial-gradient(120% 140% at 50% 0%, #ff6b2c1f 0%, transparent 60%);
  border-top: 1px solid #ffffff12;
  border-bottom: 1px solid #ffffff12;
}
.main-create-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.main-create-kicker {
  margin: 0;
  font-size: 17px;
  color: var(--text, #eceef2);
}
.main-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a4c 0%, #ff6b2c 55%, #e5541a 100%);
  color: #120600;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff80, 0 4px 0 #a33a0c, 0 14px 30px #ff6b2c4d;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.main-create-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #ffffff80, 0 6px 0 #a33a0c, 0 18px 34px #ff6b2c5c;
}
.main-create-btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 4px #0005, 0 1px 0 #a33a0c;
}
.main-create-btn:focus-visible,
.main-cbtn:focus-visible,
.main-sicon:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- 3D contact buttons (in the template's own contact section) */
/* the plain e-mail/phone/social text links are replaced by the buttons (no duplicate actions) */
.contact-info:has(> .main-contact-actions) > a.contact-link,
.contact-info:has(> .main-contact-actions) > .socials {
  display: none;
}
.main-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}
.main-cbtns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.main-cbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  background: linear-gradient(180deg, #1c1f27 0%, #12141a 100%);
  color: var(--text, #eceef2);
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 4px 0 #050608, 0 12px 24px #0007;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}
.main-cbtn:hover {
  transform: translateY(-2px);
  border-color: #ffffff38;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 6px 0 #050608, 0 16px 28px #0008;
}
.main-cbtn:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 4px #0008, 0 1px 0 #050608;
}
.main-cbtn-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff59, 0 2px 0 #0006;
}
.main-cbtn-icon svg {
  width: 22px;
  height: 22px;
}
.main-cbtn-wa .main-cbtn-icon {
  background: linear-gradient(180deg, #2fd46b, #16a34a);
}
.main-cbtn-mail .main-cbtn-icon {
  background: linear-gradient(180deg, #4a80ff, #1b4fe0);
}
.main-cbtn-phone .main-cbtn-icon {
  background: linear-gradient(180deg, #ff8a4c, #e5541a);
}
.main-cbtn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.main-cbtn-text b {
  font-size: 15px;
}
.main-cbtn-text small {
  overflow: hidden;
  font-size: 13px;
  color: var(--muted, #a0a4ad);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-sicons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.main-sicon {
  --s1: #3a4252;
  --s2: #232833;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--s1), var(--s2));
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff59, 0 3px 0 #0008, 0 8px 16px #0006;
  transition: transform 0.15s ease;
}
.main-sicon:hover {
  transform: translateY(-2px);
}
.main-sicon:active {
  transform: translateY(2px);
}
.main-sicon svg {
  width: 22px;
  height: 22px;
}
.main-sicon-facebook { --s1: #4b8bff; --s2: #1659d6; }
.main-sicon-instagram { --s1: #f85aa0; --s2: #b8256a; }
.main-sicon-linkedin { --s1: #2e8fd8; --s2: #0a5ea8; }
.main-sicon-youtube { --s1: #ff4b4b; --s2: #c80f0f; }
.main-sicon-x { --s1: #3b3b3b; --s2: #0b0b0b; }
.main-sicon-telegram { --s1: #45b6f0; --s2: #1a86c7; }
.main-sicon-tiktok { --s1: #3b3b3b; --s2: #0b0b0b; }
.main-sicon-whatsapp { --s1: #2fd46b; --s2: #16a34a; }

/* ---------------------------------------------------------------- main website AI launcher container */
.main-floating {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.main-floating > * {
  pointer-events: auto;
}
body.menu-open .main-floating {
  visibility: hidden;
}
@media (max-width: 480px) {
  .main-floating .client-float-chat.aiae-launcher {
    --aiae-launcher-w: 168px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-create-btn,
  .main-cbtn,
  .main-sicon {
    transition: none;
  }
}

/* ================================================================ "Create Your Website" page */
.cw-body {
  margin: 0;
  min-height: 100vh;
  background: #0b0c10;
  color: #eceef2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  line-height: 1.5;
}
.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #ffffff14;
}
.cw-brand {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.cw-back-home {
  color: #c9cdd6;
  font-size: 14px;
  text-decoration: none;
}
.cw-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}
.cw-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.15;
}
.cw-lead {
  margin: 0 0 18px;
  color: #b9bdc7;
  max-width: 720px;
}
.cw-steps {
  display: flex;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: cw;
}
.cw-steps li {
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 10px;
  background: #16181f;
  color: #8f94a0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  counter-increment: cw;
}
.cw-steps li::before {
  content: counter(cw) ". ";
}
.cw-steps li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-btn-big {
  min-height: 52px;
  font-size: 16px;
}
.cw-create-row .cw-btn {
  flex: 1 1 220px;
  text-align: center;
  text-decoration: none;
}
.cw-steps li.current {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  box-shadow: 0 3px 10px #4f46e566;
}
.cw-steps li.done {
  background: #1f3a2a;
  color: #9ff0bf;
}
.cw-steps li.done::before {
  content: "✓ ";
}
.cw-h2 {
  margin: 0 0 14px;
  font-size: 21px;
  outline: none;
}
.cw-muted {
  color: #a0a4ad;
}
.cw-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.cw-cats {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cw-tpls {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.cw-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid #ffffff1c;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1d25, #121419);
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 #ffffff14, 0 4px 0 #050608, 0 10px 22px #0006;
}
button.cw-card {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
button.cw-card:hover {
  transform: translateY(-2px);
  border-color: #8b7cf688;
}
.cw-card.selected {
  border: 2px solid #8b7cf6;
  box-shadow: 0 0 0 3px #8b7cf633, inset 0 1px 0 #ffffff14, 0 10px 22px #0006;
}
.cw-cat-name {
  font-size: 17px;
  font-weight: 800;
}
.cw-cat-desc,
.cw-tpl-desc,
.cw-tpl-cat {
  margin: 0;
  color: #a7abb5;
  font-size: 14px;
}
.cw-cat-count {
  margin-top: auto;
  color: #ffb38c;
  font-size: 13px;
  font-weight: 700;
}
.cw-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #0f1116;
}
.cw-thumb-empty {
  display: grid;
  place-items: center;
  color: #6b7080;
}
.cw-tpl-name {
  margin: 4px 0 0;
  font-size: 17px;
}
.cw-row,
.cw-nav,
.cw-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cw-nav {
  justify-content: space-between;
  margin-top: 18px;
}
.cw-toggle {
  margin-bottom: 12px;
}
.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.cw-btn:active {
  transform: translateY(2px);
}
.cw-btn:focus-visible,
.cw-card:focus-visible,
.cw-field input:focus-visible,
.cw-field textarea:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}
.cw-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  box-shadow: inset 0 1px 0 #ffffff40, 0 3px 0 #312e81, 0 8px 18px #4f46e540;
}
.cw-btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}
.cw-btn-primary:disabled {
  filter: grayscale(0.6);
  cursor: wait;
}
.cw-btn-ghost {
  border-color: #ffffff2e;
  background: #191c23;
  color: #eceef2;
  box-shadow: 0 3px 0 #050608;
}
.cw-btn-ghost.active {
  border-color: #8b7cf6;
  color: #c7d2fe;
}
.cw-btn-wa {
  background: linear-gradient(180deg, #2fd46b, #16a34a);
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff59, 0 3px 0 #0f7a36;
}
.cw-btn-mail {
  background: linear-gradient(180deg, #4a80ff, #1b4fe0);
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff59, 0 3px 0 #1035a6;
}
.cw-frame-wrap {
  margin: 0 auto;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  transition: width 0.2s ease;
}
.cw-frame-wrap.mobile {
  width: min(390px, 100%);
}
.cw-frame-wrap.desktop {
  width: 100%;
}
.cw-frame {
  display: block;
  width: 100%;
  height: min(820px, 80vh);
  border: 0;
  background: #0b0c10;
}
.cw-summary {
  padding: 12px 14px;
  border-radius: 12px;
  background: #16181f;
}
.cw-summary p {
  margin: 2px 0;
  font-weight: 600;
}
.cw-note {
  padding: 10px 14px;
  border-left: 3px solid #ffb020;
  background: #1d1a12;
  color: #f1e3c2;
}
.cw-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 14px 0;
}
.cw-field {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
.cw-field input,
.cw-field textarea {
  padding: 11px 12px;
  border: 1.5px solid #3a3f4c;
  border-radius: 10px;
  background: #12141a;
  color: #fff;
  font: inherit;
  font-weight: 400;
}
.cw-field input::placeholder,
.cw-field textarea::placeholder {
  color: #7d8291;
}
.cw-field [aria-invalid="true"] {
  border-color: #ff5d5d;
}
.cw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.cw-status.ok {
  color: #8ff0b4;
}
.cw-status.error {
  color: #ff9a9a;
}
@media (max-width: 520px) {
  /* number above the label: all four steps stay readable on 320–400 px phones */
  .cw-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11.5px;
    padding: 6px 2px;
    line-height: 1.25;
  }
  .cw-steps li::before {
    content: counter(cw);
    font-size: 13px;
  }
  .cw-steps li span {
    max-width: 100%;
  }
  .cw-nav .cw-btn,
  .cw-row .cw-btn {
    flex: 1 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw-btn,
  button.cw-card,
  .cw-frame-wrap {
    transition: none;
  }
}
