/* Boost - v2.2 desktop center-pane redesign (larger fonts, fills center pane) */
:root {
  --bv2-blush: #fff1f2;
  --bv2-blush-border: #fecdd3;
  --bv2-magenta: #e1147a;
  --bv2-green: #10b981;
}

/* Bottom nav: de-highlight "Services" on the Boost page (not actually clicked).
   Loads only on /boost, so it can never affect the real Services page. */
#app-bottom-nav a[data-nav="services"],
#app-bottom-nav a[data-nav="services"].active,
#app-bottom-nav a[data-nav="services"][aria-selected="true"],
.mobile-bottom-nav a[data-nav="services"],
.mobile-bottom-nav a[data-nav="services"].active,
.mobile-bottom-nav a[data-nav="services"][aria-selected="true"] {
  color: #64748B !important;
  font-weight: 400 !important;
}
.app-sidebar .app-nav a[href*="services"],
.app-sidebar .app-nav a.active[href*="services"] {
  color: var(--secondary) !important;
  background: transparent !important;
  border-color: transparent !important;
}

/* Page head — fills center pane */
.boost-head {
  max-width: 100%;
  margin: 0 0 8px;
}
.boost-head h1 {
  color: var(--text);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.boost-head p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Search box */
.boost-search-box {
  position: relative;
  max-width: 100%;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
}
.boost-search-box .boost-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.boost-search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 14px 42px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.boost-search-box input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(225, 20, 122, 0.1);
}
.boost-search-box input::placeholder {
  color: var(--muted);
}

/* Section title + View All toggle */
.boost-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 0 10px;
}
.boost-section-row > span {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.boost-view-all {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--bv2-magenta);
  padding: 4px 8px;
  letter-spacing: -0.01em;
}

/* Platform selector — 4-col grid fills width */
.social-platform-zone--boost {
  max-width: 100%;
  margin: 0 0 16px;
}
.boost-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.boost-platform-grid .boost-platform-chip:nth-child(n + 9) {
  display: none;
}
.boost-platform-grid.show-all .boost-platform-chip {
  display: flex;
}
.boost-platform-chip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.boost-platform-chip:hover {
  border-color: var(--bv2-blush-border);
  transform: translateY(-1px);
}
.boost-platform-chip.active {
  background: var(--bv2-blush);
  border-color: var(--bv2-magenta);
  box-shadow: 0 4px 12px rgba(225, 20, 122, 0.15);
}
.boost-platform-chip-ring {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.boost-platform-chip-ring img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.boost-platform-chip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
}
.boost-platform-chip.active .boost-platform-chip-label {
  color: var(--bv2-magenta);
}
.boost-platform-chip.is-dim {
  opacity: 0.45;
}

/* Order card — fills center pane */
.boost-panel {
  max-width: 100%;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.boost-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.boost-form-field label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.boost-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.boost-live-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.boost-live-count strong {
  color: var(--pink);
}

.boost-form-field select,
.boost-form-field input[type="url"],
.boost-form-field input[type="number"],
.boost-form-field input[type="text"],
.boost-form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.boost-form-field select:focus,
.boost-form-field input[type="url"]:focus,
.boost-form-field input[type="number"]:focus,
.boost-form-field input[type="text"]:focus,
.boost-form-field textarea:focus {
  border-color: var(--pink);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(225, 20, 122, 0.1);
}
.boost-form-field input::placeholder,
.boost-form-field textarea::placeholder {
  color: var(--muted);
}
.boost-form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.boost-form-field select option {
  background: var(--surface);
  color: var(--text);
}

/* Inputs */
.boost-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.boost-input-wrap input {
  width: 100%;
}

/* Service specs box */
.boost-specs-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.boost-specs-box .spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
}
.boost-specs-box .spec-item .lbl {
  color: var(--secondary);
}
.boost-specs-box .spec-item .val {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}
.boost-specs-box .spec-item .val.green {
  color: var(--bv2-green);
}

/* SABI targeting */
#sabi-fields {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  gap: 12px;
}

/* Calculation card */
.boost-calc-card {
  background: var(--bv2-blush);
  border: 1px solid var(--bv2-blush-border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.boost-calc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.boost-calc-info span {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}
.boost-calc-info strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--bv2-magenta);
  letter-spacing: -0.02em;
}
.boost-refund-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--bv2-green);
  white-space: nowrap;
}

/* Status line */
.boost-form-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin: -8px 0 0;
  min-height: 20px;
}

/* Submit button */
.boost-place-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bv2-magenta);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 20, 122, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.boost-place-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.boost-place-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.boost-place-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bv2-magenta);
  color: #fff;
  box-shadow: none;
}

/* Offline card */
.boost-offline {
  max-width: 100%;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary);
  border-radius: 14px;
  padding: 20px;
  font-size: 15px;
  text-align: center;
}

/* Desktop: no max-width constraints — fills center pane naturally */
@media (min-width: 1024px) {
  .boost-page .wallet-strip {
    display: none !important;
  }
}

/* v1.3: Loading spinner */
.boost-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px 16px; color: var(--bills-slate-400, #94a3b8); font-size: 12px; font-weight: 600;
}
.boost-loading.hidden { display: none; }
