body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Top Navigation Bar - NEW HORIZONTAL LAYOUT */
.navbar-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  z-index: 20;
  /* border-bottom: 1px solid #e5e7eb; */
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 16px;
  width: auto;
}

/* Project Name in Center */
.navbar-project-name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1;
}

.navbar-project-name span {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #9ca3af;
}

/* Project Name Edit Functionality */
.navbar-project-name-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-project-name-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-project-name-input {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #9ca3af;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
  min-width: 250px;
  max-width: 500px;
}

.navbar-project-edit-btn {
  width: 24px;
  height: 24px;
  /* border: 1px solid #e5e7eb; */
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: #9ca3af;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar-project-edit-btn:hover {
  border-color: #cbe724;
  color: #cbe724;
}

.navbar-project-save-btn {
  color: #cbe724;
  border-color: #cbe724;
}

.navbar-project-save-btn:hover {
  background: #cbe724;
  color: #ffffff;
}

.navbar-project-cancel-btn {
  color: #ef4444;
  border-color: #ef4444;
}

.navbar-project-cancel-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Filter Buttons - between logo and right nav */
.navbar-filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #9ca3af;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar-filter-btn:hover {
  border-color: #cbe724;
  color: #cbe724;
}

.navbar-filter-btn.active {
  background: #cbe724;
  border-color: #cbe724;
  color: #1f2937;
  font-weight: 500;
}

.navbar-filter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.navbar-filter-btn svg {
  font-size: 16px;
}

/* Right side navigation */
.navbar-nav-right {
  display: flex;
  align-items: center;
  gap: 8px; /* Changed from 24px to 8px */
}

/* Credits Display */
.navbar-credits {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.navbar-coin-icon {
  color: #cbe724;
  font-size: 16px;
}

.navbar-credits span {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
}

/* Navigation Icons */
.navbar-nav-icons {
  display: flex;
  gap: 8px;
}

.navbar-nav-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #9ca3af;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar-nav-icon-btn:hover {
  border-color: #cbe724;
  color: #cbe724;
}

/* LEGACY SIDEBAR STYLES - keeping for backward compatibility */
.user-dashboard-sidebar {
  /* border-right: 1px solid #e5e7eb; */
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.user-dashboard-logo-container {
  margin-top: 16px;
  padding-left: 20px;
  /* margin-bottom: 32px; */
  /* margin-right: -80px; */
  /* margin-left: -24px; */
}

.user-dashboard-logo {
  height: 16px;
  width: auto;
  /* margin-left: -32px; */
}

.user-dashboard-nav {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  padding-left: 0; /* 20px */
  /* gap: 8px; */
  /* width: 100%; */
}

.user-nav-sidebar {
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.user-nav-logo-container {
  margin-bottom: 32px;
}

.user-nav-logo {
  height: 56px;
  width: auto;
}

.user-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.user-nav-button {
  width: 100%;
  padding: 12px 0 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.user-nav-button.active,
.user-nav-button:hover {
  color: #cbe724;
}

.user-nav-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.user-nav-button span {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
}

.user-dashboard-version {
  color: #9ca3af;
  opacity: 0.5;
  font-size: 14px;
  margin: 0 0 8px 0;
  padding-left: 20px;
  display: flex;
  align-self: flex-start;
}

/* Mobile responsive for top navigation */
@media (max-width: 768px) {
  .navbar-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    z-index: 20;
  }

  .navbar-logo-img {
    height: 28px;
  }

  /* Mobile project name styles */
  .navbar-project-name span {
    font-size: 14px;
  }

  .navbar-project-name-input {
    font-size: 14px;
    min-width: 150px;
    max-width: 200px;
    padding: 2px 6px;
  }

  .navbar-project-edit-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .navbar-filter-buttons {
    order: 3; /* Move to next row on mobile */
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .navbar-filter-btn {
    flex: 1 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
    gap: 4px;
  }

  .navbar-filter-btn svg {
    font-size: 14px;
  }

  .navbar-nav-right {
    gap: 16px;
  }

  .navbar-nav-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .navbar-credits {
    padding: 6px 12px;
  }

  .navbar-credits span {
    font-size: 13px;
  }

  /* Legacy mobile styles for sidebar */
  .user-dashboard-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    padding: 8px 16px;
    background: #ffffff;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .user-dashboard-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 0;
    padding: 0;
  }

  .user-dashboard-logo-container,
  .user-dashboard-version {
    display: none;
  }

  .user-nav-links {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 0;
  }

  .user-nav-button {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .user-nav-button span {
    font-size: 12px;
  }
}

/* Bottom Navigation Bar */
.bottom-navbar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
  max-width: calc(100vw - 48px);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 15;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-navbar.hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
}

/* Left side */
.bottom-navbar-left {
  display: flex;
  align-items: center;
}

/* Center section */
.bottom-navbar-center {
  display: flex;
  align-items: center;
  gap: 16px; /* Changed from 8px to 16px */
}

/* Right side */
.bottom-navbar-right {
  display: flex;
  align-items: center;
}

/* Filter buttons in center */
.bottom-navbar-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #9ca3af;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bottom-navbar-filter-btn:hover {
  border-color: #cbe724;
  color: #cbe724;
}

.bottom-navbar-filter-btn.active {
  background: #cbe724;
  border-color: #cbe724;
  color: #1f2937;
  font-weight: 500;
}

.bottom-navbar-filter-btn svg {
  font-size: 16px;
}

/* Icon buttons on sides */
.bottom-navbar-icon-btn {
  min-width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #9ca3af;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 6px;
  padding: 8px 12px;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
}

.bottom-navbar-icon-btn:hover {
  border-color: #cbe724;
  color: #cbe724;
}

.bottom-navbar-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bottom-navbar-icon-btn span {
  font-size: 14px;
  white-space: nowrap;
}

.bottom-navbar-icon-btn svg {
  font-size: 16px;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .bottom-navbar {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    max-width: none;
    gap: 16px;
    padding: 12px 16px;
  }

  .bottom-navbar.hidden {
    transform: translateY(120px);
    opacity: 0;
  }

  .bottom-navbar-filter-btn {
    padding: 10px 12px;
    font-size: 13px;
    gap: 4px;
  }

  .bottom-navbar-filter-btn svg {
    font-size: 14px;
  }

  .bottom-navbar-icon-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.asset-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.asset-modal {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: slideIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.asset-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.asset-modal-content {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.asset-modal-img,
.asset-modal-video {
  max-width: 100%;
  max-height: -webkit-max-content;
  max-height: max-content;
  border-radius: 8px;
  object-fit: contain;
}

.asset-modal-details {
  padding-top: 16px;
}

.asset-modal-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.asset-modal-prompt {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.asset-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-modal-model-badge {
  background: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}

.asset-modal-download-btn {
  background: #cbe724;
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  width: 140px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.asset-modal-download-btn:hover {
  background: #1f2937;
  color: #cbe724;
}

.asset-modal-delete-btn {
  background: #ef4444;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  width: 140px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.asset-modal-delete-btn:hover {
  background: #1f2937;
  color: #ffffff;
}

.asset-modal-download-btn:disabled,
.asset-modal-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
  .asset-modal {
    width: calc(100% - 48px);
    padding: 16px;
  }

  .asset-modal-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .asset-modal-download-btn {
    width: 100%;
    text-align: center;
  }
}

/* Main Container - matching StoryboardList pattern */
.assets-gallery-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  font-family: "Rubik", sans-serif;
  padding-top: 44px; /* Adjusted height from the top page taking into account the fixed navbar's height */
}

.assets-gallery-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
}

.assets-gallery-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: calc(100% - 32px);
  width: 100%;
  margin: 0 auto;
}



/* Error message styling - matching other dashboard components */
.dashboard-error {
  color: #ef4444;
  font-size: 14px;
  margin: 16px 0;
  padding: 12px;
  background: #fee2e2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.assets-container {
  /* height: calc(100vh - 160px); */
  overflow-y: auto;
  width: 100%;
  padding-right: 0;
}

.assets-date-group {
  margin-bottom: 24px;
}

.assets-date-heading {
  font-family: 'Rubik', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.asset-prompt {
  padding: 12px;
  font-size: 14px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  line-height: 1.3;
  max-height: 1.9em;
}

/* Assets Grid - matching StoryboardList pattern */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  /* margin-top: 24px; */
}

.asset-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.asset-item:hover {
  transform: translateY(-5px);
}

.asset-video-wrapper {
 position: relative;
 width: 100%;
 height: 200px;
}

.asset-video-wrapper:hover .video-play-icon {
  opacity: 0.8;
}

.asset-image,
.asset-video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.assets-loading,
.assets-empty {
  text-align: center;
  padding: 32px;
  color: #9ca3af;
}

/* Assets spinner */
.assets-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  color: #9ca3af;
}

.assets-loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Video play overlay - from AssetsGallery */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.asset-video-wrapper:hover .video-play-overlay {
  opacity: 1;
}

.video-play-icon {
  color: white;
  font-size: 48px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Mobile responsive - matching StoryboardList pattern */
@media (max-width: 768px) {
  .assets-gallery-container {
    padding-top: 80px; /* More space for mobile navbar */
  }
  
  .assets-gallery-content {
    padding: 16px;
  }

  .assets-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }

  .asset-image,
  .asset-video,
  .asset-video-wrapper {
    height: 160px;
  }
}

/* Load More Button Styles */
.assets-load-more {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  margin-top: 16px;
}

.assets-load-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #cbe724;
  color: #1f2937;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Rubik", sans-serif;
}

.assets-load-more-btn:hover:not(:disabled) {
  background: #b5d21f;
  transform: translateY(-1px);
}

.assets-load-more-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.assets-load-more-btn .assets-loader-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  margin-bottom: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: slideIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #6b7280;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px 0;
}

.modal-body {
  margin-bottom: 24px;
  overflow-y: auto;
}

.modal-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-image-preview {
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.modal-image {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn-cancel {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: slideIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px 0;
}

.modal-body {
  margin-bottom: 24px;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  background: #cbe724;
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #cbe724;
  border-radius: 2px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbe724;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #cbe724;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 8px;
}

.form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #1f2937;
  resize: vertical;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group textarea:focus {
  outline: none;
  border-color: #cbe724;
}

.form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #1f2937;
  background-color: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%239ca3af%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.form-select:focus {
  outline: none;
  border-color: #cbe724;
}

.form-select option {
  color: #9ca3af;
  padding: 12px;
  font-size: 14px;
}
.modal-footer {
  margin-top: -24px;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

.modal-btn-cancel,
.modal-btn-save {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-cancel {
  background: none;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.modal-btn-save {
  background: #cbe724;
  border: none;
  color: #1f2937;
}

.modal-btn-cancel:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.modal-btn-save:hover {
  background: #1f2937;
  color: #cbe724;
}

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

.modal-preview {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.modal-video {
  max-width: 100%;
  max-height: -webkit-max-content;
  max-height: max-content;
  border-radius: 8px;
  object-fit: contain;
}

.modal-image-preview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.modal-image {
  max-width: 100%;
  max-height: -webkit-max-content;
  max-height: max-content;
  border-radius: 8px;
  object-fit: contain;
}

.modal-preview-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-preview-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.modal-preview-shot-label {
  font-size: 14px;
  margin-top: 8px;
  color: #9ca3af;
}

.modal-preview-image,
.modal-preview-video {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-preview-arrow {
  font-size: 24px;
  color: #9ca3af;
}

.modal-image-upload {
  margin-bottom: 24px;
  border-radius: 8px;
  background: #f3f4f6;
  padding: 16px;
}

.modal-image-upload-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.modal-image-upload-container:hover {
  border-color: #cbe724;
}

.modal-image-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.3s ease;
}

/* .modal-image-upload-btn:hover {
  color: #cbe724;
} */

.modal-image-upload-btn svg {
  font-size: 32px;
}

.modal-image-upload-btn span {
  font-size: 14px;
  font-weight: 500;
}

.modal-image-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-image-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.modal-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.modal-image-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.3s ease;
}

.modal-image-delete:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal-image-hint {
  margin-top: 12px;
  margin-bottom: 0;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.modal-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.modal-preview-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-preview-image-change {
  position: absolute;
  bottom: 10px;

  left: 50%;
  transform: translateX(-50%);
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.3s ease;
  z-index: 2;
}

.modal-preview-image-change:hover {
  background: #cbe724;
  color: #1f2937;
}

.modal-preview-image-change svg {
  font-size: 20px;
}

@media (max-width: 768px) {
  .modal-content {
    width: calc(100% - 48px);
    padding: 16px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-btn-cancel,
  .modal-btn-save {
    width: 100%;
  }

  .modal-preview {
    flex-direction: column;
    gap: 16px;
  }

  .modal-preview-image,
  .modal-preview-video {
    width: 80vw;
    height: 30vh;
  }

  .modal-preview-comparison {
    flex-direction: column;
    gap: 16px;
  }

  .modal-preview-arrow {
    transform: rotate(90deg);
  }
}

/* --- Video Carousel Styles for StoryboardShotModal --- */
.modal-carousel-video-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 200px;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.modal-carousel-arrow {
  background: rgba(31,41,55,0.8);
  color: #fff;
  border-radius: 6px;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.modal-carousel-arrow--left {
  left: 8px;
}
.modal-carousel-arrow--right {
  right: 8px;
}
.modal-carousel-arrow:disabled {
  opacity: 0.3;
  /* cursor: not-allowed; */
}

.modal-carousel-check {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(31,41,55,0.8);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-carousel-check.selected,
.modal-carousel-check:hover {
  background: #cbe724;
  color: #1f2937;
}

.modal-carousel-index {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 15px;
  font-weight: 500;
  z-index: 2;
}

@media (max-width: 768px) {
  .modal-carousel-video-container {
    width: 80vw;
    height: 30vh;
  }
}

/* --- Match modal carousel controls to .shot-action-btn style --- */
.modal-carousel-check,
.modal-carousel-arrow {
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-carousel-check:hover,
.modal-carousel-arrow:hover,
.modal-carousel-check.selected {
  background: #cbe724;
  color: #1f2937;
}

.modal-carousel-check svg,
.modal-carousel-arrow svg {
  font-size: 13px;
}

.modal-carousel-index {
  font-size: 16px;
  min-width: 36px;
  text-align: center;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #1f2937;
}

/* --- Modal carousel actions row, matching .shot-actions --- */
.modal-carousel-actions {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

.modal-carousel-btn {
  width: 29px;
  height: 29px;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  padding: 0;
  font-size: 18px;
}

.modal-carousel-btn:hover,
.modal-carousel-btn.selected {
  background: #cbe724;
  color: #1f2937;
}

.modal-carousel-btn svg {
  font-size: 10px;
}

.modal-carousel-index-btn {
  font-size: 10px;
  font-weight: 500;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-carousel-index-btn:hover,
.modal-carousel-index-btn:active,
.modal-carousel-index-btn.selected {
  background: rgba(31, 41, 55, 0.8) !important;
  color: #ffffff !important;
  cursor: default !important;
}

/* Stitched Modal Specific Styles */
.stitched-modal-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stitched-modal-preview .modal-preview-shot {
  flex: 1 1;
  min-width: 200px;
  max-width: 250px;
}

.stitched-prompt-display {
  padding: 12px;
  background: #f3f4f6;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #1f2937;
  line-height: 1.5;
  min-height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stitched-prompt-display:hover {
  border-color: #cbe724;
  background: #f9fafb;
}

.stitched-info-display {
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.stitched-info-display div {
  margin-bottom: 4px;
}

.stitched-info-display div:last-child {
  margin-bottom: 0;
}

.modal-preview-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 14px;
  border: 1px solid #e5e7eb;
}

/* Mobile responsive for stitched modal */
@media (max-width: 768px) {
  .stitched-modal-preview {
    flex-direction: column;
    gap: 12px;
  }
  
  .stitched-modal-preview .modal-preview-shot {
    max-width: 100%;
    width: 100%;
  }
  
  .stitched-modal-preview .modal-preview-arrow {
    transform: rotate(90deg);
    font-size: 24px;
  }
  
  .modal-preview-placeholder {
    height: 150px;
  }
}

/* Modal stitched frame layout - exact same dimensions as modal-preview-image */
.modal-stitched-frame-container {
  width: 320px;
  height: 200px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-stitched-frame-left,
.modal-stitched-frame-right {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.modal-stitched-frame-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-stitched-frame-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 12px;
}

/* Add a subtle divider between the two images */
.modal-stitched-frame-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for modal stitched frames */
@media (max-width: 768px) {
  .modal-stitched-frame-container {
    width: 80vw;
    height: 30vh;
  }
  
  .modal-stitched-frame-placeholder {
    font-size: 10px;
  }
}

.storyboard-stitch-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.storyboard-stitch-modal {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: slideIn 0.3s ease-out;
}

.storyboard-stitch-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.storyboard-stitch-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px;
  padding-right: 24px;
}

.storyboard-stitch-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.storyboard-stitch-shot {
  position: relative;
  width: 300px;
  text-align: center;
}

.storyboard-stitch-shot-label {
  display: block;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.storyboard-stitch-image {
  width: 100%;
  height: 169px;
  object-fit: cover;
  border-radius: 8px;
}

.storyboard-stitch-shot-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(31, 41, 55, 0.8);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.storyboard-stitch-arrow {
  font-size: 32px;
  color: #9ca3af;
}

.storyboard-stitch-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.storyboard-stitch-confirm,
.storyboard-stitch-cancel,
.storyboard-stitch-download,
.storyboard-stitch-close-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.storyboard-stitch-confirm,
.storyboard-stitch-download {
  background: #cbe724;
  border: none;
  color: #1f2937;
}

.storyboard-stitch-cancel,
.storyboard-stitch-close-btn {
  background: none;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.storyboard-stitch-confirm:hover,
.storyboard-stitch-download:hover {
  background: #1f2937;
  color: #cbe724;
}

.storyboard-stitch-cancel:hover,
.storyboard-stitch-close-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.storyboard-stitch-content {
  margin-bottom: 24px;
}

.storyboard-stitch-video {
  width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

.storyboard-stitch-animation {
  position: relative;
  width: 740px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
}

.liquid-gradient {
  position: absolute;
  width: 360px;
  height: 220px;
  background: linear-gradient(135deg, #cbe724, #1f2937);
  border-radius: 42% 28% 20% 30% / 85% 45% 85% 25%;
  animation: rotate 6s linear infinite, morph 8s ease-in-out infinite;
  opacity: 0.8;
  filter: blur(20px);
}

.storyboard-stitch-notice {
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 15% 45% 55% 55%;
  }
  25% {
    border-radius: 25% 45% 30% 70% / 55% 30% 70% 45%;
  }
  50% {
    border-radius: 10% 60% 70% 40% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 65% 35% 45% 55% / 40% 55% 85% 65%;
  }
}

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

@media (max-width: 768px) {
  .storyboard-stitch-modal {
    width: calc(100% - 48px);
    padding: 16px;
  }

  .storyboard-stitch-preview {
    flex-direction: column;
    gap: 16px;
  }

  .storyboard-stitch-shot {
    width: 100%;
  }

  .storyboard-stitch-arrow {
    transform: rotate(90deg);
  }
}

.storyboard-stitch-prompt {
  margin: 24px 0;
  padding: 0 24px;
}

.storyboard-stitch-prompt label {
  display: block;
  margin-bottom: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.storyboard-stitch-prompt textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #1f2937;
  resize: vertical;
  min-height: 80px;
}

.storyboard-stitch-prompt textarea:focus {
  outline: none;
  border-color: #cbe724;
}

.storyboard-stitch-model-selection {
  margin: 24px 0;
  padding: 0 24px;
}

.storyboard-stitch-model-selection label {
  display: block;
  margin-bottom: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.storyboard-stitch-model-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #1f2937;
  background-color: white;
  cursor: pointer;
}

.storyboard-stitch-model-select:focus {
  outline: none;
  border-color: #cbe724;
  box-shadow: 0 0 0 3px rgba(203, 231, 36, 0.1);
}


/* StoryboardPreviz Container - following same pattern as other components */
.storyboard-previz-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  padding-bottom: 120px; /* Added padding to account for bottom navbar */
  margin: 0 auto;
}

/* StoryboardPreviz Component */
.storyboard-previz {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  margin-top: 8px;
}

.storyboard-previz__header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  display: none; /* Hide header for now */
}

.storyboard-previz__title {
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.storyboard-previz__icon {
  color: #cbe724;
  font-size: 20px;
}

.storyboard-previz__export-btn {
  font-family: "Rubik", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #cbe724;
  color: #1f2937;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.storyboard-previz__export-btn:hover {
  background: #b8d220;
  transform: translateY(-1px);
}

.storyboard-previz__export-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.storyboard-previz__empty {
  text-align: center;
  padding: 40px 20px;
}

.storyboard-previz__empty p {
  font-family: "Rubik", sans-serif;
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

/* Preview Section */
.storyboard-previz__preview {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 360px;
}

.storyboard-previz__canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #1f2937;
}

.storyboard-previz__fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.storyboard-previz__fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Controls */
.storyboard-previz__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.storyboard-previz__play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #cbe724;
  color: #1f2937;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.storyboard-previz__play-btn:hover {
  background: #b8d220;
  transform: scale(1.05);
}

/* TODO: Modify time info when we add video Editor feature */
/* .storyboard-previz__time-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
} */

.storyboard-previz__video-info {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Timeline with carousel */
.storyboard-previz__timeline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  width: 100%;
}

.storyboard-previz__timeline-track {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 4px;
  width: calc(100% - 80px);
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* This hides the scrollbar */
}

.storyboard-previz__timeline-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar webkit */
}

.timeline-clip-container {
  flex: 0 0 160px; /* This keeps fixed width */
  height: 90px;
}

.timeline-clip-container:last-child {
  margin-right: 0; /* This removes gap from last shot */
}

.storyboard-previz__timeline-nav {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(31, 41, 55, 0.8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.storyboard-previz__timeline-nav:hover:not(:disabled) {
  background: #cbe724;
  color: #1f2937;
}

.storyboard-previz__timeline-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.storyboard-previz__timeline-nav svg {
  font-size: 14px;
}

/* Individual timeline clips */
.timeline-clip {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  overflow: hidden;
}

.timeline-clip:hover,
.timeline-clip.active {
  border-color: #cbe724;
  border-radius: 6px;
}

.clip-thumbnail {
  position: relative; /* ← Ensure this is set for absolute positioning */
  display: flex;
  align-items: center; /* ← Centers "Пустой" text vertically */
  justify-content: center; /* ← Centers "Пустой" text horizontally */
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #9ca3af;
  overflow: hidden;
}

.clip-thumbnail-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.clip-thumbnail-image {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* Loading animation for video generation DOESNT WORK */
.clip-thumbnail-loading-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  border-radius: 4px;
}

.clip-thumbnail-loading-animation .shot-generation-panel__loading-spinner {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

.clip-thumbnail-loading-animation p {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  color: #1f2937;
  font-weight: 500;
}

.clip-loading {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cbe724, #b8d220);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .clip-number {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
} */

.clip-number {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2; /* ← Ensure it's above video */
}

/* AB indicator for start-end frame shots in timeline */
.clip-start-end-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(31, 41, 55, 0.8);
  color: #ffffff;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Blank Shot styles */
.timeline-clip-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.timeline-clip-placeholder span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-weight: 500;
}

.storyboard-previz__blank-shot {
  width: 100%;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-align: center;
}

.storyboard-previz__blank-shot span {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.storyboard-previz__blank-shot p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .storyboard-previz-container {
    padding: 0 16px;
    padding-bottom: 140px; /* More space for mobile bottom navbar */
  }

  .storyboard-previz {
    padding: 16px;
    margin: 0;
    margin-top: 16px;
    width: 100%;
    max-width: none;
  }

  .storyboard-previz__header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .storyboard-previz__export-btn {
    align-self: flex-end;
  }

  .storyboard-previz__preview {
    height: 240px;
  }

  .storyboard-previz__canvas {
    width: 100%;
    height: auto;
  }

  .storyboard-previz__controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .storyboard-previz__timeline {
    padding: 12px 0;
  }

  .storyboard-previz__timeline-track {
    width: calc(100% - 64px); /* Smaller nav buttons on mobile */
  }

  .timeline-clip-container {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(20% - 6.4px);
    min-width: calc(20% - 6.4px);
  }

  .timeline-clip {
    aspect-ratio: 16 / 9;
  }

  .storyboard-previz__timeline-nav {
    width: 24px;
    height: 24px;
  }

  .storyboard-previz__timeline-nav svg {
    font-size: 12px;
  }
}

.buy-credits-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.buy-credits-container {
  width: 90%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: slideIn 0.3s ease-out;
}

.buy-credits-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.buy-credits-title {
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px;
  padding-right: 24px;
}

.instructions-list {
  font-size: 16px;
  list-style-type: decimal;
  padding-left: 20px;
  color: #1f2937;
}

.instructions-list li {
  margin-bottom: 8px;
}

.payment-details {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.buy-credits-counter {
  display: flex;
  align-items: center;
  justify-content: none;
  margin-bottom: 16px;
}

.buy-credits-content-info {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.counter-label {
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  display: none;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: none;
  color: #1f2937;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.counter-btn:hover:not(:disabled) {
  border-color: #cbe724;
  color: #cbe724;
}

.counter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.counter-amount {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  min-width: 24px;
  text-align: center;
}

.counter-price {
  font-size: 20px;
  font-weight: 600;
  color: #cbe724;
  padding-left: 24px;
}

.buy-credits-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.buy-credits-telegram-btn {
  background: #cbe724;
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-credits-telegram-btn:hover {
  background: #1f2937;
  color: #cbe724;
}

.buy-credits-cancel-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  color: #6b7280;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-credits-cancel-btn:hover {
  background: #e5e7eb;
}

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

@media (max-width: 768px) {
  .buy-credits-container {
    width: calc(100% - 32px);
    padding: 20px;
    margin: 16px;
  }
}

/* Left-side panel for start-end frame selection */
.start-end-panel {
  position: fixed;
  top: 67px; /* Navbar height + desired spacing - match SGP */
  left: 16px;
  width: calc(100vw - 448px); /* Full viewport width minus: 16px (left margin) + 16px (gap) + 400px (SGP width) + 16px (right margin) = 448px */
  height: calc(100vh - 83px); /* Match SGP height */
  background: rgba(31, 41, 55, 0.95); /* Match CombinePanel dark background */
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(calc(-100% - 16px)); /* This hides panel completely offscreen accounting for left: 16px position */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Match CombinePanel white text */
  border: none;
}

.start-end-panel.open {
  transform: translateX(0); /* This slides panel to its natural position at left: 16px - responsive to all screen sizes */
}

/* Header */
.start-end-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
}

.start-end-panel__header h3 {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff; /* Match CombinePanel white text */
  margin: 0;
}

.start-end-panel__close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.start-end-panel__close-btn:hover {
  color: #ffffff;
}

/* Content */
.start-end-panel__content {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Frames Section */
.start-end-panel__frames {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.start-end-panel__frame {
  position: relative;
  flex: 1 1;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.2s ease;
  /* background: #f9fafb; */
}

.start-end-panel__frame:hover {
  border-color: #cbe724;
}

.start-end-panel__frame.active {
  border-color: #cbe724;
  background: rgba(203, 231, 36, 0.05);
}

.start-end-panel__frame.disabled {
  cursor: default;
  pointer-events: none;
}

.start-end-panel__frame.disabled:hover {
  border-color: transparent;
}

.start-end-panel__frame-label {
  display: block;
  font-size: 12px;
  font-family: "Rubik", sans-serif;
  color: #9ca3af;
  margin-bottom: 8px;
  font-weight: 500;
}

.start-end-panel__frame-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* This maintains 16:9 resolution */
  object-fit: cover;
  border-radius: 6px;
}

.start-end-panel__frame-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9; /* This maintains 16:9 resolution */
  border: 1px dashed rgba(255, 255, 255, 0.2); /* Match CombinePanel border */
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1); /* Match CombinePanel category button background */
}

.start-end-panel__frame-placeholder span {
  font-size: 13px;
  color: #9ca3af;
  font-family: "Rubik", sans-serif;
}

.start-end-panel__arrow {
  font-size: 24px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Description Section */
.start-end-panel__description {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.start-end-panel__description label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff; /* Match CombinePanel white text */
  margin-bottom: 16px;
  font-family: 'Rubik', sans-serif;
}

.start-end-panel__description textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  font-family: 'Rubik', sans-serif;
  color: #1f2937;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.start-end-panel__description textarea:focus {
  border-color: #cbe724;
}

/* Actions */
.start-end-panel__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.start-end-panel__confirm {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #cbe724;
  border: none;
  color: #1f2937;
}

.start-end-panel__confirm:hover:not(:disabled) {
  background: #1f2937;
  color: #cbe724;
}

.start-end-panel__confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Right-side generation panel */
.shot-generation-panel {
  position: fixed;
  /* top: 44px; */
  /* right: 0; */
  top: 67px; /* Navbar height + desired spacing */
  right: 16px;
  width: 400px;
  height: calc(100vh - 83px); /* Account for top navbar + top spacing + bottom spacing */
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px; /* Match bottom navbar's border radius */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Match bottom navbar's shadow */
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* Match bottom navbar's transition */
  z-index: 15;
  display: flex;
  flex-direction: column;
  border: none; /* Remove border since we're using shadow like bottom navbar */
}

.shot-generation-panel.open {
  transform: translateX(0);
}

/* Header */
.shot-generation-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
  /* border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  background: rgba(255, 255, 255, 0.1); */
  /* border-bottom: 1px solid #e5e7eb;
  background: #ffffff; */
}

.shot-generation-panel__header h3 {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.shot-generation-panel__close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.shot-generation-panel__close-btn:hover {
  color: #1f2937;
}

/* Content */
.shot-generation-panel__content {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Image Upload Section */
.shot-generation-panel__upload-section {
  margin-bottom: 0;
}

.shot-generation-panel__upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #9ca3af;
}

.shot-generation-panel__upload-placeholder:hover {
  border-color: #cbe724;
  background: #f0f9ff;
}

.shot-generation-panel__upload-placeholder:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Description editing section - textarea style like prompt section */
.shot-generation-panel__description-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.shot-generation-panel__description-label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-family: 'Rubik', sans-serif;
}

.shot-generation-panel__description-textarea-container {
  margin-bottom: 0;
}

.shot-generation-panel__description-section--actor-name .shot-generation-panel__description-textarea {
  min-height: 40px;
}

.shot-generation-panel__description-section--prop-name .shot-generation-panel__description-textarea {
  min-height: 40px;
}

.shot-generation-panel__description-section--location-name .shot-generation-panel__description-textarea {
  min-height: 40px;
}

.shot-generation-panel__description-edit .shot-generation-panel__description-input {
  min-height: 40px;
}

.shot-generation-panel__description-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  font-family: 'Rubik', sans-serif;
  color: #9ca3af;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.shot-generation-panel__description-textarea:hover {
  border-color: #cbe724;
  color: #1f2937;
}

.shot-generation-panel__description-textarea:focus {
  border-color: #cbe724;
  color: #1f2937;
}

.shot-generation-panel__description-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shot-generation-panel__description-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.shot-generation-panel__description-input:focus {
  outline: none;
  border-color: #cbe724;
}

.shot-generation-panel__description-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.shot-generation-panel__description-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: none;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.shot-generation-panel__description-btn:hover {
  background: none;
  color: #9ca3af;
}

.shot-generation-panel__description-save-btn {
  background: none;
  color: #9ca3af;
}

.shot-generation-panel__description-save-btn:hover {
  color: #ffffff;
  background: #cbe724;
}

.shot-generation-panel__description-cancel-btn {
  background: none;
  color: #ef4444;
}

.shot-generation-panel__description-cancel-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Prompt Section */
.shot-generation-panel__prompt-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shot-generation-panel__prompt-label {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.shot-generation-panel__prompt-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.shot-generation-panel__prompt-input:focus {
  border-color: #cbe724;
}

.shot-generation-panel__prompt-input::placeholder {
  color: #9ca3af;
}

/* Controls */
.shot-generation-panel__controls {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

/* Override flex-direction for video mode to stack rows vertically */
.shot-generation-panel__controls:has([data-video-controls]) {
  flex-direction: column;
  gap: 16px;
}

/* Controls row for video mode - 3 dropdowns in a line */
.shot-generation-panel__controls-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 0;
  justify-content: flex-start;
  align-items: center;
}

/* Remove equal spacing - let dropdowns size naturally */
.shot-generation-panel__controls-row .shot-generation-panel__control {
  flex: none;
  gap: 8px;
}

/* Full width control for model dropdown */
.shot-generation-panel__control--full-width {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-generation-panel__select--full-width {
  flex: 1 1;
}

.shot-generation-panel__references-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 0;
}

.shot-generation-panel__control,
.shot-generation-panel__dropdown-group {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

/* Combine control - separate line outside flex container */
.shot-generation-panel__combine-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

/* Start-End Frame Button */
.shot-generation-panel__start-end-btn {
  background: none;
  margin-top: 0;
  margin-left: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .shot-generation-panel__start-end-btn:hover {
  border-color: #cbe724;
} */

.shot-generation-panel__start-end-btn.active {
  background: #1f2937;
  color: #cbe724;
}

.shot-generation-panel__start-end-label {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  color: #1f2937;
  margin-left: 0;
}

/* Lipsync Button */
.shot-generation-panel__lipsync-btn {
  background: none;
  margin-top: 0;
  margin-left: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-generation-panel__lipsync-btn.active {
  background: #1f2937;
  color: #cbe724;
}

.shot-generation-panel__lipsync-label {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  color: #1f2937;
  margin-left: 0;
}

/* This styles the icons that replace text labels - dark branded color, no hover */
.shot-generation-panel__control svg {
  font-size: 16px;
  color: #1f2937;
  flex-shrink: 0;
}

.shot-generation-panel__control label {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.shot-generation-panel__select {
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.shot-generation-panel__select:focus {
  outline: none;
  border-color: #cbe724;
}

/* Generate Button - matching ImageGeneration.js branded styling */
.shot-generation-panel__generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #cbe724;
  color: #1f2937;
  border: none;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.shot-generation-panel__generate-btn:hover:not(:disabled) {
  background-color: #1f2937;
  color: #cbe724;
}

.shot-generation-panel__generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shot-generation-panel__generate-btn.limit-reached {
  background-color: #9ca3af;
  color: #1f2937;
  cursor: not-allowed;
}

/* Model label styling - branded grey color */
.shot-generation-panel__model-label {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 0;
  line-height: 1;
}

/* Spacing for content sections */
.shot-generation-panel__content > * {
  margin-bottom: 0;
}

.shot-generation-panel__content > *:last-child {
  margin-bottom: 0;
}

/* Error Display */
.shot-generation-panel__error {
  padding: 12px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #ef4444;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  margin: 0;
}

/* Separator */
.shot-generation-panel__separator {
  height: 1px;
  background: #e5e7eb;
  margin: 0 -20px;
}

/* Results Section */
.shot-generation-panel__results {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0; /* Add proper spacing for storyboard mode */
  /* margin-top: -16px; was -16px */
}

/* Adjust spacing specifically for video mode to maintain original layout */
.shot-generation-panel[data-filter="video"] .shot-generation-panel__results {
  margin-top: 0;
}

/* Placeholder text */
.shot-generation-panel__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  text-align: center;
}

/* Loading Animation */
.shot-generation-panel__loading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shot-generation-panel__loading-placeholder {
  width: 100%;
  /* height: 200px; */
  border-radius: 8px;
  background: #f9fafb;
  border: 2px dashed #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-generation-panel__loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
}

.shot-generation-panel__loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Generated Images Grid */
.shot-generation-panel__images-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shot-generation-panel__image-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.shot-generation-panel__image-item:hover {
  transform: translateY(-2px);
}

.shot-generation-panel__image {
  width: 100%;
  height: auto;
  display: block;
}

.shot-generation-panel__use-image-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 8px 16px;
  background: rgba(203, 231, 36, 0.95);
  color: #1f2937;
  border: none;
  border-radius: 6px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.shot-generation-panel__image-item:hover .shot-generation-panel__use-image-btn {
  opacity: 1;
}

.shot-generation-panel__use-image-btn:hover {
  background: #cbe724;
  transform: scale(1.05);
}

/* Download button for images */
.shot-generation-panel__download-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 8px 16px;
  background: rgba(31, 41, 55, 0.95);
  color: #cbe724;
  border: none;
  border-radius: 6px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shot-generation-panel__image-item:hover .shot-generation-panel__download-btn,
.shot-generation-panel__video-item:hover .shot-generation-panel__download-btn {
  opacity: 1;
}

.shot-generation-panel__download-btn:hover {
  background: rgba(31, 41, 55, 1);
  transform: scale(1.05);
}

/* Preview button for images - positioned between download and use buttons */
.shot-generation-panel__preview-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background: rgba(31, 41, 55, 0.8);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.shot-generation-panel__image-item:hover .shot-generation-panel__preview-btn {
  opacity: 1;
}

.shot-generation-panel__preview-btn:hover {
  background: #cbe724;
  color: #1f2937;
  transform: translateX(-50%) scale(1.05);
}

/* Lipsync badge for lipsync videos - positioned next to delete button */
.shot-generation-panel__lipsync-badge {
  position: absolute;
  top: 8px;
  right: 42px; /* This positions it to the left of delete button: 8px (delete right) + 26px (delete width) + 8px (gap) = 42px */
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  padding: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  width: 26px; /* This ensures consistent 26x26 size matching voice button */
  height: 26px;
  box-sizing: border-box;
}

/* This makes the SVG icon green branded color */
.shot-generation-panel__lipsync-badge svg {
  color: #cbe724;
  font-size: 14px;
}

/* Delete button for generated assets - matches StoryboardShot pattern */
.shot-generation-panel__delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
  width: 26px; /* This ensures consistent 26x26 size matching voice button */
  height: 26px;
  box-sizing: border-box;
}

.shot-generation-panel__delete-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* Asset deletion loading overlay - matches StoryboardShot pattern */
.shot-generation-panel__deleting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.shot-generation-panel__deleting-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
}

.shot-generation-panel__deleting-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.shot-generation-panel__deleting-text {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}


/* Video grid styles - similar to image grid */
.shot-generation-panel__videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
  padding: 0;  /* was 16px 0 */
  margin-top: 0; /* was 16px; this adds spacing between generate button and videos */
}

.shot-generation-panel__video-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.shot-generation-panel__video-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.shot-generation-panel__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.shot-generation-panel__use-video-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 8px 16px;
  background: rgba(203, 231, 36, 0.95);
  color: #1f2937;
  border: none;
  border-radius: 6px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0; /* 👉 Hidden by default like image button */
}

.shot-generation-panel__video-item:hover .shot-generation-panel__use-video-btn {
  opacity: 1; /* 👉 Show on hover like image button */
}

.shot-generation-panel__use-video-btn:hover {
  background: #cbe724;
  transform: scale(1.05); /* 👉 Same hover effect as image button */
}

/* Loading state for videos */
.shot-generation-panel__video-loading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0; /* was 16px 0 */
  margin-top: 0; /* was 16px; this adds spacing between generate button and loading placeholder */
}

.shot-generation-panel__video-loading-placeholder {
  width: 100%;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Height is set dynamically via inline style based on videoAspectRatio */
}

.shot-generation-panel__video-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shot-generation-panel__video-loading-animation p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Video play overlay - following BEM */
.shot-generation-panel__video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.shot-generation-panel__video-play-icon {
  font-size: 36px;
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.shot-generation-panel__video-item:hover
  .shot-generation-panel__video-play-icon {
  opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .shot-generation-panel {
    top: 96px; /* Mobile navbar height (80px) + spacing (16px) */
    right: 16px;
    width: calc(100% - 32px);
    height: calc(100vh - 112px); /* Account for mobile navbar (80px) + top spacing (16px) + bottom spacing (16px) */
  }

  .shot-generation-panel__content {
    padding: 16px;
    gap: 16px;
  }

  .shot-generation-panel__loading-placeholder {
    /* Height is now dynamic based on aspect ratio */
    /* height: 160px; */
  }
}

.shot-generation-panel__selected-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #cbe724;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-size: 16px;
  z-index: 2;
  opacity: 0.8;
}

.shot-generation-panel__image-item,
.shot-generation-panel__video-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

/* Reference Image Section */
.shot-generation-panel__reference-section {
  margin-bottom: 0;
}

.shot-generation-panel__reference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.shot-generation-panel__reference-header label {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.shot-generation-panel__reference-toggle {
  background: none;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-generation-panel__reference-toggle:hover {
  border-color: #cbe724;
  color: #1f2937;
}

.shot-generation-panel__reference-toggle.active {
  border-color: #cbe724;
  color: #cbe724;
  background: rgba(203, 231, 36, 0.1);
}

.shot-generation-panel__reference-container {
  margin-top: 8px;
}

.shot-generation-panel__reference-placeholder {
  position: relative;
  width: 100%;
  height: 80px;
  border: 1px dashed #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-generation-panel__reference-placeholder:hover {
  border-color: #cbe724;
  background: #f0f9ff;
}

.shot-generation-panel__reference-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.2s ease;
}

.shot-generation-panel__reference-delete-btn:hover {
  background: rgba(220, 38, 38, 0.9);
}

.shot-generation-panel__reference-preview {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.shot-generation-panel__reference-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shot-generation-panel__reference-plus {
  font-size: 20px;
  color: #9ca3af;
  font-weight: 300;
}

.shot-generation-panel__reference-text {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* Combined Images Section */
.shot-generation-panel__combined-images-section {
  margin: 20px 0;
}

.shot-generation-panel__combined-images-title {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  padding: 0 20px;
}

/* Loading Spinner - matching Storyboard styling */
.actors-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 200px); /* Account for navbar and spacing */
  width: 100%;
}

.actors-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #9ca3af;
}

.actors-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.actors-loading-text {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.actors-container {
  width: 100%;
  padding-right: 0;
  padding-bottom: 24px; /* Added padding to account for bottom navbar */
}

.actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
}

.actors-error {
  color: #ef4444;
  font-size: 14px;
  margin: 16px 0;
  padding: 12px;
  background: #fee2e2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.add-actor-btn {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 2px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-actor-btn:hover {
  transform: translateY(-5px);
  border-color: #cbe724;
}

.add-actor-icon {
  font-size: 24px;
  color: #9ca3af;
}

.add-actor-btn span {
  color: #9ca3af;
  font-size: 14px;
}

.actor-item {
  position: relative;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: grab;
  touch-action: none;
}

.actor-item:active {
  cursor: grabbing;
}

.actor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.actor-item[data-dragging="true"] {
  opacity: 0.5;
  z-index: 1;
}

/* Selected actor for generation - green border */
.actor-item.selected-for-generation {
  border: 2px solid #cbe724;
  box-shadow: 0 0 0 1px #cbe724, 0 4px 12px rgba(203, 231, 36, 0.3);
}

.actor-item.selected-for-generation:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px #cbe724, 0 6px 16px rgba(203, 231, 36, 0.4);
}

.actor-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.actor-image-container.loading {
  background: #ffffff;
  border-color: #ffffff;
}

.actor-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actor-number:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.actor-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.actor-delete-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.actor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actor-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 14px;
}

.actor-actions {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

.actor-action-btn {
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actor-action-btn:hover {
  background: #cbe724;
  color: #1f2937;
}

.actor-details {
  padding: 16px;
  background: #ffffff;
  /* border-top: 1px solid #e5e7eb; */
}

.actor-details h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px;
}

.actor-details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.actor-name {
  margin-bottom: 8px;
}

.actor-description {
  margin-bottom: 16px;
}

.actor-image-loading-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 10;
  border-radius: 10px;
}

.liquid-gradient {
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #cbe724, #1f2937);
  border-radius: 42% 28% 20% 30% / 85% 45% 85% 25%;
  animation: rotate 6s linear infinite, morph 8s ease-in-out infinite;
  opacity: 0.8;
  filter: blur(12px);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 15% 45% 55% 55%;
  }
  25% {
    border-radius: 25% 45% 30% 70% / 55% 30% 70% 45%;
  }
  50% {
    border-radius: 10% 60% 70% 40% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 65% 35% 45% 55% / 40% 55% 85% 65%;
  }
}

.actors-container {
  width: 100%;
  padding-right: 0;
  padding-bottom: 24px; /* Added padding to account for bottom navbar */
}

/* Actor deletion loading animation - matching Storyboard styling */
.actor-deleting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

.actor-deleting-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
}

.actor-deleting-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.actor-deleting-text {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .actors-container {
    padding-bottom: 140px; /* More space for mobile bottom navbar */
  }
  
  .actors-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .actor-image-container {
    aspect-ratio: 16 / 9;
  }

  .actor-action-btn {
    padding: 6px;
  }

  .actor-details {
    padding: 12px;
  }

  .actor-details p {
    font-size: 12px;
  }
} 
/* Loading Spinner - matching Storyboard styling */
.props-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 200px); /* Account for navbar and spacing */
  width: 100%;
}

.props-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #9ca3af;
}

.props-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.props-loading-text {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.props-container {
  width: 100%;
  padding-right: 0;
  padding-bottom: 24px; /* Added padding to account for bottom navbar */
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
}

.props-error {
  color: #ef4444;
  font-size: 14px;
  margin: 16px 0;
  padding: 12px;
  background: #fee2e2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.add-prop-btn {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 2px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-prop-btn:hover {
  transform: translateY(-5px);
  border-color: #cbe724;
}

.add-prop-icon {
  font-size: 24px;
  color: #9ca3af;
}

.add-prop-btn span {
  color: #9ca3af;
  font-size: 14px;
}

.prop-item {
  position: relative;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: grab;
  touch-action: none;
}

.prop-item:active {
  cursor: grabbing;
}

.prop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prop-item[data-dragging="true"] {
  opacity: 0.5;
  z-index: 1;
}

/* Selected prop for generation - green border */
.prop-item.selected-for-generation {
  border: 2px solid #cbe724;
  box-shadow: 0 0 0 1px #cbe724, 0 4px 12px rgba(203, 231, 36, 0.3);
}

.prop-item.selected-for-generation:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px #cbe724, 0 6px 16px rgba(203, 231, 36, 0.4);
}

.prop-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.prop-image-container.loading {
  background: #ffffff;
  border-color: #ffffff;
}

.prop-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prop-number:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.prop-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.prop-delete-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.prop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 14px;
}

.prop-actions {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

.prop-action-btn {
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-action-btn:hover {
  background: #cbe724;
  color: #1f2937;
}

.prop-details {
  padding: 16px;
  background: #ffffff;
  /* border-top: 1px solid #e5e7eb; */
}

.prop-details h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px;
}

.prop-details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.prop-name {
  margin-bottom: 8px;
}

.prop-description {
  margin-bottom: 16px;
}

.prop-image-loading-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 10;
  border-radius: 10px;
}

.liquid-gradient {
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #cbe724, #1f2937);
  border-radius: 42% 28% 20% 30% / 85% 45% 85% 25%;
  animation: rotate 6s linear infinite, morph 8s ease-in-out infinite;
  opacity: 0.8;
  filter: blur(12px);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 15% 45% 55% 55%;
  }
  25% {
    border-radius: 25% 45% 30% 70% / 55% 30% 70% 45%;
  }
  50% {
    border-radius: 10% 60% 70% 40% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 65% 35% 45% 55% / 40% 55% 85% 65%;
  }
}

.props-container {
  width: 100%;
  padding-right: 0;
  padding-bottom: 24px; /* Added padding to account for bottom navbar */
}

/* Prop deletion loading animation - matching Storyboard styling */
.prop-deleting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

.prop-deleting-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
}

.prop-deleting-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.prop-deleting-text {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .props-container {
    padding-bottom: 140px; /* More space for mobile bottom navbar */
  }
  
  .props-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .prop-image-container {
    aspect-ratio: 16 / 9;
  }

  .prop-action-btn {
    padding: 6px;
  }

  .prop-details {
    padding: 12px;
  }

  .prop-details p {
    font-size: 12px;
  }
}
/* Loading Spinner - matching Storyboard styling */
.locations-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 200px); /* Account for navbar and spacing */
  width: 100%;
}

.locations-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #9ca3af;
}

.locations-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.locations-loading-text {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.locations-container {
  width: 100%;
  padding-right: 0;
  padding-bottom: 24px; /* Added padding to account for bottom navbar */
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
}

.locations-error {
  color: #ef4444;
  font-size: 14px;
  margin: 16px 0;
  padding: 12px;
  background: #fee2e2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.add-location-btn {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 2px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-location-btn:hover {
  transform: translateY(-5px);
  border-color: #cbe724;
}

.add-location-icon {
  font-size: 24px;
  color: #9ca3af;
}

.add-location-btn span {
  color: #9ca3af;
  font-size: 14px;
}

.location-item {
  position: relative;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: grab;
  touch-action: none;
}

.location-item:active {
  cursor: grabbing;
}

.location-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location-item[data-dragging="true"] {
  opacity: 0.5;
  z-index: 1;
}

/* Selected location for generation - green border */
.location-item.selected-for-generation {
  border: 2px solid #cbe724;
  box-shadow: 0 0 0 1px #cbe724, 0 4px 12px rgba(203, 231, 36, 0.3);
}

.location-item.selected-for-generation:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px #cbe724, 0 6px 16px rgba(203, 231, 36, 0.4);
}

.location-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.location-image-container.loading {
  background: #ffffff;
  border-color: #ffffff;
}

.location-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-number:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.location-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.location-delete-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.location-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 14px;
}

.location-actions {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

.location-action-btn {
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-action-btn:hover {
  background: #cbe724;
  color: #1f2937;
}

.location-details {
  padding: 16px;
  background: #ffffff;
  /* border-top: 1px solid #e5e7eb; */
}

.location-details h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px;
}

.location-details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.location-name {
  margin-bottom: 8px;
}

.location-description {
  margin-bottom: 16px;
}

.location-image-loading-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 10;
  border-radius: 10px;
}

.liquid-gradient {
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #cbe724, #1f2937);
  border-radius: 42% 28% 20% 30% / 85% 45% 85% 25%;
  animation: rotate 6s linear infinite, morph 8s ease-in-out infinite;
  opacity: 0.8;
  filter: blur(12px);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 15% 45% 55% 55%;
  }
  25% {
    border-radius: 25% 45% 30% 70% / 55% 30% 70% 45%;
  }
  50% {
    border-radius: 10% 60% 70% 40% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 65% 35% 45% 55% / 40% 55% 85% 65%;
  }
}

.locations-container {
  width: 100%;
  padding-right: 0;
  padding-bottom: 24px; /* Added padding to account for bottom navbar */
}

/* Location deletion loading animation - matching Storyboard styling */
.location-deleting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

.location-deleting-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
}

.location-deleting-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.location-deleting-text {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .locations-container {
    padding-bottom: 140px; /* More space for mobile bottom navbar */
  }
  
  .locations-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .location-image-container {
    aspect-ratio: 16 / 9;
  }

  .location-action-btn {
    padding: 6px;
  }

  .location-details {
    padding: 12px;
  }

  .location-details p {
    font-size: 12px;
  }
}
/* Left-side camera motion panel */
.camera-motion-panel {
  position: fixed;
  top: 67px; /* Navbar height + desired spacing */
  left: 16px;
  width: 400px;
  height: calc(100vh - 83px); /* Account for top navbar + top spacing + bottom spacing */
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px; /* Match bottom navbar's border radius */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Match bottom navbar's shadow */
  transform: translateX(-120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* Match bottom navbar's transition */
  z-index: 15;
  display: flex;
  flex-direction: column;
  border: none; /* Remove border since we're using shadow like bottom navbar */
}

.camera-motion-panel.open {
  transform: translateX(0);
}

/* Header */
.camera-motion-panel .shot-generation-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
}

.camera-motion-panel .shot-generation-panel__header h3 {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Content */
.camera-motion-panel .shot-generation-panel__content {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.camera-motion-panel__counter-text {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  font-family: "Rubik", sans-serif;
}

/* Clear section */
.camera-motion-panel__clear-section {
  padding: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.camera-motion-panel__clear-all-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  transition: all 0.2s ease;
  padding: 12px 24px;
  min-width: 120px;
}

.camera-motion-panel__clear-all-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}


/* Category toggle buttons */
.camera-motion-panel__category-toggles {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  padding: 0;
}

.camera-motion-panel__category-btn {
  flex: 1 1;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
}

.camera-motion-panel__category-btn.active {
  background: #cbe724;
  border-color: #cbe724;
  color: #1f2937;
}

.camera-motion-panel__category-btn:hover:not(.active) {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Canvas container */
.camera-motion-panel__canvas-container {
  padding: 0;
  margin-bottom: 0;
  background: #1f2937;
  border-radius: 8px;
}

.camera-motion-panel__canvas {
  width: 100%;
  height: 300px;
  background: #1f2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.camera-motion-panel__canvas svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* Selected concepts display */
.camera-motion-panel__selected-concepts {
  padding: 0;
  color: #9ca3af;
  font-size: 14px;
  font-family: "Rubik", sans-serif;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .camera-motion-panel {
    top: 96px; /* Mobile navbar height (80px) + spacing (16px) */
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100vh - 112px); /* Account for mobile navbar (80px) + top spacing (16px) + bottom spacing (16px) */
  }

  .camera-motion-panel .shot-generation-panel__content {
    padding: 16px;
    gap: 16px;
  }


  .camera-motion-panel__clear-section {
    padding: 0 16px;
  }
}
/* Left-side combine panel for M6 actor/prop selection */
.combine-panel {
  position: fixed;
  top: 67px; /* Navbar height + desired spacing - SAME as CameraMotionPanel */
  left: 16px;
  width: 400px; /* SAME as CameraMotionPanel */
  height: calc(100vh - 83px); /* Account for top navbar + top spacing + bottom spacing - SAME as CameraMotionPanel */
  background: rgba(31, 41, 55, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px; /* SAME as CameraMotionPanel */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* SAME as CameraMotionPanel */
  transform: translateX(-120%); /* SAME as CameraMotionPanel */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* SAME as CameraMotionPanel */
  z-index: 15; /* SAME as CameraMotionPanel */
  display: flex;
  flex-direction: column;
  color: #ffffff;
  border: none; /* SAME as CameraMotionPanel */
}

.combine-panel.open {
  transform: translateX(0); /* SAME as CameraMotionPanel */
}

/* Header */
.combine-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.combine-panel__header h3 {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.combine-panel__counter-text {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.combine-panel__close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.combine-panel__close-btn:hover {
  color: #ffffff;
}

/* Content */
.combine-panel__content {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
}

/* Category toggles */
.combine-panel__category-toggles {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.combine-panel__category-btn {
  flex: 1 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.combine-panel__category-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.combine-panel__category-btn.active {
  background: #cbe724;
  border-color: #cbe724;
  color: #1f2937;
}

/* Items list */
.combine-panel__items-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.combine-panel__empty {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  padding: 20px;
}

.combine-panel__item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.combine-panel__item:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.combine-panel__item.selected {
  background: rgba(203, 231, 36, 0.15);
  border-color: #cbe724;
}

.combine-panel__item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.combine-panel__checkbox {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #cbe724; /* Brand green color */
}

.combine-panel__checkbox:disabled {
  cursor: not-allowed;
}

.combine-panel__thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.combine-panel__item-info {
  flex: 1 1;
}

.combine-panel__item-name {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 2px;
}

.combine-panel__no-image {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
}

/* Selected summary */
.combine-panel__selected-summary {
  margin-bottom: 20px;
}

.combine-panel__selected-summary h4 {
  font-size: 13px;
  color: #d1d5db;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.combine-panel__selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.combine-panel__selected-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #d1d5db;
}

.combine-panel__selected-item img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

/* Clear button */
.combine-panel__clear-section {
  margin-top: auto;
}

.combine-panel__clear-all-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.8);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.combine-panel__clear-all-btn:hover {
  background: rgba(239, 68, 68, 1);
}

/* Scrollbar styling */
.combine-panel__items-list::-webkit-scrollbar {
  width: 4px;
}

.combine-panel__items-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.combine-panel__items-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.combine-panel__items-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* Left-side combine image panel for Vidu image generation by combining actors/props */
.combine-image-panel {
  position: fixed;
  top: 67px; /* Navbar height + desired spacing - SAME as CombinePanel */
  left: 16px;
  width: 400px; /* SAME as CombinePanel */
  height: calc(100vh - 83px); /* Account for top navbar + top spacing + bottom spacing - SAME as CombinePanel */
  background: rgba(31, 41, 55, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px; /* SAME as CombinePanel */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* SAME as CombinePanel */
  transform: translateX(-120%); /* SAME as CombinePanel */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* SAME as CombinePanel */
  z-index: 15; /* SAME as CombinePanel */
  display: flex;
  flex-direction: column;
  color: #ffffff;
  border: none; /* SAME as CombinePanel */
}

.combine-image-panel.open {
  transform: translateX(0); /* SAME as CombinePanel */
}

/* Header */
.combine-image-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.combine-image-panel__header h3 {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.combine-image-panel__counter-text {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* Content */
.combine-image-panel__content {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
}

/* Category toggles */
.combine-image-panel__category-toggles {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.combine-image-panel__category-btn {
  flex: 1 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.combine-image-panel__category-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.combine-image-panel__category-btn.active {
  background: #cbe724;
  border-color: #cbe724;
  color: #1f2937;
}

/* Items list */
.combine-image-panel__items-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.combine-image-panel__empty {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  padding: 20px;
}

.combine-image-panel__item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.combine-image-panel__item:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.combine-image-panel__item.selected {
  background: rgba(203, 231, 36, 0.15);
  border-color: #cbe724;
}

.combine-image-panel__item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.combine-image-panel__checkbox {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.combine-image-panel__checkbox:disabled {
  cursor: not-allowed;
}

.combine-image-panel__thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.combine-image-panel__item-info {
  flex: 1 1;
}

.combine-image-panel__item-name {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 2px;
}

.combine-image-panel__no-image {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
}

/* Selected summary */
.combine-image-panel__selected-summary {
  margin-bottom: 20px;
}

.combine-image-panel__selected-summary h4 {
  font-size: 13px;
  color: #d1d5db;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.combine-image-panel__selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.combine-image-panel__selected-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #d1d5db;
}

.combine-image-panel__selected-item img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

/* Clear button */
.combine-image-panel__clear-section {
  margin-top: auto;
}

.combine-image-panel__clear-all-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.8);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.combine-image-panel__clear-all-btn:hover {
  background: rgba(239, 68, 68, 1);
}

/* Scrollbar styling */
.combine-image-panel__items-list::-webkit-scrollbar {
  width: 4px;
}

.combine-image-panel__items-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.combine-image-panel__items-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.combine-image-panel__items-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* Left-side lipsync panel for audio upload and selection */
.lipsync-panel {
  position: fixed;
  top: 67px; /* Navbar height + desired spacing - SAME as CombinePanel */
  left: 16px;
  width: 400px; /* SAME as CombinePanel */
  height: calc(100vh - 83px); /* Account for top navbar + top spacing + bottom spacing - SAME as CombinePanel */
  background: rgba(31, 41, 55, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px; /* SAME as CombinePanel */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* SAME as CombinePanel */
  transform: translateX(-120%); /* SAME as CombinePanel */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* SAME as CombinePanel */
  z-index: 15; /* SAME as CombinePanel */
  display: flex;
  flex-direction: column;
  color: #ffffff;
  border: none; /* SAME as CombinePanel */
}

.lipsync-panel.open {
  transform: translateX(0); /* SAME as CombinePanel */
}

/* Header */
.lipsync-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lipsync-panel__header h3 {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.lipsync-panel__close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lipsync-panel__close-btn:hover {
  color: #ffffff;
}

/* Content */
.lipsync-panel__content {
  flex: 1 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Upload button section */
.lipsync-panel__upload-section {
  margin-bottom: 8px;
}

.lipsync-panel__upload-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(203, 231, 36, 0.9);
  color: #1f2937;
  border: none;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lipsync-panel__upload-btn:hover:not(:disabled) {
  background: #cbe724;
}

.lipsync-panel__upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lipsync-panel__upload-btn svg {
  font-size: 16px;
}

/* Audio list */
.lipsync-panel__audio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Audio row (similar to Actors/Props/Locations) */
.lipsync-panel__audio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
}

.lipsync-panel__audio-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lipsync-panel__audio-row.selected {
  background: rgba(203, 231, 36, 0.15);
  border-color: #cbe724;
}

/* This displays audio duration on the left side */
.lipsync-panel__audio-duration {
  min-width: 40px;
  font-size: 12px;
  font-weight: 600;
  color: #cbe724;
  text-align: left;
}

.lipsync-panel__audio-name {
  flex: 1 1;
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  word-break: break-word;
}

.lipsync-panel__check-icon {
  color: #cbe724;
  font-size: 14px;
  margin-left: auto;
}

/* Empty state */
.lipsync-panel__empty {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  padding: 40px 20px;
}

.lipsync-panel__empty p {
  margin: 0;
}

/* Loading state */
.lipsync-panel__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
}

.lipsync-panel__loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.lipsync-panel__loading p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* Scrollbar styling */
.lipsync-panel__audio-list::-webkit-scrollbar {
  width: 4px;
}

.lipsync-panel__audio-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.lipsync-panel__audio-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.lipsync-panel__audio-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lipsync-panel {
    top: 96px; /* Mobile navbar height (80px) + spacing (16px) */
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100vh - 112px); /* Account for mobile navbar (80px) + top spacing (16px) + bottom spacing (16px) */
  }
}

/* Loading Spinner - matching ShotGenerationPanel styling */
.storyboard-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 200px); /* Account for navbar and spacing */
  width: 100%;
}

.storyboard-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #9ca3af;
}

.storyboard-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.storyboard-loading-text {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Credits Counter */
.dashboard-storyboard-counter-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

.dashboard-storyboard-counter {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #9ca3af;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 0;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  margin-top: 8px; /* Changed from 0 to 8px */
}

.storyboard-project-name {
  align-self: flex-start;
}

.storyboard-project-name h2 {
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.storyboard-error {
  color: #ef4444;
  font-size: 14px;
  margin: 16px 0;
  padding: 12px;
  background: #fee2e2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.storyboard-filter-container {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.storyboard-filter-btn {
  font-family: "Rubik", sans-serif;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.storyboard-filter-btn:hover {
  border-color: #cbe724;
}

.storyboard-filter-btn.active {
  background: #cbe724;
  border-color: #cbe724;
  color: #1f2937;
  font-weight: 600;
}

.add-shot-btn {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 2px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-shot-btn.standalone {
  height: 60px;
  flex-direction: row;
  margin-top: 24px;
}

.add-shot-btn:hover {
  transform: translateY(-5px);
  border-color: #cbe724;
}

.add-shot-icon {
  font-size: 24px;
  color: #9ca3af;
}

.add-shot-btn span {
  color: #9ca3af;
  font-size: 14px;
}

.shot-item {
  position: relative;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: grab;
  touch-action: none;
}

.shot-item:active {
  cursor: grabbing;
}

.shot-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shot-item[data-dragging="true"] {
  opacity: 0.5;
  z-index: 1;
}

/* Selected shot for generation - green border */
.shot-item.selected-for-generation {
  border: 2px solid #cbe724;
  box-shadow: 0 0 0 1px #cbe724, 0 4px 12px rgba(203, 231, 36, 0.3);
}

.shot-item.selected-for-generation:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px #cbe724, 0 6px 16px rgba(203, 231, 36, 0.4);
}

.shot-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.shot-image-container.loading {
  background: #ffffff;
  border-color: #ffffff;
}

.shot-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shot-number:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.shot-number.selected {
  background: #cbe724;
  color: #1f2937;
}

/* AB indicator for start-end frame shots */
.shot-start-end-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(31, 41, 55, 0.8);
  color: #ffffff;
  padding: 6px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.shot-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.shot-delete-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.shot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 14px;
}

.shot-actions {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}

.shot-action-btn {
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-action-btn:hover {
  background: #cbe724;
  color: #1f2937;
}

.shot-details {
  padding: 16px;
  background: #ffffff;
  /* border-top: 1px solid #e5e7eb; */
}

.shot-details h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px;
}

.shot-details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.shot-description {
  margin-bottom: 16px;
}

.shot-camera,
.shot-type,
.shot-size,
.shot-lens {
  margin-bottom: 16px;
}

.shot-camera p,
.shot-type p,
.shot-size p,
.shot-lens p {
  font-family: monospace;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.shot-image-loading-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255 ,255, 0.5);
  /* background: #ffffff; */
  z-index: 10;
  border-radius: 10px;
}

.shot-image-loading-animation .shot-generation-panel__loading-spinner {
  width: 24px;
  height: 24px;
  border-width: 2px;
  /* Ensure perfect circle in small containers */
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 auto;
}

.shot-image-loading-animation p {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  color: #1f2937;
  font-weight: 500;
}

/* Timeline thumbnail spinner: enforce round shape and consistent border */
.clip-thumbnail-loading-animation .shot-generation-panel__loading-spinner {
  width: 20px; /* slightly smaller for tiny thumbnails */
  height: 20px;
  aspect-ratio: 1 / 1; /* This guarantees 1:1 even with flex/stretch */
  box-sizing: border-box; /* Include border in set size to avoid subpixel distortion */
  display: inline-block; /* Prevent line-height from affecting height */
  flex: 0 0 auto; /* Do not stretch in flex containers */
  border: 2px solid #e5e7eb; /* base ring */
  border-top-color: #cbe724; /* green accent */
  border-radius: 50%;
}

.shots-container {
  /* height: 100vh;
  overflow-y: auto; */
  width: 100%;
  padding-right: 0;
  padding-bottom: 24px; /* Added padding to account for bottom navbar */
}



.shot-video-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
}

.shot-video-wrapper:hover .shot-play-icon {
  opacity: 0.8;
}

.shot-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shot-video-wrapper:hover .shot-video-overlay {
  opacity: 1;
}

.shot-play-icon {
  color: white;
  font-size: 48px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}



/* Add placeholder style for drag over */
.shot-item[data-dragging-over="true"] {
  border: 2px dashed #cbe724;
  background: rgba(203, 231, 36, 0.1);
}

/* EXPORT PDF BTN */
.dashboard-export-pdf-btn,
.dashboard-buy-credits-btn {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
}

.dashboard-buy-credits-btn {
  color: #cbe724;
}

.dashboard-export-pdf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #9ca3af;
}



/* Split image layout for stitched shots */
.shot-stitched-images {
  width: 100%;
  height: 100%;
  display: flex;
}

.shot-stitched-image-left,
.shot-stitched-image-right {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.shot-stitched-image-left .shot-image,
.shot-stitched-image-right .shot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-stitched-image-left .shot-placeholder,
.shot-stitched-image-right .shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 12px;
}

/* Add a subtle divider between the two images */
.shot-stitched-image-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

/* STORYBOARD VIDEO FILE MODAL */
.storyboard-video-file-modal .video-generation-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
}



/* Mobile responsive */
@media (max-width: 768px) {
  .shots-container {
    padding-bottom: 140px; /* More space for mobile bottom navbar */
  }
  
  .shots-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .shot-image-container {
    aspect-ratio: 16 / 9;
  }

  .shot-action-btn {
    padding: 6px;
  }

  .shot-details {
    padding: 12px;
  }

  .shot-details p {
    font-size: 12px;
  }
  
  .shot-stitched-image-left .shot-placeholder,
  .shot-stitched-image-right .shot-placeholder {
    font-size: 10px;
  }

}

/* Shot deletion loading animation - matching ShotGenerationPanel styling */
.shot-deleting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

.shot-deleting-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
}

.shot-deleting-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.shot-deleting-text {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}


.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background-color: #ffffff;
}

.login-demo-section {
  background-color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-demo-content {
  max-width: 480px;
  text-align: center;
}

.login-demo-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.login-demo-highlight {
  color: #cbe724;
}

.login-demo-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #9ca3af;
  padding: 0 16px;
  margin: 0 0 16px;
}

.demo-video-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.demo-video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Login form side */
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
}

.login-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 32px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 32px;
  text-align: center;
}

.login-error {
  color: #f21170;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  width: 100%;
}

.login-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #1f2937;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: #cbe724;
}

.login-submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #cbe724;
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}

.login-submit-btn:hover {
  background-color: #1f2937;
  color: #cbe724;
  transition: all 0.3s ease;
}

.login-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-forgot-password {
  margin-top: 0;
}

.login-signup-link,
.login-forgot-password {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #9ca3af;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
}

.login-signup-link {
  margin-top: 0;
  margin-bottom: 0;
}

.login-signup-link span,
.login-forgot-password span {
  font-weight: 500;
  color: #cbe724;
  cursor: pointer;
}

.login-signup-link span:hover,
.login-forgot-password span:hover {
  text-decoration: underline;
}

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

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.password-toggle-btn:hover {
  color: #cbe724;
}

.login-reset-success {
  color: #10b981;
  font-weight: 500;
}

/* MOBILE */
@media (max-width: 768px) {
  .login-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .login-demo-section {
    padding: 24px;
  }

  .login-demo-title {
    font-size: 40px;
  }

  .login-demo-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .demo-video-container {
    max-width: 380px;
    margin: 0 auto;
  }

  .login-form-side {
    padding: 24px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
}

.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000;
  margin: 0;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: overlay;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 78px;
  font-weight: 800;
  color: #ffffff;
  line-height: 110%;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.hero-subtitle {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 300;
  color: #ffffff;
  line-height: 110%;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-hashtags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.hashtag {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #9ca3af;
  background-color: rgba(31, 41, 55, 0.7);
  padding: 8px 12px;
  border-radius: 6px;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-button {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0 80px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-button.primary {
  background-color: #cbe724;
  color: #1f2937;
}

.hero-button.secondary {
  background-color: #1f2937;
  color: #cbe724;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-content .social-media-icons {
  margin: 0;
}

/* FOOTER CONTAINER */
.hero-footer {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-text {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  opacity: 0.4;
}

/* LOGO */
.hero-logo {
  height: 20px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
    padding: 0 16px;
  }

  .hero-subtitle {
    font-size: 20px;
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .hero-hashtags {
    padding: 0 16px;
    margin-bottom: 24px;
    gap: 12px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
    gap: 12px;
  }

  .hero-button {
    width: 100%;
  }

  /* FOOTER CONTAINER */
  .hero-footer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    bottom: 24px;
    left: 16px;
    right: 16px;
  }

  /* TEXT */
  .hero-text-container {
    /* Mobile styling handled by parent */
  }

  .hero-text {
    /* font-size: 12px; */
  }

  /* LOGO */
  .hero-logo-container {
    /* Mobile styling handled by parent */
  }

  .hero-logo {
    height: 16px;
  }
}

.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 24px 0;
}

.social-media-icons-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 24px;
  padding: 8px;
  transition: color 0.3s ease;
}

.social-media-icons-btn:hover {
  color: #cbe724;
}

@media (max-width: 768px) {
  .social-media-icons {
    justify-content: left;
    gap: 8px;
  }

  .social-media-icons-btn {
    padding: 0;
  }

}
.section-press {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 64px auto;
  padding: 0 20px;
}

.section-press-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.press-logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 800px;
}

.press-logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.press-logo-item:hover {
  opacity: 0.8;
}

.press-logo-image {
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .section-press {
    margin: 32px;
    padding: 0;
    align-items: flex-start;
  }
  
  .section-press-title {
    font-size: 32px;
    margin-bottom: 24px;
    text-align: left;
  }
  
  .press-logos-container {
    gap: 32px;
    justify-content: flex-start;
  }
  
  .press-logo-image {
    max-width: 150px;
    max-height: 60px;
  }
} 
.solution-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 64px auto;
}

.solution-section-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  padding: 0 20px;
}

.solution-card {
  padding: 32px;
  border-radius: 8px;
  background-color: #1f2937;
  transition: transform 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
}

.solution-icon-wrapper {
  margin-bottom: 16px;
}

.solution-icon {
  font-size: 32px;
  color: #cbe724;
}

.solution-card-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.solution-description {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  color: #9ca3af;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .solution-section {
    margin-top: 32px;
    width: 100%;
    margin-bottom: 32px;
  }

  .solution-section-title {
    align-self: self-start;
    font-size: 32px;
    margin-bottom: 32px;
    text-align: left;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .solution-card {
    padding: 24px;
  }

  .solution-card-title {
    font-size: 20px;
  }

  .solution-description {
    font-size: 14px;
    line-height: 20px;
  }
}

.section-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  background-color: #1f2937;
  padding: 80px 0;
}

.section-showcase-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  margin-bottom: 48px;
}

.showcase-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #1f2937;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  /* Ensure container maintains size during video loading with <source> tags on iOS */
  contain: layout style;
}

.showcase-video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.showcase-video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121820;
  z-index: 1;
}

.showcase-video-loading-text {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #ffffff;
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
          user-select: none;
  /* pointer-events: none; */ /* disables any click events on the video */
  -webkit-user-drag: none;
  /* Fix for iOS Safari when using <source> tags */
  display: block;
  transform: translateZ(0);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.video-play-icon {
  font-size: 36px;
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.showcase-video-container:hover .video-play-icon {
  opacity: 0.8;
}

.showcase-load-more {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  background-color: #cbe724;
  border: none;
  border-radius: 10px;
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
  display: block;
}

.showcase-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .section-showcase {
    padding: 48px 0;
  }
  
  .section-showcase-title {
    align-self: flex-start;
    font-size: 32px;
    text-align: left;
    margin-bottom: 32px;
  }
  
  .showcase-grid {
    /* Use flexbox instead of grid on mobile for better iOS compatibility */
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .showcase-load-more {
    width: 100%;
    padding: 14px 20px;
  }
  
  /* iOS Safari specific fix for video elements with <source> tags */
  .showcase-video {
    /* Force proper video sizing on iOS */
    transform: translate3d(0, 0, 0);
    /* Prevent layout shifts during video loading */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Fix for iOS Safari flexbox item alignment */
  .showcase-video-container {
    /* Ensure proper flex item behavior */
    flex-shrink: 0;
    /* Prevent overflow issues */
    min-height: 0;
    min-width: 0;
    /* Force proper positioning */
    position: relative;
    z-index: 1;
  }
}
.section-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 64px auto;
}

.section-features-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  padding: 0 20px;
}

.feature-card {
  padding: 32px;
  border-radius: 8px;
  background-color: #1f2937;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.icon-wrapper {
  margin-bottom: 16px;
}

.card-icon {
  font-size: 32px;
  color: #cbe724;
}

.card-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-description {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  color: #9ca3af;
}

/* Download card specific styles */
.download-card {
  margin-top: 24px;
  width: calc(100% - 64px);
  padding: 24px 32px;
}

.download-card-content {
  display: flex;
  align-items: center;
}

.download-card .icon-wrapper {
  margin-bottom: 0;
  margin-right: 24px;
  flex-shrink: 0;
}

.download-text {
  flex-grow: 1;
}

.download-text .card-title,
.download-text .card-description {
  margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .section-features {
    margin-top: 32px;
    width: 100%;
    margin-bottom: 32px;
  }
  
  .section-features-title {
    align-self: self-start;
    font-size: 32px;
    margin-bottom: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }
  
  .feature-card {
    padding: 24px;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .card-description {
    font-size: 14px;
    line-height: 20px;
  }
  
  /* Make download card look like others on mobile */
  .download-text {
    margin-top: -20px;
  }

  .download-card {
    width: calc(100% - 48px);
    padding: 24px;
    margin-top: 16px;
  }
  
  .download-card-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .download-card .icon-wrapper {
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .download-text .card-title {
    margin-bottom: 12px;
  }
}

/* --- Static row of 8 icons, centered, no scroll --- */
.features-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 0 auto 24px auto;
  max-width: 1100px;
}

.features-icon-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* opacity: 0.7; */
  transition: opacity 0.3s, transform 0.3s;
}

.features-icon-btn--active {
  opacity: 1;
  transform: scale(1.2);
}

.features-icon {
  font-size: 32px;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: visible;
}

.features-icon-btn--active .features-icon {
  color: #1f2937;
  background: #cbe724;
  box-shadow: 
    0 0 12px rgba(85, 85, 83, 0.4),
    0 0 20px rgba(203, 231, 36, 0.2);
}

/* --- Selected feature info --- */
.features-selected-info {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 24px auto;
  text-align: center;
}

.features-selected-title {
  font-family: "Rubik", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #cbe724;
  margin-top: 0;
  margin-bottom: 0;
}

.features-selected-description {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- Screenshot/preview container --- */
.features-screenshot-demo {
  width: 100%;
  max-width: 1100px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.features-screenshot-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  color: #6b7280;
  background: transparent;
  z-index: 1;
}

.features-screenshot {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.features-screenshot--loaded {
  opacity: 1;
}

/* Remove old scroll/fade styles */
.features-icons-scroll,
.features-icons-list,
.features-icons-fade,
.features-icons-fade--left,
.features-icons-fade--right,
.features-icons-list--center {
  display: none !important;
}

@media (max-width: 768px) {
  .features-icons-row {
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .features-icons-row::-webkit-scrollbar {
    display: none;
  }

  .features-icon-btn {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 20px 12px;
  }

  .features-icon-btn:first-child {
    margin-left: 0;
  }

  .features-icon-btn:last-child {
    margin-right: 0; /* Add margin to last icon */
  }

  .features-icon {
    font-size: 32px;
    padding: 8px;
  }

  .features-selected-title {
    font-size: 24px;
    margin-top: 16px;
    text-align: left;
  }

  .features-selected-description {
    font-size: 16px;
    padding: 0;
    text-align: left;
  }

  .features-screenshot-demo {
    /* Remove fixed height for mobile too */
  }
  
  .features-screenshot-loading {
    font-size: 14px;
  }
}
/* Main section container */
.section-previz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 64px auto;
}

/* Section title styling */
.section-previz-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

/* Video container with classy styling - 16:9 aspect ratio */
.previz-video-demo {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  margin: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f3f4f6;
  overflow: hidden;
  cursor: pointer;
}

/* Loading state overlay */
.previz-video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  color: #6b7280;
  background: #f3f4f6;
  z-index: 1;
}

/* Video element styling */
.previz-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  -webkit-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

/* Loaded video state */
.previz-video--loaded {
  opacity: 1;
}

/* Play button overlay */
.previz-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.previz-play-icon {
  font-size: 36px;
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.previz-video-demo:hover .previz-play-icon {
  opacity: 0.8;
}

.previz-unmute-text {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.1;
  transition: opacity 0.3s;
  text-align: center;
  padding: 12px 24px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
}

.previz-video-demo:hover .previz-unmute-text {
  opacity: 0.5;
}

/* Carousel navigation arrows */
.previz-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 18px;
}

.previz-carousel__nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.previz-carousel__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.previz-carousel__nav--prev {
  left: 20px;
}

.previz-carousel__nav--next {
  right: 20px;
}

/* Carousel dots navigation */
.previz-carousel__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.previz-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1f2937;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  opacity: 0.6;
}

.previz-carousel__dot:hover {
  opacity: 0.9;
  transform: scale(1.2);
}

.previz-carousel__dot--active {
  background-color: #cbe724;
  width: 32px;
  border-radius: 6px;
  opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .section-previz {
    margin: 32px auto;
    width: 100%;
  }

  .section-previz-title {
    font-size: 32px;
    margin-bottom: 24px;
    text-align: left;
    align-self: flex-start;
  }

  .previz-video-demo {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }

  .previz-video-loading {
    font-size: 14px;
  }

  .previz-video {
    border-radius: 8px;
  }

  /* Smaller carousel controls on mobile */
  .previz-carousel__nav {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .previz-carousel__nav--prev {
    left: 10px;
  }

  .previz-carousel__nav--next {
    right: 10px;
  }

  .previz-carousel__dots {
    bottom: 10px;
    gap: 8px;
  }

  .previz-carousel__dot {
    width: 8px;
    height: 8px;
  }

  .previz-carousel__dot--active {
    width: 24px;
  }
} 
.section-three {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  max-width: 1100px;
  padding: 0;
  margin: 0 auto;
  background-color: #ffffff;
}

.pricing-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.pricing-container {
  width: 100%;
  max-width: 1000px;
}

.pricing-cards-wrapper {
  display: flex;
  gap: 24px;
  justify-content: center;
  /* flex-wrap: wrap; Allows cards to wrap on smaller screens */
}

.pricing-card {
  background-color: #1f2937;
  border-radius: 16px;
  padding: 24px;
  border: 4px solid transparent;
  width: 310px; /* idk if this even affects anything */
  flex: 0 0 310px;
  /* transition: transform 0.3s ease; */
}

.pricing-card.highlighted {
  border-color: #cbe724;
  box-shadow: inset 0 0 8px #cbe724;
}

.plan-header {
  text-align: left;
  margin-bottom: 24px;
}

.plan-name {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 600;
  color: #cbe724;
  margin-bottom: 16px;
}

.price-container {
  display: flex;
  align-items: baseline;
  justify-content: left;
  gap: 4px;
}

.original-price {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #ffffff;
  -webkit-text-decoration: line-through solid #ffffff 2px;
          text-decoration: line-through solid #ffffff 2px;
  margin-right: 8px;
}

.discounted-price {
  color: #cbe724;
}

.price {
  font-family: "Rubik", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
}

.period {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.features-list li {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 16px;
  padding-left: 0;
}

.subscribe-button {
  width: 100%;
  background-color: #cbe724;
  color: #1f2937;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(172, 242, 33, 0.2);
}

.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 12px;
}

.billing-toggle-buttons {
  display: flex;
  background-color: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.billing-toggle-btn {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  padding: 12px 36px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.billing-toggle-btn.active {
  background-color: #1f2937;
  color: #cbe724;
  font-weight: 600;
}

.annual-bonus {
  color: #cbe724;
  font-weight: 600;
}

.best-value-badge {
  position: absolute;
  top: 16px;
  left: 24px;
  border: 1px solid;
  color: #cbe724;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.beta-badge {
  position: absolute;
  top: 16px;
  left: 24px;
  border: 1px solid;
  color: red;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.soon-badge {
  background-color: #cbe724;
  color: #1f2937;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 8px;
}

.pricing-card {
  position: relative; /* Added for absolute positioning of badges */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .section-three {
    margin-top: 0;
    width: 100%;
  }

  .pricing-title {
    align-self: flex-start;
    font-size: 32px;
    margin-bottom: 32px;
  }

  .pricing-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pricing-container::-webkit-scrollbar {
    display: none;
  }

  .pricing-cards-wrapper {
    flex-wrap: wrap;
  }

  .pricing-card {
    flex: auto;
    width: 100%
  }

  .plan-header {
    text-align: left;
  }

  .price-container {
    justify-content: left;
  }

  .features-list li {
    padding: 0;
  }

  .billing-toggle-container {
    margin-bottom: 0;
    justify-content: flex-start;
    align-self: flex-start;
    width: 100%;
  }

  .billing-toggle-buttons {
    width: 100%;
    box-sizing: border-box;
  }

  .billing-toggle-btn {
    padding: 12px 24px;
  }

  .best-value-badge,
  .beta-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

.section-four {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin-top: 64px;
}

.section-four-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  line-height: 110%;
  text-transform: uppercase;
}

.section-four-faq-container {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 0px 16px;
  width: 100%;
  max-width: 800px;
  margin-top: 32px; /* 64px */
}

.section-four-faq-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.section-four-faq-item:hover {
  border-color: #cbe724;
}

.section-four-faq-text {
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  color: #1f2937;
}

.section-four-faq-number {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #cbe724;
  margin-right: 16px;
}

.section-four-faq-answer {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 48px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.section-four-faq-item.open .section-four-faq-answer {
  max-height: 300px;
  padding-top: 16px;
  margin: 0 36px
}

/* MOBILE */
@media (max-width: 768px) {
  .section-four {
    margin-top: 32px;
    width: 100%;
  }

  .section-four-title {
    font-size: 32px;
    text-align: left;
    padding: 0;
    margin-top: 0;
    margin-bottom: 32px;
  }

  .section-four-subtitle {
    font-size: 18px;
    text-align: left;
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .section-four-faq-container {
    margin-top: 32px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    width: 100%;
    border-radius: 10px;
  }

  .section-four-faq-question {
    font-size: 16px;
  }

  .section-four-faq-number {
    font-size: 16px;
  }

  .section-four-faq-item.open .section-four-faq-answer {
    font-size: 14px;
    margin-left: 0;
  }
}

.section-five {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin-top: 64px;
}

.section-five-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  line-height: 110%;
  text-transform: uppercase;
}

.section-five-subtitle {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  color: #1f2937;
  line-height: 110%;
  padding: 0 40px;
  margin-top: -8px;
}

.sf-options-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-radius: 10px;
  margin-top: 64px;
  margin-bottom: 32px;
}

.sf-option {
  flex: 1 1;
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.sf-option-number-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 150px;
  height: 160px;
  border-radius: 10px;
  margin-bottom: 0;
  margin-right: 24px;
}

.sf-option-content {
  flex-grow: 1;
}

.sf-option-gray .sf-option-number-container {
  background-color: #1f2937;
}

.sf-option-accent .sf-option-number-container {
  background-color: #cbe724;
}

.sf-option-number {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 50px;
  font-weight: 700;
  margin: 0;
  margin-top: 24px;
}

.sf-option-number-text {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 30px;
  font-weight: 700;
  margin-top: 16px;
}

.sf-option-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.sf-option-description {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  margin-top: 16px;
}

.sf-option-gray .sf-option-number,
.sf-option-gray .sf-option-number-text {
  color: #9ca3af;
}

.sf-option-gray .sf-option-title,
.sf-option-gray .sf-option-description {
  color: #9ca3af;
}

.sf-option-accent .sf-option-number,
.sf-option-accent .sf-option-number-text {
  color: #1f2937;
}

.sf-option-accent .sf-option-title,
.sf-option-accent .sf-option-description {
  color: #1f2937;
}

.sf-buttons {
  display: flex;
  gap: 20px;
  margin-top: 0;
  margin-bottom: 60px;
}

.sf-button {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  border: none;
  background-color: #cbe724;
  border-radius: 10px;
  margin-top: 32px;
  margin-bottom: 0;
  padding: 0 80px;
  height: 50px;
  cursor: pointer;
}

.sf-button.secondary {
  color: #cbe724;
  background-color: #1f2937;
}

.sf-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sf-button.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.animated-text {
  position: relative;
  display: inline-block;
  color: inherit;
  transition: color 0.4s ease;
  padding: 0 12px;
}

.animated-text::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 0;
  bottom: 0;
  border-radius: 10px;
  background-color: #cbe724;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.animated-text.animate::before {
  transform: scaleX(1);
}

.animated-char {
  display: inline-block;
  color: inherit;
  transition: color 0.4s ease;
}

.animated-char.space {
  width: 0.3em;
}

.animated-text.animate .animated-char {
  animation: changeColor 0.2s forwards;
}

@keyframes changeColor {
  from {
    color: inherit;
  }
  to {
    color: #1f2937;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .section-five {
    margin-top: 32px;
    width: 100%;
  }

  .section-five-title {
    font-size: 32px;
    text-align: left;
    padding: 0;
    margin-top: 0;
    margin-bottom: 32px;
  }

  .section-five-subtitle {
    font-size: 18px;
    text-align: left;
    padding: 0;
    margin-bottom: 32px;
    width: 100%;
  }

  .sf-options-container {
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
    padding: 0;
  }

  .sf-option {
    width: 100%;
    padding: 16px;
  }

  .sf-option.sf-option-gray,
  .sf-option.sf-option-accent {
    padding: 0;
  }

  .sf-option-number-container {
    width: 100px;
    height: 140px;
    margin: 0;
  }

  .sf-option-content {
    padding: 0 0 0 16px;
  }

  .sf-option-title {
    margin: 0 0 8px;
  }

  .sf-option-description {
    margin: 0;
  }

  .sf-buttons {
    width: 100%;
    flex-direction: column;
  }

  .sf-button {
    width: 100%;
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
  }

  .sf-button.secondary {
    margin-top: 0;
  }
}

.footer {
  width: 100%;
  background-color: #1f2937;
  color: #ffffff;
  padding: 24px 0 24px;
  font-family: "Rubik", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 0;
  gap: 40px;
}

.footer-section {
  flex: 1 1;
  min-width: 200px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-logo-highlight {
  color: #cbe724;
}

.footer-description {
  color: #9ca3af;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-social-media-icons {
  display: flex;
  margin: -24px 0;
  margin-left: -8px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  color: #9ca3af; /* temporary */
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-links a:hover {
  color: #cbe724;
}

.footer-beta {
  background-color: #cbe724;
  color: #1f2937;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
  padding: 0 24px 0;
  margin-top: 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  color: #9ca3af;
  font-size: 14px;
}

.footer-version {
  color: #6b7280;
  font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }

  .footer-section {
    width: 100%;
  }

  .footer-bottom {
    display: block;
    align-items: flex-start;
  }

  .footer-social-media-icons {
    display: flex;
    margin: -24px 0;
    margin-left: 0;
  }
}

.signup-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background-color: #ffffff;
}

/* Demo Side Styles */
.signup-demo-side {
  background-color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.demo-content {
  max-width: 480px;
  text-align: center;
}

.signup-demo-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.signup-demo-highlight {
  color: #cbe724;
}

.demo-video-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.demo-video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Form Side Styles */
.signup-form-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.signup-form-container {
  width: 100%;
  max-width: 400px;
}

.signup-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 32px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 32px;
  text-align: center;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  width: 100%;
}

.signup-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #1f2937;
  box-sizing: border-box;
}

.signup-input:focus {
  outline: none;
  border-color: #cbe724;
}

.signup-button {
  width: 100%;
  padding: 12px;
  background-color: #cbe724;
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}

.signup-button:hover {
  background-color: #1f2937;
  color: #cbe724;
  transition: all 0.3s ease;
}

.signup-error {
  color: #ef4444;
  text-align: center;
  margin-bottom: 16px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
}

.signup-login-link {
  text-align: center;
  margin-top: 24px;
  color: #9ca3af;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
}

.login-link {
  color: #cbe724;
  cursor: pointer;
  font-weight: 600;
}

.login-link:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .signup-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .signup-demo-side {
    padding: 24px;
  }

  .signup-demo-title {
    font-size: 36px;
  }

  .signup-demo-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .demo-video-container {
    max-width: 380px;
    margin: 0 auto;
  }

  .signup-form-side {
    padding: 24px;
  }

  .signup-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
}

/* reusing existing styles + new ones */
.purchase-history-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}

.counter-controls.disabled {
  /* opacity: 0.5; */
  pointer-events: none;
}

.purchase-date {
  margin-left: auto;
  color: #9ca3af;
  font-size: 14px;
}

.buy-credits-actions.ev-modal {
  margin-top: 24px;
}

.user-table-container {
  width: 100%;
  height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-table-container::-webkit-scrollbar {
  width: 8px;
}

.user-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.user-table-container::-webkit-scrollbar-thumb {
  background: #cbe724;
  border-radius: 4px;
}

.user-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1f2937;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Rubik", sans-serif;
}

.user-table th {
  background-color: #1f2937;
  color: #ffffff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.user-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #1f2937;
}

.user-table td[data-ev-cell] {
  cursor: pointer;
}

.loading-message {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: none;
}

.status-badge.waitlisted,
.status-badge.pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.active,
.status-badge.paid {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.inactive,
.status-badge.canceled,
.status-badge.ended {
  background-color: #fee2e2;
  color: #991b1b;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.action-btn.activate {
  background-color: #cbe724;
  color: #1f2937;
}

.action-btn.deactivate {
  background-color: #1f2937;
  color: #ffffff;
}

.action-btn:hover {
  opacity: 0.9;
}

.admin-dashboard {
  display: flex;
  width: 98%;
  /* max-width: 1100px; */
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  font-family: "Rubik", sans-serif;
}

.admin-main {
  flex: 1 1;
  padding: 14px 32px;
}

.admin-content {
  width: 100%;
}

.admin-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 32px;
}

/* Reusing dashboard sidebar styles */
.dashboard-sidebar {
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* NEW */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-nav .nav-button {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-nav .nav-button:hover,
.admin-nav .nav-button.active {
  color: #cbe724;
}

.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #ffffff;
}

.admin-login-container {
  width: 100%;
  max-width: 400px;
  padding: 40px 20px;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.admin-login-title {
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  text-transform: uppercase;
  margin: 0;
}

.admin-login-highlight {
  color: #cbe724;
}

.admin-login-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #9ca3af;
  margin: 8px 0 0;
}

.admin-login-form-container {
  width: 100%;
}

.admin-login-error {
  color: #f21170;
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #1f2937;
}

.admin-login-input:focus {
  outline: none;
  border-color: #cbe724;
}

.admin-login-button {
  width: 100%;
  padding: 12px;
  background-color: #cbe724;
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}

.admin-login-button:hover {
  background-color: #1f2937;
  color: #ffffff;
  transition: all 0.3s ease;
}

.admin-login-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  width: 90%;
  max-width: 480px;
  animation: modalFadeIn 0.2s ease-out;
}

.modal-title {
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px;
}

.modal-content {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

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

@media (max-width: 768px) {
  .modal-container {
    width: calc(100% - 80px);
  }
}

.settings-container {
  width: 100%;
  height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  flex: 1 1;
}

/* Reusing scrollbar styles from UserTable */
.settings-container::-webkit-scrollbar {
  width: 8px;
}

.settings-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.settings-container::-webkit-scrollbar-thumb {
  background: #cbe724;
  border-radius: 4px;
}

.settings-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.settings-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 32px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 34px;
  margin-bottom: 32px;
}

.settings-section {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.settings-section-title {
  font-family: "Rubik", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.settings-info p {
  margin: 8px 0;
  color: #4b5563;
  font-family: "Rubik", sans-serif;
}

/* Reusing input styles from Login/Signup */
.settings-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.settings-input:focus {
  outline: none;
  border-color: #cbe724;
}

.settings-button,
.settings-cancel-subscription-btn,
.settings-upgrade-btn {
  background: #cbe724;
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-upgrade-btn {
  margin-left: 16px;
}

.settings-button:hover,
.settings-cancel-subscription-btn:hover,
.settings-upgrade-btn:hover {
  background-color: #1f2937;
  color: #ffffff;
}

.settings-danger {
  border-color: #fee2e2;
}

.settings-warning {
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 16px;
}

.settings-delete-button,
.settings-cancel-end-subscription-btn {
  background: #ef4444;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-delete-button:hover,
.settings-cancel-end-subscription-btn:hover {
  background: #b91c1c;
}

.settings-button-group {
  display: flex;
  gap: 16px;
}

.settings-cancel-button {
  background: #9ca3af;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-cancel-button:hover {
  background: #6b7280;
}

.settings-error {
  color: #ef4444;
  margin: 16px 0;
  text-align: center;
}

.settings-success {
  color: #10b981;
  margin: 16px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .settings-container {
    padding: 0 24px;
    height: auto;
  }

  .settings-content {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .settings-danger {
    margin-bottom: 0;
  }

  .settings-button,
  .settings-cancel-subscription-btn,
  .settings-cancel-end-subscription-btn,
  .settings-upgrade-btn,
  .settings-delete-button,
  .settings-cancel-button {
    font-size: 14px;
    font-weight: 500;
  }
}

.welcome-tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.welcome-tutorial {
  width: 90%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: slideIn 0.3s ease-out;
}

.welcome-tutorial-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.welcome-tutorial-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px;
  padding-right: 24px;
}

.welcome-tutorial-image {
  position: relative;
  width: 100%;
  height: 240px;
  background: #f3f4f6;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.tutorial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-image-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 16px 0;
}

.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #1f2937;
  transition: all 0.3s ease;
}

.tutorial-dot.active {
  width: 16px;
  background: #cbe724;
}

.welcome-tutorial-description {
  font-size: 16px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 24px;
  white-space: pre-wrap; 
}

.welcome-tutorial-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.welcome-tutorial-btn {
  font-family: "Rubik", sans-serif;
  padding: 0 60px;
  height: 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.welcome-tutorial-btn.back {
  background: #f3f4f6;
  color: #4b5563;
}

.welcome-tutorial-btn.next {
  background: #cbe724;
  color: #1f2937;
}

.welcome-tutorial-btn.next:hover {
  background: #1f2937;
  color: #cbe724;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .welcome-tutorial {
    width: calc(100% - 32px);
    padding: 20px;
    margin: 16px;
  }

  .welcome-tutorial-image {
    height: 240px;
  }

  .welcome-tutorial-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .welcome-tutorial-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
}

.upm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.upm-container {
  width: 100%;
  max-width: 1280px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: upmSlideIn 0.3s ease-out;
}

.upm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.upm-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px;
  padding-right: 24px;
}

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

.upm-plans-container {
  display: flex;
  gap: 24px;
  margin: 32px 0;
  justify-content: center;
}

.upm-plan-card {
  background-color: #1f2937;
  border-radius: 16px;
  padding: 24px;
  border: 4px solid transparent;
  width: 400px;
  position: relative;
}

.upm-plan-card.current {
  /* opacity: 0.7; */
}

.upm-plan-header {
  text-align: left;
  margin-bottom: 24px;
}

.upm-plan-name {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 600;
  color: #cbe724;
  margin-bottom: 16px;
}

.upm-price-container {
  display: flex;
  align-items: baseline;
  justify-content: left;
  gap: 4px;
}

.upm-price {
  font-family: "Rubik", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
}

.upm-period {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.upm-features-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.upm-features-list li {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 16px;
  padding-left: 0;
}

.upm-upgrade-btn.current {
  background: #1f2937;
  color: #cbe724;
  border: 1px solid #cbe724;
  cursor: default;
  pointer-events: none;
}

.upm-upgrade-btn {
  width: 100%;
  background: #cbe724;
  color: #1f2937;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.upm-upgrade-btn:hover {
  background: #1f2937;
  color: #cbe724;
  border: 1px solid #cbe724;
}

@media (max-width: 768px) {
  .upm-container {
    width: calc(100% - 80px);
    margin: 24px;
  }

  .upm-plans-container {
    flex-direction: row;
    gap: 16px;
    margin: 24px -24px;
    padding: 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
  }

  .upm-plans-container::-webkit-scrollbar {
    display: none;
  }

  .upm-plan-card {
    width: 310px;
    flex: 0 0 310px;
  }

  .upm-plan-card:first-child {
    margin-left: 0;
  }

  .upm-plan-card:last-child {
    margin-right: 0;
  }
}

.signup-pricing-plan-card {
  background-color: #1f2937;
  border-radius: 16px;
  padding: 24px;
  border: 4px solid transparent;
  width: 310px;
  flex: 0 0 310px;

  position: relative;
  background-clip: border-box;
  transition: transform 0.3s ease;
}

.signup-pricing-plan-card.selected {
  border: 4px solid #cbe724;
  box-shadow: inset 0 0 6px #cbe724;
}

.sppc-best-value-badge {
  position: absolute;
  top: 16px;
  left: 24px;
  border: 1px solid;
  color: #cbe724;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.sppc-beta-badge {
  position: absolute;
  top: 16px;
  left: 24px;
  border: 1px solid;
  color: red;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.signup-pricing-plan-card {
  position: relative; /* For badge positioning */
}

/* Billing toggle CSS - same as in SectionThree */
.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.billing-option {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.billing-option.active {
  color: #1f2937;
  font-weight: 600;
}

.billing-toggle {
  width: 60px;
  height: 30px;
  background-color: #e5e7eb;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.billing-toggle:hover {
  background-color: #d1d5db;
}

.billing-toggle-slider {
  width: 24px;
  height: 24px;
  background-color: #cbe724;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  transition: left 0.3s ease;
}

.billing-toggle-slider.left {
  left: 3px;
}

.billing-toggle-slider.right {
  left: 33px;
}

.terms-link {
  color: #cbe724;
  text-decoration: none;
  transition: -webkit-text-decoration 0.3s ease;
  transition: text-decoration 0.3s ease;
  transition: text-decoration 0.3s ease, -webkit-text-decoration 0.3s ease;
}

.terms-link:hover {
  text-decoration: underline;
}

.sppc-plan-header {
  text-align: left;
  margin-bottom: 24px;
}

.sppc-plan-name {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 600;
  color: #cbe724;
  margin-bottom: 16px;
}

.sppc-price-container {
  display: flex;
  align-items: baseline;
  justify-content: left;
  gap: 4px;
}

.price {
  font-family: "Rubik", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
}

.period {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.sppc-features-list {
  list-style: none;
  padding: 0;
  margin: 24px -24px;
}

.sppc-features-list li {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 16px;
  padding-left: 24px;
}

.sppc-discount-badge {
  display: block;
  text-align: center;
  color: #cbe724;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 0;
}

.promo-text {
  display: inline-block;
  color: #cbe724;
  font-weight: 600;
  animation: videoAmountChange 0.6s ease;
  /* animation: pulsate 1.5s ease-in-out infinite; */
}

.promo-bonus {
  display: inline-block;
  color: #cbe724;
  font-weight: 600;
  animation: videoAmountChange 0.6s ease;
  /* animation: pulsate 1.5s ease-in-out infinite; */
}

@keyframes videoAmountChange {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes pulsate {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .signup-pricing-plan-card {
    flex: 0 0 360px;
    padding: 0;
  }

  .sppc-plan-header {
    text-align: left;
    margin: 24px;
  }

  .sppc-price-container {
    justify-content: left;
  }

  .sppc-features-list {
    margin: 24px 0;
  }

  .signup-pricing-plan-card:first-child {
    margin-left: 24px;
  }

  .signup-pricing-plan-card:last-child {
    margin-right: 24px;
  }

  .sppc-discount-badge {
    margin: 24px;
    text-align: left;
  }

  .sppc-best-value-badge {
    top: 28px;
    left: 232px;
  }
  
  .sppc-beta-badge {
    top: 28px;
    left: 232px;
  }
}

.signup-plan-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  position: relative;
}

.signup-plan-side-back-btn {
  position: absolute;
  top: 40px;
  left: 40px;
  align-self: flex-start;
  border: none;
  background: none;
  color: #9ca3af;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  /* display: none; */
}

.signup-plan-side-back-btn:hover {
  color: #cbe724;
}

.signup-plan-container {
  width: 100vw;
  max-width: 700px;
  margin-top: -48px;
}

.signup-plan-container .pricing-title {
  margin-bottom: 12px;
}

.signup-plan-container-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.signup-plan-container-wrapper::-webkit-scrollbar {
  display: none;
}

.signup-plan-container-wrapper .pricing-card:hover {
  color: #cbe724;
}

.plan-selection {
  margin: 24px 0;
  text-align: center;
}

.plan-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1f2937;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
}

.plan-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  position: relative;
}

.plan-checkbox:not(:checked) {
  animation: pulsate 2s infinite;
}

.signup-button {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  height: 50px;
  font-size: 18px;
  font-weight: 600;
}

.signup-button:disabled {
  cursor: not-allowed;
}

.pulsating {
  animation: none;
}

/* Promocode */
.signup-promo-code-section {
  margin-top: 24px;
  text-align: center;
  position: relative;
}

.signup-promo-code-section .signup-input {
  box-sizing: border-box;
}

.signup-promo-code-toggle {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.3s ease;
  /* display: none; delete this line after we modify promo code logic */
}

.signup-promo-code-toggle:hover {
  color: #cbe724;
}

.signup-promo-code-apply {
  position: absolute;
  right: 0px;
  top: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #cbe724;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* MOBILE */
@media (max-width: 768px) {
  .signup-plan-side {
    padding: 0 0 24px 0;
  }

  .signup-plan-side-back-btn {
    display: none;
  }

  .signup-plan-container .pricing-title {
    margin: 24px auto;
    text-align: center;
    /* max-width: 400px; */
  }

  .signup-plan-container {
    /* max-width: 400px; */
    width: 100vw;
    margin-top: 0;
  }

  .signup-plan-container .pricing-container {
    /* max-width: 400px; */
  }

  .signup-plan-container-wrapper {
    padding: 0;
    gap: 24px;
  }

  .plan-selection {
    margin: 24px auto;
    text-align: center;
    /* max-width: 400px; */
  }

  .signup-promo-code-section {
    margin: 24px auto;
    /* max-width: 400px; */
    text-align: center;
  }

  .signup-promo-code-section .signup-input {
    width: calc(100% - 48px);
  }

  .signup-promo-code-apply {
    right: 24px;
  }

  .plan-checkbox-label {
    justify-content: center;
  }

  .plan-checkbox {
    margin: 0 8px 0 0;
  }

  .signup-button {
    width: calc(100% - 48px);
    margin: 0 auto;
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: center;
  }
}

@keyframes pulsate {
  0% {
    box-shadow: 0 0 0 0 rgba(156, 179, 27, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(203, 231, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(203, 231, 36, 0);
  }
}

/* Base container */
.tutorial-container {
  width: 100%;
  height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  padding-left:16px;
  padding-top: 34px;
  padding-bottom: 24px;
  flex: 1 1;
}

/* Scrollbar styles */
.tutorial-container::-webkit-scrollbar {
  width: 8px;
}

.tutorial-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.tutorial-container::-webkit-scrollbar-thumb {
  background: #cbe724;
  border-radius: 4px;
}

/* Content layout */
.tutorial-content {
  /* max-width: 800px; */
  margin: 0 auto;
  padding-bottom: 32px;
}

.tutorial-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 32px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 34px;
  margin-bottom: 32px;
}

.tutorial-section {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.tutorial-section-title {
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.tutorial-section-content {
  color: #4b5563;
  font-family: "Rubik", sans-serif;
  line-height: 1.5;
}

.highlighted-object {
  color: #cbe724;
  font-weight: 600;
}

.highlighted-motion {
  color: #ef4444;
  font-weight: 600;
}

.highlighted-scene {
  color: #3b82f6;
  font-weight: 600;
}

.highlighted-camera {
  color: #e9ab03;
  font-weight: 600;
}

.highlighted-aesthetic {
  color: #72147e;
  font-weight: 600;
}

.tutorial-paragraph {
  margin-bottom: 16px;
}

.tutorial-paragraph:last-child {
  margin-bottom: 0;
}

/* Formula styles */
.tutorial-formula {
  margin: 24px 0;
  padding: 16px;
  background: #f3f4f6;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.formula-main {
  color: #1f2937;
}

.formula-equals {
  color: #6b7280;
}

.formula-object {
  color: #cbe724;
}

.formula-motion {
  color: #ef4444;
}

.formula-scene {
  color: #3b82f6;
}

.formula-camera {
  color: #e9ab03;
}

.formula-aesthetic {
  color: #72147e;
}

.formula-plus {
  color: #6b7280;
  margin: 0 8px;
}

/* Examples grid */
.tutorial-examples-grid {
  margin-top: 32px;
  width: 100%;
}

.tutorial-example-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 0;
  min-height: 160px;
}

.tutorial-example-box {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

.tutorial-example-title {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.tutorial-image-container {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

.tutorial-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.tutorial-prompt-container {
  width: calc(100% - 26px);
  height: 124px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Rubik", sans-serif;
}

.tutorial-prompt-text {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.tutorial-video-container {
  width: 100%;
  height: 100%;
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
}

.tutorial-video-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Cases */
.tutorial-section-content .highlight-advantages {
  background: #eef7ee;
  padding: 16px;
  border-radius: 8px;
  /* border-left: 4px solid #10b981; */
}

.tutorial-section-content .highlight-disadvantages {
  background: #fef2f2;
  padding: 16px;
  border-radius: 8px;
  /* border-left: 4px solid #ef4444; */
}

.tutorial-case {
  background: #f3f4f6;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.tutorial-section-content .case-title {
  font-weight: 600;
  color: #1f2937;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .tutorial-container {
    padding: 16px;
  }

  .tutorial-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .tutorial-example-container {
    flex-direction: column;
  }

  .tutorial-example-box {
    width: 100%;
  }

  .tutorial-formula {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .formula-main,
  .formula-object,
  .formula-motion,
  .formula-scene,
  .formula-camera,
  .formula-aesthetic {
    font-size: 14px;
  }
}

.waitlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.2);
  backdrop-filter: blur(10.4px);
  -webkit-backdrop-filter: blur(10.4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.waitlist-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 32px;
  max-width: 480px;
  width: 90%;
}

.waitlist-content {
  text-align: left;
}

.waitlist-title {
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 16px;
  text-align: left;
}

.waitlist-highlight {
  color: #cbe724;
}

.waitlist-message {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 0;
}

.waitlist-message-tg {
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
}

.waitlist-container .waitlist-logout-btn {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  padding: 0;
  margin-top: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 100%;
}

.waitlist-logout-btn:hover {
  color: #cbe724;
}

.logout-icon {
  font-size: 24px;
}

.logout-icon-text {
  font-size: 16px;
}

@media (max-width: 768px) {
  .waitlist-container {
    margin: 24px;
  }

  .waitlist-title {
    text-align: left;
  }

  .waitlist-container .waitlist-logout-btn {
    justify-content: left;
    padding: 0;
  }
}

.waitlist-page {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
  }
  
  .waitlist-preview {
    position: relative;
    min-width: 1100px;
  }
.legal-page {
  font-family: "Rubik", sans-serif;
  color: #1f2937;
  background-color: #f3f4f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  flex: 1 1;
}

.legal-page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.legal-page-updated {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 20px;
}

.legal-section p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.legal-section ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-section a {
  color: #cbe724;
  text-decoration: none;
  transition: -webkit-text-decoration 0.3s ease;
  transition: text-decoration 0.3s ease;
  transition: text-decoration 0.3s ease, -webkit-text-decoration 0.3s ease;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-page-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.legal-page-link {
  color: #1f2937;
  background-color: #cbe724;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.legal-page-link:hover {
  background-color: #b3cc1c;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .legal-page-container {
    margin: 20px;
    padding: 24px;
    border-radius: 8px;
  }

  .legal-page-title {
    font-size: 24px;
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-section h3 {
    font-size: 16px;
  }

  .legal-page-navigation {
    flex-direction: column;
    gap: 12px;
  }

  .legal-page-link {
    display: block;
    text-align: center;
  }
}

.storyboard-list-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.storyboard-list-modal {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  font-family: "Rubik", sans-serif;
  animation: slideIn 0.3s ease-out;
}

.storyboard-list-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.storyboard-list-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px;
  padding-right: 24px;
}

.storyboard-list-modal-input-group {
  margin-bottom: 24px;
}

.storyboard-list-modal-input-group label {
  display: block;
  margin-bottom: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
}

.storyboard-list-modal-input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Rubik", sans-serif;
  box-sizing: border-box;
}

.storyboard-list-modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.storyboard-list-modal-cancel,
.storyboard-list-modal-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.storyboard-list-modal-cancel {
  background: none;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
}

.storyboard-list-modal-submit {
  background: #cbe724;
  border: none;
  color: #1f2937;
  font-weight: 600;
}

.storyboard-list-modal-cancel:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.storyboard-list-modal-submit:hover {
  background: #1f2937;
  color: #cbe724;
}

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

@media (max-width: 768px) {
  .storyboard-list-modal {
    width: calc(100% - 48px);
    padding: 16px;
  }
} 
/* Loading Spinner - matching ShotGenerationPanel styling */
.storyboard-list-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 200px); /* Account for navbar and spacing */
  width: 100%;
}

.storyboard-list-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #9ca3af;
}

.storyboard-list-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.storyboard-list-loading-text {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: #9ca3af;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Main Container */
.storyboard-list-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  font-family: "Rubik", sans-serif;
  padding-top: 44px; /* Adjusted height from the top page taking into account the fixed navbar's height */
}

.storyboard-list-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
}

.storyboard-list-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: calc(100% - 32px);
  width: 100%;
  margin: 0 auto;
}

/* Storyboard Grid */
.storyboard-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}

.storyboard-list-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.storyboard-list-item:hover {
  transform: translateY(-5px);
}

.storyboard-list-add-btn {
  position: relative;
  height: 200px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 2px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.storyboard-list-add-btn:hover {
  border-color: #cbe724;
}

.storyboard-list-add-icon {
  font-size: 24px;
  color: #9ca3af;
}

.storyboard-list-add-btn span {
  color: #9ca3af;
  font-size: 14px;
}

.storyboard-card {
  width: 100%;
  height: 200px;
  position: relative;
}

.storyboard-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(31, 41, 55, 0.8);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.storyboard-delete-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.storyboard-card-preview {
  height: 140px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storyboard-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storyboard-card-empty-preview {
  color: #9ca3af;
  font-size: 14px;
}

/* Blank Shot Preview - matching StoryboardPreviz styling */
.storyboard-card-blank-shot-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-radius: 8px;
}

.storyboard-card-blank-shot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.storyboard-card-blank-shot-title {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #cbe724;
}

.storyboard-card-blank-shot-subtitle {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.storyboard-card-info {
  padding: 12px;
  background: #ffffff;
}

.storyboard-card-title {
  font-size: 14px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  max-height: 1.9em;
}

.storyboard-card-meta {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.storyboard-list-empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  margin-top: 2rem;
}

.storyboard-list-empty-state p {
  margin: 0.5rem 0;
}

.storyboard-list-empty-state p:first-child {
  font-size: 1.25rem;
  font-weight: 500;
}

.storyboard-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* LEGACY STYLES - keeping for backward compatibility */
.storyboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-storyboard-counter-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

.dashboard-storyboard-counter {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #9ca3af;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .storyboard-list-container {
    padding-top: 80px; /* More space for mobile navbar */
  }
  
  .storyboard-list-content {
    padding: 16px;
  }

  .storyboard-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }

  .storyboard-list-add-btn,
  .storyboard-card {
    height: 160px;
  }

  .storyboard-card-preview {
    height: 100px;
  }
}

/* Project deletion loading animation - matching Storyboard.css styling */
.storyboard-deleting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

.storyboard-deleting-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
}

.storyboard-deleting-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #cbe724;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.storyboard-deleting-text {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

/* Delete button spinner - smaller version for button */
.storyboard-delete-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
} 
/* THIS IS THE MAIN LAYOUT FOR ALL PAGES */
body {
  /* width: 1100px; */
  /* margin: 0 auto; */
  overflow-x: hidden;
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-style: normal;
}

.content-container {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  /* new */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.full-width.page {
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 768px) {
  .content-container {
    width: calc(100% - 48px);
  }
}

