*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #34D59A;
  --green-dim: rgba(52,213,154,.1);
  --green-border: rgba(52,213,154,.2);
  --blue: #A7DDFF;
  --bg: #0a0a0a;
  --card: #111;
  --border: rgba(255,255,255,.08);
  --border-light: rgba(255,255,255,.14);
  --text: #fff;
  --muted: rgba(255,255,255,.4);
  --sub: rgba(255,255,255,.6);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,.1);
  --red-border: rgba(239,68,68,.2);
}

html {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: none; }
a:hover { opacity: .8; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.4px;
  flex-shrink: 0;
}
.logo-link:hover { opacity: 1; }
.logo-img { width: 30px; height: 30px; }
.logo-text { color: #fff; letter-spacing: -0.3px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.header-nav a {
  color: var(--sub);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.header-nav a:hover { color: #fff; opacity: 1; }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.avatar { width: 30px; height: 30px; border-radius: 50%; }
.user-name { font-size: 13px; color: var(--sub); }
.btn-text { font-size: 14px; color: var(--sub); font-weight: 500; }
.btn-text:hover { color: #fff; opacity: 1; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--green);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: #2ecf92; box-shadow: 0 0 24px rgba(52,213,154,.25); opacity: 1; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary.lg { padding: 13px 26px; font-size: 15px; font-weight: 600; }
.btn-primary.full { width: 100%; padding: 14px; font-size: 15px; border-radius: 12px; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: rgba(255,255,255,.8);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); color: #fff; opacity: 1; }
.btn-outline.lg { padding: 13px 26px; font-size: 15px; }

.btn-danger {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: #f87171;
  font-weight: 500;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  display: inline-block;
  text-align: center;
  transition: .15s;
}
.btn-danger:hover { background: rgba(239,68,68,.18); opacity: 1; }

/* ===== MAIN ===== */
.main { min-height: calc(100vh - 120px); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 1200px;
  margin: 0 auto;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--sub); opacity: 1; }

/* ===== LANDING ===== */
.landing { }

/* Hero */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 30%, rgba(52,213,154,.14) 0%, rgba(52,213,154,.04) 40%, transparent 70%);
}
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}
.hero-bars {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 0 40px 0 0;
  opacity: .28;
  pointer-events: none;
}
.hero-bar {
  width: 3px;
  border-radius: 2px;
  animation: barPulse var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  background: linear-gradient(to top, transparent 0%, var(--green) 40%, #A7DDFF 60%, var(--green) 80%, transparent 100%);
}
@keyframes barPulse {
  0%, 100% { transform: scaleY(.25); opacity: .3; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 32px 110px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 32px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.dot.yellow { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.hero-title {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
  max-width: 600px;
}
@media(max-width:640px) { .hero-title { letter-spacing: -1.5px; } }

.hero-sub {
  color: var(--sub);
  font-size: 18px;
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 44px;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Features */
.features-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--sub);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media(max-width:640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #000;
  padding: 32px;
  transition: background .2s;
}
.feature-card:hover { background: var(--card); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.65;
}

/* How it works */
.steps-wrap {
  border-bottom: 1px solid var(--border);
  background: #0f0f0f;
}
.steps-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media(max-width:640px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.step h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.6;
}

/* UI Preview */
.preview-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
}
.preview-frame {
  background: #0a0a0a;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(52,213,154,.05);
}
.preview-bar {
  background: #111;
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.preview-dot.r { background: #ef4444; } .preview-dot.y { background: #f59e0b; } .preview-dot.g { background: #22c55e; }
.preview-url {
  margin-left: 14px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  padding: 3px 14px;
  border-radius: 5px;
}
.preview-body { padding: 24px 28px 28px; }
.preview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.preview-logo { font-weight: 700; color: var(--green); font-size: 15px; }
.preview-user { color: var(--muted); font-size: 12px; }
.preview-heading { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.preview-channel-row {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
}
.preview-ch-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.tiktok-icon { background: #111; color: #fff; border: 1px solid rgba(255,255,255,.1); }
.yt-icon { background: rgba(255,0,0,.08); color: #ff4444; border: 1px solid rgba(255,0,0,.15); }
.preview-ch-info { flex: 1; line-height: 1.3; }
.preview-ch-info strong { font-size: 14px; }
.preview-ch-info small { color: var(--muted); font-size: 11px; }
.preview-badge.connected {
  background: var(--green-dim); color: var(--green);
  border: 1px solid var(--green-border); border-radius: 999px;
  padding: 3px 12px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.preview-badge.disconnected {
  background: rgba(255,255,255,.04); color: var(--muted);
  border-radius: 999px; padding: 3px 12px; font-size: 11px; white-space: nowrap;
}
.preview-action {
  background: var(--green); color: #000; font-weight: 700;
  font-size: 11px; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.preview-action.outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); font-weight: 400;
}

/* CTA section */
.cta-wrap {
  background: #000;
}
.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cta-inner h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  max-width: 560px;
}
.cta-inner p {
  color: var(--sub);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.6;
}
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== INNER PAGES ===== */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-content { padding: 60px 0 80px; }
.page-content.narrow { max-width: 680px; }
.page-title { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.page-sub { color: var(--sub); font-size: 15px; margin-bottom: 36px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; margin-bottom: 28px;
}
.back-link:hover { color: var(--sub); opacity: 1; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: var(--green-dim); border: 1px solid var(--green-border); color: #4ade80; }
.alert-error { background: var(--red-dim); border: 1px solid var(--red-border); color: #f87171; }

/* Channel cards */
.channels-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.channel-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px;
}
.channel-card.connected { border-color: rgba(52,213,154,.15); }
.channel-info { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.channel-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tt-bg { background: #0a0a0a; border: 1px solid rgba(255,255,255,.08); }
.yt-bg { background: rgba(255,0,0,.07); border: 1px solid rgba(255,0,0,.12); }
.channel-label { font-weight: 600; font-size: 15px; }
.channel-account { font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge-connected {
  margin-left: auto;
  background: var(--green-dim); color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: 999px; padding: 3px 12px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.badge-disconnected {
  margin-left: auto;
  background: rgba(255,255,255,.04); color: var(--muted);
  border-radius: 999px; padding: 3px 12px; font-size: 11px; white-space: nowrap;
}
.channel-actions { display: flex; gap: 10px; }

/* Publish CTA */
.publish-cta {
  background: var(--green-dim); border: 1px solid var(--green-border);
  border-radius: 14px; padding: 24px;
  display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px;
}
.publish-cta-icon {
  width: 44px; height: 44px; background: rgba(52,213,154,.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.publish-cta h3 { font-weight: 600; margin-bottom: 4px; }
.publish-cta p { color: var(--sub); font-size: 13px; margin-bottom: 14px; }

/* Sandbox note */
.sandbox-info {
  background: rgba(245,158,11,.05); border: 1px solid rgba(245,158,11,.15);
  border-radius: 12px; padding: 14px 18px;
  display: flex; gap: 10px; align-items: flex-start;
}
.sandbox-info p { font-size: 13px; color: var(--sub); }

/* Login */
.center-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 160px); padding: 40px 24px;
}
.login-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: 20px; padding: 44px 40px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 0 60px rgba(52,213,154,.05);
}
.login-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 8px; }
.subtitle { color: var(--sub); font-size: 15px; margin-bottom: 24px; }
.feature-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.pill {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 14px; font-size: 12px; color: var(--sub);
}
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #111; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; transition: .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.btn-google:hover { background: #f0f0f0; opacity: 1; }
.sandbox-note {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 20px; font-size: 12px; color: var(--muted);
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #d1d5db; margin-bottom: 8px; }
.form-group input[type="text"],
.form-group select {
  width: 100%; background: var(--card);
  border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
  outline: none; transition: border-color .15s;
  font-family: inherit;
}
.form-group input[type="text"]:focus,
.form-group select:focus { border-color: rgba(52,213,154,.4); }
.form-group input::placeholder { color: rgba(255,255,255,.2); }
.form-group select option { background: #111; }

/* Dropzone */
.dropzone {
  background: var(--card); border: 2px dashed var(--border);
  border-radius: 12px; padding: 40px 20px; text-align: center;
  cursor: pointer; transition: .15s;
}
.dropzone:hover, .dropzone.over { border-color: rgba(52,213,154,.4); background: var(--green-dim); }
.dropzone.has-file { border-color: rgba(52,213,154,.4); background: var(--green-dim); }
.dropzone p { color: var(--sub); font-size: 14px; margin-top: 12px; }
.dropzone small { color: var(--muted); font-size: 12px; }
.dropzone .green { color: var(--green); }

/* Progress */
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.progress-bar { height: 4px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
#progress-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; width: 0; }

.terms-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.terms-note a { color: var(--muted); text-decoration: underline; }

/* Result box */
.result-success {
  background: var(--green-dim); border: 1px solid var(--green-border);
  border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 20px;
}
.result-success h3 { color: var(--green); font-size: 18px; margin-bottom: 6px; }
.result-success p { color: var(--sub); font-size: 13px; }
.result-success code {
  font-family: monospace; font-size: 11px; background: rgba(255,255,255,.05);
  padding: 4px 10px; border-radius: 6px; display: inline-block; margin-top: 8px;
}
.result-error {
  background: var(--red-dim); border: 1px solid var(--red-border);
  border-radius: 14px; padding: 20px; margin-bottom: 20px;
}
.result-error p { color: #f87171; font-size: 14px; }

/* Legal / Text pages */
.text-page h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.text-page > p:first-of-type { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.text-page > p { color: var(--sub); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.text-page h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; padding-top: 36px; border-top: 1px solid var(--border); }
.text-page h2:first-of-type { border-top: none; padding-top: 0; }
.text-page h3 { font-size: 15px; font-weight: 600; color: #d1d5db; margin: 20px 0 8px; }
.text-page p { color: var(--sub); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.text-page a { color: var(--green); }
.text-page code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12.5px; background: rgba(255,255,255,.07);
  padding: 2px 7px; border-radius: 5px; color: #a5f3c0;
}

.legal-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.legal-list li {
  color: var(--sub); font-size: 15px; line-height: 1.75;
  padding: 4px 0 4px 20px; position: relative;
}
.legal-list li::before {
  content: "·"; position: absolute; left: 6px; color: var(--green);
}

/* Publish form page wrapper */
.publish-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ===== DASHBOARD HEADER ===== */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.dash-header .btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===== PROFILE CARDS GRID ===== */
.pcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  min-height: 180px;
}
.pcard:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  opacity: 1;
}

.pcard-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}
.pcard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pcard-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-menu {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.pcard-menu:hover {
  color: var(--red);
  background: var(--red-dim);
}

.pcard-preview {
  flex: 1;
  margin: 12px 16px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcard-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}
.pcard-ch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px 3px 8px;
  transition: color .15s, border-color .15s, background .15s;
}
.pcard-ch.active {
  color: var(--green);
  background: var(--green-dim);
  border-color: var(--green-border);
}

.pcards-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 24px;
  color: var(--muted);
  text-align: center;
}

/* ===== PROFILE HERO ===== */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.profile-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-hero .page-title { margin-bottom: 0; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: #161616;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.modal-sub {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 24px;
}
.modal-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
  outline: none;
  margin-bottom: 20px;
  transition: border-color .15s;
}
.modal-input:focus { border-color: var(--green); }
.modal-input::placeholder { color: var(--muted); }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== API KEYS PAGE ===== */
.apikey-create-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.apikeys-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.apikey-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  transition: background .1s;
}
.apikey-row:hover { background: #161616; }
.apikey-info { flex: 1; min-width: 0; }
.apikey-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.apikey-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apikey-prefix { font-family: 'SF Mono','Fira Code',monospace; font-size: 12px; color: var(--sub); background: rgba(255,255,255,.05); padding: 2px 8px; border-radius: 5px; }
.apikey-date { font-size: 12px; color: var(--muted); }
.btn-danger.sm { padding: 5px 12px; font-size: 12px; }
.btn-outline.sm { padding: 5px 12px; font-size: 12px; }
.apikey-new-box { flex-direction: column; align-items: flex-start; gap: 10px; }
.apikey-reveal-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.apikey-reveal { font-family: 'SF Mono','Fira Code',monospace; font-size: 13px; color: var(--green); background: rgba(52,213,154,.08); border: 1px solid var(--green-border); padding: 8px 14px; border-radius: 8px; word-break: break-all; }
.docs-hint { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.docs-hint a { color: var(--green); }

/* ===== DASHBOARD API HINT BOX ===== */
.api-hint-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.api-hint-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(167,221,255,.08);
  border: 1px solid rgba(167,221,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A7DDFF;
  flex-shrink: 0;
}
.api-hint-body { flex: 1; min-width: 200px; }
.api-hint-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.api-hint-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.api-hint-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color .15s;
}
.back-link:hover { color: #fff; opacity: 1; }
