/* ============================================================
   InDemand Tools — Tool Components (tc- system)
   Dark Professional Theme
   All styles scoped to .tool-content-wrap
   ============================================================ */

/* ============================================================
   TOOL CONTENT WRAPPER
   ============================================================ */
.tool-content-wrap {
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-WRAP — base flex column container
   ============================================================ */
.tool-content-wrap .tc-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ============================================================
   TC-TWO-COL — two-column grid layout
   ============================================================ */
.tool-content-wrap .tc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .tool-content-wrap .tc-two-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TC-THREE-COL — three-column grid layout
   ============================================================ */
.tool-content-wrap .tc-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .tool-content-wrap .tc-three-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .tool-content-wrap .tc-three-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TC-SECTION — main card/panel container
   ============================================================ */
.tool-content-wrap .tc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.18s ease;
}

.tool-content-wrap .tc-section:hover {
  border-color: var(--border-hover);
}

/* tc-section variants */
.tool-content-wrap .tc-section-flat {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.tool-content-wrap .tc-section-dark {
  background: #0d0d14;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tool-content-wrap .tc-section-elevated {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   TC-SECTION-TITLE — heading inside a section card
   ============================================================ */
.tool-content-wrap .tc-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.tool-content-wrap .tc-section-title .tc-section-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-dim);
  color: var(--accent-bright);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
}

.tool-content-wrap .tc-section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 0.2rem;
  display: block;
}

/* ============================================================
   TC-FIELD — form field wrapper
   ============================================================ */
.tool-content-wrap .tc-field {
  margin-bottom: 1.25rem;
}

.tool-content-wrap .tc-field:last-child {
  margin-bottom: 0;
}

.tool-content-wrap .tc-field-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tool-content-wrap .tc-field-inline:last-child {
  margin-bottom: 0;
}

.tool-content-wrap .tc-field-row {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.tool-content-wrap .tc-field-row:last-child {
  margin-bottom: 0;
}

.tool-content-wrap .tc-field-row .tc-field {
  flex: 1;
  margin-bottom: 0;
}

/* ============================================================
   TC-LABEL — field label
   ============================================================ */
.tool-content-wrap .tc-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'DM Sans', sans-serif;
}

.tool-content-wrap .tc-label-hint {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.4rem;
}

.tool-content-wrap .tc-label-required::after {
  content: ' *';
  color: var(--red);
  font-size: 0.78rem;
}

/* ============================================================
   TC-INPUT, TC-TEXTAREA, TC-SELECT — form controls
   ============================================================ */
.tool-content-wrap .tc-input,
.tool-content-wrap .tc-textarea,
.tool-content-wrap .tc-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.tool-content-wrap .tc-input:focus,
.tool-content-wrap .tc-textarea:focus,
.tool-content-wrap .tc-select:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: var(--surface-3);
}

.tool-content-wrap .tc-input:hover:not(:focus),
.tool-content-wrap .tc-textarea:hover:not(:focus),
.tool-content-wrap .tc-select:hover:not(:focus) {
  border-color: var(--border-hover);
}

.tool-content-wrap .tc-input:disabled,
.tool-content-wrap .tc-textarea:disabled,
.tool-content-wrap .tc-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool-content-wrap .tc-input::placeholder,
.tool-content-wrap .tc-textarea::placeholder {
  color: var(--text-3);
}

.tool-content-wrap .tc-input.error,
.tool-content-wrap .tc-textarea.error,
.tool-content-wrap .tc-select.error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.tool-content-wrap .tc-input.success,
.tool-content-wrap .tc-textarea.success,
.tool-content-wrap .tc-select.success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

/* tc-textarea specifics */
.tool-content-wrap .tc-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.tool-content-wrap .tc-textarea-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
  background: #0d0d14;
  border-color: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.tool-content-wrap .tc-textarea-mono::placeholder {
  color: rgba(196, 181, 253, 0.3);
}

.tool-content-wrap .tc-textarea-mono:focus {
  border-color: rgba(124, 58, 237, 0.55);
  background: #0d0d14;
}

/* tc-select specifics */
.tool-content-wrap .tc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(244,244,248,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.tool-content-wrap .tc-select option {
  background: var(--surface-2);
  color: var(--text);
}

/* tc-input-group — input with prefix/suffix */
.tool-content-wrap .tc-input-group {
  display: flex;
  align-items: stretch;
}

.tool-content-wrap .tc-input-group .tc-input {
  border-radius: 0;
  flex: 1;
}

.tool-content-wrap .tc-input-group .tc-input-prefix,
.tool-content-wrap .tc-input-group .tc-input-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.875rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.tool-content-wrap .tc-input-group .tc-input-prefix {
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.tool-content-wrap .tc-input-group .tc-input-suffix {
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tool-content-wrap .tc-input-group .tc-input:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.tool-content-wrap .tc-input-group .tc-input:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   TC-BTN — primary action button
   ============================================================ */
.tool-content-wrap .tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.tool-content-wrap .tc-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.tool-content-wrap .tc-btn:active {
  transform: translateY(0);
  filter: brightness(1);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.tool-content-wrap .tc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

/* tc-btn size variants */
.tool-content-wrap .tc-btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.tool-content-wrap .tc-btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* tc-btn color variants */
.tool-content-wrap .tc-btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.tool-content-wrap .tc-btn-success:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.tool-content-wrap .tc-btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.tool-content-wrap .tc-btn-danger:hover {
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
}

.tool-content-wrap .tc-btn-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  color: #0a0a0f;
}

.tool-content-wrap .tc-btn-amber:hover {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
}

/* btn with loading spinner */
.tool-content-wrap .tc-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.tool-content-wrap .tc-btn.loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tcSpin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ============================================================
   TC-BTN-GHOST — secondary ghost button
   ============================================================ */
.tool-content-wrap .tc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.tool-content-wrap .tc-btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.tool-content-wrap .tc-btn-ghost:active {
  background: var(--surface-2);
}

.tool-content-wrap .tc-btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool-content-wrap .tc-btn-ghost-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.tool-content-wrap .tc-btn-ghost-accent {
  color: var(--accent-bright);
  border-color: rgba(124, 58, 237, 0.25);
  background: var(--accent-dim);
}

.tool-content-wrap .tc-btn-ghost-accent:hover {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

/* ============================================================
   TC-ICON-BTN — icon-only round button
   ============================================================ */
.tool-content-wrap .tc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.tool-content-wrap .tc-icon-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.tool-content-wrap .tc-icon-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   TC-OUTPUT — code/result display box
   ============================================================ */
.tool-content-wrap .tc-output {
  background: #0d0d14;
  color: #c4b5fd;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  min-height: 80px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
  line-height: 1.7;
}

.tool-content-wrap .tc-output:empty::before {
  content: attr(data-placeholder);
  color: rgba(196, 181, 253, 0.3);
  font-style: italic;
}

.tool-content-wrap .tc-output-plain {
  background: var(--surface-2);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  border-color: var(--border);
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-content-wrap .tc-output-scroll {
  max-height: 320px;
  overflow-y: auto;
}

.tool-content-wrap .tc-output-scroll::-webkit-scrollbar {
  width: 6px;
}

.tool-content-wrap .tc-output-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.tool-content-wrap .tc-output-scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 999px;
}

.tool-content-wrap .tc-output-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* output header with label + copy */
.tool-content-wrap .tc-output-wrap {
  position: relative;
}

.tool-content-wrap .tc-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.tool-content-wrap .tc-output-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-COPY-BTN — copy to clipboard button
   ============================================================ */
.tool-content-wrap .tc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  color: var(--accent-bright);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tool-content-wrap .tc-copy-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(124, 58, 237, 0.4);
}

.tool-content-wrap .tc-copy-btn.copied {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ============================================================
   TC-TABS — tab navigation system
   ============================================================ */
.tool-content-wrap .tc-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin-bottom: 1.25rem;
}

.tool-content-wrap .tc-tab {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  white-space: nowrap;
}

.tool-content-wrap .tc-tab:hover:not(.active):not([aria-selected="true"]) {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}

.tool-content-wrap .tc-tab.active,
.tool-content-wrap .tc-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.tool-content-wrap .tc-tab-accent.active,
.tool-content-wrap .tc-tab-accent[aria-selected="true"] {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

/* tc-panel */
.tool-content-wrap .tc-panel {
  display: none;
}

.tool-content-wrap .tc-panel.active {
  display: block;
  animation: tcFadeIn 0.2s ease;
}

/* underline-style tabs */
.tool-content-wrap .tc-tabs-underline {
  display: flex;
  gap: 0;
  background: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
  margin-bottom: 1.5rem;
}

.tool-content-wrap .tc-tabs-underline .tc-tab {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 1.25rem;
  background: none;
  box-shadow: none;
  flex: none;
  margin-bottom: -1px;
}

.tool-content-wrap .tc-tabs-underline .tc-tab.active,
.tool-content-wrap .tc-tabs-underline .tc-tab[aria-selected="true"] {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
  background: none;
  box-shadow: none;
}

/* ============================================================
   TC-COUNTER — character/word count indicator
   ============================================================ */
.tool-content-wrap .tc-counter {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-content-wrap .tc-counter.ok {
  color: var(--green);
}

.tool-content-wrap .tc-counter.warn {
  color: var(--amber);
}

.tool-content-wrap .tc-counter.bad {
  color: var(--red);
}

/* ============================================================
   TC-STATS-GRID — metric card grid
   ============================================================ */
.tool-content-wrap .tc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.875rem;
}

.tool-content-wrap .tc-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.tool-content-wrap .tc-stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.tool-content-wrap .tc-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  display: block;
  margin-bottom: 0.35rem;
}

.tool-content-wrap .tc-stat-value.green {
  background: linear-gradient(135deg, #34d399, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-content-wrap .tc-stat-value.red {
  background: linear-gradient(135deg, #f87171, #fca5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-content-wrap .tc-stat-value.amber {
  background: linear-gradient(135deg, #fbbf24, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-content-wrap .tc-stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-TABLE — data table
   ============================================================ */
.tool-content-wrap .tc-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tool-content-wrap .tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tool-content-wrap .tc-table th {
  background: var(--surface-2);
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.tool-content-wrap .tc-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
}

.tool-content-wrap .tc-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.tool-content-wrap .tc-table tr:last-child td {
  border-bottom: none;
}

.tool-content-wrap .tc-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tool-content-wrap .tc-table td.mono,
.tool-content-wrap .tc-table th.mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
}

.tool-content-wrap .tc-table td .tc-badge {
  display: inline-block;
}

/* ============================================================
   TC-PROGRESS — progress bar
   ============================================================ */
.tool-content-wrap .tc-progress {
  height: 5px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}

.tool-content-wrap .tc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.tool-content-wrap .tc-progress-bar.success {
  background: var(--green);
}

.tool-content-wrap .tc-progress-bar.warn {
  background: var(--amber);
}

.tool-content-wrap .tc-progress-bar.danger {
  background: var(--red);
}

.tool-content-wrap .tc-progress-lg {
  height: 8px;
}

.tool-content-wrap .tc-progress-sm {
  height: 3px;
}

.tool-content-wrap .tc-progress-striped .tc-progress-bar {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.08) 8px,
    rgba(255, 255, 255, 0.08) 16px
  );
}

/* progress with label */
.tool-content-wrap .tc-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-content-wrap .tc-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tool-content-wrap .tc-progress-row .tc-progress {
  flex: 1;
}

.tool-content-wrap .tc-progress-pct {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  min-width: 38px;
  text-align: right;
}

/* ============================================================
   TC-AI-STREAM — streaming AI output
   ============================================================ */
.tool-content-wrap .tc-ai-stream {
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
}

.tool-content-wrap .tc-ai-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-bright);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: tcBlink 0.7s steps(1) infinite;
}

.tool-content-wrap .tc-ai-stream p {
  margin: 0 0 0.75rem;
}

.tool-content-wrap .tc-ai-stream p:last-child {
  margin-bottom: 0;
}

.tool-content-wrap .tc-ai-stream strong {
  color: var(--text);
  font-weight: 600;
}

.tool-content-wrap .tc-ai-stream em {
  color: var(--text-2);
}

.tool-content-wrap .tc-ai-stream code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.tool-content-wrap .tc-ai-stream ul,
.tool-content-wrap .tc-ai-stream ol {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
}

.tool-content-wrap .tc-ai-stream li {
  margin-bottom: 0.35rem;
  color: var(--text-2);
}

/* ============================================================
   TC-ALERT — inline alert / notice
   ============================================================ */
.tool-content-wrap .tc-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.55;
}

.tool-content-wrap .tc-alert-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.tool-content-wrap .tc-alert-body {
  flex: 1;
  min-width: 0;
}

.tool-content-wrap .tc-alert-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: block;
}

.tool-content-wrap .tc-alert-info {
  background: var(--accent-dim);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.tool-content-wrap .tc-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.tool-content-wrap .tc-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.tool-content-wrap .tc-alert-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* ============================================================
   TC-BADGE — inline status badge
   ============================================================ */
.tool-content-wrap .tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tool-content-wrap .tc-badge-accent {
  background: var(--accent-dim);
  color: var(--accent-bright);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.tool-content-wrap .tc-badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tool-content-wrap .tc-badge-red {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tool-content-wrap .tc-badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tool-content-wrap .tc-badge-gray {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.tool-content-wrap .tc-badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   TC-EMPTY — empty state placeholder
   ============================================================ */
.tool-content-wrap .tc-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-3);
}

.tool-content-wrap .tc-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.6;
}

.tool-content-wrap .tc-empty p {
  font-size: 0.9rem;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

.tool-content-wrap .tc-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 0.35rem;
  display: block;
}

/* ============================================================
   TC-RANGE — styled range input
   ============================================================ */
.tool-content-wrap .tc-range {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.tool-content-wrap .tc-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-content-wrap .tc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.6);
}

.tool-content-wrap .tc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.tool-content-wrap .tc-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-content-wrap .tc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-TOGGLE — toggle switch
   ============================================================ */
.tool-content-wrap .tc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.tool-content-wrap .tc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.tool-content-wrap .tc-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface-3);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease;
  border: 1px solid var(--border);
}

.tool-content-wrap .tc-toggle input:checked + .tc-toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.tool-content-wrap .tc-toggle input:focus + .tc-toggle-slider {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.tool-content-wrap .tc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tool-content-wrap .tc-toggle input:checked + .tc-toggle-slider::before {
  transform: translateX(20px);
}

.tool-content-wrap .tc-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.tool-content-wrap .tc-toggle-row label {
  font-size: 0.88rem;
  color: var(--text-2);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-CHECKBOX — styled checkbox
   ============================================================ */
.tool-content-wrap .tc-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.tool-content-wrap .tc-checkbox-row:last-child {
  margin-bottom: 0;
}

.tool-content-wrap .tc-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tool-content-wrap .tc-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.tool-content-wrap .tc-checkbox:checked::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 7px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}

.tool-content-wrap .tc-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.tool-content-wrap .tc-checkbox-label {
  font-size: 0.88rem;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.45;
  cursor: pointer;
}

/* ============================================================
   TC-RADIO — styled radio buttons
   ============================================================ */
.tool-content-wrap .tc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-content-wrap .tc-radio-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.tool-content-wrap .tc-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  position: relative;
}

.tool-content-wrap .tc-radio:checked {
  border-color: var(--accent);
  border-width: 2px;
}

.tool-content-wrap .tc-radio:checked::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tool-content-wrap .tc-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.tool-content-wrap .tc-radio-label {
  font-size: 0.88rem;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

/* ============================================================
   TC-DIVIDER — section separator
   ============================================================ */
.tool-content-wrap .tc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.tool-content-wrap .tc-divider-label {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.tool-content-wrap .tc-divider-label span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  padding: 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

/* ============================================================
   TC-TOOLTIP — tooltip wrapper
   ============================================================ */
.tool-content-wrap .tc-tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.tool-content-wrap .tc-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-hover);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tool-content-wrap .tc-tooltip-wrap:hover .tc-tooltip {
  opacity: 1;
}

/* ============================================================
   TC-CHIP — small filter / tag chips
   ============================================================ */
.tool-content-wrap .tc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tool-content-wrap .tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.tool-content-wrap .tc-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.tool-content-wrap .tc-chip.active {
  background: var(--accent-dim);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--accent-bright);
}

.tool-content-wrap .tc-chip-remove {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  font-size: 0.85rem;
}

.tool-content-wrap .tc-chip-remove:hover {
  opacity: 1;
}

/* ============================================================
   TC-SKELETON — loading placeholder shimmer
   ============================================================ */
.tool-content-wrap .tc-skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: tcSkeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.tool-content-wrap .tc-skeleton-text {
  height: 0.875rem;
  margin-bottom: 0.6rem;
  border-radius: 4px;
}

.tool-content-wrap .tc-skeleton-text:last-child {
  margin-bottom: 0;
  width: 65%;
}

.tool-content-wrap .tc-skeleton-title {
  height: 1.25rem;
  margin-bottom: 0.875rem;
  width: 45%;
  border-radius: 4px;
}

.tool-content-wrap .tc-skeleton-box {
  border-radius: var(--radius-sm);
}

/* ============================================================
   TC-ACTIONS — button row
   ============================================================ */
.tool-content-wrap .tc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.tool-content-wrap .tc-actions-end {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
  justify-content: flex-end;
}

.tool-content-wrap .tc-actions-split {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
  justify-content: space-between;
}

/* ============================================================
   TC-CODE — inline code and code blocks
   ============================================================ */
.tool-content-wrap .tc-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.tool-content-wrap .tc-codeblock {
  background: #0d0d14;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0;
}

.tool-content-wrap .tc-codeblock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.tool-content-wrap .tc-codeblock-lang {
  font-size: 0.72rem;
  color: rgba(196, 181, 253, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-content-wrap .tc-codeblock pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #c4b5fd;
}

/* ============================================================
   TC-LIST — styled list
   ============================================================ */
.tool-content-wrap .tc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-content-wrap .tc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s ease;
}

.tool-content-wrap .tc-list-item:hover {
  border-color: var(--border-hover);
}

.tool-content-wrap .tc-list-item-icon {
  flex-shrink: 0;
  color: var(--accent-bright);
  margin-top: 0.1rem;
}

.tool-content-wrap .tc-list-item-body {
  flex: 1;
  min-width: 0;
}

.tool-content-wrap .tc-list-item-title {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.tool-content-wrap .tc-list-item-meta {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ============================================================
   TC-LOADER — loading spinner
   ============================================================ */
.tool-content-wrap .tc-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
}

.tool-content-wrap .tc-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(124, 58, 237, 0.2);
  border-top-color: var(--accent-bright);
  border-radius: 50%;
  animation: tcSpin 0.7s linear infinite;
}

.tool-content-wrap .tc-spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.tool-content-wrap .tc-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* ============================================================
   TC-SCORE — score/gauge ring display
   ============================================================ */
.tool-content-wrap .tc-score-ring {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tool-content-wrap .tc-score-ring svg {
  transform: rotate(-90deg);
}

.tool-content-wrap .tc-score-ring circle {
  fill: none;
  stroke-width: 6;
}

.tool-content-wrap .tc-score-track {
  stroke: var(--surface-3);
}

.tool-content-wrap .tc-score-fill {
  stroke: var(--accent-bright);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.tool-content-wrap .tc-score-fill.green {
  stroke: var(--green);
}

.tool-content-wrap .tc-score-fill.amber {
  stroke: var(--amber);
}

.tool-content-wrap .tc-score-fill.red {
  stroke: var(--red);
}

.tool-content-wrap .tc-score-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-KEY-VAL — key-value pair display
   ============================================================ */
.tool-content-wrap .tc-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tool-content-wrap .tc-kv-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.tool-content-wrap .tc-kv-row:last-child {
  border-bottom: none;
}

.tool-content-wrap .tc-kv-key {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  min-width: 120px;
  flex-shrink: 0;
}

.tool-content-wrap .tc-kv-val {
  font-size: 0.875rem;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.tool-content-wrap .tc-kv-val strong {
  color: var(--text);
  font-weight: 600;
}

.tool-content-wrap .tc-kv-val.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #c4b5fd;
}

/* ============================================================
   TC-RESULT — result display banner
   ============================================================ */
.tool-content-wrap .tc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.tool-content-wrap .tc-result-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.tool-content-wrap .tc-result-label {
  font-size: 0.82rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

.tool-content-wrap .tc-result-sub {
  font-size: 0.9rem;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-FILE-DROP — drag and drop upload zone
   ============================================================ */
.tool-content-wrap .tc-file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.tool-content-wrap .tc-file-drop:hover,
.tool-content-wrap .tc-file-drop.dragover {
  border-color: rgba(124, 58, 237, 0.45);
  background: var(--accent-dim);
}

.tool-content-wrap .tc-file-drop-icon {
  font-size: 2rem;
  opacity: 0.5;
  color: var(--accent-bright);
}

.tool-content-wrap .tc-file-drop p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
}

.tool-content-wrap .tc-file-drop small {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   TC-STEP — stepper / multi-step wizard
   ============================================================ */
.tool-content-wrap .tc-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.5rem;
  position: relative;
}

.tool-content-wrap .tc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.tool-content-wrap .tc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 1px;
  background: var(--border);
}

.tool-content-wrap .tc-step.completed:not(:last-child)::after {
  background: var(--accent);
}

.tool-content-wrap .tc-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-3);
  transition: all 0.18s ease;
  z-index: 1;
}

.tool-content-wrap .tc-step.active .tc-step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.tool-content-wrap .tc-step.completed .tc-step-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.tool-content-wrap .tc-step-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  text-align: center;
  margin-top: 0.4rem;
}

.tool-content-wrap .tc-step.active .tc-step-label {
  color: var(--accent-bright);
}

.tool-content-wrap .tc-step.completed .tc-step-label {
  color: var(--green);
}

/* ============================================================
   TC-NOTICE — top-of-section callout
   ============================================================ */
.tool-content-wrap .tc-notice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-2);
  line-height: 1.5;
}

.tool-content-wrap .tc-notice-success {
  border-left-color: var(--green);
  background: rgba(16, 185, 129, 0.06);
}

.tool-content-wrap .tc-notice-warn {
  border-left-color: var(--amber);
  background: rgba(245, 158, 11, 0.06);
}

.tool-content-wrap .tc-notice-error {
  border-left-color: var(--red);
  background: rgba(239, 68, 68, 0.06);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.tool-content-wrap .tc-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
}

.tool-content-wrap .tc-small {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
}

.tool-content-wrap .tc-muted {
  color: var(--text-3);
}

.tool-content-wrap .tc-accent {
  color: var(--accent-bright);
}

.tool-content-wrap .tc-green {
  color: var(--green);
}

.tool-content-wrap .tc-red {
  color: var(--red);
}

.tool-content-wrap .tc-amber {
  color: var(--amber);
}

.tool-content-wrap .tc-bold {
  font-weight: 700;
}

.tool-content-wrap .tc-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.tool-content-wrap .tc-mt-0 { margin-top: 0; }
.tool-content-wrap .tc-mt-1 { margin-top: 0.5rem; }
.tool-content-wrap .tc-mt-2 { margin-top: 1rem; }
.tool-content-wrap .tc-mt-3 { margin-top: 1.5rem; }
.tool-content-wrap .tc-mb-0 { margin-bottom: 0; }
.tool-content-wrap .tc-mb-1 { margin-bottom: 0.5rem; }
.tool-content-wrap .tc-mb-2 { margin-bottom: 1rem; }
.tool-content-wrap .tc-mb-3 { margin-bottom: 1.5rem; }

.tool-content-wrap .tc-text-center { text-align: center; }
.tool-content-wrap .tc-text-right { text-align: right; }

.tool-content-wrap .tc-flex { display: flex; }
.tool-content-wrap .tc-flex-center { display: flex; align-items: center; justify-content: center; }
.tool-content-wrap .tc-flex-between { display: flex; align-items: center; justify-content: space-between; }
.tool-content-wrap .tc-gap-1 { gap: 0.5rem; }
.tool-content-wrap .tc-gap-2 { gap: 1rem; }
.tool-content-wrap .tc-gap-3 { gap: 1.5rem; }

.tool-content-wrap .tc-w-full { width: 100%; }
.tool-content-wrap .tc-hidden { display: none; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes tcFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tcBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes tcSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tcSkeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes tcPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes tcScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .tool-content-wrap .tc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-content-wrap .tc-section {
    padding: 1.25rem;
  }

  .tool-content-wrap .tc-tabs {
    flex-wrap: wrap;
  }

  .tool-content-wrap .tc-tab {
    flex: none;
  }

  .tool-content-wrap .tc-field-row {
    flex-direction: column;
  }

  .tool-content-wrap .tc-actions,
  .tool-content-wrap .tc-actions-end,
  .tool-content-wrap .tc-actions-split {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-content-wrap .tc-btn,
  .tool-content-wrap .tc-btn-ghost {
    justify-content: center;
    width: 100%;
  }

  .tool-content-wrap .tc-result-value {
    font-size: 2.25rem;
  }

  .tool-content-wrap .tc-steps {
    gap: 0;
  }

  .tool-content-wrap .tc-kv-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tool-content-wrap .tc-kv-key {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .tool-content-wrap .tc-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tool-content-wrap .tc-stat-value {
    font-size: 1.5rem;
  }

  .tool-content-wrap .tc-section {
    padding: 1rem;
  }

  .tool-content-wrap .tc-table-wrap {
    font-size: 0.8rem;
  }

  .tool-content-wrap .tc-table th,
  .tool-content-wrap .tc-table td {
    padding: 0.55rem 0.75rem;
  }
}
