/* Page: #tg-clone. Scope every rule with body[data-page="tg-clone"] (modals included). Uses aurora.css components. */

body[data-page="tg-clone"] .tgc-page { gap: 24px; }
body[data-page="tg-clone"] [hidden] { display: none !important; }

/* ---------------------------------------------------------------- hero */
body[data-page="tg-clone"] .au-head.tgc-intro {
  margin: 0; border: 0; align-items: center;
  background:
    radial-gradient(90% 150% at 100% 0%, rgb(42 171 238 / .24), transparent 55%),
    radial-gradient(80% 140% at 0% 100%, rgb(104 117 245 / .24), transparent 60%),
    var(--au-tile);
}
body[data-page="tg-clone"] .tgc-intro .au-kicker { color: #8fd8ff; background: rgb(42 171 238 / .14); border-color: rgb(42 171 238 / .36); }
body[data-page="tg-clone"] .tgc-intro .au-lead { margin: 0; font-size: 14.5px; }
body[data-page="tg-clone"] .tgc-more { margin-top: 12px; color: var(--text-soft); font-size: 13.5px; }
body[data-page="tg-clone"] .tgc-more summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; width: fit-content;
  font-weight: 800; font-size: 13px; color: var(--text-soft); padding: 5px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .05); border: 1px solid var(--au-line); transition: background .25s, border-color .25s;
}
body[data-page="tg-clone"] .tgc-more summary::-webkit-details-marker { display: none; }
body[data-page="tg-clone"] .tgc-more summary::after { content: '⌄'; line-height: 1; transform: translateY(-2px); transition: transform .35s var(--au-ease-snap); }
body[data-page="tg-clone"] .tgc-more[open] summary::after { transform: rotate(180deg) translateY(-2px); }
body[data-page="tg-clone"] .tgc-more summary:hover { background: rgb(255 255 255 / .09); border-color: var(--au-line-strong); }
body[data-page="tg-clone"] .tgc-more ul { margin: 12px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; line-height: 1.8; max-width: 72ch; }

body[data-page="tg-clone"] .tgc-flow { display: flex; align-items: center; gap: 0; padding-inline: 8px; }
body[data-page="tg-clone"] .tgc-flow .au-ic { width: 58px; height: 58px; border-radius: 18px; box-shadow: 0 0 0 1px rgb(255 255 255 / .14) inset, 0 14px 30px -12px rgb(0 0 0 / .7); }
body[data-page="tg-clone"] .tgc-flow .au-ic svg { width: 26px; height: 26px; }
body[data-page="tg-clone"] .tgc-flow > i {
  position: relative; display: block; width: 92px; height: 2px; overflow: hidden;
  background: linear-gradient(90deg, rgb(104 117 245 / .55), rgb(42 171 238 / .55));
}
body[data-page="tg-clone"] .tgc-flow > i::after {
  content: ''; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; right: 0;
  background: #fff; box-shadow: 0 0 12px #8fd8ff; animation: tgcFlow 2.4s var(--au-ease-out) infinite;
}
@keyframes tgcFlow { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(-84px); opacity: 0; } }
html[dir="ltr"] body[data-page="tg-clone"] .tgc-flow > i::after { right: auto; left: 0; animation-direction: reverse; }

/* ---------------------------------------------------------------- layout */
body[data-page="tg-clone"] .tgc-grid {
  display: grid; gap: 16px; align-items: start; margin: 0;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}
body[data-page="tg-clone"] .tgc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
body[data-page="tg-clone"] .tgc-grid .au-tile { margin: 0; border: 0; padding: 22px; }

/* step headers */
body[data-page="tg-clone"] .step-head { flex-wrap: nowrap; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
body[data-page="tg-clone"] .step-head > div { min-width: 0; flex: 1; }
body[data-page="tg-clone"] .step-head h3 { margin: 0 0 3px; font-size: 16px; font-weight: 900; }
body[data-page="tg-clone"] .step-head small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
body[data-page="tg-clone"] .step-head > .tgc-step {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; margin: 0;
  font-weight: 900; font-size: 13px; color: #fff; background: var(--au-grad); border: 0;
  box-shadow: 0 8px 22px -8px rgb(var(--au-v-rgb) / .9);
}
body[data-page="tg-clone"] .step-head > .count-chip { flex: none; margin-inline-start: auto; align-self: center; }

/* setup fields */
body[data-page="tg-clone"] .tgc-fields { gap: 14px; }
body[data-page="tg-clone"] .tgc-fields label { margin: 0; }
body[data-page="tg-clone"] .tgc-fields select, body[data-page="tg-clone"] .tgc-fields input { width: 100%; height: 44px; margin: 0; }

/* launch */
body[data-page="tg-clone"] .tgc-launch.au-tile { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 16px; }
body[data-page="tg-clone"] .tgc-launch > div { min-width: 0; }
body[data-page="tg-clone"] .tgc-launch h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--text-strong); }
body[data-page="tg-clone"] .tgc-launch p { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
body[data-page="tg-clone"] .tgc-progress { margin-top: 12px; height: 8px; }
body[data-page="tg-clone"] .tgc-progress > i {
  display: block; height: 100%; width: 0; border-radius: inherit; background: var(--au-grad);
  box-shadow: 0 0 12px rgb(var(--au-v-rgb) / .7); transition: width .6s var(--au-ease);
}
body[data-page="tg-clone"] #tgc-start { width: 100%; height: 46px; font-size: 14px; }

/* channel list */
body[data-page="tg-clone"] .tgc-tools { display: flex; gap: 10px; margin-bottom: 12px; }
body[data-page="tg-clone"] .tgc-tools input { flex: 1; min-width: 0; height: 42px; margin: 0; }
body[data-page="tg-clone"] .tgc-tools select { width: auto; min-width: 200px; height: 42px; margin: 0; }
body[data-page="tg-clone"] .tgc-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
body[data-page="tg-clone"] .tgc-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px;
  max-height: min(640px, calc(100dvh - 330px)); min-height: 240px; overflow: auto; padding: 2px; align-content: start;
}
body[data-page="tg-clone"] .tgc-list > .au-empty, body[data-page="tg-clone"] .tgc-list > .au-banner { grid-column: 1 / -1; }
body[data-page="tg-clone"] .tgc-item {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0;
  padding: 10px 12px; border-radius: 14px; cursor: pointer;
  background: rgb(255 255 255 / .03); border: 1px solid var(--au-line);
  transition: background .25s, border-color .25s, transform .4s var(--au-ease-snap);
}
body[data-page="tg-clone"] .tgc-item:hover { background: rgb(255 255 255 / .055); border-color: var(--au-line-strong); }
body[data-page="tg-clone"] .tgc-item:active { transform: scale(.985); }
body[data-page="tg-clone"] .tgc-item:has(input:checked) { border-color: rgb(var(--au-v-rgb) / .6); background: rgb(var(--au-v-rgb) / .12); box-shadow: 0 0 18px -6px rgb(var(--au-v-rgb) / .6); }
body[data-page="tg-clone"] .tgc-item.linked { opacity: .7; cursor: default; }
body[data-page="tg-clone"] .tgc-item input { width: 18px; height: 18px; margin: 0; }
body[data-page="tg-clone"] .tgc-ic { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; font-weight: 900; color: #fff; }
body[data-page="tg-clone"] .tgc-item-info { min-width: 0; }
body[data-page="tg-clone"] .tgc-item-info b { font-size: 13.5px; font-weight: 800; color: var(--text-strong); }
body[data-page="tg-clone"] .tgc-item-info small { font-size: 12px; text-align: end; }
body[data-page="tg-clone"] .tgc-item .badge { grid-column: 3; justify-self: start; max-width: 100%; font-size: 11.5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  body[data-page="tg-clone"] .tgc-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page="tg-clone"] .tgc-side { display: contents; }
  body[data-page="tg-clone"] .tgc-setup { order: 1; }
  body[data-page="tg-clone"] .tgc-channels { order: 2; }
  body[data-page="tg-clone"] .tgc-launch { order: 3; }
  body[data-page="tg-clone"] .tgc-list { max-height: 520px; }
}
@media (max-width: 760px) {
  body[data-page="tg-clone"] .tgc-page { gap: 16px; }
  body[data-page="tg-clone"] .tgc-flow { display: none; }
  body[data-page="tg-clone"] .tgc-grid { gap: 12px; }
  body[data-page="tg-clone"] .tgc-grid .au-tile { padding: 18px 16px; }
  body[data-page="tg-clone"] .step-head { flex-wrap: wrap; }
  body[data-page="tg-clone"] .tgc-tools { flex-direction: column; }
  body[data-page="tg-clone"] .tgc-tools select { width: 100%; min-width: 0; }
  body[data-page="tg-clone"] .tgc-bulk .btn { flex: 1 1 100%; }
  body[data-page="tg-clone"] .tgc-list { grid-template-columns: minmax(0, 1fr); max-height: 60vh; min-height: 0; }
}

/* ---------------------------------------------------------------- light theme */
html[data-theme="light"] body[data-page="tg-clone"] .tgc-intro .au-kicker { color: #0b6fb3; }
html[data-theme="light"] body[data-page="tg-clone"] .tgc-more summary { background: rgb(30 30 80 / .04); }
html[data-theme="light"] body[data-page="tg-clone"] .tgc-item { background: rgb(30 30 80 / .025); }
html[data-theme="light"] body[data-page="tg-clone"] .tgc-item:hover { background: rgb(30 30 80 / .05); }
html[data-theme="light"] body[data-page="tg-clone"] .tgc-item:has(input:checked) { background: rgb(var(--au-v-rgb) / .1); }
html[data-theme="light"] body[data-page="tg-clone"] .tgc-progress { background: rgb(30 30 80 / .08); }
html[data-theme="light"] body[data-page="tg-clone"] .tgc-flow > i::after { background: #2aabee; }
