:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0f172a;
}

body {
  margin: 0;
  background: #f3f6fb;
  line-height: 1.7;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.tc-hero {
  background: linear-gradient(120deg, #0f6efc, #5b1bff);
  color: #fff;
  padding: 56px 0 48px;
}

.tc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.tc-eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

.tc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.tc-subtitle {
  margin: 0 0 12px;
  opacity: 0.95;
}

.tc-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tc-bullets span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.tc-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.tc-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.tc-main {
  padding: 34px 0 60px;
}

.tc-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

.tc-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.tc-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.9rem;
}



.tc-label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d6d9e8;
  padding: 14px;
  font-size: 1rem;
  min-height: 180px;
  resize: vertical;
  background: #f8fafc;
}

textarea:focus,
select:focus,
input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tc-controls {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

select {
  width: 100%;
  border: 1px solid #d6d9e8;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font-size: 1rem;
}

.tc-buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #0f6efc, #5b1bff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 110, 252, 0.26);
}

.secondary-btn {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  color: #0f172a;
}

.ghost-btn {
  background: #fff;
  border: 1px solid #dbeafe;
  color: #0f6efc;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.ghost-btn.sm {
  padding: 6px 10px;
  font-size: 0.9rem;
  border-radius: 10px;
}







.tc-result-box {
  min-height: 220px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  white-space: pre-wrap;
}

.tc-mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-mode-buttons .secondary-btn {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.tc-stats {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}

.tc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.tc-history {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}

.tc-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tc-history-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.tc-history-list li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  font-size: 0.95rem;
}

.tc-history-list .muted {
  color: #94a3b8;
}

.tc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-sidebar-card h3 {
  margin-top: 0;
}

.tc-sidebar-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.tc-info {
  padding: 0 0 50px;
}

.tc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tc-info-card h2 {
  margin-top: 0;
}

.tc-faq {
  background: #fff;
  padding: 40px 0 60px;
}

.tc-faq-head p {
  color: #475569;
}

.tc-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tc-faq-grid details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  background: #f9fafb;
}

.tc-faq-grid p {
  margin-top: 8px;
  color: #334155;
}

.footer {
  background: #0f172a;
  color: #fff;
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

@media (max-width: 1024px) {
  .tc-hero-grid,
  .tc-grid,
  
}

@media (max-width: 720px) {
  .tc-card,
  .tc-hero-card {
    padding: 16px;
  }
  .tc-buttons-row {
    width: 100%;
  }
}
.tc-stack { display: flex; flex-direction: column; gap: 12px; }
.tc-label-inline { margin: 0; font-weight: 700; }
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tc-controls { display: flex; flex-direction: column; gap: 10px; }
.tc-mode-buttons { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.tc-mode-buttons .secondary-btn { padding: 10px 12px; }
.tc-mode-buttons .active { border-color: #0f6efc; box-shadow: 0 0 0 2px rgba(15,110,252,0.15); }
.tc-result-block { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.tc-result-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.tc-result-box { min-height: 240px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px; white-space: pre-wrap; }
.tc-stats { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.tc-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.tc-history { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.tc-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.8fr); }
.tc-mode-buttons .secondary-btn { padding: 10px 12px; }
.tc-mode-buttons .active { border-color: #0f6efc; box-shadow: 0 0 0 2px rgba(15,110,252,0.15); }
.tc-result-block { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.tc-result-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.tc-result-box { min-height: 240px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px; white-space: pre-wrap; }
.tc-stats { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.tc-history { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.tc-tabs { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:12px; box-shadow:0 10px 24px rgba(15,23,42,0.06); }
.tc-tab-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.tc-tab { border:1px solid #dbeafe; background:#f8fafc; border-radius:10px; padding:8px 12px; font-weight:700; cursor:pointer; }
.tc-tab.active { border-color:#0f6efc; box-shadow:0 0 0 2px rgba(15,110,252,0.15); background:#eef2ff; }
.tc-tab-panels { border-top:1px solid #e2e8f0; padding-top:10px; }
.tc-tab-panel { display:none; }
.tc-tab-panel.active { display:block; }
.tc-tab-panel h3 { margin-top:0; }
