:root {
  --brand-primary: #1e293b;
  /* Slate 800 */
  --brand-accent: #6366f1;
  /* Indigo 500 */
  --bg-canvas: #f1f5f9;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --sidebar-width: 340px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-canvas);
  color: #1e293b;
  min-height: 100vh;
}

/* Layout Architecture */
.portal-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar: Product Context */
.portal-sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 2.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

/* Main Content Area */
.portal-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 3rem;
  max-width: 1400px;
}

@media (max-width: 1100px) {
  .portal-wrapper {
    flex-direction: column;
  }

  .portal-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .portal-main {
    margin-left: 0;
    padding: 1.5rem;
  }
}

/* Branding & Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--brand-accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
}

/* Product Showcase Cards */
.ui-preview-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-accent);
}

.img-container {
  background: #f8fafc;
  position: relative;
  padding-top: 177.77%;
  /* 9:16 aspect ratio */
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-label {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Review Surface */
.review-surface {
  background: white;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-heading {
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.step-subtext {
  color: #64748b;
  margin-bottom: 2.5rem;
}

/* Modern Form Elements */
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.6rem;
  display: block;
}

.form-control,
.form-select {
  border: 1.5px solid #e2e8f0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Star Rating System */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #fbbf24;
}

/* Section Headings */
.form-section-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

/* Buttons */
.btn-portal {
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-portal-primary {
  background: var(--brand-primary);
  color: white;
  border: none;
}

.btn-portal-primary:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

/* Stepper UI */
.stepper-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}

.step-pill {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 10px;
}

.step-pill.completed {
  background: var(--brand-accent);
}

.loading-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 767px) {
  .portal-sidebar h6,
  .portal-sidebar #showcase { display: none; }
  .portal-sidebar{ padding: 1rem; }
  .brand-header{ margin-bottom: unset; }
  .portal-main h1{ font-size: 1.5rem; }
}
