.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#success-toast.show {
  display: block;
  animation: fadeInOut 4s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

#modal-overlay.show {
  display: flex;
}

#modal-overlay {
  display: none;
}

.color-btn {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 0.75rem;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.25rem;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.color-btn:hover {
  transform: scale(1.05);
}

.color-btn.active {
  border-width: 4px;
  border-color: #0f172a;
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}

.color-btn:not(.active) {
  border: 1px solid #e2e8f0;
}

.color-btn span {
  background: rgba(0,0,0,.4);
  padding: 1px 4px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}

.cabin-placeholder {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1/2;
  border: 2px dashed #cbd5e1;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.06);
  position: relative;
  transition: border-color 0.3s;
}

.cabin-placeholder:hover {
  border-color: #94a3b8;
}

.cabin-placeholder:hover .cabin-ph-icon {
  transform: scale(1.1);
}

.cabin-ph-icon {
  transition: transform 0.3s;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

#lightbox-overlay {
  display: none;
}

#lightbox-overlay.show {
  display: flex;
}

#gallery-grid .gallery-item {
  min-height: 240px;
}

#gallery-grid .gallery-item img {
  transition: transform 0.5s;
}

#gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-dense {
  grid-auto-flow: dense;
}

.gallery-video-iframe {
  pointer-events: none;
}

.option-placeholder {
  width: 6rem;
  height: 6rem;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  flex-shrink: 0;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose strong {
  font-weight: 700;
  color: #1e293b;
}

.prose em {
  font-style: italic;
}

.prose ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prose a {
  color: #10b981;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #059669;
}

.shadow-md {
  box-shadow: none!important;
}