@charset "UTF-8";


/* Ensure anything with the hidden attribute is actually hidden */
[hidden] {
  display: none !important;
}

/* Your .error-msg sets display:block globally; respect [hidden] */
.error-msg[hidden] {
  display: none !important;
}

/* Wrapper */
.ambx__hero {
  background: linear-gradient(135deg, rgba(83, 196, 202, 0.12), rgba(179, 137, 187, 0.12));
  border: 1px solid rgba(58, 60, 65, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 22px 20px;
}
.ambx__hero-inner h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em;
}
.ambx__hero-inner p {
  margin: 0;
  color: #3a3c41;
  text-align: center;
}
.ambx__foot {
  margin-top: 18px;
  color: #7b7d85;
  text-align: center;
}

/* Badges, Cards */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #53c4ca, #b389bb);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(83, 196, 202, 0.25);
}

.card {
  background: #fff;
  border: 1px solid rgba(58, 60, 65, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin-top: 14px;
}

.step__head {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.step__head .muted {
  color: #7b7d85;
  margin: 0;
}

/* Step lock visual */
.step.is-locked {
  position: relative;
  pointer-events: none;
}
.step.is-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 4;
}
.step.is-locked .lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
}
.step.is-locked .lock-overlay__inner {
  display: grid;
  gap: 6px;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(58, 60, 65, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.step.is-locked .lock-overlay__inner .lock-ico {
  font-size: 22px;
}
.step.is-locked > *:not(.lock-overlay) {
  filter: blur(2px) saturate(0.9);
}

.step.is-unlocked .lock-overlay {
  display: none;
}

/* Notes */
.note {
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.note--info {
  background: rgba(83, 196, 202, 0.08);
  border: 1px solid rgba(83, 196, 202, 0.2);
}
.note--warn {
  background: rgba(255, 180, 0, 0.12);
  border: 1px solid rgba(255, 180, 0, 0.35);
}
.note--err {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

/* Inputs */
label {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0px;
}

input[type=text],
select {
  border: 1px solid rgba(58, 60, 65, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  width: 100%;
  height: unset;
  margin: 0;
}
input.handle-input {
  width: 200px;
}
button.check-btn {
  border:none;
  padding: 14px 20px 14px 20px;
}
.status-msg:empty {
  display: none;
}
/* Status with inline spinner */
.status-msg {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Small spinner */
.status-msg .spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: #00a4b4; /* or your brand accent */
  animation: amb-spin 0.6s linear infinite;
}

@keyframes amb-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Only for select boxes */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='%233a3c41' height='32' viewBox='0 0 24 24' width='32' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 14px center;
  background-size: 26px;
  padding-right: 52px;
  cursor: pointer;
}
input[type=text]:focus,
select:focus {
  border-color: #53c4ca;
  box-shadow: 0 0 0 4px rgba(83, 196, 202, 0.15);
}
input[type=text].invalid,
select.invalid {
  border-color: #d84a4a;
  box-shadow: 0 0 0 4px rgba(216, 74, 74, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: flex-start;
}
@media (max-width: 680px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: grid;
  gap: 6px;
}

/* Status message for handle fetch */
.status-msg {
  font-size: 0.85rem;
  color: #3a3c41;
  margin-top: -2px;
  min-height: 18px;
}

/* Status message error */
.status-msg.error {
  color: #d84a4a;
}

/* Inline loader for handle lookups */
.handle-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(58, 60, 65, 0.2);
  border-top-color: #53c4ca;
  animation: spinHandle 0.8s linear infinite;
  margin-left: 6px;
}

@keyframes spinHandle {
  to {
    transform: rotate(360deg);
  }
}

/* Buttons */
.btn {
  border: 1px solid rgba(58, 60, 65, 0.16);
  background: #fff;
  color: #3a3c41;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #53c4ca, #b389bb);
  color: #fff;
  box-shadow: 0 10px 26px rgba(83, 196, 202, 0.26);
}
.btn--primary:hover {
  box-shadow: 0 14px 30px rgba(179, 137, 187, 0.26);
}
.btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(58, 60, 65, 0.04);
}
.btn--calculate {
  margin-left: auto;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.actions--end {
  justify-content: flex-end;
}

/* Chips / Yes-No */
.chip {
  border: 1px solid rgba(58, 60, 65, 0.2);
  background: #fff!important;
  color: #3a3c41!important;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  width: 50%;
}
.chip:hover,
.chip.is-on {
  background: #53c4ca!important;
  color: #fff!important;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(83, 196, 202, 0.2);
}

.yesno {
  display: flex;
  gap: 10px;
}

/* Input cards */
.input-card {
  margin-top: 12px;
  border: 1px solid rgba(58, 60, 65, 0.1);
  border-radius: 12px;
  background: #f0f5f7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 14px;
}
.input-card__title {
  font-weight: 700;
  margin-bottom: 10px;
}

/* Platform icon grid */
.icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 720px) {
  .icon-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .icon-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-btn {
  border: 1px solid rgba(58, 60, 65, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #fff!important;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.06s ease, border 0.2s ease;
}
.icon-btn:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.icon-btn.is-on {
  box-shadow: 0 0 0 3px rgba(83, 196, 202, 0.25);
  border-color: #53c4ca;
}
.icon-btn svg {
  display: block;
}

/* Additional inputs list */
.addl-inputs {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.addl-card {
  background: #fff;
  border: 1px solid rgba(58, 60, 65, 0.1);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 12px;
}
.addl-card .addl-card__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Step 2 – assets */
.assets {
  display: grid;
  gap: 12px;
}

.asset {
  border: 1px solid rgba(58, 60, 65, 0.1);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.asset .asset__top {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr auto auto;
  padding: 14px;
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.08), rgba(83, 196, 202, 0.08));
}
.asset .asset__top label {
  display: block;
}
@media (max-width: 940px) {
  .asset .asset__top {
    grid-template-columns: 1fr;
  }
}
.asset .asset__desc {
  color: #7b7d85;
  font-size: 0.93rem;
  line-height: 1.35;
  margin-top: 6px;
}
.asset .asset__plats {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.asset .asset__plats .label {
  font-size: 0.88rem;
  color: #7b7d85;
  font-weight: 700;
}
.asset .asset__plats .icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.asset .qty {
  width: 140px;
}
.asset .btn-remove {
  align-self: center;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #d84a4a;
  color: #fff;
  font-weight: 700;
  padding: 0;
}
.asset .btn-remove:hover {
  background: #fff;
  color: #d84a4a;
  border: 2px solid #d84a4a;
}

/* Campaign box */
.campaign {
  margin-top: 14px;
}
.campaign .campaign__box {
  border: 2px dashed rgba(83, 196, 202, 0.35);
  border-radius: 12px;
  background: rgba(83, 196, 202, 0.06);
  padding: 14px;
  display: grid;
  gap: 6px;
}
.campaign .campaign__toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.campaign .campaign__toggle input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}
.campaign .campaign__label {
  font-weight: 700;
  display: inline-grid;
  gap: 2px;
}
.campaign .campaign__sub {
  font-weight: 600;
  color: #7b7d85;
}
.campaign .campaign__note {
  color: #7b7d85;
  font-size: 0.9rem;
}

/* Bonuses */
.bonuses {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(58, 60, 65, 0.2);
  border-radius: 12px;
  background: rgba(179, 137, 187, 0.05);
  display: grid;
  gap: 10px;
}
.bonuses__hd {
  font-weight: 700;
}
.bonuses__list {
  display: grid;
  gap: 10px;
}
.bonuses .bonus-line {
  background: #fff;
  border: 1px solid rgba(58, 60, 65, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.bonuses .bonus-line input {
  width: 18px;
  height: 18px;
}
.bonuses .bonus-line .bl__label {
  font-weight: 700;
}
.bonuses .bonus-line .bl__fee {
  margin-left: auto;
  font-weight: 700;
}

/* Results */
.step--results[hidden] {
  display: none;
}

.results .meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 16px;
  border: 1px solid rgba(58, 60, 65, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: #f0f5f7;
  margin-bottom: 10px;
}
.results .meta .k {
  font-weight: 700;
}
.results .calc-loader {
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed rgba(58, 60, 65, 0.16);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.08), rgba(83, 196, 202, 0.08));
}
.results .spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 6px solid rgba(58, 60, 65, 0.12);
  border-top-color: #53c4ca;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.results .line {
  border: 1px dashed rgba(58, 60, 65, 0.16);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.results .line__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.results .line__meta {
  color: #7b7d85;
  font-size: 0.9rem;
}
.results .line__fee {
  font-weight: 700;
}
.results .line .icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.results .line .breakdown {
  font-size: 0.9rem;
  color: #7b7d85;
}
.results .total {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px;
  padding: 16px 14px;
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.18), rgba(83, 196, 202, 0.18));
  border: 1px solid rgba(58, 60, 65, 0.08);
}
.results .total .label {
  font-weight: 700;
}
.results .total .value {
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 28px);
}
.results .total--bonus {
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.22), rgba(83, 196, 202, 0.22));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.results .total--final {
  background: linear-gradient(135deg, rgba(179, 137, 187, 0.28), rgba(83, 196, 202, 0.28));
}

/* extra tweaks */
.error-msg {
  color: #d84a4a;
  font-size: 0.85rem;
  margin-top: -4px;
  display: block;
}

.asset__top {
  grid-template-columns: 2fr 1fr 40px;
  /* ensures remove button small col */
  align-items: start;
}
.asset__top .btn-remove {
  align-self: center;
  justify-self: center;
}

.asset .form-field label {
  display: block;
  margin-bottom: 6px;
}
/* Platform support tags */
.plat-support {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  margin: 2px 4px 2px 0;
  /* background: rgba(58, 60, 65, 0.05); */
  position: relative;
}
.plat-support.is-valid {
  /* border: 1px solid rgba(83, 196, 202, 0.4); */
  /* background: rgba(83, 196, 202, 0.1); */
  opacity: 1;
}
.plat-support.is-valid svg {
    width: 40px;
    height: 40px;
}
.plat-support.is-invalid {
  opacity: 0.4;
  /* border: 1px dashed rgba(216, 74, 74, 0.2);
  background: rgba(216, 74, 74, 0.05); */
}
.plat-support.is-invalid svg {
    width: 30px;
    height: 30px;
}
.plat-support.is-invalid::after {
  /* content: "";
  display: block;
  position: absolute;
  left: 4px;
  top: 4px;
  width: 30px;
  height: 30px;
  pointer-events: none; */
  /* Optional X overlay: */
  /* background: url('data:image/svg+xml;utf8,<svg width="30" height="30" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="2" x2="14" y2="14" stroke="black" stroke-width="4"/><line x1="14" y1="2" x2="2" y2="14" stroke="black" stroke-width="4"/></svg>') center center no-repeat; */
  /* opacity: 0.7; */
}
.platform-support-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.warn-box {
  display: block;
  width: 100%;
  background: #fff4f4;
  border-left: 4px solid #e63946;
  padding: 12px 14px;
  margin-top: 8px;
  margin-bottom: 6px;
  border-radius: 4px;

  font-size: 0.9rem;
  line-height: 1.45;
  color: #7a1f1f;

  animation: warnFade 0.3s ease-out;
}

.warn-box strong {
  color: #b01717;
  font-weight: 600;
}

.success-box {
  display: block;
  width: 100%;
  background: #E9F7EF;
  border-left: 4px solid #0F7B3A;
  padding: 12px 14px;
  margin-top: 8px;
  margin-bottom: 6px;
  border-radius: 4px;

  font-size: 0.9rem;
  line-height: 1.45;
  color: #0F7B3A;

  animation: warnFade 0.3s ease-out;
}

.success-box strong {
  color: #0F7B3A;
  font-weight: 600;
}

@keyframes warnFade {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}