/* ListIt Free Seller Tools — Shared Theme-Adaptive Styles */

.tools-main {
  padding-top: 128px;
  padding-bottom: 64px;
}

.tools-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tools-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.tools-breadcrumb a:hover {
  color: var(--accent);
}

.tool-hero {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}
.tool-hero h1 {
  margin-bottom: 14px;
  line-height: 1.2;
}
.tool-hero .subhead {
  margin: 0 auto;
}

.tool-pills-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.tool-pill:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-1px);
}
.tool-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text);
}

/* Cards & Grid Layouts */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.tool-hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.tool-hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
}
.tool-hub-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.tool-hub-card h2 {
  font-size: 1.32rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}
.tool-hub-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.tool-hub-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tool-hub-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}
.tool-hub-cta {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Tool Shell */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}
.tool-grid--wide {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.tool-panel-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Form Controls */
.t-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.t-field-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 600px) {
  .t-field-grid,
  .t-field-grid-3 {
    grid-template-columns: 1fr;
  }
}

.t-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.t-field:last-child {
  margin-bottom: 0;
}
.t-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.t-hint {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.45;
}

.t-input,
.t-select,
.t-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  padding: 10px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.t-input:focus,
.t-select:focus,
.t-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}
.t-textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.t-input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.t-input-prefix {
  position: absolute;
  left: 12px;
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.92rem;
  pointer-events: none;
}
.t-input-prefix-wrap .t-input {
  padding-left: 34px;
}
.t-input-suffix {
  position: absolute;
  right: 12px;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.88rem;
  pointer-events: none;
}
.t-input-suffix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.t-input-suffix-wrap .t-input {
  padding-right: 34px;
}

/* Segmented Controls */
.t-segmented {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}
.t-seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.t-seg-btn:hover {
  color: var(--text);
}
.t-seg-btn.active {
  background: var(--primary);
  color: var(--btn-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Checkboxes / Toggles */
.t-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
}
.t-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.t-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t-toggle-text strong {
  font-size: 0.86rem;
  color: var(--text);
}
.t-toggle-text span {
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* Buttons */
.t-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}
.t-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.t-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text);
}
.t-btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.t-btn-green {
  background: var(--green);
  border-color: var(--green);
  color: #09120b;
}
.t-btn-green:hover {
  filter: brightness(1.08);
}
.t-btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
}

/* KPI Stat Cards */
.t-kpi-hero {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.t-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.t-kpi-value {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--green);
  letter-spacing: -0.02em;
}
.t-kpi-value.negative {
  color: #ef4444;
}
.t-kpi-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.t-kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.t-kpi-mini {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.t-kpi-mini strong {
  display: block;
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 2px;
}
.t-kpi-mini span {
  font-size: 0.74rem;
  color: var(--text-faint);
}

/* Breakdown Bar & Rows */
.t-bar-wrap {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.t-bar-seg {
  height: 100%;
  transition: width 0.25s ease;
}

.t-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.t-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.t-row:last-child {
  border-bottom: none;
}
.t-row strong {
  color: var(--text);
  font-weight: 700;
}
.t-row.t-row-total {
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding-top: 12px;
  margin-top: 4px;
  font-size: 0.98rem;
}

/* Badges & Chips */
.t-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.t-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.t-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* Checklists / Audit Items */
.t-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.45;
}
.t-check-item.ok {
  border-color: rgba(16, 185, 129, 0.35);
}
.t-check-item.warn {
  border-color: rgba(245, 158, 11, 0.45);
}
.t-check-item.bad {
  border-color: rgba(239, 68, 68, 0.45);
}
.t-check-icon {
  font-size: 1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

/* Extension Conversion Banner inside tools */
.tool-ext-cta {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(16, 185, 129, 0.12));
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tool-ext-cta-copy {
  flex: 1 1 360px;
}
.tool-ext-cta-copy h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}
.tool-ext-cta-copy p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.tool-ext-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Data Table (Fitment Builder) */
.t-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  max-height: 440px;
  overflow-y: auto;
}
.t-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.t-table th,
.t-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.t-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.t-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.07);
}
.t-row-del {
  background: transparent;
  border: 1px solid var(--border);
  color: #ef4444;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  cursor: pointer;
}
.t-row-del:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: #ef4444;
}

/* SEO Content & FAQ below tool */
.tool-seo-section {
  margin-top: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.tool-seo-section h2 {
  font-size: 1.55rem;
  margin-bottom: 14px;
  color: var(--text);
}
.tool-seo-section h3 {
  font-size: 1.12rem;
  margin: 22px 0 8px;
  color: var(--text);
}
.tool-seo-section p,
.tool-seo-section li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.96rem;
}
.tool-seo-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Status Toast */
.t-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--green);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.t-toast.show {
  opacity: 1;
  transform: translateY(0);
}
