@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* ===================================================== */
/* NIFTY FICHA — minimal white look (high specificity)   */
/* ===================================================== */
#nifty-wrap, #nifty-wrap *, #nifty-wrap *::before, #nifty-wrap *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  float: none !important;
}

#nifty-wrap {
  --black:   #0d0d0d;
  --white:   #fafafa;
  --v:       #6c4de6;
  --v-light: #ede9fc;
  --v-mid:   #9b7ff0;
  --gray:    #f5f5f5;
  --border:  #e8e8e8;
  --text:    #1a1a1a;
  --muted:   #888;
  --success: #1a9e6e;

  font-family: 'Roboto', -apple-system, sans-serif !important;
  background: var(--white) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6 !important;
  display: block !important;
}

/* ── Container ── */
#nifty-wrap .nf-container {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 3rem 1.5rem 5rem !important;
  background: transparent !important;
}

/* ── Header / brand ── */
#nifty-wrap .nf-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 2.5rem !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}
#nifty-wrap .nf-logo-mark {
  width: 36px !important; height: 36px !important;
  background: var(--black) !important;
  border-radius: 8px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  flex-shrink: 0 !important;
}
#nifty-wrap .nf-logo-mark span { color: #fff !important; font-weight: 700 !important; font-size: 11px !important; letter-spacing: -1px !important; }
#nifty-wrap .nf-brand-name { font-size: 17px !important; font-weight: 700 !important; letter-spacing: -.5px !important; color: var(--black) !important; line-height: 1.2 !important; }
#nifty-wrap .nf-brand-sub  { font-size: 11px !important; color: var(--muted) !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; margin-top: 2px !important; }
#nifty-wrap .nf-progress-pill {
  margin-left: auto !important;
  font-size: 12px !important; color: var(--muted) !important; font-weight: 400 !important;
}
#nifty-wrap .nf-progress-pill span { color: var(--v) !important; font-weight: 700 !important; }

/* ── Progress bar ── */
#nifty-wrap .nf-progress-track {
  height: 3px !important; background: var(--v-light) !important;
  border-radius: 2px !important; margin-bottom: 2.5rem !important; overflow: hidden !important;
}
#nifty-wrap .nf-progress-fill {
  height: 100% !important; background: var(--v) !important;
  border-radius: 2px !important; width: 0%;
  transition: width .4s ease !important;
}

/* ── Hero ── */
#nifty-wrap .nf-hero {
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 2rem !important;
  margin-bottom: 2.5rem !important;
}
#nifty-wrap .nf-hero h1 {
  font-size: 30px !important; font-weight: 300 !important;
  letter-spacing: -.5px !important; color: var(--black) !important;
  line-height: 1.3 !important; margin: 0 !important;
}
#nifty-wrap .nf-hero h1 em { font-style: normal !important; font-weight: 700 !important; }
#nifty-wrap .nf-hero p { font-size: 14px !important; color: var(--muted) !important; margin-top: 10px !important; line-height: 1.7 !important; max-width: 540px !important; }

/* ── Notice ── */
#nifty-wrap .nf-notice {
  background: var(--v-light) !important;
  border: 1px solid #d4c9f8 !important;
  border-radius: 8px !important;
  padding: 13px 16px !important;
  font-size: 13px !important; color: #4a32a8 !important;
  margin-bottom: 2rem !important; line-height: 1.5 !important;
}

/* ── Sections (separated by lines, not cards) ── */
#nifty-wrap .nf-section {
  margin-bottom: 2.8rem !important;
  padding-bottom: 2.8rem !important;
  border-bottom: 1px solid var(--border) !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#nifty-wrap .nf-section:last-of-type { border-bottom: none !important; }

#nifty-wrap .nf-section-head {
  display: flex !important; align-items: flex-start !important; gap: 12px !important;
  margin-bottom: 1.6rem !important;
}
#nifty-wrap .nf-step {
  width: 24px !important; height: 24px !important; flex-shrink: 0 !important;
  background: var(--black) !important; color: #fff !important;
  border-radius: 50% !important; border: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 11px !important; font-weight: 700 !important;
  margin-top: 1px !important;
}
#nifty-wrap .nf-section-head h2 {
  font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: 1.8px !important; text-transform: uppercase !important;
  color: var(--black) !important; margin: 0 0 4px !important; line-height: 1.4 !important;
}
#nifty-wrap .nf-section-head p { font-size: 12px !important; color: var(--muted) !important; font-weight: 400 !important; line-height: 1.5 !important; margin: 0 !important; }

/* ── Grid ── */
#nifty-wrap .nf-grid   { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
#nifty-wrap .nf-grid-3 { grid-template-columns: 1fr 1fr 1fr !important; }
#nifty-wrap .nf-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr !important; }
#nifty-wrap .nf-full   { grid-column: 1 / -1 !important; }
@media (max-width: 600px) {
  #nifty-wrap .nf-grid, #nifty-wrap .nf-grid-3, #nifty-wrap .nf-grid-4 { grid-template-columns: 1fr !important; gap: 16px !important; }
  #nifty-wrap .nf-full { grid-column: auto !important; }
  #nifty-wrap .nf-hero h1 { font-size: 24px !important; }
  #nifty-wrap .nf-container { padding: 2rem 1.2rem 4rem !important; }
}

/* ── Fields ── */
#nifty-wrap .nf-field { display: flex !important; flex-direction: column !important; gap: 7px !important; }
#nifty-wrap .nf-field label {
  font-size: 11px !important; font-weight: 500 !important;
  color: var(--muted) !important;
  letter-spacing: .5px !important; text-transform: uppercase !important;
  display: flex !important; align-items: center !important; gap: 4px !important;
  margin: 0 !important;
}
#nifty-wrap .nf-req { color: var(--v) !important; font-weight: 700 !important; }

#nifty-wrap .nf-field input,
#nifty-wrap .nf-field select,
#nifty-wrap .nf-field textarea {
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important; font-weight: 400 !important;
  color: var(--text) !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 7px !important;
  padding: 13px 15px !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s !important;
  width: 100% !important;
  height: auto !important;
  line-height: 1.4 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  max-width: none !important;
}
#nifty-wrap .nf-field input::placeholder,
#nifty-wrap .nf-field textarea::placeholder { color: #bbb !important; }
#nifty-wrap .nf-field input:focus,
#nifty-wrap .nf-field select:focus,
#nifty-wrap .nf-field textarea:focus {
  border-color: var(--v) !important;
  box-shadow: 0 0 0 3px rgba(108,77,230,.1) !important;
  background: #fff !important;
}
#nifty-wrap .nf-field textarea { resize: vertical !important; min-height: 90px !important; line-height: 1.6 !important; }
#nifty-wrap .nf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important;
  padding-right: 40px !important; cursor: pointer !important;
}
#nifty-wrap .nf-field select option { background: #fff !important; color: var(--text) !important; }

/* ── Input with prefix ── */
#nifty-wrap .nf-input-wrap { position: relative !important; display: flex !important; align-items: center !important; }
#nifty-wrap .nf-prefix {
  position: absolute !important; left: 15px !important;
  font-size: 13px !important; font-weight: 500 !important; color: var(--muted) !important;
  pointer-events: none !important; user-select: none !important; z-index: 1 !important;
}
#nifty-wrap .nf-input-wrap input {
  padding-left: 40px !important; width: 100% !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important; font-weight: 400 !important; color: var(--text) !important;
  background: #fff !important;
  border: 1px solid var(--border) !important; border-radius: 7px !important;
  padding-top: 13px !important; padding-bottom: 13px !important; padding-right: 15px !important;
  outline: none !important; -webkit-appearance: none !important; appearance: none !important;
  transition: border-color .15s, box-shadow .15s !important;
  height: auto !important; box-shadow: none !important; margin: 0 !important;
}
#nifty-wrap .nf-input-wrap input:focus {
  border-color: var(--v) !important;
  box-shadow: 0 0 0 3px rgba(108,77,230,.1) !important;
}
#nifty-wrap .nf-input-wrap input::placeholder { color: #bbb !important; }

/* ── Logo upload ── */
#nifty-wrap .nf-logo-upload-area {
  border: 1.5px dashed var(--border) !important;
  border-radius: 10px !important;
  padding: 2.5rem 2rem !important;
  text-align: center !important; cursor: pointer !important;
  background: #fff !important;
  transition: border-color .2s, background .2s !important;
  min-height: 160px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
#nifty-wrap .nf-logo-upload-area:hover { border-color: var(--v-mid) !important; background: var(--v-light) !important; }
#nifty-wrap .nf-logo-upload-area.dragover { border-color: var(--v) !important; background: var(--v-light) !important; }
#nifty-wrap .nf-logo-placeholder .nf-logo-icon { margin-bottom: 6px !important; }
#nifty-wrap .nf-logo-placeholder p { font-size: 14px !important; color: var(--text) !important; line-height: 1.6 !important; margin: 0 !important; }
#nifty-wrap .nf-logo-placeholder p strong { color: var(--v) !important; font-weight: 700 !important; }
#nifty-wrap .nf-logo-placeholder span { font-size: 12px !important; color: var(--muted) !important; margin-top: 8px !important; display: block !important; }
#nifty-wrap .nf-logo-preview { position: relative !important; display: inline-flex !important; }
#nifty-wrap .nf-logo-preview img { max-height: 100px !important; max-width: 280px !important; object-fit: contain !important; border-radius: 6px !important; }
#nifty-wrap .nf-logo-remove {
  position: absolute !important; top: -8px !important; right: -8px !important;
  width: 24px !important; height: 24px !important;
  background: var(--black) !important; color: #fff !important;
  border: none !important; border-radius: 50% !important;
  font-size: 11px !important; font-weight: 700 !important; cursor: pointer !important;
  display: grid !important; place-items: center !important;
}

/* ── Security badge ── */
#nifty-wrap .nf-security-badge {
  display: flex !important; align-items: flex-start !important; gap: 8px !important;
  background: #fff8e0 !important;
  border: 1px solid #ffe0a0 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-size: 12px !important; color: #8a6500 !important;
  margin-bottom: 1.4rem !important; line-height: 1.5 !important;
}

/* ── Services chips ── */
#nifty-wrap .nf-services { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
@media (max-width: 600px) { #nifty-wrap .nf-services { grid-template-columns: 1fr 1fr !important; } }
#nifty-wrap .nf-svc-chip {
  display: flex !important; align-items: center !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  cursor: pointer !important;
  transition: all .15s !important;
  user-select: none !important;
  font-size: 12px !important; font-weight: 500 !important;
  color: var(--text) !important;
  background: #fff !important;
  margin: 0 !important;
}
#nifty-wrap .nf-svc-chip input { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; }
#nifty-wrap .nf-svc-chip:hover { border-color: var(--v-mid) !important; background: var(--v-light) !important; }
#nifty-wrap .nf-svc-chip.checked {
  border-color: var(--v) !important;
  background: var(--v-light) !important;
  color: var(--v) !important;
  font-weight: 600 !important;
}
#nifty-wrap .nf-svc-chip.checked::before { content: '\2713\00a0\00a0' !important; font-size: 11px !important; }

/* ── Divider label ── */
#nifty-wrap .nf-divider-label {
  display: flex !important; align-items: center !important; gap: 14px !important;
  margin: 2.5rem 0 1.8rem !important;
}
#nifty-wrap .nf-divider-label::before,
#nifty-wrap .nf-divider-label::after { content: '' !important; flex: 1 !important; height: 1px !important; background: var(--border) !important; }
#nifty-wrap .nf-divider-label span {
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: 1px !important; text-transform: uppercase !important;
  color: var(--v) !important;
  background: var(--v-light) !important;
  padding: 4px 12px !important; border-radius: 20px !important;
  white-space: nowrap !important; border: none !important;
}

/* ── Policy links ── */
#nifty-wrap .nf-policy-row { display: flex !important; gap: 16px !important; flex-wrap: wrap !important; margin-top: 1.4rem !important; }
#nifty-wrap .nf-policy-link {
  display: inline-flex !important; align-items: center !important; gap: 5px !important;
  font-size: 11px !important; color: var(--v) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--v-mid) !important;
  padding-bottom: 1px !important;
  transition: color .15s, border-color .15s !important;
}
#nifty-wrap .nf-policy-link:hover { color: var(--black) !important; border-color: var(--black) !important; }

/* ── Actions (buttons not full width) ── */
#nifty-wrap .nf-actions {
  display: flex !important; gap: 10px !important;
  margin-top: 2.5rem !important; padding-top: 2rem !important;
  border-top: 1px solid var(--border) !important;
  flex-wrap: wrap !important;
}
#nifty-wrap .nf-action-btn {
  border: none !important; border-radius: 8px !important;
  padding: 14px 26px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s, color .15s !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 7px !important;
  width: auto !important; height: auto !important; text-transform: none !important;
}
#nifty-wrap .nf-btn-save { background: var(--black) !important; color: #fff !important; }
#nifty-wrap .nf-btn-save:hover { background: #333 !important; }
#nifty-wrap .nf-btn-save:active { background: #000 !important; }
#nifty-wrap .nf-btn-save:disabled { background: #bbb !important; cursor: not-allowed !important; }
#nifty-wrap .nf-btn-send { background: var(--v) !important; color: #fff !important; }
#nifty-wrap .nf-btn-send:hover { background: #5a3dd0 !important; }
#nifty-wrap .nf-btn-send:disabled { background: #b3a3f0 !important; cursor: not-allowed !important; }
#nifty-wrap .nf-btn-copy {
  background: #fff !important; color: var(--black) !important;
  border: 1px solid var(--border) !important;
}
#nifty-wrap .nf-btn-copy:hover { border-color: var(--v) !important; color: var(--v) !important; }

/* ── Toast ── */
#nfToast {
  position: fixed !important; top: 20px !important; right: 20px !important;
  background: #0d0d0d !important; color: #fff !important;
  border-radius: 8px !important; padding: 13px 18px !important;
  font-family: 'Roboto', sans-serif !important; font-size: 13px !important; font-weight: 500 !important;
  opacity: 0; transform: translateY(-8px);
  transition: all .3s !important;
  pointer-events: none !important; z-index: 99999 !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.18) !important;
}
#nfToast.show { opacity: 1 !important; transform: translateY(0) !important; }
#nfToast.success { background: #1a9e6e !important; }
#nfToast.error { background: #c0392b !important; }

/* ── Hide leftover deco ── */
#nifty-wrap .nf-bg-deco { display: none !important; }
