/* ============================
   HEADER
============================ */
.dt-header {
  width: 100%;
  background: #0c1222;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
}

/* 3-column grid for perfect balance:
   [ logo ] [ centered title ] [ menu ] */
.dt-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;              /* a bit more breathing room on edges */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
}

.dt-logo img {
  height: 80px;
  width: auto;
}

.dt-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  justify-self: center;         /* keep it visually centered in the grid */
}

.dt-menu {
  display: flex;
  gap: 26px;
  justify-self: end;            /* pin menu to the right grid cell */
}

.dt-menu a {
  color: #e0e6ff;
  font-size: 16px;
  text-decoration: none;
}

.dt-menu a:hover {
  color: #7ab8ff;
}

/* ============================
   MOBILE HEADER
============================ */
.dt-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.dt-hamburger div {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
}

/* MOBILE DROPDOWN */
.dt-mobile-menu {
  display: none;
  flex-direction: column;
  background: #11182c;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.dt-mobile-menu a {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
}

.dt-mobile-menu a:hover {
  background: rgba(255,255,255,0.05);
}

/* CLOSE BUTTON */
.dt-mobile-close {
  text-align: center;
  padding: 14px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ============================
   MOBILE BREAKPOINT
============================ */
@media (max-width: 900px) {
  .dt-menu {
    display: none !important;
  }

  /* switch header-inner from grid → stacked flex */
  .dt-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 16px;
  }

  .dt-logo img {
    height: 60px !important;
    margin-bottom: 6px;
  }

  .dt-title {
    font-size: 18px !important;
    margin-bottom: 10px;
  }

  .dt-hamburger {
    display: flex !important;
    margin-top: 10px;
  }

  .dt-mobile-menu {
    width: 100%;
  }

  body, html {
    overflow-x: hidden;
  }
}

/* ============================
   FOOTER
============================ */
.dt-footer {
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #050816;
}

.dt-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
}

.dt-footer-right {
  opacity: 0.85;
}

/* ============================
   PAGE LAYOUT
============================ */
.page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-subtitle {
  font-size: 15px;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.panel {
  background: #020617;
  border-radius: 14px;
  border: 1px solid #111827;
  padding: 22px;
  margin-top: 10px;
}

/* ===== Card 3 – Visuals & Captions ===== */
.visuals-captions-card {
  margin-top: 24px;
}

.visuals-captions-card .vc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on desktop */
  column-gap: 32px;
  row-gap: 18px;
  align-items: flex-start;
}

.visuals-captions-card .vc-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visuals-captions-card .vc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 4px;
}

.visuals-captions-card .vc-field select,
.visuals-captions-card .vc-field input[type="text"],
.visuals-captions-card .vc-field input[type="number"] {
  width: 100%;
}

.visuals-captions-card .vc-field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visuals-captions-card .vc-helper {
  margin-top: 12px;
  opacity: 0.7;
}

/* Mobile / small screens – collapse to 1 column */
@media (max-width: 960px) {
  .visuals-captions-card .vc-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VERTICAL SHORTS PREVIEW (9:16)
============================================ */
.vertical-preview-frame {
  position: relative;
  width: 280px;                 /* base portrait width */
  max-width: 100%;
  margin: 16px auto;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* 9:16 enforced aspect ratio */
.vertical-preview-frame::before {
  content: "";
  display: block;
  padding-top: 177.78%;         /* inverse of 9:16 to force tall frame */
}

.vertical-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* crop nicely inside frame */
  background: #000;
  border-radius: 18px;
}

/* Larger previews on desktop */
@media (min-width: 1024px) {
  .vertical-preview-frame {
    width: 340px;
  }
}

/* ================================
   CENTER PREVIEW + RENDER GROUPS
================================ */
.preview-group,
.render-group {
  display: flex;
  flex-direction: column;
  align-items: center;          /* center button horizontally */
  justify-content: center;
  gap: 12px;                    /* spacing between button and video */
}

.preview-group .button,
.render-group .button {
  align-self: center;
}

.preview-group {
  margin-bottom: 20px;
}

.render-group {
  margin-top: 20px;
}

/* ==========================================
   MOBILE — CLEAN STACKED CARD LAYOUT
========================================== */
@media (max-width: 900px) {
  .wrap {
    padding: 0 16px;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .card,
  .card-wide {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 16px;
  }

  /* Visuals & Captions → force single column */
  .vc-grid {
    grid-template-columns: 1fr !important;
  }

  /* Preview video centered + max size */
  .vertical-preview-frame {
    width: 100% !important;
    max-width: 360px;
    margin: 20px auto !important;
  }

  /* Buttons centered on mobile */
  .preview-group,
  .render-group {
    align-items: center !important;
  }
}