/* ToolNet TikTok Publisher — dark theme, TikTok accents (#25F4EE cyan / #FE2C55 pink) */
:root {
  --bg: #0b0b12;
  --bg-2: #10101a;
  --card: #161624;
  --card-2: #1c1c2e;
  --line: #262640;
  --line-soft: #1e1e32;
  --ink: #f4f5fa;
  --muted: #9aa0b5;
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #ff5c5c;
  --grad: linear-gradient(100deg, var(--cyan), #7c5cff 55%, var(--pink));
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(700px 320px at 85% -5%, rgba(254, 44, 85, 0.16), transparent 60%),
    radial-gradient(700px 320px at 5% 0%, rgba(37, 244, 238, 0.12), transparent 60%),
    var(--bg);
  line-height: 1.6;
}
a { color: var(--cyan); }
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
header.top .brand {
  font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em;
}
header.top .brand span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
header.top nav a { color: #c6cbdd; text-decoration: none; margin-left: 18px; font-size: 14px; font-weight: 600; }
header.top nav a:hover { color: #fff; }
header.top nav a:last-child {
  background: var(--grad); color: #fff;
  padding: 8px 16px; border-radius: 999px;
}
main { max-width: 1160px; margin: 0 auto; padding: 32px 20px 64px; }
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #141428, #1d1030 55%, #2a0f22);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 20px;
  padding: 56px 40px;
  margin-bottom: 32px;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 244, 238, 0.28), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -55% -8%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.30), transparent 65%);
  pointer-events: none;
}
.hero h1 { position: relative; z-index: 1; margin: 0 0 14px; font-size: 40px; line-height: 1.15; letter-spacing: -0.03em; }
.hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p { position: relative; z-index: 1; color: #c6cbdd; font-size: 17px; max-width: 620px; }
.badge {
  position: relative; z-index: 1;
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid rgba(37, 244, 238, 0.45);
  background: rgba(37, 244, 238, 0.08);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 18px;
}
.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 6px 24px rgba(254, 44, 85, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 10px 30px rgba(254, 44, 85, 0.45); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--cyan); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
section.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 24px;
}
section.card h2 { margin-top: 0; font-size: 23px; letter-spacing: -0.02em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature {
  border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
  background: var(--card-2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(37, 244, 238, 0.5); }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature h3::before { content: "◆ "; color: var(--cyan); font-size: 12px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps li { counter-increment: step; margin-bottom: 16px; padding-left: 48px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-weight: 800; text-align: center; line-height: 32px;
}
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary:hover { color: var(--cyan); }
footer {
  border-top: 1px solid var(--line-soft);
  padding: 24px 20px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); margin: 0 8px; }
footer a:hover { color: var(--cyan); }

/* ---- forms ---- */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type="text"], input[type="url"], input[type="number"], select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: var(--bg-2);
  color: var(--ink);
}
input[type="text"]:focus, input[type="url"]:focus, input[type="number"]:focus, select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.18);
}
input[type="file"] { margin-top: 4px; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.checkrow { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 500; }
.checkrow input { width: 18px; height: 18px; accent-color: var(--pink); }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.radio-row input { accent-color: var(--pink); }
.account-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(34, 197, 94, 0.10); border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
}
.account-box img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); }
.account-box .name { font-weight: 700; }
.account-box .sub { color: var(--muted); font-size: 13px; }
.notice {
  border: 1px solid rgba(250, 204, 21, 0.45); background: rgba(250, 204, 21, 0.08);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 16px 0; color: #fde68a;
}
.error {
  border: 1px solid rgba(255, 92, 92, 0.5); background: rgba(255, 92, 92, 0.10); color: #ffb4b4;
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 16px 0;
  display: none; white-space: pre-wrap;
}
.status-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  margin-top: 20px; display: none; background: var(--card-2);
}
.status-box .big { font-size: 18px; font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; }
table.jobs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.jobs th, table.jobs td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
@media (max-width: 640px) {
  header.top { padding: 12px 16px; flex-wrap: nowrap; }
  header.top .brand { font-size: 17px; white-space: nowrap; }
  header.top nav { display: flex; align-items: center; }
  header.top nav a { display: none; margin-left: 0; }
  header.top nav a:last-child { display: inline-block; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 27px; }
  .hero h1 span { display: block; margin-top: 6px; }
  .hero p { font-size: 16px; }
  section.card { padding: 22px; }
}
