/* ============================================
   Enhanced Tools ΓÇö Shared CSS
   Modern, responsive, software-grade UI
   ============================================ */

/* ===== Tool Section Override ===== */
.tool-interface-section {
  padding: 5rem 0 3rem;
}

/* ===== Enhanced Tool Container ===== */
.et-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.et-header {
  text-align: center;
  margin-bottom: 2rem;
}

.et-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.et-header-badge.free {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.et-header-badge.paid {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.et-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.et-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.et-feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.et-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

.et-feature-pill svg {
  width: 10px;
  height: 10px;
  color: var(--accent-cyan);
}

/* ===== Main Grid Layout ===== */
.et-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  position: relative;
}

.et-grid.et-stack {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Panel (Enhanced) ===== */
.et-panel {
  background: rgba(11, 17, 32, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .et-panel {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.et-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3), transparent);
}

.et-panel::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .et-panel::after {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04), transparent 70%);
}

/* ===== Panel Header ===== */
.et-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .et-panel-header {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.et-panel-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.et-panel-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.et-panel-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.et-panel-header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.et-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.et-badge.free {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.et-badge.paid {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.et-model-tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(37, 99, 235, 0.05);
}

/* ===== Form Fields ===== */
.et-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.et-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.et-label-hint {
  color: var(--text-secondary);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

.et-input,
.et-textarea,
.et-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.03);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  outline: none;
}

[data-theme="light"] .et-input,
[data-theme="light"] .et-textarea,
[data-theme="light"] .et-select {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.1);
}

.et-input:focus,
.et-textarea:focus,
.et-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
  background: var(--bg-surface);
}

[data-theme="light"] .et-input:focus,
[data-theme="light"] .et-textarea:focus,
[data-theme="light"] .et-select:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}

.et-input::placeholder,
.et-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.et-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.et-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.et-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ===== Chips / Pills ===== */
.et-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.et-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.et-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.et-chip.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.et-chip svg {
  width: 12px;
  height: 12px;
}

/* ===== Toggle Row ===== */
.et-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.et-toggle-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.et-toggle-label svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
}

.et-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.et-toggle.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-color: transparent;
}

.et-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.et-toggle.active .et-toggle-thumb {
  transform: translateX(16px);
}

/* ===== Slider ===== */
.et-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.et-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.et-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.15);
  outline: none;
}

.et-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s ease;
}

.et-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.et-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.et-slider-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

.et-slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.et-slider-ticks span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
}

/* ===== Generate Button ===== */
.et-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: var(--gradient-brand);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.et-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.et-btn:active {
  transform: translateY(0);
}

.et-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.et-btn svg {
  width: 18px;
  height: 18px;
}

.et-btn .et-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: et-spin 0.7s linear infinite;
  display: none;
}

.et-btn.loading .et-spinner {
  display: block;
}

.et-btn.loading .et-btn-icon {
  display: none;
}

.et-btn.loading .et-btn-text {
  opacity: 0.7;
}

@keyframes et-spin {
  to { transform: rotate(360deg); }
}

/* ===== Output Panel ===== */
.et-output {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.et-output-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 0.75rem;
  flex: 1;
}

.et-output-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: rgba(37, 99, 235, 0.5);
}

.et-output-empty-icon svg {
  width: 28px;
  height: 28px;
}

.et-output-empty h4 {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.et-output-empty p {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.6);
  max-width: 260px;
  line-height: 1.5;
}

/* ===== Skeleton Loading ===== */
.et-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.et-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06) 25%, rgba(148, 163, 184, 0.12) 50%, rgba(148, 163, 184, 0.06) 75%);
  background-size: 200% 100%;
  animation: et-shimmer 1.5s ease-in-out infinite;
}

.et-skeleton-line.w-100 { width: 100%; }
.et-skeleton-line.w-90 { width: 90%; }
.et-skeleton-line.w-80 { width: 80%; }
.et-skeleton-line.w-60 { width: 60%; }
.et-skeleton-line.w-40 { width: 40%; }
.et-skeleton-line.h-20 { height: 20px; }
.et-skeleton-line.h-24 { height: 24px; }

@keyframes et-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Output Content ===== */
.et-output-content {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1rem;
  background: rgba(148, 163, 184, 0.03);
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.08);
  flex: 1;
  overflow-y: auto;
  max-height: 500px;
}

[data-theme="light"] .et-output-content {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
}

.et-output-content.rtl {
  direction: rtl;
  text-align: right;
}

/* ===== Output Tabs ===== */
.et-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.et-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  border: none;
}

.et-tab:hover {
  color: var(--text-primary);
}

.et-tab.active {
  background: var(--gradient-brand);
  color: #fff;
}

/* ===== Stats Bar ===== */
.et-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.06);
}

.et-stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.et-stat-item svg {
  width: 12px;
  height: 12px;
  color: var(--accent-cyan);
}

.et-stat-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Action Buttons ===== */
.et-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.et-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.et-action-btn:hover {
  color: var(--text-primary);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

.et-action-btn.copied {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.et-action-btn svg {
  width: 14px;
  height: 14px;
}

.et-action-btn.primary {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.et-action-btn.primary:hover {
  background: rgba(37, 99, 235, 0.15);
}

/* ===== Free Note ===== */
.et-free-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  padding: 0.65rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  background: rgba(6, 182, 212, 0.03);
  margin: 0 -1.5rem -1.5rem;
  border-radius: 0 0 1rem 1rem;
}

[data-theme="light"] .et-free-note {
  border-top-color: rgba(15, 23, 42, 0.04);
  background: rgba(8, 145, 178, 0.02);
}

.et-free-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ===== Locked Overlay ===== */
.et-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 10;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

[data-theme="light"] .et-locked-overlay {
  background: rgba(248, 250, 252, 0.85);
}

.et-locked-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.et-locked-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.et-locked-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
}

.et-locked-pricing {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.et-pricing-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 85px;
}

[data-theme="light"] .et-pricing-card {
  border-color: rgba(15, 23, 42, 0.1);
}

.et-pricing-card .price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.et-pricing-card .credits {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.et-locked-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 0.6rem;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.et-locked-cta:hover {
  transform: translateY(-2px);
  color: #fff;
}

.et-preview-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.25rem;
}

/* ===== Swap Button ===== */
.et-swap-btn {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.03);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.et-swap-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(180deg);
}

/* ===== Language Bar ===== */
.et-lang-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.et-lang-select {
  flex: 1;
  min-width: 120px;
}

/* ===== Divider ===== */
.et-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.08);
  margin: 0.25rem 0;
}

/* ===== How To Use ===== */
.et-howto {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.06);
}

[data-theme="light"] .et-howto {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
}

.et-howto-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

.et-howto-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.et-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.et-howto-step {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.et-howto-step-num {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.et-howto-step-body h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.et-howto-step-body p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== FAQ ===== */
.et-faq {
  margin-top: 1.5rem;
}

.et-faq-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

.et-faq-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.et-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.et-faq-item {
  border-radius: 0.6rem;
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.06);
  overflow: hidden;
}

[data-theme="light"] .et-faq-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
}

.et-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  background: none;
  border: none;
}

.et-faq-question:hover {
  background: rgba(148, 163, 184, 0.03);
}

.et-faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.et-faq-item.open .et-faq-chevron {
  transform: rotate(180deg);
}

.et-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.et-faq-item.open .et-faq-answer {
  max-height: 300px;
}

.et-faq-answer p {
  padding: 0 1rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Variant Cards ===== */
.et-variant {
  background: rgba(148, 163, 184, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: border-color 0.2s ease;
  animation: et-fade-up 0.4s ease-out forwards;
}

.et-variant:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.et-variant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.et-variant-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.et-variant-badge {
  width: 22px;
  height: 22px;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.et-variant-content {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes et-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Char Counter ===== */
.et-char-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.et-char-counter .count {
  color: var(--text-primary);
  font-weight: 600;
}

.et-char-counter .limit {
  color: var(--text-secondary);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 900px) {
  .et-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .et-header h2 {
    font-size: 1.4rem;
  }

  .et-panel {
    padding: 1.25rem;
  }

  .et-free-note {
    margin: 0 -1.25rem -1.25rem;
  }
}

/* ===== Responsive: Phone ===== */
@media (max-width: 600px) {
  .tool-interface-section {
    padding: 4rem 0 2rem;
  }

  .et-header {
    margin-bottom: 1.5rem;
  }

  .et-header h2 {
    font-size: 1.2rem;
  }

  .et-header p {
    font-size: 0.82rem;
  }

  .et-feature-strip {
    gap: 0.35rem;
  }

  .et-feature-pill {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }

  .et-grid {
    gap: 1rem;
  }

  .et-panel {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .et-free-note {
    margin: 0 -1rem -1rem;
    font-size: 0.65rem;
    padding: 0.55rem 1rem;
  }

  .et-panel-header {
    padding-bottom: 0.65rem;
  }

  .et-panel-header h3 {
    font-size: 0.88rem;
  }

  .et-label {
    font-size: 0.62rem;
  }

  .et-input,
  .et-textarea,
  .et-select {
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
  }

  .et-textarea {
    min-height: 80px;
  }

  .et-chip {
    font-size: 0.68rem;
    padding: 0.35rem 0.7rem;
  }

  .et-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .et-output-content {
    font-size: 0.82rem;
    padding: 0.75rem;
    max-height: 400px;
  }

  .et-output-empty {
    padding: 1.5rem 1rem;
  }

  .et-output-empty h4 {
    font-size: 0.85rem;
  }

  .et-output-empty p {
    font-size: 0.75rem;
  }

  .et-locked-overlay {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .et-locked-title {
    font-size: 1.1rem;
  }

  .et-locked-desc {
    font-size: 0.78rem;
  }

  .et-pricing-card {
    padding: 0.6rem 0.8rem;
    min-width: 75px;
  }

  .et-pricing-card .price {
    font-size: 1.1rem;
  }

  .et-lang-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .et-swap-btn {
    align-self: center;
    transform: rotate(90deg);
  }

  .et-swap-btn:hover {
    transform: rotate(270deg);
  }

  .et-howto {
    padding: 1rem;
  }

  .et-howto-steps {
    grid-template-columns: 1fr;
  }

  .et-stats-bar {
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
  }

  .et-stat-item {
    font-size: 0.65rem;
  }

  .et-action-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }

  .et-tabs {
    flex-wrap: wrap;
  }

  .et-tab {
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
  }

  .et-slider-value {
    min-width: 60px;
    font-size: 0.72rem;
  }
}

/* ===== Responsive: Small Phone ===== */
@media (max-width: 380px) {
  .et-feature-strip {
    display: none;
  }

  .et-chips {
    gap: 0.3rem;
  }

  .et-chip {
    font-size: 0.62rem;
    padding: 0.3rem 0.6rem;
  }

  .et-locked-pricing {
    gap: 0.4rem;
  }

  .et-pricing-card {
    min-width: 65px;
    padding: 0.5rem 0.65rem;
  }
}
