/* ── TyagiHub Remove Extra Spaces Design Tokens ── */
:root {
  --s-accent:        #005B99;
  --s-accent2:      #e8431a;
  --s-green:        #10b981;
  --s-surface:      var(--clr-surface, #161922);
  --s-surf2:        var(--clr-surface-2, #1f2330);
  --s-input-bg:     var(--clr-input-bg, #242938);
  --s-border:       var(--clr-border, rgba(255, 255, 255, 0.12));
  --s-bord2:        rgba(255, 255, 255, 0.18);
  --s-text:         var(--clr-text, #9ca3af);
  --s-head:         var(--clr-heading, #f3f4f6);
  --s-muted:        var(--clr-text-3, #6b7280);
  --s-radius:       16px;
  --s-font:         var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  --s-mono:         var(--font-mono, 'Consolas', 'Courier New', monospace);
}

/* Light Mode Overrides */
html[data-theme="light"] :root,
body.light-theme :root,
[data-theme="light"] {
  --s-surface:      #ffffff;
  --s-surf2:        #f8fafc;
  --s-input-bg:     #ffffff;
  --s-border:       #e2e8f0;
  --s-bord2:        #cbd5e1;
  --s-text:         #475569;
  --s-head:         #0f172a;
  --s-muted:        #64748b;
}

*, *::before, *::after { box-sizing: border-box; }

.tt-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  font-family: var(--s-font);
  color: var(--s-text);
  overflow-x: hidden;
}

.tt-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.tt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--s-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tt-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--s-head);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.tt-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--s-accent), var(--s-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tt-hero p {
  color: var(--s-text);
  font-size: 0.98rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.tt-card {
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
}
.tt-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--s-head);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-card-title::before {
  content: '';
  width: 4px;
  height: 14px;
  background: linear-gradient(180deg, var(--s-accent), var(--s-accent2));
  border-radius: 99px;
  flex-shrink: 0;
}

/* Cleaning Options Grid */
.rs-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  width: 100%;
}
.rs-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--s-surf2);
  border: 1px solid var(--s-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.rs-opt:hover {
  border-color: var(--s-accent);
}
/* HIGH VISIBILITY ACTIVE OPTION STATE */
.rs-opt.active {
  border-color: var(--s-accent) !important;
  background: rgba(245, 166, 35, 0.14) !important;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.2);
}
.rs-opt.active .rs-opt-name {
  color: var(--s-accent) !important;
}

.rs-opt input[type="checkbox"] {
  accent-color: var(--s-accent);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.rs-opt-info {
  flex: 1;
}
.rs-opt-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--s-head);
  display: block;
}
.rs-opt-desc {
  font-size: 0.72rem;
  color: var(--s-muted);
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

.rs-io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}
@media (max-width: 680px) {
  .rs-io { grid-template-columns: 1fr; }
}

.rs-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--s-head);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rs-label span {
  font-size: 0.72rem;
  color: var(--s-muted);
  font-weight: 500;
}

.tt-textarea {
  width: 100%;
  background: var(--s-input-bg);
  border: 1px solid var(--s-bord2);
  border-radius: 12px;
  padding: 14px;
  font-family: var(--s-mono);
  font-size: 0.88rem;
  color: var(--s-head);
  outline: none;
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tt-textarea:focus {
  border-color: var(--s-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}
.tt-textarea[readonly] {
  color: var(--s-green);
  cursor: text;
}

.rs-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.rs-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--s-surf2);
  border: 1px solid var(--s-border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--s-text);
}
.rs-stat strong {
  font-family: var(--s-mono);
  font-weight: 800;
  color: var(--s-accent);
}
.rs-stat.green strong {
  color: var(--s-green);
}

.tt-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.tt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-family: var(--s-font);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tt-btn-primary {
  background: var(--s-accent);
  color: #111827;
}
.tt-btn-secondary {
  background: var(--s-surf2);
  border: 1px solid var(--s-border);
  color: var(--s-head);
}
.tt-btn-secondary:hover {
  border-color: var(--s-accent);
  color: var(--s-accent);
}
.tt-btn-ghost {
  background: transparent;
  border: 1px solid var(--s-border);
  color: var(--s-text);
}
.tt-btn-ghost:hover {
  border-color: var(--s-accent);
  color: var(--s-accent);
}

.tt-section {
  margin-top: 3.5rem;
  width: 100%;
}
.tt-section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.tt-section-header h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: var(--s-head);
  margin-bottom: 0.5rem;
}
.tt-section-header p {
  color: var(--s-text);
  font-size: 0.95rem;
}

.tt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  width: 100%;
}
.tt-info-card {
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tt-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--s-accent);
}
.tt-info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.tt-info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tt-info-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--s-head);
}
.tt-info-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--s-text);
  line-height: 1.5;
}

.tt-faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tt-faq-item {
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: 14px;
  overflow: hidden;
}
.tt-faq-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
}
.tt-faq-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--s-head);
}
.tt-faq-icon {
  font-size: 0.75rem;
  color: var(--s-text);
  transition: transform 0.3s;
}
.tt-faq-item.active .tt-faq-icon {
  transform: rotate(180deg);
}
.tt-faq-body {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--s-text);
  font-size: 0.88rem;
  line-height: 1.6;
}
.tt-faq-item.active .tt-faq-body {
  display: block;
}

.tt-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}
.tt-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .tt-wrap { padding: 1rem 0.5rem 3rem; }
  .tt-card { padding: 1rem; }
  .tt-btn-row { flex-direction: column; }
  .tt-btn { width: 100%; justify-content: center; }
}
