/* YouTube automation UI — scoped under .yt-suite (embedded in main InstaDown page) */
.yt-suite,
.yt-suite *,
.yt-suite *::before,
.yt-suite *::after {
  box-sizing: border-box;
}

.yt-suite {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --bg4: #222222;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --text2: #aaaaaa;
  --text3: #666666;
  --orange: #f97316;
  --pink: #ec4899;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #f97316, #ec4899);
  --grad2: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
  --yt-red: #ff0000;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: min(100vh, 100%);
  overflow-x: hidden;
  padding-bottom: 24px;
}

.yt-suite .hero {
  text-align: center;
  padding: 48px 20px 32px;
  position: relative;
}

.yt-suite .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.yt-suite .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 99px;
  background: rgba(249, 115, 22, 0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.yt-suite .hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.yt-suite .hero h1 .grad-text {
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.yt-suite .hero p {
  font-size: 16px;
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.yt-suite .stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.yt-suite .stat {
  text-align: center;
}

.yt-suite .stat-num {
  font-size: 28px;
  font-weight: 800;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.yt-suite .stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text3);
  text-transform: uppercase;
  margin-top: 4px;
}

.yt-suite .tabs-wrap {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.yt-suite .tabs-bar {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
  overflow-x: auto;
}

.yt-suite .tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.yt-suite .tab-btn:hover {
  color: var(--text);
  background: var(--bg3);
}

.yt-suite .tab-btn.active {
  background: var(--grad2);
  color: #fff;
  font-weight: 600;
}

.yt-suite .main-card {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.yt-suite .card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.yt-suite .panel {
  display: none;
  padding: 28px;
}

.yt-suite .panel.active {
  display: block;
}

.yt-suite .panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-suite .input-group {
  margin-bottom: 16px;
}

.yt-suite .input-label {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 7px;
  display: block;
}

.yt-suite .input-field {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.yt-suite .input-field:focus {
  border-color: var(--orange);
}

.yt-suite .input-field::placeholder {
  color: var(--text3);
}

.yt-suite textarea.input-field {
  resize: vertical;
  line-height: 1.6;
  min-height: 80px;
}

.yt-suite .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.yt-suite .row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.yt-suite select.input-field {
  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 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.yt-suite .btn-generate {
  width: 100%;
  padding: 14px;
  background: var(--grad2);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-top: 6px;
  transition: opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.yt-suite .btn-generate:hover {
  opacity: 0.9;
}

.yt-suite .btn-generate:active {
  transform: scale(0.99);
}

.yt-suite .progress-wrap {
  margin-top: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: none;
}

.yt-suite .progress-wrap.show {
  display: block;
}

.yt-suite .progress-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 16px;
}

.yt-suite .p-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text3);
  transition: color 0.3s;
}

.yt-suite .p-step:last-child {
  border-bottom: none;
}

.yt-suite .p-step.done {
  color: var(--text);
}

.yt-suite .p-step.running {
  color: var(--orange);
}

.yt-suite .step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg4);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.yt-suite .p-step.done .step-icon {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}

.yt-suite .p-step.running .step-icon {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  animation: yt-pulse 1s infinite;
}

@keyframes yt-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.yt-suite .queue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.yt-suite .queue-item:last-child {
  border-bottom: none;
}

.yt-suite .q-thumb {
  width: 60px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.yt-suite .q-info {
  flex: 1;
  min-width: 0;
}

.yt-suite .q-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-suite .q-meta {
  font-size: 12px;
  color: var(--text3);
  margin-top: 3px;
}

.yt-suite .q-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.yt-suite .b-pending {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.yt-suite .b-ready {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.yt-suite .b-live {
  background: rgba(255, 0, 0, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.yt-suite .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.yt-suite .stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.yt-suite .stat-box-label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.yt-suite .stat-box-val {
  font-size: 26px;
  font-weight: 800;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.yt-suite .stat-box-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

.yt-suite .api-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.yt-suite .api-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.yt-suite .api-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.yt-suite .dot-g {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.yt-suite .dot-a {
  background: var(--orange);
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.5);
}

.yt-suite .api-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.yt-suite .api-quota {
  font-size: 12px;
  color: var(--text3);
}

.yt-suite .quota-bar {
  height: 3px;
  background: var(--bg4);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.yt-suite .quota-fill {
  height: 100%;
  border-radius: 2px;
}

.yt-suite .pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.yt-suite .pipe-stage {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.yt-suite .pipe-stage:last-child {
  border-bottom: none;
}

.yt-suite .pipe-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.yt-suite .pipe-body {
  flex: 1;
}

.yt-suite .pipe-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-suite .pipe-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 10px;
}

.yt-suite .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yt-suite .chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid var(--border2);
  border-radius: 99px;
  color: var(--text2);
  background: var(--bg3);
}

.yt-suite .free-chip {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.yt-suite .info-strip {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.yt-suite .info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.yt-suite .info-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.yt-suite .info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.yt-suite .info-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .yt-suite .row-3,
  .yt-suite .row-2 {
    grid-template-columns: 1fr;
  }

  .yt-suite .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt-suite .info-strip {
    grid-template-columns: 1fr;
  }
}
