/* YouTube Automation: 4D dark studio theme.
   Design direction: MEDIA-VIDEO-003, Structure a YouTube Video Script
   with a Strong Hook (hook first, retention throughout, conversational).
   Deep charcoal studio background, cyan glow, red play accent, layered
   depth on every card. Login and signup are glassy: dark, cyan glow,
   frosted glass card, cyan gradient button. */
* { box-sizing: border-box; }
:root {
  --bg: #070b14;
  --bg2: #0b1220;
  --surface: #101a2e;
  --surface2: #16233d;
  --text: #eef4ff;
  --muted: #9db0cc;
  --cyan: #22d3ee;
  --cyan2: #06b6d4;
  --red: #ff3b30;
  --green: #34d399;
  --amber: #fbbf24;
  --border: rgba(148, 184, 255, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(255, 59, 48, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2) 60%, var(--bg));
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--cyan); }
a:hover { color: #7ee7f7; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; margin-right: 6px;
  background: linear-gradient(135deg, #ff3b30, #ff6b61);
  color: #fff; font-size: 13px; padding-left: 2px;
  box-shadow: 0 6px 18px rgba(255, 59, 48, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 7px 10px; border-radius: 9px;
  font-size: 14px; font-weight: 600;
}
.nav a:hover { color: var(--text); background: rgba(148, 184, 255, 0.10); }
.nav a.active { color: var(--cyan); background: rgba(34, 211, 238, 0.12); }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 10px; border-radius: 9px; }
.linklike:hover { color: var(--text); background: rgba(148, 184, 255, 0.10); }
main { min-height: 60vh; }
h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin: 18px 0 12px; }
h2 { font-size: 24px; letter-spacing: -0.02em; margin: 34px 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.01em; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hero { padding: 64px 0 46px; position: relative; overflow: hidden; }
.hero h1 {
  background: linear-gradient(92deg, #fff 30%, #7ee7f7 65%, #22d3ee 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 720px; font-size: 17px; color: var(--muted); }
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface2); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.10); }
.btn.primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  border-color: rgba(34, 211, 238, 0.6); color: #04222b;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255, 59, 48, 0.14); border-color: rgba(255, 59, 48, 0.4); color: #ffb4ae; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(160deg, var(--surface), var(--bg2));
  border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: perspective(900px) rotateX(0.4deg);
}
.card p { color: var(--muted); }
.card p strong, .card li strong { color: var(--text); }
.agent-card { position: relative; overflow: hidden; }
.agent-card::after {
  content: ""; position: absolute; inset: auto -30% -55% -30%; height: 70%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.14), transparent);
  pointer-events: none;
}
.agent-initial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, #22d3ee, #0e7490); color: #04222b;
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.role { color: var(--cyan); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.stat { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(148, 184, 255, 0.14); color: var(--text); border: 1px solid var(--border);
}
.badge.green { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.4); color: #a7f3d0; }
.badge.red { background: rgba(255, 59, 48, 0.16); border-color: rgba(255, 59, 48, 0.4); color: #fecaca; }
.badge.amber { background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.4); color: #fde68a; }
.badge.blue { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.4); color: #a5f3fc; }
.error { background: rgba(255, 59, 48, 0.12); border: 1px solid rgba(255, 59, 48, 0.4); color: #fecaca; padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.success { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #a7f3d0; padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.warn { background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.35); color: #fde68a; padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.notice { background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.3); color: #a5f3fc; padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.7); color: var(--text); font: inherit; font-size: 15px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan2); outline-offset: 1px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.checklist { line-height: 1.7; color: var(--muted); }
.checklist li { margin-bottom: 6px; }
.postitem { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 10px 0; background: rgba(7, 11, 20, 0.5); }
.tabs { display: flex; gap: 8px; margin: 16px 0; }
.tabs button { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button.active { background: rgba(34, 211, 238, 0.16); color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dayhead { font-weight: 700; font-size: 12px; color: var(--muted); text-align: center; padding: 6px 0; }
.day { min-height: 92px; border: 1px solid var(--border); border-radius: 12px; padding: 6px; background: rgba(7, 11, 20, 0.45); }
.day.today { border-color: var(--cyan2); box-shadow: 0 0 0 1px var(--cyan2), 0 0 18px rgba(34, 211, 238, 0.25); }
.day .num { font-weight: 800; font-size: 13px; color: var(--muted); }
.chip { background: rgba(34, 211, 238, 0.16); border: 1px solid rgba(34, 211, 238, 0.35); color: #a5f3fc; border-radius: 8px; padding: 4px 6px; font-size: 12px; margin-top: 4px; cursor: grab; }
.chip.failed { background: rgba(255, 59, 48, 0.14); border-color: rgba(255, 59, 48, 0.4); color: #fecaca; }
.footer { border-top: 1px solid var(--border); padding: 26px 20px 40px; color: var(--muted); font-size: 14px; }
.footer p { max-width: 1080px; margin: 8px auto; }
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.show-card {
  border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  background: linear-gradient(150deg, var(--surface2), var(--bg2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: perspective(800px) rotateY(-4deg);
}
.show-card:nth-child(2) { transform: perspective(800px) rotateY(0deg) translateY(-8px); }
.show-card:nth-child(3) { transform: perspective(800px) rotateY(4deg); }
.show-agent { font-weight: 800; color: var(--text); }
.show-role { color: var(--cyan); font-size: 13px; font-weight: 700; margin-left: 8px; }
.show-card p { color: var(--muted); font-size: 14px; }
/* Glassy auth */
body.auth { background: #05080f; }
.auth-scene {
  position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; overflow: hidden;
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.orb1 { width: 420px; height: 420px; background: #0891b2; top: -120px; left: -80px; }
.orb2 { width: 360px; height: 360px; background: #155e75; bottom: -140px; right: -60px; }
.glass-card {
  position: relative; z-index: 2; width: 100%; max-width: 460px; padding: 32px;
  background: rgba(16, 26, 46, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.30);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(34, 211, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.glass-brand { font-weight: 800; font-size: 15px; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.glass-sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.glass-card h1 { margin-top: 18px; }
.voice-panel {
  border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 16px; padding: 16px;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.08), rgba(7, 11, 20, 0.6));
}
.voice-panel.listening { box-shadow: 0 0 0 2px var(--cyan), 0 0 34px rgba(34, 211, 238, 0.45); }
.mic-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #0891b2); color: #04222b; font-size: 22px;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.mic-btn.on { background: linear-gradient(135deg, #ff3b30, #ff6b61); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); } 50% { box-shadow: 0 0 0 12px rgba(255, 59, 48, 0); } }
.quota-bar { height: 10px; border-radius: 999px; background: rgba(148, 184, 255, 0.15); overflow: hidden; }
.quota-fill { height: 100%; background: linear-gradient(90deg, #22d3ee, #0891b2); border-radius: 999px; }
.quota-fill.hot { background: linear-gradient(90deg, #fbbf24, #ff3b30); }
.cover { width: 100%; border-radius: 14px; border: 1px solid var(--border); }
@media (max-width: 640px) {
  .nav { gap: 0; }
  .nav a { padding: 6px 7px; font-size: 13px; }
  .cal { grid-template-columns: repeat(7, 1fr); gap: 3px; }
  .day { min-height: 64px; padding: 3px; }
  .chip { font-size: 10px; }
  .glass-card { padding: 22px; }
}
