/* ==========================================================================
   TIKTOK QUALITY MODERN MASTER THEME FOR HXPPY
   Elevates the entire UI to match the Timed Cards aesthetic
   ========================================================================== */

:root {
  --bg: #07070f;
  --surface: #10101e;
  --surface-glass: rgba(16, 16, 30, 0.75);
  --line: rgba(255, 255, 255, 0.1);
  --line-glow: rgba(83, 233, 245, 0.25);
  --text: #f4f4fd;
  --muted: #a4a4c2;
  --cyan: #53e9f5;
  --pink: #fe2c55;
  --violet: #aa91ff;
}

body {
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(83, 233, 245, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(254, 44, 85, 0.04) 0%, transparent 45%);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Floating Glass Header */
header {
  position: sticky;
  top: 14px;
  z-index: 100;
  max-width: 1080px;
  margin: 0 auto 28px;
  padding: 8px 14px 8px 20px !important;
  background: rgba(14, 16, 24, 0.78) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 100px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav {
  display: flex;
  align-items: center;
  gap: 4px !important;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

header nav a {
  padding: 8px 16px !important;
  border-radius: 100px !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #9090aa !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

header nav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

header nav a.active {
  color: #051018 !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

header nav a#account-nav {
  background: rgba(83, 233, 245, 0.1);
  color: var(--cyan) !important;
  border: 1px solid rgba(83, 233, 245, 0.2) !important;
}

header nav a#account-nav:hover {
  background: rgba(83, 233, 245, 0.2);
  color: #fff !important;
}

header nav a#account-nav.active {
  background: var(--cyan) !important;
  color: #051018 !important;
}

.brand {
  gap: 12px !important;
}

.brand img {
  filter: drop-shadow(0 0 8px rgba(83, 233, 245, 0.5));
}

.brand b {
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0.5px !important;
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header nav a {
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
}

header nav a:hover,
header nav a.active {
  color: #fff !important;
  background: rgba(83, 233, 245, 0.12) !important;
  border-color: transparent !important;
  box-shadow: 0 0 15px rgba(83, 233, 245, 0.2) !important;
}

/* Hero & Announcement upgrade */
.announcement {
  background: rgba(22, 22, 38, 0.85) !important;
  border: 1px solid rgba(83, 233, 245, 0.2) !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(14px);
}

.hero {
  padding: 24px 0 32px !important;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 54px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.hero h1 em {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-chips span {
  background: rgba(20, 20, 36, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 30px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
}

/* Primary and CTA Buttons */
.primary,
.choose,
.download,
.analyze-picker {
  background: linear-gradient(135deg, var(--cyan) 0%, #29cfdc 100%) !important;
  color: #081418 !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(83, 233, 245, 0.3) !important;
  transition: all 0.22s ease !important;
}

.primary:not(:disabled):hover,
.choose:hover,
.download:hover,
.analyze-picker:hover {
  background: linear-gradient(135deg, #7cf4fd 0%, #4ae3ef 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px rgba(83, 233, 245, 0.45) !important;
}

.secondary,
.clear-file,
.cancel,
.fileline button {
  background: rgba(22, 22, 38, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.secondary:hover,
.clear-file:hover,
.fileline button:hover {
  background: rgba(35, 35, 58, 0.9) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 15px rgba(83, 233, 245, 0.18) !important;
}

/* Workspace Dashboard Telemetry Cards */
.overview-grid {
  gap: 16px !important;
}

.overview-card {
  background: rgba(16, 16, 28, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4) !important;
  transition: border-color 0.25s, transform 0.25s !important;
}

.overview-card:hover {
  border-color: var(--cyan) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(83, 233, 245, 0.15) !important;
}

.metric-label {
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: var(--muted) !important;
  text-transform: uppercase !important;
}

.overview-card > b {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin: 14px 0 6px !important;
}

.engine-card > b {
  background: linear-gradient(90deg, var(--cyan) 0%, #a4f7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Optimizer Workspace & Shell */
.optimizer-shell {
  background: rgba(16, 16, 28, 0.82) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(83, 233, 245, 0.2) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(83, 233, 245, 0.05) !important;
}

.tiktok-layout .drop {
  border: 2px dashed rgba(83, 233, 245, 0.35) !important;
  border-radius: 18px !important;
  background: rgba(10, 10, 20, 0.4) !important;
  transition: all 0.25s ease !important;
}

.tiktok-layout .drop:hover,
.tiktok-layout .drop.over {
  border-color: var(--cyan) !important;
  background: rgba(83, 233, 245, 0.08) !important;
  box-shadow: inset 0 0 30px rgba(83, 233, 245, 0.15), 0 0 25px rgba(83, 233, 245, 0.2) !important;
}

.upload-icon {
  color: var(--cyan) !important;
  filter: drop-shadow(0 0 12px rgba(83, 233, 245, 0.6)) !important;
}

/* Video Preview Player */
video {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Sidebar & Pipeline Cards */
.tiktok-sidebar .status-card,
.tiktok-sidebar .tiktok-result-card {
  background: rgba(16, 16, 28, 0.82) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
}

.tiktok-status-dot {
  width: 9px !important;
  height: 9px !important;
  box-shadow: 0 0 12px var(--cyan) !important;
}

.pipeline li.current span,
.pipeline li.complete span {
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
  box-shadow: 0 0 10px rgba(83, 233, 245, 0.4) !important;
}

/* Result Card */
.success-icon {
  font-size: 36px !important;
  color: var(--cyan) !important;
  filter: drop-shadow(0 0 14px var(--cyan)) !important;
}

/* Account & Other Pages */
.account-panel,
.page-panel,
.analyzer-panel {
  background: rgba(16, 16, 28, 0.82) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.plans-grid article {
  background: rgba(10, 10, 18, 0.7) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.25s ease !important;
}

.plans-grid article:hover {
  transform: translateY(-6px) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(83, 233, 245, 0.2) !important;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--muted) !important;
  padding: 30px 0 !important;
}

/* ==========================================================================
   HXPPY PRO TELEMETRY HUD & CYBERNETIC BADGES
   ========================================================================== */
.hxppy-telemetry-hud,
.rtx-telemetry-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hxppy-hud-pill,
.rtx-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(12, 12, 24, 0.75);
  border: 1px solid rgba(83, 233, 245, 0.2);
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.hxppy-hud-pill:hover,
.rtx-hud-pill:hover {
  border-color: var(--cyan);
  background: rgba(83, 233, 245, 0.08);
  box-shadow: 0 0 15px rgba(83, 233, 245, 0.2);
  transform: translateY(-1px);
}

.hxppy-hud-pill b,
.rtx-hud-pill b {
  color: #fff;
  font-weight: 800;
}

.hxppy-hud-dot,
.rtx-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14;
  animation: tc-pulse 1.8s infinite ease-in-out;
}


/* ==========================================================================
   HUMAN-CRAFTED STUDIO UI ENHANCEMENTS
   Removes amateur AI clichés & elevates to Linear/Frame.io craftsmanship
   ========================================================================== */

/* Studio Heading & Quota Bar */
.studio-heading {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 32px 0 24px !important;
  text-align: left !important;
}

.studio-heading-left h2 {
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 6px 0 6px !important;
  color: #fff !important;
}

.studio-heading-left .subtitle {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin: 0 !important;
}

.studio-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--cyan);
  padding: 4px 10px;
  background: rgba(83, 233, 245, 0.08);
  border: 1px solid rgba(83, 233, 245, 0.2);
  border-radius: 100px;
  margin-bottom: 4px;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: tc-pulse 2s infinite ease-in-out;
}

.studio-quota-card {
  background: rgba(16, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 18px;
  backdrop-filter: blur(12px);
  min-width: 260px;
}

.studio-quota-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #8c8ca5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.studio-quota-card .tiktok-quota {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Studio Layout & Shell */
.studio-layout {
  gap: 24px;
  align-items: start;
}

.studio-shell {
  background: rgba(14, 16, 24, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Studio Dropzone */
.studio-drop {
  border: 1.5px dashed rgba(255, 255, 255, 0.15) !important;
  border-radius: 18px !important;
  background: rgba(10, 12, 18, 0.4) !important;
  padding: 44px 24px !important;
  min-height: 280px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.studio-drop[hidden] {
  display: none !important;
}

.studio-drop:hover,
.studio-drop.over {
  border-color: var(--cyan) !important;
  background: rgba(83, 233, 245, 0.03) !important;
  box-shadow: 0 0 35px rgba(83, 233, 245, 0.12), inset 0 0 30px rgba(83, 233, 245, 0.04) !important;
  transform: translateY(-2px);
}

.studio-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.studio-upload-icon {
  width: 56px;
  height: 56px;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.studio-drop:hover .studio-upload-icon {
  transform: scale(1.08) translateY(-2px);
}

.studio-drop-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em;
}

.studio-drop-sub {
  font-size: 13px !important;
  color: #8c8ca5 !important;
  max-width: 420px;
  margin: 0 0 20px !important;
  line-height: 1.6 !important;
}

.studio-format-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.studio-format-chips span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: #a0a0ba;
}

.studio-format-chips .chip-accent {
  background: rgba(83, 233, 245, 0.1);
  border-color: rgba(83, 233, 245, 0.3);
  color: var(--cyan);
}

/* Security Trust Strip */
.studio-security-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.sec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8c8ca5;
}

.sec-item svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* Video Preview Frame & Stats */
.studio-player-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.studio-player-wrap video {
  max-height: 380px !important;
  display: block;
  margin: 0 auto;
}

.studio-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 16px 0 !important;
}

.stat-cell {
  background: rgba(18, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.stat-cell small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8c8ca5;
  margin-bottom: 4px;
}

.stat-cell b {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-cell.highlight b {
  color: var(--cyan);
}

/* Actions Toolbar */
.optimizer-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.studio-start-btn {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
  color: #051018 !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
}

.studio-start-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 172, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.studio-start-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.clear-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #a0a0ba !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
}

.clear-file:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Right Sidebar Refinements */
.tiktok-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tiktok-sidebar .card {
  background: rgba(14, 16, 24, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.tiktok-sidebar h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em;
}

.tiktok-sidebar .subtitle {
  font-size: 12px !important;
  color: #8c8ca5 !important;
  margin-bottom: 16px !important;
}

/* Connected Timeline Pipeline */
ol.pipeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0 !important;
  list-style: none !important;
  position: relative;
  margin-top: 18px;
}

ol.pipeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 20px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

ol.pipeline li {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

ol.pipeline li span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #141620 !important;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #8c8ca5;
  transition: all 0.25s ease;
}

ol.pipeline li.current span {
  border-color: var(--cyan);
  background: rgba(83, 233, 245, 0.15) !important;
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(83, 233, 245, 0.35);
}

ol.pipeline li b {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  display: block;
}

ol.pipeline li small {
  font-size: 11px;
  color: #8c8ca5;
  display: block;
}

/* Download Results CTA */
#result {
  text-align: center;
  padding: 10px 0;
}

#result .success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: #39ff14;
  font-size: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

#result h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

#resultinfo {
  font-size: 12px;
  color: #a0a0ba;
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-actions .download {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
  color: #051018 !important;
  font-weight: 750 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  text-align: center;
  box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.result-actions .secondary {
  border-radius: 10px !important;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 900px) {
  .studio-layout {
    grid-template-columns: 1fr !important;
  }
  .studio-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .studio-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .studio-quota-card {
    width: 100%;
  }
}


/* ==========================================================================
   TOP TELEMETRY STRIP - MOVED TO TOP OF WORKSPACE
   ========================================================================== */
.studio-top-telemetry {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 24px 0 !important;
  padding: 10px 16px !important;
  background: rgba(14, 16, 24, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.studio-top-telemetry .hxppy-hud-pill {
  flex: 1 1 auto !important;
  justify-content: center !important;
  padding: 8px 16px !important;
  font-size: 11.5px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.studio-top-telemetry .hxppy-hud-pill:hover {
  border-color: var(--cyan) !important;
  background: rgba(83, 233, 245, 0.08) !important;
}


/* Pro Tips 120 FPS Grid */
.pro-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.pro-tip-card {
  background: rgba(18, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.pro-tip-card b {
  display: block;
  font-size: 13.5px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.pro-tip-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #c0c0d8;
  margin: 6px 0;
}

/* ==========================================================================
   HXPPY METHOD 3.5 — APPLE HIG PURE BLACK GLASS SYSTEM (REA CAPTURE)
   ========================================================================== */
:root {
  --zl-bg: #000000;
  --zl-card: #1C1C1E;
  --zl-card2: #2C2C2E;
  --zl-fill: #48484A;
  --zl-sep: rgba(84, 84, 88, 0.65);
  --zl-sep2: rgba(84, 84, 88, 0.4);
  --zl-l1: #f5f5f7;
  --zl-l2: rgba(235, 235, 245, 0.62);
  --zl-l3: rgba(235, 235, 245, 0.35);
  --zl-blue: #0A84FF;
  --zl-green: #30D158;
  --zl-zs1: rgba(255, 255, 255, 0.05);
  --zl-zs2: rgba(255, 255, 255, 0.075);
  --zl-zshade: inset 0 0.5px 0 rgba(255, 255, 255, 0.11), inset 0 -0.5px 0 rgba(0, 0, 0, 0.6);
  --zl-zelev: 0 1px 2px rgba(0, 0, 0, 0.55), 0 20px 48px rgba(0, 0, 0, 0.5);
  --zr-card: 32px;
  --zr-inset: 24px;
  --zr-ctl: 20px;
}

html, body {
  background: #000000 !important;
  color: var(--zl-l1) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 255, 255, 0.09), transparent),
    radial-gradient(ellipse 55% 40% at 50% 48%, rgba(10, 132, 255, 0.035), transparent);
  pointer-events: none;
  z-index: 0;
}

header {
  background: rgba(18, 18, 20, 0.72) !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 14px 42px rgba(0, 0, 0, 0.65) !important;
}

.brand b {
  background: linear-gradient(90deg, #fff 0%, #d1d1d6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.02em !important;
}

header nav a {
  border-radius: 999px !important;
  color: #a1a1a6 !important;
  font-weight: 600 !important;
}

header nav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
}

header nav a.active {
  background: #f5f5f7 !important;
  color: #000 !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2) !important;
}

header nav a#account-nav {
  background: #f5f5f7 !important;
  color: #000 !important;
  border: none !important;
  font-weight: 700 !important;
}

header nav a#account-nav:hover {
  background: #ffffff !important;
  color: #000 !important;
  transform: translateY(-1px);
}

/* ── 1. HERO (.hz) ──────────────────────────────────────────────────────── */
.hz {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 20px 44px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hz-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--zl-zs2);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e4e4ea;
  margin-bottom: 26px;
  box-shadow: var(--zl-zshade);
}

.hz-pill-logo {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.hz-title {
  font-size: clamp(42px, 6.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 800;
  margin: 0 0 18px;
}

.hz-sub {
  font-size: 17px;
  line-height: 1.62;
  color: #a1a1a6;
  max-width: 640px;
  margin: 0 auto 30px;
}

.hz-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.hz-btn:hover {
  transform: translateY(-1px);
}

.hz-btn-main {
  background: linear-gradient(135deg, var(--cyan) 0%, #29cfdc 100%) !important;
  color: #081418 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(83, 233, 245, 0.35) !important;
}

.hz-btn-main:hover {
  background: linear-gradient(135deg, #7cf4fd 0%, #4ae3ef 100%) !important;
  color: #081418 !important;
  box-shadow: 0 8px 28px rgba(83, 233, 245, 0.5) !important;
}

.hz-btn-discord {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  box-shadow: var(--zl-zshade);
}

.hz-btn-discord:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hz-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4ea !important;
  box-shadow: var(--zl-zshade);
}

.hz-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.hz-free {
  margin-top: 18px;
  font-size: 13.5px;
  color: #8e8e93;
}

.hz-free a {
  color: #f5f5f7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hz-feats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 40px;
}

.hz-feats .hz-f {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: #a1a1a6;
}

.hz-hd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 28px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--zl-zs2);
  box-shadow: var(--zl-zshade);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hz-feats .hz-f svg {
  width: 16px;
  height: 16px;
  color: #f5f5f7;
}

/* ── 2. SHARED PLAN SPEC STRIP (.plan-spec) ─────────────────────────────── */
.plan-spec {
  max-width: 980px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--zr-inset);
  background: var(--zl-zs1);
  box-shadow: var(--zl-zshade), var(--zl-zelev);
  overflow: hidden;
}

.plan-spec-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.07);
}

.plan-spec-cell:first-child {
  box-shadow: none;
}

.plan-spec-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(10, 132, 255, 0.14);
  color: #59b2ff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 0.5px rgba(10, 132, 255, 0.35);
}

.plan-spec-num {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.plan-spec-sub {
  font-size: 11.5px;
  color: #8e8e93;
  margin-top: 1px;
}

@media (max-width: 820px) {
  .plan-spec {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-spec-cell:nth-child(2n+1) {
    box-shadow: none;
  }
  .plan-spec-cell:nth-child(n+3) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
  .plan-spec-cell:nth-child(4) {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

/* ── 3. BEFORE & AFTER COMPARISON SLIDER (.cmp) ─────────────────────────── */
.cmp {
  padding: 10px 20px 36px;
  max-width: 1140px;
  margin: 0 auto;
}

.cmp-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "copy card"
    "notes card";
  gap: 24px 44px;
  align-items: center;
  background: rgba(16, 16, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  padding: clamp(32px, 4vw, 44px);
}

.cmp-copy {
  grid-area: copy;
}

.cmp-kick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cmp-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(83, 233, 245, 0.2);
}

.cmp-title {
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.cmp .sec-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

.cmp-notes {
  grid-area: notes;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cmp-side {
  background: rgba(10, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: left;
  transition: border-color 0.2s ease;
}

.cmp-side.cs-good {
  background: rgba(83, 233, 245, 0.06);
  border: 1px solid rgba(83, 233, 245, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cs-kick {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e8e93;
  margin-bottom: 6px;
}

.cs-good .cs-kick {
  color: var(--cyan);
}

.cs-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cs-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.cs-txt {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #a4a4c2;
}

.cs-good .cs-txt {
  color: #e2e8f0;
}

.cmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.cmp-card {
  grid-area: card;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cmp-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(83, 233, 245, 0.08);
  border: 1px solid rgba(83, 233, 245, 0.22);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.sim-before-filter {
  filter: blur(2.4px) contrast(0.92) saturate(0.85);
}

/* =========================================================
   LIGHTWEIGHT TIKTOK CREATOR SPOTLIGHT (Matching Main Obsidian Theme)
   ========================================================= */
.spotlight-stage {
  position: relative;
  width: min(1140px, 94%);
  margin: 10px auto 36px;
  height: clamp(480px, 60vh, 560px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 28, 0.88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  user-select: none;
}

.spotlight-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0.82;
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(10, 10, 20, 0.94) 0%, rgba(10, 10, 20, 0.8) 45%, rgba(10, 10, 20, 0.5) 100%),
              radial-gradient(ellipse at top left, rgba(83, 233, 245, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.spotlight-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 36px;
  box-sizing: border-box;
}

.spotlight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.spotlight-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: spotPulse 1.8s infinite;
}

@keyframes spotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.spotlight-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(83, 233, 245, 0.1);
  border: 1px solid rgba(83, 233, 245, 0.28);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.spotlight-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-top: auto;
  margin-bottom: auto;
}

.spotlight-info {
  max-width: 540px;
}

.spotlight-creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(10, 10, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  margin-bottom: 14px;
}

.spotlight-creator-ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.spotlight-creator-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spotlight-creator-stats {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 8px;
  margin-left: 4px;
}

.spotlight-tagline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.spotlight-title {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 12px;
}

.spotlight-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #c7c7d4;
  margin: 0 0 20px;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.spotlight-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan) 0%, #29cfdc 100%);
  color: #081418;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(83, 233, 245, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.spotlight-btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #7cf4fd 0%, #4ae3ef 100%);
  box-shadow: 0 6px 26px rgba(83, 233, 245, 0.5);
}

.spotlight-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
}

.spotlight-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.spotlight-cards-rail {
  display: flex;
  gap: 14px;
  align-items: center;
}

.spotlight-card-item {
  width: 130px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  background: #000;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
}

.spotlight-card-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(83, 233, 245, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(83, 233, 245, 0.25);
}

.spotlight-card-item img, .spotlight-card-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(83, 233, 245, 0.25);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .spotlight-cards-rail { display: none; }
  .spotlight-stage { height: auto; padding: 24px; }
  .spotlight-content { padding: 0; }
  .spotlight-main { margin-top: 20px; }
}

.cmp .vid {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(380px, 100%);
  max-width: 380px;
  border-radius: 28px;
  overflow: hidden;
  background: #08080f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(83, 233, 245, 0.06);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.vid-b, .vid-a {
  position: absolute;
  inset: 0;
}

.vid-b {
  z-index: 1;
}

.vid-a {
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.vid video, .vid canvas.vid-demo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
}

.vid-a video, .vid-a canvas.vid-demo {
  width: var(--cmp-w, 380px) !important;
  max-width: none !important;
}

.vid-a video {
  will-change: transform;
}

.cmp-pill {
  position: absolute;
  top: 14px;
  z-index: 4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e8e8ee;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.cmp-pill-before {
  left: 14px;
}

.cmp-pill-after {
  right: 14px;
  background: linear-gradient(135deg, var(--cyan) 0%, #29cfdc 100%);
  color: #081418;
  font-weight: 800;
  box-shadow: 0 2px 14px rgba(83, 233, 245, 0.45);
}

.vid-h {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  z-index: 5;
  transform: translateX(-1px);
  box-shadow: 0 0 10px rgba(83, 233, 245, 0.8);
  pointer-events: none;
}

.cmp .vid-h span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  color: #081418;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(83, 233, 245, 0.65);
}

.cmp .vid-h span svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 900px) {
  .cmp-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "card"
      "notes";
    text-align: center;
  }
  .cmp .sec-sub {
    text-align: center;
  }
  .cmp-actions {
    justify-content: center;
  }
}

/* ── 4. VERIFIED IN THE WILD RAIL (.zv) ─────────────────────────────────── */
.zv {
  padding: 40px 20px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.zv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.zv-kick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #59b2ff;
  margin-bottom: 8px;
}

.zv-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0A84FF;
  box-shadow: 0 0 8px #0A84FF;
}

.zv-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 8px;
}

.zv-sub {
  margin: 0;
  font-size: 15px;
  color: #a1a1a6;
}

.zv-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--zl-zs2);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--zl-zshade);
  transition: background 0.18s ease, transform 0.18s ease;
}

.zv-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.zv-cta svg {
  color: #59b2ff;
}

.zv-scroll {
  position: relative;
}

.zv-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 6px 24px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.zv-rail::-webkit-scrollbar {
  display: none;
}

.zv-tile {
  position: relative;
  flex: 0 0 236px;
  border-radius: 26px;
  overflow: hidden;
  background: #0b0b0d;
  box-shadow: var(--zl-zshade), 0 16px 40px rgba(0, 0, 0, 0.55);
  scroll-snap-align: start;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.zv-tile:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(10, 132, 255, 0.3);
}

.zv-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0b0b0d;
  overflow: hidden;
}

.zv-media video,
.zv-media img.zv-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zv-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.zv-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--zl-zshade);
}

.zv-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0A84FF;
  box-shadow: 0 0 6px #0A84FF;
}

.zv-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
}

.zv-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.zv-captx {
  min-width: 0;
  flex: 1;
}

.zv-user {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zv-caption {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.zv-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.zv-open-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #59b2ff;
  text-decoration: none;
}

.zv-open-link:hover {
  color: #fff;
}

.zv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(18, 18, 22, 0.85);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), var(--zl-zshade);
}

.zv-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.zv-prev {
  left: -8px;
}

.zv-next {
  right: -8px;
}

/* ── 5. LIVE DATA (.ld2) & LIVE ACTIVITY (.act) ─────────────────────────── */
.sec-h {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9c9d0;
  text-align: center;
  margin: 0;
}

.ld2 {
  max-width: 1140px;
  margin: 16px auto 36px;
  padding: 32px 36px 36px;
  background: rgba(16, 16, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.ld2-head, .act-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.ld2-pulse, .act-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--cyan);
  background: rgba(83, 233, 245, 0.08);
  border: 1px solid rgba(83, 233, 245, 0.22);
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ld2-pulse i, .act-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: tc-pulse 2s infinite;
}

.ld2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ld2-tile {
  background: rgba(10, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.ld2-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 233, 245, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(83, 233, 245, 0.1);
}

.ld2-v {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.ld2-l {
  color: #8e8e93;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 6px;
  display: block;
}

.ld2-note {
  text-align: center;
  color: #6e6e73;
  font-size: 12px;
  margin-top: 12px;
}

.act {
  max-width: 1140px;
  margin: 16px auto 44px;
  padding: 32px 36px 36px;
  background: rgba(16, 16, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.act-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.act-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--cyan);
  background: rgba(83, 233, 245, 0.08);
  border: 1px solid rgba(83, 233, 245, 0.22);
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.act-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: tc-pulse 2s infinite;
}

.act .sec-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 auto 24px;
}

.act-feed {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(10, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.act-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.act-row:last-child {
  border-bottom: none;
}

.act-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.act-pfp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(83, 233, 245, 0.12);
  border: 1px solid rgba(83, 233, 245, 0.25);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.act-txt {
  flex: 1;
  min-width: 0;
}

.act-name {
  display: block;
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2px;
}

.act-what {
  display: block;
  color: #c7c7d4;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-left: 12px;
}

@media (max-width: 700px) {
  .ld2-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 6. QUESTIONS, ANSWERED (.qa) & FOOTER (footer.af) ──────────────────── */
.qa {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 48px;
}

.qa .sec-h {
  margin-bottom: 18px;
}

.qa-item {
  border-radius: 20px;
  background: var(--zl-zs1);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--zl-zshade), var(--zl-zelev);
}

.qa-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  color: #f5f5f7;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #8e8e93;
  border-bottom: 2px solid #8e8e93;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.qa-item[open] summary::after {
  transform: rotate(225deg);
}

.qa-item p {
  padding: 0 20px 16px;
  margin: 0;
  color: #a1a1a6;
  font-size: 13.5px;
  line-height: 1.65;
}

footer.af {
  position: relative;
  padding: 52px 0 28px !important;
  background: transparent !important;
  border-top: 0 !important;
  text-align: left;
}

footer.af::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

.af-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.af-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}

.af-brandrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.af-mark {
  width: 20px;
  height: 20px;
}

.af-logo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.af-chips {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.af-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--zl-zs2);
  box-shadow: var(--zl-zshade);
  font-size: 10.5px;
  font-weight: 600;
  color: #a1a1a6;
}

.af-tag {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #6e6e73;
  max-width: 240px;
}

.af-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-col a {
  color: #8e8e93;
  font-size: 12.5px;
  text-decoration: none;
  width: fit-content;
}

.af-col a:hover {
  color: #fff;
}

.af-legal {
  position: relative;
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6e6e73;
}

.af-legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.09) 50%, transparent 100%);
}

@media (max-width: 820px) {
  .af-cols {
    grid-template-columns: 1fr 1fr;
  }
  .af-brandcol {
    grid-column: 1 / -1;
  }
}

/* ── 7. ZILEM-STYLE OPTIMIZER WORKSPACE UPGRADES ────────────────────────── */
.studio-shell,
.tiktok-sidebar .card,
.zl-engine-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.022)) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.8) !important;
  backdrop-filter: blur(30px) saturate(1.8) !important;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1) inset, 0 26px 60px -34px rgba(0, 0, 0, 0.95) !important;
  border: 0 !important;
  border-radius: 22px !important;
}

.studio-shell {
  padding: 0 !important;
  overflow: hidden;
}

/* Stepper inside #compress */
.zl-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 0.5px solid var(--zl-sep);
}

.zl-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--zl-l3);
  white-space: nowrap;
}

.zl-step i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  background: var(--zl-card2);
  color: var(--zl-l3);
}

.zl-step.on {
  color: var(--zl-l1);
}

.zl-step.on i {
  background: var(--zl-blue);
  color: #fff;
}

.zl-step.done {
  color: var(--zl-l2);
}

.zl-step.done i {
  background: rgba(48, 209, 88, 0.2);
  color: #30D158;
}

.zl-sline {
  flex: 1;
  height: 0.5px;
  background: var(--zl-sep2);
  min-width: 10px;
}

/* Dropzone inside #compress */
.studio-drop {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 42px 24px 32px !important;
  min-height: 240px !important;
}

.studio-drop:hover,
.studio-drop.over {
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: none !important;
  transform: none !important;
}

.studio-upload-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--zl-card2);
  color: var(--zl-blue) !important;
}

.zl-choose-link {
  display: inline-block;
  color: var(--zl-blue);
  font-size: 15.5px;
  font-weight: 500;
  margin: 2px 0 14px;
}

#preview {
  padding: 18px 20px 0;
}

.studio-security-strip {
  margin: 0 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 0;
  box-shadow: var(--zl-zshade);
}

.optimizer-actions {
  padding: 16px 20px;
  margin-top: 0;
}

/* Zilem Apple Blue / White Pill Primary Button */
.studio-start-btn {
  height: 50px !important;
  border-radius: 980px !important;
  background: var(--zl-blue) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 26px -14px rgba(10, 132, 255, 0.95) !important;
}

.studio-start-btn:hover:not(:disabled) {
  background: #2B95FF !important;
  transform: translateY(-1px);
}

.studio-start-btn:disabled {
  background: rgba(255, 255, 255, 0.085) !important;
  color: var(--zl-l3) !important;
  box-shadow: none !important;
}

.clear-file {
  height: 50px !important;
  border-radius: 980px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: var(--zl-l1) !important;
  border: 0 !important;
  padding: 0 20px !important;
}

/* Processing Terminal Log */
.zl-logwrap {
  border-top: 0.5px solid var(--zl-sep);
}

.zl-loghead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
}

.zl-logtoggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  color: var(--zl-l2);
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.zl-lhg {
  color: var(--zl-l3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.zl-lht {
  font-size: 12.5px;
  font-weight: 500;
}

.zl-lhmeta {
  font-size: 11.5px;
  color: var(--zl-l3);
  font-variant-numeric: tabular-nums;
}

.zl-lhsp {
  margin-left: auto;
}

.zl-chev {
  transition: transform 0.25s ease;
  color: var(--zl-l3);
}

.zl-logwrap.closed .zl-chev {
  transform: rotate(-90deg);
}

.zl-logwrap.closed .zl-logbody {
  display: none;
}

.zl-logcopy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 980px;
  background: transparent;
  color: var(--zl-l2);
  font-size: 11.5px;
  cursor: pointer;
}

.zl-logcopy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.zl-term {
  margin: 0 14px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0A0A0C;
  box-shadow: 0 0 0 0.5px var(--zl-sep) inset;
  max-height: 190px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.75;
}

.zl-ln {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.zl-ln .g {
  color: var(--zl-l3);
  flex: 0 0 auto;
  width: 10px;
}

.zl-ln .t {
  color: var(--zl-l2);
  word-break: break-word;
}

.zl-ln.step .g {
  color: var(--zl-blue);
}

.zl-ln.ok .t,
.zl-ln.ok .g {
  color: #30D158;
}

/* Engine Selector Card in Sidebar */
.zl-engine-card {
  padding: 0 !important;
  overflow: hidden;
}

.zl-eng-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 0.5px solid var(--zl-sep);
  font-size: 12px;
  font-weight: 600;
  color: var(--zl-l2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zl-eng-badge-online {
  color: #8ce99a;
  background: rgba(80, 220, 130, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  text-transform: none;
}

.zl-eng-list {
  display: flex;
  flex-direction: column;
}

.zl-eng {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.zl-eng + .zl-eng::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--zl-sep);
}

.zl-eng:hover {
  background: rgba(255, 255, 255, 0.045);
}

.zl-eng[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.06);
}

.zl-eng-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.zl-eng-t {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.zl-eng-d {
  font-size: 12px;
  line-height: 1.4;
  color: var(--zl-l2);
}

.zl-eng-tag.is-work {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8ce99a;
  background: rgba(80, 220, 130, 0.15);
  border-radius: 5px;
  padding: 2px 6px;
}

.zl-eng-tick {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--zl-blue);
  opacity: 0;
  transform: scale(0.75);
  transition: all 0.2s ease;
}

.zl-eng[aria-checked="true"] .zl-eng-tick {
  opacity: 1;
  transform: scale(1);
}

/* Result Noise Notice */
.zl-rd-noise {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--zl-card2);
  font-size: 12px;
  line-height: 1.5;
  color: var(--zl-l2);
  margin-bottom: 14px;
  text-align: left;
}

.zl-rd-noise b {
  color: #fff;
}

/* HandBrake Pre-Pass Wide Bar */
.zl-hb-wide {
  margin: 20px 0 28px;
}

.zl-hb-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1) inset, 0 26px 60px -34px rgba(0, 0, 0, 0.95);
}

.zl-hb-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.zl-hb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.zl-hb-t {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.zl-hb-badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zl-l2);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 3px 7px;
}

.zl-hb-nudge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 132, 255, 0.24);
  border-radius: 6px;
  padding: 3px 7px;
}

.zl-hb-d {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--zl-l2);
  margin: 0;
}

.zl-sw {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 980px;
  background: var(--zl-fill);
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease;
}

.zl-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.zl-sw[aria-checked="true"] {
  background: #30D158;
}

.zl-sw[aria-checked="true"]::after {
  transform: translateX(20px);
}



/* ==========================================================================
   SYSTEM MAINTENANCE & SUPPORTER COMPENSATION BANNER
   ========================================================================== */
.system-maintenance-banner {
  position: relative;
  margin: 16px auto 24px;
  max-width: 1200px;
  width: calc(100% - 32px);
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(28, 18, 24, 0.95), rgba(18, 14, 28, 0.95));
  border: 1px solid rgba(254, 44, 85, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(254, 44, 85, 0.15);
  overflow: hidden;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bannerFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sm-banner-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.sm-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.sm-banner-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fe2c55;
}

.sm-banner-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  border: 1.5px solid #fe2c55;
  animation: smPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  opacity: 0.6;
}

@keyframes smPulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.sm-banner-content {
  flex: 1;
  min-width: 0;
}

.sm-banner-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.sm-badge-warning {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.sm-banner-heading strong {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.sm-badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.sm-banner-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 14px;
}

.sm-banner-supporter-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(0, 242, 254, 0.08));
  border: 1px solid rgba(10, 132, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sm-supporter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #59b2ff;
  margin-bottom: 6px;
}

.sm-supporter-title svg {
  flex-shrink: 0;
  color: #ffd60a;
}

.sm-supporter-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.sm-supporter-desc strong {
  color: #59b2ff;
}

.sm-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-start;
}

.sm-btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #5865F2;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sm-btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.sm-btn-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sm-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Workspace alert card */
.workspace-alert-card {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wac-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f59e0b;
  color: #000000;
  letter-spacing: 0.02em;
}

.wac-body {
  flex: 1;
  min-width: 200px;
}

.wac-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.wac-body strong {
  color: #fbbf24;
}

/* Plan guarantee card */
.plan-guarantee-card {
  margin: 24px auto 0;
  max-width: 680px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.pgc-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.pgc-text strong {
  display: block;
  font-size: 14px;
  color: #59b2ff;
  margin-bottom: 4px;
}

.pgc-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .sm-banner-inner {
    flex-direction: column;
    gap: 14px;
  }
  .sm-banner-actions {
    flex-direction: row;
    width: 100%;
  }
  .sm-btn-discord, .sm-btn-dismiss {
    flex: 1;
  }
}
