/* ================================================================
   Solo Switch — Add Bill Screen
   Solo Bill DNA: SVG icon grid, provider chips, compact form
   ================================================================ */

/* ── Scan Button (Solo Bill DNA) ─────────────────────────────── */
.scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.scan-btn:active { transform: scale(0.98); border-color: var(--accent); }
.scan-btn .sf-icon { color: var(--accent); }

/* ── Scan Button Hero Variant ──────────────────────────────── */
.scan-btn--hero {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 20px 20px;
  background: var(--accent-soft);
  border-color: rgba(59, 130, 246, 0.25);
  margin-bottom: 24px;
}

.scan-btn--hero:active {
  transform: scale(0.98);
  background: rgba(59, 130, 246, 0.18);
}

.scan-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.scan-btn-text {
  text-align: left;
}

.scan-btn-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.scan-btn-sub {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Category Grid (Solo Bill gf-cat-btn pattern) ───────────── */
.quick-add-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  overflow: hidden;
}

.gf-cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 6px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; cursor: pointer; color: var(--text);
  font-family: var(--font);
  transition: transform var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  aspect-ratio: 1;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.gf-cat-btn:active { transform: scale(0.92); }

.gf-cat-icon { color: var(--accent); }
.gf-cat-icon .sf-icon svg { width: 28px; height: 28px; }
.gf-cat-name { font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.2; }

.gf-cat-dim {
  opacity: 0.55;
  border-style: dashed;
}
.gf-cat-dim:active { opacity: 0.7; }

.gf-cat-other {
  border-style: dashed; border-color: var(--border-light);
}
.gf-cat-other .gf-cat-icon { color: var(--text-dim); }

/* ── Back Button (Solo Bill DNA) ────────────────────────────── */
.add-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-family: var(--font); font-size: var(--text-base); font-weight: 500;
  padding: 0; margin-bottom: 12px;
  -webkit-tap-highlight-color: transparent;
}

/* ── Provider Chips (Solo Bill add-provider-chip pattern) ───── */
.add-section-label {
  font-size: 0.72rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.02em;
}

.add-provider-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.add-provider-chip {
  padding: 8px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; color: var(--text);
  font-family: var(--font); font-size: 0.82rem; font-weight: 500;
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.add-provider-chip.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft);
}

.add-provider-chip:active { transform: scale(0.95); }

/* ── Frequency Chips ────────────────────────────────────────── */
.freq-chip {
  padding: 6px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
  background: none; border: none;
  cursor: pointer; color: var(--text-dim);
  font-family: var(--font);
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.freq-chip.active {
  color: var(--text); font-weight: 600;
  background: var(--bg-input);
}

/* ── Amount Slider (Solo Bill DNA) ───────────────────────────── */
.amount-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.amount-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform var(--duration-fast) var(--ease);
}

.amount-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.amount-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%; border: none;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ── Setting Rows (Solo Bill DNA) ───────────────────────────── */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.setting-row:last-child { border-bottom: none; }

/* ── Scan Action Buttons (in modal) ────────────────────────── */
.scan-action-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.scan-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform var(--duration-fast) var(--ease), border-color var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 100px;
}

.scan-action-btn:active {
  transform: scale(0.94);
  border-color: var(--accent);
}

.scan-action-btn .sf-icon-lg svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

/* Hide "Take Photo" on desktop — no rear camera */
@media (hover: hover) and (pointer: fine) {
  .scan-action-btn--camera { display: none; }
  .scan-action-btns { grid-template-columns: repeat(2, 1fr); }
}

/* ── Edit Frequency Chips (modal variant) ──────────────────── */
.edit-freq-chip {
  padding: 6px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
  background: none; border: none;
  cursor: pointer; color: var(--text-dim);
  font-family: var(--font);
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.edit-freq-chip.active {
  color: var(--text); font-weight: 600;
  background: var(--bg-input);
}

/* ── Slide Animation ────────────────────────────────────────── */
.slide-in { animation: slideIn 0.3s var(--ease); }
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
