/* ══════════════════════════════════════════
   BEAUTY STUDIO — CINEMATIC STYLES
══════════════════════════════════════════ */

body {
  margin: 0;
  padding-top: var(--nb-height, 70px);
  background: #020305;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* ── HERO SECTION ── */
.bs-hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0d18 0%, #020305 100%);
}

#hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.bs-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  max-width: 800px;
  padding: 0 20px;
}

.bs-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(95, 216, 255, 0.1);
  border: 1px solid rgba(95, 216, 255, 0.3);
  border-radius: 20px;
  color: #5fd8ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(95, 216, 255, 0.2);
}

.bs-hero-overlay h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
}

.bs-glow-text {
  background: linear-gradient(135deg, #5fd8ff 0%, #c9a96e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(95, 216, 255, 0.3);
}

.bs-hero-overlay p {
  font-size: 1.2rem;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.bs-scroll-btn {
  pointer-events: auto;
  padding: 15px 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.bs-scroll-btn:hover {
  background: rgba(95, 216, 255, 0.15);
  border-color: #5fd8ff;
  box-shadow: 0 0 25px rgba(95, 216, 255, 0.3);
}

/* ── COMMON LAYOUT ── */
.bs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px;
}
.bs-header-center {
  text-align: center;
  margin-bottom: 50px;
}
.bs-header-center h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 800;
  color: #fff;
}
.bs-header-center p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── BUTTONS ── */
.bs-btn-primary, .bs-btn-secondary, .bs-btn-ghost {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.bs-btn-primary {
  background: linear-gradient(135deg, #5fd8ff, #47a3d1);
  border: none;
  color: #000;
  box-shadow: 0 5px 15px rgba(95, 216, 255, 0.3);
}
.bs-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(95, 216, 255, 0.5);
}
.bs-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bs-btn-secondary {
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid #c9a96e;
  color: #c9a96e;
}
.bs-btn-secondary:hover {
  background: rgba(201, 169, 110, 0.2);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.2);
}
.bs-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.bs-btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* ── ANALYSIS SECTION ── */
.bs-analysis {
  background: #04060b;
  border-top: 1px solid rgba(95,216,255,0.1);
  border-bottom: 1px solid rgba(95,216,255,0.1);
}
.bs-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.bs-scan-container {
  max-width: 400px;
  margin: 0 auto;
  background: #020305;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(95,216,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.bs-view-box {
  width: 100%;
  aspect-ratio: 3/4;
  background: #0a0e1a;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.bs-view-box video, .bs-view-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bs-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #5fd8ff;
  box-shadow: 0 0 20px 5px rgba(95,216,255,0.5);
  opacity: 0;
}
.bs-laser.active {
  animation: scanSweep 2s ease-in-out infinite;
  opacity: 1;
}
@keyframes scanSweep {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}
.bs-nodes {
  position: absolute;
  inset: 0;
}
.bs-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #c9a96e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #c9a96e;
  animation: nodePop 0.3s ease-out forwards;
}
@keyframes nodePop {
  0% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

.bs-scan-status {
  text-align: center;
  margin-top: 15px;
  color: #5fd8ff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Results */
.bs-results {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px;
}
.bs-results h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}
.bs-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.bs-metric-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.bs-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}
.bs-fill {
  height: 100%;
  background: linear-gradient(90deg, #5fd8ff, #c9a96e);
  width: 0%;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.bs-suggestions {
  background: rgba(95,216,255,0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #5fd8ff;
  margin-bottom: 25px;
}
.bs-suggestions h4 {
  color: #5fd8ff;
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.bs-suggestions p {
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  font-size: 0.95rem;
  margin: 0;
}

/* ── 3D STUDIO SECTION ── */
.bs-3d-studio {
  background: radial-gradient(circle at top, #080b14 0%, #020305 100%);
}
.bs-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.bs-upload-slot {
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.bs-upload-slot:hover {
  border-color: rgba(95,216,255,0.5);
  background: rgba(95,216,255,0.05);
}
.bs-upload-slot span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
  z-index: 2;
  text-align: center;
  padding: 10px;
}
.bs-upload-slot input {
  display: none;
}
.bs-slot-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}
.bs-slot-img.loaded {
  display: block;
}
.bs-generate-wrap {
  text-align: center;
  margin-bottom: 50px;
}
.bs-3d-result {
  background: #020305;
  border: 1px solid rgba(95,216,255,0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 50px rgba(95,216,255,0.05);
  display: flex;
  flex-direction: column;
}
.bs-canvas-wrapper {
  width: 100%;
  height: 500px;
  background: #000;
  cursor: grab;
}
.bs-canvas-wrapper:active {
  cursor: grabbing;
}
.bs-partition-recommendations {
  padding: 40px;
  background: rgba(10, 14, 26, 0.8);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.bs-partition-recommendations h3 {
  color: #c9a96e;
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.bs-partition-recommendations p {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 1.05rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bs-hero-overlay h1 { font-size: 3.5rem; }
  .bs-upload-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bs-hero-overlay h1 { font-size: 2.5rem; }
  .bs-header-center h2 { font-size: 2rem; }
  .bs-actions { flex-direction: column; }
  .bs-upload-grid { grid-template-columns: 1fr; }
  .bs-canvas-wrapper { height: 350px; }
  .bs-partition-recommendations { padding: 25px; }
}
