body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  margin: 0;
  padding: 0;
  color: #222;
}

.container {
  max-width: 860px;
  margin: 60px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1, h2, h3 {
  margin-top: 0;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

button, .button {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
}

.secondary {
  background: #111827;
  margin-left: 10px;
}

.danger {
  background: #dc2626;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.video-card {
  border: 1px solid #e5e7eb;
  padding: 20px;
  margin-top: 18px;
  border-radius: 12px;
  background: #fafafa;
}

.player-container {
  max-width: 900px;
  margin: 30px auto;
  background: #111827;
  color: #ffffff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
}

.feature-placeholder {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}

hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  margin: 12px 0;
}

.checkbox-label input {
  width: auto;
  margin: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
}

.mvp-cta-button {
  position: absolute;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  background: #facc15;
  color: #111827;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  z-index: 10;
}

.mvp-cta-button:hover {
  filter: brightness(0.95);
}
.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.mvp-video-frame {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.mvp-cta-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.mvp-cta-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mvp-cta-button {
  background: #facc15;
  color: #111827;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  pointer-events: auto;
}

.mvp-cta-button:hover {
  filter: brightness(0.95);
}
#youtubePlayer {
  width: 100%;
  height: 420px;
}

#youtubePlayer iframe {
  width: 100%;
  height: 420px;
  display: block;
}

.mvp-video-frame {
  display: block;
  width: 100%;
  height: 420px;
  position: relative;
  z-index: 1;
}
.mvp-optin-overlay {
  position: absolute;
  inset: 0;
  z-index: 10000;
  background: rgba(17, 24, 39, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.mvp-optin-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mvp-optin-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  color: #111827;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.35);
  text-align: center;
}

.mvp-optin-box h3 {
  margin-top: 0;
  font-size: 24px;
}

.mvp-optin-box p {
  color: #4b5563;
}

.mvp-optin-box input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.mvp-optin-box button {
  width: 100%;
}

.mvp-optin-message {
  min-height: 20px;
  font-size: 14px;
  margin-top: 12px;
}
.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.leads-table th,
.leads-table td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.leads-table th {
  background: #f9fafb;
  font-weight: bold;
}

.leads-table tr:hover {
  background: #f9fafb;
}
.basic-video-info {
  margin-bottom: 20px;
}

.builder-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.tab-button {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

.tab-button.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.tab-panel {
  display: none;
  padding: 25px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  margin-bottom: 25px;
}

.tab-panel.active {
  display: block;
}

.section-help {
  color: #6b7280;
  margin-top: -8px;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.builder-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 25px;
}

.coming-soon-box {
  background: #f9fafb;
  border: 1px dashed #cbd5e1;
  padding: 20px;
  border-radius: 12px;
  color: #374151;
}

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

  .builder-tabs {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
    text-align: left;
  }
}
.mvp-dashboard-actions a[href="/ai-credits"].button.secondary,
.mvp-dashboard-actions form[action="/billing/portal"] button.button.secondary,
.topbar a[href="/ai-credits"].button.secondary,
.topbar form[action="/billing/portal"] button.button.secondary,
.dashboard-actions a[href="/ai-credits"].button.secondary,
.dashboard-actions form[action="/billing/portal"] button.button.secondary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border: 1px solid rgba(147, 197, 253, 0.75) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35) !important;
  opacity: 1 !important;
}

.mvp-dashboard-actions a[href="/ai-credits"].button.secondary:hover,
.mvp-dashboard-actions form[action="/billing/portal"] button.button.secondary:hover,
.topbar a[href="/ai-credits"].button.secondary:hover,
.topbar form[action="/billing/portal"] button.button.secondary:hover,
.dashboard-actions a[href="/ai-credits"].button.secondary:hover,
.dashboard-actions form[action="/billing/portal"] button.button.secondary:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
  color: #ffffff !important;
}
/* Dashboard header visibility fix */
body .mvp-dashboard-page .mvp-dashboard-hero,
body .mvp-dashboard-page .mvp-dashboard-hero h1,
body .mvp-dashboard-page .mvp-dashboard-hero h1 *,
body .mvp-dashboard-page .mvp-dashboard-hero p,
body .mvp-dashboard-page .mvp-dashboard-hero p *,
body .mvp-dashboard-page .mvp-dashboard-eyebrow {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body .mvp-dashboard-page .mvp-dashboard-hero h1 span {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
}

body .mvp-dashboard-page .mvp-dashboard-eyebrow {
  color: #93c5fd !important;
  -webkit-text-fill-color: #93c5fd !important;
}